@simpli-route/apollo-ds 0.1.20 → 0.1.22

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 (125) hide show
  1. package/dist/components/Select/TooltipSelect.d.ts +1 -1
  2. package/dist/components/Slider/Slider.d.ts +1 -1
  3. package/dist/components/Slider/SliderContainerTrack.d.ts +1 -1
  4. package/dist/components/Slider/types.d.ts +15 -0
  5. package/dist/components/Tooltip/types.d.ts +1 -0
  6. package/dist/components/Tooltip/variants.d.ts +0 -1
  7. package/dist/index.cjs10.js +1 -1
  8. package/dist/index.cjs11.js +1 -1
  9. package/dist/index.cjs12.js +1 -1
  10. package/dist/index.cjs13.js +1 -1
  11. package/dist/index.cjs15.js +1 -1
  12. package/dist/index.cjs18.js +1 -1
  13. package/dist/index.cjs19.js +1 -1
  14. package/dist/index.cjs2.js +1 -1
  15. package/dist/index.cjs20.js +1 -1
  16. package/dist/index.cjs21.js +1 -1
  17. package/dist/index.cjs22.js +1 -1
  18. package/dist/index.cjs23.js +1 -1
  19. package/dist/index.cjs24.js +1 -1
  20. package/dist/index.cjs27.js +1 -1
  21. package/dist/index.cjs28.js +1 -1
  22. package/dist/index.cjs29.js +1 -1
  23. package/dist/index.cjs3.js +1 -1
  24. package/dist/index.cjs30.js +1 -1
  25. package/dist/index.cjs31.js +1 -1
  26. package/dist/index.cjs32.js +1 -1
  27. package/dist/index.cjs33.js +1 -1
  28. package/dist/index.cjs34.js +1 -1
  29. package/dist/index.cjs35.js +1 -1
  30. package/dist/index.cjs36.js +1 -1
  31. package/dist/index.cjs37.js +1 -1
  32. package/dist/index.cjs38.js +1 -1
  33. package/dist/index.cjs39.js +1 -1
  34. package/dist/index.cjs4.js +1 -1
  35. package/dist/index.cjs40.js +1 -1
  36. package/dist/index.cjs41.js +1 -1
  37. package/dist/index.cjs42.js +1 -1
  38. package/dist/index.cjs43.js +1 -1
  39. package/dist/index.cjs44.js +1 -1
  40. package/dist/index.cjs45.js +1 -1
  41. package/dist/index.cjs46.js +1 -1
  42. package/dist/index.cjs47.js +1 -1
  43. package/dist/index.cjs48.js +1 -1
  44. package/dist/index.cjs49.js +1 -1
  45. package/dist/index.cjs5.js +1 -1
  46. package/dist/index.cjs50.js +1 -1
  47. package/dist/index.cjs51.js +1 -1
  48. package/dist/index.cjs52.js +1 -1
  49. package/dist/index.cjs53.js +1 -1
  50. package/dist/index.cjs54.js +1 -1
  51. package/dist/index.cjs55.js +1 -1
  52. package/dist/index.cjs56.js +1 -1
  53. package/dist/index.cjs57.js +1 -1
  54. package/dist/index.cjs58.js +1 -1
  55. package/dist/index.cjs6.js +1 -1
  56. package/dist/index.cjs7.js +1 -1
  57. package/dist/index.cjs70.js +1 -1
  58. package/dist/index.cjs71.js +1 -1
  59. package/dist/index.cjs72.js +1 -1
  60. package/dist/index.cjs73.js +1 -1
  61. package/dist/index.cjs74.js +1 -1
  62. package/dist/index.cjs75.js +1 -1
  63. package/dist/index.cjs76.js +1 -1
  64. package/dist/index.cjs77.js +1 -1
  65. package/dist/index.cjs9.js +1 -1
  66. package/dist/index.es10.js +3 -3
  67. package/dist/index.es11.js +7 -7
  68. package/dist/index.es12.js +63 -46
  69. package/dist/index.es13.js +2 -2
  70. package/dist/index.es15.js +29 -24
  71. package/dist/index.es18.js +4 -4
  72. package/dist/index.es19.js +3 -3
  73. package/dist/index.es2.js +1 -1
  74. package/dist/index.es20.js +3 -3
  75. package/dist/index.es21.js +10 -10
  76. package/dist/index.es22.js +1 -1
  77. package/dist/index.es23.js +1 -1
  78. package/dist/index.es24.js +1 -1
  79. package/dist/index.es27.js +21 -29
  80. package/dist/index.es28.js +148 -20
  81. package/dist/index.es29.js +38 -132
  82. package/dist/index.es3.js +9 -9
  83. package/dist/index.es30.js +34 -27
  84. package/dist/index.es31.js +29 -141
  85. package/dist/index.es32.js +29 -29
  86. package/dist/index.es33.js +19 -27
  87. package/dist/index.es34.js +39 -33
  88. package/dist/index.es35.js +46 -42
  89. package/dist/index.es36.js +25 -25
  90. package/dist/index.es37.js +3 -55
  91. package/dist/index.es38.js +76 -29
  92. package/dist/index.es39.js +22 -3
  93. package/dist/index.es4.js +2 -2
  94. package/dist/index.es40.js +151 -80
  95. package/dist/index.es41.js +28 -20
  96. package/dist/index.es42.js +17 -10
  97. package/dist/index.es43.js +10 -10
  98. package/dist/index.es44.js +132 -40
  99. package/dist/index.es45.js +20 -17
  100. package/dist/index.es46.js +101 -7
  101. package/dist/index.es47.js +11 -16
  102. package/dist/index.es48.js +13 -149
  103. package/dist/index.es49.js +10 -100
  104. package/dist/index.es5.js +1 -1
  105. package/dist/index.es50.js +11 -12
  106. package/dist/index.es51.js +7 -19
  107. package/dist/index.es52.js +17 -19
  108. package/dist/index.es53.js +149 -22
  109. package/dist/index.es54.js +10 -163
  110. package/dist/index.es55.js +10 -10
  111. package/dist/index.es56.js +45 -10
  112. package/dist/index.es57.js +18 -11
  113. package/dist/index.es58.js +20 -13
  114. package/dist/index.es6.js +1 -1
  115. package/dist/index.es7.js +1 -1
  116. package/dist/index.es70.js +30 -4
  117. package/dist/index.es71.js +58 -27
  118. package/dist/index.es72.js +4 -2
  119. package/dist/index.es73.js +28 -10
  120. package/dist/index.es74.js +2 -340
  121. package/dist/index.es75.js +8 -166
  122. package/dist/index.es76.js +339 -56
  123. package/dist/index.es77.js +164 -28
  124. package/dist/index.es9.js +1 -1
  125. package/package.json +1 -1
@@ -3,9 +3,9 @@ import { useRef as b } from "react";
3
3
  import { useTabList as d } from "react-aria";
4
4
  import { useTabListState as u, Item as N } from "react-stately";
5
5
  import { cn as e } from "./index.es26.js";
6
- import { Tab as j } from "./index.es42.js";
7
- import { TabPanel as h } from "./index.es43.js";
8
- import { tabsVariants as T } from "./index.es44.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
9
  const v = (a) => {
10
10
  var l;
11
11
  const {
@@ -1,13 +1,13 @@
1
1
  import { j as s } from "./index.es25.js";
2
- import { forwardRef as u, useContext as T } from "react";
3
- import { useTooltip as h, mergeProps as j } from "react-aria";
2
+ import { forwardRef as f, useContext as u } from "react";
3
+ import { useTooltip as T, mergeProps as h } from "react-aria";
4
4
  import { cn as e } from "./index.es26.js";
5
- import { TooltipContext as N } from "./index.es39.js";
6
- import { tooltipVariants as P } from "./index.es38.js";
7
- const C = u((p, i) => {
8
- const { placement: m = "bottom", size: l = "md", className: a, mode: o = "dark", supportText: t, children: n, ...r } = p, { state: c, ...x } = T(N), { tooltipProps: d } = h(r, c), f = e(P({ placement: m, size: l, mode: o, hasSupportText: !!t }), a);
9
- return /* @__PURE__ */ s.jsxs("span", { className: f, ...j(r, d, x), ref: i, children: [
10
- n,
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
11
  t ? /* @__PURE__ */ s.jsx(
12
12
  "div",
13
13
  {
@@ -20,7 +20,7 @@ const C = u((p, i) => {
20
20
  ) : null
21
21
  ] });
22
22
  });
23
- C.displayName = "Tooltip";
23
+ P.displayName = "Tooltip";
24
24
  export {
25
- C as Tooltip
25
+ P as Tooltip
26
26
  };
@@ -3,7 +3,7 @@ import { useRef as a, Children as f, cloneElement as u } from "react";
3
3
  import { useTooltipTrigger as T } from "react-aria";
4
4
  import { useTooltipTriggerState as h } from "react-stately";
5
5
  import { cn as x } from "./index.es26.js";
6
- import { TooltipContext as d } from "./index.es39.js";
6
+ import { TooltipContext as d } from "./index.es37.js";
7
7
  const w = (e) => {
8
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
9
  if (!Array.isArray(r) || r.length > 2)
@@ -1,6 +1,6 @@
1
1
  import { j as m } from "./index.es25.js";
2
2
  import { cn as n } from "./index.es26.js";
3
- import { textVariants as a } from "./index.es41.js";
3
+ import { textVariants as a } from "./index.es39.js";
4
4
  function x(t) {
5
5
  const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
6
6
  return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
@@ -1,6 +1,6 @@
1
1
  import { j as m } from "./index.es25.js";
2
2
  import { cn as c } from "./index.es26.js";
3
- import { titleVariants as l } from "./index.es41.js";
3
+ import { titleVariants as l } from "./index.es39.js";
4
4
  function j(s) {
5
5
  const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
6
6
  return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
@@ -1,32 +1,24 @@
1
- import { j as e } from "./index.es25.js";
2
- import { cn as l } from "./index.es26.js";
3
- const m = (r) => {
4
- const { isIndeterminate: t, isSelected: s, className: n, isHovered: a } = r, o = a && !s && !t ? "text-neutral-500" : "", i = !!(o || s);
5
- return /* @__PURE__ */ e.jsx("svg", { className: l("stroke-current", o, n), viewBox: "-1 1 17 17", children: t ? /* @__PURE__ */ e.jsx(
6
- "line",
7
- {
8
- x1: 1,
9
- y1: 10,
10
- x2: 14,
11
- y2: 10,
12
- fill: "none",
13
- strokeWidth: 2,
14
- strokeDasharray: 14,
15
- strokeDashoffset: s ? 28 : 42,
16
- style: { transition: "all 400ms" }
17
- }
18
- ) : /* @__PURE__ */ e.jsx(
19
- "polyline",
20
- {
21
- points: "1 9 7 14 15 4",
22
- fill: "none",
23
- strokeWidth: 2,
24
- strokeDasharray: 22,
25
- strokeDashoffset: i ? 44 : 66,
26
- style: { transition: "all 400ms" }
27
- }
28
- ) });
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
+ ] });
29
21
  };
30
22
  export {
31
- m as MarkIcon
23
+ f as AccordionItem
32
24
  };
@@ -1,45 +1,173 @@
1
1
  import { cva as r } from "class-variance-authority";
2
- const i = r(
3
- "flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",
2
+ const t = r(
3
+ "inline-flex select-none items-center justify-center text-center text-xs font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",
4
4
  {
5
5
  variants: {
6
+ intent: {
7
+ primary: "bg-primary-500 text-primary-50",
8
+ secondary: "border border-primary-500 bg-primary-50 text-primary-500",
9
+ tertiary: "text-primary-500",
10
+ outline: "border border-primary-500 text-primary-500",
11
+ success: "border bg-success-500 text-success-50",
12
+ error: "border bg-error-500 text-error-50",
13
+ orangeWarning: "border bg-orange-warning-500 text-orange-warning-50",
14
+ yellowWarning: "border bg-yellow-warning-500 text-yellow-warning-900",
15
+ info: "border bg-blue-500 text-blue-50"
16
+ },
17
+ size: {
18
+ xs: "rounded px-3 py-1",
19
+ sm: "rounded px-3 py-2",
20
+ md: "rounded px-4 py-3",
21
+ lg: "rounded-lg px-6 py-4"
22
+ },
23
+ isDisabled: {
24
+ true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
25
+ },
6
26
  isHovered: {
7
27
  true: ""
8
28
  },
9
- isSelected: {
10
- true: "border-primary-500 bg-primary-500",
11
- false: "bg-white"
29
+ isActive: {
30
+ true: ""
12
31
  },
13
- isFocusVisible: {
14
- true: "border-primary-500 group-active:border-primary-500"
32
+ fullWidth: {
33
+ true: "w-full",
34
+ false: "w-fit"
15
35
  },
16
- isDisabled: {
17
- true: "border-neutral-500 cursor-not-allowed"
36
+ isLoading: {
37
+ true: "pointer-events-none cursor-not-allowed opacity-70"
18
38
  },
19
- label: {
20
- true: "mr-2"
39
+ isFocused: {
40
+ true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
41
+ false: ""
21
42
  }
22
43
  },
44
+ defaultVariants: {
45
+ intent: "primary",
46
+ size: "md"
47
+ },
23
48
  compoundVariants: [
49
+ /* Hover State */
50
+ {
51
+ intent: "primary",
52
+ isHovered: !0,
53
+ class: "bg-primary-700"
54
+ },
55
+ {
56
+ intent: "secondary",
57
+ isHovered: !0,
58
+ class: "bg-primary-200"
59
+ },
60
+ {
61
+ intent: "tertiary",
62
+ isHovered: !0,
63
+ class: "bg-primary-300 text-primary-800"
64
+ },
65
+ {
66
+ intent: "outline",
67
+ isHovered: !0,
68
+ class: "bg-primary-500 text-primary-50"
69
+ },
70
+ {
71
+ intent: "success",
72
+ isHovered: !0,
73
+ class: "bg-success-700 text-neutral-50"
74
+ },
75
+ {
76
+ intent: "error",
77
+ isHovered: !0,
78
+ class: "bg-error-700 text-error-50"
79
+ },
80
+ {
81
+ intent: "orangeWarning",
82
+ isHovered: !0,
83
+ class: "bg-orange-warning-700 text-orange-warning-50"
84
+ },
24
85
  {
86
+ intent: "yellowWarning",
25
87
  isHovered: !0,
26
- isSelected: !0,
27
- class: "border-none bg-primary-600 group-active:bg-primary-600"
88
+ class: "bg-yellow-warning-700 text-neutral-50"
28
89
  },
29
90
  {
91
+ intent: "info",
30
92
  isHovered: !0,
31
- isSelected: !1,
32
- isDisabled: !1,
33
- class: "border-primary-700 group-active:bg-primary-600"
93
+ class: "bg-blue-700 text-blue-50"
94
+ },
95
+ /* /Focus State */
96
+ {
97
+ intent: "success",
98
+ isFocused: !0,
99
+ class: "border-[1.5px] focus:ring-success-500"
100
+ },
101
+ {
102
+ intent: "error",
103
+ isFocused: !0,
104
+ class: "border-[1.5px] focus:ring-error-500"
105
+ },
106
+ {
107
+ intent: "orangeWarning",
108
+ isFocused: !0,
109
+ class: "border-[1.5px] focus:ring-orange-500"
110
+ },
111
+ {
112
+ intent: "yellowWarning",
113
+ isFocused: !0,
114
+ class: "border-[1.5px] focus:ring-yellow-500"
115
+ },
116
+ {
117
+ intent: "info",
118
+ isFocused: !0,
119
+ class: "border-[1.5px] focus:ring-blue-500"
120
+ },
121
+ /* Active State */
122
+ {
123
+ intent: "primary",
124
+ isActive: !0,
125
+ class: "bg-primary-900"
126
+ },
127
+ {
128
+ intent: "secondary",
129
+ isActive: !0,
130
+ class: "bg-primary-300"
131
+ },
132
+ {
133
+ intent: "tertiary",
134
+ isActive: !0,
135
+ class: "bg-primary-500 text-white"
136
+ },
137
+ {
138
+ intent: "outline",
139
+ isActive: !0,
140
+ class: "border border-primary-500 bg-primary-300 text-primary-500"
141
+ },
142
+ {
143
+ intent: "success",
144
+ isActive: !0,
145
+ class: "border border-transparent bg-success-300 text-success-900"
146
+ },
147
+ {
148
+ intent: "error",
149
+ isActive: !0,
150
+ class: "border border-transparent bg-error-300 text-error-900"
151
+ },
152
+ {
153
+ intent: "orangeWarning",
154
+ isActive: !0,
155
+ class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
156
+ },
157
+ {
158
+ intent: "yellowWarning",
159
+ isActive: !0,
160
+ class: "border border-transparent bg-yellow-warning-300 text-yellow-warning-900"
34
161
  },
35
162
  {
36
- isDisabled: !0,
37
- isSelected: !0,
38
- class: "bg-neutral-500"
163
+ intent: "info",
164
+ isActive: !0,
165
+ class: "border border-transparent bg-blue-200 text-blue-900"
39
166
  }
167
+ /* /Active State */
40
168
  ]
41
169
  }
42
170
  );
43
171
  export {
44
- i as checkboxVariants
172
+ t as buttonVariants
45
173
  };
@@ -1,139 +1,45 @@
1
- import { j as n } from "./index.es25.js";
2
- import { Button as w } from "react-aria-components";
3
- import { cn as e } from "./index.es26.js";
4
- import { selectContainerVariant as v, selectBadgeValueVariant as j } from "./index.es37.js";
5
- const k = ({
6
- isDisabled: l,
7
- size: c,
8
- selectButtonClassName: i,
9
- setIsOpen: p,
10
- isOpen: d,
11
- value: r,
12
- placeholder: L,
13
- items: a,
14
- keyIdName: N,
15
- keyLabelName: g,
16
- visibleItems: o,
17
- handleDeleteOptionSelected: B,
18
- maxLengthTextOption: h,
19
- hiddenDiscardButton: x,
20
- containerRef: Z,
21
- setTooltipMessage: s,
22
- hasOverflow: M,
23
- isCalculatingChips: R
24
- }) => /* @__PURE__ */ n.jsxs(
25
- w,
1
+ import { cva as r } from "class-variance-authority";
2
+ const i = r(
3
+ "flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",
26
4
  {
27
- className: ({ isFocusVisible: t, isHovered: f }) => e(
28
- v({
29
- isDisabled: l,
30
- isFocusVisible: t,
31
- size: c,
32
- isHovered: f
33
- }),
34
- i
35
- ),
36
- onPress: () => {
37
- p(!d), s("");
5
+ variants: {
6
+ isHovered: {
7
+ true: ""
8
+ },
9
+ isSelected: {
10
+ true: "border-primary-500 bg-primary-500",
11
+ false: "bg-white"
12
+ },
13
+ isFocusVisible: {
14
+ true: "border-primary-500 group-active:border-primary-500"
15
+ },
16
+ isDisabled: {
17
+ true: "border-neutral-500 cursor-not-allowed"
18
+ },
19
+ label: {
20
+ true: "mr-2"
21
+ }
38
22
  },
39
- children: [
40
- /* @__PURE__ */ n.jsx("div", { ref: Z, className: e("no-scrollbar mr-[5px] flex flex-1 overflow-hidden"), children: r.length ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1", children: [
41
- r == null ? void 0 : r.slice(0, o).map((t, f) => {
42
- var m;
43
- const C = ((m = a == null ? void 0 : a.find((u) => u[N] === t)) == null ? void 0 : m[g]) ?? "", V = C.length > h ? `${C.slice(0, h)}...` : C;
44
- return /* @__PURE__ */ n.jsxs(
45
- "div",
46
- {
47
- "data-chip": !0,
48
- className: e(
49
- j({
50
- isDisabled: l,
51
- isLastItem: f + 1 < o,
52
- size: c,
53
- hiddenDiscardButton: x
54
- })
55
- ),
56
- children: [
57
- /* @__PURE__ */ n.jsx(
58
- "div",
59
- {
60
- onMouseEnter: () => C.length > h ? s(C) : s(""),
61
- onMouseLeave: () => s(""),
62
- children: /* @__PURE__ */ n.jsx("p", { className: "whitespace-nowrap font-normal", children: V })
63
- }
64
- ),
65
- !x && /* @__PURE__ */ n.jsx(
66
- w,
67
- {
68
- className: e("outline-none", l ? "cursor-not-allowed" : ""),
69
- isDisabled: l,
70
- slot: null,
71
- onPress: () => B(t),
72
- children: /* @__PURE__ */ n.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
73
- /* @__PURE__ */ n.jsx(
74
- "path",
75
- {
76
- fillRule: "evenodd",
77
- clipRule: "evenodd",
78
- d: "M7.00004 12.6667C10.1297 12.6667 12.6667 10.1297 12.6667 7.00004C12.6667 3.87043 10.1297 1.33337 7.00004 1.33337C3.87043 1.33337 1.33337 3.87043 1.33337 7.00004C1.33337 10.1297 3.87043 12.6667 7.00004 12.6667ZM7.00004 13.6667C10.6819 13.6667 13.6667 10.6819 13.6667 7.00004C13.6667 3.31814 10.6819 0.333374 7.00004 0.333374C3.31814 0.333374 0.333374 3.31814 0.333374 7.00004C0.333374 10.6819 3.31814 13.6667 7.00004 13.6667Z",
79
- fill: l ? "#979BB4" : "#0C0645"
80
- }
81
- ),
82
- /* @__PURE__ */ n.jsx(
83
- "path",
84
- {
85
- d: "M4.64649 8.64649C4.45123 8.84175 4.45123 9.15833 4.64649 9.35359C4.84175 9.54886 5.15834 9.54886 5.3536 9.35359L7.00005 7.70715L8.65343 9.36053C8.84869 9.55579 9.16527 9.55579 9.36053 9.36053C9.55579 9.16526 9.55579 8.84868 9.36053 8.65342L7.70715 7.00004L9.36054 5.34666C9.5558 5.15139 9.5558 4.83481 9.36054 4.63955C9.16527 4.44429 8.84869 4.44429 8.65343 4.63955L7.00005 6.29293L5.35359 4.64648C5.15833 4.45122 4.84175 4.45122 4.64649 4.64648C4.45123 4.84174 4.45123 5.15833 4.64649 5.35359L6.29294 7.00004L4.64649 8.64649Z",
86
- fill: l ? "#979BB4" : "#0C0645"
87
- }
88
- )
89
- ] })
90
- }
91
- )
92
- ]
93
- },
94
- t
95
- );
96
- }),
97
- M && r.length > o && !R && /* @__PURE__ */ n.jsx(
98
- "div",
99
- {
100
- className: e(
101
- j({
102
- isDisabled: l,
103
- isLastItem: !1,
104
- size: c,
105
- hiddenDiscardButton: x
106
- }),
107
- "ml-1"
108
- ),
109
- children: /* @__PURE__ */ n.jsxs("p", { className: "whitespace-nowrap font-normal", children: [
110
- "+",
111
- (r == null ? void 0 : r.length) - o
112
- ] })
113
- }
114
- )
115
- ] }) : /* @__PURE__ */ n.jsx("p", { className: e("flex-1 text-left font-normal text-neutral-700"), children: L }) }),
116
- /* @__PURE__ */ n.jsx(
117
- "svg",
118
- {
119
- className: `${d ? "rotate-180" : ""} transition-transform duration-100`,
120
- width: "20",
121
- height: "10",
122
- viewBox: "0 0 20 10",
123
- fill: "none",
124
- xmlns: "http://www.w3.org/2000/svg",
125
- children: /* @__PURE__ */ n.jsx(
126
- "path",
127
- {
128
- d: "M20 0.838022C20.0006 0.947676 19.9796 1.05638 19.9381 1.15789C19.8967 1.2594 19.8356 1.35173 19.7584 1.42959L12.9512 8.23676C12.5642 8.62472 12.1045 8.93252 11.5984 9.14254C11.0922 9.35256 10.5497 9.46066 10.0017 9.46066C9.45373 9.46066 8.91115 9.35256 8.40502 9.14254C7.8989 8.93252 7.43918 8.62472 7.0522 8.23676L0.245034 1.42959C0.167349 1.3519 0.105725 1.25968 0.0636824 1.15818C0.0216393 1.05667 5.62088e-09 0.947886 0 0.838023C-5.62081e-09 0.728159 0.0216393 0.619372 0.0636824 0.51787C0.105725 0.41637 0.167349 0.324143 0.245034 0.246458C0.32272 0.168773 0.414946 0.107149 0.516447 0.0651056C0.617948 0.0230624 0.726736 0.00142351 0.8366 0.00142351C0.946464 0.00142351 1.05525 0.0230624 1.15675 0.0651055C1.25825 0.107149 1.35048 0.168773 1.42817 0.246458L8.23533 7.05363C8.704 7.52171 9.33931 7.78463 10.0017 7.78463C10.6641 7.78463 11.2994 7.52171 11.7681 7.05363L18.5752 0.246457C18.6527 0.168363 18.7448 0.106378 18.8464 0.0640783C18.9479 0.0217776 19.0568 4.80781e-09 19.1668 0C19.2768 -4.80789e-09 19.3857 0.0217776 19.4872 0.0640782C19.5888 0.106378 19.6809 0.168363 19.7584 0.246457C19.8356 0.324311 19.8967 0.41664 19.9381 0.518154C19.9796 0.619668 20.0006 0.728369 20 0.838022Z",
129
- fill: "#73768C"
130
- }
131
- )
132
- }
133
- )
23
+ compoundVariants: [
24
+ {
25
+ isHovered: !0,
26
+ isSelected: !0,
27
+ class: "border-none bg-primary-600 group-active:bg-primary-600"
28
+ },
29
+ {
30
+ isHovered: !0,
31
+ isSelected: !1,
32
+ isDisabled: !1,
33
+ class: "border-primary-700 group-active:bg-primary-600"
34
+ },
35
+ {
36
+ isDisabled: !0,
37
+ isSelected: !0,
38
+ class: "bg-neutral-500"
39
+ }
134
40
  ]
135
41
  }
136
42
  );
137
43
  export {
138
- k as SelectContent
44
+ i as checkboxVariants
139
45
  };
package/dist/index.es3.js CHANGED
@@ -2,30 +2,30 @@ import { j as r } from "./index.es25.js";
2
2
  import { Button as I } from "react-aria-components";
3
3
  import { cn as x } from "./index.es26.js";
4
4
  import "react";
5
- import { buttonVariants as B } from "./index.es31.js";
6
- import "./index.es28.js";
5
+ import { buttonVariants as B } from "./index.es28.js";
6
+ import "./index.es29.js";
7
7
  import "react-aria";
8
- import "./index.es32.js";
8
+ import "./index.es30.js";
9
9
  import "./index.es6.js";
10
10
  import "./index.es7.js";
11
11
  import { Loader as y } from "./index.es8.js";
12
12
  import "./index.es9.js";
13
- import "./index.es33.js";
13
+ import "./index.es31.js";
14
14
  import "framer-motion";
15
+ import "./index.es32.js";
16
+ import "./index.es33.js";
15
17
  import "./index.es34.js";
16
18
  import "./index.es35.js";
17
19
  import "./index.es36.js";
18
- import "./index.es37.js";
19
- import "./index.es38.js";
20
20
  import "./index.es21.js";
21
21
  import "react-stately";
22
- import "./index.es39.js";
22
+ import "./index.es37.js";
23
23
  import "./index.es16.js";
24
24
  import "./index.es17.js";
25
25
  import "./index.es18.js";
26
- import "./index.es40.js";
26
+ import "./index.es38.js";
27
27
  import "./index.es20.js";
28
- import "./index.es41.js";
28
+ import "./index.es39.js";
29
29
  const j = ({
30
30
  renderPosition: t,
31
31
  leftIcon: a,
@@ -1,29 +1,36 @@
1
- import { j as o } from "./index.es25.js";
2
- import { cn as r } from "./index.es26.js";
3
- import { tooltipVariants as m } from "./index.es38.js";
4
- const d = ({
5
- children: a,
6
- supportText: t,
7
- mode: s = "dark",
8
- className: l,
9
- placement: e = "top",
10
- size: n = "sm"
11
- }) => {
12
- const i = r(m({ placement: e, size: n, mode: s, hasSupportText: !!t }), l);
13
- return /* @__PURE__ */ o.jsxs("span", { className: i, children: [
14
- a,
15
- t ? /* @__PURE__ */ o.jsx(
16
- "div",
17
- {
18
- className: r(
19
- "!text-sm !font-normal !leading-[19.07px]",
20
- s === "dark" ? "!text-blue-50" : "!text-neutral-700"
21
- ),
22
- children: t
23
- }
24
- ) : null
25
- ] });
26
- };
1
+ import { cva as r } from "class-variance-authority";
2
+ const t = r("bg-primary-50 inline-flex items-center select-none border border-transparent", {
3
+ variants: {
4
+ style: {
5
+ square: "rounded-md",
6
+ rounded: "rounded-full"
7
+ },
8
+ size: {
9
+ xs: [
10
+ "gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-[10px]",
11
+ "[&_svg]:w-[10px] [&_svg]:h-[10px]"
12
+ ],
13
+ sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
14
+ md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
15
+ lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
16
+ },
17
+ pressable: {
18
+ true: "cursor-pointer"
19
+ },
20
+ isFocused: {
21
+ true: "border-primary-500"
22
+ },
23
+ isHovered: {
24
+ true: "border-primary-300"
25
+ },
26
+ isPressed: {
27
+ true: "bg-primary-200"
28
+ },
29
+ isDisabled: {
30
+ true: "bg-neutral-50 text-neutral-600 [&_svg]:text-neutral-600 cursor-not-allowed"
31
+ }
32
+ }
33
+ });
27
34
  export {
28
- d as TooltipSelect
35
+ t as assistChipVariants
29
36
  };