@simpli-route/apollo-ds 0.1.72 → 0.1.73

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 (174) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs100.js +1 -1
  3. package/dist/index.cjs101.js +1 -1
  4. package/dist/index.cjs102.js +1 -1
  5. package/dist/index.cjs103.js +1 -1
  6. package/dist/index.cjs105.js +1 -1
  7. package/dist/index.cjs106.js +1 -1
  8. package/dist/index.cjs11.js +1 -1
  9. package/dist/index.cjs12.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.cjs13.js +1 -1
  16. package/dist/index.cjs130.js +1 -1
  17. package/dist/index.cjs131.js +1 -1
  18. package/dist/index.cjs132.js +1 -1
  19. package/dist/index.cjs133.js +1 -1
  20. package/dist/index.cjs134.js +1 -1
  21. package/dist/index.cjs135.js +1 -1
  22. package/dist/index.cjs136.js +1 -1
  23. package/dist/index.cjs137.js +1 -1
  24. package/dist/index.cjs144.js +1 -1
  25. package/dist/index.cjs145.js +1 -1
  26. package/dist/index.cjs150.js +1 -1
  27. package/dist/index.cjs153.js +1 -1
  28. package/dist/index.cjs156.js +1 -1
  29. package/dist/index.cjs157.js +1 -1
  30. package/dist/index.cjs172.js +1 -1
  31. package/dist/index.cjs174.js +1 -1
  32. package/dist/index.cjs175.js +1 -1
  33. package/dist/index.cjs176.js +1 -1
  34. package/dist/index.cjs177.js +1 -1
  35. package/dist/index.cjs178.js +1 -1
  36. package/dist/index.cjs179.js +1 -1
  37. package/dist/index.cjs180.js +1 -1
  38. package/dist/index.cjs181.js +1 -1
  39. package/dist/index.cjs182.js +1 -1
  40. package/dist/index.cjs185.js +1 -1
  41. package/dist/index.cjs186.js +1 -1
  42. package/dist/index.cjs187.js +1 -1
  43. package/dist/index.cjs190.js +1 -1
  44. package/dist/index.cjs191.js +1 -1
  45. package/dist/index.cjs192.js +1 -1
  46. package/dist/index.cjs194.js +1 -1
  47. package/dist/index.cjs195.js +1 -1
  48. package/dist/index.cjs196.js +1 -1
  49. package/dist/index.cjs20.js +1 -1
  50. package/dist/index.cjs26.js +1 -1
  51. package/dist/index.cjs28.js +1 -1
  52. package/dist/index.cjs29.js +1 -1
  53. package/dist/index.cjs31.js +1 -1
  54. package/dist/index.cjs32.js +1 -1
  55. package/dist/index.cjs33.js +1 -1
  56. package/dist/index.cjs37.js +1 -1
  57. package/dist/index.cjs38.js +1 -1
  58. package/dist/index.cjs39.js +1 -1
  59. package/dist/index.cjs45.js +1 -1
  60. package/dist/index.cjs55.js +1 -1
  61. package/dist/index.cjs56.js +1 -1
  62. package/dist/index.cjs57.js +1 -1
  63. package/dist/index.cjs58.js +1 -1
  64. package/dist/index.cjs78.js +1 -1
  65. package/dist/index.cjs79.js +1 -1
  66. package/dist/index.cjs8.js +1 -1
  67. package/dist/index.cjs80.js +1 -1
  68. package/dist/index.cjs81.js +1 -1
  69. package/dist/index.cjs83.js +1 -1
  70. package/dist/index.cjs84.js +1 -1
  71. package/dist/index.cjs85.js +1 -1
  72. package/dist/index.cjs86.js +1 -1
  73. package/dist/index.cjs87.js +1 -3
  74. package/dist/index.cjs88.js +1 -1
  75. package/dist/index.cjs89.js +1 -1
  76. package/dist/index.cjs9.js +1 -1
  77. package/dist/index.cjs90.js +1 -1
  78. package/dist/index.cjs91.js +1 -1
  79. package/dist/index.cjs92.js +1 -1
  80. package/dist/index.cjs93.js +1 -1
  81. package/dist/index.cjs94.js +1 -1
  82. package/dist/index.cjs95.js +1 -1
  83. package/dist/index.cjs96.js +3 -1
  84. package/dist/index.cjs97.js +1 -1
  85. package/dist/index.cjs98.js +1 -1
  86. package/dist/index.cjs99.js +1 -1
  87. package/dist/index.es10.js +1 -1
  88. package/dist/index.es100.js +20 -10
  89. package/dist/index.es101.js +7 -10
  90. package/dist/index.es102.js +17 -44
  91. package/dist/index.es103.js +140 -31
  92. package/dist/index.es105.js +1 -1
  93. package/dist/index.es106.js +1 -1
  94. package/dist/index.es11.js +1 -1
  95. package/dist/index.es12.js +3 -3
  96. package/dist/index.es125.js +57 -5
  97. package/dist/index.es126.js +2 -4
  98. package/dist/index.es127.js +2 -3
  99. package/dist/index.es128.js +4 -18
  100. package/dist/index.es129.js +4 -57
  101. package/dist/index.es13.js +1 -1
  102. package/dist/index.es130.js +3 -4
  103. package/dist/index.es131.js +20 -27
  104. package/dist/index.es132.js +4 -2
  105. package/dist/index.es133.js +28 -10
  106. package/dist/index.es134.js +2 -340
  107. package/dist/index.es135.js +8 -166
  108. package/dist/index.es136.js +340 -2
  109. package/dist/index.es137.js +166 -2
  110. package/dist/index.es144.js +1 -1
  111. package/dist/index.es145.js +2 -2
  112. package/dist/index.es150.js +2 -2
  113. package/dist/index.es153.js +2 -2
  114. package/dist/index.es156.js +6 -6
  115. package/dist/index.es157.js +2 -2
  116. package/dist/index.es172.js +3 -3
  117. package/dist/index.es174.js +20 -59
  118. package/dist/index.es175.js +4 -20
  119. package/dist/index.es176.js +57 -2
  120. package/dist/index.es177.js +61 -10
  121. package/dist/index.es178.js +4 -61
  122. package/dist/index.es179.js +14 -4
  123. package/dist/index.es180.js +307 -10
  124. package/dist/index.es181.js +19 -304
  125. package/dist/index.es182.js +4 -26
  126. package/dist/index.es185.js +94 -4
  127. package/dist/index.es186.js +4 -94
  128. package/dist/index.es187.js +8 -2
  129. package/dist/index.es190.js +51 -4
  130. package/dist/index.es191.js +15 -47
  131. package/dist/index.es192.js +4 -19
  132. package/dist/index.es193.js +2 -2
  133. package/dist/index.es194.js +753 -4
  134. package/dist/index.es195.js +4 -753
  135. package/dist/index.es196.js +2 -2
  136. package/dist/index.es20.js +1 -1
  137. package/dist/index.es26.js +1 -1
  138. package/dist/index.es28.js +2 -2
  139. package/dist/index.es29.js +1 -1
  140. package/dist/index.es31.js +6 -6
  141. package/dist/index.es32.js +2 -2
  142. package/dist/index.es33.js +2 -2
  143. package/dist/index.es37.js +3 -3
  144. package/dist/index.es38.js +2 -2
  145. package/dist/index.es39.js +3 -3
  146. package/dist/index.es45.js +1 -1
  147. package/dist/index.es55.js +30 -41
  148. package/dist/index.es56.js +31 -157
  149. package/dist/index.es57.js +148 -20
  150. package/dist/index.es58.js +40 -31
  151. package/dist/index.es78.js +38 -16
  152. package/dist/index.es79.js +15 -14
  153. package/dist/index.es8.js +1 -1
  154. package/dist/index.es80.js +14 -13
  155. package/dist/index.es81.js +14 -38
  156. package/dist/index.es83.js +10 -10
  157. package/dist/index.es84.js +10 -12
  158. package/dist/index.es85.js +12 -10
  159. package/dist/index.es86.js +78 -13
  160. package/dist/index.es87.js +97 -151
  161. package/dist/index.es88.js +13 -12
  162. package/dist/index.es89.js +10 -7
  163. package/dist/index.es9.js +4 -4
  164. package/dist/index.es90.js +9 -41
  165. package/dist/index.es91.js +45 -20
  166. package/dist/index.es92.js +36 -74
  167. package/dist/index.es93.js +18 -100
  168. package/dist/index.es94.js +18 -11
  169. package/dist/index.es95.js +13 -7
  170. package/dist/index.es96.js +153 -16
  171. package/dist/index.es97.js +12 -149
  172. package/dist/index.es98.js +6 -18
  173. package/dist/index.es99.js +41 -19
  174. package/package.json +1 -1
@@ -1,36 +1,45 @@
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 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
+ {
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
+ }
7
22
  },
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
- }
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
+ }
40
+ ]
32
41
  }
33
- });
42
+ );
34
43
  export {
35
- t as assistChipVariants
44
+ i as checkboxVariants
36
45
  };
@@ -1,20 +1,42 @@
1
- import { j as r } from "./index.es49.js";
2
- import { ColorArea as s, ColorThumb as l } from "react-aria-components";
3
- function t({ color: o, onChange: e, ...a }) {
4
- return /* @__PURE__ */ r.jsx(
5
- s,
1
+ import { j as e } from "./index.es49.js";
2
+ import { CrossCircleIcon as c } from "./index.es51.js";
3
+ import { Autocomplete as d, SearchField as m, Input as x, Button as p, Virtualizer as b, ListLayout as f } from "react-aria-components";
4
+ import { cn as t } from "./index.es50.js";
5
+ import { SelectListBox as o } from "./index.es123.js";
6
+ const N = ({
7
+ enableSearch: n,
8
+ contains: l,
9
+ classNameSearchField: s,
10
+ classNameSearchFieldInput: a,
11
+ placeholderSearch: i,
12
+ items: r,
13
+ virtualizedList: u = !1
14
+ }) => /* @__PURE__ */ e.jsxs(d, { filter: l, disableAutoFocusFirst: !0, disableVirtualFocus: !0, children: [
15
+ n ? /* @__PURE__ */ e.jsxs(
16
+ m,
6
17
  {
7
- colorSpace: "hsb",
8
- xChannel: "saturation",
9
- yChannel: "brightness",
10
- value: o,
11
- className: "mb-2 h-32 w-48 rounded border",
12
- onChange: e,
13
- ...a,
14
- children: /* @__PURE__ */ r.jsx(l, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" })
18
+ "aria-label": "Search",
19
+ className: t(
20
+ "group m-1 flex items-center rounded border border-neutral-500 bg-neutral-50",
21
+ s
22
+ ),
23
+ children: [
24
+ /* @__PURE__ */ e.jsx(
25
+ x,
26
+ {
27
+ placeholder: i,
28
+ className: t(
29
+ "h-8 min-w-0 flex-1 rounded border-none p-1 text-sm font-normal text-neutral-800 outline-none outline-0 placeholder:text-neutral-700 focus:outline-none focus:ring-0 [&::-webkit-search-cancel-button]:hidden",
30
+ a
31
+ )
32
+ }
33
+ ),
34
+ /* @__PURE__ */ e.jsx(p, { className: "pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible", children: /* @__PURE__ */ e.jsx(c, { "aria-hidden": !0, className: "size-4" }) })
35
+ ]
15
36
  }
16
- );
17
- }
37
+ ) : null,
38
+ u ? /* @__PURE__ */ e.jsx(b, { layout: f, children: /* @__PURE__ */ e.jsx(o, { items: r }) }) : /* @__PURE__ */ e.jsx(o, { items: r })
39
+ ] });
18
40
  export {
19
- t as ColorArea
41
+ N as PopoverContent
20
42
  };
@@ -1,19 +1,20 @@
1
- import { j as e } from "./index.es49.js";
2
- import { ColorField as n, Input as t } from "react-aria-components";
3
- function p(o) {
4
- const { isDisabled: l, inputProps: r = {}, ...s } = o;
5
- return /* @__PURE__ */ e.jsx(n, { className: "relative flex h-8 w-32 items-center", isDisabled: l, ...s, children: /* @__PURE__ */ e.jsx(
6
- t,
1
+ import { j as r } from "./index.es49.js";
2
+ import { ColorArea as s, ColorThumb as l } from "react-aria-components";
3
+ function t({ color: o, onChange: e, ...a }) {
4
+ return /* @__PURE__ */ r.jsx(
5
+ s,
7
6
  {
8
- className: "size-full border-none bg-transparent p-0 outline-none focus:outline-none focus:ring-0",
9
- maxLength: 7,
10
- "aria-label": "Color hex",
11
- spellCheck: !1,
12
- autoComplete: "off",
13
- ...r
7
+ colorSpace: "hsb",
8
+ xChannel: "saturation",
9
+ yChannel: "brightness",
10
+ value: o,
11
+ className: "mb-2 h-32 w-48 rounded border",
12
+ onChange: e,
13
+ ...a,
14
+ children: /* @__PURE__ */ r.jsx(l, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" })
14
15
  }
15
- ) });
16
+ );
16
17
  }
17
18
  export {
18
- p as ColorField
19
+ t as ColorArea
19
20
  };
package/dist/index.es8.js CHANGED
@@ -2,7 +2,7 @@ import { j as r } from "./index.es49.js";
2
2
  import { LeftArrowIcon as m } from "./index.es51.js";
3
3
  import { Breadcrumbs as C, Breadcrumb as F, Link as f } from "react-aria-components";
4
4
  import { cn as s } from "./index.es50.js";
5
- import { breadcrumbsContainerVariants as V, breadcrumbItemVariants as o, breadcrumbSeparatorVariants as y } from "./index.es55.js";
5
+ import { breadcrumbsContainerVariants as V, breadcrumbItemVariants as o, breadcrumbSeparatorVariants as y } from "./index.es56.js";
6
6
  const S = ({
7
7
  items: a = [],
8
8
  className: h,
@@ -1,18 +1,19 @@
1
- import { j as r } from "./index.es49.js";
2
- import { ColorSlider as f, SliderTrack as l, ColorThumb as i } from "react-aria-components";
3
- function d(e) {
4
- const { color: o } = e;
5
- return /* @__PURE__ */ r.jsx(
6
- f,
1
+ import { j as e } from "./index.es49.js";
2
+ import { ColorField as n, Input as t } from "react-aria-components";
3
+ function p(o) {
4
+ const { isDisabled: l, inputProps: r = {}, ...s } = o;
5
+ return /* @__PURE__ */ e.jsx(n, { className: "relative flex h-8 w-32 items-center", isDisabled: l, ...s, children: /* @__PURE__ */ e.jsx(
6
+ t,
7
7
  {
8
- channel: "hue",
9
- value: o,
10
- className: "mb-2 h-4 w-48 rounded border bg-[linear-gradient(to_right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000)]",
11
- ...e,
12
- children: /* @__PURE__ */ r.jsx(l, { className: "size-full", children: /* @__PURE__ */ r.jsx(i, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" }) })
8
+ className: "size-full border-none bg-transparent p-0 outline-none focus:outline-none focus:ring-0",
9
+ maxLength: 7,
10
+ "aria-label": "Color hex",
11
+ spellCheck: !1,
12
+ autoComplete: "off",
13
+ ...r
13
14
  }
14
- );
15
+ ) });
15
16
  }
16
17
  export {
17
- d as ColorSlider
18
+ p as ColorField
18
19
  };
@@ -1,42 +1,18 @@
1
- import { j as e } from "./index.es49.js";
2
- import { CrossCircleIcon as c } from "./index.es51.js";
3
- import { Autocomplete as d, SearchField as m, Input as x, Button as p, Virtualizer as b, ListLayout as f } from "react-aria-components";
4
- import { cn as t } from "./index.es50.js";
5
- import { SelectListBox as o } from "./index.es123.js";
6
- const N = ({
7
- enableSearch: n,
8
- contains: l,
9
- classNameSearchField: s,
10
- classNameSearchFieldInput: a,
11
- placeholderSearch: i,
12
- items: r,
13
- virtualizedList: u = !1
14
- }) => /* @__PURE__ */ e.jsxs(d, { filter: l, disableAutoFocusFirst: !0, disableVirtualFocus: !0, children: [
15
- n ? /* @__PURE__ */ e.jsxs(
16
- m,
1
+ import { j as r } from "./index.es49.js";
2
+ import { ColorSlider as f, SliderTrack as l, ColorThumb as i } from "react-aria-components";
3
+ function d(e) {
4
+ const { color: o } = e;
5
+ return /* @__PURE__ */ r.jsx(
6
+ f,
17
7
  {
18
- "aria-label": "Search",
19
- className: t(
20
- "group m-1 flex items-center rounded border border-neutral-500 bg-neutral-50",
21
- s
22
- ),
23
- children: [
24
- /* @__PURE__ */ e.jsx(
25
- x,
26
- {
27
- placeholder: i,
28
- className: t(
29
- "h-8 min-w-0 flex-1 rounded border-none p-1 text-sm font-normal text-neutral-800 outline-none outline-0 placeholder:text-neutral-700 focus:outline-none focus:ring-0 [&::-webkit-search-cancel-button]:hidden",
30
- a
31
- )
32
- }
33
- ),
34
- /* @__PURE__ */ e.jsx(p, { className: "pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible", children: /* @__PURE__ */ e.jsx(c, { "aria-hidden": !0, className: "size-4" }) })
35
- ]
8
+ channel: "hue",
9
+ value: o,
10
+ className: "mb-2 h-4 w-48 rounded border bg-[linear-gradient(to_right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000)]",
11
+ ...e,
12
+ children: /* @__PURE__ */ r.jsx(l, { className: "size-full", children: /* @__PURE__ */ r.jsx(i, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" }) })
36
13
  }
37
- ) : null,
38
- u ? /* @__PURE__ */ e.jsx(b, { layout: f, children: /* @__PURE__ */ e.jsx(o, { items: r }) }) : /* @__PURE__ */ e.jsx(o, { items: r })
39
- ] });
14
+ );
15
+ }
40
16
  export {
41
- N as PopoverContent
17
+ d as ColorSlider
42
18
  };
@@ -1,12 +1,12 @@
1
- import { j as n } from "./index.es49.js";
2
- import { cn as x } from "./index.es50.js";
3
- const m = ({
4
- description: t,
5
- descriptionClasses: i,
6
- errorMessage: r,
7
- errorClasses: s,
8
- isInvalidField: e
9
- }) => t && !e ? /* @__PURE__ */ n.jsx("div", { slot: "description", className: x("text-xs leading-3 text-neutral-700", i), children: t }) : r && e ? /* @__PURE__ */ n.jsx("div", { className: x("text-xs leading-3 text-error-500", s), children: r }) : null;
1
+ import { j as d } from "./index.es49.js";
2
+ import { forwardRef as p } from "react";
3
+ import { cn as f } from "./index.es50.js";
4
+ import { overlayVariants as v } from "./index.es124.js";
5
+ const y = (e, a) => {
6
+ const { zIndex: s = 200, opacity: t = "md", blur: o = "sm", children: m, className: c, center: r = !0, fixed: i, ...n } = e, l = f(v({ opacity: t, fixed: i, center: r, blur: o }), `z-[${s}]`, c);
7
+ return /* @__PURE__ */ d.jsx("div", { ref: a, className: l, "data-center": r || void 0, ...n, children: m });
8
+ }, x = p(y);
9
+ x.displayName = "Overlay";
10
10
  export {
11
- m as CaptionNumberField
11
+ x as Overlay
12
12
  };
@@ -1,14 +1,12 @@
1
- import { j as e } from "./index.es49.js";
2
- import { UpChevronIcon as n, DownChevronIcon as o } from "./index.es51.js";
3
- import { Button as s } from "react-aria-components";
4
- import { cn as c } from "./index.es50.js";
5
- const x = ({ isDisabled: r }) => {
6
- const t = c("flex items-center justify-center", r ? "text-neutral-600" : "text-primary-500");
7
- return /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2", children: [
8
- /* @__PURE__ */ e.jsx(s, { slot: "increment", className: t, children: /* @__PURE__ */ e.jsx(n, { className: "size-3.5" }) }),
9
- /* @__PURE__ */ e.jsx(s, { slot: "decrement", className: t, children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" }) })
10
- ] });
11
- };
1
+ import { j as n } from "./index.es49.js";
2
+ import { cn as x } from "./index.es50.js";
3
+ const m = ({
4
+ description: t,
5
+ descriptionClasses: i,
6
+ errorMessage: r,
7
+ errorClasses: s,
8
+ isInvalidField: e
9
+ }) => t && !e ? /* @__PURE__ */ n.jsx("div", { slot: "description", className: x("text-xs leading-3 text-neutral-700", i), children: t }) : r && e ? /* @__PURE__ */ n.jsx("div", { className: x("text-xs leading-3 text-error-500", s), children: r }) : null;
12
10
  export {
13
- x as StepperButton
11
+ m as CaptionNumberField
14
12
  };
@@ -1,12 +1,14 @@
1
- import { j as d } from "./index.es49.js";
2
- import { forwardRef as p } from "react";
3
- import { cn as f } from "./index.es50.js";
4
- import { overlayVariants as v } from "./index.es124.js";
5
- const y = (e, a) => {
6
- const { zIndex: s = 200, opacity: t = "md", blur: o = "sm", children: m, className: c, center: r = !0, fixed: i, ...n } = e, l = f(v({ opacity: t, fixed: i, center: r, blur: o }), `z-[${s}]`, c);
7
- return /* @__PURE__ */ d.jsx("div", { ref: a, className: l, "data-center": r || void 0, ...n, children: m });
8
- }, x = p(y);
9
- x.displayName = "Overlay";
1
+ import { j as e } from "./index.es49.js";
2
+ import { UpChevronIcon as n, DownChevronIcon as o } from "./index.es51.js";
3
+ import { Button as s } from "react-aria-components";
4
+ import { cn as c } from "./index.es50.js";
5
+ const x = ({ isDisabled: r }) => {
6
+ const t = c("flex items-center justify-center", r ? "text-neutral-600" : "text-primary-500");
7
+ return /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2", children: [
8
+ /* @__PURE__ */ e.jsx(s, { slot: "increment", className: t, children: /* @__PURE__ */ e.jsx(n, { className: "size-3.5" }) }),
9
+ /* @__PURE__ */ e.jsx(s, { slot: "decrement", className: t, children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" }) })
10
+ ] });
11
+ };
10
12
  export {
11
- x as Overlay
13
+ x as StepperButton
12
14
  };
@@ -1,15 +1,80 @@
1
- import { useState as r, useEffect as c } from "react";
2
- function d(e, t = 300) {
3
- const [u, o] = r(e);
4
- return c(() => {
5
- const n = setTimeout(() => {
6
- o(e);
7
- }, t);
8
- return () => {
9
- clearTimeout(n);
10
- };
11
- }, [e, t]), u;
12
- }
1
+ import { j as t } from "./index.es49.js";
2
+ import { Button as g, SelectValue as j } from "react-aria-components";
3
+ import { cn as i } from "./index.es50.js";
4
+ import { Badge as w } from "./index.es6.js";
5
+ import "./index.es7.js";
6
+ import { selectInputButtonVariants as v } from "./index.es59.js";
7
+ const b = ({
8
+ ref: C,
9
+ isOpen: l,
10
+ setIsOpen: m,
11
+ size: o,
12
+ isDisabled: n,
13
+ classNameButton: x,
14
+ selectionMode: c,
15
+ maxLengthTextOption: f,
16
+ handleDeleteOptionSelected: p,
17
+ placeholder: u
18
+ }) => /* @__PURE__ */ t.jsxs(
19
+ g,
20
+ {
21
+ ref: C,
22
+ className: ({ isFocusVisible: e, isHovered: a }) => i(
23
+ v({
24
+ size: o,
25
+ isDisabled: n,
26
+ isFocusVisible: e || l,
27
+ isHovered: a
28
+ }),
29
+ x
30
+ ),
31
+ onPress: () => m(!l),
32
+ children: [
33
+ /* @__PURE__ */ t.jsx(j, { className: "flex flex-1 items-center gap-1 overflow-hidden", children: ({ selectedItems: e, selectedText: a, isPlaceholder: h }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: c === "multiple" && e && e.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap gap-1", children: e.filter((r) => r != null).map((r) => {
34
+ const d = r.label, s = r.value;
35
+ return /* @__PURE__ */ t.jsx(
36
+ w,
37
+ {
38
+ label: d,
39
+ size: o,
40
+ isDisabled: n,
41
+ maxLength: f,
42
+ onDelete: () => p(s)
43
+ },
44
+ s
45
+ );
46
+ }) }) : /* @__PURE__ */ t.jsx(
47
+ "span",
48
+ {
49
+ className: i(
50
+ "flex-1 truncate text-left",
51
+ h ? "text-neutral-600" : "",
52
+ n ? "text-neutral-700" : ""
53
+ ),
54
+ children: a || u
55
+ }
56
+ ) }) }),
57
+ /* @__PURE__ */ t.jsx(
58
+ "svg",
59
+ {
60
+ className: `${l ? "rotate-180" : ""} transition-transform duration-100`,
61
+ width: "20",
62
+ height: "10",
63
+ viewBox: "0 0 20 10",
64
+ fill: "none",
65
+ xmlns: "http://www.w3.org/2000/svg",
66
+ children: /* @__PURE__ */ t.jsx(
67
+ "path",
68
+ {
69
+ 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",
70
+ fill: "#73768C"
71
+ }
72
+ )
73
+ }
74
+ )
75
+ ]
76
+ }
77
+ );
13
78
  export {
14
- d as useDebouncedValue
79
+ b as SelectContent
15
80
  };