@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
package/dist/wc-react/Tabs.js
CHANGED
|
@@ -12,13 +12,13 @@ import { n as Bt, t as Ot } from "./shadowDom.js";
|
|
|
12
12
|
import { t as jt } from "./useCompositeListItem.js";
|
|
13
13
|
import { t as $t } from "./CompositeList.js";
|
|
14
14
|
import { t as Ht } from "./PrehydrationScript.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { t as Qt } from "./
|
|
21
|
-
import { t as Zt } from "./
|
|
15
|
+
import { a as Wt, n as Ft, r as Ut } from "./stateAttributesMapping.js";
|
|
16
|
+
import { i as Kt, t as Xt } from "./useButton.js";
|
|
17
|
+
import { t as Yt } from "./inertValue.js";
|
|
18
|
+
import { t as qt } from "./Badge.js";
|
|
19
|
+
import { t as Gt } from "./useCompositeItem.js";
|
|
20
|
+
import { n as Jt, t as Qt } from "./CompositeRoot.js";
|
|
21
|
+
import { t as Zt } from "./use-controllable-state.js";
|
|
22
22
|
import * as e from "react";
|
|
23
23
|
import { jsx as T, jsxs as it } from "react/jsx-runtime";
|
|
24
24
|
function ta() {
|
|
@@ -185,7 +185,7 @@ function Tt() {
|
|
|
185
185
|
return a;
|
|
186
186
|
}
|
|
187
187
|
var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
188
|
-
const { className: s, disabled: i = !1, render: b, value: o, id: g, nativeButton: h = !0, style: E, ...z } = t, { value: I, getTabPanelIdByValue: x, onValueChange: M, orientation: v, tabActivationDirection: n } = at(), { activateOnFocus: w, registerTabResizeObserverElement: f, tabsListElement: l } = Tt(), { highlightedIndex: y, onHighlightedIndexChange: R } =
|
|
188
|
+
const { className: s, disabled: i = !1, render: b, value: o, id: g, nativeButton: h = !0, style: E, ...z } = t, { value: I, getTabPanelIdByValue: x, onValueChange: M, orientation: v, tabActivationDirection: n } = at(), { activateOnFocus: w, registerTabResizeObserverElement: f, tabsListElement: l } = Tt(), { highlightedIndex: y, onHighlightedIndexChange: R } = Kt(), p = vt(g), D = e.useMemo(() => ({
|
|
189
189
|
disabled: i,
|
|
190
190
|
id: p,
|
|
191
191
|
value: o
|
|
@@ -193,7 +193,7 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
193
193
|
i,
|
|
194
194
|
p,
|
|
195
195
|
o
|
|
196
|
-
]), { compositeProps: L, compositeRef: d, index: N } =
|
|
196
|
+
]), { compositeProps: L, compositeRef: d, index: N } = Gt({ metadata: D }), c = o === I, _ = e.useRef(!1), B = e.useRef(null), H = q((m) => {
|
|
197
197
|
B.current?.(), B.current = m ? f(m) : null;
|
|
198
198
|
});
|
|
199
199
|
J(() => {
|
|
@@ -216,7 +216,7 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
216
216
|
i,
|
|
217
217
|
l
|
|
218
218
|
]);
|
|
219
|
-
const { getButtonProps: W, buttonRef: O } =
|
|
219
|
+
const { getButtonProps: W, buttonRef: O } = Xt({
|
|
220
220
|
disabled: i,
|
|
221
221
|
native: h,
|
|
222
222
|
focusableWhenDisabled: !0
|
|
@@ -262,7 +262,7 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
262
262
|
onClick: j,
|
|
263
263
|
onFocus: Z,
|
|
264
264
|
onPointerDown: X,
|
|
265
|
-
[
|
|
265
|
+
[Jt]: c ? "" : void 0,
|
|
266
266
|
onKeyDownCapture() {
|
|
267
267
|
_.current = !0;
|
|
268
268
|
}
|
|
@@ -330,9 +330,9 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
330
330
|
return I == null ? null : /* @__PURE__ */ it(e.Fragment, { children: [N, b && (ct || (ct = /* @__PURE__ */ T(Ht, { script: "" })))] });
|
|
331
331
|
}), ea = {
|
|
332
332
|
...Q,
|
|
333
|
-
...
|
|
333
|
+
...Ft
|
|
334
334
|
}, Ct = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
335
|
-
const { className: s, value: i, render: b, keepMounted: o = !1, style: g, ...h } = t, { value: E, getTabIdByPanelValue: z, orientation: I, tabActivationDirection: x, registerMountedTabPanel: M } = at(), v = vt(), { ref: n, index: w } = jt(), f = i === E, { mounted: l, transitionStatus: y, setMounted: R } =
|
|
335
|
+
const { className: s, value: i, render: b, keepMounted: o = !1, style: g, ...h } = t, { value: E, getTabIdByPanelValue: z, orientation: I, tabActivationDirection: x, registerMountedTabPanel: M } = at(), v = vt(), { ref: n, index: w } = jt(), f = i === E, { mounted: l, transitionStatus: y, setMounted: R } = Wt(f), p = !l, D = z(i), L = {
|
|
336
336
|
hidden: p,
|
|
337
337
|
orientation: I,
|
|
338
338
|
tabActivationDirection: x,
|
|
@@ -350,12 +350,12 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
350
350
|
id: v,
|
|
351
351
|
role: "tabpanel",
|
|
352
352
|
tabIndex: f ? 0 : -1,
|
|
353
|
-
inert:
|
|
353
|
+
inert: Yt(!f),
|
|
354
354
|
"data-index": w
|
|
355
355
|
}, h],
|
|
356
356
|
stateAttributesMapping: ea
|
|
357
357
|
});
|
|
358
|
-
return
|
|
358
|
+
return Ut({
|
|
359
359
|
open: f,
|
|
360
360
|
ref: d,
|
|
361
361
|
onComplete() {
|
|
@@ -409,7 +409,7 @@ var yt = /* @__PURE__ */ e.forwardRef(function(t, r) {
|
|
|
409
409
|
]);
|
|
410
410
|
return /* @__PURE__ */ T(xt.Provider, {
|
|
411
411
|
value: L,
|
|
412
|
-
children: /* @__PURE__ */ T(
|
|
412
|
+
children: /* @__PURE__ */ T(Qt, {
|
|
413
413
|
render: o,
|
|
414
414
|
className: i,
|
|
415
415
|
style: g,
|
|
@@ -634,7 +634,7 @@ oa.displayName = "TabsTrigger";
|
|
|
634
634
|
sa.displayName = "TabsContent";
|
|
635
635
|
na.displayName = "TabsIndicator";
|
|
636
636
|
function rt({ value: a, defaultValue: t, onValueChange: r, orientation: s = "horizontal", children: i, className: b, ...o }) {
|
|
637
|
-
const [g, h] =
|
|
637
|
+
const [g, h] = Zt({
|
|
638
638
|
value: a,
|
|
639
639
|
defaultValue: t ?? "",
|
|
640
640
|
onChange: r
|
|
@@ -710,7 +710,7 @@ function Pt({ children: a, count: t, isActive: r, className: s, ...i }) {
|
|
|
710
710
|
return /* @__PURE__ */ it(ot, {
|
|
711
711
|
className: P("gap-2", s),
|
|
712
712
|
...i,
|
|
713
|
-
children: [a, t !== void 0 && /* @__PURE__ */ T(
|
|
713
|
+
children: [a, t !== void 0 && /* @__PURE__ */ T(qt, {
|
|
714
714
|
variant: "soft",
|
|
715
715
|
color: r ? "primary" : "secondary",
|
|
716
716
|
size: "xs",
|
|
@@ -8,9 +8,9 @@ import { H as we, P as De, R as Ae, V as He, _ as ke, a as Ne, c as Be, f as Le,
|
|
|
8
8
|
import { n as J, r as je } from "./shadowDom.js";
|
|
9
9
|
import { t as Je } from "./addEventListener.js";
|
|
10
10
|
import { t as qe } from "./useValueAsRef.js";
|
|
11
|
-
import { t as ze } from "./
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
11
|
+
import { n as ae, t as ze } from "./useTimeout.js";
|
|
12
|
+
import { a as U, i as Ke, n as Qe, r as Ze, t as et } from "./safePolygon.js";
|
|
13
|
+
import { r as tt } from "./stateAttributesMapping.js";
|
|
14
14
|
import { n as nt, r as ot, t as rt } from "./usePositioner.js";
|
|
15
15
|
import { n as st, r as it, t as at } from "./store.js";
|
|
16
16
|
import { t as lt } from "./usePopupHandleStore.js";
|
|
@@ -23,7 +23,7 @@ var le = /* @__PURE__ */ a.createContext({
|
|
|
23
23
|
timeoutMs: 0,
|
|
24
24
|
delayRef: { current: 0 },
|
|
25
25
|
initialDelayRef: { current: 0 },
|
|
26
|
-
timeout: new
|
|
26
|
+
timeout: new ze(),
|
|
27
27
|
currentIdRef: { current: null },
|
|
28
28
|
currentContextRef: { current: null }
|
|
29
29
|
});
|
|
@@ -375,7 +375,7 @@ var Wt = we(function(t, n) {
|
|
|
375
375
|
payload: c,
|
|
376
376
|
closeOnClick: f,
|
|
377
377
|
closeDelay: S
|
|
378
|
-
}), M = yt(), { delayRef: A, isInstantPhase: L, hasProvider: N } = gt(P, { open: b }), x =
|
|
378
|
+
}), M = yt(), { delayRef: A, isInstantPhase: L, hasProvider: N } = gt(P, { open: b }), x = Ke(P);
|
|
379
379
|
i.useSyncedValue("isInstantPhase", L);
|
|
380
380
|
const W = i.useState("disabled"), H = g ?? W, z = qe(H), K = i.useState("trackCursorAxis"), me = i.useState("disableHoverablePopup"), F = a.useRef(!1), V = ae(), X = a.useRef(void 0);
|
|
381
381
|
function Q() {
|
|
@@ -391,11 +391,11 @@ var Wt = we(function(t, n) {
|
|
|
391
391
|
const E = Z(T);
|
|
392
392
|
return F.current = E, E && (x.openChangeTimeout.clear(), x.restTimeout.clear(), x.restTimeoutPending = !1, V.clear()), E;
|
|
393
393
|
}
|
|
394
|
-
const he =
|
|
394
|
+
const he = Qe(P, {
|
|
395
395
|
enabled: !H,
|
|
396
396
|
mouseOnly: !0,
|
|
397
397
|
move: !1,
|
|
398
|
-
handleClose: !me && K !== "both" ?
|
|
398
|
+
handleClose: !me && K !== "both" ? et() : null,
|
|
399
399
|
restMs: Q,
|
|
400
400
|
delay() {
|
|
401
401
|
return d == null && N ? { close: U(A.current, "close") } : { close: S };
|
|
@@ -523,13 +523,13 @@ var jt = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
|
523
523
|
});
|
|
524
524
|
}), Jt = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
525
525
|
const { render: s, className: o, style: r, ...u } = t, c = _(), { side: g, align: p } = ge(), f = c.useState("open"), d = c.useState("instantType"), h = c.useState("transitionStatus"), C = c.useState("popupProps"), l = c.useState("floatingRootContext"), i = c.useState("disabled"), v = c.useState("closeDelay");
|
|
526
|
-
|
|
526
|
+
tt({
|
|
527
527
|
open: f,
|
|
528
528
|
ref: c.context.popupRef,
|
|
529
529
|
onComplete() {
|
|
530
530
|
f && c.context.onOpenChangeComplete?.(!0);
|
|
531
531
|
}
|
|
532
|
-
}),
|
|
532
|
+
}), Ze(l, {
|
|
533
533
|
enabled: !i,
|
|
534
534
|
closeDelay: v
|
|
535
535
|
});
|
package/dist/wc-react/chart.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as P, nt as A, rt as S } from "./vendor/recharts.js";
|
|
2
|
-
import { t as R } from "./create-safe-context.js";
|
|
3
2
|
import { f as d } from "./_shared.js";
|
|
3
|
+
import { t as R } from "./create-safe-context.js";
|
|
4
4
|
import * as g from "react";
|
|
5
5
|
import { Fragment as E, jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
var I = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { St as ct, Tt as ft, _t as ot, at as ut, bt as lt, ct as dt, dt as ht, ft as yt, gt, ht as pt, it as mt, lt as wt, mt as xt, ot as bt, pt as Ot, st as At, u as St, ut as Mt, vt as _t, xt as $t, yt as Bt } from "./vendor/recharts.js";
|
|
2
2
|
import { n as o } from "./chunk-Y2CYZVJY.js";
|
|
3
3
|
import { t as m } from "./chunk-X3CZISLH.js";
|
|
4
4
|
import { R as vt, h as A, p as Pt, r as X, s as B } from "./chunk-DU6HZSFF.js";
|
|
@@ -6,10 +6,10 @@ import { t as Et } from "./dist2.js";
|
|
|
6
6
|
function It(t) {
|
|
7
7
|
return Number.isSafeInteger(t) && t >= 0;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Lt(t) {
|
|
10
10
|
return t != null && typeof t != "function" && It(t.length);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Dt(t) {
|
|
13
13
|
return t === "__proto__";
|
|
14
14
|
}
|
|
15
15
|
function v(t) {
|
|
@@ -175,7 +175,7 @@ function $(t) {
|
|
|
175
175
|
return typeof t == "object" && t !== null;
|
|
176
176
|
}
|
|
177
177
|
function ee(t) {
|
|
178
|
-
return $(t) &&
|
|
178
|
+
return $(t) && Lt(t);
|
|
179
179
|
}
|
|
180
180
|
function x(t, e) {
|
|
181
181
|
if (typeof t != "function" || e != null && typeof e != "function") throw new TypeError("Expected a function");
|
|
@@ -249,7 +249,7 @@ function S(t, e, i, r) {
|
|
|
249
249
|
const s = [...Object.keys(e), ...Y(e)];
|
|
250
250
|
for (let a = 0; a < s.length; a++) {
|
|
251
251
|
const n = s[a];
|
|
252
|
-
if (
|
|
252
|
+
if (Dt(n)) continue;
|
|
253
253
|
let c = e[n], f = t[n];
|
|
254
254
|
if (H(c) && (c = { ...c }), H(f) && (f = { ...f }), Z(c) && (c = j(c)), Array.isArray(c))
|
|
255
255
|
if (Array.isArray(f)) {
|
|
@@ -274,26 +274,26 @@ function se(t, ...e) {
|
|
|
274
274
|
}
|
|
275
275
|
var ae = Et();
|
|
276
276
|
var ce = {
|
|
277
|
-
curveBasis:
|
|
278
|
-
curveBasisClosed:
|
|
279
|
-
curveBasisOpen:
|
|
280
|
-
curveBumpX:
|
|
281
|
-
curveBumpY:
|
|
282
|
-
curveBundle:
|
|
283
|
-
curveCardinalClosed:
|
|
284
|
-
curveCardinalOpen:
|
|
285
|
-
curveCardinal:
|
|
286
|
-
curveCatmullRomClosed:
|
|
287
|
-
curveCatmullRomOpen:
|
|
288
|
-
curveCatmullRom:
|
|
277
|
+
curveBasis: lt,
|
|
278
|
+
curveBasisClosed: Bt,
|
|
279
|
+
curveBasisOpen: _t,
|
|
280
|
+
curveBumpX: $t,
|
|
281
|
+
curveBumpY: ct,
|
|
282
|
+
curveBundle: ot,
|
|
283
|
+
curveCardinalClosed: pt,
|
|
284
|
+
curveCardinalOpen: xt,
|
|
285
|
+
curveCardinal: gt,
|
|
286
|
+
curveCatmullRomClosed: yt,
|
|
287
|
+
curveCatmullRomOpen: ht,
|
|
288
|
+
curveCatmullRom: Ot,
|
|
289
289
|
curveLinear: ft,
|
|
290
|
-
curveLinearClosed:
|
|
291
|
-
curveMonotoneX:
|
|
292
|
-
curveMonotoneY:
|
|
293
|
-
curveNatural:
|
|
294
|
-
curveStep:
|
|
295
|
-
curveStepAfter:
|
|
296
|
-
curveStepBefore:
|
|
290
|
+
curveLinearClosed: Mt,
|
|
291
|
+
curveMonotoneX: dt,
|
|
292
|
+
curveMonotoneY: wt,
|
|
293
|
+
curveNatural: At,
|
|
294
|
+
curveStep: bt,
|
|
295
|
+
curveStepAfter: mt,
|
|
296
|
+
curveStepBefore: ut
|
|
297
297
|
}, fe = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, oe = /* @__PURE__ */ o(function(t, e) {
|
|
298
298
|
const i = Q(t, /(?:init\b)|(?:initialize\b)/);
|
|
299
299
|
let r = {};
|
|
@@ -364,7 +364,7 @@ function T(t) {
|
|
|
364
364
|
let e, i = 0;
|
|
365
365
|
return t.forEach((r) => {
|
|
366
366
|
i += I(r, e), e = r;
|
|
367
|
-
}),
|
|
367
|
+
}), L(t, i / 2);
|
|
368
368
|
}
|
|
369
369
|
o(T, "traverseEdge");
|
|
370
370
|
function C(t) {
|
|
@@ -374,7 +374,7 @@ o(C, "calcLabelPosition");
|
|
|
374
374
|
var z = /* @__PURE__ */ o((t, e = 2) => {
|
|
375
375
|
const i = Math.pow(10, e);
|
|
376
376
|
return Math.round(t * i) / i;
|
|
377
|
-
}, "roundNumber"),
|
|
377
|
+
}, "roundNumber"), L = /* @__PURE__ */ o((t, e) => {
|
|
378
378
|
let i, r = e;
|
|
379
379
|
for (const s of t) {
|
|
380
380
|
if (i) {
|
|
@@ -399,7 +399,7 @@ var z = /* @__PURE__ */ o((t, e = 2) => {
|
|
|
399
399
|
throw new Error("Could not find a suitable point for the given distance");
|
|
400
400
|
}, "calculatePoint"), de = /* @__PURE__ */ o((t, e, i) => {
|
|
401
401
|
m.info(`our points ${JSON.stringify(e)}`), e[0] !== i && (e = e.reverse());
|
|
402
|
-
const r =
|
|
402
|
+
const r = L(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - r.y, e[0].x - r.x), n = {
|
|
403
403
|
x: 0,
|
|
404
404
|
y: 0
|
|
405
405
|
};
|
|
@@ -408,7 +408,7 @@ var z = /* @__PURE__ */ o((t, e = 2) => {
|
|
|
408
408
|
function tt(t, e, i) {
|
|
409
409
|
const r = structuredClone(i);
|
|
410
410
|
m.info("our points", r), e !== "start_left" && e !== "start_right" && r.reverse();
|
|
411
|
-
const s =
|
|
411
|
+
const s = L(r, 25 + t), a = 10 + t * 0.5, n = Math.atan2(r[0].y - s.y, r[0].x - s.x), c = {
|
|
412
412
|
x: 0,
|
|
413
413
|
y: 0
|
|
414
414
|
};
|
|
@@ -490,20 +490,20 @@ var ye = /* @__PURE__ */ o((t) => rt(t.length), "random"), ge = /* @__PURE__ */
|
|
|
490
490
|
};
|
|
491
491
|
}, (t, e, i = "-", r) => `${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
|
|
492
492
|
function nt(t, e) {
|
|
493
|
-
return
|
|
493
|
+
return D(t, e).height;
|
|
494
494
|
}
|
|
495
495
|
o(nt, "calculateTextHeight");
|
|
496
496
|
function w(t, e) {
|
|
497
|
-
return
|
|
497
|
+
return D(t, e).width;
|
|
498
498
|
}
|
|
499
499
|
o(w, "calculateTextWidth");
|
|
500
|
-
var
|
|
500
|
+
var D = x((t, e) => {
|
|
501
501
|
const { fontSize: i = 12, fontFamily: r = "Arial", fontWeight: s = 400 } = e;
|
|
502
502
|
if (!t) return {
|
|
503
503
|
width: 0,
|
|
504
504
|
height: 0
|
|
505
505
|
};
|
|
506
|
-
const [, a] = F(i), n = ["sans-serif", r], c = t.split(B.lineBreakRegex), f = [], l =
|
|
506
|
+
const [, a] = F(i), n = ["sans-serif", r], c = t.split(B.lineBreakRegex), f = [], l = St("body");
|
|
507
507
|
if (!l.remove) return {
|
|
508
508
|
width: 0,
|
|
509
509
|
height: 0,
|
|
@@ -559,7 +559,7 @@ var Ee = {
|
|
|
559
559
|
wrapLabel: me,
|
|
560
560
|
calculateTextHeight: nt,
|
|
561
561
|
calculateTextWidth: w,
|
|
562
|
-
calculateTextDimensions:
|
|
562
|
+
calculateTextDimensions: D,
|
|
563
563
|
cleanAndMerge: it,
|
|
564
564
|
detectInit: oe,
|
|
565
565
|
detectDirective: Q,
|
|
@@ -588,9 +588,9 @@ var Ee = {
|
|
|
588
588
|
const r = i.substring(1, i.length - 1);
|
|
589
589
|
return /^\+?\d+$/.test(r) ? "fl°°" + r + "¶ß" : "fl°" + r + "¶ß";
|
|
590
590
|
}), e;
|
|
591
|
-
}, "encodeEntities"),
|
|
591
|
+
}, "encodeEntities"), Le = /* @__PURE__ */ o(function(t) {
|
|
592
592
|
return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
593
|
-
}, "decodeEntities"),
|
|
593
|
+
}, "decodeEntities"), De = /* @__PURE__ */ o((t, e, { counter: i = 0, prefix: r, suffix: s }, a) => a || `${r ? `${r}_` : ""}${t}_${e}_${i}${s ? `_${s}` : ""}`, "getEdgeId");
|
|
594
594
|
function Se(t) {
|
|
595
595
|
return t ?? null;
|
|
596
596
|
}
|
|
@@ -607,7 +607,7 @@ export {
|
|
|
607
607
|
Vt as D,
|
|
608
608
|
Wt as E,
|
|
609
609
|
Ft as F,
|
|
610
|
-
|
|
610
|
+
Lt as G,
|
|
611
611
|
Kt as H,
|
|
612
612
|
jt as I,
|
|
613
613
|
K as L,
|
|
@@ -622,9 +622,9 @@ export {
|
|
|
622
622
|
Yt as V,
|
|
623
623
|
v as W,
|
|
624
624
|
me as _,
|
|
625
|
-
|
|
625
|
+
Le as a,
|
|
626
626
|
Z as b,
|
|
627
|
-
|
|
627
|
+
De as c,
|
|
628
628
|
V as d,
|
|
629
629
|
Oe as f,
|
|
630
630
|
Ee as g,
|
|
@@ -639,7 +639,7 @@ export {
|
|
|
639
639
|
F as p,
|
|
640
640
|
w as r,
|
|
641
641
|
he as s,
|
|
642
|
-
|
|
642
|
+
D as t,
|
|
643
643
|
Se as u,
|
|
644
644
|
M as v,
|
|
645
645
|
q as w,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { St as yt, Tt as tt, at as gt, bt as et, ct as xt, gt as bt, it as wt, lt as Mt, ot as Lt, pt as _t, st as St, u as H, wt as Ot, xt as Ut } from "./vendor/recharts.js";
|
|
2
2
|
import { n as h } from "./chunk-Y2CYZVJY.js";
|
|
3
3
|
import { t as g } from "./chunk-X3CZISLH.js";
|
|
4
4
|
import { T as ct, b as T, x as B } from "./chunk-DU6HZSFF.js";
|
|
5
5
|
import { g as A, u as Et } from "./chunk-75Z2AOVW.js";
|
|
6
|
-
import { n as
|
|
7
|
-
import { i as
|
|
6
|
+
import { n as $t, r as nt } from "./chunk-GMAD6QVW.js";
|
|
7
|
+
import { i as vt, n as Xt } from "./chunk-P2QGCYS3.js";
|
|
8
8
|
import { t as Yt } from "./rough.esm.js";
|
|
9
|
-
import { t as
|
|
9
|
+
import { t as D } from "./chunk-4HAMMTFA.js";
|
|
10
10
|
import { n as Wt } from "./chunk-GVQU2GXP.js";
|
|
11
11
|
var I = /* @__PURE__ */ h((r, t) => {
|
|
12
12
|
if (t) return "translate(" + -r.width / 2 + ", " + -r.height / 2 + ")";
|
|
@@ -190,9 +190,9 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
|
|
|
190
190
|
}, "clear"), er = /* @__PURE__ */ h((r) => !!(r.label || r.startLabelLeft || r.startLabelRight || r.endLabelLeft || r.endLabelRight), "hasEdgeLabel"), Q = /* @__PURE__ */ h((r) => r ? typeof r == "string" ? r : r.reduce((t, a) => t + ";" + a, "") : "", "getLabelStyles"), nr = /* @__PURE__ */ h(async (r, t) => {
|
|
191
191
|
const a = B();
|
|
192
192
|
let e = ct(a);
|
|
193
|
-
const { labelStyles: n } =
|
|
193
|
+
const { labelStyles: n } = vt(t);
|
|
194
194
|
t.labelStyle = n;
|
|
195
|
-
const o = r.insert("g").attr("class", "edgeLabel"), s = o.insert("g").attr("class", "label").attr("data-id", t.id), i = t.labelType === "markdown", c = await
|
|
195
|
+
const o = r.insert("g").attr("class", "edgeLabel"), s = o.insert("g").attr("class", "label").attr("data-id", t.id), i = t.labelType === "markdown", c = await $t(r, t.label, {
|
|
196
196
|
style: Q(t.labelStyle),
|
|
197
197
|
useHtmlLabels: e,
|
|
198
198
|
addSvgBackground: !0,
|
|
@@ -214,7 +214,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
|
|
|
214
214
|
s.attr("transform", I(l, e)), F.set(t.id, o), t.width = k.width, t.height = k.height;
|
|
215
215
|
let f;
|
|
216
216
|
if (t.startLabelLeft) {
|
|
217
|
-
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await
|
|
217
|
+
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(d, t.startLabelLeft, Q(t.labelStyle) || "", !1, !1);
|
|
218
218
|
f = m;
|
|
219
219
|
let u = m.getBBox();
|
|
220
220
|
if (e) {
|
|
@@ -224,7 +224,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
|
|
|
224
224
|
d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).startLeft = p, Z(f, t.startLabelLeft);
|
|
225
225
|
}
|
|
226
226
|
if (t.startLabelRight) {
|
|
227
|
-
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await
|
|
227
|
+
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(d, t.startLabelRight, Q(t.labelStyle) || "", !1, !1);
|
|
228
228
|
f = m;
|
|
229
229
|
let u = m.getBBox();
|
|
230
230
|
if (e) {
|
|
@@ -234,7 +234,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
|
|
|
234
234
|
d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).startRight = p, Z(f, t.startLabelRight);
|
|
235
235
|
}
|
|
236
236
|
if (t.endLabelLeft) {
|
|
237
|
-
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await
|
|
237
|
+
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(p, t.endLabelLeft, Q(t.labelStyle) || "", !1, !1);
|
|
238
238
|
f = m;
|
|
239
239
|
let u = m.getBBox();
|
|
240
240
|
if (e) {
|
|
@@ -244,7 +244,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
|
|
|
244
244
|
d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).endLeft = p, Z(f, t.endLabelLeft);
|
|
245
245
|
}
|
|
246
246
|
if (t.endLabelRight) {
|
|
247
|
-
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await
|
|
247
|
+
const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(p, t.endLabelRight, Q(t.labelStyle) || "", !1, !1);
|
|
248
248
|
f = m;
|
|
249
249
|
let u = m.getBBox();
|
|
250
250
|
if (e) {
|
|
@@ -429,7 +429,7 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
|
|
|
429
429
|
if (d.intersect && p.intersect && Array.isArray(l) && l.length >= 2)
|
|
430
430
|
if (l.length === 2) l = [p.intersect(l[0]), d.intersect(l[1])];
|
|
431
431
|
else {
|
|
432
|
-
const x = l.slice(1, -1),
|
|
432
|
+
const x = l.slice(1, -1), v = x[0], U = x[x.length - 1], E = 0.5, R = Math.abs(l[l.length - 1].x - U.x) < E && Math.abs(l[l.length - 1].y - U.y) < E, X = p.intersect(v), Y = R ? U : d.intersect(U), W = Math.abs(Y.x - U.x) < E && Math.abs(Y.y - U.y) < E, P = Math.abs(X.x - v.x) < E && Math.abs(X.y - v.y) < E ? [] : [X], ut = W ? [] : [Y];
|
|
433
433
|
l = [
|
|
434
434
|
...P,
|
|
435
435
|
...x,
|
|
@@ -452,34 +452,34 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
|
|
|
452
452
|
w = et;
|
|
453
453
|
break;
|
|
454
454
|
case "cardinal":
|
|
455
|
-
w =
|
|
455
|
+
w = bt;
|
|
456
456
|
break;
|
|
457
457
|
case "bumpX":
|
|
458
|
-
w =
|
|
458
|
+
w = Ut;
|
|
459
459
|
break;
|
|
460
460
|
case "bumpY":
|
|
461
|
-
w =
|
|
461
|
+
w = yt;
|
|
462
462
|
break;
|
|
463
463
|
case "catmullRom":
|
|
464
|
-
w =
|
|
464
|
+
w = _t;
|
|
465
465
|
break;
|
|
466
466
|
case "monotoneX":
|
|
467
|
-
w =
|
|
467
|
+
w = xt;
|
|
468
468
|
break;
|
|
469
469
|
case "monotoneY":
|
|
470
|
-
w =
|
|
470
|
+
w = Mt;
|
|
471
471
|
break;
|
|
472
472
|
case "natural":
|
|
473
|
-
w =
|
|
473
|
+
w = St;
|
|
474
474
|
break;
|
|
475
475
|
case "step":
|
|
476
|
-
w =
|
|
476
|
+
w = Lt;
|
|
477
477
|
break;
|
|
478
478
|
case "stepAfter":
|
|
479
|
-
w =
|
|
479
|
+
w = wt;
|
|
480
480
|
break;
|
|
481
481
|
case "stepBefore":
|
|
482
|
-
w =
|
|
482
|
+
w = gt;
|
|
483
483
|
break;
|
|
484
484
|
case "rounded":
|
|
485
485
|
w = tt;
|
|
@@ -487,7 +487,7 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
|
|
|
487
487
|
default:
|
|
488
488
|
w = et;
|
|
489
489
|
}
|
|
490
|
-
const { x: J, y: q } = Tt(t), C =
|
|
490
|
+
const { x: J, y: q } = Tt(t), C = Ot().x(J).y(q).curve(w);
|
|
491
491
|
let O;
|
|
492
492
|
switch (t.thickness) {
|
|
493
493
|
case "normal":
|
|
@@ -516,22 +516,22 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
|
|
|
516
516
|
O += " edge-pattern-solid";
|
|
517
517
|
}
|
|
518
518
|
let L, j = b === "rounded" ? pt(ht(M, t), 5) : C(M);
|
|
519
|
-
const
|
|
520
|
-
let at =
|
|
519
|
+
const $ = Array.isArray(t.style) ? t.style : [t.style];
|
|
520
|
+
let at = $.find((x) => x?.startsWith("stroke:")), z = "";
|
|
521
521
|
t.animate && (z = "edge-animation-fast"), t.animation && (z = "edge-animation-" + t.animation);
|
|
522
522
|
let G = !1;
|
|
523
523
|
if (t.look === "handDrawn") {
|
|
524
524
|
const x = Yt.svg(r);
|
|
525
525
|
Object.assign([], M);
|
|
526
|
-
const
|
|
526
|
+
const v = x.path(j, {
|
|
527
527
|
roughness: 0.3,
|
|
528
528
|
seed: c
|
|
529
529
|
});
|
|
530
|
-
O += " transition", L = H(
|
|
530
|
+
O += " transition", L = H(v).select("path").attr("id", `${s}-${t.id}`).attr("class", " " + O + (t.classes ? " " + t.classes : "") + (z ? " " + z : "")).attr("style", $ ? $.reduce((E, R) => E + ";" + R, "") : "");
|
|
531
531
|
let U = L.attr("d");
|
|
532
532
|
L.attr("d", U), r.node().appendChild(L.node());
|
|
533
533
|
} else {
|
|
534
|
-
const x = m.join(";"),
|
|
534
|
+
const x = m.join(";"), v = $ ? $.reduce((W, P) => W + P + ";", "") : "", U = (x ? x + ";" + v + ";" : v) + ";" + ($ ? $.reduce((W, P) => W + ";" + P, "") : "");
|
|
535
535
|
L = r.append("path").attr("d", j).attr("id", `${s}-${t.id}`).attr("class", " " + O + (t.classes ? " " + t.classes : "") + (z ? " " + z : "")).attr("style", U), at = U.match(/stroke:([^;]+)/)?.[1], G = t.animate === !0 || !!t.animation || x.includes("animation");
|
|
536
536
|
const E = L.node(), R = typeof E.getTotalLength == "function" ? E.getTotalLength() : 0, X = st[t.arrowTypeStart] || 0, Y = st[t.arrowTypeEnd] || 0;
|
|
537
537
|
if (t.look === "neo" && !G) {
|
|
@@ -542,10 +542,10 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
|
|
|
542
542
|
L.attr("data-edge", !0), L.attr("data-et", "edge"), L.attr("data-id", t.id), L.attr("data-points", u), L.attr("data-look", Et(t.look)), t.showPoints && M.forEach((x) => {
|
|
543
543
|
r.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", x.x).attr("cy", x.y);
|
|
544
544
|
});
|
|
545
|
-
let
|
|
546
|
-
(B().flowchart.arrowMarkerAbsolute || B().state.arrowMarkerAbsolute) && (
|
|
545
|
+
let V = "";
|
|
546
|
+
(B().flowchart.arrowMarkerAbsolute || B().state.arrowMarkerAbsolute) && (V = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, V = V.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), g.info("arrowTypeStart", t.arrowTypeStart), g.info("arrowTypeEnd", t.arrowTypeEnd);
|
|
547
547
|
const ft = !G && t?.look === "neo";
|
|
548
|
-
Ht(L, t,
|
|
548
|
+
Ht(L, t, V, s, e, ft, at);
|
|
549
549
|
const mt = Math.floor(l.length / 2), kt = l[mt];
|
|
550
550
|
A.isLabelCoordinateInPath(kt, L.attr("d")) || (f = !0);
|
|
551
551
|
let K = {};
|
|
@@ -570,8 +570,8 @@ function pt(r, t) {
|
|
|
570
570
|
a += `L${s.x},${s.y}`;
|
|
571
571
|
continue;
|
|
572
572
|
}
|
|
573
|
-
const C = Math.min(t / Math.sin(q / 2), d / 2, m / 2), O = s.x - u * C, L = s.y - M * C, j = s.x + b * C,
|
|
574
|
-
a += `L${O},${L}`, a += `Q${s.x},${s.y} ${j},${
|
|
573
|
+
const C = Math.min(t / Math.sin(q / 2), d / 2, m / 2), O = s.x - u * C, L = s.y - M * C, j = s.x + b * C, $ = s.y + w * C;
|
|
574
|
+
a += `L${O},${L}`, a += `Q${s.x},${s.y} ${j},${$}`;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
return a;
|
package/dist/wc-react/command.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as te } from "./check.js";
|
|
2
2
|
import { t as ae } from "./search.js";
|
|
3
3
|
import { t as oe } from "./x.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { f as d, p as ne } from "./_shared.js";
|
|
5
|
+
import { t as re } from "./create-safe-context.js";
|
|
6
6
|
import { t as ie } from "./button.js";
|
|
7
7
|
import { a as se, c as le, i as de, l as O, n as ce, t as ue, u as me } from "./DialogTrigger.js";
|
|
8
8
|
import { t as pe } from "./DialogRoot.js";
|
|
@@ -106,7 +106,7 @@ var ge = Object.assign(H, {
|
|
|
106
106
|
Footer: G,
|
|
107
107
|
Title: L,
|
|
108
108
|
Description: A
|
|
109
|
-
}), [he, M] =
|
|
109
|
+
}), [he, M] = re("Command");
|
|
110
110
|
function xe(e, t) {
|
|
111
111
|
const o = e.toLowerCase(), r = t.toLowerCase().trim();
|
|
112
112
|
return r ? o.includes(r) ? 1 : 0 : 1;
|
|
@@ -332,7 +332,7 @@ function Z({ className: e, children: t, value: o, disabled: r = !1, onSelect: s,
|
|
|
332
332
|
const { activeId: D, getItemVisibility: N, registerItem: k, setActiveId: C, updateItem: S } = M(), i = l.useId(), V = l.useMemo(() => [
|
|
333
333
|
o,
|
|
334
334
|
h?.join(" ") ?? "",
|
|
335
|
-
|
|
335
|
+
ne(t)
|
|
336
336
|
].filter(Boolean).join(" "), [
|
|
337
337
|
t,
|
|
338
338
|
h,
|