@pnkx-lib/ui 1.9.113 → 1.9.118

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.
Files changed (120) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{AntdIcon-CtaI55qk.js → AntdIcon-BS99Z6_t.js} +7203 -460
  3. package/es/chunks/{BreadcrumbHeading-CSKdtCYe.js → Card-CCVU-3bH.js} +73 -59
  4. package/es/chunks/{Switch-CigYj8FF.js → Switch-vaUhKEAu.js} +1 -1
  5. package/es/fields/index.js +2 -2
  6. package/es/index.js +3 -3
  7. package/es/ui/index.js +2 -2
  8. package/package.json +3 -2
  9. package/types/fields/CascaderField.d.ts +13 -0
  10. package/types/fields/Checkbox.d.ts +12 -0
  11. package/types/fields/DatePicker.d.ts +22 -0
  12. package/types/fields/DateRangePicker.d.ts +13 -0
  13. package/types/fields/Input.d.ts +32 -0
  14. package/types/fields/PnkxField.d.ts +12 -0
  15. package/types/fields/Radio.d.ts +19 -0
  16. package/types/fields/Select.d.ts +13 -0
  17. package/types/fields/Switch.d.ts +12 -0
  18. package/types/fields/Textarea.d.ts +13 -0
  19. package/types/fields/TinyMCE.d.ts +16 -0
  20. package/types/fields/Upload.d.ts +15 -0
  21. package/types/fields/index.d.ts +11 -0
  22. package/types/fields.d.ts +2 -198
  23. package/types/hooks/index.d.ts +2 -0
  24. package/types/hooks/useDebounce.d.ts +1 -0
  25. package/types/hooks/useMessage.d.ts +5 -0
  26. package/types/hooks/useToast.d.ts +12 -0
  27. package/types/hooks.d.ts +2 -23
  28. package/types/icons/ActivateIcon.d.ts +6 -0
  29. package/types/icons/AllowClearIcon.d.ts +2 -0
  30. package/types/icons/ApprovalIcon.d.ts +6 -0
  31. package/types/icons/CancelApprovalIcon.d.ts +6 -0
  32. package/types/icons/CancelSendApprovalIcon.d.ts +6 -0
  33. package/types/icons/DeleteIcon.d.ts +6 -0
  34. package/types/icons/DragIcon.d.ts +6 -0
  35. package/types/icons/EditIcon.d.ts +6 -0
  36. package/types/icons/ErrorConfirmIcon.d.ts +3 -0
  37. package/types/icons/InActivateIcon.d.ts +6 -0
  38. package/types/icons/InfoConfirmIcon.d.ts +3 -0
  39. package/types/icons/MoreIcon.d.ts +6 -0
  40. package/types/icons/PlusIcon.d.ts +6 -0
  41. package/types/icons/RefuseApprovalIcon.d.ts +6 -0
  42. package/types/icons/RestoreIcon.d.ts +6 -0
  43. package/types/icons/SearchAdvanceIcon.d.ts +6 -0
  44. package/types/icons/SearchIcon.d.ts +2 -0
  45. package/types/icons/SendApprovalIcon.d.ts +6 -0
  46. package/types/icons/SettingIcon.d.ts +1 -0
  47. package/types/icons/SuccessIcon.d.ts +3 -0
  48. package/types/icons/TrashCanIcon.d.ts +2 -0
  49. package/types/icons/WaitingApprovalIcon.d.ts +6 -0
  50. package/types/icons/WarningConfirmIcon.d.ts +3 -0
  51. package/types/icons/index.d.ts +18 -0
  52. package/types/index.d.ts +3 -922
  53. package/types/ui/Alert.d.ts +3 -0
  54. package/types/ui/Anchor.d.ts +11 -0
  55. package/types/ui/Appfix.d.ts +6 -0
  56. package/types/ui/AutoComplete.d.ts +3 -0
  57. package/types/ui/Badge.d.ts +8 -0
  58. package/types/ui/Breadcrumb.d.ts +16 -0
  59. package/types/ui/BreadcrumbHeading.d.ts +5 -0
  60. package/types/ui/BulkActions/BulkAction.d.ts +11 -0
  61. package/types/ui/BulkActions/DropListActions.d.ts +9 -0
  62. package/types/ui/BulkActions/index.d.ts +31 -0
  63. package/types/ui/Button.d.ts +4 -0
  64. package/types/ui/Card.d.ts +3 -0
  65. package/types/ui/Cascader.d.ts +14 -0
  66. package/types/ui/CategoryStatus.d.ts +4 -0
  67. package/types/ui/Col.d.ts +11 -0
  68. package/types/ui/Collapse.d.ts +3 -0
  69. package/types/ui/ColorPicker.d.ts +2 -0
  70. package/types/ui/ConfirmModal.d.ts +12 -0
  71. package/types/ui/Container.d.ts +8 -0
  72. package/types/ui/Divider.d.ts +6 -0
  73. package/types/ui/Drawer.d.ts +7 -0
  74. package/types/ui/Dropdown.d.ts +12 -0
  75. package/types/ui/Empty.d.ts +3 -0
  76. package/types/ui/ErrorBoundary.d.ts +18 -0
  77. package/types/ui/ErrorMessage.d.ts +7 -0
  78. package/types/ui/Flex.d.ts +9 -0
  79. package/types/ui/Footer.d.ts +2 -0
  80. package/types/ui/Heading.d.ts +10 -0
  81. package/types/ui/Image.d.ts +2 -0
  82. package/types/ui/Label.d.ts +5 -0
  83. package/types/ui/Layout.d.ts +14 -0
  84. package/types/ui/Menu.d.ts +22 -0
  85. package/types/ui/Modal.d.ts +6 -0
  86. package/types/ui/Page404.d.ts +2 -0
  87. package/types/ui/Pagination.d.ts +12 -0
  88. package/types/ui/Popconfirm.d.ts +6 -0
  89. package/types/ui/Popover.d.ts +9 -0
  90. package/types/ui/QRCode.d.ts +3 -0
  91. package/types/ui/Rate.d.ts +2 -0
  92. package/types/ui/Result.d.ts +6 -0
  93. package/types/ui/Row.d.ts +7 -0
  94. package/types/ui/SearchFilterForm.d.ts +18 -0
  95. package/types/ui/Segmented.d.ts +3 -0
  96. package/types/ui/Sidebar.d.ts +36 -0
  97. package/types/ui/Skeleton.d.ts +6 -0
  98. package/types/ui/Space.d.ts +8 -0
  99. package/types/ui/Spin.d.ts +6 -0
  100. package/types/ui/Splitter.d.ts +8 -0
  101. package/types/ui/Statistic.d.ts +3 -0
  102. package/types/ui/Steps.d.ts +12 -0
  103. package/types/ui/Table/ActionRowTable/index.d.ts +10 -0
  104. package/types/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
  105. package/types/ui/Table/HeadingTable/index.d.ts +16 -0
  106. package/types/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
  107. package/types/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
  108. package/types/ui/Table/SettingTable/SortableItem.d.ts +6 -0
  109. package/types/ui/Table/SettingTable/index.d.ts +11 -0
  110. package/types/ui/Table/index.d.ts +42 -0
  111. package/types/ui/Tabs.d.ts +14 -0
  112. package/types/ui/Tag.d.ts +5 -0
  113. package/types/ui/Timeline.d.ts +3 -0
  114. package/types/ui/Tooltip.d.ts +4 -0
  115. package/types/ui/Tour.d.ts +3 -0
  116. package/types/ui/Tree.d.ts +3 -0
  117. package/types/ui/Typography.d.ts +8 -0
  118. package/types/ui/Watermark.d.ts +2 -0
  119. package/types/ui/index.d.ts +58 -0
  120. package/types/ui.d.ts +2 -709
@@ -0,0 +1,42 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { TableColumnsType as TableColumnsTypeAntd } from 'antd';
3
+ import { TableProps } from 'antd/lib/table';
4
+ import { InitialFiltersSearch } from '@pnkx-lib/core';
5
+ import { MenuType } from '../Sidebar';
6
+ import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
7
+ import { TypeStatusTable } from '../../../../../../../../../../../src/constants';
8
+ interface RowCommon {
9
+ [x: string]: any;
10
+ }
11
+ type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
12
+ export type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
13
+ export type TableColumnsType<T> = TableColumnsTypeAntd<T> & TableColumnsTypeEditable<T>;
14
+ export type TFilters = {
15
+ isStatus?: TypeStatusTable;
16
+ };
17
+ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
18
+ dataSource?: T[];
19
+ columns: TableColumnsType<T>;
20
+ loading?: boolean;
21
+ totalItems?: number;
22
+ filters: InitialFiltersSearch<TFilters>;
23
+ onChangePage: (page: number) => void;
24
+ onChangePageSize: (size: number) => void;
25
+ onSort?: (sortField: string | number | symbol) => void;
26
+ rowsSelected?: React.Key[];
27
+ onSelect: (newSelectedRowKeys: React.Key[]) => void;
28
+ onRowClick?: (record: T) => void;
29
+ rowKey?: string | ((record: T) => string);
30
+ titleSettingTableModal?: string;
31
+ showSetting?: boolean;
32
+ setColumns?: (newColumns: TableColumnsType<T>) => void;
33
+ renderHeadingSearch: () => ReactNode;
34
+ rightHeadingContent: ReactNode;
35
+ menu: Array<MenuType>;
36
+ groupHeadingButtonItems?: GroupHeadingButtonItem[];
37
+ showIndexColumn?: boolean;
38
+ setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
39
+ noBreadcum?: boolean;
40
+ }
41
+ 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, groupHeadingButtonItems, showIndexColumn, setFilters, noBreadcum, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
42
+ export {};
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { TabsProps as TabsPropsAntd } from 'antd';
3
+ type TabItem = {
4
+ key: string;
5
+ label: React.ReactNode;
6
+ children: React.ReactNode;
7
+ disabled?: boolean;
8
+ };
9
+ export type TabsProps = TabsPropsAntd & {
10
+ items: TabItem[];
11
+ lazyRender?: boolean;
12
+ };
13
+ export declare const Tabs: React.FC<TabsProps>;
14
+ export {};
@@ -0,0 +1,5 @@
1
+ import { TagProps } from 'antd';
2
+ export interface TaglineProps extends TagProps {
3
+ children: React.ReactNode | string;
4
+ }
5
+ export declare const Tag: React.FC<TaglineProps>;
@@ -0,0 +1,3 @@
1
+ import { TimelineProps as AntdTimelineProps } from 'antd';
2
+ export type TimelineProps = AntdTimelineProps;
3
+ export declare const Timeline: React.FC<TimelineProps>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { TooltipProps as TooltipPropsAntd } from 'antd';
3
+ export type TooltipProps = TooltipPropsAntd;
4
+ export declare const Tooltip: React.FC<TooltipProps>;
@@ -0,0 +1,3 @@
1
+ import { TourProps as AntdTourProps } from 'antd';
2
+ export type TourProps = AntdTourProps;
3
+ export declare const Tour: React.FC<TourProps>;
@@ -0,0 +1,3 @@
1
+ import { TreeProps as AntdTreeProps } from 'antd';
2
+ export type TreeProps = AntdTreeProps;
3
+ export declare const Tree: React.FC<TreeProps>;
@@ -0,0 +1,8 @@
1
+ import { TitleProps } from 'antd/es/typography/Title';
2
+ import { ParagraphProps } from 'antd/es/typography/Paragraph';
3
+ import { TextProps } from 'antd/es/typography/Text';
4
+ export declare const Typography: {
5
+ Title: (props: TitleProps) => import("react/jsx-runtime").JSX.Element;
6
+ Paragraph: (props: ParagraphProps) => import("react/jsx-runtime").JSX.Element;
7
+ Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
@@ -0,0 +1,2 @@
1
+ import { WatermarkProps } from 'antd';
2
+ export declare const Watermark: ({ ...rest }: WatermarkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,58 @@
1
+ export * from './Button';
2
+ export * from './Cascader';
3
+ export * from './ErrorMessage';
4
+ export * from './Typography';
5
+ export * from './Table';
6
+ export * from './Modal';
7
+ export * from './Tooltip';
8
+ export * from './Tabs';
9
+ export * from './Label';
10
+ export * from './Skeleton';
11
+ export * from './Popover';
12
+ export * from './SearchFilterForm';
13
+ export * from './Container';
14
+ export * from './Badge';
15
+ export * from './Col';
16
+ export * from './Row';
17
+ export * from './Dropdown';
18
+ export * from './Breadcrumb';
19
+ export * from './Flex';
20
+ export * from './Layout';
21
+ export * from './Space';
22
+ export * from './Splitter';
23
+ export * from './Menu';
24
+ export * from './Pagination';
25
+ export * from './Steps';
26
+ export * from './Sidebar';
27
+ export * from './Heading';
28
+ export * from './Tag';
29
+ export * from './Divider';
30
+ export * from './Alert';
31
+ export * from './Spin';
32
+ export * from './Drawer';
33
+ export * from './Popconfirm';
34
+ export * from './QRCode';
35
+ export * from './Result';
36
+ export * from './Rate';
37
+ export * from './Segmented';
38
+ export * from './Statistic';
39
+ export * from './Timeline';
40
+ export * from './Tour';
41
+ export * from './Tree';
42
+ export * from './Watermark';
43
+ export * from './Anchor';
44
+ export * from './Appfix';
45
+ export * from './AutoComplete';
46
+ export * from './Collapse';
47
+ export * from './ColorPicker';
48
+ export * from './Empty';
49
+ export * from './Image';
50
+ export * from './ConfirmModal';
51
+ export * from './ErrorBoundary';
52
+ export * from './Page404';
53
+ export * from './CategoryStatus';
54
+ export * from '../ui/Table/ActionRowTable';
55
+ export * from '../../constants/index';
56
+ export * from './BulkActions';
57
+ export * from './BreadcrumbHeading';
58
+ export * from './Card';