From 25fe858c2b07fae92cee937031983bb6ccc14641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=9E=D1=81=D0=B8?= =?UTF-8?q?=D0=BF=D0=BA=D0=BE=D0=B2?= Date: Thu, 28 May 2026 12:08:39 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20sync=20UIKit=20types=20-=20add=20Modal,?= =?UTF-8?q?=20Tabs,=20Table,=20SearchableSelect,=20MultiSelect,=20Typograp?= =?UTF-8?q?hy.Small=20=E2=80=94=20v1.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/frontend/uikit.d.ts | 48 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c824aa3..788eb75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@erp/plugin-sdk", - "version": "1.7.0", + "version": "1.7.1", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { diff --git a/src/frontend/uikit.d.ts b/src/frontend/uikit.d.ts index 0d40abf..350354c 100644 --- a/src/frontend/uikit.d.ts +++ b/src/frontend/uikit.d.ts @@ -23,9 +23,49 @@ declare module 'host/UIKit' { export const Card: React.FC; export const Typography: { - H1: React.FC>; - H2: React.FC>; - H3: React.FC>; - P: React.FC>; + H1: React.FC<{ children: React.ReactNode; className?: string }>; + H2: React.FC<{ children: React.ReactNode; className?: string }>; + H3: React.FC<{ children: React.ReactNode; className?: string }>; + P: React.FC<{ children: React.ReactNode; className?: string }>; + Small: React.FC<{ children: React.ReactNode; className?: string; style?: React.CSSProperties }>; }; + + export const Modal: React.FC<{ + isOpen: boolean; + onClose: () => void; + title?: string; + children: React.ReactNode; + width?: string; + }>; + + export const Tabs: React.FC<{ + tabs: { id: string; label: React.ReactNode; icon?: React.ReactNode }[]; + activeTab: string; + onChange: (id: string) => void; + className?: string; + }>; + + export const Table: React.FC<{ + headers: React.ReactNode[]; + children: React.ReactNode; + className?: string; + }>; + + export const SearchableSelect: React.FC<{ + options: { value: string | number; label: string }[]; + value: string | number; + onChange: (value: any) => void; + placeholder?: string; + style?: React.CSSProperties; + language?: string; + }>; + + export const MultiSelect: React.FC<{ + options: { value: string | number; label: string }[]; + values: (string | number)[]; + onChange: (values: (string | number)[]) => void; + placeholder?: string; + style?: React.CSSProperties; + language?: string; + }>; }