@simpli-route/apollo-ds 0.1.53 → 0.1.55

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 (173) hide show
  1. package/dist/components/InvisibleDatepicker/types.d.ts +4 -0
  2. package/dist/components/InvisibleSelect/InvisibleSelect.d.ts +1 -6
  3. package/dist/components/InvisibleSelect/InvisibleSelectContent.d.ts +17 -0
  4. package/dist/components/InvisibleSelect/index.d.ts +2 -3
  5. package/dist/components/InvisibleSelect/types.d.ts +82 -38
  6. package/dist/components/InvisibleSelect/variants.d.ts +15 -13
  7. package/dist/components/index.d.ts +1 -1
  8. package/dist/index.cjs.js +1 -1
  9. package/dist/index.cjs10.js +1 -1
  10. package/dist/index.cjs106.js +1 -1
  11. package/dist/index.cjs107.js +1 -1
  12. package/dist/index.cjs108.js +1 -1
  13. package/dist/index.cjs109.js +1 -1
  14. package/dist/index.cjs11.js +1 -1
  15. package/dist/index.cjs110.js +1 -1
  16. package/dist/index.cjs111.js +1 -1
  17. package/dist/index.cjs112.js +1 -1
  18. package/dist/index.cjs12.js +1 -1
  19. package/dist/index.cjs13.js +1 -1
  20. package/dist/index.cjs15.js +1 -1
  21. package/dist/index.cjs16.js +1 -1
  22. package/dist/index.cjs17.js +1 -1
  23. package/dist/index.cjs18.js +1 -1
  24. package/dist/index.cjs19.js +1 -1
  25. package/dist/index.cjs22.js +1 -1
  26. package/dist/index.cjs23.js +1 -1
  27. package/dist/index.cjs24.js +1 -1
  28. package/dist/index.cjs25.js +1 -1
  29. package/dist/index.cjs26.js +1 -1
  30. package/dist/index.cjs27.js +1 -1
  31. package/dist/index.cjs28.js +1 -1
  32. package/dist/index.cjs29.js +1 -1
  33. package/dist/index.cjs30.js +1 -1
  34. package/dist/index.cjs33.js +1 -1
  35. package/dist/index.cjs34.js +1 -1
  36. package/dist/index.cjs35.js +1 -1
  37. package/dist/index.cjs36.js +1 -1
  38. package/dist/index.cjs37.js +1 -1
  39. package/dist/index.cjs38.js +1 -1
  40. package/dist/index.cjs39.js +1 -1
  41. package/dist/index.cjs4.js +1 -1
  42. package/dist/index.cjs43.js +1 -1
  43. package/dist/index.cjs44.js +1 -1
  44. package/dist/index.cjs46.js +1 -1
  45. package/dist/index.cjs47.js +1 -1
  46. package/dist/index.cjs48.js +1 -1
  47. package/dist/index.cjs49.js +1 -1
  48. package/dist/index.cjs5.js +1 -1
  49. package/dist/index.cjs50.js +1 -1
  50. package/dist/index.cjs51.js +1 -1
  51. package/dist/index.cjs52.js +1 -1
  52. package/dist/index.cjs53.js +1 -1
  53. package/dist/index.cjs54.js +1 -1
  54. package/dist/index.cjs55.js +1 -1
  55. package/dist/index.cjs56.js +1 -1
  56. package/dist/index.cjs57.js +1 -1
  57. package/dist/index.cjs58.js +1 -1
  58. package/dist/index.cjs59.js +1 -1
  59. package/dist/index.cjs6.js +1 -1
  60. package/dist/index.cjs60.js +1 -1
  61. package/dist/index.cjs61.js +1 -1
  62. package/dist/index.cjs62.js +1 -1
  63. package/dist/index.cjs63.js +1 -1
  64. package/dist/index.cjs64.js +1 -1
  65. package/dist/index.cjs65.js +1 -1
  66. package/dist/index.cjs66.js +1 -1
  67. package/dist/index.cjs67.js +1 -1
  68. package/dist/index.cjs68.js +1 -1
  69. package/dist/index.cjs69.js +1 -1
  70. package/dist/index.cjs7.js +1 -1
  71. package/dist/index.cjs70.js +1 -1
  72. package/dist/index.cjs71.js +1 -1
  73. package/dist/index.cjs72.js +1 -1
  74. package/dist/index.cjs73.js +1 -1
  75. package/dist/index.cjs74.js +1 -1
  76. package/dist/index.cjs75.js +1 -1
  77. package/dist/index.cjs76.js +1 -1
  78. package/dist/index.cjs77.js +1 -1
  79. package/dist/index.cjs78.js +1 -1
  80. package/dist/index.cjs79.js +1 -1
  81. package/dist/index.cjs8.js +1 -1
  82. package/dist/index.cjs80.js +1 -1
  83. package/dist/index.cjs81.js +1 -1
  84. package/dist/index.cjs82.js +1 -1
  85. package/dist/index.cjs83.js +1 -1
  86. package/dist/index.cjs84.js +1 -1
  87. package/dist/index.cjs9.js +1 -1
  88. package/dist/index.es.js +10 -10
  89. package/dist/index.es10.js +1 -1
  90. package/dist/index.es106.js +57 -4
  91. package/dist/index.es107.js +6 -28
  92. package/dist/index.es108.js +28 -4
  93. package/dist/index.es109.js +2 -8
  94. package/dist/index.es11.js +1 -1
  95. package/dist/index.es110.js +8 -340
  96. package/dist/index.es111.js +336 -162
  97. package/dist/index.es112.js +161 -52
  98. package/dist/index.es12.js +1 -1
  99. package/dist/index.es13.js +1 -1
  100. package/dist/index.es15.js +1 -1
  101. package/dist/index.es16.js +119 -116
  102. package/dist/index.es17.js +66 -31
  103. package/dist/index.es18.js +2 -2
  104. package/dist/index.es19.js +1 -1
  105. package/dist/index.es22.js +1 -1
  106. package/dist/index.es23.js +2 -2
  107. package/dist/index.es24.js +3 -3
  108. package/dist/index.es25.js +17 -17
  109. package/dist/index.es26.js +1 -1
  110. package/dist/index.es27.js +3 -3
  111. package/dist/index.es28.js +1 -1
  112. package/dist/index.es29.js +2 -2
  113. package/dist/index.es30.js +1 -1
  114. package/dist/index.es33.js +3 -3
  115. package/dist/index.es34.js +3 -3
  116. package/dist/index.es35.js +3 -3
  117. package/dist/index.es36.js +2 -2
  118. package/dist/index.es37.js +1 -1
  119. package/dist/index.es38.js +1 -1
  120. package/dist/index.es39.js +1 -1
  121. package/dist/index.es4.js +1 -1
  122. package/dist/index.es43.js +30 -41
  123. package/dist/index.es44.js +30 -171
  124. package/dist/index.es46.js +17 -33
  125. package/dist/index.es47.js +16 -79
  126. package/dist/index.es48.js +15 -129
  127. package/dist/index.es49.js +26 -65
  128. package/dist/index.es5.js +19 -19
  129. package/dist/index.es50.js +171 -3
  130. package/dist/index.es51.js +61 -9
  131. package/dist/index.es52.js +101 -116
  132. package/dist/index.es53.js +48 -100
  133. package/dist/index.es54.js +3 -115
  134. package/dist/index.es55.js +18 -104
  135. package/dist/index.es56.js +140 -24
  136. package/dist/index.es57.js +129 -7
  137. package/dist/index.es58.js +72 -74
  138. package/dist/index.es59.js +98 -24
  139. package/dist/index.es6.js +1 -1
  140. package/dist/index.es60.js +32 -158
  141. package/dist/index.es61.js +7 -91
  142. package/dist/index.es62.js +109 -14
  143. package/dist/index.es63.js +40 -18
  144. package/dist/index.es64.js +159 -16
  145. package/dist/index.es65.js +90 -14
  146. package/dist/index.es66.js +20 -28
  147. package/dist/index.es67.js +7 -6
  148. package/dist/index.es68.js +163 -10
  149. package/dist/index.es69.js +10 -10
  150. package/dist/index.es7.js +1 -1
  151. package/dist/index.es70.js +13 -12
  152. package/dist/index.es71.js +10 -13
  153. package/dist/index.es72.js +12 -163
  154. package/dist/index.es73.js +1 -1
  155. package/dist/index.es74.js +97 -36
  156. package/dist/index.es75.js +13 -7
  157. package/dist/index.es76.js +7 -18
  158. package/dist/index.es77.js +15 -146
  159. package/dist/index.es78.js +144 -96
  160. package/dist/index.es79.js +9 -12
  161. package/dist/index.es8.js +3 -3
  162. package/dist/index.es80.js +10 -19
  163. package/dist/index.es81.js +42 -17
  164. package/dist/index.es82.js +19 -10
  165. package/dist/index.es83.js +20 -10
  166. package/dist/index.es84.js +25 -30
  167. package/dist/index.es9.js +2 -2
  168. package/dist/stories/Datepicker.stories.d.ts +1 -0
  169. package/dist/stories/InvisibleSelect.stories.d.ts +29 -80
  170. package/dist/style.css +19 -59
  171. package/package.json +1 -1
  172. package/dist/components/InvisibleSelect/InvisibleSelect.test.d.ts +0 -1
  173. package/dist/components/InvisibleSelect/InvisibleSelectItem.d.ts +0 -25
@@ -1,59 +1,168 @@
1
- import { j as r } from "./index.es40.js";
2
- import { SliderThumb as m } from "react-aria-components";
3
- import { cn as i } from "./index.es41.js";
4
- import { Tooltip as c } from "./index.es36.js";
5
- import { TooltipTrigger as d } from "./index.es37.js";
6
- const y = ({
7
- index: o,
8
- valuePercent: n,
9
- value: a,
10
- suffix: p,
11
- modeTooltip: g,
12
- positionTooltip: t,
13
- showTypeValue: s,
14
- classNameThumb: e,
15
- isHiddenValue: l
16
- }) => /* @__PURE__ */ r.jsx(
17
- "div",
1
+ import { getDefaultExportFromCjs as r } from "./index.es107.js";
2
+ import { p as o } from "./index.es120.js";
3
+ const l = o;
4
+ function e(a) {
5
+ return Object.fromEntries(
6
+ Object.entries(a).filter(([i]) => i !== "DEFAULT")
7
+ );
8
+ }
9
+ var s = l(
10
+ ({ addUtilities: a, matchUtilities: i, theme: n }) => {
11
+ a({
12
+ "@keyframes enter": n("keyframes.enter"),
13
+ "@keyframes exit": n("keyframes.exit"),
14
+ ".animate-in": {
15
+ animationName: "enter",
16
+ animationDuration: n("animationDuration.DEFAULT"),
17
+ "--tw-enter-opacity": "initial",
18
+ "--tw-enter-scale": "initial",
19
+ "--tw-enter-rotate": "initial",
20
+ "--tw-enter-translate-x": "initial",
21
+ "--tw-enter-translate-y": "initial"
22
+ },
23
+ ".animate-out": {
24
+ animationName: "exit",
25
+ animationDuration: n("animationDuration.DEFAULT"),
26
+ "--tw-exit-opacity": "initial",
27
+ "--tw-exit-scale": "initial",
28
+ "--tw-exit-rotate": "initial",
29
+ "--tw-exit-translate-x": "initial",
30
+ "--tw-exit-translate-y": "initial"
31
+ }
32
+ }), i(
33
+ {
34
+ "fade-in": (t) => ({ "--tw-enter-opacity": t }),
35
+ "fade-out": (t) => ({ "--tw-exit-opacity": t })
36
+ },
37
+ { values: n("animationOpacity") }
38
+ ), i(
39
+ {
40
+ "zoom-in": (t) => ({ "--tw-enter-scale": t }),
41
+ "zoom-out": (t) => ({ "--tw-exit-scale": t })
42
+ },
43
+ { values: n("animationScale") }
44
+ ), i(
45
+ {
46
+ "spin-in": (t) => ({ "--tw-enter-rotate": t }),
47
+ "spin-out": (t) => ({ "--tw-exit-rotate": t })
48
+ },
49
+ { values: n("animationRotate") }
50
+ ), i(
51
+ {
52
+ "slide-in-from-top": (t) => ({
53
+ "--tw-enter-translate-y": `-${t}`
54
+ }),
55
+ "slide-in-from-bottom": (t) => ({
56
+ "--tw-enter-translate-y": t
57
+ }),
58
+ "slide-in-from-left": (t) => ({
59
+ "--tw-enter-translate-x": `-${t}`
60
+ }),
61
+ "slide-in-from-right": (t) => ({
62
+ "--tw-enter-translate-x": t
63
+ }),
64
+ "slide-out-to-top": (t) => ({
65
+ "--tw-exit-translate-y": `-${t}`
66
+ }),
67
+ "slide-out-to-bottom": (t) => ({
68
+ "--tw-exit-translate-y": t
69
+ }),
70
+ "slide-out-to-left": (t) => ({
71
+ "--tw-exit-translate-x": `-${t}`
72
+ }),
73
+ "slide-out-to-right": (t) => ({
74
+ "--tw-exit-translate-x": t
75
+ })
76
+ },
77
+ { values: n("animationTranslate") }
78
+ ), i(
79
+ { duration: (t) => ({ animationDuration: t }) },
80
+ { values: e(n("animationDuration")) }
81
+ ), i(
82
+ { delay: (t) => ({ animationDelay: t }) },
83
+ { values: n("animationDelay") }
84
+ ), i(
85
+ { ease: (t) => ({ animationTimingFunction: t }) },
86
+ { values: e(n("animationTimingFunction")) }
87
+ ), a({
88
+ ".running": { animationPlayState: "running" },
89
+ ".paused": { animationPlayState: "paused" }
90
+ }), i(
91
+ { "fill-mode": (t) => ({ animationFillMode: t }) },
92
+ { values: n("animationFillMode") }
93
+ ), i(
94
+ { direction: (t) => ({ animationDirection: t }) },
95
+ { values: n("animationDirection") }
96
+ ), i(
97
+ { repeat: (t) => ({ animationIterationCount: t }) },
98
+ { values: n("animationRepeat") }
99
+ );
100
+ },
18
101
  {
19
- className: i("absolute", s === "tooltip" && !l ? "top-[-6px]" : "top-1/2"),
20
- style: { left: `${n * 100}%`, transform: "translate(-50%, -50%)" },
21
- children: s === "tooltip" && !l ? /* @__PURE__ */ r.jsxs(d, { closeDelay: 100, delay: 100, children: [
22
- /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
23
- m,
24
- {
25
- index: o,
26
- className: i(
27
- "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
28
- e
29
- )
30
- }
31
- ) }),
32
- /* @__PURE__ */ r.jsxs(
33
- c,
34
- {
35
- mode: g,
36
- placement: t,
37
- size: "sm",
38
- className: i("!text-sm", t === "top" ? "!mb-6" : "!mt-6"),
39
- children: [
40
- a,
41
- p
42
- ]
102
+ theme: {
103
+ extend: {
104
+ animationDelay: ({ theme: a }) => ({
105
+ ...a("transitionDelay")
106
+ }),
107
+ animationDuration: ({ theme: a }) => ({
108
+ 0: "0ms",
109
+ ...a("transitionDuration")
110
+ }),
111
+ animationTimingFunction: ({ theme: a }) => ({
112
+ ...a("transitionTimingFunction")
113
+ }),
114
+ animationFillMode: {
115
+ none: "none",
116
+ forwards: "forwards",
117
+ backwards: "backwards",
118
+ both: "both"
119
+ },
120
+ animationDirection: {
121
+ normal: "normal",
122
+ reverse: "reverse",
123
+ alternate: "alternate",
124
+ "alternate-reverse": "alternate-reverse"
125
+ },
126
+ animationOpacity: ({ theme: a }) => ({
127
+ DEFAULT: 0,
128
+ ...a("opacity")
129
+ }),
130
+ animationTranslate: ({ theme: a }) => ({
131
+ DEFAULT: "100%",
132
+ ...a("translate")
133
+ }),
134
+ animationScale: ({ theme: a }) => ({
135
+ DEFAULT: 0,
136
+ ...a("scale")
137
+ }),
138
+ animationRotate: ({ theme: a }) => ({
139
+ DEFAULT: "30deg",
140
+ ...a("rotate")
141
+ }),
142
+ animationRepeat: {
143
+ 0: "0",
144
+ 1: "1",
145
+ infinite: "infinite"
146
+ },
147
+ keyframes: {
148
+ enter: {
149
+ from: {
150
+ opacity: "var(--tw-enter-opacity, 1)",
151
+ transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
152
+ }
153
+ },
154
+ exit: {
155
+ to: {
156
+ opacity: "var(--tw-exit-opacity, 1)",
157
+ transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
158
+ }
159
+ }
43
160
  }
44
- )
45
- ] }) : /* @__PURE__ */ r.jsx(
46
- m,
47
- {
48
- index: o,
49
- className: i(
50
- "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
51
- e
52
- )
53
161
  }
54
- )
162
+ }
55
163
  }
56
164
  );
165
+ const u = /* @__PURE__ */ r(s);
57
166
  export {
58
- y as SliderThumb
167
+ u as default
59
168
  };
@@ -2,7 +2,7 @@ import { j as o } from "./index.es40.js";
2
2
  import { forwardRef as h } from "react";
3
3
  import { useContextProps as B, ButtonContext as j, Button as N } from "react-aria-components";
4
4
  import { cn as w } from "./index.es41.js";
5
- import { buttonVariants as C } from "./index.es72.js";
5
+ import { buttonVariants as C } from "./index.es68.js";
6
6
  function I(r, i) {
7
7
  const [a, c] = B(r, i, j), {
8
8
  intent: m = "secondary",
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
2
2
  import { forwardRef as h } from "react";
3
3
  import { TextField as j, Label as N, Input as V, FieldError as y } from "react-aria-components";
4
4
  import { cn as i } from "./index.es41.js";
5
- import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.es58.js";
5
+ import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.es62.js";
6
6
  const R = h(
7
7
  ({
8
8
  size: l = "bodyDefault",
@@ -3,7 +3,7 @@ import { today as k, getLocalTimeZone as G } from "@internationalized/date";
3
3
  import { CalendarIcon as I, LeftChevronIcon as H, RightChevronIcon as z } from "./index.es42.js";
4
4
  import { DatePicker as L, Label as P, Group as B, DateInput as w, DateSegment as R, Button as c, FieldError as T, Popover as F, Dialog as Z, Calendar as q, Heading as A, CalendarGrid as J, CalendarGridHeader as K, CalendarHeaderCell as M, CalendarGridBody as O, CalendarCell as Q } from "react-aria-components";
5
5
  import { cn as r } from "./index.es41.js";
6
- import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.es52.js";
6
+ import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.es56.js";
7
7
  const oe = ({
8
8
  label: o,
9
9
  size: l = "bodyDefault",
@@ -1,121 +1,124 @@
1
1
  import { j as e } from "./index.es40.js";
2
- import { DownChevronIcon as O } from "./index.es42.js";
3
- import { forwardRef as F, useState as P } from "react";
4
- import { useLocale as R } from "react-aria";
5
- import { Select as _, Button as k, SelectValue as z, FieldError as A, Popover as D, ListBox as G } from "react-aria-components";
6
- import { cn as s } from "./index.es41.js";
7
- import "./index.es13.js";
8
- import { Label as H } from "./index.es14.js";
9
- import { invisibleInputLabelVariants as J, invisibleInputCaptionVariants as K } from "./index.es58.js";
10
- import { invisibleSelectContainerVariants as M, invisibleSelectButtonVariants as Q, invisibleSelectValueVariants as T, invisibleSelectChevronVariants as U, invisibleSelectPopoverVariants as W, invisibleSelectListBoxVariants as X } from "./index.es53.js";
11
- const Y = ({
12
- size: a = "bodyDefault",
13
- orientation: o = "vertical",
14
- label: f,
15
- placeholder: x = "Select an option",
16
- captionError: r,
17
- validationState: l,
18
- className: d,
19
- buttonClassName: h,
20
- labelClassName: b,
21
- captionErrorClassName: j,
22
- isDisabled: c = !1,
23
- isRequired: v = !1,
24
- tooltipText: N,
25
- tooltipSupportText: V,
26
- tooltipProps: S,
27
- items: I,
28
- selectionMode: C,
29
- children: L,
30
- ...B
31
- }, g) => {
32
- const [p, w] = P(!1), u = (i, t, n) => c ? "disabled" : l === "invalid" ? "error" : t || n || p ? "active" : i ? "hover" : "default", { locale: y } = R();
33
- return /* @__PURE__ */ e.jsxs(
34
- _,
35
- {
36
- className: s(M({ size: a, orientation: o }), d),
37
- isDisabled: c,
38
- lang: y,
39
- isInvalid: l === "invalid",
40
- isRequired: v,
41
- selectionMode: C,
42
- onOpenChange: w,
43
- ...B,
44
- children: [
45
- f && /* @__PURE__ */ e.jsx(
46
- H,
47
- {
48
- labelClassName: s(
49
- J({ size: a }),
50
- b,
51
- o === "horizontal" && l !== "invalid" ? "self-center" : "self-start"
52
- ),
53
- isRequired: v,
54
- tooltipText: N,
55
- tooltipSupportText: V,
56
- tooltipProps: S,
57
- children: f
58
- }
2
+ import { forwardRef as K, useState as x } from "react";
3
+ import { useFilter as Q, Select as U, Label as W, FieldError as X, Popover as Y } from "react-aria-components";
4
+ import { cn as r } from "./index.es41.js";
5
+ import { PopoverContent as Z } from "./index.es67.js";
6
+ import { InvisibleSelectContent as _ } from "./index.es17.js";
7
+ import { invisibleSelectContainerVariants as $, invisibleSelectLabelVariants as ee, invisibleSelectCaptionVariants as ae, invisibleSelectPopoverVariants as le } from "./index.es57.js";
8
+ const ie = (C, N) => {
9
+ const {
10
+ size: c = "xs",
11
+ orientation: d = "vertical",
12
+ label: p,
13
+ items: y,
14
+ selectionMode: i = "single",
15
+ value: b,
16
+ defaultValue: v,
17
+ placeholder: j = "Selecciona",
18
+ captionError: t,
19
+ validationState: s,
20
+ className: I,
21
+ buttonClassName: V,
22
+ labelClassName: g,
23
+ captionErrorClassName: L,
24
+ popoverClassName: O,
25
+ classNameSearchField: A,
26
+ classNameSearchFieldInput: E,
27
+ isDisabled: h = !1,
28
+ onChange: n,
29
+ maxLengthTextOption: F = 18,
30
+ placeholderSearch: P = "Search",
31
+ enableSearch: z = !1,
32
+ "aria-label": D,
33
+ "aria-labelledby": B,
34
+ "aria-describedby": R,
35
+ id: M,
36
+ name: T
37
+ } = C, { contains: k } = Q({ sensitivity: "base" }), [u, m] = x(!1), [q, S] = x(() => v !== void 0 ? v : i === "multiple" ? [] : null), f = b !== void 0, o = f ? b : q, w = (l) => {
38
+ if (i === "multiple" && o && Array.isArray(o)) {
39
+ const a = o.filter((J) => J !== l);
40
+ f || S(a), n && n(a);
41
+ }
42
+ }, G = (l) => {
43
+ let a;
44
+ i === "multiple" ? a = l instanceof Set ? Array.from(l) : l : (a = l, m(!1)), f || S(a), n && n(a);
45
+ }, H = {
46
+ className: r($({ size: c, orientation: d }), I),
47
+ selectionMode: i,
48
+ isDisabled: h,
49
+ isInvalid: s === "invalid",
50
+ value: o,
51
+ "aria-label": D,
52
+ "aria-labelledby": B,
53
+ "aria-describedby": R,
54
+ id: M,
55
+ name: T,
56
+ onChange: G
57
+ };
58
+ return /* @__PURE__ */ e.jsxs(U, { ...H, children: [
59
+ p && /* @__PURE__ */ e.jsx(
60
+ W,
61
+ {
62
+ className: r(
63
+ ee({ size: c }),
64
+ g,
65
+ d === "horizontal" && s !== "invalid" ? "self-center" : "self-start"
59
66
  ),
60
- /* @__PURE__ */ e.jsxs("div", { className: s("flex flex-col", o === "horizontal" ? "flex-1" : "w-full"), children: [
61
- /* @__PURE__ */ e.jsx(
62
- k,
63
- {
64
- ref: g,
65
- className: ({ isHovered: i, isFocusVisible: t, isFocused: n }) => s(
66
- Q({
67
- size: a,
68
- state: u(i, t, n)
69
- }),
70
- h
71
- ),
72
- children: ({ isHovered: i, isFocusVisible: t, isFocused: n }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
73
- /* @__PURE__ */ e.jsx(
74
- z,
75
- {
76
- className: ({ selectedText: m }) => s(
77
- T({
78
- hasValue: !!m,
79
- isDisabled: c
80
- })
81
- ),
82
- children: ({ selectedText: m }) => m || x
83
- }
84
- ),
85
- /* @__PURE__ */ e.jsx(
86
- O,
87
- {
88
- className: s(
89
- U({
90
- state: u(i, t, n),
91
- isOpen: p
92
- })
93
- )
94
- }
95
- )
96
- ] })
97
- }
67
+ children: p
68
+ }
69
+ ),
70
+ /* @__PURE__ */ e.jsxs("div", { className: r("flex flex-col", d === "horizontal" ? "flex-1" : "w-full"), children: [
71
+ /* @__PURE__ */ e.jsx(
72
+ _,
73
+ {
74
+ ref: N,
75
+ isOpen: u,
76
+ setIsOpen: m,
77
+ size: c,
78
+ isDisabled: h,
79
+ buttonClassName: V,
80
+ selectionMode: i,
81
+ maxLengthTextOption: F,
82
+ handleDeleteOptionSelected: w,
83
+ placeholder: j,
84
+ validationState: s
85
+ }
86
+ ),
87
+ t && s === "invalid" && /* @__PURE__ */ e.jsx(
88
+ "div",
89
+ {
90
+ className: r(
91
+ ae({
92
+ state: "error"
93
+ }),
94
+ L
98
95
  ),
99
- r && l === "invalid" && /* @__PURE__ */ e.jsx(
100
- "div",
101
- {
102
- className: s(
103
- K({
104
- state: "error"
105
- }),
106
- j
107
- ),
108
- children: r
109
- }
110
- )
111
- ] }),
112
- l === "invalid" && r && /* @__PURE__ */ e.jsx(A, { className: "sr-only", children: r }),
113
- /* @__PURE__ */ e.jsx(D, { className: s(W()), placement: "bottom start", children: /* @__PURE__ */ e.jsx(G, { items: I, className: s(X()), children: L }) })
114
- ]
115
- }
116
- );
117
- }, Z = F(Y);
118
- Z.displayName = "InvisibleSelect";
96
+ children: t
97
+ }
98
+ )
99
+ ] }),
100
+ s === "invalid" && t && /* @__PURE__ */ e.jsx(X, { className: "sr-only", children: t }),
101
+ /* @__PURE__ */ e.jsx(
102
+ Y,
103
+ {
104
+ className: r(le(), O),
105
+ isOpen: u,
106
+ onOpenChange: m,
107
+ children: /* @__PURE__ */ e.jsx(
108
+ Z,
109
+ {
110
+ enableSearch: z,
111
+ contains: k,
112
+ classNameSearchField: A,
113
+ classNameSearchFieldInput: E,
114
+ placeholderSearch: P,
115
+ items: y
116
+ }
117
+ )
118
+ }
119
+ )
120
+ ] });
121
+ }, me = K(ie);
119
122
  export {
120
- Z as InvisibleSelect
123
+ me as InvisibleSelect
121
124
  };
@@ -1,45 +1,80 @@
1
1
  import { j as e } from "./index.es40.js";
2
- import { ListBoxItem as a } from "react-aria-components";
3
- import { cn as i } from "./index.es41.js";
4
- import { invisibleSelectItemVariants as c } from "./index.es53.js";
5
- const j = (r) => {
6
- const { children: s, textValue: l, ...n } = r, m = l || (typeof s == "string" ? s : void 0);
7
- return /* @__PURE__ */ e.jsx(
8
- a,
2
+ import { CrossCircleIcon as w, DownChevronIcon as B } from "./index.es42.js";
3
+ import { Button as u, SelectValue as C } from "react-aria-components";
4
+ import { cn as l } from "./index.es41.js";
5
+ import { invisibleSelectButtonVariants as V, invisibleSelectBadgeVariants as I } from "./index.es57.js";
6
+ const F = ({
7
+ ref: x,
8
+ isOpen: o,
9
+ setIsOpen: f,
10
+ size: a,
11
+ isDisabled: r,
12
+ buttonClassName: d,
13
+ selectionMode: h,
14
+ maxLengthTextOption: c,
15
+ handleDeleteOptionSelected: j,
16
+ placeholder: p,
17
+ validationState: v
18
+ }) => {
19
+ const N = (t, n) => r ? "disabled" : v === "invalid" ? "error" : n || o ? "active" : t ? "hover" : "default";
20
+ return /* @__PURE__ */ e.jsxs(
21
+ u,
9
22
  {
10
- ...n,
11
- textValue: m,
12
- className: ({ isHovered: t, isFocusVisible: o, isSelected: x }) => i(
13
- c({
14
- isSelected: x,
15
- isHovered: t,
16
- isFocusVisible: o
17
- })
23
+ ref: x,
24
+ className: ({ isHovered: t, isFocusVisible: n }) => l(
25
+ V({
26
+ size: a,
27
+ state: N(t, n)
28
+ }),
29
+ d
18
30
  ),
19
- children: ({ isSelected: t }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
20
- /* @__PURE__ */ e.jsx(
31
+ onPress: () => f(!o),
32
+ children: [
33
+ /* @__PURE__ */ e.jsx(C, { className: "flex flex-1 items-center gap-1 overflow-hidden", children: ({ selectedItems: t, selectedText: n, isPlaceholder: g }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: h === "multiple" && t && t.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1", children: t.filter((s) => s != null).map((s) => {
34
+ const i = s.label, S = i.length > c ? `${i.slice(0, c)}...` : i, m = s.value;
35
+ return /* @__PURE__ */ e.jsxs("div", { className: l(I({ size: a, isDisabled: r })), children: [
36
+ /* @__PURE__ */ e.jsx("span", { children: S }),
37
+ /* @__PURE__ */ e.jsx(
38
+ u,
39
+ {
40
+ className: l("outline-none", r ? "cursor-not-allowed" : ""),
41
+ isDisabled: r,
42
+ slot: null,
43
+ onPress: () => j(m),
44
+ children: /* @__PURE__ */ e.jsx(
45
+ w,
46
+ {
47
+ className: l(
48
+ "text-primary-800",
49
+ r ? "text-neutral-600" : "",
50
+ a === "xs" || a === "sm" ? "size-3" : "size-4"
51
+ )
52
+ }
53
+ )
54
+ }
55
+ )
56
+ ] }, m);
57
+ }) }) : /* @__PURE__ */ e.jsx(
21
58
  "span",
22
59
  {
23
- className: i(
24
- "flex flex-1 items-center gap-2 text-sm font-normal text-primary-900",
25
- t && "text-primary-500"
60
+ className: l(
61
+ "flex-1 truncate text-left",
62
+ g ? "text-neutral-600" : "",
63
+ r ? "text-neutral-700" : ""
26
64
  ),
27
- children: s
65
+ children: n || p
28
66
  }
29
- ),
30
- /* @__PURE__ */ e.jsx("span", { className: "flex w-5 shrink-0 items-center", children: t && /* @__PURE__ */ e.jsx("svg", { width: "14", height: "13", viewBox: "0 0 14 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e.jsx(
31
- "path",
67
+ ) }) }),
68
+ /* @__PURE__ */ e.jsx(
69
+ B,
32
70
  {
33
- fillRule: "evenodd",
34
- clipRule: "evenodd",
35
- d: "M13.2241 0.601824C13.4808 0.780773 13.5439 1.13398 13.365 1.39073L5.69829 12.3907C5.59653 12.5367 5.43209 12.6264 5.25425 12.633C5.07641 12.6395 4.90582 12.5622 4.79359 12.4241L0.460261 7.09072C0.26291 6.84783 0.299829 6.49094 0.542723 6.29358C0.785617 6.09623 1.14251 6.13315 1.33986 6.37605L5.19872 11.1254L12.4352 0.7427C12.6141 0.485948 12.9673 0.422875 13.2241 0.601824Z",
36
- fill: "#4C3BEF"
71
+ className: `${o ? "rotate-180" : ""} size-4 text-blue-900 transition-transform duration-100`
37
72
  }
38
- ) }) })
39
- ] })
73
+ )
74
+ ]
40
75
  }
41
76
  );
42
77
  };
43
78
  export {
44
- j as InvisibleSelectItem
79
+ F as InvisibleSelectContent
45
80
  };
@@ -5,10 +5,10 @@ import { TimeField as S, Group as U, DateInput as W, Button as X, FieldError as
5
5
  import { cn as s } from "./index.es41.js";
6
6
  import "./index.es13.js";
7
7
  import { Label as Z } from "./index.es14.js";
8
- import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.es58.js";
8
+ import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.es62.js";
9
9
  import { TimePickerPopover as z } from "./index.es19.js";
10
10
  import { TimeSegment as ee } from "./index.es20.js";
11
- import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.es54.js";
11
+ import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.es58.js";
12
12
  const re = K(
13
13
  ({
14
14
  size: l = "bodyDefault",
@@ -4,7 +4,7 @@ import { useRef as M, useState as P, useCallback as d, useEffect as j } from "re
4
4
  import { Popover as $, ListBox as k, ListBoxItem as N } from "react-aria-components";
5
5
  import { cn as x } from "./index.es41.js";
6
6
  import { Button as H } from "./index.es5.js";
7
- import { timePickerListItemVariants as A } from "./index.es54.js";
7
+ import { timePickerListItemVariants as A } from "./index.es58.js";
8
8
  function U(C) {
9
9
  const { isOpen: i, onOpenChange: a, value: r, onChange: h, hourCycle: l = 12, containerRef: K, confirmButtonLabel: R } = C, y = M(null), g = M(null), S = M(null), [s, b] = P((r == null ? void 0 : r.hour) ?? 0), [m, v] = P((r == null ? void 0 : r.minute) ?? 0), V = Array.from({ length: l === 12 ? 12 : 24 }, (e, t) => l === 12 ? t + 1 : t), E = Array.from({ length: 60 }, (e, t) => t), f = l === 12 ? s === 0 ? 12 : s > 12 ? s - 12 : s : s, T = s >= 12 ? "PM" : "AM", [u, L] = P(T), w = d(() => {
10
10
  const e = new O(s, m, 0);
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
2
2
  import { forwardRef as x } from "react";
3
3
  import { cn as y } from "./index.es41.js";
4
4
  import { Loader as f } from "./index.es21.js";
5
- import { Overlay as u } from "./index.es68.js";
5
+ import { Overlay as u } from "./index.es69.js";
6
6
  const v = (s, a) => {
7
7
  const {
8
8
  className: l,