@pnkx-lib/ui 1.9.554 → 1.9.556

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/es/index.js CHANGED
@@ -74,6 +74,7 @@ export { TableForm } from './ui/TableForm/index.js';
74
74
  export { Descriptions } from './ui/Descriptions.js';
75
75
  export { CustomeBulkActions } from './ui/CustomeBulkActions/index.js';
76
76
  export { Clock } from './ui/Clock/index.js';
77
+ export { CATEGORY_PRICE_ENUM, PriceStatus, badgeStatusPriceConfig } from './ui/PriceStatus.js';
77
78
  export { Input } from './fields/Input.js';
78
79
  export { PnkxField } from './fields/PnkxField.js';
79
80
  export { Select } from './fields/Select.js';
@@ -107,7 +107,7 @@ const ConfirmModal = ({
107
107
  /* @__PURE__ */ jsx("div", { className: "max-w-fit", children: /* @__PURE__ */ jsx(IconType, {}) }),
108
108
  /* @__PURE__ */ jsxs("div", { children: [
109
109
  /* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }),
110
- /* @__PURE__ */ jsx("p", { className: "text-sm", children: content })
110
+ /* @__PURE__ */ jsx("div", { className: "text-sm", children: content })
111
111
  ] })
112
112
  ] }),
113
113
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2 w-full justify-end items-end pt-3", children: [
@@ -1,15 +1,15 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
3
 
4
- var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
5
- CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["CREATE"] = 0] = "CREATE";
6
- CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["WATING_CONFIRM"] = 1] = "WATING_CONFIRM";
7
- CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["WATING_APPROVE"] = 2] = "WATING_APPROVE";
8
- CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["APPROVE"] = 3] = "APPROVE";
9
- CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DELETE"] = 4] = "DELETE";
10
- return CATEGORY_LIST_ENUM2;
11
- })(CATEGORY_LIST_ENUM || {});
12
- const badgeStatusCategoryConfig = {
4
+ var CATEGORY_PRICE_ENUM = /* @__PURE__ */ ((CATEGORY_PRICE_ENUM2) => {
5
+ CATEGORY_PRICE_ENUM2[CATEGORY_PRICE_ENUM2["CREATE"] = 0] = "CREATE";
6
+ CATEGORY_PRICE_ENUM2[CATEGORY_PRICE_ENUM2["WATING_CONFIRM"] = 1] = "WATING_CONFIRM";
7
+ CATEGORY_PRICE_ENUM2[CATEGORY_PRICE_ENUM2["WATING_APPROVE"] = 2] = "WATING_APPROVE";
8
+ CATEGORY_PRICE_ENUM2[CATEGORY_PRICE_ENUM2["APPROVE"] = 3] = "APPROVE";
9
+ CATEGORY_PRICE_ENUM2[CATEGORY_PRICE_ENUM2["DELETE"] = 4] = "DELETE";
10
+ return CATEGORY_PRICE_ENUM2;
11
+ })(CATEGORY_PRICE_ENUM || {});
12
+ const badgeStatusPriceConfig = {
13
13
  [0 /* CREATE */]: { color: "bg-[#007BE5]", text: "Tạo mới" },
14
14
  [1 /* WATING_CONFIRM */]: {
15
15
  color: "bg-[#DD4338]",
@@ -27,7 +27,7 @@ const badgeStatusCategoryConfig = {
27
27
  };
28
28
  const PriceStatus = ({ status }) => {
29
29
  //! State
30
- const bagde = badgeStatusCategoryConfig[Number(status)];
30
+ const bagde = badgeStatusPriceConfig[Number(status)];
31
31
  //! Function
32
32
  const ItemStatus = ({
33
33
  color,
@@ -42,4 +42,4 @@ const PriceStatus = ({ status }) => {
42
42
  return /* @__PURE__ */ jsx(ItemStatus, { color: bagde?.color, statusName: bagde?.text });
43
43
  };
44
44
 
45
- export { CATEGORY_LIST_ENUM, PriceStatus, badgeStatusCategoryConfig };
45
+ export { CATEGORY_PRICE_ENUM, PriceStatus, badgeStatusPriceConfig };
package/es/ui/index.js CHANGED
@@ -75,6 +75,7 @@ export { TableForm } from './TableForm/index.js';
75
75
  export { Descriptions } from './Descriptions.js';
76
76
  export { CustomeBulkActions } from './CustomeBulkActions/index.js';
77
77
  export { Clock } from './Clock/index.js';
78
+ export { CATEGORY_PRICE_ENUM, PriceStatus, badgeStatusPriceConfig } from './PriceStatus.js';
78
79
  export { I as ID_TABLE_WRAPPER, a as MAX_TAG_COUNT, M as MAX_TAG_TEXT_LENGTH, T as TINY_API } from '../chunks/common-BcURBmQ-.js';
79
80
  export { Sidebar } from './Sidebar/index.js';
80
81
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.554",
4
+ "version": "1.9.556",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -1,5 +1,4 @@
1
- import { TypeStatusTable } from '../../constants';
2
- export declare enum CATEGORY_LIST_ENUM {
1
+ export declare enum CATEGORY_PRICE_ENUM {
3
2
  CREATE = 0,// tạo mới
4
3
  WATING_CONFIRM = 1,// đang xác nhận
5
4
  WATING_APPROVE = 2,// đang chờ duyệt
@@ -12,9 +11,9 @@ type BadgeConfig = {
12
11
  text: string;
13
12
  };
14
13
  };
15
- export declare const badgeStatusCategoryConfig: BadgeConfig;
16
- export interface CategoryStatusProps {
17
- status: TypeStatusTable;
14
+ export declare const badgeStatusPriceConfig: BadgeConfig;
15
+ export interface PriceStatusProps {
16
+ status: CATEGORY_PRICE_ENUM;
18
17
  }
19
- export declare const PriceStatus: ({ status }: CategoryStatusProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const PriceStatus: ({ status }: PriceStatusProps) => import("react/jsx-runtime").JSX.Element;
20
19
  export {};
@@ -75,3 +75,4 @@ export * from './TableForm';
75
75
  export * from './Descriptions';
76
76
  export * from './CustomeBulkActions';
77
77
  export * from './Clock';
78
+ export * from './PriceStatus';