gasp-components 1.0.7 → 1.0.8

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 (31) hide show
  1. package/dist/assets/index.css +1 -0
  2. package/dist/assets/main.css +1 -0
  3. package/dist/components/ag-grid-table/index.js +5551 -5550
  4. package/dist/components/button/index.js +23 -34
  5. package/dist/components/checklist/checklist-item.js +11 -16
  6. package/dist/components/checklist/index.js +7 -13
  7. package/dist/components/date-picker/index.js +2 -9
  8. package/dist/components/dragger/index.js +64 -91
  9. package/dist/components/dropdown/index.js +12 -40
  10. package/dist/components/form/index.js +18 -45
  11. package/dist/components/form-item/index.js +23 -50
  12. package/dist/components/input/index.js +11 -32
  13. package/dist/components/modal/index.js +27 -52
  14. package/dist/components/password-input/index.js +8 -29
  15. package/dist/components/progress/index.js +22 -53
  16. package/dist/components/progress-circle/index.js +12 -32
  17. package/dist/components/radio-button/index.js +13 -40
  18. package/dist/components/radio-button-group/index.js +23 -52
  19. package/dist/components/result-popup/index.js +21 -59
  20. package/dist/components/select/index.js +12 -40
  21. package/dist/components/side-menu/index.js +3 -35
  22. package/dist/components/side-menu/menu-item.js +2 -29
  23. package/dist/components/table/index.js +2 -17
  24. package/dist/components/tabs/index.js +28 -58
  25. package/dist/components/tabs/tab.js +30 -57
  26. package/dist/components/tag/index.js +2 -6
  27. package/dist/components/timeline-horizontal/index.js +19 -46
  28. package/dist/components/upload/index.js +52 -79
  29. package/dist/main.js +193 -255
  30. package/package.json +3 -2
  31. package/dist/assets/style.css +0 -1
@@ -1,45 +1,34 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { c as p } from "../../index-NQd_zMf0.js";
3
- import { B as l } from "../../button-LN5ZDad8.js";
4
- import "react";
5
- import "../../omit-ylWA0ZLZ.js";
6
- import "../../index-1KQbTQJ2.js";
7
- import "../../index-vtDVJV8q.js";
8
- import "../../index-ZT64Ec6u.js";
9
- import "../../isVisible-Qi9l15Ty.js";
10
- import "../../reactNode-R20zZQk1.js";
11
- import "../../asyncToGenerator-t4sKr8R4.js";
12
- import "../../Compact-fdEKV_mF.js";
13
- import "../../LoadingOutlined-6Ipqn0og.js";
14
- import "../../compact-item-jjuVmDBH.js";
15
- const y = ({
16
- children: i,
17
- type: o = "default",
18
- danger: t = !1,
19
- className: m,
20
- ...s
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { c as i } from "../../index-NQd_zMf0.js";
3
+ import { B as u } from "../../button-LN5ZDad8.js";
4
+ const h = ({
5
+ children: s,
6
+ type: t = "default",
7
+ danger: e = !1,
8
+ className: d,
9
+ ...l
21
10
  }) => {
22
- const r = o === "default", e = o === "primary";
23
- return /* @__PURE__ */ d(
24
- l,
11
+ const o = t === "default", r = t === "primary";
12
+ return /* @__PURE__ */ a(
13
+ u,
25
14
  {
26
- ...s,
27
- danger: t,
28
- className: p(
29
- m,
15
+ ...l,
16
+ danger: e,
17
+ className: i(
18
+ d,
30
19
  "rounded-lg h-auto shadow-none font-semibold",
31
20
  {
32
- "bg-white border border-dodgerBlue": r,
33
- "text-dodgerBlue hover:!text-dodgerBlue": r,
34
- "bg-dodgerBlue border-0": !t && e,
35
- "text-white enabled:hover:!text-white": !t && e,
36
- "bg-coral !text-white": t
21
+ "bg-white border border-dodgerBlue": o,
22
+ "text-dodgerBlue hover:!text-dodgerBlue": o,
23
+ "bg-dodgerBlue border-0": !e && r,
24
+ "text-white enabled:hover:!text-white": !e && r,
25
+ "bg-coral !text-white": e
37
26
  }
38
27
  ),
39
- children: i
28
+ children: s
40
29
  }
41
30
  );
42
31
  };
43
32
  export {
44
- y as Button
33
+ h as Button
45
34
  };
@@ -1,29 +1,24 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import m from "../../icons/check-icon/index.js";
3
- import { S as s } from "../../index-ELHBhuK9.js";
4
- import "react";
5
- import "../../index-NQd_zMf0.js";
6
- import "../../Compact-fdEKV_mF.js";
7
- import "../../index-1KQbTQJ2.js";
8
- import "../../index-vtDVJV8q.js";
9
- const u = ({
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import a from "../../icons/check-icon/index.js";
3
+ import { S as c } from "../../index-ELHBhuK9.js";
4
+ const n = ({
10
5
  children: r,
11
6
  checked: o = !1,
12
- onClick: t
13
- }) => /* @__PURE__ */ i(
14
- s,
7
+ onClick: e
8
+ }) => /* @__PURE__ */ s(
9
+ c,
15
10
  {
16
11
  className: "hover:cursor-pointer",
17
12
  size: 18,
18
13
  align: "start",
19
- onClick: t,
14
+ onClick: e,
20
15
  children: [
21
- /* @__PURE__ */ e(m, { color: o ? "#42C75E" : void 0 }),
16
+ /* @__PURE__ */ t(a, { color: o ? "#42C75E" : void 0 }),
22
17
  r
23
18
  ]
24
19
  }
25
20
  );
26
21
  export {
27
- u as CheckListItem,
28
- u as default
22
+ n as CheckListItem,
23
+ n as default
29
24
  };
@@ -1,16 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { CheckListItem as e } from "./checklist-item.js";
3
- import { S as c } from "../../index-ELHBhuK9.js";
4
- import "../../icons/check-icon/index.js";
5
- import "react";
6
- import "../../index-NQd_zMf0.js";
7
- import "../../Compact-fdEKV_mF.js";
8
- import "../../index-1KQbTQJ2.js";
9
- import "../../index-vtDVJV8q.js";
10
- const C = ({
11
- items: i,
12
- className: t
13
- }) => /* @__PURE__ */ r(c, { direction: "vertical", size: 16, className: t, children: i.map(({ content: o, ...m }, p) => /* @__PURE__ */ r(e, { ...m, children: o }, p)) });
2
+ import { CheckListItem as m } from "./checklist-item.js";
3
+ import { S as p } from "../../index-ELHBhuK9.js";
4
+ const h = ({
5
+ items: e,
6
+ className: i
7
+ }) => /* @__PURE__ */ r(p, { direction: "vertical", size: 16, className: i, children: e.map(({ content: t, ...o }, c) => /* @__PURE__ */ r(m, { ...o, children: t }, c)) });
14
8
  export {
15
- C as CheckList
9
+ h as CheckList
16
10
  };
@@ -21,13 +21,6 @@ import { B as Zo } from "../../button-LN5ZDad8.js";
21
21
  import { u as oa } from "../../motion-0ToOu81j.js";
22
22
  import { u as ia } from "../../useCSSVarCls-GwZT_WiF.js";
23
23
  import { u as la } from "../../useLocale-eThlLZJw.js";
24
- import "../../index-vtDVJV8q.js";
25
- import "../../index--6VfGMUo.js";
26
- import "../../asyncToGenerator-t4sKr8R4.js";
27
- import "../../omit-ylWA0ZLZ.js";
28
- import "../../index-ZT64Ec6u.js";
29
- import "../../reactNode-R20zZQk1.js";
30
- import "../../LoadingOutlined-6Ipqn0og.js";
31
24
  var ca = { exports: {} };
32
25
  (function(e, t) {
33
26
  (function(n, r) {
@@ -5021,7 +5014,7 @@ Ft._InternalPanelDoNotUseOrYouWillBeFired = Vl;
5021
5014
  const Tl = Ur(Ft.RangePicker, "picker", null, Fa);
5022
5015
  Ft._InternalRangePanelDoNotUseOrYouWillBeFired = Tl;
5023
5016
  Ft.generatePicker = Ba;
5024
- const Hl = Ft, vc = (e) => /* @__PURE__ */ Yn("div", { className: "border-[1px] border-gainsboro border-solid rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ Yn(
5017
+ const Hl = Ft, ic = (e) => /* @__PURE__ */ Yn("div", { className: "border-[1px] border-gainsboro border-solid rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ Yn(
5025
5018
  Hl,
5026
5019
  {
5027
5020
  ...e,
@@ -5038,5 +5031,5 @@ const Hl = Ft, vc = (e) => /* @__PURE__ */ Yn("div", { className: "border-[1px]
5038
5031
  }
5039
5032
  ) });
5040
5033
  export {
5041
- vc as DatePicker
5034
+ ic as DatePicker
5042
5035
  };
@@ -1,155 +1,128 @@
1
- import { jsxs as n, jsx as o, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as a, Fragment as h } from "react/jsx-runtime";
2
2
  import { c as N } from "../../index-NQd_zMf0.js";
3
3
  import { useState as T, useRef as _, useEffect as u } from "react";
4
4
  import O from "../../icons/file-icon/index.js";
5
5
  import A from "../../icons/upload-icon/index.js";
6
6
  import { D as k, U as F } from "../../UploadOutlined-D8jfLEgv.js";
7
- import { T as f } from "../../index-0mpuHoS5.js";
7
+ import { T as p } from "../../index-0mpuHoS5.js";
8
8
  import { F as w } from "../../createFormattedComponent-FcpICAm8.js";
9
- import "../../index-1KQbTQJ2.js";
10
- import "../../index-vtDVJV8q.js";
11
- import "../../isVisible-Qi9l15Ty.js";
12
- import "../../CheckOutlined-EgxCAgj_.js";
13
- import "../../index--6VfGMUo.js";
14
- import "../../Compact-fdEKV_mF.js";
15
- import "../../useMergedState-qUafLuUa.js";
16
- import "../../omit-ylWA0ZLZ.js";
17
- import "../../styleChecker-pZ3k2IiY.js";
18
- import "../../KeyCode-qFRXB1-n.js";
19
- import "../../useLocale-eThlLZJw.js";
20
- import "../../index-5Uo03BMk.js";
21
- import "../../index-L-MzVDcK.js";
22
- import "../../motion-0ToOu81j.js";
23
- import "../../motion-NQme0FJ_.js";
24
- import "../../roundedArrow-p1Pmd9av.js";
25
- import "../../reactNode-R20zZQk1.js";
26
- import "../../zoom-Ps8y0jNW.js";
27
- import "../../colors-opGg9oSz.js";
28
- import "../../TextArea-n3dknzTq.js";
29
- import "../../CloseCircleFilled-bIgIULWb.js";
30
- import "../../useVariants-s0IcneBD.js";
31
- import "../../context-h3WSVDPz.js";
32
- import "../../asyncToGenerator-t4sKr8R4.js";
33
- import "../../index-GgkQrebz.js";
34
- import "../../compact-item-jjuVmDBH.js";
35
- import "../../useCSSVarCls-GwZT_WiF.js";
36
- const cr = ({
37
- multiple: c = !1,
38
- onChange: m,
39
- value: d,
9
+ const C = ({
10
+ multiple: f = !1,
11
+ onChange: c,
12
+ value: m,
40
13
  placeholder: g
41
14
  }) => {
42
- const [i, s] = T([]), p = _(null), x = (r) => {
43
- var a;
44
- (a = r.target.files) != null && a.length && s(c ? [
45
- ...i,
46
- ...Array.from(Array(r.target.files.length)).map(
47
- (e, l) => {
15
+ const [s, n] = T([]), d = _(null), x = (e) => {
16
+ var l;
17
+ (l = e.target.files) != null && l.length && n(f ? [
18
+ ...s,
19
+ ...Array.from(Array(e.target.files.length)).map(
20
+ (r, o) => {
48
21
  var t;
49
- return (t = r.target.files) == null ? void 0 : t.item(l);
22
+ return (t = e.target.files) == null ? void 0 : t.item(o);
50
23
  }
51
24
  )
52
- ] : Array.from(Array(r.target.files.length)).map(
53
- (e, l) => {
25
+ ] : Array.from(Array(e.target.files.length)).map(
26
+ (r, o) => {
54
27
  var t;
55
- return (t = r.target.files) == null ? void 0 : t.item(l);
28
+ return (t = e.target.files) == null ? void 0 : t.item(o);
56
29
  }
57
30
  ));
58
- }, y = (r) => {
59
- r.stopPropagation(), r.preventDefault(), r.currentTarget.classList.add("!border-dodgerBlue");
60
- }, v = (r) => {
61
- r.stopPropagation(), r.preventDefault(), r.currentTarget.classList.remove("!border-dodgerBlue");
62
- }, b = (r) => {
63
- var a;
64
- r.preventDefault(), (a = r.dataTransfer.files) != null && a.length && s(c ? [
65
- ...i,
66
- ...Array.from(Array(r.dataTransfer.files.length)).map(
67
- (e, l) => {
31
+ }, y = (e) => {
32
+ e.stopPropagation(), e.preventDefault(), e.currentTarget.classList.add("!border-dodgerBlue");
33
+ }, v = (e) => {
34
+ e.stopPropagation(), e.preventDefault(), e.currentTarget.classList.remove("!border-dodgerBlue");
35
+ }, b = (e) => {
36
+ var l;
37
+ e.preventDefault(), (l = e.dataTransfer.files) != null && l.length && n(f ? [
38
+ ...s,
39
+ ...Array.from(Array(e.dataTransfer.files.length)).map(
40
+ (r, o) => {
68
41
  var t;
69
- return (t = r.dataTransfer.files) == null ? void 0 : t.item(l);
42
+ return (t = e.dataTransfer.files) == null ? void 0 : t.item(o);
70
43
  }
71
44
  )
72
- ] : Array.from(Array(r.dataTransfer.files.length)).map(
73
- (e, l) => {
45
+ ] : Array.from(Array(e.dataTransfer.files.length)).map(
46
+ (r, o) => {
74
47
  var t;
75
- return (t = r.dataTransfer.files) == null ? void 0 : t.item(l);
48
+ return (t = e.dataTransfer.files) == null ? void 0 : t.item(o);
76
49
  }
77
50
  ));
78
- }, D = (r, a) => {
79
- r.stopPropagation();
80
- const e = [
81
- ...i.slice(0, a),
82
- ...i.slice(a + 1)
51
+ }, D = (e, l) => {
52
+ e.stopPropagation();
53
+ const r = [
54
+ ...s.slice(0, l),
55
+ ...s.slice(l + 1)
83
56
  ];
84
- s(e), m && m(e.length === 0 ? null : e), p.current && (p.current.value = "");
57
+ n(r), c && c(r.length === 0 ? null : r), d.current && (d.current.value = "");
85
58
  };
86
59
  return u(() => {
87
- d && d.length > 0 && s(d);
88
- }, [d]), u(() => {
89
- i.length > 0 && m && m(i);
90
- }, [i, m]), /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-4", children: [
91
- i.map((r, a) => /* @__PURE__ */ n(
60
+ m && m.length > 0 && n(m);
61
+ }, [m]), u(() => {
62
+ s.length > 0 && c && c(s);
63
+ }, [s, c]), /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-4", children: [
64
+ s.map((e, l) => /* @__PURE__ */ i(
92
65
  "div",
93
66
  {
94
67
  className: "relative group basis-full max-h-48 flex items-center gap-x-3 py-12 pe-2 ps-4 bg-lightBlue rounded-2xl hover:cursor-pointer",
95
68
  role: "button",
96
69
  onClick: () => {
97
- var e;
98
- return (e = p.current) == null ? void 0 : e.click();
70
+ var r;
71
+ return (r = d.current) == null ? void 0 : r.click();
99
72
  },
100
73
  children: [
101
- /* @__PURE__ */ o(
74
+ /* @__PURE__ */ a(
102
75
  "div",
103
76
  {
104
77
  className: "absolute opacity-0 group-hover:opacity-100 transition-opacity -left-2 -top-2 flex items-center justify-center text-ghostWhite bg-coral rounded-full w-6 h-6",
105
- onClick: (e) => D(e, a),
106
- children: /* @__PURE__ */ o(k, { size: 4 })
78
+ onClick: (r) => D(r, l),
79
+ children: /* @__PURE__ */ a(k, { size: 4 })
107
80
  }
108
81
  ),
109
- /* @__PURE__ */ o(F, { className: "flex-1 text-slateGray" }),
110
- /* @__PURE__ */ n("div", { className: "flex flex-col items-end gap-y-1", children: [
111
- /* @__PURE__ */ o(f.Text, { className: "text-xs font-semibold text-ellipsis overflow-hidden whitespace-nowrap", children: r.name }),
112
- /* @__PURE__ */ o(f.Text, { className: "text-xs", children: /* @__PURE__ */ o(w, { value: r.size, children: (e) => /* @__PURE__ */ n(h, { children: [
113
- e[0].value,
82
+ /* @__PURE__ */ a(F, { className: "flex-1 text-slateGray" }),
83
+ /* @__PURE__ */ i("div", { className: "flex flex-col items-end gap-y-1", children: [
84
+ /* @__PURE__ */ a(p.Text, { className: "text-xs font-semibold text-ellipsis overflow-hidden whitespace-nowrap", children: e.name }),
85
+ /* @__PURE__ */ a(p.Text, { className: "text-xs", children: /* @__PURE__ */ a(w, { value: e.size, children: (r) => /* @__PURE__ */ i(h, { children: [
86
+ r[0].value,
114
87
  " Kb"
115
88
  ] }) }) })
116
89
  ] }),
117
- /* @__PURE__ */ o(O, {})
90
+ /* @__PURE__ */ a(O, {})
118
91
  ]
119
92
  },
120
- r.name
93
+ e.name
121
94
  )),
122
- /* @__PURE__ */ n(
95
+ /* @__PURE__ */ i(
123
96
  "div",
124
97
  {
125
98
  className: N(
126
99
  "basis-full max-h-48 flex flex-col items-center justify-center py-12 bg-ghostWhite rounded-2xl border-dashed border border-gainsboro hover:border-dodgerBlue hover:cursor-pointer transition-colors duration-200",
127
100
  {
128
- hidden: !c && i.length > 0
101
+ hidden: !f && s.length > 0
129
102
  }
130
103
  ),
131
104
  role: "button",
132
105
  onClick: () => {
133
- var r;
134
- return (r = p.current) == null ? void 0 : r.click();
106
+ var e;
107
+ return (e = d.current) == null ? void 0 : e.click();
135
108
  },
136
109
  onDragOver: y,
137
110
  onDragLeave: v,
138
111
  onDrop: b,
139
112
  children: [
140
- /* @__PURE__ */ o(
113
+ /* @__PURE__ */ a(
141
114
  "input",
142
115
  {
143
- ref: p,
116
+ ref: d,
144
117
  type: "file",
145
- multiple: c,
118
+ multiple: f,
146
119
  className: "!hidden",
147
120
  onChange: x
148
121
  }
149
122
  ),
150
- /* @__PURE__ */ o(A, {}),
151
- /* @__PURE__ */ o(f.Text, { className: "mt-3 font-normal", children: g || /* @__PURE__ */ n(h, { children: [
152
- /* @__PURE__ */ o("span", { className: "text-dodgerBlue", children: "click_here_to" }),
123
+ /* @__PURE__ */ a(A, {}),
124
+ /* @__PURE__ */ a(p.Text, { className: "mt-3 font-normal", children: g || /* @__PURE__ */ i(h, { children: [
125
+ /* @__PURE__ */ a("span", { className: "text-dodgerBlue", children: "click_here_to" }),
153
126
  " ",
154
127
  "upload_file_or_drag_and_drop"
155
128
  ] }) })
@@ -159,5 +132,5 @@ const cr = ({
159
132
  ] });
160
133
  };
161
134
  export {
162
- cr as Dragger
135
+ C as Dragger
163
136
  };
@@ -1,49 +1,21 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { c as i } from "../../index-NQd_zMf0.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { c as m } from "../../index-NQd_zMf0.js";
3
3
  import "../../index-s3u4YBl4.js";
4
- import { u as s } from "../../createFormattedComponent-FcpICAm8.js";
5
- import { A as a } from "../../index-DVS_nWxv.js";
6
- import "react";
7
- import "../../index-1KQbTQJ2.js";
8
- import "../../index-vtDVJV8q.js";
9
- import "../../isVisible-Qi9l15Ty.js";
10
- import "../../index-L-MzVDcK.js";
11
- import "../../motion-0ToOu81j.js";
12
- import "../../index--6VfGMUo.js";
13
- import "../../Compact-fdEKV_mF.js";
14
- import "../../KeyCode-qFRXB1-n.js";
15
- import "../../useMergedState-qUafLuUa.js";
16
- import "../../omit-ylWA0ZLZ.js";
17
- import "../../index-5Uo03BMk.js";
18
- import "../../motion-NQme0FJ_.js";
19
- import "../../roundedArrow-p1Pmd9av.js";
20
- import "../../reactNode-R20zZQk1.js";
21
- import "../../zoom-Ps8y0jNW.js";
22
- import "../../colors-opGg9oSz.js";
23
- import "../../PurePanel-hLGnXbul.js";
24
- import "../../Overflow-JFdXKgCr.js";
25
- import "../../slide-mFXPRHku.js";
26
- import "../../collapse-ilv4Tji1.js";
27
- import "../../useCSSVarCls-GwZT_WiF.js";
28
- import "../../button-LN5ZDad8.js";
29
- import "../../index-ZT64Ec6u.js";
30
- import "../../asyncToGenerator-t4sKr8R4.js";
31
- import "../../LoadingOutlined-6Ipqn0og.js";
32
- import "../../compact-item-jjuVmDBH.js";
33
- import "../../index-ELHBhuK9.js";
34
- const Q = ({
4
+ import { u as p } from "../../createFormattedComponent-FcpICAm8.js";
5
+ import { A as c } from "../../index-DVS_nWxv.js";
6
+ const f = ({
35
7
  children: r,
36
8
  menu: o,
37
- ...m
9
+ ...s
38
10
  }) => {
39
- const { locale: t } = s();
40
- return /* @__PURE__ */ p(
41
- a,
11
+ const { locale: t } = p();
12
+ return /* @__PURE__ */ a(
13
+ c,
42
14
  {
43
- ...m,
15
+ ...s,
44
16
  menu: {
45
17
  ...o,
46
- className: i(o == null ? void 0 : o.className, {
18
+ className: m(o == null ? void 0 : o.className, {
47
19
  "text-end": t === "ar",
48
20
  "text-start": t === "en"
49
21
  })
@@ -53,5 +25,5 @@ const Q = ({
53
25
  );
54
26
  };
55
27
  export {
56
- Q as Dropdown
28
+ f as Dropdown
57
29
  };
@@ -1,57 +1,30 @@
1
- import { jsx as r, Fragment as s } from "react/jsx-runtime";
2
- import { c as e } from "../../index-NQd_zMf0.js";
1
+ import { jsx as s, Fragment as t } from "react/jsx-runtime";
2
+ import { c as i } from "../../index-NQd_zMf0.js";
3
3
  import "../../index-s3u4YBl4.js";
4
- import { u as a } from "../../createFormattedComponent-FcpICAm8.js";
5
- import { A as l } from "../../index-D3LMPWyJ.js";
6
- import "react";
7
- import "../../index-1KQbTQJ2.js";
8
- import "../../index-vtDVJV8q.js";
9
- import "../../motion-NQme0FJ_.js";
10
- import "../../context-h3WSVDPz.js";
11
- import "../../asyncToGenerator-t4sKr8R4.js";
12
- import "../../Compact-fdEKV_mF.js";
13
- import "../../omit-ylWA0ZLZ.js";
14
- import "../../zoom-Ps8y0jNW.js";
15
- import "../../motion-0ToOu81j.js";
16
- import "../../collapse-ilv4Tji1.js";
17
- import "../../useCSSVarCls-GwZT_WiF.js";
18
- import "../../reactNode-R20zZQk1.js";
19
- import "../../isVisible-Qi9l15Ty.js";
20
- import "../../row-sPFiFm0C.js";
21
- import "../../responsiveObserver-V1_1G14X.js";
22
- import "../../index-5Uo03BMk.js";
23
- import "../../index-L-MzVDcK.js";
24
- import "../../index--6VfGMUo.js";
25
- import "../../useMergedState-qUafLuUa.js";
26
- import "../../roundedArrow-p1Pmd9av.js";
27
- import "../../colors-opGg9oSz.js";
28
- import "../../useLocale-eThlLZJw.js";
29
- import "../../CheckCircleFilled-xt-0R96Z.js";
30
- import "../../CloseCircleFilled-bIgIULWb.js";
31
- import "../../ExclamationCircleFilled-XzDBEGmA.js";
32
- import "../../LoadingOutlined-6Ipqn0og.js";
33
- const Q = ({
34
- className: m,
35
- children: o,
36
- validateMessages: t,
37
- ...i
4
+ import { u as l } from "../../createFormattedComponent-FcpICAm8.js";
5
+ import { A as c } from "../../index-D3LMPWyJ.js";
6
+ const x = ({
7
+ className: e,
8
+ children: r,
9
+ validateMessages: m,
10
+ ...o
38
11
  }) => {
39
- const { formatMessage: p } = a();
40
- return /* @__PURE__ */ r(
41
- l,
12
+ const { formatMessage: a } = l();
13
+ return /* @__PURE__ */ s(
14
+ c,
42
15
  {
43
- ...i,
16
+ ...o,
44
17
  validateMessages: {
45
- required: p({
18
+ required: a({
46
19
  id: "field_is_required"
47
20
  }),
48
- ...t
21
+ ...m
49
22
  },
50
- className: e([m, "flex flex-col gap-y-8"]),
51
- children: /* @__PURE__ */ r(s, { children: o })
23
+ className: i([e, "flex flex-col gap-y-8"]),
24
+ children: /* @__PURE__ */ s(t, { children: r })
52
25
  }
53
26
  );
54
27
  };
55
28
  export {
56
- Q as Form
29
+ x as Form
57
30
  };
@@ -1,59 +1,32 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c as p } from "../../index-NQd_zMf0.js";
3
- import { A as c } from "../../index-D3LMPWyJ.js";
4
- import "../../index-1KQbTQJ2.js";
5
- import "react";
6
- import "../../index-vtDVJV8q.js";
7
- import "../../motion-NQme0FJ_.js";
8
- import "../../context-h3WSVDPz.js";
9
- import "../../asyncToGenerator-t4sKr8R4.js";
10
- import "../../Compact-fdEKV_mF.js";
11
- import "../../omit-ylWA0ZLZ.js";
12
- import "../../zoom-Ps8y0jNW.js";
13
- import "../../motion-0ToOu81j.js";
14
- import "../../collapse-ilv4Tji1.js";
15
- import "../../useCSSVarCls-GwZT_WiF.js";
16
- import "../../reactNode-R20zZQk1.js";
17
- import "../../isVisible-Qi9l15Ty.js";
18
- import "../../row-sPFiFm0C.js";
19
- import "../../responsiveObserver-V1_1G14X.js";
20
- import "../../index-5Uo03BMk.js";
21
- import "../../index-L-MzVDcK.js";
22
- import "../../index--6VfGMUo.js";
23
- import "../../useMergedState-qUafLuUa.js";
24
- import "../../roundedArrow-p1Pmd9av.js";
25
- import "../../colors-opGg9oSz.js";
26
- import "../../useLocale-eThlLZJw.js";
27
- import "../../CheckCircleFilled-xt-0R96Z.js";
28
- import "../../CloseCircleFilled-bIgIULWb.js";
29
- import "../../ExclamationCircleFilled-XzDBEGmA.js";
30
- import "../../LoadingOutlined-6Ipqn0og.js";
31
- const Q = ({
32
- name: r,
33
- label: m,
34
- labelCol: t,
35
- className: i,
36
- children: s,
37
- messageVariables: a,
38
- ...e
39
- }) => /* @__PURE__ */ o(
40
- c.Item,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as a } from "../../index-NQd_zMf0.js";
3
+ import { A as p } from "../../index-D3LMPWyJ.js";
4
+ const x = ({
5
+ name: t,
6
+ label: s,
7
+ labelCol: m,
8
+ className: e,
9
+ children: o,
10
+ messageVariables: c,
11
+ ...n
12
+ }) => /* @__PURE__ */ r(
13
+ p.Item,
41
14
  {
42
- ...e,
43
- name: r,
44
- className: p(i, "text-sm font-bold mb-0"),
45
- label: m && /* @__PURE__ */ o("span", { className: "text-sm", children: m }),
15
+ ...n,
16
+ name: t,
17
+ className: a(e, "text-sm font-bold mb-0"),
18
+ label: s && /* @__PURE__ */ r("span", { className: "text-sm", children: s }),
46
19
  labelCol: {
47
- ...t,
48
- className: p(t == null ? void 0 : t.className, "!pb-4")
20
+ ...m,
21
+ className: a(m == null ? void 0 : m.className, "!pb-4")
49
22
  },
50
23
  messageVariables: {
51
- name: typeof m == "string" ? m : r,
52
- ...a
24
+ name: typeof s == "string" ? s : t,
25
+ ...c
53
26
  },
54
- children: s
27
+ children: o
55
28
  }
56
29
  );
57
30
  export {
58
- Q as FormItem
31
+ x as FormItem
59
32
  };