@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.
- package/dist/index194.js +6 -8
- package/dist/index194.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index225.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/wc/AIClarificationCard.js +1 -1
- package/dist/wc/AIContainer.js +1 -1
- package/dist/wc/AIForm.js +17 -17
- package/dist/wc/AIInput.js +1 -1
- package/dist/wc/AIMermaidDiagram.js +1 -1
- package/dist/wc/AIMessage.js +1 -1
- package/dist/wc/AIScrollButton.js +4 -4
- package/dist/wc/AIToolCall.js +5 -5
- package/dist/wc/AppSidebar.constants.js +1 -1
- package/dist/wc/AvatarFallback.js +5 -5
- package/dist/wc/CheckboxIndicator.js +7 -7
- package/dist/wc/CollapsiblePanel.js +1 -1
- package/dist/wc/DialogTrigger.js +9 -9
- package/dist/wc/DropdownMenu.js +16 -16
- package/dist/wc/MenuSubmenuTrigger.js +31 -31
- package/dist/wc/PopoverDescription.js +30 -30
- package/dist/wc/PrehydrationScript.js +1 -1
- package/dist/wc/Select.js +18 -18
- package/dist/wc/SelectSeparator.js +72 -72
- package/dist/wc/SelectSeparator.js.map +1 -1
- package/dist/wc/Tabs.js +18 -18
- package/dist/wc/TooltipProvider.js +9 -9
- package/dist/wc/chart.js +1 -1
- package/dist/wc/chunk-75Z2AOVW.js +39 -39
- package/dist/wc/chunk-OSK3NFVY.js +32 -32
- package/dist/wc/command.js +4 -4
- package/dist/wc/form-field.js +1 -1
- package/dist/wc/form-fieldset.js +5 -5
- package/dist/wc/hf-accordion-card.js +4 -4
- package/dist/wc/hf-accordion.js +6 -6
- package/dist/wc/hf-ai-feedback-bar.js +5 -5
- package/dist/wc/hf-ai-reasoning-block.js +6 -6
- package/dist/wc/hf-ai-system-message.js +1 -1
- package/dist/wc/hf-ai-tool-run.js +1 -1
- package/dist/wc/hf-app-sidebar.js +1 -1
- package/dist/wc/hf-app-sidebar.js.map +1 -1
- package/dist/wc/hf-area-chart.js +15 -15
- package/dist/wc/hf-autocomplete.js +36 -36
- package/dist/wc/hf-bar-chart.js +4 -4
- package/dist/wc/hf-calendar.js +4 -4
- package/dist/wc/hf-carousel.js +1 -1
- package/dist/wc/hf-context-menu.js +8 -8
- package/dist/wc/hf-donut-chart.js +10 -10
- package/dist/wc/hf-empty-state.js +87 -88
- package/dist/wc/hf-empty-state.js.map +1 -1
- package/dist/wc/hf-history.js +4 -4
- package/dist/wc/hf-horizontal-bar-chart.js +7 -7
- package/dist/wc/hf-hover-card.js +6 -6
- package/dist/wc/hf-line-chart.js +4 -4
- package/dist/wc/hf-metric-card.js +5 -5
- package/dist/wc/hf-metric-item.js +8 -8
- package/dist/wc/hf-metric-item.js.map +1 -1
- package/dist/wc/hf-nav-account-menu.js +4 -4
- package/dist/wc/hf-notification-panel.js +2 -2
- package/dist/wc/hf-pie-chart.js +17 -17
- package/dist/wc/hf-radar-chart.js +16 -16
- package/dist/wc/hf-section-header.js +6 -6
- package/dist/wc/hf-sheet.js +1 -1
- package/dist/wc/hf-sparkline-chart.js +5 -5
- package/dist/wc/hf-steps.js +6 -6
- package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
- package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
- package/dist/wc/popupStateMapping.js +53 -53
- package/dist/wc/popupStateMapping.js.map +1 -1
- package/dist/wc/selection-group.js +1 -1
- package/dist/wc/selection-group.js.map +1 -1
- package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
- package/dist/wc/stateAttributesMapping.js.map +1 -0
- package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
- package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
- package/dist/wc/useCollapsiblePanel.js +3 -3
- package/dist/wc/usePopupHandleStore.js +4 -4
- package/dist/wc/useScrollLock.js +1 -1
- package/dist/wc/vendor/recharts.js +525 -524
- package/dist/wc/vendor/recharts.js.map +1 -1
- package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
- package/dist/wc-react/AIClarificationCard.js +1 -1
- package/dist/wc-react/AIContainer.js +1 -1
- package/dist/wc-react/AIForm.js +17 -17
- package/dist/wc-react/AIInput.js +1 -1
- package/dist/wc-react/AIMermaidDiagram.js +1 -1
- package/dist/wc-react/AIMessage.js +1 -1
- package/dist/wc-react/AIScrollButton.js +4 -4
- package/dist/wc-react/AIToolCall.js +5 -5
- package/dist/wc-react/AppSidebar.constants.js +1 -1
- package/dist/wc-react/AvatarFallback.js +5 -5
- package/dist/wc-react/CheckboxIndicator.js +7 -7
- package/dist/wc-react/CollapsiblePanel.js +1 -1
- package/dist/wc-react/DialogTrigger.js +9 -9
- package/dist/wc-react/DropdownMenu.js +16 -16
- package/dist/wc-react/FloatingPortalLite.js +3 -3
- package/dist/wc-react/MenuSubmenuTrigger.js +31 -31
- package/dist/wc-react/PopoverDescription.js +31 -31
- package/dist/wc-react/PrehydrationScript.js +1 -1
- package/dist/wc-react/Select.js +18 -18
- package/dist/wc-react/SelectSeparator.js +71 -70
- package/dist/wc-react/SelectSeparator.js.map +1 -1
- package/dist/wc-react/Tabs.js +18 -18
- package/dist/wc-react/TooltipProvider.js +9 -9
- package/dist/wc-react/chart.js +1 -1
- package/dist/wc-react/chunk-75Z2AOVW.js +39 -39
- package/dist/wc-react/chunk-OSK3NFVY.js +32 -32
- package/dist/wc-react/command.js +4 -4
- package/dist/wc-react/form-field.js +1 -1
- package/dist/wc-react/form-fieldset.js +77 -77
- package/dist/wc-react/hf-accordion-card.js +4 -4
- package/dist/wc-react/hf-accordion.js +6 -6
- package/dist/wc-react/hf-ai-feedback-bar.js +5 -5
- package/dist/wc-react/hf-ai-reasoning-block.js +6 -6
- package/dist/wc-react/hf-ai-system-message.js +1 -1
- package/dist/wc-react/hf-ai-tool-run.js +1 -1
- package/dist/wc-react/hf-app-sidebar.js +1 -1
- package/dist/wc-react/hf-app-sidebar.js.map +1 -1
- package/dist/wc-react/hf-autocomplete.js +37 -37
- package/dist/wc-react/hf-calendar.js +4 -4
- package/dist/wc-react/hf-carousel.js +1 -1
- package/dist/wc-react/hf-context-menu.js +8 -8
- package/dist/wc-react/hf-data-table.js +1 -1
- package/dist/wc-react/hf-empty-state.js +87 -88
- package/dist/wc-react/hf-empty-state.js.map +1 -1
- package/dist/wc-react/hf-history.js +4 -4
- package/dist/wc-react/hf-hover-card.js +6 -6
- package/dist/wc-react/hf-metric-item.js +6 -6
- package/dist/wc-react/hf-metric-item.js.map +1 -1
- package/dist/wc-react/hf-nav-account-menu.js +4 -4
- package/dist/wc-react/hf-notification-panel.js +2 -2
- package/dist/wc-react/hf-section-header.js +6 -6
- package/dist/wc-react/hf-sheet.js +1 -1
- package/dist/wc-react/hf-steps.js +5 -5
- package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
- package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
- package/dist/wc-react/popupStateMapping.js +54 -54
- package/dist/wc-react/popupStateMapping.js.map +1 -1
- package/dist/wc-react/selection-group.js +1 -1
- package/dist/wc-react/selection-group.js.map +1 -1
- package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
- package/dist/wc-react/stateAttributesMapping.js.map +1 -0
- package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
- package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
- package/dist/wc-react/useCollapsiblePanel.js +3 -3
- package/dist/wc-react/usePopupHandleStore.js +3 -3
- package/dist/wc-react/useScrollLock.js +1 -1
- package/dist/wc-react/vendor/recharts.js +525 -524
- package/dist/wc-react/vendor/recharts.js.map +1 -1
- package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
- package/package.json +1 -1
- package/skills/humain-ui/SKILL.md +1 -1
- package/skills/humain-ui-wc/SKILL.md +1 -1
- package/skills/humain-ui-wc.skill +0 -0
- package/skills/humain-ui.skill +0 -0
- package/dist/wc/useOpenChangeComplete.js.map +0 -1
- package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
|
@@ -9,17 +9,17 @@ import { $ as at, C as it, D as lt, N as ut, O as ct, P as dt, R as pt, S as ft,
|
|
|
9
9
|
import { t as ve } from "./useCompositeListItem.js";
|
|
10
10
|
import { t as kt } from "./CompositeList.js";
|
|
11
11
|
import { a as wt } from "./composite2.js";
|
|
12
|
-
import { n as Nt, t as At } from "./useButton.js";
|
|
13
|
-
import { t as Ft } from "./ToolbarRootContext.js";
|
|
14
|
-
import { a as Dt, n as Lt, o as Ue, t as Se } from "./useOpenChangeComplete.js";
|
|
15
12
|
import { n as Pe } from "./useTimeout.js";
|
|
16
|
-
import { n as
|
|
17
|
-
import { a as
|
|
18
|
-
import {
|
|
19
|
-
import { r as
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
13
|
+
import { n as Nt, r as At, t as Ft } from "./safePolygon.js";
|
|
14
|
+
import { a as Dt, n as Lt, o as Bt, r as Ut } from "./useScrollLock.js";
|
|
15
|
+
import { a as Ue, i as Ht, n as Vt, r as Se } from "./stateAttributesMapping.js";
|
|
16
|
+
import { n as Gt, r as _t, t as Kt } from "./usePositioner.js";
|
|
17
|
+
import { r as Yt, t as Wt } from "./store.js";
|
|
18
|
+
import { n as $t, t as jt } from "./useTypeahead.js";
|
|
19
|
+
import { n as Xt, t as Jt } from "./useButton.js";
|
|
20
|
+
import { t as qt } from "./inertValue.js";
|
|
21
|
+
import { t as zt } from "./useAnchoredPopupScrollLock.js";
|
|
22
|
+
import { t as Qt } from "./ToolbarRootContext.js";
|
|
23
23
|
import * as o from "react";
|
|
24
24
|
import { jsx as H, jsxs as He } from "react/jsx-runtime";
|
|
25
25
|
var Ve = /* @__PURE__ */ o.createContext(void 0);
|
|
@@ -72,7 +72,7 @@ function tn(e) {
|
|
|
72
72
|
const R = m.initialCursorPointRef.current;
|
|
73
73
|
if (m.initialCursorPointRef.current = null, h && R && Math.abs(l.clientX - R.x) <= 1 && Math.abs(l.clientY - R.y) <= 1 || h && !rt && l.button === 2) return;
|
|
74
74
|
}
|
|
75
|
-
d.current && v.context.allowMouseUpTriggerRef.current && (!h || l.button === 2) && s.type === "regular-item" &&
|
|
75
|
+
d.current && v.context.allowMouseUpTriggerRef.current && (!h || l.button === 2) && s.type === "regular-item" && Xt(d.current, l, { detail: 1 });
|
|
76
76
|
}
|
|
77
77
|
}), [
|
|
78
78
|
n,
|
|
@@ -91,7 +91,7 @@ function tn(e) {
|
|
|
91
91
|
}
|
|
92
92
|
var Te = { type: "regular-item" };
|
|
93
93
|
function he(e) {
|
|
94
|
-
const { closeOnClick: n, disabled: i, highlighted: x, id: P, store: v, typingRef: f = v.context.typingRef, nativeButton: d, itemMetadata: s, nodeId: c } = e, g = o.useRef(null), { getButtonProps: m, buttonRef: h } =
|
|
94
|
+
const { closeOnClick: n, disabled: i, highlighted: x, id: P, store: v, typingRef: f = v.context.typingRef, nativeButton: d, itemMetadata: s, nodeId: c } = e, g = o.useRef(null), { getButtonProps: m, buttonRef: h } = Jt({
|
|
95
95
|
disabled: i,
|
|
96
96
|
focusableWhenDisabled: !0,
|
|
97
97
|
native: d,
|
|
@@ -123,7 +123,7 @@ var Fe = /* @__PURE__ */ (function(e) {
|
|
|
123
123
|
checked(e) {
|
|
124
124
|
return e ? { [Fe.checked]: "" } : { [Fe.unchecked]: "" };
|
|
125
125
|
},
|
|
126
|
-
...
|
|
126
|
+
...Vt
|
|
127
127
|
}, $n = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
128
128
|
const { render: x, className: P, id: v, label: f, nativeButton: d = !1, disabled: s = !1, closeOnClick: c = !1, checked: g, defaultChecked: m, onCheckedChange: h, style: l, ...R } = n, y = ve({
|
|
129
129
|
guess: !0,
|
|
@@ -265,7 +265,7 @@ var Xn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
265
265
|
]
|
|
266
266
|
});
|
|
267
267
|
}), zn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
268
|
-
const { render: x, className: P, style: v, finalFocus: f, ...d } = n, { store: s } = Q(), { side: c, align: g } = fe(), m =
|
|
268
|
+
const { render: x, className: P, style: v, finalFocus: f, ...d } = n, { store: s } = Q(), { side: c, align: g } = fe(), m = Qt(!0) != null, h = s.useState("open"), l = s.useState("transitionStatus"), R = s.useState("popupProps"), y = s.useState("mounted"), I = s.useState("instantType"), a = s.useState("activeTriggerElement"), u = s.useState("parent"), r = s.useState("lastOpenChangeReason"), T = s.useState("rootId"), k = s.useState("floatingRootContext"), t = s.useState("floatingTreeRoot"), w = s.useState("closeDelay"), C = s.useState("hoverEnabled"), F = s.useState("disabled"), M = s.useState("openMethod"), b = u.type === "context-menu";
|
|
269
269
|
Se({
|
|
270
270
|
open: h,
|
|
271
271
|
ref: s.context.popupRef,
|
|
@@ -279,7 +279,7 @@ var Xn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
279
279
|
return t.events.on("close", A), () => {
|
|
280
280
|
t.events.off("close", A);
|
|
281
281
|
};
|
|
282
|
-
}, [t.events, s]),
|
|
282
|
+
}, [t.events, s]), At(k, {
|
|
283
283
|
enabled: C && !F && !b && u.type !== "menubar",
|
|
284
284
|
closeDelay: w
|
|
285
285
|
});
|
|
@@ -303,13 +303,13 @@ var Xn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
303
303
|
{ onKeyDown(A) {
|
|
304
304
|
m && wt.has(A.key) && A.stopPropagation();
|
|
305
305
|
} },
|
|
306
|
-
|
|
306
|
+
Gt(l),
|
|
307
307
|
d,
|
|
308
308
|
{ "data-rootownerid": T }
|
|
309
309
|
]
|
|
310
310
|
});
|
|
311
311
|
let U = u.type === void 0 || b;
|
|
312
|
-
return (a || u.type === "menubar" && r !== "outside-press") && (U = !0), /* @__PURE__ */ H(
|
|
312
|
+
return (a || u.type === "menubar" && r !== "outside-press") && (U = !0), /* @__PURE__ */ H(Bt, {
|
|
313
313
|
context: k,
|
|
314
314
|
openInteractionType: M,
|
|
315
315
|
modal: b,
|
|
@@ -339,12 +339,12 @@ var Qn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
339
339
|
})
|
|
340
340
|
}) : null;
|
|
341
341
|
}), Zn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
342
|
-
const { anchor: x, positionMethod: P = "absolute", className: v, render: f, side: d, align: s, sideOffset: c = 0, alignOffset: g = 0, collisionBoundary: m = "clipping-ancestors", collisionPadding: h = 5, arrowPadding: l = 5, sticky: R = !1, disableAnchorTracking: y = !1, collisionAvoidance: I = ut, style: a, ...u } = n, { store: r } = Q(), T = on(), k = Ee(!0), t = r.useState("parent"), w = r.useState("floatingRootContext"), C = r.useState("floatingTreeRoot"), F = r.useState("mounted"), M = r.useState("open"), b = r.useState("modal"), E = r.useState("openMethod"), N = r.useState("activeTriggerElement"), B = r.useState("transitionStatus"), U = r.useState("positionerElement"), A = r.useState("instantType"), Z = r.useState("adaptiveOrigin"), S = r.useState("lastOpenChangeReason"), G = r.useState("floatingNodeId"), le = r.useState("floatingParentNodeId"), ue = w.useState("domReferenceElement"), ee = o.useRef(null), J =
|
|
342
|
+
const { anchor: x, positionMethod: P = "absolute", className: v, render: f, side: d, align: s, sideOffset: c = 0, alignOffset: g = 0, collisionBoundary: m = "clipping-ancestors", collisionPadding: h = 5, arrowPadding: l = 5, sticky: R = !1, disableAnchorTracking: y = !1, collisionAvoidance: I = ut, style: a, ...u } = n, { store: r } = Q(), T = on(), k = Ee(!0), t = r.useState("parent"), w = r.useState("floatingRootContext"), C = r.useState("floatingTreeRoot"), F = r.useState("mounted"), M = r.useState("open"), b = r.useState("modal"), E = r.useState("openMethod"), N = r.useState("activeTriggerElement"), B = r.useState("transitionStatus"), U = r.useState("positionerElement"), A = r.useState("instantType"), Z = r.useState("adaptiveOrigin"), S = r.useState("lastOpenChangeReason"), G = r.useState("floatingNodeId"), le = r.useState("floatingParentNodeId"), ue = w.useState("domReferenceElement"), ee = o.useRef(null), J = Ht(U);
|
|
343
343
|
let te = x, q = c, ae = g, ne = s, _ = I;
|
|
344
344
|
t.type === "context-menu" && (te = x ?? t.context?.anchor, ne = ne ?? "start", !d && ne !== "center" && (ae = n.alignOffset ?? 2, q = n.sideOffset ?? -5));
|
|
345
345
|
let K = d, oe = ne;
|
|
346
346
|
t.type === "menu" ? (K = K ?? "inline-end", oe = oe ?? "start", _ = n.collisionAvoidance ?? dt) : t.type === "menubar" && (K = K ?? (t.context.orientation === "vertical" ? "inline-end" : "bottom"), oe = oe ?? "start");
|
|
347
|
-
const se = t.type === "context-menu", Y =
|
|
347
|
+
const se = t.type === "context-menu", Y = _t({
|
|
348
348
|
anchor: te,
|
|
349
349
|
floatingRootContext: w,
|
|
350
350
|
positionMethod: k ? "fixed" : P,
|
|
@@ -450,8 +450,8 @@ var Qn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
450
450
|
nested: t.type === "menu",
|
|
451
451
|
instant: A
|
|
452
452
|
}, ce = t.type === "menubar" && t.context.modal;
|
|
453
|
-
|
|
454
|
-
const xe =
|
|
453
|
+
zt(M && (ce || b && S !== "trigger-hover"), E === "touch", U, N);
|
|
454
|
+
const xe = Kt(n, ge, {
|
|
455
455
|
styles: Y.positionerStyles,
|
|
456
456
|
transitionStatus: B,
|
|
457
457
|
props: u,
|
|
@@ -462,9 +462,9 @@ var Qn = /* @__PURE__ */ o.forwardRef(function(n, i) {
|
|
|
462
462
|
let W = null;
|
|
463
463
|
return t.type === "menubar" ? W = t.context.contentElement : t.type === void 0 && (W = N), /* @__PURE__ */ He(Ve.Provider, {
|
|
464
464
|
value: Y,
|
|
465
|
-
children: [Ce && /* @__PURE__ */ H(
|
|
465
|
+
children: [Ce && /* @__PURE__ */ H(Lt, {
|
|
466
466
|
ref: t.type === "context-menu" || t.type === "nested-context-menu" ? t.context.internalBackdropRef : null,
|
|
467
|
-
inert:
|
|
467
|
+
inert: qt(!M),
|
|
468
468
|
cutout: W
|
|
469
469
|
}), /* @__PURE__ */ H(ft, {
|
|
470
470
|
id: G,
|
|
@@ -600,7 +600,7 @@ function ln(e) {
|
|
|
600
600
|
return n;
|
|
601
601
|
}
|
|
602
602
|
var un = {
|
|
603
|
-
...
|
|
603
|
+
...Yt,
|
|
604
604
|
disabled: (e) => e.parent.type === "menubar" && e.parent.context.disabled || e.disabled,
|
|
605
605
|
modal: (e) => (e.parent.type === void 0 || e.parent.type === "context-menu") && (e.modal ?? !0),
|
|
606
606
|
openMethod: (e) => e.openMethod,
|
|
@@ -664,7 +664,7 @@ function dn() {
|
|
|
664
664
|
}
|
|
665
665
|
function pn() {
|
|
666
666
|
return {
|
|
667
|
-
...
|
|
667
|
+
...Wt(),
|
|
668
668
|
disabled: !1,
|
|
669
669
|
modal: !0,
|
|
670
670
|
openMethod: null,
|
|
@@ -712,7 +712,7 @@ var fn = mt(function(n) {
|
|
|
712
712
|
parent: k
|
|
713
713
|
});
|
|
714
714
|
t.useControlledProp("openProp", x), t.useControlledProp("triggerIdProp", R), t.useContextCallback("onOpenChangeComplete", v);
|
|
715
|
-
const w = Ae(), C = Ae(), F = t.useState("floatingTreeRoot"), M = Et(F), b = gt(), E = t.useState("open"), N = t.useState("activeTriggerElement"), B = t.useState("positionerElement"), U = t.useState("hoverEnabled"), A = t.useState("disabled"), Z = t.useState("lastOpenChangeReason"), S = t.useState("parent"), G = t.useState("activeIndex"), le = t.useState("payload"), ue = t.useState("floatingParentNodeId"), ee = o.useRef(null), J = o.useRef(S.type !== "context-menu"), te = Pe(), q = o.useRef(!0), ae = Pe(), ne = ue != null, { openMethod: _, triggerProps: K } =
|
|
715
|
+
const w = Ae(), C = Ae(), F = t.useState("floatingTreeRoot"), M = Et(F), b = gt(), E = t.useState("open"), N = t.useState("activeTriggerElement"), B = t.useState("positionerElement"), U = t.useState("hoverEnabled"), A = t.useState("disabled"), Z = t.useState("lastOpenChangeReason"), S = t.useState("parent"), G = t.useState("activeIndex"), le = t.useState("payload"), ue = t.useState("floatingParentNodeId"), ee = o.useRef(null), J = o.useRef(S.type !== "context-menu"), te = Pe(), q = o.useRef(!0), ae = Pe(), ne = ue != null, { openMethod: _, triggerProps: K } = Ut(E);
|
|
716
716
|
t.useSyncedValues({
|
|
717
717
|
disabled: d,
|
|
718
718
|
highlightItemOnHover: I,
|
|
@@ -808,7 +808,7 @@ var fn = mt(function(n) {
|
|
|
808
808
|
externalTree: ne ? F : void 0
|
|
809
809
|
}), xe = et(), Ce = o.useCallback((p) => {
|
|
810
810
|
t.select("activeIndex") !== p && t.set("activeIndex", p);
|
|
811
|
-
}, [t]), W =
|
|
811
|
+
}, [t]), W = $t(Y, {
|
|
812
812
|
enabled: !A,
|
|
813
813
|
listRef: t.context.itemDomElements,
|
|
814
814
|
activeIndex: G,
|
|
@@ -824,7 +824,7 @@ var fn = mt(function(n) {
|
|
|
824
824
|
focusItemOnHover: I
|
|
825
825
|
}), D = o.useCallback((p) => {
|
|
826
826
|
t.context.typingRef.current = p;
|
|
827
|
-
}, [t]), O =
|
|
827
|
+
}, [t]), O = jt(Y, {
|
|
828
828
|
enabled: !A,
|
|
829
829
|
listRef: t.context.itemLabels,
|
|
830
830
|
elementsRef: t.context.itemDomElements,
|
|
@@ -945,9 +945,9 @@ var mn = { "aria-expanded": void 0 }, so = /* @__PURE__ */ o.forwardRef(function
|
|
|
945
945
|
nativeButton: s,
|
|
946
946
|
itemMetadata: Z,
|
|
947
947
|
nodeId: I?.context.nodeId
|
|
948
|
-
}), le = a.useState("hoverEnabled"), ue =
|
|
948
|
+
}), le = a.useState("hoverEnabled"), ue = Nt(T, {
|
|
949
949
|
enabled: le && c && !B,
|
|
950
|
-
handleClose:
|
|
950
|
+
handleClose: Ft({ blockPointerEvents: !0 }),
|
|
951
951
|
mouseOnly: !0,
|
|
952
952
|
move: !0,
|
|
953
953
|
restMs: g,
|
|
@@ -960,7 +960,7 @@ var mn = { "aria-expanded": void 0 }, so = /* @__PURE__ */ o.forwardRef(function
|
|
|
960
960
|
externalTree: k,
|
|
961
961
|
isClosing: () => a.select("transitionStatus") === "ending",
|
|
962
962
|
guardStaleOpen: !0
|
|
963
|
-
}), ee =
|
|
963
|
+
}), ee = Dt(T, {
|
|
964
964
|
enabled: !B,
|
|
965
965
|
event: "mousedown",
|
|
966
966
|
toggle: !c,
|
|
@@ -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 "./
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as Je } from "./
|
|
17
|
-
import { t as Qe } from "./
|
|
18
|
-
import { t as Xe } from "./
|
|
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
|
-
...
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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:
|
|
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
|
-
}), _ =
|
|
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 } =
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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(
|
|
293
|
-
inert:
|
|
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 =
|
|
312
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
349
|
+
Ke(m),
|
|
350
350
|
l
|
|
351
351
|
],
|
|
352
352
|
stateAttributesMapping: Ie
|
|
353
353
|
});
|
|
354
|
-
return /* @__PURE__ */ g(
|
|
354
|
+
return /* @__PURE__ */ g(Le, {
|
|
355
355
|
context: I,
|
|
356
356
|
openInteractionType: O,
|
|
357
357
|
modal: w,
|
package/dist/wc-react/Select.js
CHANGED
|
@@ -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 {
|
|
9
|
-
import {
|
|
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] =
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
134
|
+
children: [/* @__PURE__ */ e(ue, {
|
|
135
135
|
className: "flex flex-1 gap-2 shrink-0 whitespace-nowrap",
|
|
136
136
|
children: o
|
|
137
|
-
}), /* @__PURE__ */ e(
|
|
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(
|
|
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(
|
|
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(
|
|
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),
|