@simpli-route/apollo-ds 0.1.69 → 0.1.70

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 (215) hide show
  1. package/dist/components/SelectInput/ListBox.d.ts +5 -0
  2. package/dist/components/SelectInput/PopoverContent.d.ts +2 -1
  3. package/dist/components/SelectInput/types.d.ts +5 -0
  4. package/dist/index.cjs100.js +1 -1
  5. package/dist/index.cjs101.js +1 -1
  6. package/dist/index.cjs11.js +1 -1
  7. package/dist/index.cjs118.js +1 -1
  8. package/dist/index.cjs123.js +1 -1
  9. package/dist/index.cjs124.js +1 -1
  10. package/dist/index.cjs125.js +1 -1
  11. package/dist/index.cjs126.js +1 -1
  12. package/dist/index.cjs127.js +1 -1
  13. package/dist/index.cjs128.js +1 -1
  14. package/dist/index.cjs129.js +1 -1
  15. package/dist/index.cjs130.js +1 -1
  16. package/dist/index.cjs131.js +1 -1
  17. package/dist/index.cjs132.js +1 -1
  18. package/dist/index.cjs133.js +1 -1
  19. package/dist/index.cjs134.js +1 -1
  20. package/dist/index.cjs136.js +1 -1
  21. package/dist/index.cjs137.js +1 -1
  22. package/dist/index.cjs138.js +1 -1
  23. package/dist/index.cjs139.js +1 -1
  24. package/dist/index.cjs14.js +1 -1
  25. package/dist/index.cjs140.js +1 -1
  26. package/dist/index.cjs141.js +1 -1
  27. package/dist/index.cjs142.js +1 -1
  28. package/dist/index.cjs143.js +1 -1
  29. package/dist/index.cjs144.js +1 -1
  30. package/dist/index.cjs145.js +1 -1
  31. package/dist/index.cjs146.js +1 -1
  32. package/dist/index.cjs147.js +1 -1
  33. package/dist/index.cjs148.js +1 -1
  34. package/dist/index.cjs149.js +1 -1
  35. package/dist/index.cjs150.js +1 -1
  36. package/dist/index.cjs151.js +1 -1
  37. package/dist/index.cjs152.js +1 -1
  38. package/dist/index.cjs153.js +1 -1
  39. package/dist/index.cjs164.js +1 -1
  40. package/dist/index.cjs165.js +1 -1
  41. package/dist/index.cjs166.js +1 -1
  42. package/dist/index.cjs167.js +1 -1
  43. package/dist/index.cjs168.js +1 -1
  44. package/dist/index.cjs169.js +1 -1
  45. package/dist/index.cjs170.js +1 -1
  46. package/dist/index.cjs171.js +1 -1
  47. package/dist/index.cjs172.js +1 -1
  48. package/dist/index.cjs173.js +1 -1
  49. package/dist/index.cjs174.js +1 -1
  50. package/dist/index.cjs175.js +1 -1
  51. package/dist/index.cjs176.js +1 -1
  52. package/dist/index.cjs179.js +1 -1
  53. package/dist/index.cjs18.js +1 -1
  54. package/dist/index.cjs180.js +1 -1
  55. package/dist/index.cjs181.js +1 -1
  56. package/dist/index.cjs182.js +1 -1
  57. package/dist/index.cjs183.js +1 -1
  58. package/dist/index.cjs184.js +1 -1
  59. package/dist/index.cjs185.js +1 -1
  60. package/dist/index.cjs186.js +1 -1
  61. package/dist/index.cjs188.js +1 -1
  62. package/dist/index.cjs189.js +1 -1
  63. package/dist/index.cjs190.js +1 -1
  64. package/dist/index.cjs191.js +1 -0
  65. package/dist/index.cjs24.js +1 -1
  66. package/dist/index.cjs26.js +1 -1
  67. package/dist/index.cjs27.js +1 -1
  68. package/dist/index.cjs29.js +1 -1
  69. package/dist/index.cjs30.js +1 -1
  70. package/dist/index.cjs31.js +1 -1
  71. package/dist/index.cjs35.js +1 -1
  72. package/dist/index.cjs36.js +1 -1
  73. package/dist/index.cjs37.js +1 -1
  74. package/dist/index.cjs43.js +1 -1
  75. package/dist/index.cjs51.js +1 -1
  76. package/dist/index.cjs52.js +1 -1
  77. package/dist/index.cjs53.js +1 -1
  78. package/dist/index.cjs7.js +1 -1
  79. package/dist/index.cjs73.js +1 -1
  80. package/dist/index.cjs77.js +1 -1
  81. package/dist/index.cjs78.js +1 -1
  82. package/dist/index.cjs79.js +1 -1
  83. package/dist/index.cjs8.js +1 -1
  84. package/dist/index.cjs80.js +1 -1
  85. package/dist/index.cjs81.js +1 -1
  86. package/dist/index.cjs82.js +3 -1
  87. package/dist/index.cjs83.js +1 -1
  88. package/dist/index.cjs84.js +1 -1
  89. package/dist/index.cjs85.js +1 -1
  90. package/dist/index.cjs86.js +1 -3
  91. package/dist/index.cjs87.js +1 -1
  92. package/dist/index.cjs88.js +1 -1
  93. package/dist/index.cjs89.js +1 -1
  94. package/dist/index.cjs9.js +1 -1
  95. package/dist/index.cjs90.js +1 -1
  96. package/dist/index.cjs91.js +1 -1
  97. package/dist/index.cjs92.js +1 -1
  98. package/dist/index.cjs93.js +1 -1
  99. package/dist/index.cjs94.js +1 -1
  100. package/dist/index.cjs95.js +1 -1
  101. package/dist/index.cjs96.js +1 -1
  102. package/dist/index.cjs97.js +1 -1
  103. package/dist/index.cjs98.js +1 -1
  104. package/dist/index.es100.js +1 -1
  105. package/dist/index.es101.js +1 -1
  106. package/dist/index.es11.js +1 -1
  107. package/dist/index.es118.js +43 -30
  108. package/dist/index.es123.js +30 -2
  109. package/dist/index.es124.js +4 -2
  110. package/dist/index.es125.js +27 -58
  111. package/dist/index.es126.js +2 -4
  112. package/dist/index.es127.js +10 -28
  113. package/dist/index.es128.js +340 -2
  114. package/dist/index.es129.js +166 -8
  115. package/dist/index.es130.js +56 -339
  116. package/dist/index.es131.js +2 -166
  117. package/dist/index.es132.js +4 -190
  118. package/dist/index.es133.js +178 -39
  119. package/dist/index.es134.js +51 -4
  120. package/dist/index.es136.js +4 -21
  121. package/dist/index.es137.js +21 -4
  122. package/dist/index.es138.js +2 -43
  123. package/dist/index.es139.js +43 -5
  124. package/dist/index.es14.js +1 -1
  125. package/dist/index.es140.js +5 -5
  126. package/dist/index.es141.js +7 -27
  127. package/dist/index.es142.js +22 -187
  128. package/dist/index.es143.js +184 -8
  129. package/dist/index.es144.js +10 -347
  130. package/dist/index.es145.js +347 -18
  131. package/dist/index.es146.js +18 -13
  132. package/dist/index.es147.js +12 -147
  133. package/dist/index.es148.js +147 -10
  134. package/dist/index.es149.js +11 -11
  135. package/dist/index.es150.js +13 -207
  136. package/dist/index.es151.js +199 -56
  137. package/dist/index.es152.js +64 -10
  138. package/dist/index.es153.js +14 -4
  139. package/dist/index.es154.js +2 -2
  140. package/dist/index.es155.js +2 -2
  141. package/dist/index.es156.js +2 -2
  142. package/dist/index.es158.js +2 -2
  143. package/dist/index.es159.js +2 -2
  144. package/dist/index.es160.js +2 -2
  145. package/dist/index.es161.js +2 -2
  146. package/dist/index.es162.js +2 -2
  147. package/dist/index.es163.js +2 -2
  148. package/dist/index.es164.js +2 -2
  149. package/dist/index.es165.js +2 -1063
  150. package/dist/index.es166.js +1064 -76
  151. package/dist/index.es167.js +77 -4
  152. package/dist/index.es168.js +2 -57
  153. package/dist/index.es169.js +59 -20
  154. package/dist/index.es170.js +20 -4
  155. package/dist/index.es171.js +4 -61
  156. package/dist/index.es172.js +61 -4
  157. package/dist/index.es173.js +4 -14
  158. package/dist/index.es174.js +10 -307
  159. package/dist/index.es175.js +304 -19
  160. package/dist/index.es176.js +26 -4
  161. package/dist/index.es179.js +4 -94
  162. package/dist/index.es18.js +1 -1
  163. package/dist/index.es180.js +94 -4
  164. package/dist/index.es181.js +2 -8
  165. package/dist/index.es182.js +10 -28
  166. package/dist/index.es183.js +28 -4
  167. package/dist/index.es184.js +4 -51
  168. package/dist/index.es185.js +47 -15
  169. package/dist/index.es186.js +19 -4
  170. package/dist/index.es187.js +2 -2
  171. package/dist/index.es188.js +4 -753
  172. package/dist/index.es189.js +753 -4
  173. package/dist/index.es190.js +2 -2
  174. package/dist/index.es191.js +4 -0
  175. package/dist/index.es24.js +1 -1
  176. package/dist/index.es26.js +2 -2
  177. package/dist/index.es27.js +2 -2
  178. package/dist/index.es29.js +6 -6
  179. package/dist/index.es30.js +33 -31
  180. package/dist/index.es31.js +2 -2
  181. package/dist/index.es35.js +3 -3
  182. package/dist/index.es36.js +2 -2
  183. package/dist/index.es37.js +3 -3
  184. package/dist/index.es43.js +1 -1
  185. package/dist/index.es51.js +167 -30
  186. package/dist/index.es52.js +20 -148
  187. package/dist/index.es53.js +31 -40
  188. package/dist/index.es7.js +3 -3
  189. package/dist/index.es73.js +40 -163
  190. package/dist/index.es77.js +162 -78
  191. package/dist/index.es78.js +10 -10
  192. package/dist/index.es79.js +12 -10
  193. package/dist/index.es8.js +1 -1
  194. package/dist/index.es80.js +10 -12
  195. package/dist/index.es81.js +13 -10
  196. package/dist/index.es82.js +154 -9
  197. package/dist/index.es83.js +12 -45
  198. package/dist/index.es84.js +7 -40
  199. package/dist/index.es85.js +41 -12
  200. package/dist/index.es86.js +20 -155
  201. package/dist/index.es87.js +78 -12
  202. package/dist/index.es88.js +7 -7
  203. package/dist/index.es89.js +15 -39
  204. package/dist/index.es9.js +1 -1
  205. package/dist/index.es90.js +149 -20
  206. package/dist/index.es91.js +100 -77
  207. package/dist/index.es92.js +12 -100
  208. package/dist/index.es93.js +19 -13
  209. package/dist/index.es94.js +20 -19
  210. package/dist/index.es95.js +10 -20
  211. package/dist/index.es96.js +10 -7
  212. package/dist/index.es97.js +44 -17
  213. package/dist/index.es98.js +31 -140
  214. package/dist/stories/SelectInput.stories.d.ts +1 -0
  215. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ var o = { exports: {} };
2
+ export {
3
+ o as __module
4
+ };
@@ -2,7 +2,7 @@ import { j as e } from "./index.es47.js";
2
2
  import { forwardRef as x } from "react";
3
3
  import { cn as y } from "./index.es48.js";
4
4
  import { Loader as f } from "./index.es23.js";
5
- import { Overlay as u } from "./index.es78.js";
5
+ import { Overlay as u } from "./index.es80.js";
6
6
  const v = (s, a) => {
7
7
  const {
8
8
  className: l,
@@ -3,8 +3,8 @@ import { NumberField as w, Group as B, Input as E } from "react-aria-components"
3
3
  import { cn as t } from "./index.es48.js";
4
4
  import "./index.es15.js";
5
5
  import { Label as G } from "./index.es16.js";
6
- import { CaptionNumberField as S } from "./index.es79.js";
7
- import { StepperButton as V } from "./index.es80.js";
6
+ import { CaptionNumberField as S } from "./index.es78.js";
7
+ import { StepperButton as V } from "./index.es79.js";
8
8
  import { inputNumberVariant as _ } from "./index.es62.js";
9
9
  const K = ({
10
10
  size: o = "sm",
@@ -5,10 +5,10 @@ import "react";
5
5
  import { cn as s } from "./index.es48.js";
6
6
  import "./index.es5.js";
7
7
  import "./index.es50.js";
8
+ import "./index.es51.js";
8
9
  import "./index.es52.js";
9
- import "./index.es53.js";
10
10
  import "react-aria";
11
- import "./index.es51.js";
11
+ import "./index.es53.js";
12
12
  import "@react-stately/color";
13
13
  import "./index.es54.js";
14
14
  import "./index.es55.js";
@@ -2,15 +2,15 @@ import { j as s } from "./index.es47.js";
2
2
  import { useMemo as S } from "react";
3
3
  import { ComboBox as M, Input as P } from "react-aria-components";
4
4
  import { cn as R } from "./index.es48.js";
5
- import { useDebouncedValue as V } from "./index.es85.js";
5
+ import { useDebouncedValue as V } from "./index.es81.js";
6
6
  import "./index.es15.js";
7
7
  import { Label as v } from "./index.es16.js";
8
8
  import { inputVariants as y } from "./index.es65.js";
9
- import { MultiSearchField as N } from "./index.es86.js";
10
- import { SearchFieldIconContainer as B } from "./index.es87.js";
11
- import { SearchFieldMessages as D } from "./index.es88.js";
12
- import { SearchFieldPopover as H } from "./index.es89.js";
13
- import { getSearchFieldDefaultProps as z, getHighlightedParts as E } from "./index.es90.js";
9
+ import { MultiSearchField as N } from "./index.es82.js";
10
+ import { SearchFieldIconContainer as B } from "./index.es83.js";
11
+ import { SearchFieldMessages as D } from "./index.es84.js";
12
+ import { SearchFieldPopover as H } from "./index.es85.js";
13
+ import { getSearchFieldDefaultProps as z, getHighlightedParts as E } from "./index.es86.js";
14
14
  const Y = (t) => {
15
15
  const {
16
16
  label: a,
@@ -1,16 +1,16 @@
1
1
  import { j as s } from "./index.es47.js";
2
- import { forwardRef as k, useState as h } from "react";
3
- import { useFilter as w, Select as G, Popover as H } from "react-aria-components";
2
+ import { forwardRef as w, useState as h } from "react";
3
+ import { useFilter as G, Select as H, Popover as J } from "react-aria-components";
4
4
  import { cn as c } from "./index.es48.js";
5
5
  import "./index.es15.js";
6
- import { Label as J } from "./index.es16.js";
7
- import { PopoverContent as K } from "./index.es77.js";
8
- import { SelectContent as Q } from "./index.es91.js";
9
- import { selectInputPopoverVariants as U } from "./index.es54.js";
10
- const W = (S, b) => {
6
+ import { Label as K } from "./index.es16.js";
7
+ import { PopoverContent as Q } from "./index.es73.js";
8
+ import { SelectContent as U } from "./index.es87.js";
9
+ import { selectInputPopoverVariants as W } from "./index.es54.js";
10
+ const X = (S, v) => {
11
11
  const {
12
12
  label: p,
13
- items: v,
13
+ items: b,
14
14
  selectionMode: l = "single",
15
15
  value: m,
16
16
  defaultValue: f,
@@ -22,75 +22,77 @@ const W = (S, b) => {
22
22
  classNameLabel: u,
23
23
  classNameButton: I,
24
24
  classNamePopover: P,
25
- tooltipText: O,
26
- tooltipSupportText: y,
27
- tooltipProps: A,
25
+ tooltipText: L,
26
+ tooltipSupportText: O,
27
+ tooltipProps: y,
28
28
  onChange: o,
29
- maxLengthTextOption: L = 18,
29
+ maxLengthTextOption: A = 18,
30
30
  placeholderSearch: V = "Search",
31
31
  enableSearch: F = !1,
32
32
  classNameSearchField: R,
33
33
  classNameSearchFieldInput: T,
34
+ virtualizedList: z = !1,
34
35
  ...D
35
- } = S, { contains: q } = w({ sensitivity: "base" }), [d, n] = h(!1), [z, x] = h(() => f !== void 0 ? f : l === "multiple" ? [] : null), i = m !== void 0, a = i ? m : z, B = (t) => {
36
+ } = S, { contains: q } = G({ sensitivity: "base" }), [d, n] = h(!1), [B, x] = h(() => f !== void 0 ? f : l === "multiple" ? [] : null), i = m !== void 0, a = i ? m : B, E = (t) => {
36
37
  if (l === "multiple" && a && Array.isArray(a)) {
37
- const e = a.filter((_) => _ !== t);
38
+ const e = a.filter((k) => k !== t);
38
39
  i || x(e), o && o(e);
39
40
  }
40
- }, E = (t) => {
41
+ }, M = (t) => {
41
42
  let e;
42
43
  l === "multiple" ? e = t instanceof Set ? Array.from(t) : t : (e = t, n(!1)), i || x(e), o && o(e);
43
- }, M = {
44
+ }, _ = {
44
45
  className: c("flex w-full flex-col gap-1", j),
45
46
  selectionMode: l,
46
47
  isDisabled: r,
47
48
  value: a,
48
- onChange: E,
49
+ onChange: M,
49
50
  ...D
50
51
  };
51
- return /* @__PURE__ */ s.jsxs(G, { ...M, children: [
52
+ return /* @__PURE__ */ s.jsxs(H, { ..._, children: [
52
53
  p ? /* @__PURE__ */ s.jsx(
53
- J,
54
+ K,
54
55
  {
55
56
  labelClassName: c("mb-[1px] text-left leading-[19.07px]", {
56
57
  "text-neutral-700": r,
57
58
  [u || ""]: !!u
58
59
  }),
59
60
  isRequired: g,
60
- tooltipText: O,
61
- tooltipSupportText: y,
62
- tooltipProps: A,
61
+ tooltipText: L,
62
+ tooltipSupportText: O,
63
+ tooltipProps: y,
63
64
  children: p
64
65
  }
65
66
  ) : null,
66
67
  /* @__PURE__ */ s.jsx(
67
- Q,
68
+ U,
68
69
  {
69
- ref: b,
70
+ ref: v,
70
71
  isOpen: d,
71
72
  setIsOpen: n,
72
73
  size: C,
73
74
  isDisabled: r,
74
75
  classNameButton: I,
75
76
  selectionMode: l,
76
- maxLengthTextOption: L,
77
- handleDeleteOptionSelected: B,
77
+ maxLengthTextOption: A,
78
+ handleDeleteOptionSelected: E,
78
79
  placeholder: N
79
80
  }
80
81
  ),
81
- /* @__PURE__ */ s.jsx(H, { className: c(U(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ s.jsx(
82
- K,
82
+ /* @__PURE__ */ s.jsx(J, { className: c(W(), P), isOpen: d, onOpenChange: n, children: /* @__PURE__ */ s.jsx(
83
+ Q,
83
84
  {
84
85
  enableSearch: F,
85
86
  contains: q,
86
87
  classNameSearchField: R,
87
88
  classNameSearchFieldInput: T,
88
89
  placeholderSearch: V,
89
- items: v
90
+ items: b,
91
+ virtualizedList: z
90
92
  }
91
93
  ) })
92
94
  ] });
93
- }, ae = k(W);
95
+ }, re = w(X);
94
96
  export {
95
- ae as SelectInput
97
+ re as SelectInput
96
98
  };
@@ -2,8 +2,8 @@ import { j as m } from "./index.es47.js";
2
2
  import { useState as q, useEffect as x } from "react";
3
3
  import { Slider as z, SliderTrack as B } from "react-aria-components";
4
4
  import { cn as F } from "./index.es48.js";
5
- import { SliderContainerTrack as G } from "./index.es92.js";
6
- import { validateMinDistance as H } from "./index.es93.js";
5
+ import { SliderContainerTrack as G } from "./index.es91.js";
6
+ import { validateMinDistance as H } from "./index.es92.js";
7
7
  const U = ({
8
8
  type: r = "single",
9
9
  showTypeValue: A = "default",
@@ -3,10 +3,10 @@ import { CheckIcon as I } from "./index.es49.js";
3
3
  import { motion as f } from "framer-motion";
4
4
  import { useRef as k } from "react";
5
5
  import { useButton as D, useHover as V } from "react-aria";
6
- import z from "./index.es96.js";
7
- import B from "./index.es97.js";
6
+ import z from "./index.es88.js";
7
+ import B from "./index.es89.js";
8
8
  import { cn as H } from "./index.es48.js";
9
- import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es98.js";
9
+ import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es90.js";
10
10
  const c = z(B), x = (s, e) => typeof s == "function" ? /* @__PURE__ */ n.jsx(s, { step: e || 0 }) : s, C = (s) => {
11
11
  var t, r, o, a, i;
12
12
  const e = (t = c == null ? void 0 : c.theme) == null ? void 0 : t.colors;
@@ -1,8 +1,8 @@
1
1
  import { j as o } from "./index.es47.js";
2
2
  import { Switch as u } from "react-aria-components";
3
3
  import { cn as c } from "./index.es48.js";
4
- import { ContentSwitch as L } from "./index.es94.js";
5
- import { SwitchIndicator as v } from "./index.es95.js";
4
+ import { ContentSwitch as L } from "./index.es93.js";
5
+ import { SwitchIndicator as v } from "./index.es94.js";
6
6
  import { switchVariants as b } from "./index.es68.js";
7
7
  const E = ({
8
8
  children: f,
@@ -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.es48.js";
6
- import { Tab as j } from "./index.es81.js";
7
- import { TabPanel as h } from "./index.es82.js";
8
- import { tabsVariants as T } from "./index.es83.js";
6
+ import { Tab as j } from "./index.es95.js";
7
+ import { TabPanel as h } from "./index.es96.js";
8
+ import { tabsVariants as T } from "./index.es97.js";
9
9
  const v = (a) => {
10
10
  var l;
11
11
  const {
@@ -3,7 +3,7 @@ import { forwardRef as f, useContext as u } from "react";
3
3
  import { useTooltip as T, mergeProps as h } from "react-aria";
4
4
  import { cn as e } from "./index.es48.js";
5
5
  import { TooltipContext as j } from "./index.es57.js";
6
- import { tooltipVariants as N } from "./index.es84.js";
6
+ import { tooltipVariants as N } from "./index.es98.js";
7
7
  const P = f((p, i) => {
8
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
9
  return /* @__PURE__ */ s.jsxs("span", { className: d, ...h(r, x, c), ref: i, children: [
@@ -1,36 +1,173 @@
1
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"
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
+ {
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
+ },
26
+ isHovered: {
27
+ true: ""
28
+ },
29
+ isActive: {
30
+ true: ""
31
+ },
32
+ fullWidth: {
33
+ true: "w-full",
34
+ false: "w-fit"
35
+ },
36
+ isLoading: {
37
+ true: "pointer-events-none cursor-not-allowed opacity-70"
38
+ },
39
+ isFocused: {
40
+ true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
41
+ false: ""
42
+ }
7
43
  },
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"]
44
+ defaultVariants: {
45
+ intent: "primary",
46
+ size: "md"
16
47
  },
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
- }
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
+ },
85
+ {
86
+ intent: "yellowWarning",
87
+ isHovered: !0,
88
+ class: "bg-yellow-warning-700 text-neutral-50"
89
+ },
90
+ {
91
+ intent: "info",
92
+ isHovered: !0,
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"
161
+ },
162
+ {
163
+ intent: "info",
164
+ isActive: !0,
165
+ class: "border border-transparent bg-blue-200 text-blue-900"
166
+ }
167
+ /* /Active State */
168
+ ]
32
169
  }
33
- });
170
+ );
34
171
  export {
35
- t as assistChipVariants
172
+ t as buttonVariants
36
173
  };
@@ -1,173 +1,45 @@
1
1
  import { cva as r } from "class-variance-authority";
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",
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",
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
- },
26
6
  isHovered: {
27
7
  true: ""
28
8
  },
29
- isActive: {
30
- true: ""
9
+ isSelected: {
10
+ true: "border-primary-500 bg-primary-500",
11
+ false: "bg-white"
31
12
  },
32
- fullWidth: {
33
- true: "w-full",
34
- false: "w-fit"
13
+ isFocusVisible: {
14
+ true: "border-primary-500 group-active:border-primary-500"
35
15
  },
36
- isLoading: {
37
- true: "pointer-events-none cursor-not-allowed opacity-70"
16
+ isDisabled: {
17
+ true: "border-neutral-500 cursor-not-allowed"
38
18
  },
39
- isFocused: {
40
- true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
41
- false: ""
19
+ label: {
20
+ true: "mr-2"
42
21
  }
43
22
  },
44
- defaultVariants: {
45
- intent: "primary",
46
- size: "md"
47
- },
48
23
  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
- },
85
24
  {
86
- intent: "yellowWarning",
87
25
  isHovered: !0,
88
- class: "bg-yellow-warning-700 text-neutral-50"
26
+ isSelected: !0,
27
+ class: "border-none bg-primary-600 group-active:bg-primary-600"
89
28
  },
90
29
  {
91
- intent: "info",
92
30
  isHovered: !0,
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"
31
+ isSelected: !1,
32
+ isDisabled: !1,
33
+ class: "border-primary-700 group-active:bg-primary-600"
161
34
  },
162
35
  {
163
- intent: "info",
164
- isActive: !0,
165
- class: "border border-transparent bg-blue-200 text-blue-900"
36
+ isDisabled: !0,
37
+ isSelected: !0,
38
+ class: "bg-neutral-500"
166
39
  }
167
- /* /Active State */
168
40
  ]
169
41
  }
170
42
  );
171
43
  export {
172
- t as buttonVariants
44
+ i as checkboxVariants
173
45
  };