@simpli-route/apollo-ds 0.1.22 → 0.1.24

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 (179) hide show
  1. package/dist/components/Accordion/AccordionItem.d.ts +1 -1
  2. package/dist/components/Accordion/index.d.ts +1 -0
  3. package/dist/components/Accordion/types.d.ts +30 -2
  4. package/dist/index.cjs.js +1 -1
  5. package/dist/index.cjs10.js +1 -1
  6. package/dist/index.cjs11.js +1 -1
  7. package/dist/index.cjs114.js +1 -1
  8. package/dist/index.cjs119.js +1 -1
  9. package/dist/index.cjs12.js +1 -1
  10. package/dist/index.cjs120.js +1 -1
  11. package/dist/index.cjs121.js +1 -1
  12. package/dist/index.cjs122.js +1 -1
  13. package/dist/index.cjs123.js +1 -1
  14. package/dist/index.cjs124.js +1 -1
  15. package/dist/index.cjs127.js +1 -1
  16. package/dist/index.cjs128.js +1 -1
  17. package/dist/index.cjs129.js +1 -1
  18. package/dist/index.cjs13.js +1 -1
  19. package/dist/index.cjs132.js +1 -1
  20. package/dist/index.cjs133.js +1 -1
  21. package/dist/index.cjs134.js +1 -1
  22. package/dist/index.cjs136.js +1 -1
  23. package/dist/index.cjs137.js +1 -1
  24. package/dist/index.cjs138.js +1 -1
  25. package/dist/index.cjs14.js +1 -1
  26. package/dist/index.cjs15.js +1 -1
  27. package/dist/index.cjs16.js +1 -1
  28. package/dist/index.cjs17.js +1 -1
  29. package/dist/index.cjs18.js +1 -1
  30. package/dist/index.cjs19.js +1 -1
  31. package/dist/index.cjs2.js +1 -1
  32. package/dist/index.cjs20.js +1 -1
  33. package/dist/index.cjs21.js +1 -1
  34. package/dist/index.cjs22.js +1 -1
  35. package/dist/index.cjs23.js +1 -1
  36. package/dist/index.cjs24.js +1 -1
  37. package/dist/index.cjs25.js +1 -1
  38. package/dist/index.cjs26.js +1 -1
  39. package/dist/index.cjs27.js +1 -1
  40. package/dist/index.cjs28.js +1 -1
  41. package/dist/index.cjs29.js +1 -1
  42. package/dist/index.cjs3.js +1 -1
  43. package/dist/index.cjs30.js +1 -1
  44. package/dist/index.cjs31.js +1 -1
  45. package/dist/index.cjs32.js +1 -1
  46. package/dist/index.cjs33.js +1 -1
  47. package/dist/index.cjs34.js +1 -1
  48. package/dist/index.cjs35.js +1 -1
  49. package/dist/index.cjs36.js +1 -1
  50. package/dist/index.cjs37.js +1 -1
  51. package/dist/index.cjs38.js +1 -1
  52. package/dist/index.cjs39.js +1 -1
  53. package/dist/index.cjs4.js +1 -1
  54. package/dist/index.cjs40.js +1 -1
  55. package/dist/index.cjs41.js +1 -1
  56. package/dist/index.cjs42.js +1 -1
  57. package/dist/index.cjs43.js +1 -1
  58. package/dist/index.cjs44.js +1 -1
  59. package/dist/index.cjs45.js +1 -1
  60. package/dist/index.cjs46.js +1 -1
  61. package/dist/index.cjs47.js +1 -1
  62. package/dist/index.cjs48.js +1 -1
  63. package/dist/index.cjs49.js +1 -1
  64. package/dist/index.cjs5.js +1 -1
  65. package/dist/index.cjs50.js +1 -1
  66. package/dist/index.cjs51.js +1 -1
  67. package/dist/index.cjs52.js +1 -1
  68. package/dist/index.cjs53.js +1 -1
  69. package/dist/index.cjs54.js +1 -1
  70. package/dist/index.cjs55.js +1 -1
  71. package/dist/index.cjs56.js +1 -1
  72. package/dist/index.cjs57.js +1 -1
  73. package/dist/index.cjs58.js +1 -1
  74. package/dist/index.cjs6.js +1 -1
  75. package/dist/index.cjs7.js +1 -1
  76. package/dist/index.cjs70.js +1 -1
  77. package/dist/index.cjs71.js +1 -1
  78. package/dist/index.cjs72.js +1 -1
  79. package/dist/index.cjs73.js +1 -1
  80. package/dist/index.cjs74.js +1 -1
  81. package/dist/index.cjs75.js +1 -1
  82. package/dist/index.cjs76.js +1 -1
  83. package/dist/index.cjs77.js +1 -1
  84. package/dist/index.cjs8.js +1 -1
  85. package/dist/index.cjs9.js +1 -1
  86. package/dist/index.cjs92.js +1 -1
  87. package/dist/index.cjs95.js +1 -1
  88. package/dist/index.cjs98.js +1 -1
  89. package/dist/index.cjs99.js +1 -1
  90. package/dist/index.es.js +46 -44
  91. package/dist/index.es10.js +34 -87
  92. package/dist/index.es11.js +81 -89
  93. package/dist/index.es114.js +3 -3
  94. package/dist/index.es119.js +10 -61
  95. package/dist/index.es12.js +96 -72
  96. package/dist/index.es120.js +61 -4
  97. package/dist/index.es121.js +4 -14
  98. package/dist/index.es122.js +10 -307
  99. package/dist/index.es123.js +304 -19
  100. package/dist/index.es124.js +26 -4
  101. package/dist/index.es127.js +4 -94
  102. package/dist/index.es128.js +94 -4
  103. package/dist/index.es129.js +2 -8
  104. package/dist/index.es13.js +73 -141
  105. package/dist/index.es132.js +4 -51
  106. package/dist/index.es133.js +47 -15
  107. package/dist/index.es134.js +19 -4
  108. package/dist/index.es135.js +2 -2
  109. package/dist/index.es136.js +4 -753
  110. package/dist/index.es137.js +753 -4
  111. package/dist/index.es138.js +2 -2
  112. package/dist/index.es14.js +134 -31
  113. package/dist/index.es15.js +37 -75
  114. package/dist/index.es16.js +78 -48
  115. package/dist/index.es17.js +48 -3
  116. package/dist/index.es18.js +3 -100
  117. package/dist/index.es19.js +99 -77
  118. package/dist/index.es2.js +24 -23
  119. package/dist/index.es20.js +76 -43
  120. package/dist/index.es21.js +41 -20
  121. package/dist/index.es22.js +21 -25
  122. package/dist/index.es23.js +28 -8
  123. package/dist/index.es24.js +7 -7
  124. package/dist/index.es25.js +8 -6
  125. package/dist/index.es26.js +6 -6
  126. package/dist/index.es27.js +6 -22
  127. package/dist/index.es28.js +17 -171
  128. package/dist/index.es29.js +148 -20
  129. package/dist/index.es3.js +46 -106
  130. package/dist/index.es30.js +40 -31
  131. package/dist/index.es31.js +31 -56
  132. package/dist/index.es32.js +57 -32
  133. package/dist/index.es33.js +32 -49
  134. package/dist/index.es34.js +33 -22
  135. package/dist/index.es35.js +31 -46
  136. package/dist/index.es36.js +46 -31
  137. package/dist/index.es37.js +40 -3
  138. package/dist/index.es38.js +3 -92
  139. package/dist/index.es39.js +87 -17
  140. package/dist/index.es4.js +96 -43
  141. package/dist/index.es40.js +20 -161
  142. package/dist/index.es41.js +163 -30
  143. package/dist/index.es42.js +30 -17
  144. package/dist/index.es43.js +10 -10
  145. package/dist/index.es44.js +10 -137
  146. package/dist/index.es45.js +44 -19
  147. package/dist/index.es46.js +13 -101
  148. package/dist/index.es47.js +136 -12
  149. package/dist/index.es48.js +20 -13
  150. package/dist/index.es49.js +7 -10
  151. package/dist/index.es5.js +55 -42
  152. package/dist/index.es50.js +17 -11
  153. package/dist/index.es51.js +149 -7
  154. package/dist/index.es52.js +99 -16
  155. package/dist/index.es53.js +11 -147
  156. package/dist/index.es54.js +10 -10
  157. package/dist/index.es55.js +19 -10
  158. package/dist/index.es56.js +17 -42
  159. package/dist/index.es57.js +10 -19
  160. package/dist/index.es58.js +12 -20
  161. package/dist/index.es6.js +42 -38
  162. package/dist/index.es7.js +38 -31
  163. package/dist/index.es70.js +4 -30
  164. package/dist/index.es71.js +27 -58
  165. package/dist/index.es72.js +2 -4
  166. package/dist/index.es73.js +10 -28
  167. package/dist/index.es74.js +340 -2
  168. package/dist/index.es75.js +166 -8
  169. package/dist/index.es76.js +56 -339
  170. package/dist/index.es77.js +28 -164
  171. package/dist/index.es8.js +31 -49
  172. package/dist/index.es9.js +49 -37
  173. package/dist/index.es92.js +2 -2
  174. package/dist/index.es95.js +2 -2
  175. package/dist/index.es98.js +6 -6
  176. package/dist/index.es99.js +2 -2
  177. package/dist/stories/Accordion.stories.d.ts +1 -0
  178. package/dist/style.css +4 -0
  179. package/package.json +1 -1
@@ -1,80 +1,102 @@
1
- import { j as o } from "./index.es25.js";
2
- import { Switch as u } from "react-aria-components";
3
- import { cn as c } from "./index.es26.js";
4
- import { ContentSwitch as L } from "./index.es57.js";
5
- import { SwitchIndicator as v } from "./index.es58.js";
6
- import { switchVariants as b } from "./index.es38.js";
7
- const E = ({
8
- children: f,
9
- label: m,
10
- description: n,
11
- errorMessage: s,
12
- validationState: e,
13
- size: a = "md",
14
- isDisabled: r = !1,
15
- isSelected: t = !1,
16
- onChange: h,
17
- renderLabelIcon: x = null,
18
- "aria-label": p,
19
- "aria-describedby": l
20
- }) => {
21
- const j = e === "invalid" && !r, w = a === "sm" ? { offLeft: 3, onLeft: 19 } : { offLeft: 4, onLeft: 28 };
22
- return /* @__PURE__ */ o.jsxs(
23
- "label",
24
- {
25
- className: c("group flex flex-row gap-2", (m || f) && n ? "items-start" : "items-center"),
26
- children: [
27
- /* @__PURE__ */ o.jsx(
28
- u,
29
- {
30
- isDisabled: r,
31
- isSelected: t,
32
- "aria-checked": t,
33
- "aria-label": p,
34
- "aria-describedby": l,
35
- onChange: h,
36
- children: ({ isFocusVisible: d, isHovered: i }) => /* @__PURE__ */ o.jsx(
37
- "div",
38
- {
39
- className: c(
40
- b({
41
- isSelected: t,
42
- isDisabled: r,
43
- isFocusVisible: d,
44
- size: a,
45
- isHoveredWhenOff: i && !t
46
- })
47
- ),
48
- children: /* @__PURE__ */ o.jsx(
49
- v,
50
- {
51
- isSelected: t,
52
- isDisabled: r,
53
- isHovered: i,
54
- size: a,
55
- dimensions: w
56
- }
57
- )
58
- }
59
- )
60
- }
61
- ),
62
- /* @__PURE__ */ o.jsx(
63
- L,
64
- {
65
- label: m,
66
- description: n,
67
- errorMessage: s,
68
- isDisabled: r,
69
- isInvalid: j,
70
- renderLabelIcon: x,
71
- children: f
72
- }
73
- )
74
- ]
75
- }
76
- );
1
+ import { j as n } from "./index.es26.js";
2
+ import { CheckIcon as I } from "./index.es28.js";
3
+ import { motion as f } from "framer-motion";
4
+ import { useRef as k } from "react";
5
+ import { useButton as D, useHover as V } from "react-aria";
6
+ import z from "./index.es49.js";
7
+ import B from "./index.es50.js";
8
+ import { cn as H } from "./index.es27.js";
9
+ import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es51.js";
10
+ const c = z(B), x = (s, e) => typeof s == "function" ? /* @__PURE__ */ n.jsx(s, { step: e || 0 }) : s, C = (s) => {
11
+ var t, r, o, a, i;
12
+ const e = (t = c == null ? void 0 : c.theme) == null ? void 0 : t.colors;
13
+ switch (s) {
14
+ case "pending":
15
+ return ((r = e == null ? void 0 : e.neutral) == null ? void 0 : r["500"]) || "#C7C9D1";
16
+ case "inProgress":
17
+ return ((o = e == null ? void 0 : e.blue) == null ? void 0 : o["500"]) || "#2644D9";
18
+ case "completed":
19
+ return ((a = e == null ? void 0 : e.success) == null ? void 0 : a["500"]) || "#1FB576";
20
+ case "error":
21
+ return ((i = e == null ? void 0 : e.error) == null ? void 0 : i["500"]) || "#CC4033";
22
+ default:
23
+ return "#C7C9D1";
24
+ }
25
+ }, G = (s, e) => {
26
+ const t = C(s), r = C(e);
27
+ return {
28
+ background: `linear-gradient(to right, ${t} 50%, ${r} 50%)`
29
+ };
77
30
  };
31
+ function W(s) {
32
+ const {
33
+ step: e,
34
+ state: t,
35
+ size: r,
36
+ icon: o,
37
+ completedIcon: a,
38
+ onPress: i,
39
+ nextState: h,
40
+ isLastStep: d,
41
+ allowStepClick: b = !1,
42
+ isDisabled: l = !1,
43
+ label: m
44
+ } = s, j = k(null), { buttonProps: g, isPressed: p } = D(
45
+ {
46
+ ...s,
47
+ onPress: b ? i : void 0,
48
+ isDisabled: l
49
+ },
50
+ j
51
+ ), { hoverProps: v, isHovered: u } = V({}), w = R({ size: r, state: t, isHovered: u, isPressed: p, isDisabled: l }), N = $({ size: r, state: t, isHovered: u }), P = E({ size: r }), S = x(t === "completed" ? a || /* @__PURE__ */ n.jsx(I, {}) : o, e), y = x(m, e);
52
+ return /* @__PURE__ */ n.jsxs("div", { className: H("flex h-full items-center", d ? "w-fit" : "w-full"), children: [
53
+ /* @__PURE__ */ n.jsx("div", { className: "flex h-24 w-fit items-center justify-center py-2", children: /* @__PURE__ */ n.jsxs(
54
+ "button",
55
+ {
56
+ className: "z-10 flex flex-col items-center whitespace-nowrap",
57
+ ...v,
58
+ ...g,
59
+ "data-testid": "step-button",
60
+ "data-state": t,
61
+ "aria-disabled": l,
62
+ children: [
63
+ /* @__PURE__ */ n.jsx(
64
+ f.div,
65
+ {
66
+ className: w,
67
+ "data-testid": "step-icon-container",
68
+ initial: !1,
69
+ animate: { scale: p ? 0.95 : 1 },
70
+ transition: { duration: 0.2 },
71
+ children: /* @__PURE__ */ n.jsx(
72
+ f.span,
73
+ {
74
+ className: N,
75
+ initial: !1,
76
+ animate: {
77
+ scale: t === "completed" ? [1, 1.1, 1] : 1,
78
+ rotate: t === "completed" ? [0, 10, 0] : 0
79
+ },
80
+ transition: { duration: 0.3 },
81
+ children: S
82
+ }
83
+ )
84
+ }
85
+ ),
86
+ /* @__PURE__ */ n.jsx("div", { className: "mt-2 flex select-none flex-col items-center justify-between", children: m ? /* @__PURE__ */ n.jsx("span", { className: P, children: y }) : null })
87
+ ]
88
+ }
89
+ ) }),
90
+ d ? null : /* @__PURE__ */ n.jsx(
91
+ "div",
92
+ {
93
+ className: "mx-4 hidden h-1 w-full sm:block",
94
+ "data-testid": "progress-bar",
95
+ style: G(t, h)
96
+ }
97
+ )
98
+ ] });
99
+ }
78
100
  export {
79
- E as Switch
101
+ W as StepperStep
80
102
  };
package/dist/index.es2.js CHANGED
@@ -1,34 +1,35 @@
1
- import { j as m } from "./index.es25.js";
2
- import { useState as g } from "react";
3
- import { cn as j } from "./index.es26.js";
4
- import { AccordionItem as h } from "./index.es27.js";
5
- const C = ({
6
- items: a,
7
- accordionClassName: e,
8
- itemClassName: l,
9
- sectionClassName: c,
10
- hasIcon: i,
11
- allowMultipleOpen: n = !1
1
+ import { j as a } from "./index.es26.js";
2
+ import { useState as j } from "react";
3
+ import { cn as h } from "./index.es27.js";
4
+ import { AccordionItem as A } from "./index.es3.js";
5
+ const E = ({
6
+ items: e,
7
+ accordionClassName: l,
8
+ itemClassName: c,
9
+ sectionClassName: i,
10
+ hasIcon: n,
11
+ allowMultipleOpen: f = !1
12
12
  }) => {
13
- const [f, r] = g([]), p = j("flex flex-col gap-y-4", e), u = (o) => {
14
- r(
15
- n ? (s) => s.includes(o) ? s.filter((t) => t !== o) : [...s, o] : (s) => s.includes(o) ? [] : [o]
13
+ const [p, m] = j([]), u = h("flex flex-col gap-y-4", l), g = (o) => {
14
+ m(
15
+ f ? (s) => s.includes(o) ? s.filter((t) => t !== o) : [...s, o] : (s) => s.includes(o) ? [] : [o]
16
16
  );
17
17
  };
18
- return /* @__PURE__ */ m.jsx("div", { className: p, children: a.map(({ label: o, section: s }, t) => /* @__PURE__ */ m.jsx(
19
- h,
18
+ return /* @__PURE__ */ a.jsx("div", { className: u, children: e.map(({ label: o, section: s, isDisabled: t }, r) => /* @__PURE__ */ a.jsx(
19
+ A,
20
20
  {
21
- hasIcon: i,
21
+ hasIcon: n,
22
+ isDisabled: t,
22
23
  label: o,
23
24
  section: s,
24
- active: f.includes(t),
25
- itemClassName: l,
26
- sectionClassName: c,
27
- onToggle: () => u(t)
25
+ active: p.includes(r),
26
+ itemClassName: c,
27
+ sectionClassName: i,
28
+ onToggle: () => g(r)
28
29
  },
29
- t
30
+ r
30
31
  )) });
31
32
  };
32
33
  export {
33
- C as Accordion
34
+ E as Accordion
34
35
  };
@@ -1,47 +1,80 @@
1
- import { j as s } from "./index.es25.js";
2
- import { useRef as b } from "react";
3
- import { useTabList as d } from "react-aria";
4
- import { useTabListState as u, Item as N } from "react-stately";
5
- import { cn as e } from "./index.es26.js";
6
- import { Tab as j } from "./index.es54.js";
7
- import { TabPanel as h } from "./index.es55.js";
8
- import { tabsVariants as T } from "./index.es56.js";
9
- const v = (a) => {
10
- var l;
11
- const {
12
- rootClassName: m,
13
- tabClassName: n,
14
- tabPanelClassName: c,
15
- orientation: o = "horizontal",
16
- id: f = void 0,
17
- isDisabled: p
18
- } = a, t = u(a), r = b(null), { tabListProps: x } = d(a, t, r);
19
- return /* @__PURE__ */ s.jsxs("div", { className: e(T({ orientation: o }), m), children: [
20
- /* @__PURE__ */ s.jsx(
21
- "div",
22
- {
23
- ...x,
24
- ref: r,
25
- className: e("flex", o === "horizontal" ? "flex-row flex-wrap" : "flex-col"),
26
- children: [...t.collection].map((i) => /* @__PURE__ */ s.jsx(j, { item: i, state: t, orientation: o, className: n, id: f }, i.key))
27
- }
28
- ),
29
- /* @__PURE__ */ s.jsx(
30
- h,
31
- {
32
- state: t,
33
- className: e(
34
- "p-2",
35
- o === "horizontal" ? "pl-2" : "pt-2",
36
- p ? "cursor-not-allowed opacity-50" : "",
37
- c
1
+ import { j as o } from "./index.es26.js";
2
+ import { Switch as u } from "react-aria-components";
3
+ import { cn as c } from "./index.es27.js";
4
+ import { ContentSwitch as L } from "./index.es55.js";
5
+ import { SwitchIndicator as v } from "./index.es56.js";
6
+ import { switchVariants as b } from "./index.es39.js";
7
+ const E = ({
8
+ children: f,
9
+ label: m,
10
+ description: n,
11
+ errorMessage: s,
12
+ validationState: e,
13
+ size: a = "md",
14
+ isDisabled: r = !1,
15
+ isSelected: t = !1,
16
+ onChange: h,
17
+ renderLabelIcon: x = null,
18
+ "aria-label": p,
19
+ "aria-describedby": l
20
+ }) => {
21
+ const j = e === "invalid" && !r, w = a === "sm" ? { offLeft: 3, onLeft: 19 } : { offLeft: 4, onLeft: 28 };
22
+ return /* @__PURE__ */ o.jsxs(
23
+ "label",
24
+ {
25
+ className: c("group flex flex-row gap-2", (m || f) && n ? "items-start" : "items-center"),
26
+ children: [
27
+ /* @__PURE__ */ o.jsx(
28
+ u,
29
+ {
30
+ isDisabled: r,
31
+ isSelected: t,
32
+ "aria-checked": t,
33
+ "aria-label": p,
34
+ "aria-describedby": l,
35
+ onChange: h,
36
+ children: ({ isFocusVisible: d, isHovered: i }) => /* @__PURE__ */ o.jsx(
37
+ "div",
38
+ {
39
+ className: c(
40
+ b({
41
+ isSelected: t,
42
+ isDisabled: r,
43
+ isFocusVisible: d,
44
+ size: a,
45
+ isHoveredWhenOff: i && !t
46
+ })
47
+ ),
48
+ children: /* @__PURE__ */ o.jsx(
49
+ v,
50
+ {
51
+ isSelected: t,
52
+ isDisabled: r,
53
+ isHovered: i,
54
+ size: a,
55
+ dimensions: w
56
+ }
57
+ )
58
+ }
59
+ )
60
+ }
61
+ ),
62
+ /* @__PURE__ */ o.jsx(
63
+ L,
64
+ {
65
+ label: m,
66
+ description: n,
67
+ errorMessage: s,
68
+ isDisabled: r,
69
+ isInvalid: j,
70
+ renderLabelIcon: x,
71
+ children: f
72
+ }
38
73
  )
39
- },
40
- (l = t.selectedItem) == null ? void 0 : l.key
41
- )
42
- ] });
74
+ ]
75
+ }
76
+ );
43
77
  };
44
- v.Item = N;
45
78
  export {
46
- v as Tabs
79
+ E as Switch
47
80
  };
@@ -1,26 +1,47 @@
1
- import { j as s } from "./index.es25.js";
2
- import { forwardRef as f, useContext as u } from "react";
3
- import { useTooltip as T, mergeProps as h } from "react-aria";
4
- import { cn as e } from "./index.es26.js";
5
- import { TooltipContext as j } from "./index.es37.js";
6
- import { tooltipVariants as N } from "./index.es36.js";
7
- const P = f((p, i) => {
8
- const { placement: l = "bottom", className: m, mode: o = "dark", supportText: t, children: a, ...r } = p, { state: n, ...c } = u(j), { tooltipProps: x } = T(r, n), d = e(N({ placement: l, mode: o, hasSupportText: !!t }), m);
9
- return /* @__PURE__ */ s.jsxs("span", { className: d, ...h(r, x, c), ref: i, children: [
10
- a,
11
- t ? /* @__PURE__ */ s.jsx(
1
+ import { j as s } from "./index.es26.js";
2
+ import { useRef as b } from "react";
3
+ import { useTabList as d } from "react-aria";
4
+ import { useTabListState as u, Item as N } from "react-stately";
5
+ import { cn as e } from "./index.es27.js";
6
+ import { Tab as j } from "./index.es43.js";
7
+ import { TabPanel as h } from "./index.es44.js";
8
+ import { tabsVariants as T } from "./index.es45.js";
9
+ const v = (a) => {
10
+ var l;
11
+ const {
12
+ rootClassName: m,
13
+ tabClassName: n,
14
+ tabPanelClassName: c,
15
+ orientation: o = "horizontal",
16
+ id: f = void 0,
17
+ isDisabled: p
18
+ } = a, t = u(a), r = b(null), { tabListProps: x } = d(a, t, r);
19
+ return /* @__PURE__ */ s.jsxs("div", { className: e(T({ orientation: o }), m), children: [
20
+ /* @__PURE__ */ s.jsx(
12
21
  "div",
13
22
  {
14
- className: e(
15
- "!text-sm !font-normal !leading-[19.07px]",
16
- o === "dark" ? "!text-blue-50" : "!text-neutral-700"
17
- ),
18
- children: t
23
+ ...x,
24
+ ref: r,
25
+ className: e("flex", o === "horizontal" ? "flex-row flex-wrap" : "flex-col"),
26
+ children: [...t.collection].map((i) => /* @__PURE__ */ s.jsx(j, { item: i, state: t, orientation: o, className: n, id: f }, i.key))
19
27
  }
20
- ) : null
28
+ ),
29
+ /* @__PURE__ */ s.jsx(
30
+ h,
31
+ {
32
+ state: t,
33
+ className: e(
34
+ "p-2",
35
+ o === "horizontal" ? "pl-2" : "pt-2",
36
+ p ? "cursor-not-allowed opacity-50" : "",
37
+ c
38
+ )
39
+ },
40
+ (l = t.selectedItem) == null ? void 0 : l.key
41
+ )
21
42
  ] });
22
- });
23
- P.displayName = "Tooltip";
43
+ };
44
+ v.Item = N;
24
45
  export {
25
- P as Tooltip
46
+ v as Tabs
26
47
  };
@@ -1,30 +1,26 @@
1
- import { j as i } from "./index.es25.js";
2
- import { useRef as a, Children as f, cloneElement as u } from "react";
3
- import { useTooltipTrigger as T } from "react-aria";
4
- import { useTooltipTriggerState as h } from "react-stately";
5
- import { cn as x } from "./index.es26.js";
6
- import { TooltipContext as d } from "./index.es37.js";
7
- const w = (e) => {
8
- const { children: r, isDisabled: s, trigger: l, className: n } = e, t = h(e), o = a(null), { triggerProps: g, tooltipProps: m } = T({ isDisabled: s, trigger: l }, t, o), [c, p] = f.toArray(r);
9
- if (!Array.isArray(r) || r.length > 2)
10
- throw new Error("TooltipTrigger must have exactly 2 children");
11
- return /* @__PURE__ */ i.jsxs("span", { className: x("relative inline-flex items-center", n), children: [
12
- u(c, {
13
- ...g,
14
- ref: o
15
- }),
16
- /* @__PURE__ */ i.jsx(
17
- d.Provider,
1
+ import { j as s } from "./index.es26.js";
2
+ import { forwardRef as f, useContext as u } from "react";
3
+ import { useTooltip as T, mergeProps as h } from "react-aria";
4
+ import { cn as e } from "./index.es27.js";
5
+ import { TooltipContext as j } from "./index.es38.js";
6
+ import { tooltipVariants as N } from "./index.es37.js";
7
+ const P = f((p, i) => {
8
+ const { placement: l = "bottom", className: m, mode: o = "dark", supportText: t, children: a, ...r } = p, { state: n, ...c } = u(j), { tooltipProps: x } = T(r, n), d = e(N({ placement: l, mode: o, hasSupportText: !!t }), m);
9
+ return /* @__PURE__ */ s.jsxs("span", { className: d, ...h(r, x, c), ref: i, children: [
10
+ a,
11
+ t ? /* @__PURE__ */ s.jsx(
12
+ "div",
18
13
  {
19
- value: {
20
- state: t,
21
- ...m
22
- },
23
- children: t.isOpen ? p : null
14
+ className: e(
15
+ "!text-sm !font-normal !leading-[19.07px]",
16
+ o === "dark" ? "!text-blue-50" : "!text-neutral-700"
17
+ ),
18
+ children: t
24
19
  }
25
- )
20
+ ) : null
26
21
  ] });
27
- };
22
+ });
23
+ P.displayName = "Tooltip";
28
24
  export {
29
- w as TooltipTrigger
25
+ P as Tooltip
30
26
  };
@@ -1,10 +1,30 @@
1
- import { j as m } from "./index.es25.js";
2
- import { cn as n } from "./index.es26.js";
3
- import { textVariants as a } from "./index.es39.js";
4
- function x(t) {
5
- const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
6
- return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
7
- }
1
+ import { j as i } from "./index.es26.js";
2
+ import { useRef as a, Children as f, cloneElement as u } from "react";
3
+ import { useTooltipTrigger as T } from "react-aria";
4
+ import { useTooltipTriggerState as h } from "react-stately";
5
+ import { cn as x } from "./index.es27.js";
6
+ import { TooltipContext as d } from "./index.es38.js";
7
+ const w = (e) => {
8
+ const { children: r, isDisabled: s, trigger: l, className: n } = e, t = h(e), o = a(null), { triggerProps: g, tooltipProps: m } = T({ isDisabled: s, trigger: l }, t, o), [c, p] = f.toArray(r);
9
+ if (!Array.isArray(r) || r.length > 2)
10
+ throw new Error("TooltipTrigger must have exactly 2 children");
11
+ return /* @__PURE__ */ i.jsxs("span", { className: x("relative inline-flex items-center", n), children: [
12
+ u(c, {
13
+ ...g,
14
+ ref: o
15
+ }),
16
+ /* @__PURE__ */ i.jsx(
17
+ d.Provider,
18
+ {
19
+ value: {
20
+ state: t,
21
+ ...m
22
+ },
23
+ children: t.isOpen ? p : null
24
+ }
25
+ )
26
+ ] });
27
+ };
8
28
  export {
9
- x as Text
29
+ w as TooltipTrigger
10
30
  };
@@ -1,10 +1,10 @@
1
- import { j as m } from "./index.es25.js";
2
- import { cn as c } from "./index.es26.js";
3
- import { titleVariants as l } from "./index.es39.js";
4
- function j(s) {
5
- const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
6
- return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
1
+ import { j as m } from "./index.es26.js";
2
+ import { cn as n } from "./index.es27.js";
3
+ import { textVariants as a } from "./index.es40.js";
4
+ function x(t) {
5
+ const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
6
+ return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
7
7
  }
8
8
  export {
9
- j as Title
9
+ x as Text
10
10
  };
@@ -1,8 +1,10 @@
1
- import { __module as e } from "./index.es59.js";
2
- import { __require as r } from "./index.es60.js";
3
- import { __require as o } from "./index.es61.js";
4
- process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
- var m = e.exports;
1
+ import { j as m } from "./index.es26.js";
2
+ import { cn as c } from "./index.es27.js";
3
+ import { titleVariants as l } from "./index.es40.js";
4
+ function j(s) {
5
+ const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
6
+ return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
7
+ }
6
8
  export {
7
- m as j
9
+ j as Title
8
10
  };
@@ -1,8 +1,8 @@
1
- import { clsx as o } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(o(r));
5
- }
1
+ import { __module as e } from "./index.es59.js";
2
+ import { __require as r } from "./index.es60.js";
3
+ import { __require as o } from "./index.es61.js";
4
+ process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
+ var m = e.exports;
6
6
  export {
7
- n as cn
7
+ m as j
8
8
  };
@@ -1,24 +1,8 @@
1
- import { j as s } from "./index.es25.js";
2
- import { MinusIcon as p, PlusIcon as u } from "./index.es42.js";
3
- import { cn as e } from "./index.es26.js";
4
- const f = ({
5
- label: o,
6
- section: n,
7
- active: r,
8
- onToggle: l,
9
- itemClassName: t,
10
- sectionClassName: c,
11
- hasIcon: i = !0
12
- }) => {
13
- const a = e("rounded-md border border-solid border-purple-200 bg-gray-100", t), d = e("px-4 pb-4", c), m = r ? p : u;
14
- return /* @__PURE__ */ s.jsxs("div", { className: a, children: [
15
- /* @__PURE__ */ s.jsxs("button", { className: "flex w-full cursor-pointer items-center gap-x-4 p-4", onClick: l, children: [
16
- /* @__PURE__ */ s.jsx("div", { className: "flex-1", children: o }),
17
- i ? /* @__PURE__ */ s.jsx("span", { className: `shrink-0 transition duration-300 ${r ? "-rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ s.jsx(m, { className: "size-6" }) }) : null
18
- ] }),
19
- r ? /* @__PURE__ */ s.jsx("div", { className: d, children: n }) : null
20
- ] });
21
- };
1
+ import { clsx as o } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ function n(...r) {
4
+ return t(o(r));
5
+ }
22
6
  export {
23
- f as AccordionItem
7
+ n as cn
24
8
  };