@pnkx-lib/ui 1.9.82 → 1.9.83
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/chunks/{AntdIcon-BhLLkfpo.js → AntdIcon-bLE_HmL-.js} +16 -9
- package/es/chunks/{Switch-BL4ntIVa.js → Switch-Dbw7Aemy.js} +1 -1
- package/es/chunks/{index-BStcC2Jc.js → index-Bp_HTq2H.js} +20 -71
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/fields.d.ts +15 -18
- package/types/hooks.d.ts +14 -8
- package/types/index.d.ts +89 -103
- package/types/ui.d.ts +61 -78
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';
|
@@ -42,15 +42,15 @@ 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';
|
50
|
-
import { MenuProps as
|
50
|
+
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
51
51
|
import { ModalProps as ModalProps_2 } from 'antd';
|
52
52
|
import { Pagination as Pagination_2 } from 'antd';
|
53
|
-
import { PaginationFilters as PaginationFilters_2 } from '
|
53
|
+
import { PaginationFilters as PaginationFilters_2 } from '../../../../../../../../../../src/components/hooks';
|
54
54
|
import { PaginationLocale } from 'rc-pagination';
|
55
55
|
import { PaginationProps as PaginationProps_2 } from 'antd';
|
56
56
|
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
@@ -81,7 +81,7 @@ import { StepProps as StepProps_2 } from 'antd';
|
|
81
81
|
import { Steps as Steps_2 } from 'antd';
|
82
82
|
import { StepsProps as StepsProps_2 } from 'antd';
|
83
83
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
84
|
-
import { SwitchProps
|
84
|
+
import { SwitchProps } from 'antd';
|
85
85
|
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
86
86
|
import { TableProps } from 'antd/lib/table';
|
87
87
|
import { TabsProps as TabsProps_2 } from 'antd';
|
@@ -93,7 +93,7 @@ import { TitleProps } from 'antd/es/typography/Title';
|
|
93
93
|
import { TooltipProps as TooltipProps_2 } from 'antd';
|
94
94
|
import { TourProps as TourProps_2 } from 'antd';
|
95
95
|
import { TreeProps as TreeProps_2 } from 'antd';
|
96
|
-
import { TypeActionRowTable as TypeActionRowTable_2 } from '
|
96
|
+
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../src/constants/table';
|
97
97
|
import { UploadFile } from 'antd';
|
98
98
|
import { UploadProps } from 'antd';
|
99
99
|
import { UseFormReset } from 'react-hook-form';
|
@@ -101,8 +101,9 @@ import { UseFormReturn } from 'react-hook-form';
|
|
101
101
|
import { UseFormSetValue } from 'react-hook-form';
|
102
102
|
import { UseFormStateReturn } from 'react-hook-form';
|
103
103
|
import { WatermarkProps } from 'antd';
|
104
|
+
import * as yup from 'yup';
|
104
105
|
|
105
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) =>
|
106
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
|
106
107
|
|
107
108
|
export declare interface ActionRowTableProps {
|
108
109
|
type: TypeActionRowTable_2;
|
@@ -122,7 +123,7 @@ export declare const Anchor: typeof Anchor_2 & {
|
|
122
123
|
|
123
124
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
124
125
|
|
125
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
126
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
|
126
127
|
|
127
128
|
export declare interface AppfixProps extends AffixProps {
|
128
129
|
children: default_2.ReactNode;
|
@@ -132,7 +133,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
132
133
|
|
133
134
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
134
135
|
|
135
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
136
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
|
136
137
|
|
137
138
|
export declare interface BadgeProps extends BadgeProps_2 {
|
138
139
|
type?: "error" | "info" | "success" | "warning";
|
@@ -202,7 +203,7 @@ declare type BaseProps_9 = {
|
|
202
203
|
spaceClassName?: string;
|
203
204
|
};
|
204
205
|
|
205
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
206
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
|
206
207
|
|
207
208
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
208
209
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -214,7 +215,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
214
215
|
|
215
216
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
216
217
|
|
217
|
-
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) =>
|
218
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
|
218
219
|
|
219
220
|
export declare interface BulkActionProps {
|
220
221
|
quantity?: number;
|
@@ -234,17 +235,17 @@ export declare const Button: default_2.FC<ButtonProps>;
|
|
234
235
|
|
235
236
|
export declare type ButtonProps = ButtonProps_2;
|
236
237
|
|
237
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
238
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
|
238
239
|
|
239
240
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
240
241
|
|
241
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) =>
|
242
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
|
242
243
|
|
243
244
|
export declare interface CategoryStatusProps {
|
244
245
|
status: number;
|
245
246
|
}
|
246
247
|
|
247
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
248
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
|
248
249
|
|
249
250
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
250
251
|
field?: ControllerRenderProps<any, any>;
|
@@ -256,7 +257,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
256
257
|
customStyleCheckbox?: string;
|
257
258
|
}
|
258
259
|
|
259
|
-
export declare const Col: (props: ColPropsUnion) =>
|
260
|
+
export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
|
260
261
|
|
261
262
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
262
263
|
}
|
@@ -276,7 +277,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
276
277
|
ItemGroup: typeof ItemGroup;
|
277
278
|
};
|
278
279
|
|
279
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
280
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
|
280
281
|
|
281
282
|
export declare interface ConfirmModalProps extends ModalProps {
|
282
283
|
title: string;
|
@@ -317,9 +318,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
317
318
|
size?: TSize;
|
318
319
|
}
|
319
320
|
|
320
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
321
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
|
321
322
|
|
322
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
323
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
|
323
324
|
|
324
325
|
declare const Divider_2: FC<MenuDividerProps>;
|
325
326
|
|
@@ -327,14 +328,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
327
328
|
children?: ReactNode | string;
|
328
329
|
}
|
329
330
|
|
330
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
331
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
|
331
332
|
|
332
333
|
export declare interface DrawerProps extends DrawerProps_2 {
|
333
334
|
children?: ReactNode;
|
334
335
|
onSubmit?: (values: any) => void;
|
335
336
|
}
|
336
337
|
|
337
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
338
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
|
338
339
|
|
339
340
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
340
341
|
|
@@ -368,7 +369,7 @@ export declare interface ErrorBoundaryState {
|
|
368
369
|
errorInfo: ErrorInfo | null;
|
369
370
|
}
|
370
371
|
|
371
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) =>
|
372
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
|
372
373
|
|
373
374
|
export declare interface ErrorMessageProps {
|
374
375
|
errorMessage?: string;
|
@@ -381,13 +382,13 @@ declare type ExtraProps = {
|
|
381
382
|
menuClassName?: string;
|
382
383
|
};
|
383
384
|
|
384
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
385
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
|
385
386
|
|
386
387
|
export declare type FlexProps = FlexProps_2;
|
387
388
|
|
388
389
|
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
389
390
|
|
390
|
-
export declare const Heading: (props: HeadingProps) =>
|
391
|
+
export declare const Heading: (props: HeadingProps) => JSX_2.Element;
|
391
392
|
|
392
393
|
export declare interface HeadingProps {
|
393
394
|
rightContent?: ReactNode;
|
@@ -402,7 +403,7 @@ export { Image_2 as Image }
|
|
402
403
|
|
403
404
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
404
405
|
|
405
|
-
export declare const Input: (props: InputProps) =>
|
406
|
+
export declare const Input: (props: InputProps) => JSX_2.Element;
|
406
407
|
|
407
408
|
export declare interface InputProps extends InputProps_2 {
|
408
409
|
field?: ControllerRenderProps<any, any>;
|
@@ -425,7 +426,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
425
426
|
|
426
427
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
427
428
|
|
428
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
429
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
|
429
430
|
|
430
431
|
export declare interface LabelProps {
|
431
432
|
label: string;
|
@@ -444,49 +445,15 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
|
|
444
445
|
|
445
446
|
export declare const Menu: CompoundedMenu;
|
446
447
|
|
447
|
-
export declare type MenuComponentProps = ExtraProps &
|
448
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
448
449
|
|
449
450
|
declare const MenuItem: FC<MenuItemProps>;
|
450
451
|
|
451
452
|
export declare type MenuItemProps = MenuItemProps_2;
|
452
453
|
|
453
|
-
export declare type MenuProps =
|
454
|
-
name: string;
|
455
|
-
href: string;
|
456
|
-
icon: default_2.ReactNode;
|
457
|
-
current: boolean;
|
458
|
-
subMenu?: Array<{
|
459
|
-
name: string;
|
460
|
-
href: string;
|
461
|
-
icon: default_2.ReactNode;
|
462
|
-
children?: Array<{
|
463
|
-
name: string;
|
464
|
-
href: string;
|
465
|
-
icon?: default_2.ReactNode;
|
466
|
-
}>;
|
467
|
-
}>;
|
468
|
-
};
|
454
|
+
export declare type MenuProps = MenuProps_2;
|
469
455
|
|
470
|
-
declare
|
471
|
-
|
472
|
-
declare type MenuProps_4 = {
|
473
|
-
name: string;
|
474
|
-
href: string;
|
475
|
-
icon: React.ReactNode;
|
476
|
-
current: boolean;
|
477
|
-
subMenu?: Array<{
|
478
|
-
name: string;
|
479
|
-
href: string;
|
480
|
-
icon: React.ReactNode;
|
481
|
-
children?: Array<{
|
482
|
-
name: string;
|
483
|
-
href: string;
|
484
|
-
icon?: React.ReactNode;
|
485
|
-
}>;
|
486
|
-
}>;
|
487
|
-
};
|
488
|
-
|
489
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
456
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
|
490
457
|
|
491
458
|
export declare interface ModalProps extends ModalProps_2 {
|
492
459
|
children?: ReactNode;
|
@@ -496,18 +463,18 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
496
463
|
multiple: true;
|
497
464
|
};
|
498
465
|
|
499
|
-
export declare type OptionalArgsMessage = Partial<
|
500
|
-
type?:
|
466
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
467
|
+
type?: ArgsProps["type"];
|
501
468
|
};
|
502
469
|
|
503
|
-
export declare type OptionalArgsToast = Partial<
|
470
|
+
export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
|
504
471
|
message?: React.ReactNode;
|
505
472
|
type?: "success" | "error" | "info" | "warning";
|
506
473
|
};
|
507
474
|
|
508
|
-
export declare const
|
475
|
+
export declare const PAGE_INDEX = "PageIndex";
|
509
476
|
|
510
|
-
export declare const PAGE_SIZE = "
|
477
|
+
export declare const PAGE_SIZE = "PageSize";
|
511
478
|
|
512
479
|
export declare const Pagination: typeof Pagination_2;
|
513
480
|
|
@@ -516,8 +483,8 @@ export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> &
|
|
516
483
|
};
|
517
484
|
|
518
485
|
export declare interface PaginationFilters {
|
519
|
-
|
520
|
-
|
486
|
+
PageSize: number;
|
487
|
+
PageIndex: number;
|
521
488
|
}
|
522
489
|
|
523
490
|
export { PaginationLocale }
|
@@ -533,7 +500,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
533
500
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
534
501
|
|
535
502
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
536
|
-
render():
|
503
|
+
render(): JSX_2.Element;
|
537
504
|
}
|
538
505
|
|
539
506
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -546,13 +513,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
546
513
|
children?: ReactNode;
|
547
514
|
}
|
548
515
|
|
549
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
516
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
|
550
517
|
|
551
518
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
552
519
|
children?: ReactNode;
|
553
520
|
}
|
554
521
|
|
555
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
522
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
|
556
523
|
|
557
524
|
export declare type PopoverProps = PopoverProps_2;
|
558
525
|
|
@@ -567,14 +534,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
567
534
|
type?: TInputNumberType;
|
568
535
|
prefix?: string;
|
569
536
|
suffix?: string;
|
570
|
-
helperText?: () =>
|
537
|
+
helperText?: () => JSX_3.Element | null;
|
571
538
|
}
|
572
539
|
|
573
540
|
export declare const QRCode: React.FC<QRCodeProps>;
|
574
541
|
|
575
542
|
export declare type QRCodeProps = QRCodeProps_2;
|
576
543
|
|
577
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
544
|
+
export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
|
578
545
|
|
579
546
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
580
547
|
field?: ControllerRenderProps<any, any>;
|
@@ -587,7 +554,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
587
554
|
position?: TPositionRadio;
|
588
555
|
}
|
589
556
|
|
590
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
557
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
|
591
558
|
|
592
559
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
593
560
|
field?: ControllerRenderProps<any, any>;
|
@@ -601,13 +568,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
601
568
|
|
602
569
|
export declare const Rate: React.FC<RateProps>;
|
603
570
|
|
604
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
571
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
|
605
572
|
|
606
573
|
export declare interface ResultProps extends ResultProps_2 {
|
607
574
|
children?: ReactNode | string;
|
608
575
|
}
|
609
576
|
|
610
|
-
export declare const Row: (props: RowPropsUnion) =>
|
577
|
+
export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
|
611
578
|
|
612
579
|
declare interface RowCommon {
|
613
580
|
[x: string]: any;
|
@@ -615,7 +582,7 @@ declare interface RowCommon {
|
|
615
582
|
|
616
583
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
617
584
|
|
618
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
585
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
|
619
586
|
|
620
587
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
621
588
|
renderFilterFields?: (options: {
|
@@ -637,7 +604,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
637
604
|
|
638
605
|
export declare type SegmentedProps = SegmentedProps_2;
|
639
606
|
|
640
|
-
export declare const Select: (props: SelectFieldProps) =>
|
607
|
+
export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
|
641
608
|
|
642
609
|
export declare interface SelectFieldProps extends SelectProps {
|
643
610
|
field?: ControllerRenderProps<any, any>;
|
@@ -646,22 +613,31 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
646
613
|
label?: string;
|
647
614
|
required?: boolean;
|
648
615
|
afterOnChange?: (value: any) => void;
|
649
|
-
|
650
|
-
classNameSelect?: string;
|
616
|
+
customStyleContainer?: string;
|
651
617
|
}
|
652
618
|
|
653
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) =>
|
619
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
|
654
620
|
|
655
621
|
export declare interface SidebarProps {
|
656
622
|
children?: React.ReactNode;
|
657
|
-
menu: Array<
|
623
|
+
menu: Array<{
|
624
|
+
name: string;
|
625
|
+
href: string;
|
626
|
+
icon: React.ReactNode;
|
627
|
+
current: boolean;
|
628
|
+
children?: Array<{
|
629
|
+
name: string;
|
630
|
+
href: string;
|
631
|
+
icon?: React.ReactNode;
|
632
|
+
}>;
|
633
|
+
}>;
|
658
634
|
}
|
659
635
|
|
660
636
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
661
637
|
multiple?: false;
|
662
638
|
};
|
663
639
|
|
664
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
640
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
|
665
641
|
|
666
642
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
667
643
|
type?: "table" | "form";
|
@@ -676,7 +652,7 @@ export declare const Space: typeof Space_2;
|
|
676
652
|
|
677
653
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
678
654
|
|
679
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
655
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
|
680
656
|
|
681
657
|
export declare const Splitter: typeof Splitter_2;
|
682
658
|
|
@@ -704,9 +680,9 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
704
680
|
|
705
681
|
export declare type SubMenuProps = SubMenuProps_2;
|
706
682
|
|
707
|
-
export declare const
|
683
|
+
export declare const SwitchField: (props: SwitchFieldProps) => JSX_2.Element;
|
708
684
|
|
709
|
-
export declare interface
|
685
|
+
export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange"> {
|
710
686
|
field?: ControllerRenderProps<any, any>;
|
711
687
|
formState?: UseFormStateReturn<any>;
|
712
688
|
label?: string;
|
@@ -723,17 +699,19 @@ declare type TabItem = {
|
|
723
699
|
disabled?: boolean;
|
724
700
|
};
|
725
701
|
|
726
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent,
|
702
|
+
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, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, ...rest }: TableCommonProps<T>) => JSX_2.Element;
|
727
703
|
|
728
704
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
729
705
|
|
730
|
-
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
706
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
707
|
+
editable?: boolean;
|
708
|
+
})[];
|
731
709
|
|
732
710
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
733
|
-
dataSource
|
711
|
+
dataSource: T[];
|
734
712
|
columns: TableColumnsType<T>;
|
735
713
|
loading?: boolean;
|
736
|
-
totalItems
|
714
|
+
totalItems: number;
|
737
715
|
filters: PaginationFilters_2 & {
|
738
716
|
status?: number;
|
739
717
|
};
|
@@ -744,13 +722,17 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
744
722
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
745
723
|
onRowClick?: (record: T) => void;
|
746
724
|
rowKey?: string | ((record: T) => string);
|
725
|
+
className?: string;
|
726
|
+
editable?: boolean;
|
727
|
+
onSave?: (data: T) => void;
|
747
728
|
titleSettingTableModal?: string;
|
748
729
|
showSetting?: boolean;
|
749
730
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
750
731
|
renderHeadingSearch: () => ReactNode;
|
751
732
|
rightHeadingContent: ReactNode;
|
752
|
-
|
753
|
-
|
733
|
+
status?: number;
|
734
|
+
schema?: yup.AnyObjectSchema;
|
735
|
+
breadCrumb?: ItemType[];
|
754
736
|
}
|
755
737
|
|
756
738
|
export declare const Tabs: default_2.FC<TabsProps>;
|
@@ -786,7 +768,7 @@ declare type TInputNumberType = "number" | "money";
|
|
786
768
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
787
769
|
|
788
770
|
export declare const TinyMCE: {
|
789
|
-
(props: TinyProps):
|
771
|
+
(props: TinyProps): JSX_2.Element;
|
790
772
|
displayName: string;
|
791
773
|
};
|
792
774
|
|
@@ -839,13 +821,11 @@ export declare enum TypeActionRowTable {
|
|
839
821
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
840
822
|
|
841
823
|
export declare const Typography: {
|
842
|
-
Title: (props: TitleProps) =>
|
843
|
-
Paragraph: (props: ParagraphProps) =>
|
844
|
-
Text: (props: TextProps) =>
|
824
|
+
Title: (props: TitleProps) => JSX_2.Element;
|
825
|
+
Paragraph: (props: ParagraphProps) => JSX_2.Element;
|
826
|
+
Text: (props: TextProps) => JSX_2.Element;
|
845
827
|
};
|
846
828
|
|
847
|
-
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
848
|
-
|
849
829
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
850
830
|
field?: ControllerRenderProps<any, any>;
|
851
831
|
formState?: UseFormStateReturn<any>;
|
@@ -864,7 +844,7 @@ export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch
|
|
864
844
|
rowsSelected: default_2.Key[];
|
865
845
|
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
866
846
|
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
867
|
-
goToPage: (
|
847
|
+
goToPage: (PageIndex: number) => void;
|
868
848
|
changeRowlimit: (value: number) => void;
|
869
849
|
resetToInitialFilters: () => void;
|
870
850
|
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
@@ -883,6 +863,12 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
883
863
|
warning(props?: OptionalArgsToast): void;
|
884
864
|
};
|
885
865
|
|
886
|
-
export declare const
|
866
|
+
export declare const useToggle: () => {
|
867
|
+
open: boolean;
|
868
|
+
toggle: () => void;
|
869
|
+
shouldRender: boolean;
|
870
|
+
};
|
871
|
+
|
872
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
|
887
873
|
|
888
874
|
export { }
|