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,43 +1,15 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { A as i } from "../../index-aawDqn9q.js";
3
- import "react";
4
- import "../../index-NQd_zMf0.js";
5
- import "../../index-1KQbTQJ2.js";
6
- import "../../index-vtDVJV8q.js";
7
- import "../../useMergedState-qUafLuUa.js";
8
- import "../../isVisible-Qi9l15Ty.js";
9
- import "../../index-L-MzVDcK.js";
10
- import "../../motion-0ToOu81j.js";
11
- import "../../index--6VfGMUo.js";
12
- import "../../Compact-fdEKV_mF.js";
13
- import "../../KeyCode-qFRXB1-n.js";
14
- import "../../pickAttrs-zaQzRTqh.js";
15
- import "../../Overflow-JFdXKgCr.js";
16
- import "../../omit-ylWA0ZLZ.js";
17
- import "../../motion-NQme0FJ_.js";
18
- import "../../PurePanel-hLGnXbul.js";
19
- import "../../useVariants-s0IcneBD.js";
20
- import "../../context-h3WSVDPz.js";
21
- import "../../asyncToGenerator-t4sKr8R4.js";
22
- import "../../useLocale-eThlLZJw.js";
23
- import "../../useCSSVarCls-GwZT_WiF.js";
24
- import "../../compact-item-jjuVmDBH.js";
25
- import "../../slide-mFXPRHku.js";
26
- import "../../CheckOutlined-EgxCAgj_.js";
27
- import "../../CloseCircleFilled-bIgIULWb.js";
28
- import "../../CloseOutlined-Q3kC3EZS.js";
29
- import "../../LoadingOutlined-6Ipqn0og.js";
30
- import "../../SearchOutlined-rJTFGXUi.js";
31
- const G = ({ options: t, ...o }) => {
32
- const p = t == null ? void 0 : t.map((r) => typeof r.label == "string" ? {
33
- ...r,
34
- label: /* @__PURE__ */ m("span", { className: "font-semibold", children: r.label })
35
- } : r);
36
- return /* @__PURE__ */ m("div", { className: "border-[1px] border-gainsboro border-solid font-semibold rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ m(
37
- i,
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { A as d } from "../../index-aawDqn9q.js";
3
+ const m = ({ options: r, ...s }) => {
4
+ const a = r == null ? void 0 : r.map((e) => typeof e.label == "string" ? {
5
+ ...e,
6
+ label: /* @__PURE__ */ l("span", { className: "font-semibold", children: e.label })
7
+ } : e);
8
+ return /* @__PURE__ */ l("div", { className: "border-[1px] border-gainsboro border-solid font-semibold rounded-xl py-[10px] px-[5px]", children: /* @__PURE__ */ l(
9
+ d,
38
10
  {
39
- ...o,
40
- options: p,
11
+ ...s,
12
+ options: a,
41
13
  className: "w-full",
42
14
  variant: "borderless",
43
15
  popupClassName: "bg-ghostWhite"
@@ -45,5 +17,5 @@ const G = ({ options: t, ...o }) => {
45
17
  ) });
46
18
  };
47
19
  export {
48
- G as Select
20
+ m as Select
49
21
  };
@@ -1,40 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import { H as J, S as K } from "../../index-BFgxz47K.js";
2
+ import { H as r, S as p } from "../../index-BFgxz47K.js";
3
3
  import "react";
4
4
  import "../../index-ELHBhuK9.js";
5
- import "../../index-NQd_zMf0.js";
6
- import "../../icons/dashboard-icon/index.js";
7
- import "../../theme.js";
8
- import "../../index-Fn8q8B3V.js";
9
- import "../../index-1KQbTQJ2.js";
10
- import "../../index-vtDVJV8q.js";
11
- import "../../index-0mpuHoS5.js";
12
- import "../../CheckOutlined-EgxCAgj_.js";
13
- import "../../isVisible-Qi9l15Ty.js";
14
- import "../../index--6VfGMUo.js";
15
- import "../../Compact-fdEKV_mF.js";
16
- import "../../useMergedState-qUafLuUa.js";
17
- import "../../omit-ylWA0ZLZ.js";
18
- import "../../styleChecker-pZ3k2IiY.js";
19
- import "../../KeyCode-qFRXB1-n.js";
20
- import "../../useLocale-eThlLZJw.js";
21
- import "../../index-5Uo03BMk.js";
22
- import "../../index-L-MzVDcK.js";
23
- import "../../motion-0ToOu81j.js";
24
- import "../../motion-NQme0FJ_.js";
25
- import "../../roundedArrow-p1Pmd9av.js";
26
- import "../../reactNode-R20zZQk1.js";
27
- import "../../zoom-Ps8y0jNW.js";
28
- import "../../colors-opGg9oSz.js";
29
- import "../../TextArea-n3dknzTq.js";
30
- import "../../CloseCircleFilled-bIgIULWb.js";
31
- import "../../useVariants-s0IcneBD.js";
32
- import "../../context-h3WSVDPz.js";
33
- import "../../asyncToGenerator-t4sKr8R4.js";
34
- import "../../index-GgkQrebz.js";
35
- import "../../compact-item-jjuVmDBH.js";
36
- import "../../useCSSVarCls-GwZT_WiF.js";
37
5
  export {
38
- J as HighlightSideMenuItemContext,
39
- K as SideMenu
6
+ r as HighlightSideMenuItemContext,
7
+ p as SideMenu
40
8
  };
@@ -2,38 +2,11 @@ import "react/jsx-runtime";
2
2
  import "../../index-NQd_zMf0.js";
3
3
  import "react";
4
4
  import "../../icons/dashboard-icon/index.js";
5
- import { a as J } from "../../index-BFgxz47K.js";
5
+ import { a as n } from "../../index-BFgxz47K.js";
6
6
  import "../../theme.js";
7
7
  import "../../index-Fn8q8B3V.js";
8
8
  import "../../index-0mpuHoS5.js";
9
9
  import "../../index-ELHBhuK9.js";
10
- import "../../index-1KQbTQJ2.js";
11
- import "../../index-vtDVJV8q.js";
12
- import "../../CheckOutlined-EgxCAgj_.js";
13
- import "../../isVisible-Qi9l15Ty.js";
14
- import "../../index--6VfGMUo.js";
15
- import "../../Compact-fdEKV_mF.js";
16
- import "../../useMergedState-qUafLuUa.js";
17
- import "../../omit-ylWA0ZLZ.js";
18
- import "../../styleChecker-pZ3k2IiY.js";
19
- import "../../KeyCode-qFRXB1-n.js";
20
- import "../../useLocale-eThlLZJw.js";
21
- import "../../index-5Uo03BMk.js";
22
- import "../../index-L-MzVDcK.js";
23
- import "../../motion-0ToOu81j.js";
24
- import "../../motion-NQme0FJ_.js";
25
- import "../../roundedArrow-p1Pmd9av.js";
26
- import "../../reactNode-R20zZQk1.js";
27
- import "../../zoom-Ps8y0jNW.js";
28
- import "../../colors-opGg9oSz.js";
29
- import "../../TextArea-n3dknzTq.js";
30
- import "../../CloseCircleFilled-bIgIULWb.js";
31
- import "../../useVariants-s0IcneBD.js";
32
- import "../../context-h3WSVDPz.js";
33
- import "../../asyncToGenerator-t4sKr8R4.js";
34
- import "../../index-GgkQrebz.js";
35
- import "../../compact-item-jjuVmDBH.js";
36
- import "../../useCSSVarCls-GwZT_WiF.js";
37
10
  export {
38
- J as SideMenuItem
11
+ n as SideMenuItem
39
12
  };
@@ -29,21 +29,6 @@ import { L as Ki } from "../../LoadingOutlined-6Ipqn0og.js";
29
29
  import { S as Ti } from "../../SearchOutlined-rJTFGXUi.js";
30
30
  import { I as Mi } from "../../index-M3WnMjiA.js";
31
31
  import { T as Bi } from "../../index-5Uo03BMk.js";
32
- import "../../index-L-MzVDcK.js";
33
- import "../../Overflow-JFdXKgCr.js";
34
- import "../../PurePanel-hLGnXbul.js";
35
- import "../../useVariants-s0IcneBD.js";
36
- import "../../compact-item-jjuVmDBH.js";
37
- import "../../slide-mFXPRHku.js";
38
- import "../../CheckOutlined-EgxCAgj_.js";
39
- import "../../CloseCircleFilled-bIgIULWb.js";
40
- import "../../CloseOutlined-Q3kC3EZS.js";
41
- import "../../asyncToGenerator-t4sKr8R4.js";
42
- import "../../zoom-Ps8y0jNW.js";
43
- import "../../roundedArrow-p1Pmd9av.js";
44
- import "../../index-ELHBhuK9.js";
45
- import "../../TextArea-n3dknzTq.js";
46
- import "../../colors-opGg9oSz.js";
47
32
  function Qn(e) {
48
33
  return e != null && e === e.window;
49
34
  }
@@ -9310,7 +9295,7 @@ const lu = xt, su = ({ children: e }) => /* @__PURE__ */ Dt("thead", { children:
9310
9295
  ),
9311
9296
  children: e
9312
9297
  }
9313
- ), uu = ({ children: e }) => /* @__PURE__ */ Dt("tbody", { className: "bg-white", children: e }), fu = ({ children: e }) => /* @__PURE__ */ Dt("tr", { className: "border-0 border-b-[1px] border-solid border-b-aliceBlue last:border-b-0", children: e }), pu = ({ children: e }) => /* @__PURE__ */ Dt("td", { className: "py-8 px-3 font-semibold text-base", children: e }), mu = ({ children: e }) => /* @__PURE__ */ Dt("table", { className: "bg-white !border-collapse", children: e }), lf = (e) => /* @__PURE__ */ Dt(
9298
+ ), uu = ({ children: e }) => /* @__PURE__ */ Dt("tbody", { className: "bg-white", children: e }), fu = ({ children: e }) => /* @__PURE__ */ Dt("tr", { className: "border-0 border-b-[1px] border-solid border-b-aliceBlue last:border-b-0", children: e }), pu = ({ children: e }) => /* @__PURE__ */ Dt("td", { className: "py-8 px-3 font-semibold text-base", children: e }), mu = ({ children: e }) => /* @__PURE__ */ Dt("table", { className: "bg-white !border-collapse", children: e }), Wu = (e) => /* @__PURE__ */ Dt(
9314
9299
  lu,
9315
9300
  {
9316
9301
  ...e,
@@ -9330,5 +9315,5 @@ const lu = xt, su = ({ children: e }) => /* @__PURE__ */ Dt("thead", { children:
9330
9315
  }
9331
9316
  );
9332
9317
  export {
9333
- lf as Table
9318
+ Wu as Table
9334
9319
  };
@@ -1,79 +1,49 @@
1
- import { jsxs as d, Fragment as f, jsx as m } from "react/jsx-runtime";
2
- import { useState as h, useEffect as k } from "react";
1
+ import { jsxs as m, Fragment as h, jsx as o } from "react/jsx-runtime";
2
+ import { useState as p, useEffect as k } from "react";
3
3
  import { Tab as x } from "./tab.js";
4
4
  import { c as b } from "../../index-NQd_zMf0.js";
5
5
  import { tabsContext as u } from "./context.js";
6
- import "../../theme.js";
7
- import "../../index-Fn8q8B3V.js";
8
- import "../../index-1KQbTQJ2.js";
9
- import "../../index-vtDVJV8q.js";
10
- import "../../index-0mpuHoS5.js";
11
- import "../../CheckOutlined-EgxCAgj_.js";
12
- import "../../isVisible-Qi9l15Ty.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 tt = ({
37
- items: e,
38
- current: o,
39
- onChange: p,
40
- className: s,
41
- tabClassName: n
6
+ const C = ({
7
+ items: n,
8
+ current: t,
9
+ onChange: r,
10
+ className: l,
11
+ tabClassName: d
42
12
  }) => {
43
- const [r, i] = h(), a = e.reduce((t, c) => ({
44
- ...t,
45
- [c.key]: c.content
13
+ const [c, s] = p(), f = n.reduce((e, a) => ({
14
+ ...e,
15
+ [a.key]: a.content
46
16
  }), {});
47
17
  k(() => {
48
- o && i(o);
49
- }, [o, i]);
50
- const l = (t) => {
51
- i(t), p && p(t);
18
+ t && s(t);
19
+ }, [t, s]);
20
+ const i = (e) => {
21
+ s(e), r && r(e);
52
22
  };
53
- return /* @__PURE__ */ d(f, { children: [
54
- /* @__PURE__ */ m("div", { className: b(s, "flex bg-white"), children: e.map((t) => /* @__PURE__ */ m(
23
+ return /* @__PURE__ */ m(h, { children: [
24
+ /* @__PURE__ */ o("div", { className: b(l, "flex bg-white"), children: n.map((e) => /* @__PURE__ */ o(
55
25
  u.Provider,
56
26
  {
57
27
  value: {
58
- selected: r === t.key,
59
- checked: t.checked || !1
28
+ selected: c === e.key,
29
+ checked: e.checked || !1
60
30
  },
61
- children: /* @__PURE__ */ m(
31
+ children: /* @__PURE__ */ o(
62
32
  x,
63
33
  {
64
- className: n,
65
- icon: t.icon,
66
- title: t.title,
67
- content: t.content,
68
- onClick: () => l(t.key)
34
+ className: d,
35
+ icon: e.icon,
36
+ title: e.title,
37
+ content: e.content,
38
+ onClick: () => i(e.key)
69
39
  }
70
40
  )
71
41
  },
72
- t.key
42
+ e.key
73
43
  )) }),
74
- r && a[r]
44
+ c && f[c]
75
45
  ] });
76
46
  };
77
47
  export {
78
- tt as Tabs
48
+ C as Tabs
79
49
  };
@@ -1,80 +1,53 @@
1
- import { jsx as s, jsxs as n } from "react/jsx-runtime";
2
- import m, { useContext as d } from "react";
1
+ import { jsx as l, jsxs as d } from "react/jsx-runtime";
2
+ import s, { useContext as i } from "react";
3
3
  import { tabsContext as u } from "./context.js";
4
- import { c as e } from "../../index-NQd_zMf0.js";
4
+ import { c as r } from "../../index-NQd_zMf0.js";
5
5
  import { libTheme as f } from "../../theme.js";
6
6
  import { t as x } from "../../index-Fn8q8B3V.js";
7
7
  import { T as g } from "../../index-0mpuHoS5.js";
8
- import "../../index-1KQbTQJ2.js";
9
- import "../../index-vtDVJV8q.js";
10
- import "../../CheckOutlined-EgxCAgj_.js";
11
- import "../../isVisible-Qi9l15Ty.js";
12
- import "../../index--6VfGMUo.js";
13
- import "../../Compact-fdEKV_mF.js";
14
- import "../../useMergedState-qUafLuUa.js";
15
- import "../../omit-ylWA0ZLZ.js";
16
- import "../../styleChecker-pZ3k2IiY.js";
17
- import "../../KeyCode-qFRXB1-n.js";
18
- import "../../useLocale-eThlLZJw.js";
19
- import "../../index-5Uo03BMk.js";
20
- import "../../index-L-MzVDcK.js";
21
- import "../../motion-0ToOu81j.js";
22
- import "../../motion-NQme0FJ_.js";
23
- import "../../roundedArrow-p1Pmd9av.js";
24
- import "../../reactNode-R20zZQk1.js";
25
- import "../../zoom-Ps8y0jNW.js";
26
- import "../../colors-opGg9oSz.js";
27
- import "../../TextArea-n3dknzTq.js";
28
- import "../../CloseCircleFilled-bIgIULWb.js";
29
- import "../../useVariants-s0IcneBD.js";
30
- import "../../context-h3WSVDPz.js";
31
- import "../../asyncToGenerator-t4sKr8R4.js";
32
- import "../../index-GgkQrebz.js";
33
- import "../../compact-item-jjuVmDBH.js";
34
- import "../../useCSSVarCls-GwZT_WiF.js";
35
- const Y = ({
36
- className: a,
37
- icon: p,
38
- title: r,
39
- onClick: i
8
+ const D = ({
9
+ className: c,
10
+ icon: a,
11
+ title: o,
12
+ onClick: m
40
13
  }) => {
41
- const { selected: t, checked: o } = d(u), l = p && m.cloneElement(p, {
42
- color: o ? x.getDesignToken(f).colorSuccess : "#BDBDBD"
43
- }), c = typeof r == "string" ? m.cloneElement(
44
- /* @__PURE__ */ s(
14
+ const { selected: e, checked: t } = i(u), n = a && s.cloneElement(a, {
15
+ color: t ? x.getDesignToken(f).colorSuccess : "#BDBDBD"
16
+ }), p = typeof o == "string" ? s.cloneElement(
17
+ /* @__PURE__ */ l(
45
18
  g.Text,
46
19
  {
47
- className: e("font-medium", {
48
- "text-dodgerBlue": t || o,
49
- "text-slateGray": !(t || o)
20
+ className: r("font-medium", {
21
+ "text-dodgerBlue": e || t,
22
+ "text-slateGray": !(e || t)
50
23
  }),
51
- children: r
24
+ children: o
52
25
  }
53
26
  )
54
- ) : m.cloneElement(r, {
55
- className: e(r.props.className, "font-medium", {
56
- "text-dodgerBlue": t || o,
57
- "text-slateGray": !(t || o)
27
+ ) : s.cloneElement(o, {
28
+ className: r(o.props.className, "font-medium", {
29
+ "text-dodgerBlue": e || t,
30
+ "text-slateGray": !(e || t)
58
31
  })
59
32
  });
60
- return /* @__PURE__ */ n(
33
+ return /* @__PURE__ */ d(
61
34
  "div",
62
35
  {
63
- className: e(
64
- a,
36
+ className: r(
37
+ c,
65
38
  "relative py-2 pb-7 px-4 flex gap-x-2 hover:cursor-pointer min-w-max"
66
39
  ),
67
- onClick: i && i,
40
+ onClick: m && m,
68
41
  children: [
69
- l,
70
- c,
71
- /* @__PURE__ */ s(
42
+ n,
43
+ p,
44
+ /* @__PURE__ */ l(
72
45
  "div",
73
46
  {
74
- className: e(
47
+ className: r(
75
48
  "absolute bottom-0 start-0 h-1 w-full rounded-full opacity-0 bg-dodgerBlue transition-opacity",
76
49
  {
77
- "opacity-100": t
50
+ "opacity-100": e
78
51
  }
79
52
  )
80
53
  }
@@ -84,5 +57,5 @@ const Y = ({
84
57
  );
85
58
  };
86
59
  export {
87
- Y as Tab
60
+ D as Tab
88
61
  };
@@ -6,10 +6,6 @@ import { g as U, i as Q, a as G } from "../../colors-opGg9oSz.js";
6
6
  import { u as J } from "../../useClosable-4G12n4Bp.js";
7
7
  import { h as K, r as Y, d as B, m as Z, T as ee, C as H, B as _, D as oe } from "../../index-1KQbTQJ2.js";
8
8
  import { W as re } from "../../index-ZT64Ec6u.js";
9
- import "../../isVisible-Qi9l15Ty.js";
10
- import "../../index-vtDVJV8q.js";
11
- import "../../reactNode-R20zZQk1.js";
12
- import "../../asyncToGenerator-t4sKr8R4.js";
13
9
  const te = (e) => {
14
10
  const {
15
11
  paddingXXS: r,
@@ -254,7 +250,7 @@ const ue = (e, r) => {
254
250
  }, P = /* @__PURE__ */ l.forwardRef(ue);
255
251
  process.env.NODE_ENV !== "production" && (P.displayName = "Tag");
256
252
  P.CheckableTag = se;
257
- const pe = P, Oe = ({ children: e, className: r, ...n }) => /* @__PURE__ */ A(
253
+ const pe = P, Se = ({ children: e, className: r, ...n }) => /* @__PURE__ */ A(
258
254
  pe,
259
255
  {
260
256
  ...n,
@@ -266,5 +262,5 @@ const pe = P, Oe = ({ children: e, className: r, ...n }) => /* @__PURE__ */ A(
266
262
  }
267
263
  );
268
264
  export {
269
- Oe as Tag
265
+ Se as Tag
270
266
  };
@@ -1,56 +1,29 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { c as i } from "../../index-NQd_zMf0.js";
3
- import a from "react";
4
- import { T as m } from "../../index-0mpuHoS5.js";
5
- import "../../index-1KQbTQJ2.js";
6
- import "../../index-vtDVJV8q.js";
7
- import "../../CheckOutlined-EgxCAgj_.js";
8
- import "../../isVisible-Qi9l15Ty.js";
9
- import "../../index--6VfGMUo.js";
10
- import "../../Compact-fdEKV_mF.js";
11
- import "../../useMergedState-qUafLuUa.js";
12
- import "../../omit-ylWA0ZLZ.js";
13
- import "../../styleChecker-pZ3k2IiY.js";
14
- import "../../KeyCode-qFRXB1-n.js";
15
- import "../../useLocale-eThlLZJw.js";
16
- import "../../index-5Uo03BMk.js";
17
- import "../../index-L-MzVDcK.js";
18
- import "../../motion-0ToOu81j.js";
19
- import "../../motion-NQme0FJ_.js";
20
- import "../../roundedArrow-p1Pmd9av.js";
21
- import "../../reactNode-R20zZQk1.js";
22
- import "../../zoom-Ps8y0jNW.js";
23
- import "../../colors-opGg9oSz.js";
24
- import "../../TextArea-n3dknzTq.js";
25
- import "../../CloseCircleFilled-bIgIULWb.js";
26
- import "../../useVariants-s0IcneBD.js";
27
- import "../../context-h3WSVDPz.js";
28
- import "../../asyncToGenerator-t4sKr8R4.js";
29
- import "../../index-GgkQrebz.js";
30
- import "../../compact-item-jjuVmDBH.js";
31
- import "../../useCSSVarCls-GwZT_WiF.js";
32
- const U = ({
33
- items: o = []
34
- }) => /* @__PURE__ */ l("div", { className: "relative", children: [
35
- /* @__PURE__ */ t("div", { className: "flex justify-between", children: o.map((e, r) => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-y-3", children: [
36
- typeof e.label == "string" ? /* @__PURE__ */ t(m.Text, { className: "font-semibold text-xs", children: e.label }) : a.cloneElement(e.label, {
37
- className: i([
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { c as r } from "../../index-NQd_zMf0.js";
3
+ import o from "react";
4
+ import { T as c } from "../../index-0mpuHoS5.js";
5
+ const m = ({
6
+ items: t = []
7
+ }) => /* @__PURE__ */ s("div", { className: "relative", children: [
8
+ /* @__PURE__ */ l("div", { className: "flex justify-between", children: t.map((e, a) => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-y-3", children: [
9
+ typeof e.label == "string" ? /* @__PURE__ */ l(c.Text, { className: "font-semibold text-xs", children: e.label }) : o.cloneElement(e.label, {
10
+ className: r([
38
11
  e.label.props.className,
39
12
  "font-semibold text-xs"
40
13
  ])
41
14
  }),
42
- /* @__PURE__ */ t(
15
+ /* @__PURE__ */ l(
43
16
  "div",
44
17
  {
45
- className: i("flex w-full", {
46
- "justify-center": r > 0 && r < o.length - 1,
47
- "justify-start before:relative before:z-10 before:block before:bg-white before:h-full before:w-[calc(50%-8px)] before:content-['']": r === 0,
48
- "justify-end after:relative after:z-10 after:block after:bg-white after:h-full after:w-[calc(50%-8px)] after:content-['']": r === o.length - 1
18
+ className: r("flex w-full", {
19
+ "justify-center": a > 0 && a < t.length - 1,
20
+ "justify-start before:relative before:z-10 before:block before:bg-white before:h-full before:w-[calc(50%-8px)] before:content-['']": a === 0,
21
+ "justify-end after:relative after:z-10 after:block after:bg-white after:h-full after:w-[calc(50%-8px)] after:content-['']": a === t.length - 1
49
22
  }),
50
- children: /* @__PURE__ */ t(
23
+ children: /* @__PURE__ */ l(
51
24
  "div",
52
25
  {
53
- className: i("relative z-10 rounded-full w-4 h-4 ", {
26
+ className: r("relative z-10 rounded-full w-4 h-4 ", {
54
27
  "bg-gray-400": !e.done,
55
28
  "bg-mediumSeaGreen": e.done
56
29
  })
@@ -59,7 +32,7 @@ const U = ({
59
32
  }
60
33
  )
61
34
  ] }, e.key)) }),
62
- /* @__PURE__ */ t(
35
+ /* @__PURE__ */ l(
63
36
  "div",
64
37
  {
65
38
  className: 'w-full h-[1px] absolute bottom-2 bg-center bg-[url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUzIiBoZWlnaHQ9IjEiIHZpZXdCb3g9IjAgMCA1NTMgMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPGxpbmUgeTE9Ii0wLjUiIHgyPSI1NTIuNjQ1IiB5Mj0iLTAuNSIgdHJhbnNmb3JtPSJtYXRyaXgoLTEgMCAwIDEgNTUyLjkxNSAwLjk5OTUxMikiIHN0cm9rZT0iIzk0QTNCOCIgc3Ryb2tlLWRhc2hhcnJheT0iMiAyIi8+PC9zdmc+")]'
@@ -67,5 +40,5 @@ const U = ({
67
40
  )
68
41
  ] });
69
42
  export {
70
- U as TimelineHorizontal
43
+ m as TimelineHorizontal
71
44
  };