@humain/ui 2.4.2 → 2.4.4

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 (159) hide show
  1. package/dist/index194.js +6 -8
  2. package/dist/index194.js.map +1 -1
  3. package/dist/index225.js +1 -1
  4. package/dist/index225.js.map +1 -1
  5. package/dist/index24.js +1 -1
  6. package/dist/index24.js.map +1 -1
  7. package/dist/styles.css +1 -1
  8. package/dist/wc/AIClarificationCard.js +1 -1
  9. package/dist/wc/AIContainer.js +1 -1
  10. package/dist/wc/AIForm.js +17 -17
  11. package/dist/wc/AIInput.js +1 -1
  12. package/dist/wc/AIMermaidDiagram.js +1 -1
  13. package/dist/wc/AIMessage.js +1 -1
  14. package/dist/wc/AIScrollButton.js +4 -4
  15. package/dist/wc/AIToolCall.js +5 -5
  16. package/dist/wc/AppSidebar.constants.js +1 -1
  17. package/dist/wc/AvatarFallback.js +5 -5
  18. package/dist/wc/CheckboxIndicator.js +7 -7
  19. package/dist/wc/CollapsiblePanel.js +1 -1
  20. package/dist/wc/DialogTrigger.js +9 -9
  21. package/dist/wc/DropdownMenu.js +16 -16
  22. package/dist/wc/MenuSubmenuTrigger.js +31 -31
  23. package/dist/wc/PopoverDescription.js +30 -30
  24. package/dist/wc/PrehydrationScript.js +1 -1
  25. package/dist/wc/Select.js +18 -18
  26. package/dist/wc/SelectSeparator.js +72 -72
  27. package/dist/wc/SelectSeparator.js.map +1 -1
  28. package/dist/wc/Tabs.js +18 -18
  29. package/dist/wc/TooltipProvider.js +9 -9
  30. package/dist/wc/chart.js +1 -1
  31. package/dist/wc/chunk-75Z2AOVW.js +39 -39
  32. package/dist/wc/chunk-OSK3NFVY.js +32 -32
  33. package/dist/wc/command.js +4 -4
  34. package/dist/wc/form-field.js +1 -1
  35. package/dist/wc/form-fieldset.js +5 -5
  36. package/dist/wc/hf-accordion-card.js +4 -4
  37. package/dist/wc/hf-accordion.js +6 -6
  38. package/dist/wc/hf-ai-feedback-bar.js +5 -5
  39. package/dist/wc/hf-ai-reasoning-block.js +6 -6
  40. package/dist/wc/hf-ai-system-message.js +1 -1
  41. package/dist/wc/hf-ai-tool-run.js +1 -1
  42. package/dist/wc/hf-app-sidebar.js +1 -1
  43. package/dist/wc/hf-app-sidebar.js.map +1 -1
  44. package/dist/wc/hf-area-chart.js +15 -15
  45. package/dist/wc/hf-autocomplete.js +36 -36
  46. package/dist/wc/hf-bar-chart.js +4 -4
  47. package/dist/wc/hf-calendar.js +4 -4
  48. package/dist/wc/hf-carousel.js +1 -1
  49. package/dist/wc/hf-context-menu.js +8 -8
  50. package/dist/wc/hf-donut-chart.js +10 -10
  51. package/dist/wc/hf-empty-state.js +87 -88
  52. package/dist/wc/hf-empty-state.js.map +1 -1
  53. package/dist/wc/hf-history.js +4 -4
  54. package/dist/wc/hf-horizontal-bar-chart.js +7 -7
  55. package/dist/wc/hf-hover-card.js +6 -6
  56. package/dist/wc/hf-line-chart.js +4 -4
  57. package/dist/wc/hf-metric-card.js +5 -5
  58. package/dist/wc/hf-metric-item.js +8 -8
  59. package/dist/wc/hf-metric-item.js.map +1 -1
  60. package/dist/wc/hf-nav-account-menu.js +4 -4
  61. package/dist/wc/hf-notification-panel.js +2 -2
  62. package/dist/wc/hf-pie-chart.js +17 -17
  63. package/dist/wc/hf-radar-chart.js +16 -16
  64. package/dist/wc/hf-section-header.js +6 -6
  65. package/dist/wc/hf-sheet.js +1 -1
  66. package/dist/wc/hf-sparkline-chart.js +5 -5
  67. package/dist/wc/hf-steps.js +6 -6
  68. package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
  69. package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
  70. package/dist/wc/popupStateMapping.js +53 -53
  71. package/dist/wc/popupStateMapping.js.map +1 -1
  72. package/dist/wc/selection-group.js +1 -1
  73. package/dist/wc/selection-group.js.map +1 -1
  74. package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
  75. package/dist/wc/stateAttributesMapping.js.map +1 -0
  76. package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
  77. package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
  78. package/dist/wc/useCollapsiblePanel.js +3 -3
  79. package/dist/wc/usePopupHandleStore.js +4 -4
  80. package/dist/wc/useScrollLock.js +1 -1
  81. package/dist/wc/vendor/recharts.js +525 -524
  82. package/dist/wc/vendor/recharts.js.map +1 -1
  83. package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
  84. package/dist/wc-react/AIClarificationCard.js +1 -1
  85. package/dist/wc-react/AIContainer.js +1 -1
  86. package/dist/wc-react/AIForm.js +17 -17
  87. package/dist/wc-react/AIInput.js +1 -1
  88. package/dist/wc-react/AIMermaidDiagram.js +1 -1
  89. package/dist/wc-react/AIMessage.js +1 -1
  90. package/dist/wc-react/AIScrollButton.js +4 -4
  91. package/dist/wc-react/AIToolCall.js +5 -5
  92. package/dist/wc-react/AppSidebar.constants.js +1 -1
  93. package/dist/wc-react/AvatarFallback.js +5 -5
  94. package/dist/wc-react/CheckboxIndicator.js +7 -7
  95. package/dist/wc-react/CollapsiblePanel.js +1 -1
  96. package/dist/wc-react/DialogTrigger.js +9 -9
  97. package/dist/wc-react/DropdownMenu.js +16 -16
  98. package/dist/wc-react/FloatingPortalLite.js +3 -3
  99. package/dist/wc-react/MenuSubmenuTrigger.js +31 -31
  100. package/dist/wc-react/PopoverDescription.js +31 -31
  101. package/dist/wc-react/PrehydrationScript.js +1 -1
  102. package/dist/wc-react/Select.js +18 -18
  103. package/dist/wc-react/SelectSeparator.js +71 -70
  104. package/dist/wc-react/SelectSeparator.js.map +1 -1
  105. package/dist/wc-react/Tabs.js +18 -18
  106. package/dist/wc-react/TooltipProvider.js +9 -9
  107. package/dist/wc-react/chart.js +1 -1
  108. package/dist/wc-react/chunk-75Z2AOVW.js +39 -39
  109. package/dist/wc-react/chunk-OSK3NFVY.js +32 -32
  110. package/dist/wc-react/command.js +4 -4
  111. package/dist/wc-react/form-field.js +1 -1
  112. package/dist/wc-react/form-fieldset.js +77 -77
  113. package/dist/wc-react/hf-accordion-card.js +4 -4
  114. package/dist/wc-react/hf-accordion.js +6 -6
  115. package/dist/wc-react/hf-ai-feedback-bar.js +5 -5
  116. package/dist/wc-react/hf-ai-reasoning-block.js +6 -6
  117. package/dist/wc-react/hf-ai-system-message.js +1 -1
  118. package/dist/wc-react/hf-ai-tool-run.js +1 -1
  119. package/dist/wc-react/hf-app-sidebar.js +1 -1
  120. package/dist/wc-react/hf-app-sidebar.js.map +1 -1
  121. package/dist/wc-react/hf-autocomplete.js +37 -37
  122. package/dist/wc-react/hf-calendar.js +4 -4
  123. package/dist/wc-react/hf-carousel.js +1 -1
  124. package/dist/wc-react/hf-context-menu.js +8 -8
  125. package/dist/wc-react/hf-data-table.js +1 -1
  126. package/dist/wc-react/hf-empty-state.js +87 -88
  127. package/dist/wc-react/hf-empty-state.js.map +1 -1
  128. package/dist/wc-react/hf-history.js +4 -4
  129. package/dist/wc-react/hf-hover-card.js +6 -6
  130. package/dist/wc-react/hf-metric-item.js +6 -6
  131. package/dist/wc-react/hf-metric-item.js.map +1 -1
  132. package/dist/wc-react/hf-nav-account-menu.js +4 -4
  133. package/dist/wc-react/hf-notification-panel.js +2 -2
  134. package/dist/wc-react/hf-section-header.js +6 -6
  135. package/dist/wc-react/hf-sheet.js +1 -1
  136. package/dist/wc-react/hf-steps.js +5 -5
  137. package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
  138. package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
  139. package/dist/wc-react/popupStateMapping.js +54 -54
  140. package/dist/wc-react/popupStateMapping.js.map +1 -1
  141. package/dist/wc-react/selection-group.js +1 -1
  142. package/dist/wc-react/selection-group.js.map +1 -1
  143. package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
  144. package/dist/wc-react/stateAttributesMapping.js.map +1 -0
  145. package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
  146. package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
  147. package/dist/wc-react/useCollapsiblePanel.js +3 -3
  148. package/dist/wc-react/usePopupHandleStore.js +3 -3
  149. package/dist/wc-react/useScrollLock.js +1 -1
  150. package/dist/wc-react/vendor/recharts.js +525 -524
  151. package/dist/wc-react/vendor/recharts.js.map +1 -1
  152. package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
  153. package/package.json +1 -1
  154. package/skills/humain-ui/SKILL.md +1 -1
  155. package/skills/humain-ui-wc/SKILL.md +1 -1
  156. package/skills/humain-ui-wc.skill +0 -0
  157. package/skills/humain-ui.skill +0 -0
  158. package/dist/wc/useOpenChangeComplete.js.map +0 -1
  159. package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
@@ -26,21 +26,28 @@ import { n as xo, t as yo } from "./visuallyHidden.js";
26
26
  import { a as bo } from "./composite2.js";
27
27
  import { t as Ro } from "./CSPContext.js";
28
28
  import { t as Pt } from "./useLabelableId.js";
29
+ import { a as Io, c as To, d as wo, i as Mo, l as Ze, m as Ao, o as _e, p as Co, r as Eo, s as tt, t as Po } from "./resolveValueLabel.js";
30
+ import { n as Qe } from "./useTimeout.js";
31
+ import { a as Vo, n as Lo, o as Ho, r as Oo } from "./useScrollLock.js";
32
+ import { a as ht, n as St, r as st } from "./stateAttributesMapping.js";
33
+ import { i as Fo, n as Uo, r as Do, t as Bo } from "./usePositioner.js";
34
+ import { n as No, t as ko } from "./useTypeahead.js";
29
35
  import { t as Vt } from "./useButton.js";
30
- import { t as Io } from "./isElementDisabled.js";
31
- import { t as To } from "./ToolbarRootContext.js";
32
- import { a as ht, o as St, t as st } from "./useOpenChangeComplete.js";
33
- import { n as Ze } from "./useTimeout.js";
34
- import { a as wo, c as Mo, d as Ao, i as Co, l as Qe, m as Eo, o as _e, p as Po, r as Vo, s as tt, t as Lo } from "./resolveValueLabel.js";
35
- import { a as Ho, n as Oo, o as Fo, r as Uo } from "./useScrollLock.js";
36
- import { i as Do, n as Bo, r as No, t as ko } from "./usePositioner.js";
37
- import { n as _o, t as Wo } from "./useTypeahead.js";
36
+ import { t as _o } from "./getPseudoElementBounds.js";
37
+ import { t as Wo } from "./inertValue.js";
38
+ import { t as jo } from "./useAnchoredPopupScrollLock.js";
39
+ import { t as qo } from "./isElementDisabled.js";
40
+ import { t as Yo } from "./ToolbarRootContext.js";
38
41
  import { n as vt, r as ot, t as gt } from "./styles.js";
39
- import { t as jo } from "./getPseudoElementBounds.js";
40
- import { t as qo } from "./inertValue.js";
41
- import { t as Yo } from "./useAnchoredPopupScrollLock.js";
42
- var o = /* @__PURE__ */ Nt(kt(), 1);
43
- function zo(e) {
42
+ var te = _t(), o = /* @__PURE__ */ Nt(kt(), 1), zo = /* @__PURE__ */ o.forwardRef(function(t, l) {
43
+ const { className: u, render: w, orientation: M = "horizontal", style: d, ...m } = t;
44
+ return ce("div", t, {
45
+ state: { orientation: M },
46
+ ref: l,
47
+ props: [{ role: "presentation" }, m]
48
+ });
49
+ });
50
+ function $o(e) {
44
51
  const [t, l] = o.useState({
45
52
  current: e,
46
53
  previous: null
@@ -68,7 +75,7 @@ var r = {
68
75
  const { value: t, multiple: l, itemToStringValue: u } = e;
69
76
  return t == null ? !1 : l && Array.isArray(t) ? t.length > 0 : _e(t, u) !== "";
70
77
  },
71
- hasNullItemLabel: (e, t) => t ? Lo(e.items) : !1,
78
+ hasNullItemLabel: (e, t) => t ? Po(e.items) : !1,
72
79
  open: (e) => e.open,
73
80
  mounted: (e) => e.mounted,
74
81
  forceMount: (e) => e.forceMount,
@@ -91,9 +98,9 @@ var r = {
91
98
  scrollUpArrowVisible: (e) => e.scrollUpArrowVisible,
92
99
  scrollDownArrowVisible: (e) => e.scrollDownArrowVisible,
93
100
  hasScrollArrows: (e) => e.hasScrollArrows
94
- }, te = _t();
101
+ };
95
102
  function $n(e) {
96
- const { id: t, value: l, defaultValue: u = null, onValueChange: w, open: M, defaultOpen: d = !1, onOpenChange: m, name: a, form: i, autoComplete: f, disabled: h = !1, readOnly: R = !1, required: g = !1, modal: C = !0, actionsRef: k, inputRef: x, onOpenChangeComplete: q, items: U, multiple: I = !1, itemToStringLabel: y, itemToStringValue: L, isItemEqualToValue: _ = Mo, highlightItemOnHover: H = !0, children: Y } = e, { clearErrors: O } = go(), { setDirty: ue, setTouched: W, setFocused: ee, validityData: K, setFilled: T, name: E, disabled: $, validation: P, validationMode: oe } = Ct(), X = Pt({ id: t }), V = $ || h, n = E ?? a, [p, J] = It({
103
+ const { id: t, value: l, defaultValue: u = null, onValueChange: w, open: M, defaultOpen: d = !1, onOpenChange: m, name: a, form: i, autoComplete: f, disabled: h = !1, readOnly: R = !1, required: g = !1, modal: C = !0, actionsRef: k, inputRef: x, onOpenChangeComplete: q, items: U, multiple: I = !1, itemToStringLabel: y, itemToStringValue: L, isItemEqualToValue: _ = To, highlightItemOnHover: H = !0, children: Y } = e, { clearErrors: O } = go(), { setDirty: ue, setTouched: W, setFocused: ee, validityData: K, setFilled: T, name: E, disabled: $, validation: P, validationMode: oe } = Ct(), X = Pt({ id: t }), V = $ || h, n = E ?? a, [p, J] = It({
97
104
  controlled: l,
98
105
  default: I ? u ?? Tt : u,
99
106
  name: "Select",
@@ -107,7 +114,7 @@ function $n(e) {
107
114
  allowSelectedMouseUp: !1,
108
115
  allowUnselectedMouseUp: !1,
109
116
  dragY: 0
110
- }), se = o.useRef(!1), { mounted: ie, setMounted: fe, transitionStatus: F } = St(D), { openMethod: G, triggerProps: pe } = Uo(D), A = jt(() => new no({
117
+ }), se = o.useRef(!1), { mounted: ie, setMounted: fe, transitionStatus: F } = ht(D), { openMethod: G, triggerProps: pe } = Oo(D), A = jt(() => new no({
111
118
  id: X,
112
119
  labelId: void 0,
113
120
  modal: C,
@@ -133,7 +140,7 @@ function $n(e) {
133
140
  scrollUpArrowVisible: !1,
134
141
  scrollDownArrowVisible: !1,
135
142
  hasScrollArrows: !1
136
- })).current, we = s(A, r.activeIndex), ye = s(A, r.selectedIndex), be = s(A, r.triggerElement), ae = s(A, r.positionerElement), Ve = zo(G), Le = G ?? Ve, le = o.useMemo(() => I ? "" : _e(p, L), [
143
+ })).current, we = s(A, r.activeIndex), ye = s(A, r.selectedIndex), be = s(A, r.triggerElement), ae = s(A, r.positionerElement), Ve = $o(G), Le = G ?? Ve, le = o.useMemo(() => I ? "" : _e(p, L), [
137
144
  I,
138
145
  p,
139
146
  L
@@ -152,7 +159,7 @@ function $n(e) {
152
159
  const Oe = Array.isArray(p) ? p : [];
153
160
  Ie = Oe.length === 0, N = Oe[Oe.length - 1];
154
161
  }
155
- const Ee = Ie ? -1 : Qe(z.current, N, _), Pe = Ee === -1 ? null : Ee;
162
+ const Ee = Ie ? -1 : Ze(z.current, N, _), Pe = Ee === -1 ? null : Ee;
156
163
  Pe === null && (Z.current = null), !D && A.set("selectedIndex", Pe);
157
164
  }, [
158
165
  I,
@@ -191,17 +198,17 @@ function $n(e) {
191
198
  }), ge = Fe((v) => {
192
199
  const N = vt(v.scrollHeight, v.clientHeight), Ie = ot(v.scrollTop, N), Ee = Ie > 0, Pe = Ie < N;
193
200
  A.set("scrollUpArrowVisible", Ee), A.set("scrollDownArrowVisible", Pe);
194
- }), Ae = Po({
201
+ }), Ae = Co({
195
202
  open: D,
196
203
  onOpenChange: Ue,
197
204
  elements: {
198
205
  reference: be,
199
206
  floating: ae
200
207
  }
201
- }), Be = Ho(Ae, {
208
+ }), Be = Vo(Ae, {
202
209
  enabled: !R && !V,
203
210
  event: "mousedown"
204
- }), Ne = ao(Ae), Ce = _o(Ae, {
211
+ }), Ne = ao(Ae), Ce = No(Ae, {
205
212
  enabled: !R && !V,
206
213
  listRef: c,
207
214
  activeIndex: we,
@@ -211,12 +218,12 @@ function $n(e) {
211
218
  v === null && !D || A.set("activeIndex", v);
212
219
  },
213
220
  focusItemOnHover: H
214
- }), He = Wo(Ae, {
221
+ }), He = ko(Ae, {
215
222
  enabled: !R && !V && (D || !I),
216
223
  listRef: S,
217
224
  activeIndex: we,
218
225
  selectedIndex: ye,
219
- disabledIndices: (v) => Io(c.current[v]),
226
+ disabledIndices: (v) => qo(c.current[v]),
220
227
  onMatch(v) {
221
228
  D ? A.set("activeIndex", v) : Me(z.current[v], Te(et));
222
229
  },
@@ -234,7 +241,7 @@ function $n(e) {
234
241
  Ce.floating,
235
242
  Ne.floating
236
243
  ]), $e = Ce.item ?? qt;
237
- Eo(() => {
244
+ Ao(() => {
238
245
  A.update({
239
246
  popupProps: ze,
240
247
  triggerProps: Ye
@@ -328,7 +335,7 @@ function $n(e) {
328
335
  function Ee() {
329
336
  if (I) return;
330
337
  const Pe = N.toLowerCase();
331
- let Oe = z.current.findIndex((ct) => _e(ct, L).toLowerCase() === Pe || wo(ct, y).toLowerCase() === Pe);
338
+ let Oe = z.current.findIndex((ct) => _e(ct, L).toLowerCase() === Pe || Io(ct, y).toLowerCase() === Pe);
332
339
  Oe === -1 && (Oe = z.current.findIndex((ct, Bt) => {
333
340
  const Rt = S.current[Bt];
334
341
  return Rt != null && Rt.toLowerCase() === Pe;
@@ -357,7 +364,7 @@ function $n(e) {
357
364
  ]
358
365
  });
359
366
  }
360
- var $o = 400, Go = {
367
+ var Go = 400, Ko = {
361
368
  ...lo,
362
369
  ...ho,
363
370
  popupSide: (e) => e ? { "data-popup-side": e } : null,
@@ -368,10 +375,10 @@ var $o = 400, Go = {
368
375
  const p = Et(K), J = o.useRef(null), { getButtonProps: D, buttonRef: ne } = Vt({
369
376
  disabled: Y,
370
377
  native: m
371
- }), c = x.useStateSetter("triggerElement"), S = Ze(), B = Ze(), Q = Ze();
378
+ }), c = x.useStateSetter("triggerElement"), S = Qe(), B = Qe(), Q = Qe();
372
379
  o.useEffect(() => {
373
380
  if (O)
374
- return Q.start($o, () => {
381
+ return Q.start(Go, () => {
375
382
  U.current.allowUnselectedMouseUp = !0, U.current.allowSelectedMouseUp = !0;
376
383
  }), () => {
377
384
  Q.clear();
@@ -411,7 +418,7 @@ var $o = 400, Go = {
411
418
  function Z(re) {
412
419
  if (!J.current) return;
413
420
  const se = re.target;
414
- ft(J.current, se) || ft(p.current, se) || jo(re, J.current) || q(!1, Te($t, re));
421
+ ft(J.current, se) || ft(p.current, se) || _o(re, J.current) || q(!1, Te($t, re));
415
422
  }
416
423
  B.start(0, () => {
417
424
  de.addEventListener("mouseup", Z, { once: !0 });
@@ -436,20 +443,20 @@ var $o = 400, Go = {
436
443
  c
437
444
  ],
438
445
  state: z,
439
- stateAttributesMapping: Go,
446
+ stateAttributesMapping: Ko,
440
447
  props: b
441
448
  });
442
- }), Ko = { value: () => null }, Kn = /* @__PURE__ */ o.forwardRef(function(t, l) {
449
+ }), Xo = { value: () => null }, Kn = /* @__PURE__ */ o.forwardRef(function(t, l) {
443
450
  const { className: u, render: w, children: M, placeholder: d, style: m, ...a } = t, { store: i, valueRef: f } = ve(), h = s(i, r.value), R = s(i, r.items), g = s(i, r.itemToStringLabel), C = s(i, r.hasSelectedValue), k = !C && d != null && M == null, x = s(i, r.hasNullItemLabel, k), q = {
444
451
  value: h,
445
452
  placeholder: !C
446
453
  };
447
454
  let U = null;
448
- return typeof M == "function" ? U = M(h) : M != null ? U = M : k && !x ? U = d : Array.isArray(h) ? U = Vo(h, R, g) : U = Co(h, R, g), ce("span", t, {
455
+ return typeof M == "function" ? U = M(h) : M != null ? U = M : k && !x ? U = d : Array.isArray(h) ? U = Eo(h, R, g) : U = Mo(h, R, g), ce("span", t, {
449
456
  state: q,
450
457
  ref: [l, f],
451
458
  props: [{ children: U }, a],
452
- stateAttributesMapping: Ko
459
+ stateAttributesMapping: Xo
453
460
  });
454
461
  }), Xn = /* @__PURE__ */ o.forwardRef(function(t, l) {
455
462
  const { render: u, className: w, style: M, ...d } = t, { store: m } = ve(), a = { open: s(m, r.open) };
@@ -482,10 +489,10 @@ var Ot = {
482
489
  maxHeight: "100%",
483
490
  overflowX: "hidden",
484
491
  overflowY: "auto"
485
- }, Xo = { position: "fixed" }, Zn = /* @__PURE__ */ o.forwardRef(function(t, l) {
492
+ }, Jo = { position: "fixed" }, Zn = /* @__PURE__ */ o.forwardRef(function(t, l) {
486
493
  const { anchor: u, className: w, render: M, positionMethod: d, side: m, align: a, sideOffset: i, alignOffset: f, collisionBoundary: h = "clipping-ancestors", collisionPadding: R, arrowPadding: g, sticky: C, disableAnchorTracking: k, alignItemWithTrigger: x = !0, collisionAvoidance: q = to, style: U, ...I } = t, { store: y, listRef: L, labelsRef: _, alignItemWithTriggerActiveRef: H, selectedItemTextRef: Y, valuesRef: O, initialValueRef: ue, popupRef: W, setValue: ee, floatingContext: K } = ve(), T = s(y, r.open), E = s(y, r.mounted), $ = s(y, r.modal), P = s(y, r.value), oe = s(y, r.openMethod), X = s(y, r.positionerElement), V = s(y, r.triggerElement), n = s(y, r.isItemEqualToValue), p = s(y, r.transitionStatus), J = o.useRef(null), D = o.useRef(null), [ne, c] = o.useState(x), S = E && ne && oe !== "touch";
487
- !E && ne !== x && c(x), o.useImperativeHandle(H, () => S), Yo((S || $) && T, oe === "touch", X, V);
488
- const B = No({
494
+ !E && ne !== x && c(x), o.useImperativeHandle(H, () => S), jo((S || $) && T, oe === "touch", X, V);
495
+ const B = Do({
489
496
  anchor: u,
490
497
  floatingRootContext: K,
491
498
  positionMethod: d,
@@ -501,7 +508,7 @@ var Ot = {
501
508
  disableAnchorTracking: k ?? S,
502
509
  collisionAvoidance: q,
503
510
  keepMounted: !0
504
- }), Q = S ? "none" : B.side, xe = S ? Xo : B.positionerStyles, b = {
511
+ }), Q = S ? "none" : B.side, xe = S ? Jo : B.positionerStyles, b = {
505
512
  open: T,
506
513
  side: Q,
507
514
  align: B.align,
@@ -510,7 +517,7 @@ var Ot = {
510
517
  Se(() => {
511
518
  y.set("popupSide", B.side);
512
519
  }, [y, B.side]);
513
- const z = y.useStateSetter("positionerElement"), j = ko(t, b, {
520
+ const z = y.useStateSetter("positionerElement"), j = Bo(t, b, {
514
521
  styles: xe,
515
522
  transitionStatus: p,
516
523
  props: I,
@@ -522,12 +529,12 @@ var Ot = {
522
529
  const ie = de.current;
523
530
  if (de.current = se.size, se.size === ie) return;
524
531
  const fe = Te(et);
525
- if (ie !== 0 && !y.state.multiple && P !== null && Qe(O.current, P, n) === -1) {
526
- const F = ue.current, G = F != null && Qe(O.current, F, n) !== -1 ? F : null;
532
+ if (ie !== 0 && !y.state.multiple && P !== null && Ze(O.current, P, n) === -1) {
533
+ const F = ue.current, G = F != null && Ze(O.current, F, n) !== -1 ? F : null;
527
534
  ee(G, fe), G === null && (y.set("selectedIndex", null), Y.current = null);
528
535
  }
529
536
  if (ie !== 0 && y.state.multiple && Array.isArray(P)) {
530
- const F = P.filter((G) => Qe(O.current, G, n) !== -1);
537
+ const F = P.filter((G) => Ze(O.current, G, n) !== -1);
531
538
  F.length !== P.length && (ee(F, fe), F.length === 0 && (y.set("selectedIndex", null), Y.current = null));
532
539
  }
533
540
  if (T && S) {
@@ -557,17 +564,17 @@ var Ot = {
557
564
  onMapChange: Z,
558
565
  children: /* @__PURE__ */ (0, te.jsxs)(Ht.Provider, {
559
566
  value: re,
560
- children: [E && $ && /* @__PURE__ */ (0, te.jsx)(Oo, {
561
- inert: qo(!T),
567
+ children: [E && $ && /* @__PURE__ */ (0, te.jsx)(Lo, {
568
+ inert: Wo(!T),
562
569
  cutout: V
563
570
  }), j]
564
571
  })
565
572
  });
566
- }), Jo = {
573
+ }), Zo = {
567
574
  ...io,
568
- ...ht
575
+ ...St
569
576
  }, Qn = /* @__PURE__ */ o.forwardRef(function(t, l) {
570
- const { render: u, className: w, style: M, finalFocus: d, ...m } = t, { store: a, popupRef: i, onOpenChangeComplete: f, setOpen: h, valueRef: R, firstItemTextRef: g, selectedItemTextRef: C, multiple: k, handleScrollArrowVisibility: x, scrollHandlerRef: q, listRef: U, highlightItemOnHover: I, floatingContext: y } = ve(), { side: L, align: _, alignItemWithTriggerActive: H, isPositioned: Y, setControlledAlignItemWithTrigger: O } = xt(), ue = To(!0) != null, W = Wt(), { nonce: ee, disableStyleElements: K } = Ro(), T = s(a, r.id), E = s(a, r.open), $ = s(a, r.openMethod), P = s(a, r.mounted), oe = s(a, r.popupProps), X = s(a, r.transitionStatus), V = s(a, r.triggerElement), n = s(a, r.positionerElement), p = s(a, r.listElement), J = o.useRef(!1), D = o.useRef(!1), ne = o.useRef({}), c = vo(), S = Fe((b) => {
577
+ const { render: u, className: w, style: M, finalFocus: d, ...m } = t, { store: a, popupRef: i, onOpenChangeComplete: f, setOpen: h, valueRef: R, firstItemTextRef: g, selectedItemTextRef: C, multiple: k, handleScrollArrowVisibility: x, scrollHandlerRef: q, listRef: U, highlightItemOnHover: I, floatingContext: y } = ve(), { side: L, align: _, alignItemWithTriggerActive: H, isPositioned: Y, setControlledAlignItemWithTrigger: O } = xt(), ue = Yo(!0) != null, W = Wt(), { nonce: ee, disableStyleElements: K } = Ro(), T = s(a, r.id), E = s(a, r.open), $ = s(a, r.openMethod), P = s(a, r.mounted), oe = s(a, r.popupProps), X = s(a, r.transitionStatus), V = s(a, r.triggerElement), n = s(a, r.positionerElement), p = s(a, r.listElement), J = o.useRef(!1), D = o.useRef(!1), ne = o.useRef({}), c = vo(), S = Fe((b) => {
571
578
  if (!n || !i.current || !D.current) return;
572
579
  const z = n.style.top === "0px", j = n.style.bottom === "0px";
573
580
  if (J.current || !H || !z && !j) {
@@ -631,7 +638,7 @@ var Ot = {
631
638
  c.request(() => x(p || b));
632
639
  return;
633
640
  }
634
- const z = Zo(b);
641
+ const z = Qo(b);
635
642
  try {
636
643
  let j = C.current;
637
644
  j?.isConnected || (j = !r.hasSelectedValue(a.state) && g.current?.isConnected ? g.current : null);
@@ -719,15 +726,15 @@ var Ot = {
719
726
  }, xe = ce("div", t, {
720
727
  ref: [l, i],
721
728
  state: B,
722
- stateAttributesMapping: Jo,
729
+ stateAttributesMapping: Zo,
723
730
  props: [
724
731
  oe,
725
732
  Q,
726
- Bo(X),
733
+ Uo(X),
727
734
  m
728
735
  ]
729
736
  });
730
- return /* @__PURE__ */ (0, te.jsxs)(o.Fragment, { children: [!K && gt.getElement(ee), /* @__PURE__ */ (0, te.jsx)(Fo, {
737
+ return /* @__PURE__ */ (0, te.jsxs)(o.Fragment, { children: [!K && gt.getElement(ee), /* @__PURE__ */ (0, te.jsx)(Ho, {
731
738
  context: y,
732
739
  modal: !1,
733
740
  disabled: !P,
@@ -745,7 +752,7 @@ function Xe(e) {
745
752
  return vt(e.scrollHeight, e.clientHeight);
746
753
  }
747
754
  function Mt(e) {
748
- return Do.getScale(e);
755
+ return Fo.getScale(e);
749
756
  }
750
757
  function je(e, t, l) {
751
758
  return e / l[t];
@@ -763,7 +770,7 @@ var At = [
763
770
  ["scale", "1"],
764
771
  ["translate", "0 0"]
765
772
  ];
766
- function Zo(e) {
773
+ function Qo(e) {
767
774
  const { style: t } = e, l = {};
768
775
  for (const [u, w] of At)
769
776
  l[u] = t.getPropertyValue(u), t.setProperty(u, w, "important");
@@ -836,7 +843,7 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
836
843
  if (_ || H) return;
837
844
  const S = g.state.value;
838
845
  if (y) {
839
- const B = Array.isArray(S) ? S : [], Q = W ? Ao(B, d, K) : [...B, d];
846
+ const B = Array.isArray(S) ? S : [], Q = W ? wo(B, d, K) : [...B, d];
840
847
  x(Q, Te(dt, c));
841
848
  } else
842
849
  x(d, Te(dt, c)), k(!1, Te(dt, c));
@@ -903,12 +910,12 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
903
910
  });
904
911
  })), or = /* @__PURE__ */ o.forwardRef(function(t, l) {
905
912
  const { selected: u } = yt();
906
- return t.keepMounted || u ? /* @__PURE__ */ (0, te.jsx)(Qo, {
913
+ return t.keepMounted || u ? /* @__PURE__ */ (0, te.jsx)(en, {
907
914
  ...t,
908
915
  ref: l
909
916
  }) : null;
910
- }), Qo = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef((e, t) => {
911
- const { render: l, className: u, style: w, keepMounted: M, ...d } = e, { selected: m } = yt(), a = o.useRef(null), { transitionStatus: i, setMounted: f } = St(m), h = ce("span", e, {
917
+ }), en = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef((e, t) => {
918
+ const { render: l, className: u, style: w, keepMounted: M, ...d } = e, { selected: m } = yt(), a = o.useRef(null), { transitionStatus: i, setMounted: f } = ht(m), h = ce("span", e, {
912
919
  ref: [t, a],
913
920
  state: {
914
921
  selected: m,
@@ -918,7 +925,7 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
918
925
  "aria-hidden": !0,
919
926
  children: "✔️"
920
927
  }, d],
921
- stateAttributesMapping: ht
928
+ stateAttributesMapping: St
922
929
  });
923
930
  return st({
924
931
  open: m,
@@ -945,7 +952,7 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
945
952
  props: h
946
953
  });
947
954
  })), Ut = /* @__PURE__ */ o.forwardRef(function(t, l) {
948
- const { render: u, className: w, style: M, direction: d, keepMounted: m, ...a } = t, i = d === "up", { store: f, popupRef: h, listRef: R, handleScrollArrowVisibility: g, scrollArrowsMountedCountRef: C } = ve(), { side: k, scrollDownArrowRef: x, scrollUpArrowRef: q } = xt(), U = i ? r.scrollUpArrowVisible : r.scrollDownArrowVisible, I = s(f, U), y = s(f, r.openMethod), L = I && y !== "touch", _ = Ze(), H = i ? q : x, { mounted: Y, transitionStatus: O, setMounted: ue } = St(L);
955
+ const { render: u, className: w, style: M, direction: d, keepMounted: m, ...a } = t, i = d === "up", { store: f, popupRef: h, listRef: R, handleScrollArrowVisibility: g, scrollArrowsMountedCountRef: C } = ve(), { side: k, scrollDownArrowRef: x, scrollUpArrowRef: q } = xt(), U = i ? r.scrollUpArrowVisible : r.scrollDownArrowVisible, I = s(f, U), y = s(f, r.openMethod), L = I && y !== "touch", _ = Qe(), H = i ? q : x, { mounted: Y, transitionStatus: O, setMounted: ue } = ht(L);
949
956
  Se(() => (C.current += 1, f.set("hasScrollArrows", !0), () => {
950
957
  C.current = Math.max(0, C.current - 1), C.current === 0 && f.set("hasScrollArrows", !1);
951
958
  }), [f, C]), st({
@@ -981,7 +988,7 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
981
988
  }
982
989
  if (oe.length > 0) {
983
990
  const X = H.current?.offsetHeight || 0;
984
- T.scrollTop = en(oe, i, $, T.clientHeight, X, E);
991
+ T.scrollTop = tn(oe, i, $, T.clientHeight, X, E);
985
992
  }
986
993
  _.start(40, K);
987
994
  }
@@ -991,11 +998,11 @@ var tr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, l) {
991
998
  _.clear();
992
999
  }
993
1000
  }, a],
994
- stateAttributesMapping: ht
1001
+ stateAttributesMapping: St
995
1002
  });
996
1003
  return Y || m ? W : null;
997
1004
  });
998
- function en(e, t, l, u, w, M) {
1005
+ function tn(e, t, l, u, w, M) {
999
1006
  if (t) {
1000
1007
  let f = 0;
1001
1008
  const h = l + w - 1;
@@ -1034,7 +1041,7 @@ var rr = /* @__PURE__ */ o.forwardRef(function(t, l) {
1034
1041
  direction: "up"
1035
1042
  });
1036
1043
  }), Dt = /* @__PURE__ */ o.createContext(void 0);
1037
- function tn() {
1044
+ function on() {
1038
1045
  const e = o.useContext(Dt);
1039
1046
  if (e === void 0) throw new Error(rt(56));
1040
1047
  return e;
@@ -1055,21 +1062,14 @@ var lr = /* @__PURE__ */ o.forwardRef(function(t, l) {
1055
1062
  children: f
1056
1063
  });
1057
1064
  }), ir = /* @__PURE__ */ o.forwardRef(function(t, l) {
1058
- const { render: u, className: w, style: M, id: d, ...m } = t, { setLabelId: a } = tn(), i = Kt(d);
1065
+ const { render: u, className: w, style: M, id: d, ...m } = t, { setLabelId: a } = on(), i = Kt(d);
1059
1066
  return Se(() => (a(i), () => {
1060
1067
  a((f) => f === i ? void 0 : f);
1061
1068
  }), [i, a]), ce("div", t, {
1062
1069
  ref: l,
1063
1070
  props: [{ id: i }, m]
1064
1071
  });
1065
- }), on = /* @__PURE__ */ o.forwardRef(function(t, l) {
1066
- const { className: u, render: w, orientation: M = "horizontal", style: d, ...m } = t;
1067
- return ce("div", t, {
1068
- state: { orientation: M },
1069
- ref: l,
1070
- props: [{ role: "presentation" }, m]
1071
- });
1072
- }), ar = on;
1072
+ }), ar = zo;
1073
1073
  export {
1074
1074
  rr as a,
1075
1075
  tr as c,