@pnkx-lib/ui 1.9.83 → 1.9.84

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/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/lib/message';
6
- import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
5
+ import { ArgsProps } from 'antd/es/notification';
6
+ import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
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 as JSX_2 } from 'react/jsx-runtime';
46
- import { JSX as JSX_3 } from 'react';
45
+ import { JSX } from 'react/jsx-runtime';
46
+ import { JSX as JSX_2 } 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 MenuProps_2 } from 'antd/es/menu';
50
+ import { MenuProps as MenuProps_3 } 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 '../../../../../../../../../../src/components/hooks';
53
+ import { PaginationFilters } 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 } from 'antd';
84
+ import { SwitchProps as SwitchProps_2 } 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 '../../../../../../../../../../../src/constants/table';
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,9 +101,8 @@ 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';
105
104
 
106
- export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
105
+ export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
107
106
 
108
107
  export declare interface ActionRowTableProps {
109
108
  type: TypeActionRowTable_2;
@@ -123,7 +122,7 @@ export declare const Anchor: typeof Anchor_2 & {
123
122
 
124
123
  export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
125
124
 
126
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
125
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
127
126
 
128
127
  export declare interface AppfixProps extends AffixProps {
129
128
  children: default_2.ReactNode;
@@ -133,7 +132,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
133
132
 
134
133
  export declare type AutoCompleteProps = AutoCompleteProps_2;
135
134
 
136
- export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
135
+ export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
137
136
 
138
137
  export declare interface BadgeProps extends BadgeProps_2 {
139
138
  type?: "error" | "info" | "success" | "warning";
@@ -203,7 +202,7 @@ declare type BaseProps_9 = {
203
202
  spaceClassName?: string;
204
203
  };
205
204
 
206
- export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
205
+ export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
207
206
 
208
207
  export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
209
208
  children?: Omit<BreadcrumbItemType, "children">[];
@@ -215,7 +214,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
215
214
 
216
215
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
217
216
 
218
- export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
217
+ export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
219
218
 
220
219
  export declare interface BulkActionProps {
221
220
  quantity?: number;
@@ -235,17 +234,17 @@ export declare const Button: default_2.FC<ButtonProps>;
235
234
 
236
235
  export declare type ButtonProps = ButtonProps_2;
237
236
 
238
- export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
237
+ export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
239
238
 
240
239
  export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
241
240
 
242
- export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
241
+ export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
243
242
 
244
243
  export declare interface CategoryStatusProps {
245
244
  status: number;
246
245
  }
247
246
 
248
- export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
247
+ export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
249
248
 
250
249
  export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
251
250
  field?: ControllerRenderProps<any, any>;
@@ -257,7 +256,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
257
256
  customStyleCheckbox?: string;
258
257
  }
259
258
 
260
- export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
259
+ export declare const Col: (props: ColPropsUnion) => JSX.Element;
261
260
 
262
261
  export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
263
262
  }
@@ -277,7 +276,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
277
276
  ItemGroup: typeof ItemGroup;
278
277
  };
279
278
 
280
- export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
279
+ export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
281
280
 
282
281
  export declare interface ConfirmModalProps extends ModalProps {
283
282
  title: string;
@@ -318,9 +317,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
318
317
  size?: TSize;
319
318
  }
320
319
 
321
- export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
320
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
322
321
 
323
- export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
322
+ export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
324
323
 
325
324
  declare const Divider_2: FC<MenuDividerProps>;
326
325
 
@@ -328,14 +327,14 @@ export declare interface DividerProps extends DividerProps_2 {
328
327
  children?: ReactNode | string;
329
328
  }
330
329
 
331
- export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
330
+ export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
332
331
 
333
332
  export declare interface DrawerProps extends DrawerProps_2 {
334
333
  children?: ReactNode;
335
334
  onSubmit?: (values: any) => void;
336
335
  }
337
336
 
338
- export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
337
+ export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
339
338
 
340
339
  export declare type DropdownButtonProps = DropdownButtonProps_2;
341
340
 
@@ -369,7 +368,7 @@ export declare interface ErrorBoundaryState {
369
368
  errorInfo: ErrorInfo | null;
370
369
  }
371
370
 
372
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
371
+ export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
373
372
 
374
373
  export declare interface ErrorMessageProps {
375
374
  errorMessage?: string;
@@ -382,13 +381,13 @@ declare type ExtraProps = {
382
381
  menuClassName?: string;
383
382
  };
384
383
 
385
- export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
384
+ export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
386
385
 
387
386
  export declare type FlexProps = FlexProps_2;
388
387
 
389
388
  export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
390
389
 
391
- export declare const Heading: (props: HeadingProps) => JSX_2.Element;
390
+ export declare const Heading: (props: HeadingProps) => JSX.Element;
392
391
 
393
392
  export declare interface HeadingProps {
394
393
  rightContent?: ReactNode;
@@ -401,9 +400,7 @@ export declare interface HeadingProps {
401
400
  declare const Image_2: React.FC<ImageProps>;
402
401
  export { Image_2 as Image }
403
402
 
404
- export declare type InitialFiltersSearch<T> = T & PaginationFilters;
405
-
406
- export declare const Input: (props: InputProps) => JSX_2.Element;
403
+ export declare const Input: (props: InputProps) => JSX.Element;
407
404
 
408
405
  export declare interface InputProps extends InputProps_2 {
409
406
  field?: ControllerRenderProps<any, any>;
@@ -426,7 +423,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
426
423
 
427
424
  export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
428
425
 
429
- export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
426
+ export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
430
427
 
431
428
  export declare interface LabelProps {
432
429
  label: string;
@@ -445,15 +442,49 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
445
442
 
446
443
  export declare const Menu: CompoundedMenu;
447
444
 
448
- export declare type MenuComponentProps = ExtraProps & MenuProps;
445
+ export declare type MenuComponentProps = ExtraProps & MenuProps_2;
449
446
 
450
447
  declare const MenuItem: FC<MenuItemProps>;
451
448
 
452
449
  export declare type MenuItemProps = MenuItemProps_2;
453
450
 
454
- export declare type MenuProps = MenuProps_2;
451
+ export declare type MenuProps = {
452
+ name: string;
453
+ href: string;
454
+ icon: default_2.ReactNode;
455
+ current: boolean;
456
+ subMenu?: Array<{
457
+ name: string;
458
+ href: string;
459
+ icon: default_2.ReactNode;
460
+ children?: Array<{
461
+ name: string;
462
+ href: string;
463
+ icon?: default_2.ReactNode;
464
+ }>;
465
+ }>;
466
+ };
467
+
468
+ declare type MenuProps_2 = MenuProps_3;
469
+
470
+ declare type MenuProps_4 = {
471
+ name: string;
472
+ href: string;
473
+ icon: React.ReactNode;
474
+ current: boolean;
475
+ subMenu?: Array<{
476
+ name: string;
477
+ href: string;
478
+ icon: React.ReactNode;
479
+ children?: Array<{
480
+ name: string;
481
+ href: string;
482
+ icon?: React.ReactNode;
483
+ }>;
484
+ }>;
485
+ };
455
486
 
456
- export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
487
+ export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
457
488
 
458
489
  export declare interface ModalProps extends ModalProps_2 {
459
490
  children?: ReactNode;
@@ -463,18 +494,18 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
463
494
  multiple: true;
464
495
  };
465
496
 
466
- export declare type OptionalArgsMessage = Partial<ArgsProps> & {
467
- type?: ArgsProps["type"];
497
+ export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
498
+ type?: ArgsProps_2["type"];
468
499
  };
469
500
 
470
- export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
501
+ export declare type OptionalArgsToast = Partial<ArgsProps> & {
471
502
  message?: React.ReactNode;
472
503
  type?: "success" | "error" | "info" | "warning";
473
504
  };
474
505
 
475
- export declare const PAGE_INDEX = "PageIndex";
506
+ export declare const PAGE_NUMBER = "page_number";
476
507
 
477
- export declare const PAGE_SIZE = "PageSize";
508
+ export declare const PAGE_SIZE = "page_size";
478
509
 
479
510
  export declare const Pagination: typeof Pagination_2;
480
511
 
@@ -482,11 +513,6 @@ export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> &
482
513
  position?: "top" | "bottom" | "both";
483
514
  };
484
515
 
485
- export declare interface PaginationFilters {
486
- PageSize: number;
487
- PageIndex: number;
488
- }
489
-
490
516
  export { PaginationLocale }
491
517
 
492
518
  export declare type PaginationProps = PaginationProps_2;
@@ -500,7 +526,7 @@ export declare type PnkxCollapseProps = CollapseProps;
500
526
  export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
501
527
 
502
528
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
503
- render(): JSX_2.Element;
529
+ render(): JSX.Element;
504
530
  }
505
531
 
506
532
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -513,13 +539,13 @@ export declare interface PnkxSpinProps extends SpinProps {
513
539
  children?: ReactNode;
514
540
  }
515
541
 
516
- export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
542
+ export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
517
543
 
518
544
  export declare interface PopconfirmProps extends PopconfirmProps_2 {
519
545
  children?: ReactNode;
520
546
  }
521
547
 
522
- export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
548
+ export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
523
549
 
524
550
  export declare type PopoverProps = PopoverProps_2;
525
551
 
@@ -534,14 +560,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
534
560
  type?: TInputNumberType;
535
561
  prefix?: string;
536
562
  suffix?: string;
537
- helperText?: () => JSX_3.Element | null;
563
+ helperText?: () => JSX_2.Element | null;
538
564
  }
539
565
 
540
566
  export declare const QRCode: React.FC<QRCodeProps>;
541
567
 
542
568
  export declare type QRCodeProps = QRCodeProps_2;
543
569
 
544
- export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
570
+ export declare const RadioGroup: (props: RadioProps) => JSX.Element;
545
571
 
546
572
  export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
547
573
  field?: ControllerRenderProps<any, any>;
@@ -554,7 +580,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
554
580
  position?: TPositionRadio;
555
581
  }
556
582
 
557
- export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
583
+ export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
558
584
 
559
585
  export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
560
586
  field?: ControllerRenderProps<any, any>;
@@ -568,13 +594,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
568
594
 
569
595
  export declare const Rate: React.FC<RateProps>;
570
596
 
571
- export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
597
+ export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
572
598
 
573
599
  export declare interface ResultProps extends ResultProps_2 {
574
600
  children?: ReactNode | string;
575
601
  }
576
602
 
577
- export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
603
+ export declare const Row: (props: RowPropsUnion) => JSX.Element;
578
604
 
579
605
  declare interface RowCommon {
580
606
  [x: string]: any;
@@ -582,7 +608,7 @@ declare interface RowCommon {
582
608
 
583
609
  export declare type RowPropsUnion = BaseProps_4 & RowProps;
584
610
 
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;
611
+ export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
586
612
 
587
613
  export declare interface SearchFiltersFormProps<T extends FieldValues> {
588
614
  renderFilterFields?: (options: {
@@ -604,7 +630,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
604
630
 
605
631
  export declare type SegmentedProps = SegmentedProps_2;
606
632
 
607
- export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
633
+ export declare const Select: (props: SelectFieldProps) => JSX.Element;
608
634
 
609
635
  export declare interface SelectFieldProps extends SelectProps {
610
636
  field?: ControllerRenderProps<any, any>;
@@ -613,31 +639,22 @@ export declare interface SelectFieldProps extends SelectProps {
613
639
  label?: string;
614
640
  required?: boolean;
615
641
  afterOnChange?: (value: any) => void;
616
- customStyleContainer?: string;
642
+ classNameContainer?: string;
643
+ classNameSelect?: string;
617
644
  }
618
645
 
619
- export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
646
+ export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
620
647
 
621
648
  export declare interface SidebarProps {
622
649
  children?: React.ReactNode;
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
- }>;
650
+ menu: Array<MenuProps_4>;
634
651
  }
635
652
 
636
653
  declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
637
654
  multiple?: false;
638
655
  };
639
656
 
640
- export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
657
+ export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
641
658
 
642
659
  export declare interface SkeletonProps extends SkeletonProps_2 {
643
660
  type?: "table" | "form";
@@ -652,7 +669,7 @@ export declare const Space: typeof Space_2;
652
669
 
653
670
  export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
654
671
 
655
- export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
672
+ export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
656
673
 
657
674
  export declare const Splitter: typeof Splitter_2;
658
675
 
@@ -680,9 +697,9 @@ declare const SubMenu: FC<SubMenuProps>;
680
697
 
681
698
  export declare type SubMenuProps = SubMenuProps_2;
682
699
 
683
- export declare const SwitchField: (props: SwitchFieldProps) => JSX_2.Element;
700
+ export declare const Switch: (props: SwitchProps) => JSX.Element;
684
701
 
685
- export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange"> {
702
+ export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
686
703
  field?: ControllerRenderProps<any, any>;
687
704
  formState?: UseFormStateReturn<any>;
688
705
  label?: string;
@@ -699,20 +716,18 @@ declare type TabItem = {
699
716
  disabled?: boolean;
700
717
  };
701
718
 
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;
719
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, renderGroupHeadingButton, showIndexColumn, ...rest }: TableCommonProps<T>) => JSX.Element;
703
720
 
704
721
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
705
722
 
706
- export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
707
- editable?: boolean;
708
- })[];
723
+ export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
709
724
 
710
725
  export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
711
- dataSource: T[];
726
+ dataSource?: T[];
712
727
  columns: TableColumnsType<T>;
713
728
  loading?: boolean;
714
- totalItems: number;
715
- filters: PaginationFilters_2 & {
729
+ totalItems?: number;
730
+ filters: PaginationFilters & {
716
731
  status?: number;
717
732
  };
718
733
  onChangePage: (page: number) => void;
@@ -722,17 +737,14 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
722
737
  onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
723
738
  onRowClick?: (record: T) => void;
724
739
  rowKey?: string | ((record: T) => string);
725
- className?: string;
726
- editable?: boolean;
727
- onSave?: (data: T) => void;
728
740
  titleSettingTableModal?: string;
729
741
  showSetting?: boolean;
730
742
  setColumns?: (newColumns: TableColumnsType<T>) => void;
731
743
  renderHeadingSearch: () => ReactNode;
732
744
  rightHeadingContent: ReactNode;
733
- status?: number;
734
- schema?: yup.AnyObjectSchema;
735
- breadCrumb?: ItemType[];
745
+ menu: Array<MenuProps>;
746
+ renderGroupHeadingButton: ReactNode;
747
+ showIndexColumn?: boolean;
736
748
  }
737
749
 
738
750
  export declare const Tabs: default_2.FC<TabsProps>;
@@ -768,7 +780,7 @@ declare type TInputNumberType = "number" | "money";
768
780
  export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
769
781
 
770
782
  export declare const TinyMCE: {
771
- (props: TinyProps): JSX_2.Element;
783
+ (props: TinyProps): JSX.Element;
772
784
  displayName: string;
773
785
  };
774
786
 
@@ -821,11 +833,13 @@ export declare enum TypeActionRowTable {
821
833
  export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
822
834
 
823
835
  export declare const Typography: {
824
- Title: (props: TitleProps) => JSX_2.Element;
825
- Paragraph: (props: ParagraphProps) => JSX_2.Element;
826
- Text: (props: TextProps) => JSX_2.Element;
836
+ Title: (props: TitleProps) => JSX.Element;
837
+ Paragraph: (props: ParagraphProps) => JSX.Element;
838
+ Text: (props: TextProps) => JSX.Element;
827
839
  };
828
840
 
841
+ export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
842
+
829
843
  export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
830
844
  field?: ControllerRenderProps<any, any>;
831
845
  formState?: UseFormStateReturn<any>;
@@ -839,20 +853,6 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
839
853
  afterOnChange?: (fileList: UploadFile[]) => void;
840
854
  }
841
855
 
842
- export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
843
- filters: InitialFiltersSearch<T>;
844
- rowsSelected: default_2.Key[];
845
- setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
846
- setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
847
- goToPage: (PageIndex: number) => void;
848
- changeRowlimit: (value: number) => void;
849
- resetToInitialFilters: () => void;
850
- handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
851
- handleChangePage: (nextPage: number) => void;
852
- handleRequestSort: (sortField: string | number | symbol) => void;
853
- handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
854
- };
855
-
856
856
  export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
857
857
 
858
858
  export declare const useToast: (defaultProps?: OptionalArgsToast) => {
@@ -863,12 +863,6 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
863
863
  warning(props?: OptionalArgsToast): void;
864
864
  };
865
865
 
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;
866
+ export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
873
867
 
874
868
  export { }