@simpli-route/apollo-ds 0.1.78 → 0.1.79

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 (117) hide show
  1. package/dist/components/SelectInput/SelectContent.d.ts +1 -3
  2. package/dist/components/SelectInput/types.d.ts +3 -1
  3. package/dist/index.cjs10.js +1 -1
  4. package/dist/index.cjs100.js +1 -1
  5. package/dist/index.cjs101.js +1 -1
  6. package/dist/index.cjs105.js +1 -1
  7. package/dist/index.cjs106.js +1 -1
  8. package/dist/index.cjs12.js +1 -1
  9. package/dist/index.cjs130.js +1 -1
  10. package/dist/index.cjs131.js +1 -1
  11. package/dist/index.cjs132.js +1 -1
  12. package/dist/index.cjs133.js +1 -1
  13. package/dist/index.cjs134.js +1 -1
  14. package/dist/index.cjs135.js +1 -1
  15. package/dist/index.cjs136.js +1 -1
  16. package/dist/index.cjs137.js +1 -1
  17. package/dist/index.cjs144.js +1 -1
  18. package/dist/index.cjs145.js +1 -1
  19. package/dist/index.cjs174.js +1 -1
  20. package/dist/index.cjs175.js +1 -1
  21. package/dist/index.cjs176.js +1 -1
  22. package/dist/index.cjs26.js +1 -1
  23. package/dist/index.cjs28.js +1 -1
  24. package/dist/index.cjs29.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.cjs38.js +1 -1
  29. package/dist/index.cjs39.js +1 -1
  30. package/dist/index.cjs4.js +1 -1
  31. package/dist/index.cjs5.js +1 -1
  32. package/dist/index.cjs52.js +1 -1
  33. package/dist/index.cjs53.js +1 -1
  34. package/dist/index.cjs54.js +1 -1
  35. package/dist/index.cjs76.js +1 -1
  36. package/dist/index.cjs77.js +1 -1
  37. package/dist/index.cjs78.js +1 -1
  38. package/dist/index.cjs79.js +1 -1
  39. package/dist/index.cjs8.js +1 -1
  40. package/dist/index.cjs80.js +1 -1
  41. package/dist/index.cjs83.js +1 -1
  42. package/dist/index.cjs84.js +1 -1
  43. package/dist/index.cjs85.js +1 -1
  44. package/dist/index.cjs86.js +1 -1
  45. package/dist/index.cjs87.js +3 -1
  46. package/dist/index.cjs88.js +1 -1
  47. package/dist/index.cjs89.js +1 -3
  48. package/dist/index.cjs9.js +1 -1
  49. package/dist/index.cjs90.js +1 -1
  50. package/dist/index.cjs91.js +1 -1
  51. package/dist/index.cjs92.js +1 -1
  52. package/dist/index.cjs93.js +1 -1
  53. package/dist/index.cjs94.js +1 -1
  54. package/dist/index.cjs95.js +1 -1
  55. package/dist/index.cjs96.js +1 -1
  56. package/dist/index.cjs97.js +1 -1
  57. package/dist/index.cjs98.js +1 -1
  58. package/dist/index.cjs99.js +1 -1
  59. package/dist/index.es10.js +1 -1
  60. package/dist/index.es100.js +3 -3
  61. package/dist/index.es101.js +3 -3
  62. package/dist/index.es105.js +1 -1
  63. package/dist/index.es106.js +1 -1
  64. package/dist/index.es12.js +3 -3
  65. package/dist/index.es130.js +2 -4
  66. package/dist/index.es131.js +4 -28
  67. package/dist/index.es132.js +4 -2
  68. package/dist/index.es133.js +28 -10
  69. package/dist/index.es134.js +2 -340
  70. package/dist/index.es135.js +8 -166
  71. package/dist/index.es136.js +340 -2
  72. package/dist/index.es137.js +166 -2
  73. package/dist/index.es144.js +1 -1
  74. package/dist/index.es145.js +2 -2
  75. package/dist/index.es174.js +59 -20
  76. package/dist/index.es175.js +20 -4
  77. package/dist/index.es176.js +2 -57
  78. package/dist/index.es26.js +1 -1
  79. package/dist/index.es28.js +2 -2
  80. package/dist/index.es29.js +3 -3
  81. package/dist/index.es31.js +6 -6
  82. package/dist/index.es32.js +100 -97
  83. package/dist/index.es33.js +2 -2
  84. package/dist/index.es38.js +2 -2
  85. package/dist/index.es39.js +3 -3
  86. package/dist/index.es4.js +3 -3
  87. package/dist/index.es5.js +2 -2
  88. package/dist/index.es52.js +45 -4
  89. package/dist/index.es53.js +4 -112
  90. package/dist/index.es54.js +97 -30
  91. package/dist/index.es76.js +15 -38
  92. package/dist/index.es77.js +13 -26
  93. package/dist/index.es78.js +9 -11
  94. package/dist/index.es79.js +36 -12
  95. package/dist/index.es8.js +1 -1
  96. package/dist/index.es80.js +28 -14
  97. package/dist/index.es83.js +10 -10
  98. package/dist/index.es84.js +10 -12
  99. package/dist/index.es85.js +12 -10
  100. package/dist/index.es86.js +13 -101
  101. package/dist/index.es87.js +153 -11
  102. package/dist/index.es88.js +12 -13
  103. package/dist/index.es89.js +7 -155
  104. package/dist/index.es9.js +3 -3
  105. package/dist/index.es90.js +42 -12
  106. package/dist/index.es91.js +20 -7
  107. package/dist/index.es92.js +78 -41
  108. package/dist/index.es93.js +101 -20
  109. package/dist/index.es94.js +13 -19
  110. package/dist/index.es95.js +10 -20
  111. package/dist/index.es96.js +9 -9
  112. package/dist/index.es97.js +45 -10
  113. package/dist/index.es98.js +19 -45
  114. package/dist/index.es99.js +16 -76
  115. package/dist/stories/SelectInput.stories.d.ts +11 -0
  116. package/dist/style.css +27 -0
  117. package/package.json +1 -1
@@ -1,114 +1,6 @@
1
- import { cva as e } from "class-variance-authority";
2
- const t = e("group flex w-full flex-col gap-2", {
3
- variants: {
4
- size: {
5
- xs: "min-h-[28px]",
6
- sm: "min-h-[42px]",
7
- md: "min-h-[50px]",
8
- lg: "min-h-[58px]"
9
- }
10
- }
11
- }), s = e(
12
- "relative flex w-full cursor-default items-center justify-between rounded-lg border border-neutral-500 bg-white/90 px-0 text-base leading-6 ring-1 ring-primary-500/10 transition focus-within:bg-white/100 focus-visible:border-primary-500 focus-visible:ring-2 focus-visible:ring-primary-500",
13
- {
14
- variants: {
15
- size: {
16
- xs: "h-[34px]",
17
- sm: "min-h-[42px]",
18
- md: "min-h-[50px]",
19
- lg: "min-h-[58px]"
20
- },
21
- intent: {
22
- primary: "bg-primary-500 text-primary-50",
23
- secondary: "border border-primary-500 bg-primary-50 text-primary-500",
24
- tertiary: "text-primary-500",
25
- outline: "border border-primary-500 text-primary-500",
26
- success: "border border-success-800 text-success-800",
27
- error: "border border-error-800 text-error-800",
28
- orangeWarning: "border border-orange-warning-800 text-orange-warning-800",
29
- yellowWarning: "border border-yellow-warning-800 text-yellow-warning-800",
30
- info: "border border-primary-800 text-primary-800"
31
- },
32
- isHovered: {
33
- true: ""
34
- },
35
- isDisabled: {
36
- true: "cursor-not-allowed bg-neutral-200 text-neutral-600 border-neutral-500"
37
- },
38
- isReadOnly: {
39
- true: "cursor-not-allowed"
40
- },
41
- validationState: {
42
- invalid: "border-error-500 text-red-800 placeholder:text-red-800 focus:border-error-500 focus:ring-error-500",
43
- valid: "border-success-500 text-success-800 placeholder:text-success-800 focus:border-success-500 focus:ring-success-500"
44
- }
45
- },
46
- compoundVariants: [
47
- { intent: "primary", isHovered: !0, class: "bg-primary-700" },
48
- { intent: "secondary", isHovered: !0, class: "bg-primary-200" },
49
- { intent: "outline", isHovered: !0, class: "bg-primary-500 text-primary-50" },
50
- { intent: "success", isHovered: !0, class: "bg-success-600 text-neutral-50" },
51
- { intent: "error", isHovered: !0, class: "bg-error-600 text-neutral-50" },
52
- { intent: "orangeWarning", isHovered: !0, class: "bg-orange-warning-600 text-neutral-50" },
53
- { intent: "yellowWarning", isHovered: !0, class: "bg-yellow-warning-600 text-neutral-50" },
54
- { intent: "info", isHovered: !0, class: "bg-primary-600 text-neutral-50" }
55
- ]
56
- }
57
- ), o = e(
58
- "w-full flex-1 border-none bg-transparent px-3 text-base leading-5 text-gray-900 outline-none focus:ring-0",
59
- {
60
- variants: {
61
- size: {
62
- xs: "py-1",
63
- sm: "py-2",
64
- md: "py-3",
65
- lg: "py-4"
66
- },
67
- isInvalid: {
68
- true: "text-red-800 placeholder:text-red-800"
69
- }
70
- }
71
- }
72
- ), i = e(
73
- "max-h-80 w-[--trigger-width] overflow-auto rounded-md bg-white text-base shadow-lg",
74
- {
75
- variants: {}
76
- }
77
- ), a = e(
78
- "group flex cursor-pointer items-center justify-between rounded-sm p-2 text-sm outline-none",
79
- {
80
- variants: {
81
- isFocused: {
82
- true: ""
83
- },
84
- isSelected: {
85
- true: "bg-primary-100 text-primary-500 hover:bg-primary-200 hover:text-primary-500",
86
- false: "hover:bg-primary-50 hover:text-primary-500"
87
- },
88
- isDisabled: {
89
- true: "bg-blue-50 text-neutral-500 cursor-not-allowed hover:bg-blue-50 hover:text-neutral-500 pointer-events-none",
90
- false: ""
91
- }
92
- },
93
- compoundVariants: [
94
- {
95
- isDisabled: !0,
96
- isFocused: !1,
97
- isSelected: !1,
98
- class: "text-neutral-600 bg-blue-50 hover:bg-blue-50 hover:text-neutral-600 cursor-not-allowed pointer-events-none"
99
- },
100
- {
101
- isSelected: !1,
102
- isDisabled: !1,
103
- class: "text-primary-900"
104
- }
105
- ]
106
- }
107
- );
1
+ import { createContext as t, useContext as e } from "react";
2
+ const o = t(""), n = () => e(o);
108
3
  export {
109
- s as autocompleteGroupVariants,
110
- o as autocompleteInputVariants,
111
- a as autocompleteOptionVariants,
112
- i as autocompletePopoverVariants,
113
- t as comboBoxVariants
4
+ o as AutocompleteContext,
5
+ n as useAutocompleteFilter
114
6
  };
@@ -1,47 +1,114 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const t = e("flex items-center gap-0.5", {
3
- variants: {},
4
- defaultVariants: {}
5
- }), a = e(
6
- "inline-flex items-center gap-1 py-1 px-2 rounded text-xs font-semibold text-blue-700 outline-none transition-colors duration-200",
2
+ const t = e("group flex w-full flex-col gap-2", {
3
+ variants: {
4
+ size: {
5
+ xs: "min-h-[28px]",
6
+ sm: "min-h-[42px]",
7
+ md: "min-h-[50px]",
8
+ lg: "min-h-[58px]"
9
+ }
10
+ }
11
+ }), s = e(
12
+ "relative flex w-full cursor-default items-center justify-between rounded-lg border border-neutral-500 bg-white/90 px-0 text-base leading-6 ring-1 ring-primary-500/10 transition focus-within:bg-white/100 focus-visible:border-primary-500 focus-visible:ring-2 focus-visible:ring-primary-500",
7
13
  {
8
14
  variants: {
15
+ size: {
16
+ xs: "h-[34px]",
17
+ sm: "min-h-[42px]",
18
+ md: "min-h-[50px]",
19
+ lg: "min-h-[58px]"
20
+ },
21
+ intent: {
22
+ primary: "bg-primary-500 text-primary-50",
23
+ secondary: "border border-primary-500 bg-primary-50 text-primary-500",
24
+ tertiary: "text-primary-500",
25
+ outline: "border border-primary-500 text-primary-500",
26
+ success: "border border-success-800 text-success-800",
27
+ error: "border border-error-800 text-error-800",
28
+ orangeWarning: "border border-orange-warning-800 text-orange-warning-800",
29
+ yellowWarning: "border border-yellow-warning-800 text-yellow-warning-800",
30
+ info: "border border-primary-800 text-primary-800"
31
+ },
9
32
  isHovered: {
10
- true: "text-blue-500",
11
- false: ""
33
+ true: ""
34
+ },
35
+ isDisabled: {
36
+ true: "cursor-not-allowed bg-neutral-200 text-neutral-600 border-neutral-500"
12
37
  },
13
- isFocusVisible: {
14
- true: "border border-primary-500 text-blue-500",
15
- false: "border border-transparent"
38
+ isReadOnly: {
39
+ true: "cursor-not-allowed"
16
40
  },
17
- isCurrent: {
18
- true: "cursor-default text-blue-400",
19
- false: "cursor-pointer"
41
+ validationState: {
42
+ invalid: "border-error-500 text-red-800 placeholder:text-red-800 focus:border-error-500 focus:ring-error-500",
43
+ valid: "border-success-500 text-success-800 placeholder:text-success-800 focus:border-success-500 focus:ring-success-500"
44
+ }
45
+ },
46
+ compoundVariants: [
47
+ { intent: "primary", isHovered: !0, class: "bg-primary-700" },
48
+ { intent: "secondary", isHovered: !0, class: "bg-primary-200" },
49
+ { intent: "outline", isHovered: !0, class: "bg-primary-500 text-primary-50" },
50
+ { intent: "success", isHovered: !0, class: "bg-success-600 text-neutral-50" },
51
+ { intent: "error", isHovered: !0, class: "bg-error-600 text-neutral-50" },
52
+ { intent: "orangeWarning", isHovered: !0, class: "bg-orange-warning-600 text-neutral-50" },
53
+ { intent: "yellowWarning", isHovered: !0, class: "bg-yellow-warning-600 text-neutral-50" },
54
+ { intent: "info", isHovered: !0, class: "bg-primary-600 text-neutral-50" }
55
+ ]
56
+ }
57
+ ), o = e(
58
+ "w-full flex-1 border-none bg-transparent px-3 text-base leading-5 text-gray-900 outline-none focus:ring-0",
59
+ {
60
+ variants: {
61
+ size: {
62
+ xs: "py-1",
63
+ sm: "py-2",
64
+ md: "py-3",
65
+ lg: "py-4"
66
+ },
67
+ isInvalid: {
68
+ true: "text-red-800 placeholder:text-red-800"
69
+ }
70
+ }
71
+ }
72
+ ), i = e(
73
+ "max-h-80 w-[--trigger-width] overflow-auto rounded-md bg-white text-base shadow-lg",
74
+ {
75
+ variants: {}
76
+ }
77
+ ), a = e(
78
+ "group flex cursor-pointer items-center justify-between rounded-sm p-2 text-sm outline-none",
79
+ {
80
+ variants: {
81
+ isFocused: {
82
+ true: ""
83
+ },
84
+ isSelected: {
85
+ true: "bg-primary-100 text-primary-500 hover:bg-primary-200 hover:text-primary-500",
86
+ false: "hover:bg-primary-50 hover:text-primary-500"
20
87
  },
21
88
  isDisabled: {
22
- true: "!cursor-not-allowed !text-neutral-600",
89
+ true: "bg-blue-50 text-neutral-500 cursor-not-allowed hover:bg-blue-50 hover:text-neutral-500 pointer-events-none",
23
90
  false: ""
24
91
  }
25
92
  },
26
93
  compoundVariants: [
27
94
  {
28
- isHovered: !0,
29
- isCurrent: !1,
30
- class: "text-blue-500"
95
+ isDisabled: !0,
96
+ isFocused: !1,
97
+ isSelected: !1,
98
+ class: "text-neutral-600 bg-blue-50 hover:bg-blue-50 hover:text-neutral-600 cursor-not-allowed pointer-events-none"
99
+ },
100
+ {
101
+ isSelected: !1,
102
+ isDisabled: !1,
103
+ class: "text-primary-900"
31
104
  }
32
- ],
33
- defaultVariants: {
34
- isHovered: !1,
35
- isFocusVisible: !1,
36
- isCurrent: !1
37
- }
105
+ ]
38
106
  }
39
- ), s = e("text-neutral-700 font-normal text-sm", {
40
- variants: {},
41
- defaultVariants: {}
42
- });
107
+ );
43
108
  export {
44
- a as breadcrumbItemVariants,
45
- s as breadcrumbSeparatorVariants,
46
- t as breadcrumbsContainerVariants
109
+ s as autocompleteGroupVariants,
110
+ o as autocompleteInputVariants,
111
+ a as autocompleteOptionVariants,
112
+ i as autocompletePopoverVariants,
113
+ t as comboBoxVariants
47
114
  };
@@ -1,43 +1,20 @@
1
- import { j as e } from "./index.es49.js";
2
- import { CrossIcon as x, DownChevronIcon as f } from "./index.es51.js";
3
- import { cn as n } from "./index.es50.js";
4
- import { IconButton as p } from "./index.es16.js";
5
- import { Loader as d } from "./index.es25.js";
6
- function v({
7
- hasSelection: o,
8
- isOpen: s,
9
- isDisabled: i,
10
- isReadOnly: a,
11
- isLoading: m = !1,
12
- iconClassName: r,
13
- icon: l = f,
14
- onClear: c,
15
- onIconPress: u
16
- }) {
17
- return m ? /* @__PURE__ */ e.jsx("div", { className: "mr-2 flex items-center justify-center", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(d, { size: "xs", className: "mr-0 text-neutral-700" }) }) : o && !i && !a ? /* @__PURE__ */ e.jsx(
18
- "button",
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,
19
6
  {
20
- type: "button",
21
- "aria-label": "Clear selection",
22
- className: "mr-2 flex items-center justify-center rounded-lg p-1 text-neutral-700 hover:text-primary-500 focus:text-primary-500 focus:outline-none",
23
- onPointerDown: (t) => t.preventDefault(),
24
- onClick: (t) => {
25
- t.stopPropagation(), c();
26
- },
27
- children: /* @__PURE__ */ e.jsx(x, { className: n("size-3", 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" })
28
15
  }
29
- ) : /* @__PURE__ */ e.jsx(p, { intent: "minimal", size: "xxs", className: "mr-2", onPress: u, children: ({ isFocusVisible: t }) => /* @__PURE__ */ e.jsx(
30
- l,
31
- {
32
- className: n(
33
- "size-4 transition-transform duration-200",
34
- s && "rotate-180",
35
- t ? "text-primary-500" : "text-neutral-700",
36
- r
37
- )
38
- }
39
- ) });
16
+ );
40
17
  }
41
18
  export {
42
- v as AutocompleteToggle
19
+ t as ColorArea
43
20
  };
@@ -1,32 +1,19 @@
1
1
  import { j as e } from "./index.es49.js";
2
- import { cn as l } from "./index.es50.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",
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
- 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" }
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
27
14
  }
28
15
  ) });
29
- };
16
+ }
30
17
  export {
31
- m as MarkIcon
18
+ p as ColorField
32
19
  };
@@ -1,20 +1,18 @@
1
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 }) {
2
+ import { ColorSlider as f, SliderTrack as l, ColorThumb as i } from "react-aria-components";
3
+ function d(e) {
4
+ const { color: o } = e;
4
5
  return /* @__PURE__ */ r.jsx(
5
- s,
6
+ f,
6
7
  {
7
- colorSpace: "hsb",
8
- xChannel: "saturation",
9
- yChannel: "brightness",
8
+ channel: "hue",
10
9
  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" })
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" }) })
15
13
  }
16
14
  );
17
15
  }
18
16
  export {
19
- t as ColorArea
17
+ d as ColorSlider
20
18
  };
@@ -1,19 +1,43 @@
1
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,
2
+ import { CrossIcon as x, DownChevronIcon as f } from "./index.es51.js";
3
+ import { cn as n } from "./index.es50.js";
4
+ import { IconButton as p } from "./index.es16.js";
5
+ import { Loader as d } from "./index.es25.js";
6
+ function v({
7
+ hasSelection: o,
8
+ isOpen: s,
9
+ isDisabled: i,
10
+ isReadOnly: a,
11
+ isLoading: m = !1,
12
+ iconClassName: r,
13
+ icon: l = f,
14
+ onClear: c,
15
+ onIconPress: u
16
+ }) {
17
+ return m ? /* @__PURE__ */ e.jsx("div", { className: "mr-2 flex items-center justify-center", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(d, { size: "xs", className: "mr-0 text-neutral-700" }) }) : o && !i && !a ? /* @__PURE__ */ e.jsx(
18
+ "button",
7
19
  {
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
20
+ type: "button",
21
+ "aria-label": "Clear selection",
22
+ className: "mr-2 flex items-center justify-center rounded-lg p-1 text-neutral-700 hover:text-primary-500 focus:text-primary-500 focus:outline-none",
23
+ onPointerDown: (t) => t.preventDefault(),
24
+ onClick: (t) => {
25
+ t.stopPropagation(), c();
26
+ },
27
+ children: /* @__PURE__ */ e.jsx(x, { className: n("size-3", r) })
28
+ }
29
+ ) : /* @__PURE__ */ e.jsx(p, { intent: "minimal", size: "xxs", className: "mr-2", onPress: u, children: ({ isFocusVisible: t }) => /* @__PURE__ */ e.jsx(
30
+ l,
31
+ {
32
+ className: n(
33
+ "size-4 transition-transform duration-200",
34
+ s && "rotate-180",
35
+ t ? "text-primary-500" : "text-neutral-700",
36
+ r
37
+ )
14
38
  }
15
39
  ) });
16
40
  }
17
41
  export {
18
- p as ColorField
42
+ v as AutocompleteToggle
19
43
  };
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.es54.js";
5
+ import { breadcrumbsContainerVariants as V, breadcrumbItemVariants as o, breadcrumbSeparatorVariants as y } from "./index.es52.js";
6
6
  const S = ({
7
7
  items: a = [],
8
8
  className: h,
@@ -1,18 +1,32 @@
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 { cn as l } from "./index.es50.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
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
+ 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" }
13
17
  }
14
- );
15
- }
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
+ ) });
29
+ };
16
30
  export {
17
- d as ColorSlider
31
+ m as MarkIcon
18
32
  };
@@ -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
  };