@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
|
@@ -15,8 +15,8 @@ import { t as Y } from "./loader-circle.js";
|
|
|
15
15
|
import { t as ze } from "./plus.js";
|
|
16
16
|
import { t as Ae } from "./x.js";
|
|
17
17
|
import { n as y } from "./utils.js";
|
|
18
|
-
import { t as Le } from "./use-controllable-state.js";
|
|
19
18
|
import { t as N } from "./button.js";
|
|
19
|
+
import { t as Le } from "./use-controllable-state.js";
|
|
20
20
|
import { t as Ie } from "./Progress.js";
|
|
21
21
|
import { t as _e } from "./Input2.js";
|
|
22
22
|
import { t as Fe } from "./Textarea2.js";
|
package/dist/wc/AIContainer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as $ } from "./rolldown-runtime.js";
|
|
2
2
|
import { i as K, t as P } from "./vendor/react.js";
|
|
3
3
|
import { t as ee } from "./minimize-2.js";
|
|
4
|
-
import { t as te } from "./create-safe-context.js";
|
|
5
4
|
import { n as m } from "./utils.js";
|
|
5
|
+
import { t as te } from "./create-safe-context.js";
|
|
6
6
|
import { t as z } from "./AIInput.js";
|
|
7
7
|
import { t as E } from "./AIMessage.js";
|
|
8
8
|
import { n as H, r as se, t as T } from "./AIScrollButton.js";
|
package/dist/wc/AIForm.js
CHANGED
|
@@ -5,28 +5,28 @@ import { t as j } from "./chevron-down.js";
|
|
|
5
5
|
import { t as V } from "./chevron-up.js";
|
|
6
6
|
import { i as v, n as d, t as $ } from "./utils.js";
|
|
7
7
|
import { t as f } from "./label.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { a as B, c as L, d as G, f as T, g as A, h as O, i as P, l as U, m as K, n as M, o as E, p as J, r as H, s as Q, t as W, u as X } from "./SelectSeparator.js";
|
|
9
|
+
import { t as Y } from "./button.js";
|
|
10
10
|
import { t as b } from "./input3.js";
|
|
11
11
|
import { t as Z } from "./textarea.js";
|
|
12
12
|
import { r as ee } from "./interaction-context.js";
|
|
13
13
|
import { n as ae } from "./schema-validation.js";
|
|
14
14
|
import { t as re } from "./checkbox2.js";
|
|
15
|
-
var n = /* @__PURE__ */ R(k(), 1), a = D(), te =
|
|
15
|
+
var n = /* @__PURE__ */ R(k(), 1), a = D(), te = A, se = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(H, {
|
|
16
16
|
ref: s,
|
|
17
17
|
"data-slot": "select-group",
|
|
18
18
|
className: d("scroll-my-1 p-1", e),
|
|
19
19
|
...r
|
|
20
20
|
}));
|
|
21
21
|
se.displayName = "Select.Group";
|
|
22
|
-
var S = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(
|
|
22
|
+
var S = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(K, {
|
|
23
23
|
ref: s,
|
|
24
24
|
"data-slot": "select-value",
|
|
25
25
|
className: d("flex flex-1 text-left", e),
|
|
26
26
|
...r
|
|
27
27
|
}));
|
|
28
28
|
S.displayName = "Select.Value";
|
|
29
|
-
var y = n.forwardRef(({ className: e, size: r = "md", shape: s = "rounded", state: t = "default", children: o, ...i }, l) => /* @__PURE__ */ (0, a.jsxs)(
|
|
29
|
+
var y = n.forwardRef(({ className: e, size: r = "md", shape: s = "rounded", state: t = "default", children: o, ...i }, l) => /* @__PURE__ */ (0, a.jsxs)(O, {
|
|
30
30
|
ref: l,
|
|
31
31
|
"data-slot": "select-trigger",
|
|
32
32
|
"data-size": r,
|
|
@@ -35,58 +35,58 @@ var y = n.forwardRef(({ className: e, size: r = "md", shape: s = "rounded", stat
|
|
|
35
35
|
"aria-invalid": t === "error" || void 0,
|
|
36
36
|
className: d("flex w-full items-center justify-between gap-1.5 outline-none", "bg-background border shadow-xs transition-[color,border-color,box-shadow] duration-200 ease-out motion-reduce:transition-none", "not-disabled:hover:border-ring/50", "disabled:cursor-not-allowed disabled:opacity-50", "*:data-[slot=select-value]:flex *:data-[slot=select-value]:flex-1 *:data-[slot=select-value]:items-center", "data-[placeholder]:text-muted-foreground", r === "xs" && "h-7 px-3 py-1 text-xs", r === "sm" && "h-8 px-3 py-1.5 text-xs", r === "md" && "h-9 px-3 py-2 text-xs", r === "lg" && "h-10 px-3 py-2.5 text-sm", s === "rounded" && "rounded-xl", s === "round" && "rounded-full", t === "default" && "border-input", t === "success" && "border-success", t === "error" && "border-destructive", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", t === "error" && "focus-visible:ring-destructive/20", e),
|
|
37
37
|
...i,
|
|
38
|
-
children: [o, /* @__PURE__ */ (0, a.jsx)(
|
|
38
|
+
children: [o, /* @__PURE__ */ (0, a.jsx)(J, { render: /* @__PURE__ */ (0, a.jsx)(j, { className: "size-4 shrink-0 text-muted-foreground" }) })]
|
|
39
39
|
}));
|
|
40
40
|
y.displayName = "Select.Trigger";
|
|
41
|
-
var N = n.forwardRef(({ className: e, children: r, side: s = "bottom", sideOffset: t = 4, align: o = "center", alignOffset: i = 0, alignItemWithTrigger: l = !0, ...c }, u) => /* @__PURE__ */ (0, a.jsx)(
|
|
41
|
+
var N = n.forwardRef(({ className: e, children: r, side: s = "bottom", sideOffset: t = 4, align: o = "center", alignOffset: i = 0, alignItemWithTrigger: l = !0, ...c }, u) => /* @__PURE__ */ (0, a.jsx)(T, { children: /* @__PURE__ */ (0, a.jsx)(G, {
|
|
42
42
|
side: s,
|
|
43
43
|
sideOffset: t,
|
|
44
44
|
align: o,
|
|
45
45
|
alignOffset: i,
|
|
46
46
|
alignItemWithTrigger: l,
|
|
47
47
|
className: "isolate z-50",
|
|
48
|
-
children: /* @__PURE__ */ (0, a.jsxs)(
|
|
48
|
+
children: /* @__PURE__ */ (0, a.jsxs)(X, {
|
|
49
49
|
ref: u,
|
|
50
50
|
"data-slot": "select-popup",
|
|
51
51
|
className: d("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", e),
|
|
52
52
|
...c,
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ (0, a.jsx)(q, {}),
|
|
55
|
-
/* @__PURE__ */ (0, a.jsx)(
|
|
55
|
+
/* @__PURE__ */ (0, a.jsx)(U, { children: r }),
|
|
56
56
|
/* @__PURE__ */ (0, a.jsx)(I, {})
|
|
57
57
|
]
|
|
58
58
|
})
|
|
59
59
|
}) }));
|
|
60
60
|
N.displayName = "Select.Popup";
|
|
61
|
-
var oe = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(
|
|
61
|
+
var oe = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(M, {
|
|
62
62
|
ref: s,
|
|
63
63
|
"data-slot": "select-group-label",
|
|
64
64
|
className: d("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
65
65
|
...r
|
|
66
66
|
}));
|
|
67
67
|
oe.displayName = "Select.GroupLabel";
|
|
68
|
-
var w = n.forwardRef(({ className: e, children: r, ...s }, t) => /* @__PURE__ */ (0, a.jsxs)(
|
|
68
|
+
var w = n.forwardRef(({ className: e, children: r, ...s }, t) => /* @__PURE__ */ (0, a.jsxs)(L, {
|
|
69
69
|
ref: t,
|
|
70
70
|
"data-slot": "select-item",
|
|
71
71
|
className: d("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground transition-colors duration-75 ease-out motion-reduce:transition-none 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", e),
|
|
72
72
|
...s,
|
|
73
|
-
children: [/* @__PURE__ */ (0, a.jsx)(
|
|
73
|
+
children: [/* @__PURE__ */ (0, a.jsx)(E, {
|
|
74
74
|
className: "flex flex-1 gap-2 shrink-0 whitespace-nowrap",
|
|
75
75
|
children: r
|
|
76
|
-
}), /* @__PURE__ */ (0, a.jsx)(
|
|
76
|
+
}), /* @__PURE__ */ (0, a.jsx)(Q, {
|
|
77
77
|
render: /* @__PURE__ */ (0, a.jsx)("span", { className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center" }),
|
|
78
78
|
children: /* @__PURE__ */ (0, a.jsx)(_, { className: "pointer-events-none animate-in zoom-in-75 fade-in duration-150 motion-reduce:animate-none" })
|
|
79
79
|
})]
|
|
80
80
|
}));
|
|
81
81
|
w.displayName = "Select.Item";
|
|
82
|
-
var le = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(
|
|
82
|
+
var le = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(W, {
|
|
83
83
|
ref: s,
|
|
84
84
|
"data-slot": "select-separator",
|
|
85
85
|
className: d("bg-border -mx-1 my-1 h-px pointer-events-none", e),
|
|
86
86
|
...r
|
|
87
87
|
}));
|
|
88
88
|
le.displayName = "Select.Separator";
|
|
89
|
-
var q = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(
|
|
89
|
+
var q = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(P, {
|
|
90
90
|
ref: s,
|
|
91
91
|
"data-slot": "select-scroll-up-button",
|
|
92
92
|
className: d("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full", e),
|
|
@@ -94,7 +94,7 @@ var q = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(U
|
|
|
94
94
|
children: /* @__PURE__ */ (0, a.jsx)(V, {})
|
|
95
95
|
}));
|
|
96
96
|
q.displayName = "Select.ScrollUpButton";
|
|
97
|
-
var I = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(
|
|
97
|
+
var I = n.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ (0, a.jsx)(B, {
|
|
98
98
|
ref: s,
|
|
99
99
|
"data-slot": "select-scroll-down-button",
|
|
100
100
|
className: d("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full", e),
|
|
@@ -355,7 +355,7 @@ function me({ schema: e, className: r }) {
|
|
|
355
355
|
}),
|
|
356
356
|
/* @__PURE__ */ (0, a.jsx)("div", {
|
|
357
357
|
className: "flex justify-end",
|
|
358
|
-
children: /* @__PURE__ */ (0, a.jsx)(
|
|
358
|
+
children: /* @__PURE__ */ (0, a.jsx)(Y, {
|
|
359
359
|
type: "submit",
|
|
360
360
|
appearance: "gradient",
|
|
361
361
|
variant: "primary",
|
package/dist/wc/AIInput.js
CHANGED
|
@@ -5,8 +5,8 @@ import { t as ke } from "./arrow-down.js";
|
|
|
5
5
|
import { t as ne } from "./arrow-up.js";
|
|
6
6
|
import { a as ce, i as De, n as Y, r as Ee } from "./FileUpload.js";
|
|
7
7
|
import { t as re } from "./x.js";
|
|
8
|
-
import { t as ze } from "./create-safe-context.js";
|
|
9
8
|
import { n as u } from "./utils.js";
|
|
9
|
+
import { t as ze } from "./create-safe-context.js";
|
|
10
10
|
import { t as oe } from "./button.js";
|
|
11
11
|
var l = /* @__PURE__ */ Ae(Ce(), 1), Pe = 500, Se = 10, Be = 1e6, Fe = /^(import |from |export |function |class |const |let |var |def |package )/m, _e = /^\d{4}-\d{2}-\d{2}[\sT]\d{2}:\d{2}:\d{2}/m, Oe = /^\s+at\s+/m, Ke = Object.freeze({
|
|
12
12
|
json: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as V, r as Y } from "./rolldown-runtime.js";
|
|
2
2
|
import { i as X, t as Z } from "./vendor/react.js";
|
|
3
3
|
import { n as j } from "./utils.js";
|
|
4
|
-
import { t as y } from "./Skeleton2.js";
|
|
5
4
|
import { n as G } from "./AICodeBlock.js";
|
|
5
|
+
import { t as y } from "./Skeleton2.js";
|
|
6
6
|
var l = /* @__PURE__ */ V(X(), 1);
|
|
7
7
|
function J(t) {
|
|
8
8
|
if (typeof window > "u") return {
|
package/dist/wc/AIMessage.js
CHANGED
|
@@ -7,8 +7,8 @@ import { t as Q } from "./copy.js";
|
|
|
7
7
|
import { t as X } from "./list.js";
|
|
8
8
|
import { n as Z, t as ee } from "./thumbs-up.js";
|
|
9
9
|
import { t as se } from "./Avatar.js";
|
|
10
|
-
import { t as te } from "./create-safe-context.js";
|
|
11
10
|
import { n as o } from "./utils.js";
|
|
11
|
+
import { t as te } from "./create-safe-context.js";
|
|
12
12
|
import { n as ae } from "./interaction-context.js";
|
|
13
13
|
import { t as re } from "./markdown-renderer.js";
|
|
14
14
|
import { t as ne } from "./AITypingIndicator.js";
|
|
@@ -3,9 +3,9 @@ import { i as k, t as I } from "./vendor/react.js";
|
|
|
3
3
|
import { t as V } from "./dist.js";
|
|
4
4
|
import { t as _ } from "./arrow-down.js";
|
|
5
5
|
import { n as w } from "./utils.js";
|
|
6
|
+
import { t as N } from "./button.js";
|
|
6
7
|
import { t as y } from "./react.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as H } from "./button.js";
|
|
8
|
+
import { t as H } from "./AnimatePresence.js";
|
|
9
9
|
var e = /* @__PURE__ */ j(k(), 1), d = I(), T = V("fixed flex items-center justify-center shadow-lg transition-all", {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -107,7 +107,7 @@ function D({ scrollRef: c, containerRef: n, threshold: m = 50, onClick: o, visib
|
|
|
107
107
|
const a = l ?? t, s = () => {
|
|
108
108
|
o ? o() : c?.current ? c.current.scrollIntoView({ behavior: "smooth" }) : n?.current && (n.current.scrollTop = n.current.scrollHeight);
|
|
109
109
|
}, g = E(f);
|
|
110
|
-
return /* @__PURE__ */ (0, d.jsx)(
|
|
110
|
+
return /* @__PURE__ */ (0, d.jsx)(H, { children: a && /* @__PURE__ */ (0, d.jsxs)(y.div, {
|
|
111
111
|
"data-slot": "ai-scroll-button",
|
|
112
112
|
initial: {
|
|
113
113
|
opacity: 0,
|
|
@@ -138,7 +138,7 @@ function D({ scrollRef: c, containerRef: n, threshold: m = 50, onClick: o, visib
|
|
|
138
138
|
size: f,
|
|
139
139
|
position: p
|
|
140
140
|
}), "motion-reduce:transition-none", u),
|
|
141
|
-
children: [/* @__PURE__ */ (0, d.jsx)(
|
|
141
|
+
children: [/* @__PURE__ */ (0, d.jsx)(N, {
|
|
142
142
|
appearance: "ghost",
|
|
143
143
|
variant: "secondary",
|
|
144
144
|
size: "icon",
|
package/dist/wc/AIToolCall.js
CHANGED
|
@@ -8,10 +8,10 @@ import { t as H } from "./chevron-right.js";
|
|
|
8
8
|
import { t as I } from "./circle-alert.js";
|
|
9
9
|
import { t as L } from "./clock.js";
|
|
10
10
|
import { n as o } from "./utils.js";
|
|
11
|
-
import { t as B } from "./react.js";
|
|
12
|
-
import { t as E } from "./AnimatePresence.js";
|
|
13
|
-
import { t as M } from "./use-controllable-state.js";
|
|
14
11
|
import { n as v } from "./AICodeBlock.js";
|
|
12
|
+
import { t as B } from "./use-controllable-state.js";
|
|
13
|
+
import { t as E } from "./react.js";
|
|
14
|
+
import { t as M } from "./AnimatePresence.js";
|
|
15
15
|
var D = [["path", {
|
|
16
16
|
d: "m16 18 6-6-6-6",
|
|
17
17
|
key: "eg8j8"
|
|
@@ -102,7 +102,7 @@ function y(e) {
|
|
|
102
102
|
return typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
103
103
|
}
|
|
104
104
|
function k({ toolPart: e, defaultOpen: a = !1, open: t, onOpenChange: n, className: c }) {
|
|
105
|
-
const [d, i] =
|
|
105
|
+
const [d, i] = B({
|
|
106
106
|
value: t,
|
|
107
107
|
defaultValue: a,
|
|
108
108
|
onChange: n
|
|
@@ -117,7 +117,7 @@ function k({ toolPart: e, defaultOpen: a = !1, open: t, onOpenChange: n, classNa
|
|
|
117
117
|
status: u,
|
|
118
118
|
isOpen: d,
|
|
119
119
|
onToggle: m
|
|
120
|
-
}), /* @__PURE__ */ (0, s.jsx)(
|
|
120
|
+
}), /* @__PURE__ */ (0, s.jsx)(M, { children: d && /* @__PURE__ */ (0, s.jsx)(E.div, {
|
|
121
121
|
initial: {
|
|
122
122
|
height: 0,
|
|
123
123
|
opacity: 0
|
|
@@ -2,9 +2,9 @@ import { a as xe } from "./rolldown-runtime.js";
|
|
|
2
2
|
import { i as ve, t as Se } from "./vendor/react.js";
|
|
3
3
|
import { t as ye } from "./dist.js";
|
|
4
4
|
import { t as we } from "./createLucideIcon.js";
|
|
5
|
-
import { t as Ne } from "./create-safe-context.js";
|
|
6
5
|
import { n as r } from "./utils.js";
|
|
7
6
|
import { r as N } from "./useRenderElement.js";
|
|
7
|
+
import { t as Ne } from "./create-safe-context.js";
|
|
8
8
|
import { t as je } from "./button.js";
|
|
9
9
|
import { t as S } from "./skeleton.js";
|
|
10
10
|
import { t as Me } from "./input3.js";
|
|
@@ -2,8 +2,8 @@ import { a as R } from "./rolldown-runtime.js";
|
|
|
2
2
|
import { i as h, t as w } from "./vendor/react.js";
|
|
3
3
|
import { n as _, t as g } from "./useIsoLayoutEffect.js";
|
|
4
4
|
import { s as I, t as c, u as y } from "./useRenderElement.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as j } from "./
|
|
5
|
+
import { n as E } from "./useTimeout.js";
|
|
6
|
+
import { a as N, n as P, r as j } from "./stateAttributesMapping.js";
|
|
7
7
|
var s = /* @__PURE__ */ R(h(), 1), L = /* @__PURE__ */ s.createContext(void 0);
|
|
8
8
|
function b() {
|
|
9
9
|
const n = s.useContext(L);
|
|
@@ -47,14 +47,14 @@ function O(n, { referrerPolicy: e, crossOrigin: u, sizes: f, srcSet: m }) {
|
|
|
47
47
|
}
|
|
48
48
|
var q = {
|
|
49
49
|
...p,
|
|
50
|
-
...
|
|
50
|
+
...P
|
|
51
51
|
}, H = /* @__PURE__ */ s.forwardRef(function(e, u) {
|
|
52
52
|
const { className: f, render: m, onLoadingStatusChange: o, style: l, ...a } = e, { setImageLoadingStatus: t } = b(), r = O(a.src, a), i = r === "loaded", { mounted: d, transitionStatus: C, setMounted: x } = N(i), v = s.useRef(null), S = _((A) => {
|
|
53
53
|
o?.(A), t(A);
|
|
54
54
|
});
|
|
55
55
|
g(() => {
|
|
56
56
|
r !== "idle" && S(r);
|
|
57
|
-
}, [r, S]), g(() => () => t("idle"), [t]),
|
|
57
|
+
}, [r, S]), g(() => () => t("idle"), [t]), j({
|
|
58
58
|
open: i,
|
|
59
59
|
ref: v,
|
|
60
60
|
onComplete() {
|
|
@@ -73,7 +73,7 @@ var q = {
|
|
|
73
73
|
});
|
|
74
74
|
return d ? M : null;
|
|
75
75
|
}), J = /* @__PURE__ */ s.forwardRef(function(e, u) {
|
|
76
|
-
const { className: f, render: m, delay: o = 0, style: l, ...a } = e, { imageLoadingStatus: t } = b(), [r, i] = s.useState(o === 0), d =
|
|
76
|
+
const { className: f, render: m, delay: o = 0, style: l, ...a } = e, { imageLoadingStatus: t } = b(), [r, i] = s.useState(o === 0), d = E();
|
|
77
77
|
return s.useEffect(() => (o > 0 ? d.start(o, () => i(!0)) : i(!0), d.clear), [d, o]), c("span", e, {
|
|
78
78
|
state: { imageLoadingStatus: t },
|
|
79
79
|
ref: u,
|
|
@@ -9,8 +9,8 @@ import { t as Ke } from "./useValueChanged.js";
|
|
|
9
9
|
import { t as ae } from "./useBaseUiId.js";
|
|
10
10
|
import { i as $e, n as Je, r as Xe, s as Ye, u as ze } from "./LabelableContext.js";
|
|
11
11
|
import { n as Qe, t as Ze } from "./visuallyHidden.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { a as et, n as tt, r as rt } from "./stateAttributesMapping.js";
|
|
13
|
+
import { n as nt, t as ot } from "./useButton.js";
|
|
14
14
|
import { t as at } from "./FieldItemContext.js";
|
|
15
15
|
import { t as it } from "./useAriaLabelledBy.js";
|
|
16
16
|
var n = /* @__PURE__ */ Ne(_e(), 1);
|
|
@@ -49,7 +49,7 @@ var U = Oe(), ct = "data-parent", Mt = /* @__PURE__ */ n.forwardRef(function(i,
|
|
|
49
49
|
I && (s ? d = Z : r !== void 0 ? d = `${p.id}-${r}` : d ||= Z);
|
|
50
50
|
let A = {};
|
|
51
51
|
I && (s ? A = p.getParentProps() : r !== void 0 && (A = p.getChildProps(r)));
|
|
52
|
-
const { checked: ee = x, indeterminate: Pe = R, onCheckedChange: Re, ...Ie } = A, j = t?.value, T = n.useRef(null), V = je(() => /* @__PURE__ */ Symbol()), q = n.useRef(!1), { getButtonProps: ye, buttonRef: Ee } =
|
|
52
|
+
const { checked: ee = x, indeterminate: Pe = R, onCheckedChange: Re, ...Ie } = A, j = t?.value, T = n.useRef(null), V = je(() => /* @__PURE__ */ Symbol()), q = n.useRef(!1), { getButtonProps: ye, buttonRef: Ee } = ot({
|
|
53
53
|
disabled: o,
|
|
54
54
|
native: B
|
|
55
55
|
}), y = t?.validation ?? ge, [a, De] = Ae({
|
|
@@ -178,7 +178,7 @@ var U = Oe(), ct = "data-parent", Mt = /* @__PURE__ */ n.forwardRef(function(i,
|
|
|
178
178
|
if (f || o) return;
|
|
179
179
|
e.preventDefault();
|
|
180
180
|
const l = m.current;
|
|
181
|
-
l &&
|
|
181
|
+
l && nt(l, e);
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
de,
|
|
@@ -207,11 +207,11 @@ var U = Oe(), ct = "data-parent", Mt = /* @__PURE__ */ n.forwardRef(function(i,
|
|
|
207
207
|
]
|
|
208
208
|
});
|
|
209
209
|
}), St = /* @__PURE__ */ n.forwardRef(function(i, h) {
|
|
210
|
-
const { render: x, className: le, style: K, keepMounted: N = !1, ..._ } = i, c = dt(), P = c.checked || c.indeterminate, { mounted: R, transitionStatus: O, setMounted: D } =
|
|
210
|
+
const { render: x, className: le, style: K, keepMounted: N = !1, ..._ } = i, c = dt(), P = c.checked || c.indeterminate, { mounted: R, transitionStatus: O, setMounted: D } = et(P), M = n.useRef(null), s = {
|
|
211
211
|
...c,
|
|
212
212
|
transitionStatus: O
|
|
213
213
|
};
|
|
214
|
-
|
|
214
|
+
rt({
|
|
215
215
|
open: P,
|
|
216
216
|
ref: M,
|
|
217
217
|
onComplete() {
|
|
@@ -220,7 +220,7 @@ var U = Oe(), ct = "data-parent", Mt = /* @__PURE__ */ n.forwardRef(function(i,
|
|
|
220
220
|
});
|
|
221
221
|
const f = {
|
|
222
222
|
...se(c),
|
|
223
|
-
...
|
|
223
|
+
...tt
|
|
224
224
|
}, $ = N || R, g = ie("span", i, {
|
|
225
225
|
ref: [h, M],
|
|
226
226
|
state: s,
|
|
@@ -2,8 +2,8 @@ import { a as q } from "./rolldown-runtime.js";
|
|
|
2
2
|
import { i as D, t as H } from "./vendor/react.js";
|
|
3
3
|
import { n as $, t as L } from "./useIsoLayoutEffect.js";
|
|
4
4
|
import { i as z, t as S } from "./useRenderElement.js";
|
|
5
|
+
import { n as y } from "./stateAttributesMapping.js";
|
|
5
6
|
import { t as G } from "./useButton.js";
|
|
6
|
-
import { a as y } from "./useOpenChangeComplete.js";
|
|
7
7
|
import { a as O, i as J, n as K, o as Q, r as V, t as X } from "./useCollapsiblePanel.js";
|
|
8
8
|
var c = /* @__PURE__ */ q(D(), 1), _ = {
|
|
9
9
|
...K,
|
package/dist/wc/DialogTrigger.js
CHANGED
|
@@ -7,11 +7,11 @@ import { t as B } from "./useBaseUiId.js";
|
|
|
7
7
|
import { O as q, R as G, _ as Y, a as z, d as J, f as Q, g as X, h as Z, i as $, j as ee, m as te, n as oe, o as ne, p as se, s as re, t as ae, u as ie, x as le } from "./popupStateMapping.js";
|
|
8
8
|
import { n as ue, r as pe } from "./shadowDom.js";
|
|
9
9
|
import { a as ce } from "./composite2.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { a as fe, i as me, n as Se, o as Pe, t as Ce } from "./useScrollLock.js";
|
|
10
|
+
import { a as de, i as ge, n as fe, o as me, t as Se } from "./useScrollLock.js";
|
|
11
|
+
import { n as Pe, r as Ce } from "./stateAttributesMapping.js";
|
|
13
12
|
import { n as he, r as De, t as Re } from "./store.js";
|
|
14
13
|
import { t as Oe } from "./usePopupHandleStore.js";
|
|
14
|
+
import { t as _ } from "./useButton.js";
|
|
15
15
|
import { t as Ie } from "./inertValue.js";
|
|
16
16
|
var c = /* @__PURE__ */ U(K(), 1), j = /* @__PURE__ */ c.createContext(void 0);
|
|
17
17
|
function R(e) {
|
|
@@ -69,13 +69,13 @@ function be() {
|
|
|
69
69
|
}
|
|
70
70
|
var xe = {
|
|
71
71
|
...ae,
|
|
72
|
-
...
|
|
72
|
+
...Pe,
|
|
73
73
|
nestedDialogOpen(e) {
|
|
74
74
|
return e ? { "data-nested-dialog-open": "" } : null;
|
|
75
75
|
}
|
|
76
76
|
}, I = L(), Je = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
77
77
|
const { render: a, className: d, style: g, finalFocus: i, initialFocus: u, ...s } = t, o = R(), m = o.useState("descriptionElementId"), P = o.useState("disablePointerDismissal"), S = o.useState("floatingRootContext"), p = o.useState("popupProps"), r = o.useState("modal"), f = o.useState("mounted"), C = o.useState("nested"), h = o.useState("nestedOpenDialogCount"), D = o.useState("open"), b = o.useState("openMethod"), l = o.useState("titleElementId"), O = o.useState("transitionStatus"), v = o.useState("role"), T = S.useState("floatingId");
|
|
78
|
-
be(),
|
|
78
|
+
be(), Ce({
|
|
79
79
|
open: D,
|
|
80
80
|
ref: o.context.popupRef,
|
|
81
81
|
onComplete() {
|
|
@@ -112,7 +112,7 @@ var xe = {
|
|
|
112
112
|
],
|
|
113
113
|
stateAttributesMapping: xe
|
|
114
114
|
});
|
|
115
|
-
return /* @__PURE__ */ (0, I.jsx)(
|
|
115
|
+
return /* @__PURE__ */ (0, I.jsx)(me, {
|
|
116
116
|
context: S,
|
|
117
117
|
openInteractionType: b,
|
|
118
118
|
disabled: !f,
|
|
@@ -130,7 +130,7 @@ var xe = {
|
|
|
130
130
|
children: /* @__PURE__ */ (0, I.jsxs)(q, {
|
|
131
131
|
ref: n,
|
|
132
132
|
...d,
|
|
133
|
-
children: [i && u === !0 && /* @__PURE__ */ (0, I.jsx)(
|
|
133
|
+
children: [i && u === !0 && /* @__PURE__ */ (0, I.jsx)(fe, {
|
|
134
134
|
ref: g.context.internalBackdropRef,
|
|
135
135
|
inert: Ie(!s)
|
|
136
136
|
}), t.children]
|
|
@@ -164,7 +164,7 @@ function Ee({ store: e, parentContext: t, isDrawer: n }) {
|
|
|
164
164
|
},
|
|
165
165
|
escapeKey: S
|
|
166
166
|
});
|
|
167
|
-
return
|
|
167
|
+
return Se(a && g === !0, i), e.useContextCallback("onNestedDialogOpen", (r, f) => {
|
|
168
168
|
o(r), P(f);
|
|
169
169
|
}), V(() => (t?.onNestedDialogOpen && (a ? t.onNestedDialogOpen(s + 1, m + (n ? 1 : 0)) : t.onNestedDialogOpen(0, 0)), () => {
|
|
170
170
|
t?.onNestedDialogOpen && a && t.onNestedDialogOpen(0, 0);
|
|
@@ -286,7 +286,7 @@ var Ze = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
|
286
286
|
const r = B(s), f = p.useState("floatingRootContext"), C = p.useState("isOpenedByTrigger", r), h = p.useState("triggerPopupId", r), D = c.useRef(null), { registerTrigger: b, isMountedByThisTrigger: l } = Y(r, D, p, { payload: o }), { getButtonProps: O, buttonRef: v } = _({
|
|
287
287
|
disabled: i,
|
|
288
288
|
native: u
|
|
289
|
-
}), T =
|
|
289
|
+
}), T = de(f), x = ge(() => p.select("open"), (k) => {
|
|
290
290
|
p.set("openMethod", k);
|
|
291
291
|
}), w = {
|
|
292
292
|
disabled: i,
|
package/dist/wc/DropdownMenu.js
CHANGED
|
@@ -11,14 +11,14 @@ import { r as Ke } from "./createBaseUIEventDetails.js";
|
|
|
11
11
|
import { t as We } from "./useBaseUiId.js";
|
|
12
12
|
import { D as $e, E as Je, H as Ye, I as A, T as Qe, _ as Ve, r as U, w as Xe } from "./popupStateMapping.js";
|
|
13
13
|
import { n as q } from "./shadowDom.js";
|
|
14
|
-
import { i as Ze, t as et } from "./useButton.js";
|
|
15
|
-
import { t as tt } from "./CompositeItem.js";
|
|
16
14
|
import { n as $ } from "./useTimeout.js";
|
|
17
|
-
import { n as
|
|
18
|
-
import { a as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
15
|
+
import { n as Ze, t as et } from "./safePolygon.js";
|
|
16
|
+
import { a as tt } from "./useScrollLock.js";
|
|
17
|
+
import { t as ot } from "./usePopupHandleStore.js";
|
|
18
|
+
import { t as nt } from "./useFocus.js";
|
|
19
|
+
import { i as rt, t as st } from "./useButton.js";
|
|
20
|
+
import { t as at } from "./getPseudoElementBounds.js";
|
|
21
|
+
import { t as it } from "./CompositeItem.js";
|
|
22
22
|
import { t as ut } from "./Separator.js";
|
|
23
23
|
import { t as dt } from "./useTriggerFocusGuards.js";
|
|
24
24
|
import { t as ct } from "./Kbd.js";
|
|
@@ -47,9 +47,9 @@ function Tt(e) {
|
|
|
47
47
|
]);
|
|
48
48
|
}
|
|
49
49
|
var t = Oe(), It = Ye(function(o, n) {
|
|
50
|
-
const { render: r, className: a, style: i, disabled: f = !1, nativeButton: D = !0, id: N, openOnHover: x, delay: pe = 100, closeDelay: C = 0, handle: le, payload: me, ...fe } = o, ge = gt(!0), s =
|
|
50
|
+
const { render: r, className: a, style: i, disabled: f = !1, nativeButton: D = !0, id: N, openOnHover: x, delay: pe = 100, closeDelay: C = 0, handle: le, payload: me, ...fe } = o, ge = gt(!0), s = ot(le) ?? ge?.store;
|
|
51
51
|
if (!s) throw new Error(Ue(85));
|
|
52
|
-
const c = We(N), xe = s.useState("isTriggerActive", c), j = s.useState("floatingRootContext"), p = s.useState("isOpenedByTrigger", c), be = s.useState("triggerPopupId", c), v = u.useRef(null), m = Rt(), we =
|
|
52
|
+
const c = We(N), xe = s.useState("isTriggerActive", c), j = s.useState("floatingRootContext"), p = s.useState("isOpenedByTrigger", c), be = s.useState("triggerPopupId", c), v = u.useRef(null), m = Rt(), we = rt(!0), _ = Je(), h = u.useMemo(() => _ ?? new $e(), [_]), Me = Xe(h), ve = Qe(), { registerTrigger: he, isMountedByThisTrigger: F } = Ve(c, v, s, {
|
|
53
53
|
payload: me,
|
|
54
54
|
closeDelay: C,
|
|
55
55
|
parent: m,
|
|
@@ -57,7 +57,7 @@ var t = Oe(), It = Ye(function(o, n) {
|
|
|
57
57
|
floatingNodeId: Me,
|
|
58
58
|
floatingParentNodeId: ve,
|
|
59
59
|
keyboardEventRelay: we?.relayKeyboardEvent
|
|
60
|
-
}), l = m.type === "menubar", ye = s.useState("disabled"), b = f || ye || l && m.context.disabled, { getButtonProps: De, buttonRef: Ne } =
|
|
60
|
+
}), l = m.type === "menubar", ye = s.useState("disabled"), b = f || ye || l && m.context.disabled, { getButtonProps: De, buttonRef: Ne } = st({
|
|
61
61
|
disabled: b,
|
|
62
62
|
native: D
|
|
63
63
|
});
|
|
@@ -72,7 +72,7 @@ var t = Oe(), It = Ye(function(o, n) {
|
|
|
72
72
|
if (!g.current) return;
|
|
73
73
|
O.clear(), s.context.allowMouseUpTriggerRef.current = !1;
|
|
74
74
|
const M = w.target;
|
|
75
|
-
q(g.current, M) || q(s.select("positionerElement"), M) || M === g.current || M != null && Y(M) === s.select("rootId") ||
|
|
75
|
+
q(g.current, M) || q(s.select("positionerElement"), M) || M === g.current || M != null && Y(M) === s.select("rootId") || at(w, g.current) || h.events.emit("close", {
|
|
76
76
|
domEvent: w,
|
|
77
77
|
reason: Ke
|
|
78
78
|
});
|
|
@@ -84,9 +84,9 @@ var t = Oe(), It = Ye(function(o, n) {
|
|
|
84
84
|
T,
|
|
85
85
|
s
|
|
86
86
|
]);
|
|
87
|
-
const I = l && m.context.hasSubmenuOpen, je =
|
|
87
|
+
const I = l && m.context.hasSubmenuOpen, je = Ze(j, {
|
|
88
88
|
enabled: (x ?? I) && !b && (!l || I && !F),
|
|
89
|
-
handleClose:
|
|
89
|
+
handleClose: et({ blockPointerEvents: !l }),
|
|
90
90
|
mouseOnly: !0,
|
|
91
91
|
move: !1,
|
|
92
92
|
restMs: m.type === void 0 ? pe : void 0,
|
|
@@ -95,13 +95,13 @@ var t = Oe(), It = Ye(function(o, n) {
|
|
|
95
95
|
externalTree: h,
|
|
96
96
|
isActiveTrigger: xe,
|
|
97
97
|
isClosing: () => s.select("transitionStatus") === "ending"
|
|
98
|
-
}), Te = St(p, s.select("lastOpenChangeReason")), E =
|
|
98
|
+
}), Te = St(p, s.select("lastOpenChangeReason")), E = tt(j, {
|
|
99
99
|
enabled: !b,
|
|
100
100
|
event: p && l ? "click" : "mousedown",
|
|
101
101
|
toggle: !0,
|
|
102
102
|
ignoreMouse: !1,
|
|
103
103
|
stickIfOpen: m.type === void 0 ? Te : !1
|
|
104
|
-
}), z =
|
|
104
|
+
}), z = nt(j, { enabled: !b && I }), Ie = Tt({
|
|
105
105
|
open: p,
|
|
106
106
|
enabled: l,
|
|
107
107
|
mouseDownAction: "open"
|
|
@@ -139,7 +139,7 @@ var t = Oe(), It = Ye(function(o, n) {
|
|
|
139
139
|
ref: B,
|
|
140
140
|
props: G
|
|
141
141
|
});
|
|
142
|
-
return l ? /* @__PURE__ */ (0, t.jsx)(
|
|
142
|
+
return l ? /* @__PURE__ */ (0, t.jsx)(it, {
|
|
143
143
|
tag: "button",
|
|
144
144
|
render: r,
|
|
145
145
|
className: a,
|