@pnkx-lib/ui 1.6.4 → 1.6.5
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/es/chunks/Checkbox-D7JJEnsk.js +156 -0
- package/es/chunks/ConfirmModal-B7zTPvH9.js +12649 -0
- package/es/chunks/Switch-03DUOS9f.js +39396 -0
- package/es/chunks/cloneDeep-DWe9CKmh.js +2424 -0
- package/es/chunks/common-D_yedQmH.js +1283 -0
- package/es/chunks/useMessage-DtM7Izkl.js +97 -0
- package/es/fields/index.js +17 -2
- package/es/hooks/index.js +12 -2
- package/es/index.js +75 -5
- package/es/ui/index.js +61 -2
- package/package.json +1 -1
- package/types/fields.d.ts +9 -10
- package/types/hooks.d.ts +5 -5
- package/types/index.d.ts +44 -44
- package/types/ui.d.ts +28 -27
package/types/ui.d.ts
CHANGED
@@ -16,8 +16,8 @@ import { ColorPickerProps } from 'antd';
|
|
16
16
|
import { ColProps as ColProps_2 } from 'antd';
|
17
17
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
18
18
|
import { Control } from 'react-hook-form';
|
19
|
-
import { default as default_2 } from '
|
20
|
-
import { default as default_3 } from '
|
19
|
+
import { default as default_2 } from 'react';
|
20
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
21
21
|
import { DefaultOptionType } from 'antd/es/cascader';
|
22
22
|
import { DefaultValues } from 'react-hook-form';
|
23
23
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -32,7 +32,7 @@ import { FlexProps as FlexProps_2 } from 'antd';
|
|
32
32
|
import { FormEventHandler } from 'react';
|
33
33
|
import { ForwardRefExoticComponent } from 'react';
|
34
34
|
import { ImageProps } from 'antd';
|
35
|
-
import { JSX } from 'react
|
35
|
+
import { JSX } from 'react';
|
36
36
|
import { MenuDividerProps } from 'antd/es/menu';
|
37
37
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
38
38
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
@@ -84,7 +84,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
84
84
|
export declare type AlertProps = AlertProps_2;
|
85
85
|
|
86
86
|
export declare const Anchor: typeof Anchor_2 & {
|
87
|
-
Link: typeof
|
87
|
+
Link: typeof default_3;
|
88
88
|
};
|
89
89
|
|
90
90
|
export declare interface AnchorProps extends AnchorProps_2 {
|
@@ -92,21 +92,22 @@ export declare interface AnchorProps extends AnchorProps_2 {
|
|
92
92
|
|
93
93
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
94
94
|
|
95
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
95
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => default_2.JSX.Element;
|
96
96
|
|
97
97
|
export declare interface AppfixProps extends AffixProps {
|
98
|
-
children:
|
98
|
+
children: default_2.ReactNode;
|
99
99
|
}
|
100
100
|
|
101
101
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
102
102
|
|
103
103
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
104
104
|
|
105
|
-
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
105
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
106
106
|
|
107
107
|
export declare interface BadgeProps extends BadgeProps_2 {
|
108
108
|
type?: "error" | "info" | "success" | "warning";
|
109
109
|
children?: React.ReactNode;
|
110
|
+
customColor?: string;
|
110
111
|
}
|
111
112
|
|
112
113
|
declare type BaseProps = {
|
@@ -183,7 +184,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
183
184
|
|
184
185
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
185
186
|
|
186
|
-
export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
|
187
|
+
export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => default_2.JSX.Element;
|
187
188
|
|
188
189
|
export declare interface BulkActionProps {
|
189
190
|
quantity: number;
|
@@ -198,7 +199,7 @@ export declare interface BulkActionProps {
|
|
198
199
|
handleLock?: () => void;
|
199
200
|
}
|
200
201
|
|
201
|
-
export declare const Button:
|
202
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
202
203
|
|
203
204
|
export declare type ButtonProps = ButtonProps_2;
|
204
205
|
|
@@ -239,10 +240,10 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
239
240
|
handleSubmit?: () => void;
|
240
241
|
}
|
241
242
|
|
242
|
-
export declare const Container:
|
243
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
243
244
|
|
244
245
|
export declare interface ContainerProps {
|
245
|
-
children:
|
246
|
+
children: default_2.ReactNode;
|
246
247
|
size?: TailwindMaxWidth;
|
247
248
|
className?: string;
|
248
249
|
}
|
@@ -276,7 +277,7 @@ export declare const Empty: React.FC<EmptyProps>;
|
|
276
277
|
|
277
278
|
export declare type EmptyProps = EmptyProps_2;
|
278
279
|
|
279
|
-
export declare const ErrorMessage:
|
280
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => default_2.JSX.Element | null>;
|
280
281
|
|
281
282
|
export declare interface ErrorMessageProps {
|
282
283
|
errorMessage?: string;
|
@@ -321,12 +322,12 @@ export declare interface LabelProps {
|
|
321
322
|
required?: boolean;
|
322
323
|
}
|
323
324
|
|
324
|
-
export declare const Layout:
|
325
|
-
Header:
|
326
|
-
Footer:
|
327
|
-
Content:
|
328
|
-
Sider:
|
329
|
-
_InternalSiderContext:
|
325
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
326
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
327
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
328
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
329
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
330
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
330
331
|
};
|
331
332
|
|
332
333
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -412,7 +413,7 @@ export declare interface RowProps extends RowProps_2 {
|
|
412
413
|
|
413
414
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
414
415
|
|
415
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
416
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => default_2.JSX.Element;
|
416
417
|
|
417
418
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
418
419
|
renderFilterFields?: (options: {
|
@@ -420,7 +421,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
420
421
|
setValue?: UseFormSetValue<T>;
|
421
422
|
handleSubmit?: FormEventHandler<any>;
|
422
423
|
reset?: UseFormReset<T>;
|
423
|
-
}) =>
|
424
|
+
}) => default_2.ReactNode;
|
424
425
|
onReset?: () => void;
|
425
426
|
classNamesContainer?: string;
|
426
427
|
classNameWrapperForm?: string;
|
@@ -500,12 +501,12 @@ export declare interface SubMenuProps extends SubMenuProps_2 {
|
|
500
501
|
|
501
502
|
declare type TabItem = {
|
502
503
|
key: string;
|
503
|
-
label:
|
504
|
-
children:
|
504
|
+
label: default_2.ReactNode;
|
505
|
+
children: default_2.ReactNode;
|
505
506
|
disabled?: boolean;
|
506
507
|
};
|
507
508
|
|
508
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => JSX.Element;
|
509
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => default_2.JSX.Element;
|
509
510
|
|
510
511
|
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
511
512
|
|
@@ -522,8 +523,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
522
523
|
onChangePage: (page: number) => void;
|
523
524
|
onChangePageSize: (size: number) => void;
|
524
525
|
onSort?: (sortField: string | number | symbol) => void;
|
525
|
-
rowsSelected?:
|
526
|
-
onSelect: (newSelectedRowKeys:
|
526
|
+
rowsSelected?: default_2.Key[];
|
527
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
527
528
|
onRowClick?: (record: T) => void;
|
528
529
|
rowKey?: string | ((record: T) => string);
|
529
530
|
className?: string;
|
@@ -531,7 +532,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
531
532
|
onSave?: (data: T) => void;
|
532
533
|
}
|
533
534
|
|
534
|
-
export declare const Tabs:
|
535
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
535
536
|
|
536
537
|
export declare type TabsProps = TabsProps_2 & {
|
537
538
|
items: TabItem[];
|
@@ -550,7 +551,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
550
551
|
|
551
552
|
export declare type TimelineProps = TimelineProps_2;
|
552
553
|
|
553
|
-
export declare const Tooltip:
|
554
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
554
555
|
|
555
556
|
export declare type TooltipProps = TooltipProps_2;
|
556
557
|
|