@pnkx-lib/ui 1.8.3 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ui-TI_LyW6Y.css +1 -0
- package/dist/chunks/Switch-B9j33qoL.js +14880 -0
- package/dist/chunks/Tag-BhJhbXqW.js +4206 -0
- package/dist/chunks/createSuper-xZMa0AcQ.js +2769 -0
- package/dist/fields/index.js +11 -0
- package/dist/index.js +40 -0
- package/dist/style.css +1 -1
- package/dist/types/fields.d.ts +193 -0
- package/dist/types/index.d.ts +574 -0
- package/dist/types/ui.d.ts +387 -0
- package/dist/ui/index.js +31 -0
- package/dist/vite.svg +1 -0
- package/es/chunks/{ErrorBoundary-Ja4PIPaU.js → ErrorBoundary-C5g427OM.js} +11273 -6752
- package/es/chunks/{Checkbox-2LoiNtBe.js → Radio-C3c5Olf1.js} +3 -52
- package/es/chunks/{Switch-C3IZzn6L.js → Switch-BUaKQ4cU.js} +134 -65
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +5 -1
- package/types/index.d.ts +6 -3
- package/types/ui.d.ts +6 -3
@@ -0,0 +1,574 @@
|
|
1
|
+
import { BadgeProps as BadgeProps_2 } from 'antd';
|
2
|
+
import { BasicProps } from 'antd/es/layout/layout';
|
3
|
+
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
4
|
+
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
|
5
|
+
import { BreadcrumbSeparatorType as BreadcrumbSeparatorType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
6
|
+
import { Breakpoint } from 'antd';
|
7
|
+
import { ButtonProps as ButtonProps_2 } from 'antd';
|
8
|
+
import { CascaderProps } from 'antd/es/cascader';
|
9
|
+
import { CheckboxProps } from 'antd';
|
10
|
+
import { ColProps as ColProps_2 } from 'antd';
|
11
|
+
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
12
|
+
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
13
|
+
import { Control } from 'react-hook-form';
|
14
|
+
import { ControllerFieldState } from 'react-hook-form';
|
15
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
16
|
+
import { Dayjs } from 'dayjs';
|
17
|
+
import { default as default_2 } from 'react';
|
18
|
+
import { DefaultOptionType } from 'antd/es/cascader';
|
19
|
+
import { DefaultValues } from 'react-hook-form';
|
20
|
+
import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
|
21
|
+
import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
|
22
|
+
import { DropdownProps as DropdownProps_2 } from 'antd';
|
23
|
+
import { FC } from 'react';
|
24
|
+
import { FieldValues } from 'react-hook-form';
|
25
|
+
import { FlexProps as FlexProps_2 } from 'antd';
|
26
|
+
import { ForwardRefExoticComponent } from 'react';
|
27
|
+
import { IAllProps } from '@tinymce/tinymce-react';
|
28
|
+
import { InputProps as InputProps_2 } from 'antd';
|
29
|
+
import { JSX } from 'react/jsx-runtime';
|
30
|
+
import { JSX as JSX_2 } from 'react';
|
31
|
+
import { MenuDividerProps } from 'antd/es/menu';
|
32
|
+
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
33
|
+
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
34
|
+
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
35
|
+
import { ModalProps } from 'antd';
|
36
|
+
import { Pagination as Pagination_2 } from 'antd';
|
37
|
+
import { PaginationLocale } from 'rc-pagination';
|
38
|
+
import { PaginationProps as PaginationProps_2 } from 'antd';
|
39
|
+
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
40
|
+
import { PopoverProps as PopoverProps_2 } from 'antd';
|
41
|
+
import { RadioGroupProps } from 'antd';
|
42
|
+
import { RangePickerProps } from 'antd/es/date-picker';
|
43
|
+
import * as React_2 from 'react';
|
44
|
+
import { ReactDatePickerProps } from 'react-datepicker';
|
45
|
+
import { ReactNode } from 'react';
|
46
|
+
import { RefAttributes } from 'react';
|
47
|
+
import { RowProps as RowProps_2 } from 'antd';
|
48
|
+
import { SelectProps } from 'antd';
|
49
|
+
import { SiderContextProps } from 'antd/es/layout/Sider';
|
50
|
+
import { SiderProps } from 'antd/es/layout/Sider';
|
51
|
+
import { SkeletonProps as SkeletonProps_2 } from 'antd';
|
52
|
+
import { Space as Space_2 } from 'antd';
|
53
|
+
import { SpaceProps as SpaceProps_2 } from 'antd';
|
54
|
+
import { Splitter as Splitter_2 } from 'antd';
|
55
|
+
import { SplitterProps as SplitterProps_2 } from 'antd';
|
56
|
+
import { StepProps as StepProps_2 } from 'antd';
|
57
|
+
import { Steps as Steps_2 } from 'antd';
|
58
|
+
import { StepsProps as StepsProps_2 } from 'antd';
|
59
|
+
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
60
|
+
import { SwitchProps } from 'antd';
|
61
|
+
import { TableProps } from 'antd/lib/table';
|
62
|
+
import { TabsProps as TabsProps_2 } from 'antd';
|
63
|
+
import { TagProps } from 'antd';
|
64
|
+
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
65
|
+
import { TextProps } from 'antd/es/typography/Text';
|
66
|
+
import { TitleProps } from 'antd/es/typography/Title';
|
67
|
+
import { TooltipProps as TooltipProps_2 } from 'antd';
|
68
|
+
import { UploadFile } from 'antd';
|
69
|
+
import { UploadProps } from 'antd';
|
70
|
+
import { UseFormHandleSubmit } from 'react-hook-form';
|
71
|
+
import { UseFormReturn } from 'react-hook-form';
|
72
|
+
import { UseFormSetValue } from 'react-hook-form';
|
73
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
74
|
+
|
75
|
+
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
76
|
+
|
77
|
+
export declare interface BadgeProps extends BadgeProps_2 {
|
78
|
+
type?: "error" | "info" | "success" | "warning";
|
79
|
+
children?: React.ReactNode;
|
80
|
+
}
|
81
|
+
|
82
|
+
declare type BaseProps = {
|
83
|
+
customStyleContainer?: string;
|
84
|
+
customStyleCascader?: string;
|
85
|
+
};
|
86
|
+
|
87
|
+
declare type BaseProps_10 = {
|
88
|
+
containerClassName?: string;
|
89
|
+
spaceClassName?: string;
|
90
|
+
};
|
91
|
+
|
92
|
+
declare type BaseProps_11 = {
|
93
|
+
containerClassName?: string;
|
94
|
+
paginationClassName?: string;
|
95
|
+
};
|
96
|
+
|
97
|
+
declare type BaseProps_12 = {
|
98
|
+
containerClassName?: string;
|
99
|
+
stepsClassName?: string;
|
100
|
+
};
|
101
|
+
|
102
|
+
declare type BaseProps_2 = {
|
103
|
+
containerClassName?: string;
|
104
|
+
popoverClassName?: string;
|
105
|
+
};
|
106
|
+
|
107
|
+
declare type BaseProps_3 = {
|
108
|
+
colClassName?: string;
|
109
|
+
};
|
110
|
+
|
111
|
+
declare type BaseProps_4 = {
|
112
|
+
rowClassName?: string;
|
113
|
+
};
|
114
|
+
|
115
|
+
declare type BaseProps_5 = {
|
116
|
+
containerClassName?: string;
|
117
|
+
dropdownClassName?: string;
|
118
|
+
};
|
119
|
+
|
120
|
+
declare type BaseProps_6 = {
|
121
|
+
containerClassName?: string;
|
122
|
+
breadcrumbClassName?: string;
|
123
|
+
};
|
124
|
+
|
125
|
+
declare type BaseProps_7 = {
|
126
|
+
containerClassName?: string;
|
127
|
+
flexClassName?: string;
|
128
|
+
};
|
129
|
+
|
130
|
+
declare type BaseProps_8 = {
|
131
|
+
layoutClassName?: string;
|
132
|
+
};
|
133
|
+
|
134
|
+
declare type BaseProps_9 = {
|
135
|
+
containerClassName?: string;
|
136
|
+
spaceClassName?: string;
|
137
|
+
};
|
138
|
+
|
139
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
140
|
+
|
141
|
+
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
142
|
+
children?: Omit<BreadcrumbItemType, "children">[];
|
143
|
+
}
|
144
|
+
|
145
|
+
export declare type BreadcrumbProps = BreadcrumbProps_2;
|
146
|
+
|
147
|
+
export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
148
|
+
|
149
|
+
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
150
|
+
|
151
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
152
|
+
|
153
|
+
export declare type ButtonProps = ButtonProps_2;
|
154
|
+
|
155
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
156
|
+
|
157
|
+
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
158
|
+
|
159
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
160
|
+
|
161
|
+
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
162
|
+
field?: ControllerRenderProps<any, any>;
|
163
|
+
formState?: UseFormStateReturn<any>;
|
164
|
+
label?: string;
|
165
|
+
required?: boolean;
|
166
|
+
afterOnChange?: (checked: boolean) => void;
|
167
|
+
customStyleContainer?: string;
|
168
|
+
customStyleCheckbox?: string;
|
169
|
+
}
|
170
|
+
|
171
|
+
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
172
|
+
|
173
|
+
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
174
|
+
}
|
175
|
+
|
176
|
+
export declare type ColPropsUnion = BaseProps_3 & ColProps;
|
177
|
+
|
178
|
+
export declare interface ColSize extends ColSize_2 {
|
179
|
+
}
|
180
|
+
|
181
|
+
export declare type ColSpanType = number | string;
|
182
|
+
|
183
|
+
export declare type ColumnsType<T> = ColumnsType_2<T>;
|
184
|
+
|
185
|
+
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
186
|
+
|
187
|
+
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
188
|
+
Item: typeof MenuItem;
|
189
|
+
SubMenu: typeof SubMenu;
|
190
|
+
Divider: typeof Divider;
|
191
|
+
ItemGroup: typeof ItemGroup;
|
192
|
+
};
|
193
|
+
|
194
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
195
|
+
|
196
|
+
export declare interface ContainerProps {
|
197
|
+
children: default_2.ReactNode;
|
198
|
+
size?: TailwindMaxWidth;
|
199
|
+
className?: string;
|
200
|
+
}
|
201
|
+
|
202
|
+
export declare interface CustomeModalProps extends ModalProps {
|
203
|
+
children?: ReactNode;
|
204
|
+
onSubmit?: () => void;
|
205
|
+
}
|
206
|
+
|
207
|
+
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
208
|
+
|
209
|
+
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
210
|
+
field?: ControllerRenderProps<any, any>;
|
211
|
+
formState?: UseFormStateReturn<any>;
|
212
|
+
setValue?: UseFormSetValue<any>;
|
213
|
+
customStyleDatepicker?: string;
|
214
|
+
disabledInputChange?: boolean;
|
215
|
+
required?: boolean;
|
216
|
+
dateFormat?: string | string[];
|
217
|
+
placeholder?: string;
|
218
|
+
label?: string;
|
219
|
+
maxDate?: Date;
|
220
|
+
showTimeSelect?: boolean;
|
221
|
+
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
222
|
+
customValue?: Date | null;
|
223
|
+
size?: TSize;
|
224
|
+
}
|
225
|
+
|
226
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
227
|
+
|
228
|
+
declare const Divider: FC<MenuDividerProps>;
|
229
|
+
|
230
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
231
|
+
|
232
|
+
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
233
|
+
|
234
|
+
export declare type DropdownButtonType = DropdownButtonType_2;
|
235
|
+
|
236
|
+
export declare type DropdownProps = DropdownProps_2;
|
237
|
+
|
238
|
+
export declare type DropdownPropsUnion = BaseProps_5 & DropdownProps;
|
239
|
+
|
240
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
241
|
+
|
242
|
+
export declare interface ErrorMessageProps {
|
243
|
+
errorMessage?: string;
|
244
|
+
isTouched?: boolean;
|
245
|
+
isSubmitted?: boolean;
|
246
|
+
}
|
247
|
+
|
248
|
+
declare type ExtraProps = {
|
249
|
+
containerClassName?: string;
|
250
|
+
menuClassName?: string;
|
251
|
+
};
|
252
|
+
|
253
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
254
|
+
|
255
|
+
export declare type FlexProps = FlexProps_2;
|
256
|
+
|
257
|
+
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
258
|
+
|
259
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
260
|
+
|
261
|
+
export declare interface InputProps extends InputProps_2 {
|
262
|
+
field?: ControllerRenderProps<any, any>;
|
263
|
+
formState?: UseFormStateReturn<any>;
|
264
|
+
label?: string;
|
265
|
+
customStyleInput?: string;
|
266
|
+
type?: CustomInputTypeAttribute;
|
267
|
+
afterOnChange?: (value: number | string | null) => void;
|
268
|
+
iconStartInput?: default_2.ReactNode;
|
269
|
+
iconEndInput?: default_2.ReactNode;
|
270
|
+
allowNegative?: boolean;
|
271
|
+
decimalScale?: number;
|
272
|
+
prefix?: string;
|
273
|
+
suffix?: string;
|
274
|
+
}
|
275
|
+
|
276
|
+
export declare type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
277
|
+
|
278
|
+
declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref"> & RefAttributes<HTMLLIElement>>;
|
279
|
+
|
280
|
+
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
281
|
+
|
282
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
283
|
+
|
284
|
+
export declare interface LabelProps {
|
285
|
+
label: string;
|
286
|
+
required?: boolean;
|
287
|
+
}
|
288
|
+
|
289
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
290
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
291
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
292
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
293
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
294
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
295
|
+
};
|
296
|
+
|
297
|
+
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
298
|
+
|
299
|
+
export declare const Menu: CompoundedMenu;
|
300
|
+
|
301
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
302
|
+
|
303
|
+
declare const MenuItem: FC<MenuItemProps>;
|
304
|
+
|
305
|
+
export declare interface MenuItemProps extends MenuItemProps_2 {
|
306
|
+
}
|
307
|
+
|
308
|
+
export declare interface MenuProps extends MenuProps_2 {
|
309
|
+
}
|
310
|
+
|
311
|
+
export declare const Modal: ({ children, onOk, onSubmit, ...rest }: CustomeModalProps) => JSX.Element;
|
312
|
+
|
313
|
+
declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
314
|
+
multiple: true;
|
315
|
+
};
|
316
|
+
|
317
|
+
export declare const Pagination: typeof Pagination_2;
|
318
|
+
|
319
|
+
export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> & {
|
320
|
+
position?: "top" | "bottom" | "both";
|
321
|
+
};
|
322
|
+
|
323
|
+
export { PaginationLocale }
|
324
|
+
|
325
|
+
export declare interface PaginationProps extends PaginationProps_2 {
|
326
|
+
}
|
327
|
+
|
328
|
+
export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
|
329
|
+
|
330
|
+
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
331
|
+
render(): JSX.Element;
|
332
|
+
}
|
333
|
+
|
334
|
+
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
335
|
+
control: Control<any, any>;
|
336
|
+
name: string;
|
337
|
+
component: TComponent;
|
338
|
+
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
339
|
+
|
340
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
341
|
+
|
342
|
+
export declare type PopoverProps = PopoverProps_2;
|
343
|
+
|
344
|
+
export declare type PopoverPropsUnion = BaseProps_2 & PopoverProps;
|
345
|
+
|
346
|
+
export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
347
|
+
onChange?: (event: any) => void;
|
348
|
+
afterOnChange?: (value: string | number) => void;
|
349
|
+
value?: string;
|
350
|
+
name?: string;
|
351
|
+
ref: any;
|
352
|
+
type?: TInputNumberType;
|
353
|
+
prefix?: string;
|
354
|
+
suffix?: string;
|
355
|
+
helperText?: () => JSX_2.Element | null;
|
356
|
+
}
|
357
|
+
|
358
|
+
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
359
|
+
|
360
|
+
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
361
|
+
field?: ControllerRenderProps<any, any>;
|
362
|
+
formState?: UseFormStateReturn<any>;
|
363
|
+
customStyleRadioGroup?: string;
|
364
|
+
customStyleRadio?: string;
|
365
|
+
customStyleWrap?: string;
|
366
|
+
afterOnChange?: (value: any) => void;
|
367
|
+
options: TOptionGRadio[];
|
368
|
+
position?: TPositionRadio;
|
369
|
+
}
|
370
|
+
|
371
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
372
|
+
|
373
|
+
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
374
|
+
field?: ControllerRenderProps<any, any>;
|
375
|
+
formState?: UseFormStateReturn<any>;
|
376
|
+
label?: string;
|
377
|
+
required?: boolean;
|
378
|
+
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
379
|
+
customStyleContainer?: string;
|
380
|
+
customStyleDatePicker?: string;
|
381
|
+
}
|
382
|
+
|
383
|
+
export declare const Row: (props: RowPropsUnion) => JSX.Element;
|
384
|
+
|
385
|
+
declare interface RowCommon {
|
386
|
+
[x: string]: any;
|
387
|
+
}
|
388
|
+
|
389
|
+
export declare interface RowProps extends RowProps_2 {
|
390
|
+
}
|
391
|
+
|
392
|
+
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
393
|
+
|
394
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
395
|
+
|
396
|
+
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
397
|
+
renderFilterFields?: (options: {
|
398
|
+
control: Control<T, any, T>;
|
399
|
+
setValue?: UseFormSetValue<T>;
|
400
|
+
handleSubmit?: UseFormHandleSubmit<T, T>;
|
401
|
+
}) => default_2.ReactNode;
|
402
|
+
onReset?: () => void;
|
403
|
+
classNamesContainer?: string;
|
404
|
+
classNameWrapperForm?: string;
|
405
|
+
hideDefaultSubmit?: boolean;
|
406
|
+
hideResetButton?: boolean;
|
407
|
+
initialValues?: DefaultValues<T>;
|
408
|
+
onSubmit: (data: T) => void;
|
409
|
+
}
|
410
|
+
|
411
|
+
export declare const SelectField: (props: SelectFieldProps) => JSX.Element;
|
412
|
+
|
413
|
+
export declare interface SelectFieldProps extends SelectProps {
|
414
|
+
field?: ControllerRenderProps<any, any>;
|
415
|
+
formState?: UseFormStateReturn<any>;
|
416
|
+
setValue?: UseFormSetValue<any>;
|
417
|
+
label?: string;
|
418
|
+
required?: boolean;
|
419
|
+
afterOnChange?: (value: any) => void;
|
420
|
+
customStyleContainer?: string;
|
421
|
+
}
|
422
|
+
|
423
|
+
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
424
|
+
multiple?: false;
|
425
|
+
};
|
426
|
+
|
427
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
428
|
+
|
429
|
+
export declare interface SkeletonProps extends SkeletonProps_2 {
|
430
|
+
type?: "table" | "form";
|
431
|
+
skeletonButtonCount?: number;
|
432
|
+
}
|
433
|
+
|
434
|
+
export declare const Space: typeof Space_2;
|
435
|
+
|
436
|
+
export declare interface SpaceProps extends SpaceProps_2 {
|
437
|
+
}
|
438
|
+
|
439
|
+
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
440
|
+
|
441
|
+
export declare const Splitter: typeof Splitter_2;
|
442
|
+
|
443
|
+
export declare interface SplitterProps extends SplitterProps_2 {
|
444
|
+
}
|
445
|
+
|
446
|
+
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
447
|
+
|
448
|
+
export declare interface StepProps extends StepProps_2 {
|
449
|
+
}
|
450
|
+
|
451
|
+
export declare const Steps: typeof Steps_2;
|
452
|
+
|
453
|
+
export declare interface StepsProps extends StepsProps_2 {
|
454
|
+
items?: StepProps[];
|
455
|
+
}
|
456
|
+
|
457
|
+
export declare type StepsPropsUnion = BaseProps_12 & StepsProps;
|
458
|
+
|
459
|
+
declare const SubMenu: FC<SubMenuProps>;
|
460
|
+
|
461
|
+
export declare interface SubMenuProps extends SubMenuProps_2 {
|
462
|
+
}
|
463
|
+
|
464
|
+
export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" | "checked"> {
|
465
|
+
field?: ControllerRenderProps<any, any>;
|
466
|
+
formState?: UseFormStateReturn<any>;
|
467
|
+
label?: string;
|
468
|
+
required?: boolean;
|
469
|
+
afterOnChange?: (checked: boolean) => void;
|
470
|
+
customStyleContainer?: string;
|
471
|
+
customStyleSwitch?: string;
|
472
|
+
}
|
473
|
+
|
474
|
+
declare type TabItem = {
|
475
|
+
key: string;
|
476
|
+
label: default_2.ReactNode;
|
477
|
+
children: default_2.ReactNode;
|
478
|
+
disabled?: boolean;
|
479
|
+
};
|
480
|
+
|
481
|
+
export declare const Table: <T extends RowCommon>({ data, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, ...rest }: TableCommonProps<T>) => JSX.Element;
|
482
|
+
|
483
|
+
export declare interface TableCommonProps<T> extends TableProps<T> {
|
484
|
+
data: T[];
|
485
|
+
columns: ColumnsType<T>;
|
486
|
+
loading?: boolean;
|
487
|
+
totalItems: number;
|
488
|
+
filters: any;
|
489
|
+
onChangePage: (page: number) => void;
|
490
|
+
onChangePageSize: (size: number) => void;
|
491
|
+
onSort?: (sortField: string | number | symbol) => void;
|
492
|
+
rowsSelected: default_2.Key[];
|
493
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
494
|
+
onRowClick?: (record: T) => void;
|
495
|
+
rowKey?: string;
|
496
|
+
}
|
497
|
+
|
498
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
499
|
+
|
500
|
+
export declare type TabsProps = TabsProps_2 & {
|
501
|
+
items: TabItem[];
|
502
|
+
lazyRender?: boolean;
|
503
|
+
};
|
504
|
+
|
505
|
+
export declare const Tag: React.FC<TaglineProps>;
|
506
|
+
|
507
|
+
export declare interface TaglineProps extends TagProps {
|
508
|
+
children: React.ReactNode | string;
|
509
|
+
}
|
510
|
+
|
511
|
+
export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
|
512
|
+
|
513
|
+
export declare interface TextAreaProps extends TextAreaProps_2 {
|
514
|
+
field?: ControllerRenderProps<any, any>;
|
515
|
+
formState?: UseFormStateReturn<any>;
|
516
|
+
label?: string;
|
517
|
+
customStyleTextarea?: string;
|
518
|
+
afterOnChange?: (value: string) => void;
|
519
|
+
required?: boolean;
|
520
|
+
}
|
521
|
+
|
522
|
+
declare type TInputNumberType = "number" | "money";
|
523
|
+
|
524
|
+
export declare const TinyMCE: {
|
525
|
+
(props: TinyProps): JSX.Element;
|
526
|
+
displayName: string;
|
527
|
+
};
|
528
|
+
|
529
|
+
export declare interface TinyProps extends IAllProps {
|
530
|
+
height?: number | string;
|
531
|
+
openHidenMenubar?: boolean;
|
532
|
+
required?: boolean;
|
533
|
+
field?: ControllerRenderProps<any, any>;
|
534
|
+
formState?: UseFormStateReturn<any>;
|
535
|
+
label?: string;
|
536
|
+
customStyleLabel?: string;
|
537
|
+
text_patterns?: any;
|
538
|
+
}
|
539
|
+
|
540
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
541
|
+
|
542
|
+
export declare type TooltipProps = TooltipProps_2;
|
543
|
+
|
544
|
+
declare type TOptionGRadio = {
|
545
|
+
label: string;
|
546
|
+
value: string | number;
|
547
|
+
};
|
548
|
+
|
549
|
+
declare type TPositionRadio = "before" | "after";
|
550
|
+
|
551
|
+
declare type TSize = "small" | "medium" | "large";
|
552
|
+
|
553
|
+
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
554
|
+
|
555
|
+
export declare const Typography: {
|
556
|
+
Title: (props: TitleProps) => JSX.Element;
|
557
|
+
Paragraph: (props: ParagraphProps) => JSX.Element;
|
558
|
+
Text: (props: TextProps) => JSX.Element;
|
559
|
+
};
|
560
|
+
|
561
|
+
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
562
|
+
field?: ControllerRenderProps<any, any>;
|
563
|
+
formState?: UseFormStateReturn<any>;
|
564
|
+
fieldState?: ControllerFieldState;
|
565
|
+
label?: string;
|
566
|
+
required?: boolean;
|
567
|
+
maxFiles?: number;
|
568
|
+
uploadButtonText?: string;
|
569
|
+
customStyleContainer?: string;
|
570
|
+
customStyleUpload?: string;
|
571
|
+
afterOnChange?: (fileList: UploadFile[]) => void;
|
572
|
+
}
|
573
|
+
|
574
|
+
export { }
|