@slotted/react 0.1.0-beta.40 → 0.1.0-beta.41
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/{app-shell-ClwskWBN.js → app-shell-DyPHYe4K.js} +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-AAjprQyU.js → attachment-MqczA38F.js} +1 -1
- package/dist/attachment.js +1 -1
- package/dist/{badge-pgYVOnZO.js → badge-DFskjsxA.js} +21 -20
- package/dist/badge.js +1 -1
- package/dist/{calendar-D3QZDlm0.js → calendar-DRuJ7z0H.js} +198 -195
- package/dist/calendar.js +1 -1
- package/dist/chart-CgXbG6gZ.js +1055 -0
- package/dist/chart.js +1 -1
- package/dist/{color-picker-CaLcV-63.js → color-picker-CeOl4ikV.js} +7 -7
- package/dist/color-picker.js +1 -1
- package/dist/column-manager-CnOhzVGP.js +586 -0
- package/dist/column-manager.js +1 -1
- package/dist/{currency-field-BO2P6FPd.js → currency-field-LAawS9qo.js} +181 -144
- package/dist/currency-field.js +1 -1
- package/dist/dashboard-grid-Zzqmbzqq.js +1201 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-B7UuUvBH.js → data-grid-Y5aX9njc.js} +1424 -1398
- package/dist/data-grid.js +1 -1
- package/dist/{date-picker-DMcMFW_N.js → date-picker-6hj83x5D.js} +28 -26
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-D9zo93NE.js → date-range-picker-CBWnFTgL.js} +167 -162
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-picker-lOXZbAx_.js → datetime-picker-DwUYd3zF.js} +174 -163
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-DU5ctZbm.js → datetime-range-picker-CX_tBt6b.js} +193 -182
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-DLgRhEFO.js → detail-panel-EImAtksY.js} +3 -3
- package/dist/detail-panel.js +1 -1
- package/dist/docs/badge.json +8 -0
- package/dist/docs/badge.md +1 -0
- package/dist/docs/calendar.json +8 -1
- package/dist/docs/calendar.md +2 -1
- package/dist/docs/chart.examples.md +48 -0
- package/dist/docs/chart.json +60 -7
- package/dist/docs/chart.md +9 -5
- package/dist/docs/currency-field.examples.md +1 -1
- package/dist/docs/currency-field.json +4 -4
- package/dist/docs/currency-field.md +3 -3
- package/dist/docs/data-grid.json +15 -1
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/data-grid.props.md +2 -0
- package/dist/docs/date-picker.json +9 -2
- package/dist/docs/date-picker.md +3 -2
- package/dist/docs/date-range-picker.json +9 -2
- package/dist/docs/date-range-picker.md +3 -2
- package/dist/docs/datetime-picker.json +9 -2
- package/dist/docs/datetime-picker.md +3 -2
- package/dist/docs/datetime-range-picker.json +9 -2
- package/dist/docs/datetime-range-picker.md +3 -2
- package/dist/docs/guidelines/async-feedback.md +11 -1
- package/dist/docs/guidelines/index.md +1 -0
- package/dist/docs/popover.json +41 -3
- package/dist/docs/popover.md +5 -2
- package/dist/docs/section.json +1 -1
- package/dist/docs/section.md +1 -1
- package/dist/docs/skills/theme-app/SKILL.md +3 -2
- package/dist/docs/skills/waiting-states/SKILL.md +4 -1
- package/dist/docs/stat-card.json +9 -1
- package/dist/docs/stat-card.md +2 -1
- package/dist/docs/switch.json +12 -5
- package/dist/docs/switch.md +5 -4
- package/dist/docs/tag.json +8 -0
- package/dist/docs/tag.md +1 -0
- package/dist/docs/time-picker.json +1 -1
- package/dist/docs/time-picker.md +1 -1
- package/dist/docs/time-range-picker.json +1 -1
- package/dist/docs/time-range-picker.md +1 -1
- package/dist/{event-calendar-biSTH0yK.js → event-calendar-DzlL95E4.js} +2 -2
- package/dist/event-calendar.js +1 -1
- package/dist/{filter-bar-BQZFgV0A.js → filter-bar-DMuP5P6e.js} +19 -19
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-D8OyhmEG.js → hover-card-CWCSZ5_p.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-DWSEOV5Z.js → import-export-center-DzAUMTq5.js} +3 -3
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +47 -47
- package/dist/{loading-overlay-BLIrcaoj.js → loading-overlay-BxIktMtQ.js} +1 -1
- package/dist/loading-overlay.js +1 -1
- package/dist/{page-header-NN3Jq5vb.js → page-header-DmwBGwlm.js} +1 -1
- package/dist/page-header.js +1 -1
- package/dist/{picker-frame-_9ZqQOjf.js → picker-frame-CT5WNEnw.js} +1 -1
- package/dist/popover-B2t__iNO.js +575 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-indicator-D0acshNn.js → progress-indicator-DRr0Gj6w.js} +1 -0
- package/dist/progress-indicator.js +1 -1
- package/dist/{saved-views-BvRFgSdg.js → saved-views-zM-DxT1F.js} +6 -6
- package/dist/saved-views.js +1 -1
- package/dist/{section-CQPQf6RU.js → section-D_qOfdxR.js} +1 -0
- package/dist/section.js +1 -1
- package/dist/{side-navigation-Cwi2FHOz.js → side-navigation-CtZuP87S.js} +1 -1
- package/dist/side-navigation.js +1 -1
- package/dist/{stat-card-CmpabaTc.js → stat-card-CL3Xe6pV.js} +4 -1
- package/dist/stat-card.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/app-shell.css +4 -2
- package/dist/styles/attachment.css +3 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/cascader.css +1 -1
- package/dist/styles/chart.css +3 -1
- package/dist/styles/color-picker.css +2 -2
- package/dist/styles/column-manager.css +2 -2
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +6 -6
- package/dist/styles/date-picker.css +2 -2
- package/dist/styles/date-range-picker.css +2 -2
- package/dist/styles/datetime-picker.css +2 -2
- package/dist/styles/datetime-range-picker.css +2 -2
- package/dist/styles/detail-panel.css +5 -3
- package/dist/styles/entity-picker.css +1 -1
- package/dist/styles/event-calendar.css +4 -2
- package/dist/styles/filter-bar.css +5 -5
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/import-export-center.css +8 -6
- package/dist/styles/index.css +17 -15
- package/dist/styles/loading-overlay.css +3 -1
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/page-header.css +3 -1
- package/dist/styles/popover.css +1 -1
- package/dist/styles/progress-indicator.css +3 -1
- package/dist/styles/saved-views.css +2 -2
- package/dist/styles/section.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-navigation.css +4 -2
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/switch.css +7 -1
- package/dist/styles/table.css +5 -5
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +1 -1
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/time-picker.css +1 -1
- package/dist/styles/time-range-picker.css +1 -1
- package/dist/styles/toast.css +3 -1
- package/dist/styles/top-navigation.css +4 -2
- package/dist/styles/upload.css +3 -1
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch-CcZAVLiW.js +154 -0
- package/dist/switch.js +1 -1
- package/dist/{table-MGb3iZY_.js → table-D4oX9Gvn.js} +46 -46
- package/dist/table.js +1 -1
- package/dist/{tag-BYzDYvM_.js → tag-DCMsVXN6.js} +31 -28
- package/dist/tag.js +1 -1
- package/dist/{time-picker-z4GSRuha.js → time-picker-Cu1iV039.js} +130 -128
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-ar40oPcf.js → time-range-picker-sdbaFJFN.js} +117 -115
- package/dist/time-range-picker.js +1 -1
- package/dist/{toast-Cg28GkqX.js → toast-aM_ga1mc.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{top-navigation-C73WDqLg.js → top-navigation-D3rpgBV2.js} +1 -1
- package/dist/top-navigation.js +1 -1
- package/dist/types/badge/badge.d.ts +1 -1
- package/dist/types/badge/badge.d.ts.map +1 -1
- package/dist/types/badge/badge.types.d.ts +6 -0
- package/dist/types/badge/badge.types.d.ts.map +1 -1
- package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
- package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
- package/dist/types/calendar/calendar-defaults.d.ts +1 -1
- package/dist/types/calendar/calendar-defaults.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +8 -0
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/chart/chart-help.d.ts +11 -0
- package/dist/types/chart/chart-help.d.ts.map +1 -0
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/chart/index.d.ts +1 -1
- package/dist/types/chart/index.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +3 -3
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +4 -3
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget-help.d.ts +3 -1
- package/dist/types/dashboard-grid/dashboard-widget-help.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +4 -0
- package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.d.ts +1 -1
- package/dist/types/data-grid/data-grid.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.types.d.ts +13 -0
- package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker-defaults.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker-panel.d.ts +2 -0
- package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.types.d.ts +9 -0
- package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
- package/dist/types/date-picker/use-date-picker.d.ts +6 -3
- package/dist/types/date-picker/use-date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-panel.d.ts +2 -0
- package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker-defaults.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.types.d.ts +9 -0
- package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
- package/dist/types/date-range-picker/use-date-range-picker.d.ts +1 -0
- package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker-panel.d.ts +2 -0
- package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.types.d.ts +9 -0
- package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-picker/use-datetime-picker.d.ts +2 -1
- package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +2 -0
- package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +9 -0
- package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +2 -1
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -1
- package/dist/types/picker-panel/picker-footer.d.ts +8 -2
- package/dist/types/picker-panel/picker-footer.d.ts.map +1 -1
- package/dist/types/picker-panel/use-media-query.d.ts +2 -2
- package/dist/types/picker-panel/use-media-query.d.ts.map +1 -1
- package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
- package/dist/types/popover/index.d.ts +1 -1
- package/dist/types/popover/index.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts +2 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/popover/popover.d.ts +4 -2
- package/dist/types/popover/popover.d.ts.map +1 -1
- package/dist/types/popover/popover.types.d.ts +17 -0
- package/dist/types/popover/popover.types.d.ts.map +1 -1
- package/dist/types/progress-indicator/loader.d.ts +1 -0
- package/dist/types/progress-indicator/loader.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/section/section.types.d.ts +4 -2
- package/dist/types/section/section.types.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/switch/switch-defaults.d.ts.map +1 -1
- package/dist/types/switch/switch.d.ts +2 -1
- package/dist/types/switch/switch.d.ts.map +1 -1
- package/dist/types/switch/switch.types.d.ts +9 -0
- package/dist/types/switch/switch.types.d.ts.map +1 -1
- package/dist/types/tag/tag-chip.d.ts +4 -1
- package/dist/types/tag/tag-chip.d.ts.map +1 -1
- package/dist/types/tag/tag.d.ts +1 -1
- package/dist/types/tag/tag.d.ts.map +1 -1
- package/dist/types/tag/tag.types.d.ts +6 -0
- package/dist/types/tag/tag.types.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker-panel.d.ts +3 -1
- package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-panel.d.ts +2 -0
- package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/{upload-DggJrkQ7.js → upload-CPl38p-S.js} +1 -1
- package/dist/upload.js +1 -1
- package/dist/use-date-picker-DWV7KWS7.js +137 -0
- package/dist/use-media-query-DJY5h_K5.js +15 -0
- package/dist/{use-picker-draft-Bw8VFaj0.js → use-picker-draft-BJlHcb6J.js} +128 -134
- package/dist/{wizard-BokOrtwq.js → wizard-4c0X7Bx_.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/chart-DwXqQZjQ.js +0 -1027
- package/dist/column-manager-BBGczWQe.js +0 -586
- package/dist/dashboard-grid-DAY_CjCW.js +0 -1191
- package/dist/picker-jump-BcTRIJs6.js +0 -70
- package/dist/popover-BfEn2wdZ.js +0 -500
- package/dist/switch-C2krbZHI.js +0 -147
- package/dist/use-date-picker-DL8tRXji.js +0 -63
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
+
import { t as r } from "./use-media-query-DJY5h_K5.js";
|
|
4
|
+
import { keyedProps as i, selectorKeyProps as a } from "@slotted/core/selector-key";
|
|
5
|
+
import { createFocusScope as o } from "@slotted/core/focus";
|
|
6
|
+
import { createControllable as s } from "@slotted/core/state";
|
|
7
|
+
import { Children as c, createContext as l, isValidElement as u, useCallback as d, useContext as f, useEffect as p, useId as m, useImperativeHandle as h, useLayoutEffect as g, useRef as _, useState as v } from "react";
|
|
8
|
+
import { Fragment as ee, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
+
import { createPresence as te } from "@slotted/core/presence";
|
|
10
|
+
import { popoverMessages as ne } from "@slotted/core/i18n";
|
|
11
|
+
import { createPortalRoot as re, setPortalContainer as x } from "@slotted/core/portal";
|
|
12
|
+
import { createDismissableLayer as ie } from "@slotted/core/dismissable-layer";
|
|
13
|
+
import { createPositioner as ae } from "@slotted/core/positioner";
|
|
14
|
+
import { createPortal as S } from "react-dom";
|
|
15
|
+
import { SHEET_QUERY as C, attachGripDismiss as w } from "@slotted/core/extent";
|
|
16
|
+
//#region src/popover/popover-defaults.tsx
|
|
17
|
+
var T = {
|
|
18
|
+
align: "center",
|
|
19
|
+
alignOffset: 0,
|
|
20
|
+
arrow: !0,
|
|
21
|
+
arrowPadding: 12,
|
|
22
|
+
autoFocus: !0,
|
|
23
|
+
closeOnEscape: !0,
|
|
24
|
+
closeOnOutsidePress: !0,
|
|
25
|
+
collisionPadding: 8,
|
|
26
|
+
flip: !0,
|
|
27
|
+
hideWhenDetached: !1,
|
|
28
|
+
mount: "active",
|
|
29
|
+
portal: !0,
|
|
30
|
+
shift: !0,
|
|
31
|
+
side: "bottom",
|
|
32
|
+
sideOffset: 0,
|
|
33
|
+
size: "md",
|
|
34
|
+
strategy: "absolute",
|
|
35
|
+
width: "auto"
|
|
36
|
+
}, E = l(T);
|
|
37
|
+
function D() {
|
|
38
|
+
return f(E);
|
|
39
|
+
}
|
|
40
|
+
function O({ children: e, container: t, ...n }) {
|
|
41
|
+
let r = {
|
|
42
|
+
...D(),
|
|
43
|
+
...k(n)
|
|
44
|
+
};
|
|
45
|
+
return p(() => {
|
|
46
|
+
if (t !== void 0) return x(t), () => x(null);
|
|
47
|
+
}, [t]), /* @__PURE__ */ y(E.Provider, {
|
|
48
|
+
value: r,
|
|
49
|
+
children: e
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function k(e) {
|
|
53
|
+
let t = Object.entries(e).filter(([, e]) => e !== void 0);
|
|
54
|
+
return Object.fromEntries(t);
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/popover/popover.tsx
|
|
58
|
+
var A = l(void 0), j = l({ current: void 0 });
|
|
59
|
+
function oe() {
|
|
60
|
+
return f(j);
|
|
61
|
+
}
|
|
62
|
+
function M() {
|
|
63
|
+
let e = f(A);
|
|
64
|
+
if (e === void 0) throw Error("Every Popover part has to be inside a Popover.");
|
|
65
|
+
return e;
|
|
66
|
+
}
|
|
67
|
+
function N({ align: t, alignOffset: n, arrow: i, arrowPadding: a, autoFocus: o, children: c, closeOnEscape: l, closeOnOutsidePress: u, collisionPadding: f, defaultOpen: p, disabled: g, finalFocus: ee, flip: b, hideWhenDetached: te, initialFocus: re, messages: x, mount: ie, onOpenChange: ae, open: S, portal: w, presentation: T = "popover", ref: E, shift: O, side: k, sideOffset: oe, size: M, strategy: N, width: P }) {
|
|
68
|
+
let F = D(), I = e(ne, x), L = m(), R = r(T === "auto" ? C : null), [z, B] = v(p ?? !1), [se, V] = v(null), [H, U] = v(null), [W, G] = v(null), [K, q] = v(null), [J, Y] = v(!1), [X, ce] = v(!1), Z = _(void 0), le = g === !0, Q = (S ?? z) && !le, ue = _(Q);
|
|
69
|
+
Q && (ue.current = !0);
|
|
70
|
+
let de = _({
|
|
71
|
+
current: Q,
|
|
72
|
+
onOpenChange: ae,
|
|
73
|
+
open: S
|
|
74
|
+
});
|
|
75
|
+
de.current = {
|
|
76
|
+
current: Q,
|
|
77
|
+
onOpenChange: ae,
|
|
78
|
+
open: S
|
|
79
|
+
};
|
|
80
|
+
let $ = d((e, t, n) => {
|
|
81
|
+
let r = de.current;
|
|
82
|
+
if (e === r.current) return;
|
|
83
|
+
let i = !1, a = s({
|
|
84
|
+
controlled: r.open,
|
|
85
|
+
initial: r.current,
|
|
86
|
+
onRequest: (e) => {
|
|
87
|
+
i = e.cancelled, r.onOpenChange?.(e.value, e);
|
|
88
|
+
}
|
|
89
|
+
}).request(e, t, n);
|
|
90
|
+
i || a && B(e);
|
|
91
|
+
}, []);
|
|
92
|
+
h(E, () => ({
|
|
93
|
+
close: () => $(!1, "programmatic"),
|
|
94
|
+
open: () => $(!0, "programmatic"),
|
|
95
|
+
reposition: () => Z.current?.()
|
|
96
|
+
}), [$]);
|
|
97
|
+
let fe = {
|
|
98
|
+
align: t ?? F.align,
|
|
99
|
+
alignOffset: n ?? F.alignOffset,
|
|
100
|
+
anchorNode: H,
|
|
101
|
+
arrowNode: W,
|
|
102
|
+
arrowPadding: a ?? F.arrowPadding,
|
|
103
|
+
autoFocus: o ?? F.autoFocus,
|
|
104
|
+
closeOnEscape: l ?? F.closeOnEscape,
|
|
105
|
+
closeOnOutsidePress: u ?? F.closeOnOutsidePress,
|
|
106
|
+
collisionPadding: f ?? F.collisionPadding,
|
|
107
|
+
contentId: `${L}panel`,
|
|
108
|
+
contentNode: K,
|
|
109
|
+
descriptionId: `${L}description`,
|
|
110
|
+
disabled: le,
|
|
111
|
+
finalFocus: ee,
|
|
112
|
+
flip: b ?? F.flip,
|
|
113
|
+
hasDescription: X,
|
|
114
|
+
hasTitle: J,
|
|
115
|
+
hideWhenDetached: te ?? F.hideWhenDetached,
|
|
116
|
+
initialFocus: re,
|
|
117
|
+
mount: ie ?? F.mount,
|
|
118
|
+
open: Q,
|
|
119
|
+
portal: w ?? F.portal,
|
|
120
|
+
seen: ue.current,
|
|
121
|
+
setAnchorNode: U,
|
|
122
|
+
setArrowNode: G,
|
|
123
|
+
setContentNode: q,
|
|
124
|
+
setHasDescription: ce,
|
|
125
|
+
setHasTitle: Y,
|
|
126
|
+
setTriggerNode: V,
|
|
127
|
+
sheet: R,
|
|
128
|
+
shift: O ?? F.shift,
|
|
129
|
+
showArrow: i ?? F.arrow,
|
|
130
|
+
side: k ?? F.side,
|
|
131
|
+
sideOffset: oe ?? F.sideOffset,
|
|
132
|
+
size: M ?? F.size,
|
|
133
|
+
strategy: N ?? F.strategy,
|
|
134
|
+
t: I,
|
|
135
|
+
titleId: `${L}title`,
|
|
136
|
+
toggle: $,
|
|
137
|
+
triggerNode: se,
|
|
138
|
+
width: P ?? F.width
|
|
139
|
+
};
|
|
140
|
+
return /* @__PURE__ */ y(A.Provider, {
|
|
141
|
+
value: fe,
|
|
142
|
+
children: /* @__PURE__ */ y(j.Provider, {
|
|
143
|
+
value: Z,
|
|
144
|
+
children: c
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/popover/popover-parts.tsx
|
|
150
|
+
function P(e, t) {
|
|
151
|
+
return (n) => {
|
|
152
|
+
e?.(n), n.defaultPrevented || t(n);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function F(e, ...t) {
|
|
156
|
+
for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
157
|
+
}
|
|
158
|
+
function I(e, t) {
|
|
159
|
+
return e === void 0 ? null : typeof e == "string" ? t?.querySelector(e) ?? null : e instanceof Element ? e : e.current ?? null;
|
|
160
|
+
}
|
|
161
|
+
function L(e, t, n, r) {
|
|
162
|
+
if (n === "center" || r === "anchor" && (t === "top" || t === "bottom")) return 0;
|
|
163
|
+
let i = Number.parseFloat(e.ownerDocument.defaultView?.getComputedStyle(e).paddingTop ?? "") || 0;
|
|
164
|
+
return n === "start" ? -i : i;
|
|
165
|
+
}
|
|
166
|
+
function R({ children: e, ref: t, render: n, ...r }) {
|
|
167
|
+
let i = M(), a = (e) => {
|
|
168
|
+
i.toggle(!i.open, e.detail === 0 ? "keyboard" : "pointer", e.nativeEvent);
|
|
169
|
+
}, o = {
|
|
170
|
+
...r,
|
|
171
|
+
children: e,
|
|
172
|
+
...i.contentNode === null ? {} : { "aria-controls": i.contentId },
|
|
173
|
+
"aria-expanded": i.open,
|
|
174
|
+
"aria-haspopup": "dialog",
|
|
175
|
+
...i.open ? { "data-open": "" } : {},
|
|
176
|
+
onClick: P(r.onClick, a)
|
|
177
|
+
}, s = d((e) => {
|
|
178
|
+
i.setTriggerNode(e), F(e, t);
|
|
179
|
+
}, [t, i.setTriggerNode]);
|
|
180
|
+
return n === void 0 ? /* @__PURE__ */ y("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
...o,
|
|
183
|
+
ref: s
|
|
184
|
+
}) : n({
|
|
185
|
+
...o,
|
|
186
|
+
ref: s
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function z({ children: e, ref: t, render: n, ...r }) {
|
|
190
|
+
let i = M(), a = d((e) => {
|
|
191
|
+
i.setAnchorNode(e), F(e, t);
|
|
192
|
+
}, [t, i.setAnchorNode]), o = {
|
|
193
|
+
...r,
|
|
194
|
+
children: e
|
|
195
|
+
};
|
|
196
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
197
|
+
...o,
|
|
198
|
+
ref: a
|
|
199
|
+
}) : n({
|
|
200
|
+
...o,
|
|
201
|
+
ref: a
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function B({ children: e, ref: t, render: n, ...r }) {
|
|
205
|
+
let a = M(), o = oe(), [s, c] = v(null), [l, u] = v(null), [f, m] = v("unmounted"), [h, ne] = v(!1), x = _(null), C = _(a);
|
|
206
|
+
C.current = a, p(() => {
|
|
207
|
+
let e = te({
|
|
208
|
+
present: C.current.open,
|
|
209
|
+
onStatusChange: m
|
|
210
|
+
});
|
|
211
|
+
return x.current = e, m(e.status), () => {
|
|
212
|
+
e.destroy(), x.current = null;
|
|
213
|
+
};
|
|
214
|
+
}, []), p(() => {
|
|
215
|
+
x.current?.sync(a.open);
|
|
216
|
+
}, [a.open]), p(() => {
|
|
217
|
+
x.current?.setNode(s);
|
|
218
|
+
}, [s]);
|
|
219
|
+
let w = a.mount === "eager" || a.mount === "lazy" && a.seen || a.open || f !== "unmounted";
|
|
220
|
+
p(() => {
|
|
221
|
+
let e = a.triggerNode;
|
|
222
|
+
if (e === null || h) return;
|
|
223
|
+
let t = () => ne(!0);
|
|
224
|
+
return e.addEventListener("focusin", t), e.addEventListener("pointerdown", t), () => {
|
|
225
|
+
e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
|
|
226
|
+
};
|
|
227
|
+
}, [a.triggerNode, h]);
|
|
228
|
+
let T = w || h;
|
|
229
|
+
g(() => {
|
|
230
|
+
if (!T) {
|
|
231
|
+
u(null);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
let e = re({
|
|
235
|
+
origin: a.anchorNode ?? a.triggerNode,
|
|
236
|
+
disabled: !a.portal
|
|
237
|
+
});
|
|
238
|
+
return u(e.container), () => e.release();
|
|
239
|
+
}, [
|
|
240
|
+
T,
|
|
241
|
+
a.anchorNode,
|
|
242
|
+
a.portal,
|
|
243
|
+
a.triggerNode
|
|
244
|
+
]);
|
|
245
|
+
let { align: E, alignOffset: D, arrowNode: O, arrowPadding: k, collisionPadding: A, flip: j, hideWhenDetached: N, sheet: P, shift: R, side: z, sideOffset: B, strategy: V, width: H } = a, U = a.anchorNode ?? a.triggerNode, W = _(null), G = _(0), K = _(!1), q = d((e, t) => {
|
|
246
|
+
e.update().then(() => {
|
|
247
|
+
if (W.current !== e || !C.current.open || (t.setAttribute("data-open", ""), K.current)) return;
|
|
248
|
+
K.current = !0;
|
|
249
|
+
let n = t.ownerDocument.defaultView;
|
|
250
|
+
n !== null && C.current.autoFocus && G.current === 0 && (G.current = n.requestAnimationFrame(() => {
|
|
251
|
+
G.current = 0;
|
|
252
|
+
let { contentNode: e, initialFocus: t, open: n } = C.current;
|
|
253
|
+
n && (I(t, e) ?? e)?.focus();
|
|
254
|
+
}));
|
|
255
|
+
});
|
|
256
|
+
}, []);
|
|
257
|
+
g(() => {
|
|
258
|
+
if (s === null || U === null || P) return;
|
|
259
|
+
let e = ae(U, s, {
|
|
260
|
+
align: E,
|
|
261
|
+
alignOffset: D + L(s, z, E, H),
|
|
262
|
+
boundaryPadding: A,
|
|
263
|
+
flip: j,
|
|
264
|
+
hideWhenDetached: N,
|
|
265
|
+
matchWidth: H === "anchor",
|
|
266
|
+
shift: R,
|
|
267
|
+
side: z,
|
|
268
|
+
sideOffset: B,
|
|
269
|
+
strategy: V,
|
|
270
|
+
...O ? {
|
|
271
|
+
arrow: O,
|
|
272
|
+
arrowPadding: k
|
|
273
|
+
} : {}
|
|
274
|
+
});
|
|
275
|
+
return o.current = () => void e.update(), W.current = e, C.current.open && q(e, s), () => {
|
|
276
|
+
o.current = void 0, e.destroy(), W.current = null, s.removeAttribute("data-open");
|
|
277
|
+
};
|
|
278
|
+
}, [
|
|
279
|
+
E,
|
|
280
|
+
D,
|
|
281
|
+
U,
|
|
282
|
+
O,
|
|
283
|
+
k,
|
|
284
|
+
A,
|
|
285
|
+
j,
|
|
286
|
+
N,
|
|
287
|
+
s,
|
|
288
|
+
o,
|
|
289
|
+
P,
|
|
290
|
+
R,
|
|
291
|
+
z,
|
|
292
|
+
B,
|
|
293
|
+
V,
|
|
294
|
+
H,
|
|
295
|
+
q
|
|
296
|
+
]), g(() => {
|
|
297
|
+
let e = W.current;
|
|
298
|
+
if (e !== null && s !== null) {
|
|
299
|
+
if (a.open) {
|
|
300
|
+
q(e, s);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
s.removeAttribute("data-open"), G.current !== 0 && (s.ownerDocument.defaultView?.cancelAnimationFrame(G.current), G.current = 0);
|
|
304
|
+
}
|
|
305
|
+
}, [
|
|
306
|
+
s,
|
|
307
|
+
q,
|
|
308
|
+
a.open
|
|
309
|
+
]), p(() => {
|
|
310
|
+
if (s === null || !a.open || P) return;
|
|
311
|
+
let e = [a.triggerNode, a.anchorNode].filter((e) => e !== null), t = ie(s, {
|
|
312
|
+
escape: a.closeOnEscape,
|
|
313
|
+
focusOutside: !1,
|
|
314
|
+
modal: !1,
|
|
315
|
+
outsidePress: a.closeOnOutsidePress,
|
|
316
|
+
scrollLock: !1,
|
|
317
|
+
...e.length > 0 ? { branches: e } : {},
|
|
318
|
+
onDismiss: (e) => {
|
|
319
|
+
C.current.toggle(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
return () => t.destroy();
|
|
323
|
+
}, [
|
|
324
|
+
s,
|
|
325
|
+
a.anchorNode,
|
|
326
|
+
a.closeOnEscape,
|
|
327
|
+
a.closeOnOutsidePress,
|
|
328
|
+
a.open,
|
|
329
|
+
a.triggerNode,
|
|
330
|
+
P
|
|
331
|
+
]), se(s), p(() => {
|
|
332
|
+
let { contentNode: e, finalFocus: t, open: n, triggerNode: r } = C.current;
|
|
333
|
+
if (!n && K.current) {
|
|
334
|
+
K.current = !1;
|
|
335
|
+
let n = s?.ownerDocument.activeElement ?? null;
|
|
336
|
+
if (s !== null && n !== null && !s.contains(n)) return;
|
|
337
|
+
(I(t, e) ?? r)?.focus();
|
|
338
|
+
}
|
|
339
|
+
}, [s, a.open]);
|
|
340
|
+
let J = () => {
|
|
341
|
+
let { toggle: e, triggerNode: t } = C.current;
|
|
342
|
+
e(!1, "keyboard"), t?.focus();
|
|
343
|
+
}, Y = d((e) => {
|
|
344
|
+
c(e), F(e, t);
|
|
345
|
+
}, [t]);
|
|
346
|
+
if (!w || a.portal && l === null) return null;
|
|
347
|
+
let X = /* @__PURE__ */ y("span", {
|
|
348
|
+
"aria-hidden": "true",
|
|
349
|
+
"data-part": "focus-guard",
|
|
350
|
+
"data-part-focus-guard": "",
|
|
351
|
+
onFocus: J,
|
|
352
|
+
tabIndex: 0
|
|
353
|
+
}), ce = i({
|
|
354
|
+
...r,
|
|
355
|
+
children: /* @__PURE__ */ b(ee, { children: [
|
|
356
|
+
P ? /* @__PURE__ */ y("div", {
|
|
357
|
+
"aria-hidden": "true",
|
|
358
|
+
"data-part": "backdrop",
|
|
359
|
+
"data-part-backdrop": ""
|
|
360
|
+
}) : X,
|
|
361
|
+
e,
|
|
362
|
+
P ? null : X
|
|
363
|
+
] }),
|
|
364
|
+
"data-align": E,
|
|
365
|
+
"data-part": "root",
|
|
366
|
+
"data-presentation": P ? "sheet" : "popover",
|
|
367
|
+
"data-size": a.size,
|
|
368
|
+
"data-ui": "popover",
|
|
369
|
+
"data-width": a.width
|
|
370
|
+
}), Z = n === void 0 ? /* @__PURE__ */ y("div", {
|
|
371
|
+
...ce,
|
|
372
|
+
ref: Y
|
|
373
|
+
}) : n({
|
|
374
|
+
...ce,
|
|
375
|
+
ref: Y
|
|
376
|
+
});
|
|
377
|
+
return l === null ? Z : S(Z, l);
|
|
378
|
+
}
|
|
379
|
+
function se(e) {
|
|
380
|
+
let t = M(), n = _(t);
|
|
381
|
+
n.current = t;
|
|
382
|
+
let { closeOnEscape: r, closeOnOutsidePress: i, contentNode: a, open: s, sheet: c } = t, l = c && s ? a : null;
|
|
383
|
+
g(() => {
|
|
384
|
+
if (e !== null && l !== null) return e.setAttribute("data-open", ""), () => e.removeAttribute("data-open");
|
|
385
|
+
}, [e, l]), p(() => {
|
|
386
|
+
if (e === null || l === null) return;
|
|
387
|
+
let { triggerNode: t } = n.current, a = ie(e, {
|
|
388
|
+
back: !0,
|
|
389
|
+
branches: t === null ? [] : [t],
|
|
390
|
+
content: l,
|
|
391
|
+
escape: r,
|
|
392
|
+
modal: !0,
|
|
393
|
+
onDismiss: ({ reason: e, source: t }) => {
|
|
394
|
+
let r = e === "escape" || e === "outsidePress" ? e : "dismiss";
|
|
395
|
+
n.current.toggle(!1, r, t);
|
|
396
|
+
},
|
|
397
|
+
outsidePress: i,
|
|
398
|
+
outsidePressEvent: "click"
|
|
399
|
+
}), s = o(l, {
|
|
400
|
+
initial: () => I(n.current.initialFocus, l) ?? l,
|
|
401
|
+
restore: () => I(n.current.finalFocus, l) ?? n.current.triggerNode
|
|
402
|
+
});
|
|
403
|
+
return s.enter(), () => {
|
|
404
|
+
a.destroy(), s.destroy();
|
|
405
|
+
};
|
|
406
|
+
}, [
|
|
407
|
+
r,
|
|
408
|
+
i,
|
|
409
|
+
e,
|
|
410
|
+
l
|
|
411
|
+
]), p(() => {
|
|
412
|
+
let e = l?.querySelector(":scope > [data-part=\"grip\"]");
|
|
413
|
+
if (l !== null && e != null) return w({
|
|
414
|
+
grip: e,
|
|
415
|
+
sheet: l,
|
|
416
|
+
onDismiss: (e) => n.current.toggle(!1, "pointer", e)
|
|
417
|
+
});
|
|
418
|
+
}, [l]);
|
|
419
|
+
}
|
|
420
|
+
function V({ children: e, ref: t, render: n, ...r }) {
|
|
421
|
+
let a = M(), o = d((e) => {
|
|
422
|
+
a.setContentNode(e), F(e, t);
|
|
423
|
+
}, [t, a.setContentNode]), { "aria-label": s, ...c } = r, l = a.sheet && !a.hasTitle && s !== void 0, u = i({
|
|
424
|
+
...c,
|
|
425
|
+
...l ? {} : { "aria-label": s },
|
|
426
|
+
children: a.sheet ? /* @__PURE__ */ b(ee, { children: [
|
|
427
|
+
/* @__PURE__ */ y("span", {
|
|
428
|
+
"aria-hidden": "true",
|
|
429
|
+
"data-part": "grip",
|
|
430
|
+
"data-part-grip": ""
|
|
431
|
+
}),
|
|
432
|
+
l ? /* @__PURE__ */ y(H, { label: s }) : null,
|
|
433
|
+
e
|
|
434
|
+
] }) : e,
|
|
435
|
+
...a.hasTitle || l ? { "aria-labelledby": a.titleId } : {},
|
|
436
|
+
...a.sheet ? { "aria-modal": !0 } : {},
|
|
437
|
+
...a.hasDescription ? { "aria-describedby": a.descriptionId } : {},
|
|
438
|
+
"data-part": "content",
|
|
439
|
+
id: a.contentId,
|
|
440
|
+
role: r.role ?? "dialog",
|
|
441
|
+
tabIndex: -1
|
|
442
|
+
});
|
|
443
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
444
|
+
...u,
|
|
445
|
+
ref: o
|
|
446
|
+
}) : n({
|
|
447
|
+
...u,
|
|
448
|
+
ref: o
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
function H({ label: e }) {
|
|
452
|
+
let t = M();
|
|
453
|
+
return /* @__PURE__ */ b("div", {
|
|
454
|
+
"data-part": "header",
|
|
455
|
+
"data-part-header": "",
|
|
456
|
+
children: [/* @__PURE__ */ y("div", {
|
|
457
|
+
"data-part": "title",
|
|
458
|
+
"data-part-title": "",
|
|
459
|
+
id: t.titleId,
|
|
460
|
+
children: e
|
|
461
|
+
}), /* @__PURE__ */ y(J, {})]
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function U({ children: e, ref: t, render: n, ...r }) {
|
|
465
|
+
let i = {
|
|
466
|
+
...r,
|
|
467
|
+
children: e,
|
|
468
|
+
"data-part": "header",
|
|
469
|
+
...a("part", "header")
|
|
470
|
+
};
|
|
471
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
472
|
+
...i,
|
|
473
|
+
ref: t
|
|
474
|
+
}) : n(i);
|
|
475
|
+
}
|
|
476
|
+
function W({ children: e, ref: t, render: n, ...r }) {
|
|
477
|
+
let a = M(), { setHasTitle: o } = a;
|
|
478
|
+
p(() => (o(!0), () => o(!1)), [o]);
|
|
479
|
+
let s = i({
|
|
480
|
+
...r,
|
|
481
|
+
children: e,
|
|
482
|
+
"data-part": "title",
|
|
483
|
+
id: a.titleId
|
|
484
|
+
});
|
|
485
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
486
|
+
...s,
|
|
487
|
+
ref: t
|
|
488
|
+
}) : n(s);
|
|
489
|
+
}
|
|
490
|
+
function G({ children: e, ref: t, render: n, ...r }) {
|
|
491
|
+
let a = M(), { setHasDescription: o } = a;
|
|
492
|
+
p(() => (o(!0), () => o(!1)), [o]);
|
|
493
|
+
let s = i({
|
|
494
|
+
...r,
|
|
495
|
+
children: e,
|
|
496
|
+
"data-part": "description",
|
|
497
|
+
id: a.descriptionId
|
|
498
|
+
});
|
|
499
|
+
return n === void 0 ? /* @__PURE__ */ y("p", {
|
|
500
|
+
...s,
|
|
501
|
+
ref: t
|
|
502
|
+
}) : n(s);
|
|
503
|
+
}
|
|
504
|
+
function K({ children: e, ref: t, render: n, ...r }) {
|
|
505
|
+
let i = {
|
|
506
|
+
...r,
|
|
507
|
+
children: e,
|
|
508
|
+
"data-part": "body",
|
|
509
|
+
...a("part", "body")
|
|
510
|
+
};
|
|
511
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
512
|
+
...i,
|
|
513
|
+
ref: t
|
|
514
|
+
}) : n(i);
|
|
515
|
+
}
|
|
516
|
+
function q({ children: e, ref: t, render: n, ...r }) {
|
|
517
|
+
let i = {
|
|
518
|
+
...r,
|
|
519
|
+
children: e,
|
|
520
|
+
"data-part": "footer",
|
|
521
|
+
...a("part", "footer")
|
|
522
|
+
};
|
|
523
|
+
return n === void 0 ? /* @__PURE__ */ y("div", {
|
|
524
|
+
...i,
|
|
525
|
+
ref: t
|
|
526
|
+
}) : n(i);
|
|
527
|
+
}
|
|
528
|
+
function J({ children: e, ref: r, render: a, ...o }) {
|
|
529
|
+
let s = M(), c = _(null), [l, u] = v(null);
|
|
530
|
+
g(() => {
|
|
531
|
+
c.current !== null && u((c.current.textContent ?? "").trim() !== "");
|
|
532
|
+
});
|
|
533
|
+
let f = l ?? Y(e), p = (e) => {
|
|
534
|
+
s.toggle(!1, "dismiss", e.nativeEvent);
|
|
535
|
+
}, m = d((e) => {
|
|
536
|
+
c.current = e, F(e, r);
|
|
537
|
+
}, [r]), h = i({
|
|
538
|
+
...o,
|
|
539
|
+
"aria-label": o["aria-label"] ?? (f ? void 0 : s.t("close")),
|
|
540
|
+
children: e ?? /* @__PURE__ */ y(n, {
|
|
541
|
+
size: "sm",
|
|
542
|
+
children: /* @__PURE__ */ y(t, { name: "x" })
|
|
543
|
+
}),
|
|
544
|
+
"data-part": "close",
|
|
545
|
+
onClick: P(o.onClick, p)
|
|
546
|
+
});
|
|
547
|
+
return a === void 0 ? /* @__PURE__ */ y("button", {
|
|
548
|
+
type: "button",
|
|
549
|
+
...h,
|
|
550
|
+
ref: m
|
|
551
|
+
}) : a({
|
|
552
|
+
...h,
|
|
553
|
+
ref: m
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
function Y(e) {
|
|
557
|
+
return c.toArray(e).some((e) => typeof e == "string" || typeof e == "number" ? String(e).trim() !== "" : u(e) && Y(e.props.children));
|
|
558
|
+
}
|
|
559
|
+
function X({ ref: e, render: t, ...n }) {
|
|
560
|
+
let r = M(), a = d((t) => {
|
|
561
|
+
r.setArrowNode(t), F(t, e);
|
|
562
|
+
}, [e, r.setArrowNode]);
|
|
563
|
+
if (!r.showArrow || r.sheet) return null;
|
|
564
|
+
let o = i({
|
|
565
|
+
...n,
|
|
566
|
+
"aria-hidden": !0,
|
|
567
|
+
"data-part": "arrow"
|
|
568
|
+
});
|
|
569
|
+
return t === void 0 ? /* @__PURE__ */ y("div", {
|
|
570
|
+
...o,
|
|
571
|
+
ref: a
|
|
572
|
+
}) : t(o);
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
export { V as a, U as c, R as d, N as f, D as g, O as h, J as i, B as l, T as m, X as n, G as o, M as p, K as r, q as s, z as t, W as u };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./popover-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./popover-B2t__iNO.js";
|
|
2
2
|
export { c as POPOVER_FALLBACK, r as Popover, m as PopoverAnchor, l as PopoverArrow, f as PopoverBody, o as PopoverClose, e as PopoverContent, a as PopoverDefaultsProvider, u as PopoverDescription, p as PopoverFooter, t as PopoverHeader, s as PopoverLayer, h as PopoverTitle, n as PopoverTrigger, d as usePopover, i as usePopoverDefaults };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, r, t as i } from "./progress-indicator-
|
|
1
|
+
import { a as e, n as t, o as n, r, t as i } from "./progress-indicator-DRr0Gj6w.js";
|
|
2
2
|
export { r as Loader, t as ProgressBar, i as ProgressCircle, e as ProgressIndicatorDefaultsProvider, n as useProgressIndicatorDefaults };
|
|
@@ -3,8 +3,8 @@ import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
|
3
3
|
import { _ as r, c as i, n as a, t as ee } from "./menu-parts-DgL617_H.js";
|
|
4
4
|
import { n as o } from "./icon-button-N8Madx6i.js";
|
|
5
5
|
import { o as s, t as c, u as l } from "./field-vOVzvq5t.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { a as u, d, f, l as te } from "./popover-B2t__iNO.js";
|
|
7
|
+
import { t as ne } from "./text-field-Cnjc7LB5.js";
|
|
8
8
|
import { withSelectorKey as p } from "@slotted/core/selector-key";
|
|
9
9
|
import { useCallback as m, useEffect as h, useId as re, useImperativeHandle as ie, useMemo as g, useRef as _, useState as v } from "react";
|
|
10
10
|
import { Fragment as ae, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -198,7 +198,7 @@ function ye({ builtIn: m, columns: g, current: C, defaultOpen: T, defaultState:
|
|
|
198
198
|
size: "sm",
|
|
199
199
|
children: [
|
|
200
200
|
/* @__PURE__ */ y(l, { children: M("name") }),
|
|
201
|
-
/* @__PURE__ */ y(
|
|
201
|
+
/* @__PURE__ */ y(ne, {
|
|
202
202
|
autoComplete: "off",
|
|
203
203
|
onValueChange: (e) => {
|
|
204
204
|
z(e), V(null);
|
|
@@ -319,7 +319,7 @@ function ye({ builtIn: m, columns: g, current: C, defaultOpen: T, defaultState:
|
|
|
319
319
|
role: j.role ?? "group",
|
|
320
320
|
...q ? { "data-modified": "" } : {},
|
|
321
321
|
...F ? { "data-open": "" } : {},
|
|
322
|
-
children: [/* @__PURE__ */ b(
|
|
322
|
+
children: [/* @__PURE__ */ b(f, {
|
|
323
323
|
initialFocus: "[aria-current='true']",
|
|
324
324
|
onOpenChange: (e, t) => {
|
|
325
325
|
if (!e && t.reason === "escape" && I !== null) {
|
|
@@ -329,7 +329,7 @@ function ye({ builtIn: m, columns: g, current: C, defaultOpen: T, defaultState:
|
|
|
329
329
|
Q(e, t.reason, t.source);
|
|
330
330
|
},
|
|
331
331
|
open: F,
|
|
332
|
-
children: [/* @__PURE__ */ y(
|
|
332
|
+
children: [/* @__PURE__ */ y(d, { render: ({ ref: e, ...r }) => /* @__PURE__ */ b("button", {
|
|
333
333
|
...p(r, "part", "trigger"),
|
|
334
334
|
ref: (t) => {
|
|
335
335
|
e?.(t), G.current = t;
|
|
@@ -351,7 +351,7 @@ function ye({ builtIn: m, columns: g, current: C, defaultOpen: T, defaultState:
|
|
|
351
351
|
children: /* @__PURE__ */ y(t, { name: "chevron-down" })
|
|
352
352
|
})
|
|
353
353
|
]
|
|
354
|
-
}) }), /* @__PURE__ */ y(
|
|
354
|
+
}) }), /* @__PURE__ */ y(te, { children: /* @__PURE__ */ y(u, {
|
|
355
355
|
"aria-label": j["aria-label"] ?? M("label"),
|
|
356
356
|
children: /* @__PURE__ */ b("div", {
|
|
357
357
|
"data-part": "panel",
|
package/dist/saved-views.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./saved-views-
|
|
1
|
+
import { n as e, r as t, t as n } from "./saved-views-zM-DxT1F.js";
|
|
2
2
|
export { e as SavedViews, t as newSavedViewId, n as usePersistedSavedViews };
|
|
@@ -69,6 +69,7 @@ function g({ children: t, className: r, divider: i, ground: u, heading: f, id: m
|
|
|
69
69
|
...A ? { "data-divider": "" } : {},
|
|
70
70
|
"data-ground": j,
|
|
71
71
|
"data-heading": M,
|
|
72
|
+
...f === "title" ? { "data-heading-stated": "" } : {},
|
|
72
73
|
"data-level": String(F),
|
|
73
74
|
"data-part": "root",
|
|
74
75
|
"data-size": N,
|
package/dist/section.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./section-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./section-D_qOfdxR.js";
|
|
2
2
|
export { p as HEADER_SIZE_PROPERTY, n as Section, f as SectionActions, s as SectionBleed, u as SectionBody, l as SectionDefaultsProvider, i as SectionDescription, e as SectionEyebrow, c as SectionHeader, d as SectionHeading, t as SectionTags, a as SectionTitle, r as useSection, o as useSectionDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { i as r } from "./app-shell-
|
|
3
|
+
import { i as r } from "./app-shell-DyPHYe4K.js";
|
|
4
4
|
import { a as i, i as a, n as o, r as s } from "./tooltip-DrFiRlH8.js";
|
|
5
5
|
import { i as c } from "./skeleton-DeEOmm1y.js";
|
|
6
6
|
import { definedProps as l, keyedProps as u, withSelectorKey as d } from "@slotted/core/selector-key";
|
package/dist/side-navigation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-CtZuP87S.js";
|
|
2
2
|
export { r as SIDE_NAVIGATION_FALLBACK, t as SIDE_NAVIGATION_ROW_SELECTOR, y as SideNavigation, _ as SideNavigationActions, f as SideNavigationCount, b as SideNavigationDefaultsProvider, h as SideNavigationDescription, l as SideNavigationDivider, n as SideNavigationEnd, p as SideNavigationGroup, g as SideNavigationIcon, i as SideNavigationItem, u as SideNavigationLabel, v as SideNavigationLink, a as SideNavigationList, o as SideNavigationSection, m as SideNavigationSectionLabel, d as SideNavigationSkeleton, c as SideNavigationTrigger, x as useSideNavigation, e as useSideNavigationDefaults, s as useSideNavigationItem };
|
|
@@ -165,7 +165,10 @@ function P({ children: e, render: t, ...n }) {
|
|
|
165
165
|
let { labelId: r, loading: a } = T(), o = c({
|
|
166
166
|
id: r,
|
|
167
167
|
...n,
|
|
168
|
-
children:
|
|
168
|
+
children: /* @__PURE__ */ v("span", {
|
|
169
|
+
...c({ "data-part": "label-text" }),
|
|
170
|
+
children: a && e === void 0 ? /* @__PURE__ */ v(i, { inlineSize: "8em" }) : e
|
|
171
|
+
}),
|
|
169
172
|
"data-part": "label"
|
|
170
173
|
});
|
|
171
174
|
return t === void 0 ? /* @__PURE__ */ v("span", { ...o }) : t(o);
|
package/dist/stat-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./stat-card-
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./stat-card-CL3Xe6pV.js";
|
|
2
2
|
export { l as StatCard, p as StatCardAction, s as StatCardComparison, o as StatCardDefaultsProvider, f as StatCardDelta, t as StatCardFigure, d as StatCardHeader, m as StatCardLabel, n as StatCardMessage, c as StatCardPeriod, g as StatCardStatus, r as StatCardTrend, i as StatCardUnit, h as StatCardValue, e as toneOf, _ as trendOf, u as useCountTransition, v as useStatCard, a as useStatCardDefaults };
|