@pnkx-lib/ui 1.9.178 → 1.9.180
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 +1 -1
- package/es/chunks/AntdIcon-B_SLhOJa.js +1211 -0
- package/es/chunks/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/es/chunks/bundle-mjs-BME7zF0Z.js +2956 -0
- package/es/chunks/common-CocKiHtC.js +3 -0
- package/es/chunks/defineProperty-D53odpB3.js +50 -0
- package/es/chunks/get-C880miVG.js +1726 -0
- package/es/chunks/index-mzHK7Za8.js +90 -0
- package/es/chunks/index.esm-DPdCEbIy.js +2276 -0
- package/es/chunks/jsx-runtime-DFKOoQSG.js +430 -0
- package/es/chunks/layout-B04d5Lfr.js +6094 -0
- package/es/constants/index.js +38 -0
- package/es/fields/CascaderField.js +59 -0
- package/es/fields/Checkbox.js +56 -0
- package/es/fields/DatePicker.js +13030 -0
- package/es/fields/DateRangePicker.js +58 -0
- package/es/fields/Input.js +1379 -0
- package/es/fields/PnkxField.js +19 -0
- package/es/fields/Radio.js +56 -0
- package/es/fields/Select.js +61 -0
- package/es/fields/SliderRanger.js +58 -0
- package/es/fields/SliderSingle.js +58 -0
- package/es/fields/Switch.js +58 -0
- package/es/fields/Textarea.js +66 -0
- package/es/fields/TinyMCE.js +1969 -0
- package/es/fields/Upload.js +113 -0
- package/es/fields/index.js +13 -2
- package/es/hooks/index.js +2 -1
- package/es/hooks/useMessage.js +15 -0
- package/es/{chunks/useMessage-CUPcOtIS.js → hooks/useToast.js} +2 -14
- package/es/index.js +74 -4
- package/es/ui/Alert.js +8 -0
- package/es/ui/Anchor.js +9 -0
- package/es/ui/Appfix.js +8 -0
- package/es/ui/AutoComplete.js +8 -0
- package/es/ui/Badge.js +15 -0
- package/es/ui/BottomPagination.js +57 -0
- package/es/ui/Breadcrumb.js +9 -0
- package/es/ui/BreadcrumbHeading.js +54 -0
- package/es/ui/Button.js +8 -0
- package/es/ui/Card.js +8 -0
- package/es/ui/Cascader.js +21 -0
- package/es/ui/CategoryStatus.js +50 -0
- package/es/ui/Col.js +9 -0
- package/es/ui/Collapse.js +8 -0
- package/es/ui/ColorPicker.js +8 -0
- package/es/ui/ConfigProvider.js +11 -0
- package/es/ui/ConfirmModal.js +119 -0
- package/es/ui/Container.js +12 -0
- package/es/ui/Divider.js +8 -0
- package/es/ui/Drawer.js +19 -0
- package/es/ui/Dropdown.js +9 -0
- package/es/ui/Empty.js +8 -0
- package/es/ui/ErrorBoundary.js +81 -0
- package/es/ui/ErrorMessage.js +14 -0
- package/es/ui/Flex.js +9 -0
- package/es/ui/Footer.js +13 -0
- package/es/ui/Heading.js +67 -0
- package/es/ui/Image.js +8 -0
- package/es/ui/Label.js +14 -0
- package/es/ui/Layout.js +25 -0
- package/es/ui/Menu.js +24 -0
- package/es/ui/Modal.js +8 -0
- package/es/{chunks/PageNotFound-D6b4M484.js → ui/PageNotFound.js} +7 -1865
- package/es/ui/Pagination.js +10 -0
- package/es/ui/Popconfirm.js +8 -0
- package/es/ui/Popover.js +9 -0
- package/es/ui/QRCode.js +8 -0
- package/es/ui/Rate.js +8 -0
- package/es/ui/Result.js +8 -0
- package/es/ui/Row.js +9 -0
- package/es/ui/SearchFilterForm.js +87 -0
- package/es/ui/Segmented.js +8 -0
- package/es/ui/Sidebar.js +342 -0
- package/es/ui/Skeleton.js +34 -0
- package/es/ui/Space.js +11 -0
- package/es/ui/Spin.js +8 -0
- package/es/ui/Splitter.js +11 -0
- package/es/ui/Statistic.js +8 -0
- package/es/ui/Steps.js +11 -0
- package/es/ui/Tabs.js +78 -0
- package/es/ui/Tag.js +12 -0
- package/es/ui/Timeline.js +8 -0
- package/es/ui/Tooltip.js +8 -0
- package/es/ui/Tour.js +8 -0
- package/es/ui/Tree.js +8 -0
- package/es/ui/Typography.js +11 -0
- package/es/ui/UploadImage.js +116 -0
- package/es/ui/Watermark.js +28 -0
- package/es/ui/index.js +5235 -2
- package/package.json +31 -1
- package/types/components/ui/BulkActions/BulkAction.d.ts +1 -1
- package/types/components/ui/BulkActions/index.d.ts +1 -1
- package/types/components/ui/Table/ActionRowTable/index.d.ts +1 -1
- package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +1 -1
- package/types/components/ui/Table/index.d.ts +1 -1
- package/types/fields/CascaderField.d.ts +2 -0
- package/types/fields/Checkbox.d.ts +2 -0
- package/types/fields/DatePicker.d.ts +2 -0
- package/types/fields/DateRangePicker.d.ts +2 -0
- package/types/fields/Input.d.ts +2 -0
- package/types/fields/PnkxField.d.ts +2 -0
- package/types/fields/Radio.d.ts +2 -0
- package/types/fields/Select.d.ts +2 -0
- package/types/fields/SliderRanger.d.ts +2 -0
- package/types/fields/SliderSingle.d.ts +2 -0
- package/types/fields/Switch.d.ts +2 -0
- package/types/fields/Textarea.d.ts +2 -0
- package/types/fields/TinyMCE.d.ts +2 -0
- package/types/fields/Upload.d.ts +2 -0
- package/types/fields/index.d.ts +2 -0
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useMessage.d.ts +2 -0
- package/types/hooks/useToast.d.ts +2 -0
- package/types/ui/Alert.d.ts +2 -0
- package/types/ui/Anchor.d.ts +2 -0
- package/types/ui/Appfix.d.ts +2 -0
- package/types/ui/AutoComplete.d.ts +2 -0
- package/types/ui/Badge.d.ts +2 -0
- package/types/ui/BottomPagination.d.ts +2 -0
- package/types/ui/Breadcrumb.d.ts +2 -0
- package/types/ui/BreadcrumbHeading.d.ts +2 -0
- package/types/ui/Button.d.ts +2 -0
- package/types/ui/Card.d.ts +2 -0
- package/types/ui/Cascader.d.ts +2 -0
- package/types/ui/CategoryStatus.d.ts +2 -0
- package/types/ui/Col.d.ts +2 -0
- package/types/ui/Collapse.d.ts +2 -0
- package/types/ui/ColorPicker.d.ts +2 -0
- package/types/ui/ConfigProvider.d.ts +2 -0
- package/types/ui/ConfirmModal.d.ts +2 -0
- package/types/ui/Container.d.ts +2 -0
- package/types/ui/Divider.d.ts +2 -0
- package/types/ui/Drawer.d.ts +2 -0
- package/types/ui/Dropdown.d.ts +2 -0
- package/types/ui/Empty.d.ts +2 -0
- package/types/ui/ErrorBoundary.d.ts +2 -0
- package/types/ui/ErrorMessage.d.ts +2 -0
- package/types/ui/Flex.d.ts +2 -0
- package/types/ui/Footer.d.ts +4 -0
- package/types/ui/Heading.d.ts +2 -0
- package/types/ui/Image.d.ts +2 -0
- package/types/ui/Label.d.ts +2 -0
- package/types/ui/Layout.d.ts +2 -0
- package/types/ui/Menu.d.ts +2 -0
- package/types/ui/Modal.d.ts +2 -0
- package/types/ui/PageNotFound.d.ts +2 -0
- package/types/ui/Pagination.d.ts +2 -0
- package/types/ui/Popconfirm.d.ts +2 -0
- package/types/ui/Popover.d.ts +2 -0
- package/types/ui/QRCode.d.ts +2 -0
- package/types/ui/Rate.d.ts +2 -0
- package/types/ui/Result.d.ts +2 -0
- package/types/ui/Row.d.ts +2 -0
- package/types/ui/SearchFilterForm.d.ts +2 -0
- package/types/ui/Segmented.d.ts +2 -0
- package/types/ui/Sidebar.d.ts +2 -0
- package/types/ui/Skeleton.d.ts +2 -0
- package/types/ui/Space.d.ts +2 -0
- package/types/ui/Spin.d.ts +2 -0
- package/types/ui/Splitter.d.ts +2 -0
- package/types/ui/Statistic.d.ts +2 -0
- package/types/ui/Steps.d.ts +2 -0
- package/types/ui/Tabs.d.ts +2 -0
- package/types/ui/Tag.d.ts +2 -0
- package/types/ui/Timeline.d.ts +2 -0
- package/types/ui/Tooltip.d.ts +2 -0
- package/types/ui/Tour.d.ts +2 -0
- package/types/ui/Tree.d.ts +2 -0
- package/types/ui/Typography.d.ts +2 -0
- package/types/ui/UploadImage.d.ts +2 -0
- package/types/ui/Watermark.d.ts +2 -0
- package/types/ui/index.d.ts +2 -0
- package/es/chunks/SliderRanger-BXe2Nxdo.js +0 -361
- package/es/chunks/UploadImage-x6lE6WbO.js +0 -61133
- package/types/App.d.ts +0 -6
- package/types/DemoInput/DemoInput.d.ts +0 -1
- package/types/DemoTable/FiltersCategoryDemo/components/RenderFilterFields.d.ts +0 -12
- package/types/DemoTable/FiltersCategoryDemo/components/TagsFilter.d.ts +0 -12
- package/types/DemoTable/FiltersCategoryDemo/index.d.ts +0 -8
- package/types/DemoTable/apiUser.d.ts +0 -30
- package/types/DemoTable/hooks/useConvertGroupButton.d.ts +0 -13
- package/types/DemoTable/index.d.ts +0 -2
- package/types/DemoTable/tabDemo.d.ts +0 -2
- package/types/assets/svg/404.d.ts +0 -2
- package/types/assets/svg/Flag.d.ts +0 -2
- package/types/assets/svg/Logout.d.ts +0 -2
- package/types/assets/svg/PageNotFoundIcon.d.ts +0 -3
- package/types/assets/svg/Search.d.ts +0 -2
- package/types/assets/svg/Setting.d.ts +0 -2
- package/types/component-test/category-city.d.ts +0 -2
- package/types/component-test/category-manager.d.ts +0 -2
- package/types/component-test/default-layout.d.ts +0 -6
- package/types/component-test/detail-user.d.ts +0 -2
- package/types/component-test/permistion-user.d.ts +0 -2
- package/types/component-test/user-list.d.ts +0 -2
- package/types/fields.d.ts +0 -2
- package/types/hooks.d.ts +0 -2
- package/types/interface/common.d.ts +0 -14
- package/types/interface/tab.d.ts +0 -5
- package/types/main.d.ts +0 -0
- package/types/stores/tabStore.d.ts +0 -6
- package/types/stories/Input.stories.d.ts +0 -6
- package/types/ui.d.ts +0 -2
- package/types/utils/router.d.ts +0 -35
- package/types/utils/timer.d.ts +0 -7
- package/types/vite-env.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnkx-lib/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.180",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -14,19 +14,45 @@
|
|
|
14
14
|
"import": "./es/ui/index.js",
|
|
15
15
|
"types": "./types/ui/index.d.ts"
|
|
16
16
|
},
|
|
17
|
+
"./ui/*": {
|
|
18
|
+
"import": "./es/ui/*.js",
|
|
19
|
+
"types": "./types/ui/*.d.ts"
|
|
20
|
+
},
|
|
17
21
|
"./fields": {
|
|
18
22
|
"import": "./es/fields/index.js",
|
|
19
23
|
"types": "./types/fields/index.d.ts"
|
|
20
24
|
},
|
|
25
|
+
"./fields/*": {
|
|
26
|
+
"import": "./es/fields/*.js",
|
|
27
|
+
"types": "./types/fields/*.d.ts"
|
|
28
|
+
},
|
|
21
29
|
"./hooks": {
|
|
22
30
|
"import": "./es/hooks/index.js",
|
|
23
31
|
"types": "./types/hooks/index.d.ts"
|
|
24
32
|
},
|
|
33
|
+
"./hooks/*": {
|
|
34
|
+
"import": "./es/hooks/*.js",
|
|
35
|
+
"types": "./types/hooks/*.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./constants": {
|
|
38
|
+
"import": "./es/constants/index.js",
|
|
39
|
+
"types": "./types/constants/index.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./helpers": {
|
|
42
|
+
"import": "./es/helpers/index.js",
|
|
43
|
+
"types": "./types/helpers/index.d.ts"
|
|
44
|
+
},
|
|
25
45
|
"./dist/style.css": {
|
|
26
46
|
"default": "./dist/style.css"
|
|
27
47
|
}
|
|
28
48
|
},
|
|
29
49
|
"types": "./types/index.d.ts",
|
|
50
|
+
"sideEffects": [
|
|
51
|
+
"*.css",
|
|
52
|
+
"*.scss",
|
|
53
|
+
"./src/index.css",
|
|
54
|
+
"./dist/style.css"
|
|
55
|
+
],
|
|
30
56
|
"files": [
|
|
31
57
|
"es",
|
|
32
58
|
"types",
|
|
@@ -42,6 +68,8 @@
|
|
|
42
68
|
"build": "npm run build:css && vite build",
|
|
43
69
|
"serve": "vite preview",
|
|
44
70
|
"lint": "eslint .",
|
|
71
|
+
"test:tree-shaking": "node scripts/test-tree-shaking.js",
|
|
72
|
+
"analyze": "vite build --mode analyze",
|
|
45
73
|
"build-storybook": "storybook build",
|
|
46
74
|
"deploy": "vercel --prod",
|
|
47
75
|
"clean": "rm -rf types es dist",
|
|
@@ -60,6 +88,7 @@
|
|
|
60
88
|
"@storybook/react": "^8.6.7",
|
|
61
89
|
"@storybook/react-vite": "^8.6.7",
|
|
62
90
|
"@storybook/test": "^8.6.7",
|
|
91
|
+
"@types/glob": "^8.1.0",
|
|
63
92
|
"@types/lodash": "^4.17.16",
|
|
64
93
|
"@types/node": "^22.13.14",
|
|
65
94
|
"@types/react": "^19.0.10",
|
|
@@ -71,6 +100,7 @@
|
|
|
71
100
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
72
101
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
73
102
|
"eslint-plugin-storybook": "^0.11.6",
|
|
103
|
+
"glob": "^11.0.2",
|
|
74
104
|
"globals": "^15.15.0",
|
|
75
105
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
76
106
|
"storybook": "^8.6.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
2
|
import { TListIcon } from '.';
|
|
3
|
-
import { TypeStatusTable } from '
|
|
3
|
+
import { TypeStatusTable } from '../../../constants';
|
|
4
4
|
export interface BulkActionProps {
|
|
5
5
|
quantity?: number;
|
|
6
6
|
listIcon?: TListIcon[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
-
import { TypeBulkActions, TypeStatusTable } from '
|
|
2
|
+
import { TypeBulkActions, TypeStatusTable } from '../../../constants';
|
|
3
3
|
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
|
4
4
|
interface IBulkActionsProps {
|
|
5
5
|
quantity?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TypeActionRowTable } from '
|
|
2
|
+
import { TypeActionRowTable } from '../../../../constants/table';
|
|
3
3
|
export interface ActionRowTableProps {
|
|
4
4
|
type: TypeActionRowTable;
|
|
5
5
|
handleClick?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
|
2
|
-
import { TFilters, TypeStatusTable } from '
|
|
2
|
+
import { TFilters, TypeStatusTable } from '../../..';
|
|
3
3
|
export interface GroupHeadingButtonItem {
|
|
4
4
|
label: string;
|
|
5
5
|
quantity: number;
|
|
@@ -5,7 +5,7 @@ import { SorterResult } from 'antd/es/table/interface';
|
|
|
5
5
|
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
|
6
6
|
import { MenuType } from '../Sidebar';
|
|
7
7
|
import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
|
|
8
|
-
import { TypeStatusTable } from '
|
|
8
|
+
import { TypeStatusTable } from '../../../constants';
|
|
9
9
|
interface RowCommon {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}
|