@pnkx-lib/ui 1.9.505 → 1.9.508
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/assets/{ui-U4G0iQfu.css → ui-Dqfe-FBg.css} +0 -107
- package/es/chunks/{GenericUploadModal-BNQ9cWDf.js → GenericUploadModal-Dhv5_mhq.js} +72 -48
- package/es/chunks/{index.esm-AaUjBMaK.js → index.esm-Dr5ZHcf7.js} +96 -58
- package/es/chunks/{toArray-Czwb0MFW.js → toArray-2LkvUaha.js} +27 -38
- package/es/fields/PnkxField.js +1 -1
- package/es/fields/Textarea.js +1 -1
- package/es/fields/TinyMCE.js +1 -1
- package/es/index.js +4 -3
- package/es/ui/CategoryStatus.js +14 -1
- package/es/ui/FloatButton.js +15 -0
- package/es/ui/GenericUploadModal.js +2 -2
- package/es/ui/Layout.js +3 -3
- package/es/ui/SearchFilterForm.js +1 -1
- package/es/ui/Sidebar/index.js +32 -14
- package/es/ui/Tabs.js +2 -2
- package/es/ui/UploadImage.js +1 -1
- package/es/ui/index.js +4214 -3348
- package/package.json +3 -3
- package/types/components/ui/BulkActions/DropListActions.d.ts +3 -2
- package/types/components/ui/CategoryStatus.d.ts +11 -0
- package/types/components/ui/CustomeBulkActions/BulkAction.d.ts +10 -0
- package/types/components/ui/CustomeBulkActions/ConvertData.d.ts +6 -5
- package/types/components/ui/CustomeBulkActions/DropListAction.d.ts +24 -0
- package/types/components/ui/CustomeBulkActions/index.d.ts +8 -5
- package/types/components/ui/FloatButton.d.ts +4 -0
- package/types/components/ui/index.d.ts +2 -0
- package/types/ui/FloatButton.d.ts +2 -0
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.508",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
]
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"@pnkx-lib/core": "^1.1.
|
|
120
|
+
"@pnkx-lib/core": "^1.1.186",
|
|
121
121
|
"@tailwindcss/vite": "^4.1.12",
|
|
122
122
|
"antd": "^5.24.4",
|
|
123
123
|
"react": "^18.3.1",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@headlessui/react": "^2.2.2",
|
|
137
137
|
"@heroicons/react": "^2.2.0",
|
|
138
138
|
"@hookform/resolvers": "^5.1.1",
|
|
139
|
-
"@pnkx-lib/icon": "^0.0.
|
|
139
|
+
"@pnkx-lib/icon": "^0.0.78",
|
|
140
140
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
141
141
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
142
142
|
"@tailwindcss/cli": "^4.1.6",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
2
|
import { TListIcon } from '.';
|
|
3
3
|
export interface DropListActionsProps {
|
|
4
|
-
listIcon
|
|
4
|
+
listIcon: TListIcon[];
|
|
5
5
|
status?: unknown;
|
|
6
6
|
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
7
7
|
toggle: () => void;
|
|
8
|
+
contentDropList?: React.ReactNode;
|
|
8
9
|
}
|
|
9
|
-
export declare const DropListActions: ({ listIcon, status, setNotifyContent, toggle, }: DropListActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const DropListActions: ({ listIcon, status, setNotifyContent, toggle, contentDropList, }: DropListActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +7,17 @@ export declare enum CATEGORY_LIST_ENUM {
|
|
|
7
7
|
REJECT = 4,// từ chối duyệt
|
|
8
8
|
DELETE = 5
|
|
9
9
|
}
|
|
10
|
+
export declare enum CATEGORY_PRICE_LIST_ENUM {
|
|
11
|
+
CREATED = 0,// tạo mới
|
|
12
|
+
WAITING_CONFIRM = 1,// đang chờ duyệt
|
|
13
|
+
WAITING_APPROVAL = 2,// đang chờ xác nhận
|
|
14
|
+
APPROVED = 3,// đã duyệt
|
|
15
|
+
DELETED = 4
|
|
16
|
+
}
|
|
17
|
+
export declare enum COUNT_LEVEL {
|
|
18
|
+
ONE_LEVEL = 0,
|
|
19
|
+
TWO_LEVEL = 1
|
|
20
|
+
}
|
|
10
21
|
type BadgeConfig = {
|
|
11
22
|
[key: number]: {
|
|
12
23
|
color: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TListIcon } from '../BulkActions';
|
|
2
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
3
|
+
export interface BulkActionProps {
|
|
4
|
+
quantity?: number;
|
|
5
|
+
listIcon?: TListIcon[];
|
|
6
|
+
status?: unknown;
|
|
7
|
+
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const BulkAction: ({ quantity, listIcon, status, setNotifyContent, toggle, }: BulkActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TypeBulkActions } from '../../../constants';
|
|
2
2
|
import { TypeCategoryBulkActions } from '../../../constants/bulkAction';
|
|
3
|
-
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
|
3
|
+
import { CATEGORY_LIST_ENUM, CATEGORY_PRICE_LIST_ENUM, COUNT_LEVEL } from '../CategoryStatus';
|
|
4
4
|
import { ConfirmModalProps } from '../ConfirmModal';
|
|
5
|
-
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
5
|
+
import { BulkActionHandlers, BulkActionPriceHandlers } from '@pnkx-lib/core';
|
|
6
6
|
export interface CustomeBulkActionsProps {
|
|
7
7
|
isApproved?: boolean;
|
|
8
8
|
typeBulkaction?: TypeBulkActions;
|
|
9
9
|
typeService?: TypeCategoryBulkActions;
|
|
10
10
|
handleBulkAction: BulkActionHandlers;
|
|
11
|
-
handleBulkActionPrice:
|
|
11
|
+
handleBulkActionPrice: BulkActionPriceHandlers;
|
|
12
12
|
}
|
|
13
13
|
export type TListIcon = {
|
|
14
14
|
icon: React.ReactNode;
|
|
@@ -16,10 +16,11 @@ export type TListIcon = {
|
|
|
16
16
|
iconDropList: React.ReactNode;
|
|
17
17
|
action?: () => void;
|
|
18
18
|
title: string;
|
|
19
|
-
arrShow: CATEGORY_LIST_ENUM[];
|
|
19
|
+
arrShow: (CATEGORY_LIST_ENUM | CATEGORY_PRICE_LIST_ENUM)[];
|
|
20
20
|
content?: string;
|
|
21
21
|
typeIcon?: ConfirmModalProps["typeIcon"];
|
|
22
22
|
name?: string;
|
|
23
23
|
showTitle?: boolean;
|
|
24
|
+
countLevel?: COUNT_LEVEL[];
|
|
24
25
|
};
|
|
25
|
-
export declare const ListDataConvert: ({ isApproved,
|
|
26
|
+
export declare const ListDataConvert: ({ isApproved, typeService, handleBulkAction, handleBulkActionPrice, }: CustomeBulkActionsProps) => TListIcon[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
+
import { CATEGORY_LIST_ENUM, COUNT_LEVEL } from '../CategoryStatus';
|
|
3
|
+
export interface DropListActionsProps {
|
|
4
|
+
listIcon: TListIcon[];
|
|
5
|
+
status?: unknown;
|
|
6
|
+
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
7
|
+
toggle: () => void;
|
|
8
|
+
contentDropList?: React.ReactNode;
|
|
9
|
+
countLevel?: COUNT_LEVEL;
|
|
10
|
+
}
|
|
11
|
+
export type TListIcon = {
|
|
12
|
+
icon: React.ReactNode;
|
|
13
|
+
iconDisable: React.ReactNode;
|
|
14
|
+
iconDropList: React.ReactNode;
|
|
15
|
+
action?: () => void;
|
|
16
|
+
title: string;
|
|
17
|
+
arrShow: CATEGORY_LIST_ENUM[];
|
|
18
|
+
content?: string;
|
|
19
|
+
typeIcon?: ConfirmModalProps["typeIcon"];
|
|
20
|
+
name?: string;
|
|
21
|
+
showTitle?: boolean;
|
|
22
|
+
countLevel: COUNT_LEVEL[];
|
|
23
|
+
};
|
|
24
|
+
export declare const DropListActions: ({ listIcon, status, setNotifyContent, toggle, contentDropList, countLevel, }: DropListActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { TypeBulkActions, TypeCategoryBulkActions } from '../../../constants/bulkAction';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
3
|
+
import { BulkActionHandlers, BulkActionPriceHandlers } from '@pnkx-lib/core';
|
|
4
|
+
import { COUNT_LEVEL } from '../CategoryStatus';
|
|
4
5
|
interface CustomeBulkActionsProps {
|
|
5
6
|
quantity?: number;
|
|
6
7
|
status?: unknown;
|
|
7
8
|
isApproved?: boolean;
|
|
8
9
|
typeBulkaction?: TypeBulkActions;
|
|
9
10
|
typeService?: TypeCategoryBulkActions;
|
|
10
|
-
handleBulkAction
|
|
11
|
-
handleBulkActionPrice
|
|
11
|
+
handleBulkAction?: BulkActionHandlers;
|
|
12
|
+
handleBulkActionPrice?: BulkActionPriceHandlers;
|
|
13
|
+
contentDropList?: React.ReactNode;
|
|
14
|
+
countLevel?: COUNT_LEVEL;
|
|
12
15
|
}
|
|
13
|
-
export declare const CustomeBulkActions: ({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const _default: React.MemoExoticComponent<({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
export declare const CustomeBulkActions: ({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice, contentDropList, countLevel, }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const _default: React.MemoExoticComponent<({ quantity, status, isApproved, typeBulkaction, typeService, handleBulkAction, handleBulkActionPrice, contentDropList, countLevel, }: CustomeBulkActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
18
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './Button';
|
|
2
|
+
export * from './FloatButton';
|
|
2
3
|
export * from './Cascader';
|
|
3
4
|
export * from './ErrorMessage';
|
|
4
5
|
export * from './Typography';
|
|
@@ -71,4 +72,5 @@ export * from './SelectSingleTable';
|
|
|
71
72
|
export * from './GenericUploadModal';
|
|
72
73
|
export * from './TableCategory';
|
|
73
74
|
export * from './Descriptions';
|
|
75
|
+
export * from './CustomeBulkActions';
|
|
74
76
|
export * from './Clock';
|