@pnkx-lib/ui 1.8.2 → 1.8.6
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/assets/ui-TI_LyW6Y.css +1 -0
- package/dist/chunks/Switch-B9j33qoL.js +14880 -0
- package/dist/chunks/Tag-BhJhbXqW.js +4206 -0
- package/dist/chunks/createSuper-xZMa0AcQ.js +2769 -0
- package/dist/fields/index.js +11 -0
- package/dist/index.js +40 -0
- package/dist/style.css +1 -1
- package/dist/types/fields.d.ts +193 -0
- package/dist/types/index.d.ts +574 -0
- package/dist/types/ui.d.ts +387 -0
- package/dist/ui/index.js +31 -0
- package/dist/vite.svg +1 -0
- package/es/chunks/{ErrorBoundary-BxrzfgtL.js → ErrorBoundary-C5g427OM.js} +11495 -6899
- package/es/chunks/{Checkbox-CJ_M7IzZ.js → Radio-C3c5Olf1.js} +3 -52
- package/es/chunks/{Switch-eMq9KkOy.js → Switch-BUaKQ4cU.js} +99 -44
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +5 -1
- package/types/hooks.d.ts +5 -5
- package/types/index.d.ts +54 -48
- package/types/ui.d.ts +41 -35
package/types/ui.d.ts
CHANGED
@@ -17,8 +17,8 @@ import { ColProps as ColProps_2 } from 'antd';
|
|
17
17
|
import { ColSize } from 'antd/es/grid';
|
18
18
|
import { Component } from 'react';
|
19
19
|
import { Control } from 'react-hook-form';
|
20
|
-
import { default as default_2 } from '
|
21
|
-
import { default as default_3 } from '
|
20
|
+
import { default as default_2 } from 'antd/es/anchor/AnchorLink';
|
21
|
+
import { default as default_3 } from 'react';
|
22
22
|
import { DefaultOptionType } from 'antd/es/cascader';
|
23
23
|
import { DefaultValues } from 'react-hook-form';
|
24
24
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -86,7 +86,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
86
86
|
export declare type AlertProps = AlertProps_2;
|
87
87
|
|
88
88
|
export declare const Anchor: typeof Anchor_2 & {
|
89
|
-
Link: typeof
|
89
|
+
Link: typeof default_2;
|
90
90
|
};
|
91
91
|
|
92
92
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
@@ -94,7 +94,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
94
94
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
95
95
|
|
96
96
|
export declare interface AppfixProps extends AffixProps {
|
97
|
-
children:
|
97
|
+
children: default_3.ReactNode;
|
98
98
|
}
|
99
99
|
|
100
100
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
@@ -183,22 +183,23 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
183
183
|
|
184
184
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
185
185
|
|
186
|
-
export declare const BulkAction: ({ quantity,
|
186
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
187
187
|
|
188
188
|
export declare interface BulkActionProps {
|
189
189
|
quantity: number;
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
190
|
+
handleRestore?: () => void;
|
191
|
+
handleSendApproval?: () => void;
|
192
|
+
handleCancelSendApproval?: () => void;
|
193
|
+
handleRefuseApproval?: () => void;
|
194
|
+
handleApproval?: () => void;
|
195
|
+
handleCancelApproval?: () => void;
|
196
196
|
handleDelete?: () => void;
|
197
|
-
|
198
|
-
|
197
|
+
handleActivate?: () => void;
|
198
|
+
handleInActivate?: () => void;
|
199
|
+
status?: number;
|
199
200
|
}
|
200
201
|
|
201
|
-
export declare const Button:
|
202
|
+
export declare const Button: default_3.FC<ButtonProps>;
|
202
203
|
|
203
204
|
export declare type ButtonProps = ButtonProps_2;
|
204
205
|
|
@@ -231,15 +232,17 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
231
232
|
content: string;
|
232
233
|
titleCancelBtn?: string;
|
233
234
|
titleSubmitBtn?: string;
|
234
|
-
typeIcon:
|
235
|
+
typeIcon: ConfirmModalType;
|
235
236
|
handleCancel?: () => void;
|
236
237
|
handleSubmit?: () => void;
|
237
238
|
}
|
238
239
|
|
239
|
-
export declare
|
240
|
+
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
241
|
+
|
242
|
+
export declare const Container: default_3.FC<ContainerProps>;
|
240
243
|
|
241
244
|
export declare interface ContainerProps {
|
242
|
-
children:
|
245
|
+
children: default_3.ReactNode;
|
243
246
|
size?: TailwindMaxWidth;
|
244
247
|
className?: string;
|
245
248
|
}
|
@@ -280,7 +283,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
280
283
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
281
284
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
282
285
|
handleReload: () => void;
|
283
|
-
render():
|
286
|
+
render(): default_3.ReactNode;
|
284
287
|
}
|
285
288
|
|
286
289
|
export declare interface ErrorBoundaryProps {
|
@@ -293,7 +296,7 @@ export declare interface ErrorBoundaryState {
|
|
293
296
|
errorInfo: ErrorInfo | null;
|
294
297
|
}
|
295
298
|
|
296
|
-
export declare const ErrorMessage:
|
299
|
+
export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
297
300
|
|
298
301
|
export declare interface ErrorMessageProps {
|
299
302
|
errorMessage?: string;
|
@@ -338,12 +341,12 @@ export declare interface LabelProps {
|
|
338
341
|
required?: boolean;
|
339
342
|
}
|
340
343
|
|
341
|
-
export declare const Layout:
|
342
|
-
Header:
|
343
|
-
Footer:
|
344
|
-
Content:
|
345
|
-
Sider:
|
346
|
-
_InternalSiderContext:
|
344
|
+
export declare const Layout: default_3.FC<LayoutProps> & {
|
345
|
+
Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
346
|
+
Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
347
|
+
Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
348
|
+
Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
|
349
|
+
_InternalSiderContext: default_3.Context<SiderContextProps>;
|
347
350
|
};
|
348
351
|
|
349
352
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -431,7 +434,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
431
434
|
setValue?: UseFormSetValue<T>;
|
432
435
|
handleSubmit?: FormEventHandler<any>;
|
433
436
|
reset?: UseFormReset<T>;
|
434
|
-
}) =>
|
437
|
+
}) => default_3.ReactNode;
|
435
438
|
onReset?: () => void;
|
436
439
|
classNamesContainer?: string;
|
437
440
|
classNameWrapperForm?: string;
|
@@ -503,14 +506,14 @@ export declare type SubMenuProps = SubMenuProps_2;
|
|
503
506
|
|
504
507
|
declare type TabItem = {
|
505
508
|
key: string;
|
506
|
-
label:
|
507
|
-
children:
|
509
|
+
label: default_3.ReactNode;
|
510
|
+
children: default_3.ReactNode;
|
508
511
|
disabled?: boolean;
|
509
512
|
};
|
510
513
|
|
511
|
-
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;
|
514
|
+
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.Element;
|
512
515
|
|
513
|
-
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
516
|
+
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
514
517
|
|
515
518
|
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
516
519
|
editable?: boolean;
|
@@ -518,23 +521,26 @@ export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
|
518
521
|
|
519
522
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
520
523
|
dataSource: T[];
|
521
|
-
columns: TableColumnsType<T
|
524
|
+
columns: TableColumnsType<T>;
|
522
525
|
loading?: boolean;
|
523
526
|
totalItems: number;
|
524
527
|
filters: any;
|
525
528
|
onChangePage: (page: number) => void;
|
526
529
|
onChangePageSize: (size: number) => void;
|
527
530
|
onSort?: (sortField: string | number | symbol) => void;
|
528
|
-
rowsSelected?:
|
529
|
-
onSelect: (newSelectedRowKeys:
|
531
|
+
rowsSelected?: default_3.Key[];
|
532
|
+
onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
|
530
533
|
onRowClick?: (record: T) => void;
|
531
534
|
rowKey?: string | ((record: T) => string);
|
532
535
|
className?: string;
|
533
536
|
editable?: boolean;
|
534
537
|
onSave?: (data: T) => void;
|
538
|
+
titleSettingTableModal?: string;
|
539
|
+
showSetting?: boolean;
|
540
|
+
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
535
541
|
}
|
536
542
|
|
537
|
-
export declare const Tabs:
|
543
|
+
export declare const Tabs: default_3.FC<TabsProps>;
|
538
544
|
|
539
545
|
export declare type TabsProps = TabsProps_2 & {
|
540
546
|
items: TabItem[];
|
@@ -553,7 +559,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
553
559
|
|
554
560
|
export declare type TimelineProps = TimelineProps_2;
|
555
561
|
|
556
|
-
export declare const Tooltip:
|
562
|
+
export declare const Tooltip: default_3.FC<TooltipProps>;
|
557
563
|
|
558
564
|
export declare type TooltipProps = TooltipProps_2;
|
559
565
|
|