@pnkx-lib/ui 1.9.467 → 1.9.469

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 (37) hide show
  1. package/dist/style.css +1 -1
  2. package/es/chunks/{AntdIcon-KP2HuB_x.js → AntdIcon--fhhlrN2.js} +55 -3
  3. package/es/chunks/{CloseCircleFilled-4jnV3XJV.js → CloseCircleFilled-CFf9JuKT.js} +1 -1
  4. package/es/chunks/{CloseOutlined-DdLJZQvZ.js → CloseOutlined-Dr0OzVF3.js} +1 -1
  5. package/es/chunks/{DownOutlined-Cl95zPIN.js → DownOutlined-DeqIkZcf.js} +1 -1
  6. package/es/chunks/ExportFile-HZ8zFqRV.js +64 -0
  7. package/es/chunks/GenericUploadModal-ClzfSP57.js +11605 -0
  8. package/es/chunks/{InboxOutlined-W7xl_mLq.js → InboxOutlined-BSPALM_S.js} +1 -1
  9. package/es/chunks/Layout-CRPluSOs.js +598 -0
  10. package/es/chunks/{LoadingOutlined-C5-PNVpb.js → LoadingOutlined-RxqeOpLJ.js} +1 -1
  11. package/es/chunks/PlusOutlined-BTNAWDVD.js +20 -0
  12. package/es/chunks/SearchFilterForm-dvW624w0.js +88 -0
  13. package/es/chunks/createForOfIteratorHelper-DEc7rz3b.js +52 -0
  14. package/es/chunks/{createSuper-CnOp-EUR.js → createSuper-DsoUqJ1E.js} +2 -2
  15. package/es/chunks/{defineProperty-CTLrw71t.js → defineProperty-CnMPreZi.js} +1 -1
  16. package/es/chunks/{index-xdC7i8zM.js → index-BLRvgOFN.js} +1 -1
  17. package/es/chunks/index-ClFSxOLW.js +655 -0
  18. package/es/chunks/{toArray-GtzhUyP3.js → toArray-DA_RJdbk.js} +186 -8
  19. package/es/constants/index.js +1 -0
  20. package/es/fields/DatePicker.js +4 -52
  21. package/es/fields/Select.js +2 -2
  22. package/es/fields/Upload.js +1 -18
  23. package/es/index.js +5 -5
  24. package/es/ui/BreadcrumbHeading.js +1 -1
  25. package/es/ui/ExportFile.js +6 -64
  26. package/es/ui/GenericUploadModal.js +7 -11585
  27. package/es/ui/Heading.js +1 -1
  28. package/es/ui/ImportFile.js +2 -2
  29. package/es/ui/Layout.js +2 -598
  30. package/es/ui/SearchFilterForm.js +4 -88
  31. package/es/ui/Sidebar/index.js +1 -655
  32. package/es/ui/UploadComponent.js +1 -1
  33. package/es/ui/UploadMultiple.js +1 -1
  34. package/es/ui/index.js +131806 -149
  35. package/package.json +1 -1
  36. package/types/components/ui/Table/ActionRowTable/index.d.ts +3 -1
  37. package/types/constants/table.d.ts +2 -1
@@ -1,88 +1,4 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { u as useForm } from '../chunks/index.esm-Dr5ZHcf7.js';
3
- import { Button } from './Button.js';
4
- import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
5
- import * as React from 'react';
6
-
7
- // This icon file is generated automatically.
8
- var FilterOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" } }] }, "name": "filter", "theme": "outlined" };
9
-
10
- var FilterOutlined = function FilterOutlined(props, ref) {
11
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
12
- ref: ref,
13
- icon: FilterOutlined$1
14
- }));
15
- };
16
-
17
- /**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MC4xIDE1NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4TDM0OSA1OTcuNFY4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNTk3LjRMOTA3LjcgMjAyYzEyLjItMjEuMy0zLjEtNDgtMjcuNi00OHpNNjAzLjQgNzk4SDQyMC42VjY0MmgxODIuOXYxNTZ6bTkuNi0yMzYuNmwtOS41IDE2LjZoLTE4M2wtOS41LTE2LjZMMjEyLjcgMjI2aDU5OC42TDYxMyA1NjEuNHoiIC8+PC9zdmc+) */
18
- var RefIcon$1 = /*#__PURE__*/React.forwardRef(FilterOutlined);
19
- if (process.env.NODE_ENV !== 'production') {
20
- RefIcon$1.displayName = 'FilterOutlined';
21
- }
22
-
23
- // This icon file is generated automatically.
24
- var SearchOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
25
-
26
- var SearchOutlined = function SearchOutlined(props, ref) {
27
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
28
- ref: ref,
29
- icon: SearchOutlined$1
30
- }));
31
- };
32
-
33
- /**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */
34
- var RefIcon = /*#__PURE__*/React.forwardRef(SearchOutlined);
35
- if (process.env.NODE_ENV !== 'production') {
36
- RefIcon.displayName = 'SearchOutlined';
37
- }
38
-
39
- const SearchFiltersForm = ({
40
- initialValues,
41
- renderFilterFields,
42
- onSubmit,
43
- onReset,
44
- classNamesContainer,
45
- classNameWrapperForm,
46
- hideDefaultSubmit,
47
- hideResetButton
48
- }) => {
49
- const { control, handleSubmit, reset, setValue, watch } = useForm({
50
- defaultValues: initialValues
51
- });
52
- return /* @__PURE__ */ jsxs("form", { className: classNameWrapperForm, onSubmit: handleSubmit(onSubmit), children: [
53
- /* @__PURE__ */ jsx("div", { className: classNamesContainer, children: renderFilterFields && renderFilterFields({
54
- control,
55
- setValue,
56
- handleSubmit: handleSubmit(onSubmit),
57
- reset,
58
- watch
59
- }) }),
60
- !hideDefaultSubmit && /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
61
- /* @__PURE__ */ jsx(
62
- Button,
63
- {
64
- icon: /* @__PURE__ */ jsx(RefIcon, {}),
65
- className: "px-3 py-1 ",
66
- color: "blue",
67
- variant: "solid",
68
- htmlType: "submit",
69
- children: "Tìm kiếm"
70
- }
71
- ),
72
- !hideResetButton && /* @__PURE__ */ jsx(
73
- Button,
74
- {
75
- icon: /* @__PURE__ */ jsx(RefIcon$1, {}),
76
- className: "px-3 py-1",
77
- onClick: () => {
78
- reset();
79
- onReset?.();
80
- },
81
- children: "Đặt lại"
82
- }
83
- )
84
- ] })
85
- ] });
86
- };
87
-
88
- export { SearchFiltersForm };
1
+ import 'react/jsx-runtime';
2
+ import '../chunks/index.esm-Dr5ZHcf7.js';
3
+ import './Button.js';
4
+ export { S as SearchFiltersForm } from '../chunks/SearchFilterForm-dvW624w0.js';