@pnkx-lib/ui 1.9.61 → 1.9.62

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/ui.d.ts CHANGED
@@ -34,14 +34,14 @@ import { FlexProps as FlexProps_2 } from 'antd';
34
34
  import { FormEventHandler } from 'react';
35
35
  import { ForwardRefExoticComponent } from 'react';
36
36
  import { ImageProps } from 'antd';
37
- import { JSX as JSX_2 } from 'react/jsx-runtime';
37
+ import { JSX } from 'react/jsx-runtime';
38
38
  import { MenuDividerProps } from 'antd/es/menu';
39
39
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
40
40
  import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
41
41
  import { MenuProps as MenuProps_2 } from 'antd/es/menu';
42
42
  import { ModalProps as ModalProps_2 } from 'antd';
43
43
  import { Pagination as Pagination_2 } from 'antd';
44
- import { PaginationFilters } from '../../../../../../../../../../src/components/hooks';
44
+ import { PaginationFilters } from '../../../../../../../../../../../src/components/hooks';
45
45
  import { PaginationLocale } from 'rc-pagination';
46
46
  import { PaginationProps as PaginationProps_2 } from 'antd';
47
47
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
@@ -77,14 +77,14 @@ import { TitleProps } from 'antd/es/typography/Title';
77
77
  import { TooltipProps as TooltipProps_2 } from 'antd';
78
78
  import { TourProps as TourProps_2 } from 'antd';
79
79
  import { TreeProps as TreeProps_2 } from 'antd';
80
- import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../src/constants/table';
80
+ import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../src/constants/table';
81
81
  import { UseFormReset } from 'react-hook-form';
82
82
  import { UseFormReturn } from 'react-hook-form';
83
83
  import { UseFormSetValue } from 'react-hook-form';
84
84
  import { WatermarkProps } from 'antd';
85
85
  import * as yup from 'yup';
86
86
 
87
- export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
87
+ export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
88
88
 
89
89
  export declare interface ActionRowTableProps {
90
90
  type: TypeActionRowTable_2;
@@ -104,7 +104,7 @@ export declare const Anchor: typeof Anchor_2 & {
104
104
 
105
105
  export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
106
106
 
107
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
107
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
108
108
 
109
109
  export declare interface AppfixProps extends AffixProps {
110
110
  children: default_2.ReactNode;
@@ -114,7 +114,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
114
114
 
115
115
  export declare type AutoCompleteProps = AutoCompleteProps_2;
116
116
 
117
- export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
117
+ export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
118
118
 
119
119
  export declare interface BadgeProps extends BadgeProps_2 {
120
120
  type?: "error" | "info" | "success" | "warning";
@@ -184,7 +184,7 @@ declare type BaseProps_9 = {
184
184
  spaceClassName?: string;
185
185
  };
186
186
 
187
- export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
187
+ export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
188
188
 
189
189
  export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
190
190
  children?: Omit<BreadcrumbItemType, "children">[];
@@ -196,7 +196,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
196
196
 
197
197
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
198
198
 
199
- export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
199
+ export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
200
200
 
201
201
  export declare interface BulkActionProps {
202
202
  quantity?: number;
@@ -216,17 +216,17 @@ export declare const Button: default_2.FC<ButtonProps>;
216
216
 
217
217
  export declare type ButtonProps = ButtonProps_2;
218
218
 
219
- export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
219
+ export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
220
220
 
221
221
  export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
222
222
 
223
- export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
223
+ export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
224
224
 
225
225
  export declare interface CategoryStatusProps {
226
226
  status: number;
227
227
  }
228
228
 
229
- export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
229
+ export declare const Col: (props: ColPropsUnion) => JSX.Element;
230
230
 
231
231
  export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
232
232
  }
@@ -244,7 +244,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
244
244
  ItemGroup: typeof ItemGroup;
245
245
  };
246
246
 
247
- export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
247
+ export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
248
248
 
249
249
  export declare interface ConfirmModalProps extends ModalProps {
250
250
  title: string;
@@ -266,7 +266,7 @@ export declare interface ContainerProps {
266
266
  className?: string;
267
267
  }
268
268
 
269
- export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
269
+ export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
270
270
 
271
271
  declare const Divider_2: FC<MenuDividerProps>;
272
272
 
@@ -274,14 +274,14 @@ export declare interface DividerProps extends DividerProps_2 {
274
274
  children?: ReactNode | string;
275
275
  }
276
276
 
277
- export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
277
+ export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
278
278
 
279
279
  export declare interface DrawerProps extends DrawerProps_2 {
280
280
  children?: ReactNode;
281
281
  onSubmit?: (values: any) => void;
282
282
  }
283
283
 
284
- export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
284
+ export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
285
285
 
286
286
  export declare type DropdownButtonProps = DropdownButtonProps_2;
287
287
 
@@ -315,7 +315,7 @@ export declare interface ErrorBoundaryState {
315
315
  errorInfo: ErrorInfo | null;
316
316
  }
317
317
 
318
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
318
+ export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
319
319
 
320
320
  export declare interface ErrorMessageProps {
321
321
  errorMessage?: string;
@@ -328,13 +328,13 @@ declare type ExtraProps = {
328
328
  menuClassName?: string;
329
329
  };
330
330
 
331
- export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
331
+ export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
332
332
 
333
333
  export declare type FlexProps = FlexProps_2;
334
334
 
335
335
  export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
336
336
 
337
- export declare const Heading: (props: HeadingProps) => JSX_2.Element;
337
+ export declare const Heading: (props: HeadingProps) => JSX.Element;
338
338
 
339
339
  export declare interface HeadingProps {
340
340
  rightContent?: ReactNode;
@@ -353,7 +353,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
353
353
 
354
354
  export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
355
355
 
356
- export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
356
+ export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
357
357
 
358
358
  export declare interface LabelProps {
359
359
  label: string;
@@ -380,7 +380,7 @@ export declare type MenuItemProps = MenuItemProps_2;
380
380
 
381
381
  export declare type MenuProps = MenuProps_2;
382
382
 
383
- export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
383
+ export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
384
384
 
385
385
  export declare interface ModalProps extends ModalProps_2 {
386
386
  children?: ReactNode;
@@ -416,13 +416,13 @@ export declare interface PnkxSpinProps extends SpinProps {
416
416
  children?: ReactNode;
417
417
  }
418
418
 
419
- export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
419
+ export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
420
420
 
421
421
  export declare interface PopconfirmProps extends PopconfirmProps_2 {
422
422
  children?: ReactNode;
423
423
  }
424
424
 
425
- export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
425
+ export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
426
426
 
427
427
  export declare type PopoverProps = PopoverProps_2;
428
428
 
@@ -434,13 +434,13 @@ export declare type QRCodeProps = QRCodeProps_2;
434
434
 
435
435
  export declare const Rate: React.FC<RateProps>;
436
436
 
437
- export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
437
+ export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
438
438
 
439
439
  export declare interface ResultProps extends ResultProps_2 {
440
440
  children?: ReactNode | string;
441
441
  }
442
442
 
443
- export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
443
+ export declare const Row: (props: RowPropsUnion) => JSX.Element;
444
444
 
445
445
  declare interface RowCommon {
446
446
  [x: string]: any;
@@ -448,7 +448,7 @@ declare interface RowCommon {
448
448
 
449
449
  export declare type RowPropsUnion = BaseProps_4 & RowProps;
450
450
 
451
- export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
451
+ export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
452
452
 
453
453
  export declare interface SearchFiltersFormProps<T extends FieldValues> {
454
454
  renderFilterFields?: (options: {
@@ -470,7 +470,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
470
470
 
471
471
  export declare type SegmentedProps = SegmentedProps_2;
472
472
 
473
- export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
473
+ export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
474
474
 
475
475
  export declare interface SidebarProps {
476
476
  children?: React.ReactNode;
@@ -491,7 +491,7 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
491
491
  multiple?: false;
492
492
  };
493
493
 
494
- export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
494
+ export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
495
495
 
496
496
  export declare interface SkeletonProps extends SkeletonProps_2 {
497
497
  type?: "table" | "form";
@@ -506,7 +506,7 @@ export declare const Space: typeof Space_2;
506
506
 
507
507
  export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
508
508
 
509
- export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
509
+ export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
510
510
 
511
511
  export declare const Splitter: typeof Splitter_2;
512
512
 
@@ -541,7 +541,7 @@ declare type TabItem = {
541
541
  disabled?: boolean;
542
542
  };
543
543
 
544
- 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;
544
+ 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, initialValueForm, ...rest }: TableCommonProps<T>) => JSX.Element;
545
545
 
546
546
  export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
547
547
 
@@ -575,6 +575,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
575
575
  status?: number;
576
576
  schema?: yup.AnyObjectSchema;
577
577
  breadCrumb?: ItemType[];
578
+ initialValueForm?: T;
578
579
  }
579
580
 
580
581
  export declare const Tabs: default_2.FC<TabsProps>;
@@ -627,11 +628,11 @@ export declare enum TypeActionRowTable {
627
628
  export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
628
629
 
629
630
  export declare const Typography: {
630
- Title: (props: TitleProps) => JSX_2.Element;
631
- Paragraph: (props: ParagraphProps) => JSX_2.Element;
632
- Text: (props: TextProps) => JSX_2.Element;
631
+ Title: (props: TitleProps) => JSX.Element;
632
+ Paragraph: (props: ParagraphProps) => JSX.Element;
633
+ Text: (props: TextProps) => JSX.Element;
633
634
  };
634
635
 
635
- export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
636
+ export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
636
637
 
637
638
  export { }