@pnkx-lib/ui 1.9.35 → 1.9.36
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/style.css +2 -2
- package/es/assets/{ui-Jiyqh2vu.css → ui-CY4SzUee.css} +35 -0
- package/es/chunks/{index-DqaASOI_.js → CategoryStatus-DdH8iIZs.js} +554 -207
- package/es/chunks/Radio-BI84-zGV.js +53 -0
- package/es/chunks/{Switch-Ck9WdQgt.js → Switch-DIm0IBxH.js} +69 -14
- package/es/chunks/{table-B28OPA57.js → cloneDeep-BLYi2V0G.js} +5 -32
- package/es/chunks/{_MapCache-hm6_DB7i.js → common-b3FKGF0Y.js} +7 -1
- package/es/chunks/{useToggle-C5Y4aFUQ.js → useMessage-D_-VT5B4.js} +3 -15
- package/es/fields/index.js +2 -2
- package/es/hooks/index.js +2 -2
- package/es/index.js +5 -5
- package/es/ui/index.js +2 -3
- package/package.json +3 -7
- package/types/fields.d.ts +11 -11
- package/types/hooks.d.ts +6 -19
- package/types/index.d.ts +75 -132
- package/types/ui.d.ts +51 -95
- package/es/chunks/Radio-5j1KNRlx.js +0 -103
package/types/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { AffixProps } from 'antd';
|
|
2
2
|
import { AlertProps as AlertProps_2 } from 'antd';
|
3
3
|
import { Anchor as Anchor_2 } from 'antd';
|
4
4
|
import { AnchorProps } from 'antd';
|
5
|
-
import { ArgsProps } from 'antd/
|
6
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
5
|
+
import { ArgsProps } from 'antd/lib/message';
|
6
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
|
7
7
|
import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
|
8
8
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
9
9
|
import { BasicProps } from 'antd/es/layout/layout';
|
@@ -23,8 +23,8 @@ import { Control } from 'react-hook-form';
|
|
23
23
|
import { ControllerFieldState } from 'react-hook-form';
|
24
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
25
25
|
import { Dayjs } from 'dayjs';
|
26
|
-
import { default as default_2 } from '
|
27
|
-
import { default as default_3 } from '
|
26
|
+
import { default as default_2 } from 'antd/es/anchor/AnchorLink';
|
27
|
+
import { default as default_3 } from 'react';
|
28
28
|
import { DefaultOptionType } from 'antd/es/cascader';
|
29
29
|
import { DefaultValues } from 'react-hook-form';
|
30
30
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -42,8 +42,8 @@ import { ForwardRefExoticComponent } from 'react';
|
|
42
42
|
import { IAllProps } from '@tinymce/tinymce-react';
|
43
43
|
import { ImageProps } from 'antd';
|
44
44
|
import { InputProps as InputProps_2 } from 'antd';
|
45
|
-
import { JSX } from 'react/jsx-runtime';
|
46
|
-
import { JSX as
|
45
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
46
|
+
import { JSX as JSX_3 } from 'react';
|
47
47
|
import { MenuDividerProps } from 'antd/es/menu';
|
48
48
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
49
49
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
@@ -92,7 +92,6 @@ import { TitleProps } from 'antd/es/typography/Title';
|
|
92
92
|
import { TooltipProps as TooltipProps_2 } from 'antd';
|
93
93
|
import { TourProps as TourProps_2 } from 'antd';
|
94
94
|
import { TreeProps as TreeProps_2 } from 'antd';
|
95
|
-
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../src/constants/table';
|
96
95
|
import { UploadFile } from 'antd';
|
97
96
|
import { UploadProps } from 'antd';
|
98
97
|
import { UseFormReset } from 'react-hook-form';
|
@@ -101,37 +100,27 @@ import { UseFormSetValue } from 'react-hook-form';
|
|
101
100
|
import { UseFormStateReturn } from 'react-hook-form';
|
102
101
|
import { WatermarkProps } from 'antd';
|
103
102
|
|
104
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
|
105
|
-
|
106
|
-
export declare interface ActionRowTableProps {
|
107
|
-
type: TypeActionRowTable_2;
|
108
|
-
handleClick?: () => void;
|
109
|
-
contentTooltip?: default_2.ReactNode;
|
110
|
-
content?: default_2.ReactNode;
|
111
|
-
diabled?: boolean;
|
112
|
-
}
|
113
|
-
|
114
103
|
export declare const Alert: React.FC<AlertProps>;
|
115
104
|
|
116
105
|
export declare type AlertProps = AlertProps_2;
|
117
106
|
|
118
107
|
export declare const Anchor: typeof Anchor_2 & {
|
119
|
-
Link: typeof
|
108
|
+
Link: typeof default_2;
|
120
109
|
};
|
121
110
|
|
122
111
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
123
112
|
|
124
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
113
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
|
125
114
|
|
126
115
|
export declare interface AppfixProps extends AffixProps {
|
127
|
-
children:
|
116
|
+
children: default_3.ReactNode;
|
128
117
|
}
|
129
118
|
|
130
119
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
131
120
|
|
132
121
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
133
122
|
|
134
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
123
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
|
135
124
|
|
136
125
|
export declare interface BadgeProps extends BadgeProps_2 {
|
137
126
|
type?: "error" | "info" | "success" | "warning";
|
@@ -201,7 +190,7 @@ declare type BaseProps_9 = {
|
|
201
190
|
spaceClassName?: string;
|
202
191
|
};
|
203
192
|
|
204
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
193
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
|
205
194
|
|
206
195
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
207
196
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -213,7 +202,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
213
202
|
|
214
203
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
215
204
|
|
216
|
-
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) =>
|
205
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
|
217
206
|
|
218
207
|
export declare interface BulkActionProps {
|
219
208
|
quantity: number;
|
@@ -229,21 +218,15 @@ export declare interface BulkActionProps {
|
|
229
218
|
status?: number;
|
230
219
|
}
|
231
220
|
|
232
|
-
export declare const Button:
|
221
|
+
export declare const Button: default_3.FC<ButtonProps>;
|
233
222
|
|
234
223
|
export declare type ButtonProps = ButtonProps_2;
|
235
224
|
|
236
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
225
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
|
237
226
|
|
238
227
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
239
228
|
|
240
|
-
export declare const
|
241
|
-
|
242
|
-
export declare interface CategoryStatusProps {
|
243
|
-
status: number;
|
244
|
-
}
|
245
|
-
|
246
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
229
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
|
247
230
|
|
248
231
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
249
232
|
field?: ControllerRenderProps<any, any>;
|
@@ -255,7 +238,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
255
238
|
customStyleCheckbox?: string;
|
256
239
|
}
|
257
240
|
|
258
|
-
export declare const Col: (props: ColPropsUnion) =>
|
241
|
+
export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
|
259
242
|
|
260
243
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
261
244
|
}
|
@@ -275,7 +258,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
275
258
|
ItemGroup: typeof ItemGroup;
|
276
259
|
};
|
277
260
|
|
278
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
261
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
|
279
262
|
|
280
263
|
export declare interface ConfirmModalProps extends ModalProps {
|
281
264
|
title: string;
|
@@ -289,15 +272,15 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
289
272
|
|
290
273
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
291
274
|
|
292
|
-
export declare const Container:
|
275
|
+
export declare const Container: default_3.FC<ContainerProps>;
|
293
276
|
|
294
277
|
export declare interface ContainerProps {
|
295
|
-
children:
|
278
|
+
children: default_3.ReactNode;
|
296
279
|
size?: TailwindMaxWidth;
|
297
280
|
className?: string;
|
298
281
|
}
|
299
282
|
|
300
|
-
declare type CustomInputTypeAttribute =
|
283
|
+
declare type CustomInputTypeAttribute = default_3.HTMLInputTypeAttribute | "money";
|
301
284
|
|
302
285
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
303
286
|
field?: ControllerRenderProps<any, any>;
|
@@ -311,14 +294,14 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
311
294
|
label?: string;
|
312
295
|
maxDate?: Date;
|
313
296
|
showTimeSelect?: boolean;
|
314
|
-
customOnChange?: (date: any, event:
|
297
|
+
customOnChange?: (date: any, event: default_3.SyntheticEvent<any>) => void;
|
315
298
|
customValue?: Date | null;
|
316
299
|
size?: TSize;
|
317
300
|
}
|
318
301
|
|
319
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
302
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
|
320
303
|
|
321
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
304
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
|
322
305
|
|
323
306
|
declare const Divider_2: FC<MenuDividerProps>;
|
324
307
|
|
@@ -326,14 +309,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
326
309
|
children?: ReactNode | string;
|
327
310
|
}
|
328
311
|
|
329
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
312
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
|
330
313
|
|
331
314
|
export declare interface DrawerProps extends DrawerProps_2 {
|
332
315
|
children?: ReactNode;
|
333
316
|
onSubmit?: (values: any) => void;
|
334
317
|
}
|
335
318
|
|
336
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
319
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
|
337
320
|
|
338
321
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
339
322
|
|
@@ -354,7 +337,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
354
337
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
355
338
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
356
339
|
handleReload: () => void;
|
357
|
-
render():
|
340
|
+
render(): default_3.ReactNode;
|
358
341
|
}
|
359
342
|
|
360
343
|
export declare interface ErrorBoundaryProps {
|
@@ -367,7 +350,7 @@ export declare interface ErrorBoundaryState {
|
|
367
350
|
errorInfo: ErrorInfo | null;
|
368
351
|
}
|
369
352
|
|
370
|
-
export declare const ErrorMessage:
|
353
|
+
export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
|
371
354
|
|
372
355
|
export declare interface ErrorMessageProps {
|
373
356
|
errorMessage?: string;
|
@@ -380,13 +363,13 @@ declare type ExtraProps = {
|
|
380
363
|
menuClassName?: string;
|
381
364
|
};
|
382
365
|
|
383
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
366
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
|
384
367
|
|
385
368
|
export declare type FlexProps = FlexProps_2;
|
386
369
|
|
387
370
|
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
388
371
|
|
389
|
-
export declare const Heading: (props: HeadingProps) =>
|
372
|
+
export declare const Heading: (props: HeadingProps) => JSX_2.Element;
|
390
373
|
|
391
374
|
export declare interface HeadingProps {
|
392
375
|
rightContent?: ReactNode;
|
@@ -401,7 +384,7 @@ export { Image_2 as Image }
|
|
401
384
|
|
402
385
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
403
386
|
|
404
|
-
export declare const Input: (props: InputProps) =>
|
387
|
+
export declare const Input: (props: InputProps) => JSX_2.Element;
|
405
388
|
|
406
389
|
export declare interface InputProps extends InputProps_2 {
|
407
390
|
field?: ControllerRenderProps<any, any>;
|
@@ -410,8 +393,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
410
393
|
customStyleInput?: string;
|
411
394
|
type?: CustomInputTypeAttribute;
|
412
395
|
afterOnChange?: (value: number | string | null) => void;
|
413
|
-
iconStartInput?:
|
414
|
-
iconEndInput?:
|
396
|
+
iconStartInput?: default_3.ReactNode;
|
397
|
+
iconEndInput?: default_3.ReactNode;
|
415
398
|
allowNegative?: boolean;
|
416
399
|
decimalScale?: number;
|
417
400
|
prefix?: string;
|
@@ -424,19 +407,19 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
424
407
|
|
425
408
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
426
409
|
|
427
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
410
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
|
428
411
|
|
429
412
|
export declare interface LabelProps {
|
430
413
|
label: string;
|
431
414
|
required?: boolean;
|
432
415
|
}
|
433
416
|
|
434
|
-
export declare const Layout:
|
435
|
-
Header:
|
436
|
-
Footer:
|
437
|
-
Content:
|
438
|
-
Sider:
|
439
|
-
_InternalSiderContext:
|
417
|
+
export declare const Layout: default_3.FC<LayoutProps> & {
|
418
|
+
Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
419
|
+
Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
420
|
+
Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
421
|
+
Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
|
422
|
+
_InternalSiderContext: default_3.Context<SiderContextProps>;
|
440
423
|
};
|
441
424
|
|
442
425
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -451,29 +434,25 @@ export declare type MenuItemProps = MenuItemProps_2;
|
|
451
434
|
|
452
435
|
export declare type MenuProps = MenuProps_2;
|
453
436
|
|
454
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) =>
|
437
|
+
export declare const Modal: ({ children, onOk, onSubmit, ...rest }: ModalProps) => JSX_2.Element;
|
455
438
|
|
456
439
|
export declare interface ModalProps extends ModalProps_2 {
|
457
440
|
children?: ReactNode;
|
441
|
+
onSubmit?: () => void;
|
458
442
|
}
|
459
443
|
|
460
444
|
declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
461
445
|
multiple: true;
|
462
446
|
};
|
463
447
|
|
464
|
-
export declare type OptionalArgsMessage = Partial<
|
465
|
-
type?:
|
448
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
449
|
+
type?: ArgsProps["type"];
|
466
450
|
};
|
467
451
|
|
468
|
-
export declare type OptionalArgsToast = Partial<
|
452
|
+
export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
|
469
453
|
message?: React.ReactNode;
|
470
|
-
type?: "success" | "error" | "info" | "warning";
|
471
454
|
};
|
472
455
|
|
473
|
-
export declare const PAGE_INDEX = "PageIndex";
|
474
|
-
|
475
|
-
export declare const PAGE_SIZE = "PageSize";
|
476
|
-
|
477
456
|
export declare const Pagination: typeof Pagination_2;
|
478
457
|
|
479
458
|
export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> & {
|
@@ -498,7 +477,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
498
477
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
499
478
|
|
500
479
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
501
|
-
render():
|
480
|
+
render(): JSX_2.Element;
|
502
481
|
}
|
503
482
|
|
504
483
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -511,13 +490,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
511
490
|
children?: ReactNode;
|
512
491
|
}
|
513
492
|
|
514
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
493
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
|
515
494
|
|
516
495
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
517
496
|
children?: ReactNode;
|
518
497
|
}
|
519
498
|
|
520
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
499
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
|
521
500
|
|
522
501
|
export declare type PopoverProps = PopoverProps_2;
|
523
502
|
|
@@ -532,14 +511,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
532
511
|
type?: TInputNumberType;
|
533
512
|
prefix?: string;
|
534
513
|
suffix?: string;
|
535
|
-
helperText?: () =>
|
514
|
+
helperText?: () => JSX_3.Element | null;
|
536
515
|
}
|
537
516
|
|
538
517
|
export declare const QRCode: React.FC<QRCodeProps>;
|
539
518
|
|
540
519
|
export declare type QRCodeProps = QRCodeProps_2;
|
541
520
|
|
542
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
521
|
+
export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
|
543
522
|
|
544
523
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
545
524
|
field?: ControllerRenderProps<any, any>;
|
@@ -552,7 +531,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
552
531
|
position?: TPositionRadio;
|
553
532
|
}
|
554
533
|
|
555
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
534
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
|
556
535
|
|
557
536
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
558
537
|
field?: ControllerRenderProps<any, any>;
|
@@ -566,13 +545,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
566
545
|
|
567
546
|
export declare const Rate: React.FC<RateProps>;
|
568
547
|
|
569
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
548
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
|
570
549
|
|
571
550
|
export declare interface ResultProps extends ResultProps_2 {
|
572
551
|
children?: ReactNode | string;
|
573
552
|
}
|
574
553
|
|
575
|
-
export declare const Row: (props: RowPropsUnion) =>
|
554
|
+
export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
|
576
555
|
|
577
556
|
declare interface RowCommon {
|
578
557
|
[x: string]: any;
|
@@ -580,7 +559,7 @@ declare interface RowCommon {
|
|
580
559
|
|
581
560
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
582
561
|
|
583
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
562
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
|
584
563
|
|
585
564
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
586
565
|
renderFilterFields?: (options: {
|
@@ -588,7 +567,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
588
567
|
setValue?: UseFormSetValue<T>;
|
589
568
|
handleSubmit?: FormEventHandler<any>;
|
590
569
|
reset?: UseFormReset<T>;
|
591
|
-
}) =>
|
570
|
+
}) => default_3.ReactNode;
|
592
571
|
onReset?: () => void;
|
593
572
|
classNamesContainer?: string;
|
594
573
|
classNameWrapperForm?: string;
|
@@ -602,7 +581,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
602
581
|
|
603
582
|
export declare type SegmentedProps = SegmentedProps_2;
|
604
583
|
|
605
|
-
export declare const Select: (props: SelectFieldProps) =>
|
584
|
+
export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
|
606
585
|
|
607
586
|
export declare interface SelectFieldProps extends SelectProps {
|
608
587
|
field?: ControllerRenderProps<any, any>;
|
@@ -614,7 +593,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
614
593
|
customStyleContainer?: string;
|
615
594
|
}
|
616
595
|
|
617
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) =>
|
596
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
|
618
597
|
|
619
598
|
export declare interface SidebarProps {
|
620
599
|
children?: React.ReactNode;
|
@@ -635,31 +614,23 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
635
614
|
multiple?: false;
|
636
615
|
};
|
637
616
|
|
638
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
617
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
|
639
618
|
|
640
619
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
641
620
|
type?: "table" | "form";
|
642
621
|
skeletonButtonCount?: number;
|
643
622
|
}
|
644
623
|
|
645
|
-
export declare const SORT_BY = "SortBy";
|
646
|
-
|
647
|
-
export declare const SORT_DESC = "SortDesc";
|
648
|
-
|
649
624
|
export declare const Space: typeof Space_2;
|
650
625
|
|
651
626
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
652
627
|
|
653
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
628
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
|
654
629
|
|
655
630
|
export declare const Splitter: typeof Splitter_2;
|
656
631
|
|
657
632
|
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
658
633
|
|
659
|
-
export declare const START_PAGE = 1;
|
660
|
-
|
661
|
-
export declare const START_PAGE_SIZE = 10;
|
662
|
-
|
663
634
|
export declare const Statistic: React.FC<StatisticProps>;
|
664
635
|
|
665
636
|
export declare type StatisticProps = StatisticProps_2;
|
@@ -690,12 +661,12 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
690
661
|
|
691
662
|
declare type TabItem = {
|
692
663
|
key: string;
|
693
|
-
label:
|
694
|
-
children:
|
664
|
+
label: default_3.ReactNode;
|
665
|
+
children: default_3.ReactNode;
|
695
666
|
disabled?: boolean;
|
696
667
|
};
|
697
668
|
|
698
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, ...rest }: TableCommonProps<T>) =>
|
669
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, ...rest }: TableCommonProps<T>) => JSX_2.Element;
|
699
670
|
|
700
671
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
701
672
|
|
@@ -712,8 +683,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
712
683
|
onChangePage: (page: number) => void;
|
713
684
|
onChangePageSize: (size: number) => void;
|
714
685
|
onSort?: (sortField: string | number | symbol) => void;
|
715
|
-
rowsSelected?:
|
716
|
-
onSelect: (newSelectedRowKeys:
|
686
|
+
rowsSelected?: default_3.Key[];
|
687
|
+
onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
|
717
688
|
onRowClick?: (record: T) => void;
|
718
689
|
rowKey?: string | ((record: T) => string);
|
719
690
|
className?: string;
|
@@ -724,7 +695,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
724
695
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
725
696
|
}
|
726
697
|
|
727
|
-
export declare const Tabs:
|
698
|
+
export declare const Tabs: default_3.FC<TabsProps>;
|
728
699
|
|
729
700
|
export declare type TabsProps = TabsProps_2 & {
|
730
701
|
items: TabItem[];
|
@@ -754,10 +725,8 @@ export declare type TimelineProps = TimelineProps_2;
|
|
754
725
|
|
755
726
|
declare type TInputNumberType = "number" | "money";
|
756
727
|
|
757
|
-
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
758
|
-
|
759
728
|
export declare const TinyMCE: {
|
760
|
-
(props: TinyProps):
|
729
|
+
(props: TinyProps): JSX_2.Element;
|
761
730
|
displayName: string;
|
762
731
|
};
|
763
732
|
|
@@ -772,7 +741,7 @@ export declare interface TinyProps extends IAllProps {
|
|
772
741
|
text_patterns?: any;
|
773
742
|
}
|
774
743
|
|
775
|
-
export declare const Tooltip:
|
744
|
+
export declare const Tooltip: default_3.FC<TooltipProps>;
|
776
745
|
|
777
746
|
export declare type TooltipProps = TooltipProps_2;
|
778
747
|
|
@@ -793,26 +762,12 @@ export declare type TreeProps = TreeProps_2;
|
|
793
762
|
|
794
763
|
declare type TSize = "small" | "medium" | "large";
|
795
764
|
|
796
|
-
export declare enum TypeActionRowTable {
|
797
|
-
DELETE = "DELETE",
|
798
|
-
EDIT = "EDIT",
|
799
|
-
UNDO = "UNDO",
|
800
|
-
CANCELUNDO = "CANCELUNDO",
|
801
|
-
CHECKIN = "CHECKIN",
|
802
|
-
PRINT = "PRINT",
|
803
|
-
PAYMENT = "PAYMENT",
|
804
|
-
PLAY = "PLAY",
|
805
|
-
PAUSE = "PAUSE",
|
806
|
-
DOWNLOAD = "DOWNLOAD",
|
807
|
-
VIEW = "VIEW"
|
808
|
-
}
|
809
|
-
|
810
765
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
811
766
|
|
812
767
|
export declare const Typography: {
|
813
|
-
Title: (props: TitleProps) =>
|
814
|
-
Paragraph: (props: ParagraphProps) =>
|
815
|
-
Text: (props: TextProps) =>
|
768
|
+
Title: (props: TitleProps) => JSX_2.Element;
|
769
|
+
Paragraph: (props: ParagraphProps) => JSX_2.Element;
|
770
|
+
Text: (props: TextProps) => JSX_2.Element;
|
816
771
|
};
|
817
772
|
|
818
773
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
@@ -830,13 +785,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
830
785
|
|
831
786
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
832
787
|
filters: InitialFiltersSearch<T>;
|
833
|
-
rowsSelected:
|
834
|
-
setRowsSelected:
|
835
|
-
setFilters:
|
788
|
+
rowsSelected: default_3.Key[];
|
789
|
+
setRowsSelected: default_3.Dispatch<default_3.SetStateAction<default_3.Key[]>>;
|
790
|
+
setFilters: default_3.Dispatch<default_3.SetStateAction<InitialFiltersSearch<T>>>;
|
836
791
|
goToPage: (PageIndex: number) => void;
|
837
792
|
changeRowlimit: (value: number) => void;
|
838
793
|
resetToInitialFilters: () => void;
|
839
|
-
handleCheckBox: (newSelectedRowKeys:
|
794
|
+
handleCheckBox: (newSelectedRowKeys: default_3.Key[]) => void;
|
840
795
|
handleChangePage: (nextPage: number) => void;
|
841
796
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
842
797
|
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
@@ -844,20 +799,8 @@ export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch
|
|
844
799
|
|
845
800
|
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
846
801
|
|
847
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) =>
|
848
|
-
(overrideProps?: OptionalArgsToast): void;
|
849
|
-
success(props?: OptionalArgsToast): void;
|
850
|
-
error(props?: OptionalArgsToast): void;
|
851
|
-
info(props?: OptionalArgsToast): void;
|
852
|
-
warning(props?: OptionalArgsToast): void;
|
853
|
-
};
|
854
|
-
|
855
|
-
export declare const useToggle: () => {
|
856
|
-
open: boolean;
|
857
|
-
toggle: () => void;
|
858
|
-
shouldRender: boolean;
|
859
|
-
};
|
802
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => (overrideProps?: OptionalArgsToast) => void;
|
860
803
|
|
861
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
804
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
|
862
805
|
|
863
806
|
export { }
|