@pnkx-lib/ui 1.9.312 → 1.9.314

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 (38) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/InboxOutlined-DNCJCjk3.js +20 -0
  3. package/es/chunks/{bundle-mjs-BBFHkixS.js → bundle-mjs-BME7zF0Z.js} +1 -1
  4. package/es/chunks/{index.esm-o4O8pXMN.js → index.esm-AaUjBMaK.js} +39 -21
  5. package/es/chunks/{layout-DoBNb9xg.js → layout-BMXqdwv2.js} +11 -5
  6. package/es/chunks/{useBreadcrumb-DNHCzMIQ.js → useBreadcrumb-Ddzk1fu2.js} +5 -0
  7. package/es/fields/CascaderField.js +1 -1
  8. package/es/fields/Checkbox.js +1 -1
  9. package/es/fields/DatePicker.js +1 -1
  10. package/es/fields/DateRangePicker.js +1 -1
  11. package/es/fields/Input.js +2 -2
  12. package/es/fields/PnkxField.js +1 -1
  13. package/es/fields/Select.js +1 -2
  14. package/es/fields/SliderRanger.js +1 -1
  15. package/es/fields/SliderSingle.js +1 -1
  16. package/es/fields/Switch.js +1 -1
  17. package/es/fields/Textarea.js +1 -1
  18. package/es/fields/TimePicker.js +1 -1
  19. package/es/fields/TimeRangePicker.js +1 -1
  20. package/es/fields/TinyMCE.js +11 -47
  21. package/es/ui/BreadcrumbHeading.js +1 -1
  22. package/es/ui/Button.js +1 -1
  23. package/es/ui/Cascader.js +1 -1
  24. package/es/ui/CategoryStatus.js +1 -1
  25. package/es/ui/Container.js +1 -1
  26. package/es/ui/Heading.js +1 -1
  27. package/es/ui/ImportFile.js +74 -0
  28. package/es/ui/Layout.js +1 -1
  29. package/es/ui/Modal.js +1 -1
  30. package/es/ui/SearchFilterForm.js +1 -1
  31. package/es/ui/Sidebar.js +48 -198
  32. package/es/ui/UploadComponent.js +1 -1
  33. package/es/ui/UploadImage.js +1 -1
  34. package/es/ui/UploadMultiple.js +2 -19
  35. package/es/ui/index.js +4 -4
  36. package/package.json +1 -1
  37. package/types/components/ui/ImportFile.d.ts +11 -0
  38. package/types/ui/ImportFile.d.ts +2 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { c as className } from '../chunks/index-mzHK7Za8.js';
3
3
  import { Breadcrumb } from './Breadcrumb.js';
4
- import { u as useBreadcrumb } from '../chunks/useBreadcrumb-DNHCzMIQ.js';
4
+ import { u as useBreadcrumb } from '../chunks/useBreadcrumb-Ddzk1fu2.js';
5
5
 
6
6
  const BreadcrumbHeading = (props) => {
7
7
  const { menu, customBreadcum } = props;
package/es/ui/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Button as Button$1 } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
4
4
 
5
5
  const Button = (props) => {
6
6
  const { onClick, ...restProps } = props;
package/es/ui/Cascader.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Cascader } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
4
4
 
5
5
  const CascaderField = (props) => {
6
6
  const {
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
2
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
3
 
4
4
  var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
5
5
  CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
2
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
3
 
4
4
  const Container = ({
5
5
  children,
package/es/ui/Heading.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { c as className } from '../chunks/index-mzHK7Za8.js';
3
3
  import { Breadcrumb } from './Breadcrumb.js';
4
- import { u as useBreadcrumb } from '../chunks/useBreadcrumb-DNHCzMIQ.js';
4
+ import { u as useBreadcrumb } from '../chunks/useBreadcrumb-Ddzk1fu2.js';
5
5
 
6
6
  const Heading = (props) => {
7
7
  const { rightContent, children, noBreadcum, classNameWrapHeading, menu } = props;
@@ -0,0 +1,74 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { Upload } from 'antd';
3
+ import { R as RefIcon$3 } from '../chunks/InboxOutlined-DNCJCjk3.js';
4
+ import { I as Icon, _ as _extends } from '../chunks/AntdIcon-DSoxq9aC.js';
5
+ import * as React from 'react';
6
+
7
+ // This icon file is generated automatically.
8
+ var CheckCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
9
+
10
+ var CheckCircleFilled = function CheckCircleFilled(props, ref) {
11
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
12
+ ref: ref,
13
+ icon: CheckCircleFilled$1
14
+ }));
15
+ };
16
+
17
+ /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */
18
+ var RefIcon$2 = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
19
+ if (process.env.NODE_ENV !== 'production') {
20
+ RefIcon$2.displayName = 'CheckCircleFilled';
21
+ }
22
+
23
+ // This icon file is generated automatically.
24
+ var CloseCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, "name": "close-circle", "theme": "filled" };
25
+
26
+ var CloseCircleFilled = function CloseCircleFilled(props, ref) {
27
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
28
+ ref: ref,
29
+ icon: CloseCircleFilled$1
30
+ }));
31
+ };
32
+
33
+ /**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMTI3Ljk4IDI3NC44MmgtLjA0bC0uMDguMDZMNTEyIDQ2Ni43NSAzODQuMTQgMzM4Ljg4Yy0uMDQtLjA1LS4wNi0uMDYtLjA4LS4wNmEuMTIuMTIgMCAwMC0uMDcgMGMtLjAzIDAtLjA1LjAxLS4wOS4wNWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAwLS4wNS4wOS4xMi4xMiAwIDAwMCAuMDd2LjAyYS4yNy4yNyAwIDAwLjA2LjA2TDQ2Ni43NSA1MTIgMzM4Ljg4IDYzOS44NmMtLjA1LjA0LS4wNi4wNi0uMDYuMDhhLjEyLjEyIDAgMDAwIC4wN2MwIC4wMy4wMS4wNS4wNS4wOWw0NS4wMiA0NS4wMmEuMi4yIDAgMDAuMDkuMDUuMTIuMTIgMCAwMC4wNyAwYy4wMiAwIC4wNC0uMDEuMDgtLjA1TDUxMiA1NTcuMjVsMTI3Ljg2IDEyNy44N2MuMDQuMDQuMDYuMDUuMDguMDVhLjEyLjEyIDAgMDAuMDcgMGMuMDMgMCAuMDUtLjAxLjA5LS4wNWw0NS4wMi00NS4wMmEuMi4yIDAgMDAuMDUtLjA5LjEyLjEyIDAgMDAwLS4wN3YtLjAyYS4yNy4yNyAwIDAwLS4wNS0uMDZMNTU3LjI1IDUxMmwxMjcuODctMTI3Ljg2Yy4wNC0uMDQuMDUtLjA2LjA1LS4wOGEuMTIuMTIgMCAwMDAtLjA3YzAtLjAzLS4wMS0uMDUtLjA1LS4wOWwtNDUuMDItNDUuMDJhLjIuMiAwIDAwLS4wOS0uMDUuMTIuMTIgMCAwMC0uMDcgMHoiIC8+PC9zdmc+) */
34
+ var RefIcon$1 = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
35
+ if (process.env.NODE_ENV !== 'production') {
36
+ RefIcon$1.displayName = 'CloseCircleFilled';
37
+ }
38
+
39
+ // This icon file is generated automatically.
40
+ var ExclamationCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
41
+
42
+ var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
43
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
44
+ ref: ref,
45
+ icon: ExclamationCircleFilled$1
46
+ }));
47
+ };
48
+
49
+ /**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0tMzIgMjMyYzAtNC40IDMuNi04IDgtOGg0OGM0LjQgMCA4IDMuNiA4IDh2MjcyYzAgNC40LTMuNiA4LTggOGgtNDhjLTQuNCAwLTgtMy42LTgtOFYyOTZ6bTMyIDQ0MGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */
50
+ var RefIcon = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
51
+ if (process.env.NODE_ENV !== 'production') {
52
+ RefIcon.displayName = 'ExclamationCircleFilled';
53
+ }
54
+
55
+ const { Dragger } = Upload;
56
+ const ImportFile = ({ loading, status, ...rest }) => {
57
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
58
+ /* @__PURE__ */ jsx(Dragger, { ...rest, children: /* @__PURE__ */ jsxs("div", { children: [
59
+ /* @__PURE__ */ jsx("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ jsx(RefIcon$3, {}) }),
60
+ /* @__PURE__ */ jsx("p", { className: "ant-upload-text", children: "Kéo tập tin của bạn hoặc nhấp để duyệt một tập tin" }),
61
+ /* @__PURE__ */ jsx("p", { className: "ant-upload-hint", children: "Chỉ cho phép chọn file .xlsx và tối đa 5mb" })
62
+ ] }) }),
63
+ loading && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
64
+ /* @__PURE__ */ jsx(RefIcon, { className: "!text-[#1677FF] text-xl" }),
65
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: "Vui lòng chờ một chút. File của bạn đang được xử lý" })
66
+ ] }),
67
+ status.message && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 mt-2", children: [
68
+ status.type === "error" ? /* @__PURE__ */ jsx(RefIcon$1, { className: "!text-[#FF4D4F] text-xl" }) : /* @__PURE__ */ jsx(RefIcon$2, { className: "!text-[#52C41A] text-xl" }),
69
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: status.message })
70
+ ] })
71
+ ] });
72
+ };
73
+
74
+ export { ImportFile };
package/es/ui/Layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-DoBNb9xg.js';
2
+ import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-BMXqdwv2.js';
3
3
 
4
4
  const LayoutComponent = ({
5
5
  layoutClassName,
package/es/ui/Modal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Modal as Modal$1 } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
4
4
 
5
5
  const widthMap = {
6
6
  xs: 400,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { u as useForm } from '../chunks/index.esm-o4O8pXMN.js';
2
+ import { u as useForm } from '../chunks/index.esm-AaUjBMaK.js';
3
3
  import { Button } from './Button.js';
4
4
  import { I as Icon, _ as _extends } from '../chunks/AntdIcon-DSoxq9aC.js';
5
5
  import * as React from 'react';