@humain/ui 2.4.2 → 2.4.3

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