feat: sync UIKit types - add Modal, Tabs, Table, SearchableSelect, MultiSelect, Typography.Small — v1.7.1
This commit is contained in:
parent
4efaa25452
commit
25fe858c2b
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@erp/plugin-sdk",
|
"name": "@erp/plugin-sdk",
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,49 @@ declare module 'host/UIKit' {
|
||||||
export const Card: React.FC<CardProps>;
|
export const Card: React.FC<CardProps>;
|
||||||
|
|
||||||
export const Typography: {
|
export const Typography: {
|
||||||
H1: React.FC<React.HTMLAttributes<HTMLHeadingElement>>;
|
H1: React.FC<{ children: React.ReactNode; className?: string }>;
|
||||||
H2: React.FC<React.HTMLAttributes<HTMLHeadingElement>>;
|
H2: React.FC<{ children: React.ReactNode; className?: string }>;
|
||||||
H3: React.FC<React.HTMLAttributes<HTMLHeadingElement>>;
|
H3: React.FC<{ children: React.ReactNode; className?: string }>;
|
||||||
P: React.FC<React.HTMLAttributes<HTMLParagraphElement>>;
|
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;
|
||||||
|
}>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue