@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.
- package/dist/style.css +2 -2
- package/es/chunks/{AntdIcon-CtaI55qk.js → AntdIcon-BS99Z6_t.js} +7203 -460
- package/es/chunks/{BreadcrumbHeading-CSKdtCYe.js → Card-CCVU-3bH.js} +73 -59
- package/es/chunks/{Switch-CigYj8FF.js → Switch-vaUhKEAu.js} +1 -1
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +3 -2
- package/types/fields/CascaderField.d.ts +13 -0
- package/types/fields/Checkbox.d.ts +12 -0
- package/types/fields/DatePicker.d.ts +22 -0
- package/types/fields/DateRangePicker.d.ts +13 -0
- package/types/fields/Input.d.ts +32 -0
- package/types/fields/PnkxField.d.ts +12 -0
- package/types/fields/Radio.d.ts +19 -0
- package/types/fields/Select.d.ts +13 -0
- package/types/fields/Switch.d.ts +12 -0
- package/types/fields/Textarea.d.ts +13 -0
- package/types/fields/TinyMCE.d.ts +16 -0
- package/types/fields/Upload.d.ts +15 -0
- package/types/fields/index.d.ts +11 -0
- package/types/fields.d.ts +2 -198
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useDebounce.d.ts +1 -0
- package/types/hooks/useMessage.d.ts +5 -0
- package/types/hooks/useToast.d.ts +12 -0
- package/types/hooks.d.ts +2 -23
- package/types/icons/ActivateIcon.d.ts +6 -0
- package/types/icons/AllowClearIcon.d.ts +2 -0
- package/types/icons/ApprovalIcon.d.ts +6 -0
- package/types/icons/CancelApprovalIcon.d.ts +6 -0
- package/types/icons/CancelSendApprovalIcon.d.ts +6 -0
- package/types/icons/DeleteIcon.d.ts +6 -0
- package/types/icons/DragIcon.d.ts +6 -0
- package/types/icons/EditIcon.d.ts +6 -0
- package/types/icons/ErrorConfirmIcon.d.ts +3 -0
- package/types/icons/InActivateIcon.d.ts +6 -0
- package/types/icons/InfoConfirmIcon.d.ts +3 -0
- package/types/icons/MoreIcon.d.ts +6 -0
- package/types/icons/PlusIcon.d.ts +6 -0
- package/types/icons/RefuseApprovalIcon.d.ts +6 -0
- package/types/icons/RestoreIcon.d.ts +6 -0
- package/types/icons/SearchAdvanceIcon.d.ts +6 -0
- package/types/icons/SearchIcon.d.ts +2 -0
- package/types/icons/SendApprovalIcon.d.ts +6 -0
- package/types/icons/SettingIcon.d.ts +1 -0
- package/types/icons/SuccessIcon.d.ts +3 -0
- package/types/icons/TrashCanIcon.d.ts +2 -0
- package/types/icons/WaitingApprovalIcon.d.ts +6 -0
- package/types/icons/WarningConfirmIcon.d.ts +3 -0
- package/types/icons/index.d.ts +18 -0
- package/types/index.d.ts +3 -922
- package/types/ui/Alert.d.ts +3 -0
- package/types/ui/Anchor.d.ts +11 -0
- package/types/ui/Appfix.d.ts +6 -0
- package/types/ui/AutoComplete.d.ts +3 -0
- package/types/ui/Badge.d.ts +8 -0
- package/types/ui/Breadcrumb.d.ts +16 -0
- package/types/ui/BreadcrumbHeading.d.ts +5 -0
- package/types/ui/BulkActions/BulkAction.d.ts +11 -0
- package/types/ui/BulkActions/DropListActions.d.ts +9 -0
- package/types/ui/BulkActions/index.d.ts +31 -0
- package/types/ui/Button.d.ts +4 -0
- package/types/ui/Card.d.ts +3 -0
- package/types/ui/Cascader.d.ts +14 -0
- package/types/ui/CategoryStatus.d.ts +4 -0
- package/types/ui/Col.d.ts +11 -0
- package/types/ui/Collapse.d.ts +3 -0
- package/types/ui/ColorPicker.d.ts +2 -0
- package/types/ui/ConfirmModal.d.ts +12 -0
- package/types/ui/Container.d.ts +8 -0
- package/types/ui/Divider.d.ts +6 -0
- package/types/ui/Drawer.d.ts +7 -0
- package/types/ui/Dropdown.d.ts +12 -0
- package/types/ui/Empty.d.ts +3 -0
- package/types/ui/ErrorBoundary.d.ts +18 -0
- package/types/ui/ErrorMessage.d.ts +7 -0
- package/types/ui/Flex.d.ts +9 -0
- package/types/ui/Footer.d.ts +2 -0
- package/types/ui/Heading.d.ts +10 -0
- package/types/ui/Image.d.ts +2 -0
- package/types/ui/Label.d.ts +5 -0
- package/types/ui/Layout.d.ts +14 -0
- package/types/ui/Menu.d.ts +22 -0
- package/types/ui/Modal.d.ts +6 -0
- package/types/ui/Page404.d.ts +2 -0
- package/types/ui/Pagination.d.ts +12 -0
- package/types/ui/Popconfirm.d.ts +6 -0
- package/types/ui/Popover.d.ts +9 -0
- package/types/ui/QRCode.d.ts +3 -0
- package/types/ui/Rate.d.ts +2 -0
- package/types/ui/Result.d.ts +6 -0
- package/types/ui/Row.d.ts +7 -0
- package/types/ui/SearchFilterForm.d.ts +18 -0
- package/types/ui/Segmented.d.ts +3 -0
- package/types/ui/Sidebar.d.ts +36 -0
- package/types/ui/Skeleton.d.ts +6 -0
- package/types/ui/Space.d.ts +8 -0
- package/types/ui/Spin.d.ts +6 -0
- package/types/ui/Splitter.d.ts +8 -0
- package/types/ui/Statistic.d.ts +3 -0
- package/types/ui/Steps.d.ts +12 -0
- package/types/ui/Table/ActionRowTable/index.d.ts +10 -0
- package/types/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
- package/types/ui/Table/HeadingTable/index.d.ts +16 -0
- package/types/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
- package/types/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
- package/types/ui/Table/SettingTable/SortableItem.d.ts +6 -0
- package/types/ui/Table/SettingTable/index.d.ts +11 -0
- package/types/ui/Table/index.d.ts +42 -0
- package/types/ui/Tabs.d.ts +14 -0
- package/types/ui/Tag.d.ts +5 -0
- package/types/ui/Timeline.d.ts +3 -0
- package/types/ui/Tooltip.d.ts +4 -0
- package/types/ui/Tour.d.ts +3 -0
- package/types/ui/Tree.d.ts +3 -0
- package/types/ui/Typography.d.ts +8 -0
- package/types/ui/Watermark.d.ts +2 -0
- package/types/ui/index.d.ts +58 -0
- 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,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,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';
|