@humain/ui 2.4.1 → 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 (157) hide show
  1. package/dist/index150.js +1 -1
  2. package/dist/index150.js.map +1 -1
  3. package/dist/index194.js +6 -8
  4. package/dist/index194.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 +32 -32
  12. package/dist/wc/AIInput.js.map +1 -1
  13. package/dist/wc/AIMermaidDiagram.js +1 -1
  14. package/dist/wc/AIMessage.js +1 -1
  15. package/dist/wc/AIScrollButton.js +4 -4
  16. package/dist/wc/AIToolCall.js +5 -5
  17. package/dist/wc/AppSidebar.constants.js +1 -1
  18. package/dist/wc/AvatarFallback.js +5 -5
  19. package/dist/wc/CheckboxIndicator.js +7 -7
  20. package/dist/wc/CollapsiblePanel.js +1 -1
  21. package/dist/wc/DialogTrigger.js +9 -9
  22. package/dist/wc/DropdownMenu.js +16 -16
  23. package/dist/wc/MenuSubmenuTrigger.js +31 -31
  24. package/dist/wc/PopoverDescription.js +30 -30
  25. package/dist/wc/PrehydrationScript.js +1 -1
  26. package/dist/wc/Select.js +18 -18
  27. package/dist/wc/SelectSeparator.js +72 -72
  28. package/dist/wc/SelectSeparator.js.map +1 -1
  29. package/dist/wc/Tabs.js +18 -18
  30. package/dist/wc/TooltipProvider.js +9 -9
  31. package/dist/wc/chart.js +1 -1
  32. package/dist/wc/chunk-75Z2AOVW.js +39 -39
  33. package/dist/wc/chunk-OSK3NFVY.js +32 -32
  34. package/dist/wc/command.js +4 -4
  35. package/dist/wc/form-field.js +1 -1
  36. package/dist/wc/form-fieldset.js +5 -5
  37. package/dist/wc/hf-accordion-card.js +4 -4
  38. package/dist/wc/hf-accordion.js +6 -6
  39. package/dist/wc/hf-ai-feedback-bar.js +5 -5
  40. package/dist/wc/hf-ai-reasoning-block.js +6 -6
  41. package/dist/wc/hf-ai-system-message.js +1 -1
  42. package/dist/wc/hf-ai-tool-run.js +1 -1
  43. package/dist/wc/hf-area-chart.js +15 -15
  44. package/dist/wc/hf-autocomplete.js +36 -36
  45. package/dist/wc/hf-bar-chart.js +4 -4
  46. package/dist/wc/hf-calendar.js +4 -4
  47. package/dist/wc/hf-carousel.js +1 -1
  48. package/dist/wc/hf-context-menu.js +8 -8
  49. package/dist/wc/hf-donut-chart.js +10 -10
  50. package/dist/wc/hf-empty-state.js +87 -88
  51. package/dist/wc/hf-empty-state.js.map +1 -1
  52. package/dist/wc/hf-history.js +4 -4
  53. package/dist/wc/hf-horizontal-bar-chart.js +7 -7
  54. package/dist/wc/hf-hover-card.js +6 -6
  55. package/dist/wc/hf-line-chart.js +4 -4
  56. package/dist/wc/hf-metric-card.js +5 -5
  57. package/dist/wc/hf-metric-item.js +8 -8
  58. package/dist/wc/hf-metric-item.js.map +1 -1
  59. package/dist/wc/hf-nav-account-menu.js +4 -4
  60. package/dist/wc/hf-notification-panel.js +2 -2
  61. package/dist/wc/hf-pie-chart.js +17 -17
  62. package/dist/wc/hf-radar-chart.js +16 -16
  63. package/dist/wc/hf-section-header.js +6 -6
  64. package/dist/wc/hf-sheet.js +1 -1
  65. package/dist/wc/hf-sparkline-chart.js +5 -5
  66. package/dist/wc/hf-steps.js +6 -6
  67. package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
  68. package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
  69. package/dist/wc/popupStateMapping.js +53 -53
  70. package/dist/wc/popupStateMapping.js.map +1 -1
  71. package/dist/wc/selection-group.js +1 -1
  72. package/dist/wc/selection-group.js.map +1 -1
  73. package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
  74. package/dist/wc/stateAttributesMapping.js.map +1 -0
  75. package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
  76. package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
  77. package/dist/wc/useCollapsiblePanel.js +3 -3
  78. package/dist/wc/usePopupHandleStore.js +4 -4
  79. package/dist/wc/useScrollLock.js +1 -1
  80. package/dist/wc/vendor/recharts.js +525 -524
  81. package/dist/wc/vendor/recharts.js.map +1 -1
  82. package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
  83. package/dist/wc-react/AIClarificationCard.js +1 -1
  84. package/dist/wc-react/AIContainer.js +1 -1
  85. package/dist/wc-react/AIForm.js +17 -17
  86. package/dist/wc-react/AIInput.js +2 -2
  87. package/dist/wc-react/AIInput.js.map +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-autocomplete.js +37 -37
  120. package/dist/wc-react/hf-calendar.js +4 -4
  121. package/dist/wc-react/hf-carousel.js +1 -1
  122. package/dist/wc-react/hf-context-menu.js +8 -8
  123. package/dist/wc-react/hf-data-table.js +1 -1
  124. package/dist/wc-react/hf-empty-state.js +87 -88
  125. package/dist/wc-react/hf-empty-state.js.map +1 -1
  126. package/dist/wc-react/hf-history.js +4 -4
  127. package/dist/wc-react/hf-hover-card.js +6 -6
  128. package/dist/wc-react/hf-metric-item.js +6 -6
  129. package/dist/wc-react/hf-metric-item.js.map +1 -1
  130. package/dist/wc-react/hf-nav-account-menu.js +4 -4
  131. package/dist/wc-react/hf-notification-panel.js +2 -2
  132. package/dist/wc-react/hf-section-header.js +6 -6
  133. package/dist/wc-react/hf-sheet.js +1 -1
  134. package/dist/wc-react/hf-steps.js +5 -5
  135. package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
  136. package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
  137. package/dist/wc-react/popupStateMapping.js +54 -54
  138. package/dist/wc-react/popupStateMapping.js.map +1 -1
  139. package/dist/wc-react/selection-group.js +1 -1
  140. package/dist/wc-react/selection-group.js.map +1 -1
  141. package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
  142. package/dist/wc-react/stateAttributesMapping.js.map +1 -0
  143. package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
  144. package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
  145. package/dist/wc-react/useCollapsiblePanel.js +3 -3
  146. package/dist/wc-react/usePopupHandleStore.js +3 -3
  147. package/dist/wc-react/useScrollLock.js +1 -1
  148. package/dist/wc-react/vendor/recharts.js +525 -524
  149. package/dist/wc-react/vendor/recharts.js.map +1 -1
  150. package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
  151. package/package.json +1 -1
  152. package/skills/humain-ui/SKILL.md +1 -1
  153. package/skills/humain-ui-wc/SKILL.md +1 -1
  154. package/skills/humain-ui-wc.skill +0 -0
  155. package/skills/humain-ui.skill +0 -0
  156. package/dist/wc/useOpenChangeComplete.js.map +0 -1
  157. package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
@@ -5,21 +5,21 @@ import { l as re, t as ae, w as ie } from "./createBaseUIEventDetails.js";
5
5
  import { t as $ } from "./useBaseUiId.js";
6
6
  import { C as ce, I as Q, O as ue, P as pe, R as le, S as de, _ as ge, a as fe, d as me, f as Pe, g as he, h as ve, i as Ce, j as Se, l as Te, m as Re, n as Ie, o as ye, p as Oe, r as Ee, s as xe, u as Me, w as Fe, x as be } from "./popupStateMapping.js";
7
7
  import { a as ke } from "./composite2.js";
8
- import { t as we } from "./useButton.js";
9
- import { t as Ae } from "./ToolbarRootContext.js";
10
- import { n as He, t as Be } from "./useOpenChangeComplete.js";
11
- import { t as Ne } from "./useTimeout.js";
12
- import { n as Ge, r as _e, t as Le } from "./safePolygon.js";
13
- import { a as Ue, i as Ve, n as Ke, o as De } from "./useScrollLock.js";
14
- import { n as je, r as We, t as Ye } from "./usePositioner.js";
15
- import { n as $e, r as qe, t as ze } from "./store.js";
16
- import { t as Je } from "./usePopupHandleStore.js";
17
- import { t as Qe } from "./inertValue.js";
18
- import { t as Xe } from "./useAnchoredPopupScrollLock.js";
8
+ import { t as we } from "./useTimeout.js";
9
+ import { n as Ae, r as He, t as Be } from "./safePolygon.js";
10
+ import { a as Ne, i as Ge, n as _e, o as Le } from "./useScrollLock.js";
11
+ import { i as Ue, r as Ve } from "./stateAttributesMapping.js";
12
+ import { n as Ke, r as De, t as je } from "./usePositioner.js";
13
+ import { n as We, r as Ye, t as $e } from "./store.js";
14
+ import { t as qe } from "./usePopupHandleStore.js";
15
+ import { t as ze } from "./useButton.js";
16
+ import { t as Je } from "./inertValue.js";
17
+ import { t as Qe } from "./useAnchoredPopupScrollLock.js";
18
+ import { t as Xe } from "./ToolbarRootContext.js";
19
19
  import { t as Ze } from "./useTriggerFocusGuards.js";
20
20
  import * as a from "react";
21
- import * as et from "react-dom";
22
21
  import { jsx as g, jsxs as q } from "react/jsx-runtime";
22
+ import * as et from "react-dom";
23
23
  var Z = /* @__PURE__ */ a.createContext(void 0);
24
24
  function x(e) {
25
25
  const t = a.useContext(Z);
@@ -27,7 +27,7 @@ function x(e) {
27
27
  return t;
28
28
  }
29
29
  var tt = {
30
- ...qe,
30
+ ...Ye,
31
31
  disabled: (e) => e.disabled,
32
32
  instantType: (e) => e.instantType,
33
33
  openMethod: (e) => e.openMethod,
@@ -65,7 +65,7 @@ var tt = {
65
65
  };
66
66
  function nt(e, t, n, r = !1) {
67
67
  const c = {
68
- ...ze(),
68
+ ...$e(),
69
69
  disabled: !1,
70
70
  modal: !1,
71
71
  focusManagerModal: !1,
@@ -80,7 +80,7 @@ function nt(e, t, n, r = !1) {
80
80
  adaptiveOrigin: void 0,
81
81
  ...e
82
82
  };
83
- return c.open && e?.mounted === void 0 && (c.mounted = !0), c.floatingRootContext = $e(t, n, r), c;
83
+ return c.open && e?.mounted === void 0 && (c.mounted = !0), c.floatingRootContext = We(t, n, r), c;
84
84
  }
85
85
  function st(e) {
86
86
  return {
@@ -89,7 +89,7 @@ function st(e) {
89
89
  onOpenChangeComplete: void 0,
90
90
  triggerFocusTargetRef: /* @__PURE__ */ a.createRef(),
91
91
  beforeContentFocusGuardRef: /* @__PURE__ */ a.createRef(),
92
- stickIfOpenTimeout: new Ne(),
92
+ stickIfOpenTimeout: new we(),
93
93
  triggerElements: e
94
94
  };
95
95
  }
@@ -151,26 +151,26 @@ function at({ store: e, modal: t }) {
151
151
  }), null;
152
152
  }
153
153
  var Nt = /* @__PURE__ */ a.forwardRef(function(t, n) {
154
- const { render: r, className: c, style: P, disabled: i = !1, nativeButton: d = !0, handle: l, payload: o, openOnHover: s = !1, delay: f = 300, closeDelay: R = 0, id: y, ...h } = t, O = x(!0), u = Je(l) ?? O;
154
+ const { render: r, className: c, style: P, disabled: i = !1, nativeButton: d = !0, handle: l, payload: o, openOnHover: s = !1, delay: f = 300, closeDelay: R = 0, id: y, ...h } = t, O = x(!0), u = qe(l) ?? O;
155
155
  if (!u) throw new Error(D(74));
156
156
  const m = $(y), B = u.useState("isTriggerActive", m), p = u.useState("floatingRootContext"), M = u.useState("isOpenedByTrigger", m), F = u.useState("triggerPopupId", m), T = a.useRef(null), { registerTrigger: E, isMountedByThisTrigger: v } = ge(m, T, u, {
157
157
  payload: o,
158
158
  disabled: i,
159
159
  openOnHover: s,
160
160
  closeDelay: R
161
- }), I = u.useState("openChangeReason"), b = u.useState("stickIfOpen"), N = u.useState("openMethod"), G = u.useState("focusManagerModal"), k = Ge(p, {
161
+ }), I = u.useState("openChangeReason"), b = u.useState("stickIfOpen"), N = u.useState("openMethod"), G = u.useState("focusManagerModal"), k = Ae(p, {
162
162
  enabled: !i && s && (N !== "touch" || I !== "trigger-press"),
163
163
  mouseOnly: !0,
164
164
  move: !1,
165
- handleClose: Le(),
165
+ handleClose: Be(),
166
166
  restMs: f,
167
167
  delay: { close: R },
168
168
  triggerElementRef: T,
169
169
  isActiveTrigger: B,
170
170
  isClosing: () => u.select("transitionStatus") === "ending"
171
- }), _ = Ue(p, { stickIfOpen: b }), w = Ve(() => u.select("open"), (S) => {
171
+ }), _ = Ne(p, { stickIfOpen: b }), w = Ge(() => u.select("open"), (S) => {
172
172
  u.set("openMethod", S);
173
- }), L = u.useState("triggerProps", v), { getButtonProps: A, buttonRef: H } = we({
173
+ }), L = u.useState("triggerProps", v), { getButtonProps: A, buttonRef: H } = ze({
174
174
  disabled: i,
175
175
  native: d
176
176
  }), C = { open(S) {
@@ -236,7 +236,7 @@ function ct() {
236
236
  return e;
237
237
  }
238
238
  var _t = /* @__PURE__ */ a.forwardRef(function(t, n) {
239
- const { render: r, className: c, style: P, anchor: i, positionMethod: d, side: l, align: o, sideOffset: s, alignOffset: f, collisionBoundary: R = "clipping-ancestors", collisionPadding: y, arrowPadding: h, sticky: O, disableAnchorTracking: u = !1, collisionAvoidance: m = pe, ...B } = t, p = x(), M = it(), F = Fe(), T = p.useState("floatingRootContext"), E = p.useState("mounted"), v = p.useState("open"), I = p.useState("openChangeReason"), b = p.useState("activeTriggerElement"), N = p.useState("modal"), G = p.useState("openMethod"), k = p.useState("positionerElement"), _ = p.useState("instantType"), w = p.useState("transitionStatus"), L = p.useState("adaptiveOrigin"), A = a.useRef(null), H = He(k), C = We({
239
+ const { render: r, className: c, style: P, anchor: i, positionMethod: d, side: l, align: o, sideOffset: s, alignOffset: f, collisionBoundary: R = "clipping-ancestors", collisionPadding: y, arrowPadding: h, sticky: O, disableAnchorTracking: u = !1, collisionAvoidance: m = pe, ...B } = t, p = x(), M = it(), F = Fe(), T = p.useState("floatingRootContext"), E = p.useState("mounted"), v = p.useState("open"), I = p.useState("openChangeReason"), b = p.useState("activeTriggerElement"), N = p.useState("modal"), G = p.useState("openMethod"), k = p.useState("positionerElement"), _ = p.useState("instantType"), w = p.useState("transitionStatus"), L = p.useState("adaptiveOrigin"), A = a.useRef(null), H = Ue(k), C = De({
240
240
  anchor: i,
241
241
  floatingRootContext: T,
242
242
  positionMethod: d,
@@ -272,14 +272,14 @@ var _t = /* @__PURE__ */ a.forwardRef(function(t, n) {
272
272
  p
273
273
  ]);
274
274
  const V = N === !0 && I !== "trigger-hover";
275
- Xe(v && V, G === "touch", k, b);
275
+ Qe(v && V, G === "touch", k, b);
276
276
  const W = p.useStateSetter("positionerElement"), Y = {
277
277
  open: v,
278
278
  side: C.side,
279
279
  align: C.align,
280
280
  anchorHidden: C.anchorHidden,
281
281
  instant: _
282
- }, K = Ye(t, Y, {
282
+ }, K = je(t, Y, {
283
283
  styles: C.positionerStyles,
284
284
  transitionStatus: w,
285
285
  props: B,
@@ -289,8 +289,8 @@ var _t = /* @__PURE__ */ a.forwardRef(function(t, n) {
289
289
  });
290
290
  return /* @__PURE__ */ q(te.Provider, {
291
291
  value: C,
292
- children: [E && V && /* @__PURE__ */ g(Ke, {
293
- inert: Qe(!v),
292
+ children: [E && V && /* @__PURE__ */ g(_e, {
293
+ inert: Je(!v),
294
294
  cutout: b
295
295
  }), /* @__PURE__ */ g(de, {
296
296
  id: F,
@@ -308,14 +308,14 @@ function pt() {
308
308
  };
309
309
  }
310
310
  var Lt = /* @__PURE__ */ a.forwardRef(function(t, n) {
311
- const { render: r, className: c, style: P, initialFocus: i, finalFocus: d, ...l } = t, o = x(), s = ct(), f = Ae(!0) != null, { context: R, hasClosePart: y } = pt(), h = o.useState("open"), O = o.useState("openMethod"), u = o.useState("instantType"), m = o.useState("transitionStatus"), B = o.useState("popupProps"), p = o.useState("titleElementId"), M = o.useState("descriptionElementId"), F = o.useState("modal"), T = o.useState("mounted"), E = o.useState("openChangeReason"), v = o.useState("activeTriggerElement"), I = o.useState("floatingRootContext"), b = I.useState("floatingId"), N = o.useState("disabled"), G = o.useState("openOnHover"), k = o.useState("closeDelay");
312
- Be({
311
+ const { render: r, className: c, style: P, initialFocus: i, finalFocus: d, ...l } = t, o = x(), s = ct(), f = Xe(!0) != null, { context: R, hasClosePart: y } = pt(), h = o.useState("open"), O = o.useState("openMethod"), u = o.useState("instantType"), m = o.useState("transitionStatus"), B = o.useState("popupProps"), p = o.useState("titleElementId"), M = o.useState("descriptionElementId"), F = o.useState("modal"), T = o.useState("mounted"), E = o.useState("openChangeReason"), v = o.useState("activeTriggerElement"), I = o.useState("floatingRootContext"), b = I.useState("floatingId"), N = o.useState("disabled"), G = o.useState("openOnHover"), k = o.useState("closeDelay");
312
+ Ve({
313
313
  open: h,
314
314
  ref: o.context.popupRef,
315
315
  onComplete() {
316
316
  h && o.context.onOpenChangeComplete?.(!0);
317
317
  }
318
- }), _e(I, {
318
+ }), He(I, {
319
319
  enabled: G && !N,
320
320
  closeDelay: k
321
321
  });
@@ -346,12 +346,12 @@ var Lt = /* @__PURE__ */ a.forwardRef(function(t, n) {
346
346
  f && ke.has(C.key) && C.stopPropagation();
347
347
  }
348
348
  },
349
- je(m),
349
+ Ke(m),
350
350
  l
351
351
  ],
352
352
  stateAttributesMapping: Ie
353
353
  });
354
- return /* @__PURE__ */ g(De, {
354
+ return /* @__PURE__ */ g(Le, {
355
355
  context: I,
356
356
  openInteractionType: O,
357
357
  modal: w,
@@ -1,4 +1,4 @@
1
- import { at as e } from "./vendor/recharts.js";
1
+ import { Ot as e } from "./vendor/recharts.js";
2
2
  import { u as o } from "./useRenderElement.js";
3
3
  import { t as s } from "./CSPContext.js";
4
4
  import { jsx as i } from "react/jsx-runtime";
@@ -5,8 +5,8 @@ import { f as p } from "./_shared.js";
5
5
  import { t as H } from "./FieldTooltip.js";
6
6
  import { n as J, t as K } from "./field-props.js";
7
7
  import { a as M, c as O, i as Q, l as W, n as X, o as Y, r as Z, s as ee, t as te } from "./form-field.js";
8
- import { t as re } from "./use-controllable-state.js";
9
- import { a as oe, c as ae, d as le, f as se, g as ie, h as ne, i as de, l as ce, m as pe, n as ue, o as me, p as fe, r as ge, s as be, t as ve, u as he } from "./SelectSeparator.js";
8
+ import { a as re, c as oe, d as ae, f as le, g as se, h as ie, i as ne, l as de, m as ce, n as pe, o as ue, p as me, r as fe, s as ge, t as be, u as ve } from "./SelectSeparator.js";
9
+ import { t as he } from "./use-controllable-state.js";
10
10
  import * as l from "react";
11
11
  import { jsx as e, jsxs as u } from "react/jsx-runtime";
12
12
  var j = {
@@ -39,14 +39,14 @@ function Se(r) {
39
39
  return a(r), t ? o : void 0;
40
40
  }
41
41
  function b({ trigger: r, value: o, defaultValue: t, onValueChange: a, items: s, children: i, ...n }) {
42
- const [m, d] = re({
42
+ const [m, d] = he({
43
43
  value: o,
44
44
  defaultValue: t ?? "",
45
45
  onChange: a
46
46
  }), f = l.useCallback((h) => {
47
47
  d(h);
48
48
  }, [d]), c = s ?? Se(i);
49
- return /* @__PURE__ */ u(ie, {
49
+ return /* @__PURE__ */ u(se, {
50
50
  value: m,
51
51
  onValueChange: f,
52
52
  items: c,
@@ -54,14 +54,14 @@ function b({ trigger: r, value: o, defaultValue: t, onValueChange: a, items: s,
54
54
  children: [r && /* @__PURE__ */ e(v, { render: r }), i]
55
55
  });
56
56
  }
57
- var $ = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(ge, {
57
+ var $ = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(fe, {
58
58
  ref: t,
59
59
  "data-slot": "select-group",
60
60
  className: p("scroll-my-1 p-1", r),
61
61
  ...o
62
62
  }));
63
63
  $.displayName = "Select.Group";
64
- var x = l.forwardRef(({ placeholder: r, children: o, className: t, ...a }, s) => /* @__PURE__ */ e(pe, {
64
+ var x = l.forwardRef(({ placeholder: r, children: o, className: t, ...a }, s) => /* @__PURE__ */ e(ce, {
65
65
  ref: s,
66
66
  "data-slot": "select-value",
67
67
  className: p("flex min-w-0 flex-1 items-center gap-0.5 overflow-hidden text-left", t),
@@ -85,7 +85,7 @@ var v = l.forwardRef(({ className: r, size: o = "md", shape: t = "rounded", stat
85
85
  "data-shape": t,
86
86
  className: p("flex w-full items-center border border-border bg-muted", j[o], t === "rounded" && "rounded-xl", t === "round" && "rounded-full", "text-foreground", r),
87
87
  children: i
88
- }) : /* @__PURE__ */ u(ne, {
88
+ }) : /* @__PURE__ */ u(ie, {
89
89
  ref: d,
90
90
  "data-slot": "select-trigger",
91
91
  "data-size": o,
@@ -95,59 +95,59 @@ var v = l.forwardRef(({ className: r, size: o = "md", shape: t = "rounded", stat
95
95
  "aria-invalid": a === "error" || void 0,
96
96
  className: p("group/select flex w-full items-center justify-between outline-none", "border bg-background transition-[color,background-color,box-shadow,border-color] duration-200 ease-smooth motion-reduce:transition-none", "disabled:cursor-not-allowed disabled:border-input disabled:bg-muted", "data-[placeholder]:text-muted-foreground", j[o], t === "rounded" && "rounded-xl", t === "round" && "rounded-full", a === "default" && "border-input", a === "success" && "border-success", a === "error" && "border-destructive", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", a === "error" && "focus-visible:ring-destructive/20", r),
97
97
  ...m,
98
- children: [i, /* @__PURE__ */ e(fe, { render: /* @__PURE__ */ e(_, { className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200 ease-smooth group-data-[popup-open]/select:rotate-180 motion-reduce:transition-none" }) })]
98
+ children: [i, /* @__PURE__ */ e(me, { render: /* @__PURE__ */ e(_, { className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200 ease-smooth group-data-[popup-open]/select:rotate-180 motion-reduce:transition-none" }) })]
99
99
  });
100
100
  });
101
101
  v.displayName = "Select.Trigger";
102
- var w = l.forwardRef(({ className: r, children: o, side: t = "bottom", sideOffset: a = 4, align: s = "center", alignOffset: i = 0, alignItemWithTrigger: n = !1, ...m }, d) => /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(le, {
102
+ var w = l.forwardRef(({ className: r, children: o, side: t = "bottom", sideOffset: a = 4, align: s = "center", alignOffset: i = 0, alignItemWithTrigger: n = !1, ...m }, d) => /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(ae, {
103
103
  side: t,
104
104
  sideOffset: a,
105
105
  align: s,
106
106
  alignOffset: i,
107
107
  alignItemWithTrigger: n,
108
108
  className: "isolate z-50",
109
- children: /* @__PURE__ */ u(he, {
109
+ children: /* @__PURE__ */ u(ve, {
110
110
  ref: d,
111
111
  "data-slot": "select-popup",
112
112
  className: p("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 motion-reduce:animate-none ring-foreground/10 min-w-36 rounded-md shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto", r),
113
113
  ...m,
114
114
  children: [
115
115
  /* @__PURE__ */ e(F, {}),
116
- /* @__PURE__ */ e(ce, { children: o }),
116
+ /* @__PURE__ */ e(de, { children: o }),
117
117
  /* @__PURE__ */ e(I, {})
118
118
  ]
119
119
  })
120
120
  }) }));
121
121
  w.displayName = "Select.Popup";
122
- var k = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(ue, {
122
+ var k = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(pe, {
123
123
  ref: t,
124
124
  "data-slot": "select-group-label",
125
125
  className: p("text-muted-foreground px-2 py-1.5 text-xs", r),
126
126
  ...o
127
127
  }));
128
128
  k.displayName = "Select.GroupLabel";
129
- var G = l.forwardRef(({ className: r, children: o, ...t }, a) => /* @__PURE__ */ u(ae, {
129
+ var G = l.forwardRef(({ className: r, children: o, ...t }, a) => /* @__PURE__ */ u(oe, {
130
130
  ref: a,
131
131
  "data-slot": "select-item",
132
132
  className: p("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pe-8 ps-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", r),
133
133
  ...t,
134
- children: [/* @__PURE__ */ e(me, {
134
+ children: [/* @__PURE__ */ e(ue, {
135
135
  className: "flex flex-1 gap-2 shrink-0 whitespace-nowrap",
136
136
  children: o
137
- }), /* @__PURE__ */ e(be, {
137
+ }), /* @__PURE__ */ e(ge, {
138
138
  render: /* @__PURE__ */ e("span", { className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center" }),
139
139
  children: /* @__PURE__ */ e(A, { className: "pointer-events-none" })
140
140
  })]
141
141
  }));
142
142
  G.displayName = "Select.Item";
143
- var V = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(ve, {
143
+ var V = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(be, {
144
144
  ref: t,
145
145
  "data-slot": "select-separator",
146
146
  className: p("bg-border -mx-1 my-1 h-px pointer-events-none", r),
147
147
  ...o
148
148
  }));
149
149
  V.displayName = "Select.Separator";
150
- var F = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(de, {
150
+ var F = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(ne, {
151
151
  ref: t,
152
152
  "data-slot": "select-scroll-up-button",
153
153
  className: p("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full", r),
@@ -155,7 +155,7 @@ var F = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(de, {
155
155
  children: /* @__PURE__ */ e(q, {})
156
156
  }));
157
157
  F.displayName = "Select.ScrollUpButton";
158
- var I = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(oe, {
158
+ var I = l.forwardRef(({ className: r, ...o }, t) => /* @__PURE__ */ e(re, {
159
159
  ref: t,
160
160
  "data-slot": "select-scroll-down-button",
161
161
  className: p("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full", r),