@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
|
@@ -26,22 +26,22 @@ import { t as Ln } from "./useLabelableId.js";
|
|
|
26
26
|
import { t as fr } from "./FieldTooltip.js";
|
|
27
27
|
import { n as mr, t as gr } from "./field-props.js";
|
|
28
28
|
import { a as hr, c as br, i as vr, l as xr, n as Cr, o as Ir, r as yr, s as Er, t as Pr } from "./form-field.js";
|
|
29
|
+
import { a as Le, c as Rr, d as wr, f as Vr, l as Sr, m as Tr, n as Ar, o as gt, p as Mr, s as vt, t as Or, u as Wt } from "./resolveValueLabel.js";
|
|
30
|
+
import { n as kn } from "./useTimeout.js";
|
|
31
|
+
import { a as _n, n as Nr, o as Fr, r as Lr } from "./useScrollLock.js";
|
|
32
|
+
import { a as kr, n as _r, r as Dn } from "./stateAttributesMapping.js";
|
|
33
|
+
import { n as Dr, r as Hr, t as qr } from "./usePositioner.js";
|
|
34
|
+
import { n as Br, t as zr } from "./useTypeahead.js";
|
|
29
35
|
import { t as Jt } from "./useButton.js";
|
|
30
|
-
import {
|
|
31
|
-
import { t as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { a as Dn, n as kr, o as _r, r as Dr } from "./useScrollLock.js";
|
|
35
|
-
import { n as Hr, r as qr, t as Br } from "./usePositioner.js";
|
|
36
|
-
import { n as zr, t as Gr } from "./useTypeahead.js";
|
|
37
|
-
import { t as Kr } from "./getPseudoElementBounds.js";
|
|
38
|
-
import { t as Ur } from "./inertValue.js";
|
|
39
|
-
import { t as jr } from "./useAnchoredPopupScrollLock.js";
|
|
36
|
+
import { t as Gr } from "./getPseudoElementBounds.js";
|
|
37
|
+
import { t as Kr } from "./inertValue.js";
|
|
38
|
+
import { t as Ur } from "./useAnchoredPopupScrollLock.js";
|
|
39
|
+
import { t as jr } from "./Badge.js";
|
|
40
40
|
import * as o from "react";
|
|
41
41
|
import Qt from "react";
|
|
42
42
|
import { createRoot as Wr } from "react-dom/client";
|
|
43
|
-
import * as $r from "react-dom";
|
|
44
43
|
import { Fragment as Hn, jsx as f, jsxs as ae } from "react/jsx-runtime";
|
|
44
|
+
import * as $r from "react-dom";
|
|
45
45
|
function Qr(e, t, n, u, b, C, y, m, v, s = 2) {
|
|
46
46
|
const c = Wo(n.current, {
|
|
47
47
|
event: e,
|
|
@@ -92,7 +92,7 @@ var l = {
|
|
|
92
92
|
const { selectedValue: t, selectionMode: n } = e;
|
|
93
93
|
return t == null ? !1 : n === "multiple" && Array.isArray(t) ? t.length > 0 : !0;
|
|
94
94
|
},
|
|
95
|
-
hasNullItemLabel: (e, t) => t ?
|
|
95
|
+
hasNullItemLabel: (e, t) => t ? Or(e.items) : !1,
|
|
96
96
|
open: (e) => e.open,
|
|
97
97
|
mounted: (e) => e.mounted,
|
|
98
98
|
forceMounted: (e) => e.forceMounted,
|
|
@@ -178,7 +178,7 @@ var $n = /* @__PURE__ */ Symbol("none"), $t = {
|
|
|
178
178
|
index: -1
|
|
179
179
|
};
|
|
180
180
|
function es(e) {
|
|
181
|
-
const { id: t, onOpenChangeComplete: n, defaultSelectedValue: u = null, selectedValue: b, onSelectedValueChange: C, defaultInputValue: y, inputValue: m, open: v, defaultOpen: s = !1, selectionMode: c, onItemHighlighted: D, name: H, form: F, disabled: W = !1, readOnly: x = !1, required: L = !1, inputRef: h, grid: M = !1, items: r, filteredItems: q, filter: $, openOnInputClick: V = !0, autoHighlight: B = !1, keepHighlight: S = !1, highlightItemOnHover: G = !0, loopFocus: P = !0, itemToStringLabel: g, itemToStringValue: R, isItemEqualToValue: O =
|
|
181
|
+
const { id: t, onOpenChangeComplete: n, defaultSelectedValue: u = null, selectedValue: b, onSelectedValueChange: C, defaultInputValue: y, inputValue: m, open: v, defaultOpen: s = !1, selectionMode: c, onItemHighlighted: D, name: H, form: F, disabled: W = !1, readOnly: x = !1, required: L = !1, inputRef: h, grid: M = !1, items: r, filteredItems: q, filter: $, openOnInputClick: V = !0, autoHighlight: B = !1, keepHighlight: S = !1, highlightItemOnHover: G = !0, loopFocus: P = !0, itemToStringLabel: g, itemToStringValue: R, isItemEqualToValue: O = Rr, virtualized: ne = !1, inline: Q = !1, fillInputOnItemPress: J = !0, modal: N = !1, limit: Y = -1, autoComplete: ce = "list", formAutoComplete: Pe, locale: oe, submitOnItemClick: Ae = !1 } = e, { clearErrors: me } = lr(), { setDirty: T, validityData: re, setFilled: se, name: Me, disabled: Oe, setTouched: Je, setFocused: De, validationMode: He, validation: ve } = Zt(), qe = Sn(), le = Ln({ id: t }), z = Wn({ locale: oe }), [de, pe] = o.useState(!1), [Re, E] = o.useState(null), w = o.useRef([]), ue = o.useRef([]), Be = o.useRef(null), p = o.useRef(null), A = o.useRef(null), ge = o.useRef(null), we = o.useRef(null), Qe = o.useRef(!0), Ne = o.useRef(!1), ee = o.useRef(null), xe = o.useRef(null), ze = o.useRef(null), Ve = o.useRef($t), Ge = o.useRef(null), Fe = o.useRef([]), tn = o.useRef(null), Se = Oe || W, Ye = Me ?? H, he = c === "multiple", Xe = c === "single", ot = m !== void 0 || y !== void 0, Ce = r !== void 0, Ct = q !== void 0;
|
|
182
182
|
let fe;
|
|
183
183
|
B === "always" ? fe = "always" : fe = B ? "input-change" : !1;
|
|
184
184
|
const [k, io] = Kt({
|
|
@@ -200,7 +200,7 @@ function es(e) {
|
|
|
200
200
|
default: s,
|
|
201
201
|
name: "Combobox",
|
|
202
202
|
state: "open"
|
|
203
|
-
}), rt =
|
|
203
|
+
}), rt = Ar(r), Te = Re ?? String(Ie).trim(), on = Xe ? Le(k, g) : "", rn = Xe && !de && Te !== "" && on.length === Te.length && z.contains(on, Te), st = rn ? "" : Te, sn = Ce && Ct && rn, it = o.useMemo(() => r ? rt ? r.flatMap((i) => i.items) : r : At, [r, rt]), pt = o.useMemo(() => {
|
|
204
204
|
if (q && !sn) return q;
|
|
205
205
|
if (!r) return At;
|
|
206
206
|
if (rt) {
|
|
@@ -311,7 +311,7 @@ function es(e) {
|
|
|
311
311
|
R,
|
|
312
312
|
c,
|
|
313
313
|
k
|
|
314
|
-
]), co = ie(D), an = ie(n), ln = a(I, l.activeIndex), po = a(I, l.selectedIndex), It = a(I, l.positionerElement), un = a(I, l.listElement), ft = a(I, l.triggerElement), yt = a(I, l.inputElement), fo = a(I, l.inputGroupElement), be = a(I, l.inline), Ke = a(I, l.inputInsidePopup), mo = a(I, l.inputOwnsFormValue), go = dr(ft), { mounted: cn, setMounted: ho, transitionStatus: kt } =
|
|
314
|
+
]), co = ie(D), an = ie(n), ln = a(I, l.activeIndex), po = a(I, l.selectedIndex), It = a(I, l.positionerElement), un = a(I, l.listElement), ft = a(I, l.triggerElement), yt = a(I, l.inputElement), fo = a(I, l.inputGroupElement), be = a(I, l.inline), Ke = a(I, l.inputInsidePopup), mo = a(I, l.inputOwnsFormValue), go = dr(ft), { mounted: cn, setMounted: ho, transitionStatus: kt } = kr(Z), { openMethod: dn, triggerProps: _t } = Lr(Z), bo = ie(() => uo);
|
|
315
315
|
ir(Ke ? go : p, le, at, bo, !Se, H);
|
|
316
316
|
const pn = ie(() => {
|
|
317
317
|
r ? ue.current = ye.map((i) => Le(i, g)) : I.set("forceMounted", !0);
|
|
@@ -373,7 +373,7 @@ function es(e) {
|
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
375
|
if (he) {
|
|
376
|
-
const U = Array.isArray(k) ? k : [], te =
|
|
376
|
+
const U = Array.isArray(k) ? k : [], te = Vr(U, d, O) ? wr(U, d, O) : [...U, d];
|
|
377
377
|
if (Et(te, X), X.isCanceled || !(p.current && p.current.value.trim() !== "")) return;
|
|
378
378
|
I.state.inputInsidePopup ? je("", j(Ze, X.event)) : mt(!1, X);
|
|
379
379
|
} else {
|
|
@@ -395,7 +395,7 @@ function es(e) {
|
|
|
395
395
|
p.current && p.current.value !== i && je(i, j(i === "" ? Ze : We));
|
|
396
396
|
}
|
|
397
397
|
}), Co = o.useMemo(() => be && It ? { current: It.closest('[role="dialog"]') } : Be, [be, It]);
|
|
398
|
-
|
|
398
|
+
Dn({
|
|
399
399
|
enabled: !e.actionsRef,
|
|
400
400
|
open: Z,
|
|
401
401
|
ref: Co,
|
|
@@ -500,7 +500,7 @@ function es(e) {
|
|
|
500
500
|
}), Mt(r, () => {
|
|
501
501
|
!Xe || ot || Ke || de || fn();
|
|
502
502
|
});
|
|
503
|
-
const Pt =
|
|
503
|
+
const Pt = Mr({
|
|
504
504
|
open: be ? !0 : Z,
|
|
505
505
|
onOpenChange: mt,
|
|
506
506
|
elements: {
|
|
@@ -525,7 +525,7 @@ function es(e) {
|
|
|
525
525
|
mn,
|
|
526
526
|
un?.id,
|
|
527
527
|
ce
|
|
528
|
-
]), hn =
|
|
528
|
+
]), hn = _n(Pt, {
|
|
529
529
|
enabled: !x && !Se && V,
|
|
530
530
|
event: "mousedown-only",
|
|
531
531
|
toggle: !1,
|
|
@@ -542,7 +542,7 @@ function es(e) {
|
|
|
542
542
|
const d = Ot(i);
|
|
543
543
|
return !$e(ft, d) && !$e(xe.current, d) && !$e(ee.current, d) && !$e(fo, d);
|
|
544
544
|
}
|
|
545
|
-
}), ut =
|
|
545
|
+
}), ut = Br(Pt, {
|
|
546
546
|
enabled: !x && !Se,
|
|
547
547
|
id: le,
|
|
548
548
|
listRef: w,
|
|
@@ -580,7 +580,7 @@ function es(e) {
|
|
|
580
580
|
onFocus: void 0
|
|
581
581
|
} : In;
|
|
582
582
|
}, [ut.item]);
|
|
583
|
-
|
|
583
|
+
Tr(() => {
|
|
584
584
|
I.update({
|
|
585
585
|
inline: Q,
|
|
586
586
|
popupProps: qt,
|
|
@@ -808,7 +808,7 @@ function Xn(e, t, n) {
|
|
|
808
808
|
u && (e.state.selectionEventRef.current = n, u.click(), e.state.selectionEventRef.current = null);
|
|
809
809
|
}
|
|
810
810
|
var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
811
|
-
const { render: u, className: b, nativeButton: C = !0, disabled: y = !1, id: m, style: v, ...s } = t, { state: c, disabled: D, setTouched: H, setFocused: F, validationMode: W, validation: x } = Zt(), { labelId: L } = Nn(), h = _e(), M = a(h, l.selectionMode), r = a(h, l.disabled), q = a(h, l.readOnly), $ = a(h, l.required), V = a(h, l.positionerElement), B = a(h, l.listElement), S = a(h, l.popupId), G = a(h, l.triggerProps), P = a(h, l.inputInsidePopup), g = a(h, l.id), R = a(h, l.labelId), O = a(h, l.open), ne = a(h, l.selectedValue), Q = a(h, l.activeIndex), J = a(h, l.selectedIndex), N = a(h, l.hasSelectedValue), Y = Nt(), ce = Un(), Pe =
|
|
811
|
+
const { render: u, className: b, nativeButton: C = !0, disabled: y = !1, id: m, style: v, ...s } = t, { state: c, disabled: D, setTouched: H, setFocused: F, validationMode: W, validation: x } = Zt(), { labelId: L } = Nn(), h = _e(), M = a(h, l.selectionMode), r = a(h, l.disabled), q = a(h, l.readOnly), $ = a(h, l.required), V = a(h, l.positionerElement), B = a(h, l.listElement), S = a(h, l.popupId), G = a(h, l.triggerProps), P = a(h, l.inputInsidePopup), g = a(h, l.id), R = a(h, l.labelId), O = a(h, l.open), ne = a(h, l.selectedValue), Q = a(h, l.activeIndex), J = a(h, l.selectedIndex), N = a(h, l.hasSelectedValue), Y = Nt(), ce = Un(), Pe = kn(), oe = D || r || y, Ae = Ft(), me = Yn(h);
|
|
812
812
|
Ln({ id: P ? m : void 0 });
|
|
813
813
|
const T = P ? m ?? g : m, re = Go(L, R);
|
|
814
814
|
let se;
|
|
@@ -817,7 +817,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
817
817
|
function Oe(z) {
|
|
818
818
|
Me.current = z.pointerType;
|
|
819
819
|
}
|
|
820
|
-
const { reference: Je } =
|
|
820
|
+
const { reference: Je } = zr(Y, {
|
|
821
821
|
enabled: !O && !q && !r && M === "single",
|
|
822
822
|
listRef: h.state.labelsRef,
|
|
823
823
|
activeIndex: Q,
|
|
@@ -826,7 +826,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
826
826
|
const de = h.state.valuesRef.current[z];
|
|
827
827
|
de !== void 0 && h.state.setSelectedValue(de, j(We));
|
|
828
828
|
}
|
|
829
|
-
}), { reference: De } =
|
|
829
|
+
}), { reference: De } = _n(Y, {
|
|
830
830
|
enabled: !q && !r,
|
|
831
831
|
event: "mousedown"
|
|
832
832
|
}), { buttonRef: He, getButtonProps: ve } = Jt({
|
|
@@ -880,7 +880,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
880
880
|
const E = h.state.triggerElement;
|
|
881
881
|
if (!E) return;
|
|
882
882
|
const w = Ot(Re), ue = h.state.positionerElement, Be = h.state.listElement;
|
|
883
|
-
$e(E, w) || $e(ue, w) || $e(Be, w) ||
|
|
883
|
+
$e(E, w) || $e(ue, w) || $e(Be, w) || Gr(Re, E) || h.state.setOpen(!1, j(Bo, Re));
|
|
884
884
|
}
|
|
885
885
|
P && de.addEventListener("mouseup", pe, { once: !0 });
|
|
886
886
|
},
|
|
@@ -1128,7 +1128,7 @@ function ds(e) {
|
|
|
1128
1128
|
return n;
|
|
1129
1129
|
}
|
|
1130
1130
|
function ps() {
|
|
1131
|
-
const e =
|
|
1131
|
+
const e = kn(), t = o.useRef(null);
|
|
1132
1132
|
return o.useEffect(() => {
|
|
1133
1133
|
if (Uo) return;
|
|
1134
1134
|
const n = t.current;
|
|
@@ -1159,7 +1159,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1159
1159
|
})
|
|
1160
1160
|
}) : null;
|
|
1161
1161
|
}), gs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
1162
|
-
const { render: u, className: b, anchor: C, positionMethod: y, side: m, align: v, sideOffset: s, alignOffset: c, collisionBoundary: D = "clipping-ancestors", collisionPadding: H, arrowPadding: F, sticky: W, disableAnchorTracking: x = !1, collisionAvoidance: L = Qo, style: h, ...M } = t, r = _e(), q = Nt(), $ = fs(), V = a(r, l.modal), B = a(r, l.open), S = a(r, l.mounted), G = a(r, l.openMethod), P = a(r, l.positionerElement), g = a(r, l.triggerElement), R = a(r, l.inputElement), O = a(r, l.inputGroupElement), ne = a(r, l.inputInsidePopup), Q = a(r, l.transitionStatus), J = Ft(), N =
|
|
1162
|
+
const { render: u, className: b, anchor: C, positionMethod: y, side: m, align: v, sideOffset: s, alignOffset: c, collisionBoundary: D = "clipping-ancestors", collisionPadding: H, arrowPadding: F, sticky: W, disableAnchorTracking: x = !1, collisionAvoidance: L = Qo, style: h, ...M } = t, r = _e(), q = Nt(), $ = fs(), V = a(r, l.modal), B = a(r, l.open), S = a(r, l.mounted), G = a(r, l.openMethod), P = a(r, l.positionerElement), g = a(r, l.triggerElement), R = a(r, l.inputElement), O = a(r, l.inputGroupElement), ne = a(r, l.inputInsidePopup), Q = a(r, l.transitionStatus), J = Ft(), N = Hr({
|
|
1163
1163
|
anchor: C ?? (ne ? g : O ?? R),
|
|
1164
1164
|
floatingRootContext: q,
|
|
1165
1165
|
positionMethod: y,
|
|
@@ -1177,7 +1177,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1177
1177
|
collisionAvoidance: L,
|
|
1178
1178
|
lazyFlip: !0
|
|
1179
1179
|
});
|
|
1180
|
-
|
|
1180
|
+
Ur(B && V, G === "touch", P, g);
|
|
1181
1181
|
const Y = {
|
|
1182
1182
|
open: B,
|
|
1183
1183
|
side: N.side,
|
|
@@ -1190,7 +1190,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1190
1190
|
}, [r, N.side]);
|
|
1191
1191
|
const ce = ie((oe) => {
|
|
1192
1192
|
r.set("positionerElement", oe);
|
|
1193
|
-
}), Pe =
|
|
1193
|
+
}), Pe = qr(t, Y, {
|
|
1194
1194
|
styles: N.positionerStyles,
|
|
1195
1195
|
transitionStatus: Q,
|
|
1196
1196
|
props: M,
|
|
@@ -1200,19 +1200,19 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
return /* @__PURE__ */ ae(Zn.Provider, {
|
|
1202
1202
|
value: N,
|
|
1203
|
-
children: [S && V && /* @__PURE__ */ f(
|
|
1204
|
-
inert:
|
|
1203
|
+
children: [S && V && /* @__PURE__ */ f(Nr, {
|
|
1204
|
+
inert: Kr(!B),
|
|
1205
1205
|
cutout: O ?? R ?? g
|
|
1206
1206
|
}), Pe]
|
|
1207
1207
|
});
|
|
1208
1208
|
}), hs = {
|
|
1209
1209
|
...Jo,
|
|
1210
|
-
...
|
|
1210
|
+
..._r
|
|
1211
1211
|
}, bs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
1212
1212
|
const { render: u, className: b, style: C, initialFocus: y, finalFocus: m, ...v } = t, s = _e(), c = en(), D = Nt(), H = a(s, l.mounted), F = a(s, l.open), W = a(s, l.openMethod), x = a(s, l.popupProps), L = a(s, l.transitionStatus), h = a(s, l.inputInsidePopup), M = a(s, l.inputElement), r = a(s, l.modal), q = a(s, l.id), $ = Ft(), V = v.id ?? (h ? jn(q) : void 0);
|
|
1213
1213
|
ke(() => (s.set("popupId", s.state.popupRef.current?.id || V), () => {
|
|
1214
1214
|
s.set("popupId", void 0);
|
|
1215
|
-
}), [s, V]),
|
|
1215
|
+
}), [s, V]), Dn({
|
|
1216
1216
|
open: F,
|
|
1217
1217
|
ref: s.state.popupRef,
|
|
1218
1218
|
onComplete() {
|
|
@@ -1239,7 +1239,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1239
1239
|
W !== "touch" && ($e(s.state.listElement, O) || O === R.currentTarget) && s.state.inputRef.current?.focus();
|
|
1240
1240
|
}
|
|
1241
1241
|
},
|
|
1242
|
-
|
|
1242
|
+
Dr(L),
|
|
1243
1243
|
v
|
|
1244
1244
|
],
|
|
1245
1245
|
stateAttributesMapping: hs
|
|
@@ -1247,7 +1247,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1247
1247
|
let P;
|
|
1248
1248
|
m != null ? P = m : P = h ? void 0 : !1;
|
|
1249
1249
|
const g = !h || r;
|
|
1250
|
-
return /* @__PURE__ */ f(
|
|
1250
|
+
return /* @__PURE__ */ f(Fr, {
|
|
1251
1251
|
context: D,
|
|
1252
1252
|
disabled: !H,
|
|
1253
1253
|
modal: g,
|
|
@@ -1398,7 +1398,7 @@ function oo(e) {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ps(e) {
|
|
1401
|
-
const { componentProps: t, forwardedRef: n } = e, u = _e(), b = a(u, l.isItemEqualToValue), { flatFilteredItems: C } = xt(), y =
|
|
1401
|
+
const { componentProps: t, forwardedRef: n } = e, u = _e(), b = a(u, l.isItemEqualToValue), { flatFilteredItems: C } = xt(), y = Sr(C, t.value ?? null, b);
|
|
1402
1402
|
return /* @__PURE__ */ f(oo, {
|
|
1403
1403
|
componentProps: t,
|
|
1404
1404
|
forwardedRef: n,
|
|
@@ -1434,7 +1434,7 @@ var Rs = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
});
|
|
1436
1436
|
function Ss({ item: e, size: t, disabled: n, customRender: u, onRemove: b }) {
|
|
1437
|
-
return u ? /* @__PURE__ */ f(Hn, { children: u(e, b) }) : /* @__PURE__ */ f(
|
|
1437
|
+
return u ? /* @__PURE__ */ f(Hn, { children: u(e, b) }) : /* @__PURE__ */ f(jr, {
|
|
1438
1438
|
size: Ts[t],
|
|
1439
1439
|
variant: "outline",
|
|
1440
1440
|
shape: "rounded",
|
|
@@ -13,8 +13,8 @@ import { t as Ct } from "./search.js";
|
|
|
13
13
|
import { t as kt } from "./trash-2.js";
|
|
14
14
|
import { n as Dt, t as Tt } from "./Avatar.js";
|
|
15
15
|
import { t as St } from "./x.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { c as _t, f as k, s as Ce } from "./_shared.js";
|
|
17
|
+
import { t as zt } from "./create-safe-context.js";
|
|
18
18
|
import { t as P } from "./button.js";
|
|
19
19
|
import { t as Et } from "./Input2.js";
|
|
20
20
|
import { a as Ot, i as $t, n as Pt, o as It, r as At } from "./Select.js";
|
|
@@ -302,7 +302,7 @@ function se({ onAddEvent: e, onExpand: t, onClose: n, className: a }) {
|
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
304
|
se.displayName = "CalendarActions";
|
|
305
|
-
var [mn, U] =
|
|
305
|
+
var [mn, U] = zt("Calendar"), pn = [];
|
|
306
306
|
function We(e) {
|
|
307
307
|
return `${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`;
|
|
308
308
|
}
|
|
@@ -1659,7 +1659,7 @@ var J = {}, ft = class extends HTMLElement {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
_setProp(e, t) {
|
|
1661
1661
|
const n = J[e] || "string";
|
|
1662
|
-
this._props[e] =
|
|
1662
|
+
this._props[e] = _t(t, n), this._render();
|
|
1663
1663
|
}
|
|
1664
1664
|
_getProp(e) {
|
|
1665
1665
|
if (e in this._props) return this._props[e];
|
|
@@ -3,8 +3,8 @@ import { t as xe } from "./chevron-left.js";
|
|
|
3
3
|
import { t as we } from "./chevron-right.js";
|
|
4
4
|
import { t as ve } from "./chevron-up.js";
|
|
5
5
|
import { c as Ce, f as u, s as q } from "./_shared.js";
|
|
6
|
-
import { t as ye } from "./use-controllable-state.js";
|
|
7
6
|
import { t as K } from "./button.js";
|
|
7
|
+
import { t as ye } from "./use-controllable-state.js";
|
|
8
8
|
import * as f from "react";
|
|
9
9
|
import H from "react";
|
|
10
10
|
import { createRoot as Ne } from "react-dom/client";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as M } from "./check.js";
|
|
2
2
|
import { t as F } from "./chevron-right.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
3
|
+
import { a as $, f as i, i as J, l as y, o as V, t as X, u as Y } from "./_shared.js";
|
|
4
|
+
import { t as q } from "./create-safe-context.js";
|
|
5
5
|
import { t as H } from "./use-controllable-state.js";
|
|
6
6
|
import { t as Q } from "./Separator.js";
|
|
7
7
|
import { a as U, c as N, d as Z, f as ee, h as te, l as v, m as oe, n as ne, o as ae, p as re, r as se, s as ie, t as ue, u as S } from "./MenuSubmenuTrigger.js";
|
|
8
8
|
import * as p from "react";
|
|
9
9
|
import f from "react";
|
|
10
10
|
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
11
|
-
var [de, P] =
|
|
11
|
+
var [de, P] = q("ContextMenu");
|
|
12
12
|
function x({ children: e, anchorPoint: t, open: o, defaultOpen: r = !1, onOpenChange: l }) {
|
|
13
13
|
const [a, u] = p.useState({
|
|
14
14
|
x: 0,
|
|
@@ -268,24 +268,24 @@ var le = Object.assign(x, {
|
|
|
268
268
|
}), g = {
|
|
269
269
|
open: "boolean",
|
|
270
270
|
defaultOpen: "boolean"
|
|
271
|
-
}, W = class extends
|
|
271
|
+
}, W = class extends X {
|
|
272
272
|
get propDefs() {
|
|
273
273
|
return g;
|
|
274
274
|
}
|
|
275
275
|
static get observedAttributes() {
|
|
276
|
-
return Object.keys(g).map(
|
|
276
|
+
return Object.keys(g).map(J);
|
|
277
277
|
}
|
|
278
278
|
_renderReact() {
|
|
279
279
|
const e = this._readAllProps(), t = this._getSlot("trigger"), o = this._getDefaultSlot();
|
|
280
280
|
return f.createElement(le, {
|
|
281
281
|
open: e.open,
|
|
282
282
|
defaultOpen: e.defaultOpen || !1,
|
|
283
|
-
onOpenChange: (r) =>
|
|
283
|
+
onOpenChange: (r) => $(this, "open-change", r)
|
|
284
284
|
}, t ? f.createElement(b, null, y(t)) : null, o ? f.createElement(C, null, y(o)) : null);
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
V(W, g);
|
|
288
|
+
Y("hf-context-menu", W);
|
|
289
289
|
export {
|
|
290
290
|
W as ContextMenuWC,
|
|
291
291
|
W as default
|
|
@@ -13,8 +13,8 @@ import { a as io, i as so, n as yt, o as Se, r as ro, t as on } from "./table2.j
|
|
|
13
13
|
import { t as lo } from "./Tooltip2.js";
|
|
14
14
|
import * as E from "react";
|
|
15
15
|
import Z from "react";
|
|
16
|
-
import { flushSync as ao } from "react-dom";
|
|
17
16
|
import { Fragment as Cn, jsx as F, jsxs as ee } from "react/jsx-runtime";
|
|
17
|
+
import { flushSync as ao } from "react-dom";
|
|
18
18
|
var uo = [["path", {
|
|
19
19
|
d: "m7 15 5 5 5-5",
|
|
20
20
|
key: "1hf1tw"
|