@simpli-route/apollo-ds 0.1.23 → 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 (130) 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.cjs117.js +1 -1
  8. package/dist/index.cjs12.js +1 -1
  9. package/dist/index.cjs122.js +1 -1
  10. package/dist/index.cjs123.js +1 -1
  11. package/dist/index.cjs124.js +1 -1
  12. package/dist/index.cjs125.js +1 -1
  13. package/dist/index.cjs126.js +1 -1
  14. package/dist/index.cjs128.js +1 -1
  15. package/dist/index.cjs13.js +1 -1
  16. package/dist/index.cjs130.js +1 -1
  17. package/dist/index.cjs14.js +1 -1
  18. package/dist/index.cjs15.js +1 -1
  19. package/dist/index.cjs16.js +1 -1
  20. package/dist/index.cjs17.js +1 -1
  21. package/dist/index.cjs18.js +1 -1
  22. package/dist/index.cjs19.js +1 -1
  23. package/dist/index.cjs2.js +1 -1
  24. package/dist/index.cjs20.js +1 -1
  25. package/dist/index.cjs21.js +1 -1
  26. package/dist/index.cjs22.js +1 -1
  27. package/dist/index.cjs23.js +1 -1
  28. package/dist/index.cjs24.js +1 -1
  29. package/dist/index.cjs25.js +1 -1
  30. package/dist/index.cjs26.js +1 -1
  31. package/dist/index.cjs27.js +1 -1
  32. package/dist/index.cjs3.js +1 -1
  33. package/dist/index.cjs4.js +1 -1
  34. package/dist/index.cjs42.js +1 -1
  35. package/dist/index.cjs43.js +1 -1
  36. package/dist/index.cjs44.js +1 -1
  37. package/dist/index.cjs46.js +1 -1
  38. package/dist/index.cjs47.js +1 -1
  39. package/dist/index.cjs48.js +1 -1
  40. package/dist/index.cjs49.js +1 -1
  41. package/dist/index.cjs5.js +1 -1
  42. package/dist/index.cjs50.js +1 -1
  43. package/dist/index.cjs51.js +1 -1
  44. package/dist/index.cjs52.js +1 -1
  45. package/dist/index.cjs53.js +1 -1
  46. package/dist/index.cjs54.js +1 -1
  47. package/dist/index.cjs55.js +1 -1
  48. package/dist/index.cjs56.js +1 -1
  49. package/dist/index.cjs57.js +1 -1
  50. package/dist/index.cjs58.js +1 -1
  51. package/dist/index.cjs6.js +1 -1
  52. package/dist/index.cjs7.js +1 -1
  53. package/dist/index.cjs70.js +1 -1
  54. package/dist/index.cjs71.js +1 -1
  55. package/dist/index.cjs72.js +1 -1
  56. package/dist/index.cjs73.js +1 -1
  57. package/dist/index.cjs74.js +1 -1
  58. package/dist/index.cjs75.js +1 -1
  59. package/dist/index.cjs76.js +1 -1
  60. package/dist/index.cjs77.js +1 -1
  61. package/dist/index.cjs8.js +1 -1
  62. package/dist/index.cjs9.js +1 -1
  63. package/dist/index.cjs98.js +1 -1
  64. package/dist/index.cjs99.js +1 -1
  65. package/dist/index.es.js +46 -44
  66. package/dist/index.es10.js +34 -87
  67. package/dist/index.es11.js +81 -89
  68. package/dist/index.es117.js +2 -2
  69. package/dist/index.es12.js +96 -72
  70. package/dist/index.es122.js +8 -22
  71. package/dist/index.es123.js +311 -4
  72. package/dist/index.es124.js +20 -8
  73. package/dist/index.es125.js +4 -311
  74. package/dist/index.es126.js +4 -26
  75. package/dist/index.es128.js +94 -4
  76. package/dist/index.es129.js +2 -2
  77. package/dist/index.es13.js +73 -141
  78. package/dist/index.es130.js +20 -86
  79. package/dist/index.es131.js +2 -2
  80. package/dist/index.es14.js +134 -31
  81. package/dist/index.es15.js +37 -75
  82. package/dist/index.es16.js +78 -48
  83. package/dist/index.es17.js +48 -3
  84. package/dist/index.es18.js +3 -100
  85. package/dist/index.es19.js +99 -77
  86. package/dist/index.es2.js +24 -23
  87. package/dist/index.es20.js +76 -43
  88. package/dist/index.es21.js +41 -20
  89. package/dist/index.es22.js +21 -25
  90. package/dist/index.es23.js +28 -8
  91. package/dist/index.es24.js +7 -7
  92. package/dist/index.es25.js +8 -6
  93. package/dist/index.es26.js +6 -6
  94. package/dist/index.es27.js +6 -22
  95. package/dist/index.es3.js +46 -106
  96. package/dist/index.es4.js +96 -43
  97. package/dist/index.es42.js +2 -2
  98. package/dist/index.es43.js +2 -2
  99. package/dist/index.es44.js +2 -2
  100. package/dist/index.es46.js +13 -10
  101. package/dist/index.es47.js +137 -10
  102. package/dist/index.es48.js +18 -10
  103. package/dist/index.es49.js +7 -13
  104. package/dist/index.es5.js +55 -42
  105. package/dist/index.es50.js +16 -99
  106. package/dist/index.es51.js +147 -11
  107. package/dist/index.es52.js +100 -18
  108. package/dist/index.es53.js +11 -18
  109. package/dist/index.es54.js +10 -137
  110. package/dist/index.es55.js +19 -20
  111. package/dist/index.es56.js +20 -7
  112. package/dist/index.es57.js +10 -18
  113. package/dist/index.es58.js +12 -149
  114. package/dist/index.es6.js +42 -38
  115. package/dist/index.es7.js +38 -31
  116. package/dist/index.es70.js +4 -30
  117. package/dist/index.es71.js +27 -58
  118. package/dist/index.es72.js +2 -4
  119. package/dist/index.es73.js +10 -28
  120. package/dist/index.es74.js +340 -2
  121. package/dist/index.es75.js +166 -8
  122. package/dist/index.es76.js +56 -339
  123. package/dist/index.es77.js +28 -164
  124. package/dist/index.es8.js +31 -49
  125. package/dist/index.es9.js +49 -37
  126. package/dist/index.es98.js +6 -6
  127. package/dist/index.es99.js +2 -2
  128. package/dist/stories/Accordion.stories.d.ts +1 -0
  129. package/dist/style.css +4 -0
  130. package/package.json +1 -1
@@ -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.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(
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.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(
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.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,
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.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
- }
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.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 });
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.es28.js";
3
- import { cn as e } from "./index.es26.js";
4
- const f = ({
5
- label: o,
6
- section: n,
7
- active: r,
8
- onToggle: t,
9
- itemClassName: l,
10
- sectionClassName: c,
11
- hasIcon: i = !0
12
- }) => {
13
- const a = e("rounded-md border border-solid border-purple-200 bg-gray-100", l), 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", { type: "button", className: "flex w-full cursor-pointer items-center gap-x-4 p-4", onClick: t, 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
  };
package/dist/index.es3.js CHANGED
@@ -1,111 +1,51 @@
1
- import { j as r } from "./index.es25.js";
2
- import { Button as I } from "react-aria-components";
3
- import { cn as x } from "./index.es26.js";
4
- import "react";
5
- import { buttonVariants as B } from "./index.es29.js";
6
- import "./index.es30.js";
7
- import "react-aria";
8
- import "./index.es31.js";
9
- import "./index.es6.js";
10
- import "./index.es7.js";
11
- import { Loader as y } from "./index.es8.js";
12
- import "./index.es9.js";
13
- import "./index.es32.js";
14
- import "framer-motion";
15
- import "./index.es33.js";
16
- import "./index.es34.js";
17
- import "./index.es35.js";
18
- import "./index.es36.js";
19
- import "./index.es37.js";
20
- import "./index.es21.js";
21
- import "react-stately";
22
- import "./index.es38.js";
23
- import "./index.es16.js";
24
- import "./index.es17.js";
25
- import "./index.es18.js";
26
- import "./index.es39.js";
27
- import "./index.es20.js";
28
- import "./index.es40.js";
29
- const j = ({
30
- renderPosition: t,
31
- leftIcon: a,
32
- rightIcon: n,
33
- isLoading: i,
34
- loaderPosition: m,
35
- loaderProps: o
1
+ import { j as r } from "./index.es26.js";
2
+ import { MinusIcon as p, PlusIcon as x } from "./index.es28.js";
3
+ import { cn as e } from "./index.es27.js";
4
+ const h = ({
5
+ label: t,
6
+ section: n,
7
+ active: o,
8
+ onToggle: l,
9
+ itemClassName: c,
10
+ sectionClassName: a,
11
+ hasIcon: i = !0,
12
+ isDisabled: s = !1
36
13
  }) => {
37
- const s = t === "left" ? a : t === "right" ? n : null;
38
- return s || i && m === t ? /* @__PURE__ */ r.jsx("span", { className: t === "left" ? "mr-1" : "ml-1", children: i && m === t ? /* @__PURE__ */ r.jsx(y, { size: "sm", ...o }) : s }) : null;
39
- }, tt = (t) => {
40
- const {
41
- intent: a = "primary",
42
- size: n = "md",
43
- leftIcon: i,
44
- rightIcon: m,
45
- isDisabled: o,
46
- children: s,
47
- className: N,
48
- isLoading: e,
49
- loaderPosition: d = "left",
50
- loaderProps: u,
51
- fullWidth: b = !1,
52
- unstyled: f = !1,
53
- focus: h = !0,
54
- isMobileFullWidth: g = !1,
55
- ...v
56
- } = t, w = (c, l, p) => x(
57
- f ? "" : B({
58
- intent: a,
59
- size: n,
60
- isHovered: l || (h || !f ? p : !1),
61
- isActive: c,
62
- isDisabled: o,
63
- isFocused: h || !f ? p : !1,
64
- fullWidth: b,
65
- isLoading: e
66
- }),
67
- N
68
- );
69
- return /* @__PURE__ */ r.jsxs(
70
- I,
71
- {
72
- "data-disabled": o || void 0,
73
- "data-loading": e || void 0,
74
- isDisabled: o,
75
- className: ({ isPressed: c, isHovered: l, isFocusVisible: p }) => w(c, l, p),
76
- ...v,
77
- children: [
78
- /* @__PURE__ */ r.jsx(
79
- j,
80
- {
81
- renderPosition: "left",
82
- loaderPosition: d,
83
- loaderProps: u,
84
- isLoading: e,
85
- leftIcon: i
86
- }
14
+ const d = e(
15
+ "rounded-md border border-solid border-purple-200 bg-gray-100",
16
+ s && "opacity-50 bg-gray-50",
17
+ c
18
+ ), m = e("px-4 pb-4", a), u = o ? p : x;
19
+ return /* @__PURE__ */ r.jsxs("div", { className: d, children: [
20
+ /* @__PURE__ */ r.jsxs(
21
+ "button",
22
+ {
23
+ type: "button",
24
+ className: e(
25
+ "flex w-full items-center gap-x-4 p-4",
26
+ s ? "cursor-not-allowed text-neutral-600" : "cursor-pointer"
87
27
  ),
88
- /* @__PURE__ */ r.jsx(
89
- "span",
90
- {
91
- className: x("flex h-full items-center overflow-hidden whitespace-nowrap", g ? "w-full" : ""),
92
- children: s
93
- }
94
- ),
95
- /* @__PURE__ */ r.jsx(
96
- j,
97
- {
98
- renderPosition: "right",
99
- loaderPosition: d,
100
- loaderProps: u,
101
- isLoading: e,
102
- rightIcon: m
103
- }
104
- )
105
- ]
106
- }
107
- );
28
+ disabled: s,
29
+ onClick: l,
30
+ children: [
31
+ /* @__PURE__ */ r.jsx("div", { className: "flex-1", children: t }),
32
+ i ? /* @__PURE__ */ r.jsx(
33
+ "span",
34
+ {
35
+ className: e(
36
+ "shrink-0 transition duration-300",
37
+ o ? "-rotate-180" : "rotate-0",
38
+ s && "text-neutral-600"
39
+ ),
40
+ children: /* @__PURE__ */ r.jsx(u, { className: "size-6" })
41
+ }
42
+ ) : null
43
+ ]
44
+ }
45
+ ),
46
+ o ? /* @__PURE__ */ r.jsx("div", { className: m, children: n }) : null
47
+ ] });
108
48
  };
109
49
  export {
110
- tt as Button
50
+ h as AccordionItem
111
51
  };