@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.
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index194.js +6 -8
- package/dist/index194.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 +32 -32
- package/dist/wc/AIInput.js.map +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-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 +2 -2
- package/dist/wc-react/AIInput.js.map +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-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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as X } from "./rolldown-runtime.js";
|
|
2
2
|
import { f as M } from "./_shared.js";
|
|
3
|
-
import { t as y } from "./Skeleton2.js";
|
|
4
3
|
import { n as _ } from "./AICodeBlock.js";
|
|
4
|
+
import { t as y } from "./Skeleton2.js";
|
|
5
5
|
import * as l from "react";
|
|
6
6
|
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
function Z(a) {
|
|
@@ -5,8 +5,8 @@ import { t as Q } from "./copy.js";
|
|
|
5
5
|
import { t as X } from "./list.js";
|
|
6
6
|
import { n as Z, t as _ } from "./thumbs-up.js";
|
|
7
7
|
import { t as ee } from "./Avatar.js";
|
|
8
|
-
import { t as se } from "./create-safe-context.js";
|
|
9
8
|
import { f as o } from "./_shared.js";
|
|
9
|
+
import { t as se } from "./create-safe-context.js";
|
|
10
10
|
import { n as te } from "./interaction-context.js";
|
|
11
11
|
import { t as ae } from "./markdown-renderer.js";
|
|
12
12
|
import { t as ne } from "./AITypingIndicator.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as k } from "./dist.js";
|
|
2
2
|
import { t as I } from "./arrow-down.js";
|
|
3
3
|
import { f as w } from "./_shared.js";
|
|
4
|
+
import { t as V } from "./button.js";
|
|
4
5
|
import { t as y } from "./react.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as N } from "./button.js";
|
|
6
|
+
import { t as N } from "./AnimatePresence.js";
|
|
7
7
|
import * as e from "react";
|
|
8
8
|
import { jsx as p, jsxs as H } from "react/jsx-runtime";
|
|
9
9
|
var T = k("fixed flex items-center justify-center shadow-lg transition-all", {
|
|
@@ -107,7 +107,7 @@ function D({ scrollRef: l, containerRef: n, threshold: m = 50, onClick: o, visib
|
|
|
107
107
|
const c = a ?? t, s = () => {
|
|
108
108
|
o ? o() : l?.current ? l.current.scrollIntoView({ behavior: "smooth" }) : n?.current && (n.current.scrollTop = n.current.scrollHeight);
|
|
109
109
|
}, g = j(d);
|
|
110
|
-
return /* @__PURE__ */ p(
|
|
110
|
+
return /* @__PURE__ */ p(N, { children: c && /* @__PURE__ */ H(y.div, {
|
|
111
111
|
"data-slot": "ai-scroll-button",
|
|
112
112
|
initial: {
|
|
113
113
|
opacity: 0,
|
|
@@ -138,7 +138,7 @@ function D({ scrollRef: l, containerRef: n, threshold: m = 50, onClick: o, visib
|
|
|
138
138
|
size: d,
|
|
139
139
|
position: f
|
|
140
140
|
}), "motion-reduce:transition-none", u),
|
|
141
|
-
children: [/* @__PURE__ */ p(
|
|
141
|
+
children: [/* @__PURE__ */ p(V, {
|
|
142
142
|
appearance: "ghost",
|
|
143
143
|
variant: "secondary",
|
|
144
144
|
size: "icon",
|
|
@@ -6,10 +6,10 @@ import { t as H } from "./chevron-right.js";
|
|
|
6
6
|
import { t as T } from "./circle-alert.js";
|
|
7
7
|
import { t as L } from "./clock.js";
|
|
8
8
|
import { f as i } from "./_shared.js";
|
|
9
|
-
import { t as _ } from "./react.js";
|
|
10
|
-
import { t as B } from "./AnimatePresence.js";
|
|
11
|
-
import { t as R } from "./use-controllable-state.js";
|
|
12
9
|
import { n as N } from "./AICodeBlock.js";
|
|
10
|
+
import { t as _ } from "./use-controllable-state.js";
|
|
11
|
+
import { t as B } from "./react.js";
|
|
12
|
+
import { t as R } from "./AnimatePresence.js";
|
|
13
13
|
import * as y from "react";
|
|
14
14
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
15
15
|
var q = [["path", {
|
|
@@ -102,7 +102,7 @@ function b(e) {
|
|
|
102
102
|
return typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
103
103
|
}
|
|
104
104
|
function S({ toolPart: e, defaultOpen: s = !1, open: n, onOpenChange: a, className: d }) {
|
|
105
|
-
const [u, l] =
|
|
105
|
+
const [u, l] = _({
|
|
106
106
|
value: n,
|
|
107
107
|
defaultValue: s,
|
|
108
108
|
onChange: a
|
|
@@ -117,7 +117,7 @@ function S({ toolPart: e, defaultOpen: s = !1, open: n, onOpenChange: a, classNa
|
|
|
117
117
|
status: m,
|
|
118
118
|
isOpen: u,
|
|
119
119
|
onToggle: p
|
|
120
|
-
}), /* @__PURE__ */ t(
|
|
120
|
+
}), /* @__PURE__ */ t(R, { children: u && /* @__PURE__ */ t(B.div, {
|
|
121
121
|
initial: {
|
|
122
122
|
height: 0,
|
|
123
123
|
opacity: 0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as xe } from "./dist.js";
|
|
2
2
|
import { t as Se } from "./createLucideIcon.js";
|
|
3
|
-
import { t as ye } from "./create-safe-context.js";
|
|
4
3
|
import { f as r } from "./_shared.js";
|
|
5
4
|
import { r as M } from "./useRenderElement.js";
|
|
5
|
+
import { t as ye } from "./create-safe-context.js";
|
|
6
6
|
import { t as we } from "./button.js";
|
|
7
7
|
import { t as y } from "./skeleton.js";
|
|
8
8
|
import { t as Ne } from "./input3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as h, t as g } from "./useIsoLayoutEffect.js";
|
|
2
2
|
import { s as w, t as c, u as x } from "./useRenderElement.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as N } from "./
|
|
3
|
+
import { n as I } from "./useTimeout.js";
|
|
4
|
+
import { a as y, n as E, r as N } from "./stateAttributesMapping.js";
|
|
5
5
|
import * as s from "react";
|
|
6
6
|
import { jsx as P } from "react/jsx-runtime";
|
|
7
7
|
var L = /* @__PURE__ */ s.createContext(void 0);
|
|
@@ -47,14 +47,14 @@ function k(o, { referrerPolicy: e, crossOrigin: u, sizes: m, srcSet: f }) {
|
|
|
47
47
|
}
|
|
48
48
|
var O = {
|
|
49
49
|
...p,
|
|
50
|
-
...
|
|
50
|
+
...E
|
|
51
51
|
}, $ = /* @__PURE__ */ s.forwardRef(function(e, u) {
|
|
52
52
|
const { className: m, render: f, onLoadingStatusChange: r, style: l, ...a } = e, { setImageLoadingStatus: t } = b(), n = k(a.src, a), i = n === "loaded", { mounted: d, transitionStatus: C, setMounted: R } = y(i), v = s.useRef(null), S = h((A) => {
|
|
53
53
|
r?.(A), t(A);
|
|
54
54
|
});
|
|
55
55
|
g(() => {
|
|
56
56
|
n !== "idle" && S(n);
|
|
57
|
-
}, [n, S]), g(() => () => t("idle"), [t]),
|
|
57
|
+
}, [n, S]), g(() => () => t("idle"), [t]), N({
|
|
58
58
|
open: i,
|
|
59
59
|
ref: v,
|
|
60
60
|
onComplete() {
|
|
@@ -73,7 +73,7 @@ var O = {
|
|
|
73
73
|
});
|
|
74
74
|
return d ? M : null;
|
|
75
75
|
}), q = /* @__PURE__ */ s.forwardRef(function(e, u) {
|
|
76
|
-
const { className: m, render: f, delay: r = 0, style: l, ...a } = e, { imageLoadingStatus: t } = b(), [n, i] = s.useState(r === 0), d =
|
|
76
|
+
const { className: m, render: f, delay: r = 0, style: l, ...a } = e, { imageLoadingStatus: t } = b(), [n, i] = s.useState(r === 0), d = I();
|
|
77
77
|
return s.useEffect(() => (r > 0 ? d.start(r, () => i(!0)) : i(!0), d.clear), [d, r]), c("span", e, {
|
|
78
78
|
state: { imageLoadingStatus: t },
|
|
79
79
|
ref: u,
|
|
@@ -7,8 +7,8 @@ import { t as qe } from "./useValueChanged.js";
|
|
|
7
7
|
import { t as oe } from "./useBaseUiId.js";
|
|
8
8
|
import { i as $e, n as je, r as Ke, s as _e, u as Je } from "./LabelableContext.js";
|
|
9
9
|
import { n as Xe, t as Ye } from "./visuallyHidden.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { a as ze, n as Qe, r as Ze } from "./stateAttributesMapping.js";
|
|
11
|
+
import { n as et, t as tt } from "./useButton.js";
|
|
12
12
|
import { t as rt } from "./FieldItemContext.js";
|
|
13
13
|
import { t as nt } from "./useAriaLabelledBy.js";
|
|
14
14
|
import * as n from "react";
|
|
@@ -48,7 +48,7 @@ var lt = "data-parent", yt = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
|
48
48
|
I && (s ? d = Q : r !== void 0 ? d = `${p.id}-${r}` : d ||= Q);
|
|
49
49
|
let G = {};
|
|
50
50
|
I && (s ? G = p.getParentProps() : r !== void 0 && (G = p.getChildProps(r)));
|
|
51
|
-
const { checked: Z = x, indeterminate: Pe = R, onCheckedChange: Re, ...Ie } = G, H = t?.value, T = n.useRef(null), V = we(() => /* @__PURE__ */ Symbol()), L = n.useRef(!1), { getButtonProps: ye, buttonRef: De } =
|
|
51
|
+
const { checked: Z = x, indeterminate: Pe = R, onCheckedChange: Re, ...Ie } = G, H = t?.value, T = n.useRef(null), V = we(() => /* @__PURE__ */ Symbol()), L = n.useRef(!1), { getButtonProps: ye, buttonRef: De } = tt({
|
|
52
52
|
disabled: o,
|
|
53
53
|
native: S
|
|
54
54
|
}), y = t?.validation ?? ge, [a, Ee] = Oe({
|
|
@@ -177,7 +177,7 @@ var lt = "data-parent", yt = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
|
177
177
|
if (f || o) return;
|
|
178
178
|
e.preventDefault();
|
|
179
179
|
const l = m.current;
|
|
180
|
-
l &&
|
|
180
|
+
l && et(l, e);
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
de,
|
|
@@ -206,11 +206,11 @@ var lt = "data-parent", yt = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
|
206
206
|
]
|
|
207
207
|
});
|
|
208
208
|
}), Dt = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
209
|
-
const { render: x, className: le, style: j, keepMounted: N = !1, ...O } = i, c = ut(), P = c.checked || c.indeterminate, { mounted: R, transitionStatus: w, setMounted: E } =
|
|
209
|
+
const { render: x, className: le, style: j, keepMounted: N = !1, ...O } = i, c = ut(), P = c.checked || c.indeterminate, { mounted: R, transitionStatus: w, setMounted: E } = ze(P), B = n.useRef(null), s = {
|
|
210
210
|
...c,
|
|
211
211
|
transitionStatus: w
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
Ze({
|
|
214
214
|
open: P,
|
|
215
215
|
ref: B,
|
|
216
216
|
onComplete() {
|
|
@@ -219,7 +219,7 @@ var lt = "data-parent", yt = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
|
219
219
|
});
|
|
220
220
|
const f = {
|
|
221
221
|
...se(c),
|
|
222
|
-
...
|
|
222
|
+
...Qe
|
|
223
223
|
}, K = N || R, g = ie("span", i, {
|
|
224
224
|
ref: [h, B],
|
|
225
225
|
state: s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as H, t as j } from "./useIsoLayoutEffect.js";
|
|
2
2
|
import { i as L, t as C } from "./useRenderElement.js";
|
|
3
|
+
import { n as y } from "./stateAttributesMapping.js";
|
|
3
4
|
import { t as q } from "./useButton.js";
|
|
4
|
-
import { a as y } from "./useOpenChangeComplete.js";
|
|
5
5
|
import { a as O, i as z, n as G, o as J, r as K, t as Q } from "./useCollapsiblePanel.js";
|
|
6
6
|
import * as c from "react";
|
|
7
7
|
import { jsx as V } from "react/jsx-runtime";
|
|
@@ -5,11 +5,11 @@ import { t as B } from "./useBaseUiId.js";
|
|
|
5
5
|
import { O as H, R as W, _ as G, a as Y, d as $, f as q, g as z, h as J, i as Q, j as X, m as Z, n as ee, o as te, p as oe, s as ne, t as se, u as ae, x as re } from "./popupStateMapping.js";
|
|
6
6
|
import { n as ie, r as le } from "./shadowDom.js";
|
|
7
7
|
import { a as pe } from "./composite2.js";
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { a as de, i as ge, n as fe, o as me, t as Se } from "./useScrollLock.js";
|
|
8
|
+
import { a as ue, i as ce, n as de, o as ge, t as fe } from "./useScrollLock.js";
|
|
9
|
+
import { n as me, r as Se } from "./stateAttributesMapping.js";
|
|
11
10
|
import { n as Pe, r as Ce, t as he } from "./store.js";
|
|
12
11
|
import { t as De } from "./usePopupHandleStore.js";
|
|
12
|
+
import { t as A } from "./useButton.js";
|
|
13
13
|
import { t as Re } from "./inertValue.js";
|
|
14
14
|
import * as c from "react";
|
|
15
15
|
import { jsx as k, jsxs as U } from "react/jsx-runtime";
|
|
@@ -69,13 +69,13 @@ function Oe() {
|
|
|
69
69
|
}
|
|
70
70
|
var Ie = {
|
|
71
71
|
...se,
|
|
72
|
-
...
|
|
72
|
+
...me,
|
|
73
73
|
nestedDialogOpen(e) {
|
|
74
74
|
return e ? { "data-nested-dialog-open": "" } : null;
|
|
75
75
|
}
|
|
76
76
|
}, Ye = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
77
77
|
const { render: r, className: d, style: g, finalFocus: i, initialFocus: p, ...s } = t, o = R(), m = o.useState("descriptionElementId"), P = o.useState("disablePointerDismissal"), S = o.useState("floatingRootContext"), u = o.useState("popupProps"), a = o.useState("modal"), f = o.useState("mounted"), C = o.useState("nested"), h = o.useState("nestedOpenDialogCount"), D = o.useState("open"), I = o.useState("openMethod"), l = o.useState("titleElementId"), O = o.useState("transitionStatus"), v = o.useState("role"), x = S.useState("floatingId");
|
|
78
|
-
Oe(),
|
|
78
|
+
Oe(), Se({
|
|
79
79
|
open: D,
|
|
80
80
|
ref: o.context.popupRef,
|
|
81
81
|
onComplete() {
|
|
@@ -112,7 +112,7 @@ var Ie = {
|
|
|
112
112
|
],
|
|
113
113
|
stateAttributesMapping: Ie
|
|
114
114
|
});
|
|
115
|
-
return /* @__PURE__ */ k(
|
|
115
|
+
return /* @__PURE__ */ k(ge, {
|
|
116
116
|
context: S,
|
|
117
117
|
openInteractionType: I,
|
|
118
118
|
disabled: !f,
|
|
@@ -130,7 +130,7 @@ var Ie = {
|
|
|
130
130
|
children: /* @__PURE__ */ U(H, {
|
|
131
131
|
ref: n,
|
|
132
132
|
...d,
|
|
133
|
-
children: [i && p === !0 && /* @__PURE__ */ k(
|
|
133
|
+
children: [i && p === !0 && /* @__PURE__ */ k(de, {
|
|
134
134
|
ref: g.context.internalBackdropRef,
|
|
135
135
|
inert: Re(!s)
|
|
136
136
|
}), t.children]
|
|
@@ -164,7 +164,7 @@ function be({ store: e, parentContext: t, isDrawer: n }) {
|
|
|
164
164
|
},
|
|
165
165
|
escapeKey: S
|
|
166
166
|
});
|
|
167
|
-
return
|
|
167
|
+
return fe(r && g === !0, i), e.useContextCallback("onNestedDialogOpen", (a, f) => {
|
|
168
168
|
o(a), P(f);
|
|
169
169
|
}), L(() => (t?.onNestedDialogOpen && (r ? t.onNestedDialogOpen(s + 1, m + (n ? 1 : 0)) : t.onNestedDialogOpen(0, 0)), () => {
|
|
170
170
|
t?.onNestedDialogOpen && r && t.onNestedDialogOpen(0, 0);
|
|
@@ -286,7 +286,7 @@ var ze = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
|
286
286
|
const a = B(s), f = u.useState("floatingRootContext"), C = u.useState("isOpenedByTrigger", a), h = u.useState("triggerPopupId", a), D = c.useRef(null), { registerTrigger: I, isMountedByThisTrigger: l } = G(a, D, u, { payload: o }), { getButtonProps: O, buttonRef: v } = A({
|
|
287
287
|
disabled: i,
|
|
288
288
|
native: p
|
|
289
|
-
}), x =
|
|
289
|
+
}), x = ue(f), b = ce(() => u.select("open"), (y) => {
|
|
290
290
|
u.set("openMethod", y);
|
|
291
291
|
}), T = {
|
|
292
292
|
disabled: i,
|
|
@@ -9,14 +9,14 @@ import { r as je } from "./createBaseUIEventDetails.js";
|
|
|
9
9
|
import { t as $e } from "./useBaseUiId.js";
|
|
10
10
|
import { D as Ke, E as We, H as Je, I as j, T as Ye, _ as qe, r as $, w as Qe } from "./popupStateMapping.js";
|
|
11
11
|
import { n as K } from "./shadowDom.js";
|
|
12
|
-
import { i as Ve, t as Xe } from "./useButton.js";
|
|
13
|
-
import { t as Ze } from "./CompositeItem.js";
|
|
14
12
|
import { n as Y } from "./useTimeout.js";
|
|
15
|
-
import { n as
|
|
16
|
-
import { a as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
13
|
+
import { n as Ve, t as Xe } from "./safePolygon.js";
|
|
14
|
+
import { a as Ze } from "./useScrollLock.js";
|
|
15
|
+
import { t as et } from "./usePopupHandleStore.js";
|
|
16
|
+
import { t as tt } from "./useFocus.js";
|
|
17
|
+
import { i as ot, t as nt } from "./useButton.js";
|
|
18
|
+
import { t as rt } from "./getPseudoElementBounds.js";
|
|
19
|
+
import { t as at } from "./CompositeItem.js";
|
|
20
20
|
import { t as st } from "./Separator.js";
|
|
21
21
|
import { t as it } from "./useTriggerFocusGuards.js";
|
|
22
22
|
import { t as ut } from "./Kbd.js";
|
|
@@ -46,9 +46,9 @@ function Nt(e) {
|
|
|
46
46
|
]);
|
|
47
47
|
}
|
|
48
48
|
var Tt = Je(function(t, n) {
|
|
49
|
-
const { render: r, className: s, style: i, disabled: g = !1, nativeButton: N = !0, id: T, openOnHover: w, delay: le = 100, closeDelay: O = 0, handle: me, payload: fe, ...ge } = t, be = mt(!0), a =
|
|
49
|
+
const { render: r, className: s, style: i, disabled: g = !1, nativeButton: N = !0, id: T, openOnHover: w, delay: le = 100, closeDelay: O = 0, handle: me, payload: fe, ...ge } = t, be = mt(!0), a = et(me) ?? be?.store;
|
|
50
50
|
if (!a) throw new Error(Ae(85));
|
|
51
|
-
const c = $e(T), we = a.useState("isTriggerActive", c), I = a.useState("floatingRootContext"), p = a.useState("isOpenedByTrigger", c), Me = a.useState("triggerPopupId", c), v = u.useRef(null), m = Rt(), xe =
|
|
51
|
+
const c = $e(T), we = a.useState("isTriggerActive", c), I = a.useState("floatingRootContext"), p = a.useState("isOpenedByTrigger", c), Me = a.useState("triggerPopupId", c), v = u.useRef(null), m = Rt(), xe = ot(!0), E = We(), y = u.useMemo(() => E ?? new Ke(), [E]), he = Qe(y), ve = Ye(), { registerTrigger: ye, isMountedByThisTrigger: z } = qe(c, v, a, {
|
|
52
52
|
payload: fe,
|
|
53
53
|
closeDelay: O,
|
|
54
54
|
parent: m,
|
|
@@ -56,7 +56,7 @@ var Tt = Je(function(t, n) {
|
|
|
56
56
|
floatingNodeId: he,
|
|
57
57
|
floatingParentNodeId: ve,
|
|
58
58
|
keyboardEventRelay: xe?.relayKeyboardEvent
|
|
59
|
-
}), l = m.type === "menubar", De = a.useState("disabled"), M = g || De || l && m.context.disabled, { getButtonProps: Ne, buttonRef: Te } =
|
|
59
|
+
}), l = m.type === "menubar", De = a.useState("disabled"), M = g || De || l && m.context.disabled, { getButtonProps: Ne, buttonRef: Te } = nt({
|
|
60
60
|
disabled: M,
|
|
61
61
|
native: N
|
|
62
62
|
});
|
|
@@ -71,7 +71,7 @@ var Tt = Je(function(t, n) {
|
|
|
71
71
|
if (!b.current) return;
|
|
72
72
|
H.clear(), a.context.allowMouseUpTriggerRef.current = !1;
|
|
73
73
|
const h = x.target;
|
|
74
|
-
K(b.current, h) || K(a.select("positionerElement"), h) || h === b.current || h != null && Q(h) === a.select("rootId") ||
|
|
74
|
+
K(b.current, h) || K(a.select("positionerElement"), h) || h === b.current || h != null && Q(h) === a.select("rootId") || rt(x, b.current) || y.events.emit("close", {
|
|
75
75
|
domEvent: x,
|
|
76
76
|
reason: je
|
|
77
77
|
});
|
|
@@ -83,9 +83,9 @@ var Tt = Je(function(t, n) {
|
|
|
83
83
|
R,
|
|
84
84
|
a
|
|
85
85
|
]);
|
|
86
|
-
const S = l && m.context.hasSubmenuOpen, Ie =
|
|
86
|
+
const S = l && m.context.hasSubmenuOpen, Ie = Ve(I, {
|
|
87
87
|
enabled: (w ?? S) && !M && (!l || S && !z),
|
|
88
|
-
handleClose:
|
|
88
|
+
handleClose: Xe({ blockPointerEvents: !l }),
|
|
89
89
|
mouseOnly: !0,
|
|
90
90
|
move: !1,
|
|
91
91
|
restMs: m.type === void 0 ? le : void 0,
|
|
@@ -94,13 +94,13 @@ var Tt = Je(function(t, n) {
|
|
|
94
94
|
externalTree: y,
|
|
95
95
|
isActiveTrigger: we,
|
|
96
96
|
isClosing: () => a.select("transitionStatus") === "ending"
|
|
97
|
-
}), Re = It(p, a.select("lastOpenChangeReason")), _ =
|
|
97
|
+
}), Re = It(p, a.select("lastOpenChangeReason")), _ = Ze(I, {
|
|
98
98
|
enabled: !M,
|
|
99
99
|
event: p && l ? "click" : "mousedown",
|
|
100
100
|
toggle: !0,
|
|
101
101
|
ignoreMouse: !1,
|
|
102
102
|
stickIfOpen: m.type === void 0 ? Re : !1
|
|
103
|
-
}), B =
|
|
103
|
+
}), B = tt(I, { enabled: !M && S }), Se = Nt({
|
|
104
104
|
open: p,
|
|
105
105
|
enabled: l,
|
|
106
106
|
mouseDownAction: "open"
|
|
@@ -138,7 +138,7 @@ var Tt = Je(function(t, n) {
|
|
|
138
138
|
ref: L,
|
|
139
139
|
props: A
|
|
140
140
|
});
|
|
141
|
-
return l ? /* @__PURE__ */ o(
|
|
141
|
+
return l ? /* @__PURE__ */ o(at, {
|
|
142
142
|
tag: "button",
|
|
143
143
|
render: r,
|
|
144
144
|
className: s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { k as s } from "./popupStateMapping.js";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { jsxs as m } from "react/jsx-runtime";
|
|
4
|
+
import * as c from "react-dom";
|
|
5
5
|
var P = /* @__PURE__ */ o.forwardRef(function(t, a) {
|
|
6
6
|
const { children: l, container: n, className: d, render: u, style: p, ...i } = t, { node: r, subtree: e } = s({
|
|
7
7
|
container: n,
|
|
@@ -9,7 +9,7 @@ var P = /* @__PURE__ */ o.forwardRef(function(t, a) {
|
|
|
9
9
|
componentProps: t,
|
|
10
10
|
elementProps: i
|
|
11
11
|
});
|
|
12
|
-
return !e && !r ? null : /* @__PURE__ */
|
|
12
|
+
return !e && !r ? null : /* @__PURE__ */ m(o.Fragment, { children: [e, r && /* @__PURE__ */ c.createPortal(l, r)] });
|
|
13
13
|
});
|
|
14
14
|
export {
|
|
15
15
|
P as t
|
|
@@ -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,
|