@duro-app/ui 5.0.0 → 5.2.0
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/Table-C70zdSkM.js +1419 -0
- package/dist/Table-C70zdSkM.js.map +1 -0
- package/dist/components/Button/Button.d.ts +11 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/styles.css.d.ts +0 -64
- package/dist/components/Combobox/styles.css.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +11 -3
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +4 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css.d.ts +1 -0
- package/dist/components/Dialog/styles.css.d.ts.map +1 -1
- package/dist/components/DragDrop/styles.css.d.ts +10 -2
- package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts +11 -2
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.stories.d.ts +2 -0
- package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/components/Grid/styles.css.d.ts +2 -2
- package/dist/components/Grid/styles.css.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +6 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.meta.d.ts.map +1 -1
- package/dist/components/Input/Input.stories.d.ts +1 -0
- package/dist/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/components/Input/styles.css.d.ts +18 -0
- package/dist/components/Input/styles.css.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +6 -1
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.stories.d.ts +1 -0
- package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.d.ts +75 -0
- package/dist/components/Listbox/Listbox.d.ts.map +1 -0
- package/dist/components/Listbox/Listbox.meta.d.ts +3 -0
- package/dist/components/Listbox/Listbox.meta.d.ts.map +1 -0
- package/dist/components/Listbox/Listbox.stories.d.ts +7 -0
- package/dist/components/Listbox/Listbox.stories.d.ts.map +1 -0
- package/dist/components/Listbox/styles.css.d.ts +75 -0
- package/dist/components/Listbox/styles.css.d.ts.map +1 -0
- package/dist/components/Menu/Menu.d.ts +18 -5
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.meta.d.ts.map +1 -1
- package/dist/components/Menu/Menu.stories.d.ts +7 -0
- package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/Menu/MenuContext.d.ts +3 -0
- package/dist/components/Menu/MenuContext.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.d.ts +24 -15
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/useMenuRoot.d.ts +14 -1
- package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
- package/dist/components/StatusIcon/StatusIcon.stories.d.ts.map +1 -1
- package/dist/components/Table/Table.stories.d.ts +1 -0
- package/dist/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.d.ts +24 -0
- package/dist/components/TextLink/TextLink.d.ts.map +1 -0
- package/dist/components/TextLink/TextLink.meta.d.ts +3 -0
- package/dist/components/TextLink/TextLink.meta.d.ts.map +1 -0
- package/dist/components/TextLink/TextLink.stories.d.ts +9 -0
- package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -0
- package/dist/components/TextLink/styles.css.d.ts +28 -0
- package/dist/components/TextLink/styles.css.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts +3 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -0
- package/dist/docs/FlexGrow.stories.d.ts +7 -0
- package/dist/docs/FlexGrow.stories.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2986 -2821
- package/dist/index.js.map +1 -1
- package/dist/index.native.d.ts +1 -0
- package/dist/index.native.d.ts.map +1 -1
- package/dist/shared/length.d.ts +14 -9
- package/dist/shared/length.d.ts.map +1 -1
- package/dist/shared/length.typecheck.d.ts +3 -0
- package/dist/shared/length.typecheck.d.ts.map +1 -1
- package/dist/styles/visually-hidden.css.d.ts +6 -0
- package/dist/styles/visually-hidden.css.d.ts.map +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/Button/Button.stories.tsx +41 -0
- package/src/components/Button/Button.tsx +16 -1
- package/src/components/Card/Card.stories.tsx +2 -1
- package/src/components/Combobox/Combobox.tsx +25 -79
- package/src/components/Combobox/styles.css.ts +0 -74
- package/src/components/Dialog/Dialog.meta.ts +1 -1
- package/src/components/Dialog/Dialog.stories.tsx +109 -3
- package/src/components/Dialog/Dialog.tsx +63 -9
- package/src/components/Dialog/styles.css.ts +2 -0
- package/src/components/DragDrop/styles.css.ts +16 -3
- package/src/components/Grid/Grid.meta.ts +1 -1
- package/src/components/Grid/Grid.stories.tsx +53 -1
- package/src/components/Grid/Grid.tsx +23 -11
- package/src/components/Grid/styles.css.ts +3 -2
- package/src/components/Input/Input.meta.ts +10 -3
- package/src/components/Input/Input.stories.tsx +52 -2
- package/src/components/Input/Input.tsx +12 -3
- package/src/components/Input/styles.css.ts +29 -0
- package/src/components/InputGroup/InputGroup.stories.tsx +20 -0
- package/src/components/InputGroup/InputGroup.tsx +20 -2
- package/src/components/Listbox/Listbox.meta.ts +52 -0
- package/src/components/Listbox/Listbox.stories.tsx +170 -0
- package/src/components/Listbox/Listbox.tsx +278 -0
- package/src/components/Listbox/styles.css.ts +89 -0
- package/src/components/Menu/Menu.meta.ts +2 -1
- package/src/components/Menu/Menu.stories.tsx +289 -8
- package/src/components/Menu/Menu.tsx +100 -29
- package/src/components/Menu/MenuContext.ts +3 -0
- package/src/components/Menu/styles.css.ts +31 -15
- package/src/components/Menu/useMenuRoot.ts +105 -48
- package/src/components/StatusIcon/StatusIcon.stories.tsx +2 -2
- package/src/components/Table/Table.stories.tsx +39 -0
- package/src/components/TextLink/TextLink.meta.ts +33 -0
- package/src/components/TextLink/TextLink.stories.tsx +63 -0
- package/src/components/TextLink/TextLink.tsx +46 -0
- package/src/components/TextLink/styles.css.ts +58 -0
- package/src/components/ThemeProvider/ThemeProvider.stories.tsx +50 -0
- package/src/components/VisuallyHidden/VisuallyHidden.meta.ts +19 -0
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +30 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +22 -0
- package/src/docs/FlexGrow.stories.tsx +83 -0
- package/src/index.native.ts +1 -0
- package/src/index.ts +5 -0
- package/src/shared/length.ts +29 -10
- package/src/shared/length.typecheck.tsx +9 -0
- package/src/styles/visually-hidden.css.ts +8 -0
- package/dist/Table-BKN_d-mp.js +0 -1192
- package/dist/Table-BKN_d-mp.js.map +0 -1
|
@@ -0,0 +1,1419 @@
|
|
|
1
|
+
import { jsx as $, jsxs as U, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { c as R, m as W, d as S } from "./compiler-runtime-B2IcI8_O.js";
|
|
3
|
+
import { useState as N, useContext as A, createContext as F, useRef as L, useLayoutEffect as ee, useId as Y, useCallback as K, useEffect as D, Children as J, isValidElement as we } from "react";
|
|
4
|
+
import { createPortal as Me } from "react-dom";
|
|
5
|
+
const $e = {
|
|
6
|
+
xs: 4,
|
|
7
|
+
sm: 8,
|
|
8
|
+
ms: 12,
|
|
9
|
+
md: 16,
|
|
10
|
+
lg: 24,
|
|
11
|
+
xl: 32,
|
|
12
|
+
xxl: 48,
|
|
13
|
+
xxxl: 64
|
|
14
|
+
}, on = {
|
|
15
|
+
instant: 0,
|
|
16
|
+
minimal: 1,
|
|
17
|
+
quick: 120,
|
|
18
|
+
fast: 150,
|
|
19
|
+
brisk: 160,
|
|
20
|
+
base: 200,
|
|
21
|
+
slow: 280
|
|
22
|
+
}, Te = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "readoutW", "sliderW", "paletteMinW", "deviceBarW"], _ = {
|
|
23
|
+
touchTarget: 44,
|
|
24
|
+
iconSm: 16,
|
|
25
|
+
iconMd: 18,
|
|
26
|
+
iconLg: 24,
|
|
27
|
+
iconXl: 36,
|
|
28
|
+
iconXxl: 48
|
|
29
|
+
}, nn = {
|
|
30
|
+
sm: _.iconSm,
|
|
31
|
+
md: _.iconMd,
|
|
32
|
+
lg: _.iconLg,
|
|
33
|
+
xl: _.iconXl,
|
|
34
|
+
xxl: _.iconXxl
|
|
35
|
+
}, We = {
|
|
36
|
+
xjvd03b: "xjcnmia xjvd03b",
|
|
37
|
+
$$css: !0
|
|
38
|
+
}, Se = {
|
|
39
|
+
x13v825q: "x1jk1o70 x13v825q",
|
|
40
|
+
$$css: !0
|
|
41
|
+
}, Ce = {
|
|
42
|
+
xjvd03b: "x1vaiyu xjvd03b",
|
|
43
|
+
$$css: !0
|
|
44
|
+
}, je = {
|
|
45
|
+
x13v825q: "xc8o4hb x13v825q",
|
|
46
|
+
$$css: !0
|
|
47
|
+
}, ze = {
|
|
48
|
+
light: [We, Se],
|
|
49
|
+
"high-contrast": [Ce, je]
|
|
50
|
+
}, le = {
|
|
51
|
+
root: {
|
|
52
|
+
"display-k1xSpc": "display-xjp7ctv",
|
|
53
|
+
"color-kMwMTN": "color-x95150z",
|
|
54
|
+
$$css: "ThemeProvider/ThemeProvider.tsx:20"
|
|
55
|
+
},
|
|
56
|
+
portalMount: {
|
|
57
|
+
"position-kVAEAm": "position-xixxii4",
|
|
58
|
+
"top-k87sOh": "top-x13vifvy",
|
|
59
|
+
"left-kbCHJM": "left-xu96u03",
|
|
60
|
+
"right-kCIrl2": "right-x3m8u43",
|
|
61
|
+
"bottom-krVfgx": "bottom-x1ey2m1c",
|
|
62
|
+
"pointerEvents-kfzvcC": "pointerEvents-x47corl",
|
|
63
|
+
"zIndex-kY2c9j": "zIndex-xp6lfbs",
|
|
64
|
+
$$css: "ThemeProvider/ThemeProvider.tsx:28"
|
|
65
|
+
}
|
|
66
|
+
}, ue = F(null);
|
|
67
|
+
function Re() {
|
|
68
|
+
return A(ue);
|
|
69
|
+
}
|
|
70
|
+
function rn(t) {
|
|
71
|
+
const e = R.c(11), {
|
|
72
|
+
theme: o,
|
|
73
|
+
children: n
|
|
74
|
+
} = t, d = o === void 0 ? "dark" : o, a = ze[d], l = a?.[0], i = a?.[1];
|
|
75
|
+
let r;
|
|
76
|
+
e[0] !== l || e[1] !== i ? (r = [l, i, le.root], e[0] = l, e[1] = i, e[2] = r) : r = e[2];
|
|
77
|
+
const s = r, [p, c] = N(null);
|
|
78
|
+
let u;
|
|
79
|
+
e[3] !== n || e[4] !== p ? (u = /* @__PURE__ */ $(ue.Provider, { value: p, children: n }), e[3] = n, e[4] = p, e[5] = u) : u = e[5];
|
|
80
|
+
let x;
|
|
81
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ $("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", ref: c, "data-portal-mount": !0, ...W(S.div, le.portalMount) }), e[6] = x) : x = e[6];
|
|
82
|
+
let g;
|
|
83
|
+
return e[7] !== u || e[8] !== d || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:56", "data-theme": d, ...W(S.div, s), children: [
|
|
84
|
+
u,
|
|
85
|
+
x
|
|
86
|
+
] }), e[7] = u, e[8] = d, e[9] = s, e[10] = g) : g = e[10], g;
|
|
87
|
+
}
|
|
88
|
+
const He = typeof process < "u" && process.env?.NODE_ENV === "production", ae = /* @__PURE__ */ new Set();
|
|
89
|
+
function pe(t, e, o) {
|
|
90
|
+
const n = `${t}:${e}`;
|
|
91
|
+
He || ae.has(n) || (ae.add(n), console.warn(`[duro-app/ui ${t}] ${o}`));
|
|
92
|
+
}
|
|
93
|
+
const xe = {
|
|
94
|
+
touchTarget: "var(--touchTarget-x1u5badx)",
|
|
95
|
+
controlSm: "var(--controlSm-x6ymn93)",
|
|
96
|
+
controlMd: "var(--controlMd-xkvaeme)",
|
|
97
|
+
controlLg: "var(--controlLg-xf3drh3)",
|
|
98
|
+
indicator: "var(--indicator-xce456j)",
|
|
99
|
+
indicatorDot: "var(--indicatorDot-xqflvbi)",
|
|
100
|
+
checkMarkW: "var(--checkMarkW-xvyirw7)",
|
|
101
|
+
checkMarkH: "var(--checkMarkH-xz3lx6u)",
|
|
102
|
+
switchTrackW: "var(--switchTrackW-xcah3tt)",
|
|
103
|
+
switchTrackH: "var(--switchTrackH-x1h3icne)",
|
|
104
|
+
switchThumb: "var(--switchThumb-x6qupft)",
|
|
105
|
+
iconButton: "var(--iconButton-x16lr7a8)",
|
|
106
|
+
iconButtonSm: "var(--iconButtonSm-xtjgrhy)",
|
|
107
|
+
spinnerSm: "var(--spinnerSm-xoj3xel)",
|
|
108
|
+
spinnerMd: "var(--spinnerMd-x11a4rba)",
|
|
109
|
+
spinnerLg: "var(--spinnerLg-x1lgp9p9)",
|
|
110
|
+
glyphXs: "var(--glyphXs-x7xktls)",
|
|
111
|
+
glyphSm: "var(--glyphSm-x17geiot)",
|
|
112
|
+
glyphMd: "var(--glyphMd-x1hz0jso)",
|
|
113
|
+
iconSm: "var(--iconSm-x1k4bwrj)",
|
|
114
|
+
iconMd: "var(--iconMd-x1oru5hg)",
|
|
115
|
+
iconLg: "var(--iconLg-x1lsumnr)",
|
|
116
|
+
iconXl: "var(--iconXl-x7w40q9)",
|
|
117
|
+
iconXxl: "var(--iconXxl-xij55jf)",
|
|
118
|
+
navMarkerW: "var(--navMarkerW-x1swbkx4)",
|
|
119
|
+
navMarkerH: "var(--navMarkerH-xlc6r7a)",
|
|
120
|
+
divider: "var(--divider-x34oj7m)",
|
|
121
|
+
tabIndicator: "var(--tabIndicator-xeswvk3)",
|
|
122
|
+
edgeFade: "var(--edgeFade-x1a8srg4)",
|
|
123
|
+
scrollbar: "var(--scrollbar-xppi9bb)",
|
|
124
|
+
swatchW: "var(--swatchW-x14v7170)",
|
|
125
|
+
swatchH: "var(--swatchH-x5k3223)",
|
|
126
|
+
labelMinW: "var(--labelMinW-x1tnvsg3)",
|
|
127
|
+
popupMinW: "var(--popupMinW-xzyp04)",
|
|
128
|
+
listMaxH: "var(--listMaxH-x1g3bmh3)",
|
|
129
|
+
listMaxHSm: "var(--listMaxHSm-xhny4oa)",
|
|
130
|
+
dialogSm: "var(--dialogSm-x16fibl1)",
|
|
131
|
+
dialogMd: "var(--dialogMd-x1yjoj5l)",
|
|
132
|
+
dialogLg: "var(--dialogLg-xsd9wl3)",
|
|
133
|
+
panelSm: "var(--panelSm-x1ng1dcv)",
|
|
134
|
+
panelMd: "var(--panelMd-x11x23mn)",
|
|
135
|
+
panelLg: "var(--panelLg-x19cpfjm)",
|
|
136
|
+
toastMaxW: "var(--toastMaxW-x1po6n0z)",
|
|
137
|
+
gridColSm: "var(--gridColSm-xzwpy92)",
|
|
138
|
+
gridColMd: "var(--gridColMd-x1cjqdt9)",
|
|
139
|
+
pageSm: "var(--pageSm-x5j4ghi)",
|
|
140
|
+
pageMd: "var(--pageMd-xloo57l)",
|
|
141
|
+
pageLg: "var(--pageLg-x393fnm)",
|
|
142
|
+
sidebarW: "var(--sidebarW-x16fh60r)",
|
|
143
|
+
pageXs: "var(--pageXs-xkx7b2k)",
|
|
144
|
+
pageXl: "var(--pageXl-xe1y5wy)",
|
|
145
|
+
asideW: "var(--asideW-x1sefzvd)",
|
|
146
|
+
gridColXs: "var(--gridColXs-x1uralsc)",
|
|
147
|
+
fieldMinWSm: "var(--fieldMinWSm-x17qqf6g)",
|
|
148
|
+
fieldMinW: "var(--fieldMinW-x3410dk)",
|
|
149
|
+
popoverWSm: "var(--popoverWSm-x17g62mi)",
|
|
150
|
+
popoverW: "var(--popoverW-xf1f07)",
|
|
151
|
+
popupMaxW: "var(--popupMaxW-x16p43ce)",
|
|
152
|
+
meterH: "var(--meterH-x5xauib)",
|
|
153
|
+
skeletonChipW: "var(--skeletonChipW-xmw24hn)",
|
|
154
|
+
dropZoneMinH: "var(--dropZoneMinH-x9asgie)",
|
|
155
|
+
canvasMinH: "var(--canvasMinH-xpv99dk)",
|
|
156
|
+
editorMinH: "var(--editorMinH-x7umtuv)",
|
|
157
|
+
toolbarH: "var(--toolbarH-x16tj5lc)",
|
|
158
|
+
embedW: "var(--embedW-x1jprk4i)",
|
|
159
|
+
colorPickerW: "var(--colorPickerW-xafjozf)",
|
|
160
|
+
colorAreaH: "var(--colorAreaH-xn4he4)",
|
|
161
|
+
colorTrackH: "var(--colorTrackH-x1ixtmdy)",
|
|
162
|
+
colorSwatch: "var(--colorSwatch-xr73m8p)",
|
|
163
|
+
colorPreviewH: "var(--colorPreviewH-x1by70nu)",
|
|
164
|
+
handle: "var(--handle-xt9m584)",
|
|
165
|
+
chip: "var(--chip-xofdvjg)",
|
|
166
|
+
placeholderMinH: "var(--placeholderMinH-xy0p02w)",
|
|
167
|
+
previewMaxH: "var(--previewMaxH-x1phh3ob)",
|
|
168
|
+
barH: "var(--barH-x1oc8exn)",
|
|
169
|
+
readoutW: "var(--readoutW-xi5rn1i)",
|
|
170
|
+
sliderW: "var(--sliderW-xvcfp7i)",
|
|
171
|
+
paletteMinW: "var(--paletteMinW-x1514e6j)",
|
|
172
|
+
deviceBarW: "var(--deviceBarW-xqnx4o4)",
|
|
173
|
+
__varGroupHash__: "x1w57kmz"
|
|
174
|
+
}, ge = new Set(Te);
|
|
175
|
+
function he(t) {
|
|
176
|
+
return typeof t == "string" && ge.has(t) ? xe[t] : t;
|
|
177
|
+
}
|
|
178
|
+
function ce(t) {
|
|
179
|
+
const e = t;
|
|
180
|
+
if (typeof e != "string") return e;
|
|
181
|
+
const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
|
|
182
|
+
if (o) {
|
|
183
|
+
const n = o[2].split(",").map((d) => String(he(d.trim())));
|
|
184
|
+
return `${o[1]}(${n.join(", ")})`;
|
|
185
|
+
}
|
|
186
|
+
return ge.has(e) ? xe[e] : e;
|
|
187
|
+
}
|
|
188
|
+
const B = {
|
|
189
|
+
root: {
|
|
190
|
+
"position-kVAEAm": "position-x1n2onr6",
|
|
191
|
+
"display-k1xSpc": "display-x3nfvp2",
|
|
192
|
+
$$css: "Menu/styles.css.ts:11"
|
|
193
|
+
},
|
|
194
|
+
trigger: {
|
|
195
|
+
"display-k1xSpc": "display-x3nfvp2",
|
|
196
|
+
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
197
|
+
"gap-kOIVth": "gap-x175yhtj",
|
|
198
|
+
"paddingTop-kLKAdn": "paddingTop-xc2wovk",
|
|
199
|
+
"paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
|
|
200
|
+
"paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
|
|
201
|
+
"paddingRight-kpe85a": "paddingRight-x7huf2v",
|
|
202
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
203
|
+
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
204
|
+
"color-kMwMTN": "color-x95150z",
|
|
205
|
+
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
|
|
206
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
207
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
208
|
+
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
209
|
+
"borderRadius-kaIpWk": "borderRadius-x17rit4p",
|
|
210
|
+
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
211
|
+
"transitionProperty-k1ekBW": "transitionProperty-xts7igz",
|
|
212
|
+
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
213
|
+
$$css: "Menu/styles.css.ts:15"
|
|
214
|
+
},
|
|
215
|
+
triggerGhost: {
|
|
216
|
+
"justifyContent-kjj79g": "justifyContent-xl56j7k",
|
|
217
|
+
"minWidth-k7Eaqz": "minWidth-x1v8ggfx",
|
|
218
|
+
"minHeight-kAzted": "minHeight-x1304zm3",
|
|
219
|
+
"paddingTop-kLKAdn": "paddingTop-x1i738hq",
|
|
220
|
+
"paddingBottom-kGO01o": "paddingBottom-x6sojwk",
|
|
221
|
+
"paddingLeft-kE3dHu": "paddingLeft-xzmizx3",
|
|
222
|
+
"paddingRight-kpe85a": "paddingRight-x7ulw7g",
|
|
223
|
+
"borderColor-kVAM5u": "borderColor-x9r1u3d",
|
|
224
|
+
$$css: "Menu/styles.css.ts:39"
|
|
225
|
+
},
|
|
226
|
+
popup: {
|
|
227
|
+
"position-kVAEAm": "position-xixxii4",
|
|
228
|
+
"top-k87sOh": "top-x13vifvy",
|
|
229
|
+
"left-kbCHJM": "left-xu96u03",
|
|
230
|
+
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
231
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
232
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
233
|
+
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
234
|
+
"borderRadius-kaIpWk": "borderRadius-x17rit4p",
|
|
235
|
+
"boxShadow-kGVxlE": "boxShadow-x1e78jka",
|
|
236
|
+
"paddingTop-kLKAdn": "paddingTop-x1i738hq",
|
|
237
|
+
"paddingBottom-kGO01o": "paddingBottom-x6sojwk",
|
|
238
|
+
"minWidth-k7Eaqz": "minWidth-x9i2ahm",
|
|
239
|
+
"maxHeight-kskxy": "maxHeight-x2usv7r",
|
|
240
|
+
"overflowY-kORKVm": "overflowY-x1odjw0f",
|
|
241
|
+
"zIndex-kY2c9j": "zIndex-x51lqrf",
|
|
242
|
+
"pointerEvents-kfzvcC": "pointerEvents-x67bb7w",
|
|
243
|
+
"outlineStyle-k3XXqK": "outlineStyle-x1t137rt",
|
|
244
|
+
$$css: "Menu/styles.css.ts:49"
|
|
245
|
+
},
|
|
246
|
+
popupPosition: (t, e) => [{
|
|
247
|
+
"top-k87sOh": t != null ? "top-xjbys53" : t,
|
|
248
|
+
"left-kbCHJM": e != null ? "left-xgq9j65" : e,
|
|
249
|
+
$$css: "Menu/styles.css.ts:72"
|
|
250
|
+
}, {
|
|
251
|
+
"--x-top": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(t),
|
|
252
|
+
"--x-left": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(e)
|
|
253
|
+
}],
|
|
254
|
+
item: {
|
|
255
|
+
"display-k1xSpc": "display-x78zum5",
|
|
256
|
+
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
257
|
+
"paddingTop-kLKAdn": "paddingTop-xc2wovk",
|
|
258
|
+
"paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
|
|
259
|
+
"paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
|
|
260
|
+
"paddingRight-kpe85a": "paddingRight-x7huf2v",
|
|
261
|
+
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
262
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
263
|
+
"color-kMwMTN": "color-x95150z",
|
|
264
|
+
"borderRadius-kaIpWk": "borderRadius-x17rit4p",
|
|
265
|
+
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
266
|
+
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
|
|
267
|
+
"transitionProperty-k1ekBW": "transitionProperty-x15406qy",
|
|
268
|
+
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
269
|
+
$$css: "Menu/styles.css.ts:76"
|
|
270
|
+
},
|
|
271
|
+
itemHighlighted: {
|
|
272
|
+
"backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
|
|
273
|
+
"outlineStyle-k3XXqK": "outlineStyle-xaatb59",
|
|
274
|
+
"outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
|
|
275
|
+
"outlineColor-kjBf7l": "outlineColor-x1uczgqu",
|
|
276
|
+
"outlineOffset-kInvED": "outlineOffset-x186wpgv",
|
|
277
|
+
$$css: "Menu/styles.css.ts:94"
|
|
278
|
+
},
|
|
279
|
+
separator: {
|
|
280
|
+
"height-kZKoxP": "height-xqtp20y",
|
|
281
|
+
"marginTop-keoZOQ": "marginTop-xuerg7n",
|
|
282
|
+
"marginBottom-k1K539": "marginBottom-xnccn3x",
|
|
283
|
+
"borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
|
|
284
|
+
"borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
|
|
285
|
+
"borderTopColor-kLZC3w": "borderTopColor-xvuocu",
|
|
286
|
+
$$css: "Menu/styles.css.ts:101"
|
|
287
|
+
},
|
|
288
|
+
linkItem: {
|
|
289
|
+
"textDecoration-kybGjl": "textDecoration-x1hl2dhg",
|
|
290
|
+
"color-kMwMTN": "color-x95150z color-xtolcfe",
|
|
291
|
+
$$css: "Menu/styles.css.ts:109"
|
|
292
|
+
}
|
|
293
|
+
}, fe = F(null);
|
|
294
|
+
function Z() {
|
|
295
|
+
const t = A(fe);
|
|
296
|
+
if (!t)
|
|
297
|
+
throw new Error("Menu compound components must be used within Menu.Root");
|
|
298
|
+
return t;
|
|
299
|
+
}
|
|
300
|
+
function Ie(t, e) {
|
|
301
|
+
return t ? !e.some((o) => o != null && o.contains(t)) : !0;
|
|
302
|
+
}
|
|
303
|
+
function Le({
|
|
304
|
+
open: t,
|
|
305
|
+
defaultOpen: e = !1,
|
|
306
|
+
onOpenChange: o
|
|
307
|
+
}) {
|
|
308
|
+
const [n, d] = N(e), a = t !== void 0, l = a ? t : n, [i, r] = N(null), s = L(i);
|
|
309
|
+
ee(() => {
|
|
310
|
+
s.current = i;
|
|
311
|
+
}, [i]);
|
|
312
|
+
const p = Y(), c = Y(), u = L(null), x = L(null), g = L(null), h = L(/* @__PURE__ */ new Map()), b = L([]), y = L(l);
|
|
313
|
+
y.current = l;
|
|
314
|
+
const k = L(o);
|
|
315
|
+
k.current = o;
|
|
316
|
+
const w = K((T) => {
|
|
317
|
+
T !== y.current && (a || d(T), k.current?.(T));
|
|
318
|
+
}, [a]), C = K(() => {
|
|
319
|
+
y.current && (w(!1), r(null));
|
|
320
|
+
}, [w]), z = K(() => {
|
|
321
|
+
y.current && (C(), x.current?.focus());
|
|
322
|
+
}, [C]), q = K(() => {
|
|
323
|
+
y.current ? z() : w(!0);
|
|
324
|
+
}, [z, w]), I = L(!1);
|
|
325
|
+
D(() => {
|
|
326
|
+
if (l && !I.current) {
|
|
327
|
+
g.current?.focus({
|
|
328
|
+
preventScroll: !0
|
|
329
|
+
});
|
|
330
|
+
const T = b.current[0];
|
|
331
|
+
T && r(T);
|
|
332
|
+
} else !l && I.current && r(null);
|
|
333
|
+
I.current = l;
|
|
334
|
+
}, [l]), D(() => {
|
|
335
|
+
if (!i) return;
|
|
336
|
+
h.current.get(i)?.scrollIntoView?.({
|
|
337
|
+
block: "nearest"
|
|
338
|
+
});
|
|
339
|
+
}, [i]);
|
|
340
|
+
const E = K((T, O) => {
|
|
341
|
+
h.current.set(T, O);
|
|
342
|
+
const j = h.current, H = [...j.keys()];
|
|
343
|
+
return H.sort((P, V) => {
|
|
344
|
+
const ie = j.get(P), se = j.get(V);
|
|
345
|
+
return !ie || !se ? 0 : ie.compareDocumentPosition(se) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
346
|
+
}), b.current = H, () => {
|
|
347
|
+
h.current.delete(T), b.current = b.current.filter((P) => P !== T);
|
|
348
|
+
};
|
|
349
|
+
}, []);
|
|
350
|
+
return D(() => {
|
|
351
|
+
const T = g.current;
|
|
352
|
+
if (!T || !l) return;
|
|
353
|
+
function O(j) {
|
|
354
|
+
if (j.key === "Escape") {
|
|
355
|
+
j.preventDefault(), j.stopPropagation(), z();
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
if (j.key === "Tab") {
|
|
359
|
+
z();
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
const H = b.current;
|
|
363
|
+
if (H.length !== 0)
|
|
364
|
+
switch (j.key) {
|
|
365
|
+
case "ArrowDown": {
|
|
366
|
+
j.preventDefault(), r((P) => {
|
|
367
|
+
const V = P ? H.indexOf(P) : -1;
|
|
368
|
+
return H[(V + 1) % H.length];
|
|
369
|
+
});
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
case "ArrowUp": {
|
|
373
|
+
j.preventDefault(), r((P) => {
|
|
374
|
+
const V = P ? H.indexOf(P) : 0;
|
|
375
|
+
return H[(V - 1 + H.length) % H.length];
|
|
376
|
+
});
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
case "Home": {
|
|
380
|
+
j.preventDefault(), r(H[0]);
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
case "End": {
|
|
384
|
+
j.preventDefault(), r(H[H.length - 1]);
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
case "Enter":
|
|
388
|
+
case " ": {
|
|
389
|
+
j.preventDefault();
|
|
390
|
+
const P = s.current;
|
|
391
|
+
P && h.current.get(P)?.click();
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return T.addEventListener("keydown", O), () => T.removeEventListener("keydown", O);
|
|
397
|
+
}, [l, z]), D(() => {
|
|
398
|
+
if (!l) return;
|
|
399
|
+
function T(O) {
|
|
400
|
+
Ie(O.target, [g.current, x.current]) && C();
|
|
401
|
+
}
|
|
402
|
+
return document.addEventListener("pointerdown", T, !0), () => document.removeEventListener("pointerdown", T, !0);
|
|
403
|
+
}, [l, C]), {
|
|
404
|
+
ctx: {
|
|
405
|
+
open: l,
|
|
406
|
+
toggle: q,
|
|
407
|
+
close: z,
|
|
408
|
+
menuId: p,
|
|
409
|
+
triggerId: c,
|
|
410
|
+
highlightedId: i,
|
|
411
|
+
setHighlightedId: r,
|
|
412
|
+
registerItem: E,
|
|
413
|
+
triggerRef: x,
|
|
414
|
+
popupRef: g
|
|
415
|
+
},
|
|
416
|
+
rootRef: u
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
function Pe({
|
|
420
|
+
anchor: t,
|
|
421
|
+
popup: e,
|
|
422
|
+
viewport: o,
|
|
423
|
+
side: n,
|
|
424
|
+
align: d,
|
|
425
|
+
offset: a
|
|
426
|
+
}) {
|
|
427
|
+
const l = t.top + t.height + a, i = t.top - a - e.height, r = l + e.height <= o.height, s = i >= 0;
|
|
428
|
+
let p = n;
|
|
429
|
+
n === "bottom" && !r && s ? p = "top" : n === "top" && !s && r && (p = "bottom");
|
|
430
|
+
const c = p === "bottom" ? l : i;
|
|
431
|
+
let u = t.left;
|
|
432
|
+
d === "center" ? u = t.left + (t.width - e.width) / 2 : d === "end" && (u = t.left + t.width - e.width);
|
|
433
|
+
const x = Math.max(0, o.width - e.width);
|
|
434
|
+
return u = Math.min(Math.max(0, u), x), {
|
|
435
|
+
top: c,
|
|
436
|
+
left: u,
|
|
437
|
+
side: p
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
const qe = F(null);
|
|
441
|
+
function Ee(t, e) {
|
|
442
|
+
const o = R.c(5), {
|
|
443
|
+
active: n
|
|
444
|
+
} = e, d = A(qe);
|
|
445
|
+
let a, l;
|
|
446
|
+
o[0] !== n || o[1] !== d || o[2] !== t ? (a = () => {
|
|
447
|
+
const i = t.current;
|
|
448
|
+
if (!(!d || !n || !i))
|
|
449
|
+
return d.register(i);
|
|
450
|
+
}, l = [d, n, t], o[0] = n, o[1] = d, o[2] = t, o[3] = a, o[4] = l) : (a = o[3], l = o[4]), ee(a, l);
|
|
451
|
+
}
|
|
452
|
+
function Oe(t) {
|
|
453
|
+
const e = R.c(10), {
|
|
454
|
+
children: o,
|
|
455
|
+
open: n,
|
|
456
|
+
defaultOpen: d,
|
|
457
|
+
onOpenChange: a
|
|
458
|
+
} = t;
|
|
459
|
+
let l;
|
|
460
|
+
e[0] !== d || e[1] !== a || e[2] !== n ? (l = {
|
|
461
|
+
open: n,
|
|
462
|
+
defaultOpen: d,
|
|
463
|
+
onOpenChange: a
|
|
464
|
+
}, e[0] = d, e[1] = a, e[2] = n, e[3] = l) : l = e[3];
|
|
465
|
+
const {
|
|
466
|
+
ctx: i,
|
|
467
|
+
rootRef: r
|
|
468
|
+
} = Le(l);
|
|
469
|
+
let s;
|
|
470
|
+
e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:38", ref: r, ...W(S.div, B.root), children: o }), e[4] = o, e[5] = r, e[6] = s) : s = e[6];
|
|
471
|
+
let p;
|
|
472
|
+
return e[7] !== i || e[8] !== s ? (p = /* @__PURE__ */ $(fe.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = p) : p = e[9], p;
|
|
473
|
+
}
|
|
474
|
+
const Be = 'button, a[href], input, select, textarea, [role="button"]';
|
|
475
|
+
function De(t) {
|
|
476
|
+
const e = R.c(17), {
|
|
477
|
+
children: o,
|
|
478
|
+
"aria-label": n,
|
|
479
|
+
variant: d,
|
|
480
|
+
ref: a
|
|
481
|
+
} = t, l = d === void 0 ? "default" : d, {
|
|
482
|
+
open: i,
|
|
483
|
+
toggle: r,
|
|
484
|
+
menuId: s,
|
|
485
|
+
triggerId: p,
|
|
486
|
+
triggerRef: c
|
|
487
|
+
} = Z();
|
|
488
|
+
let u;
|
|
489
|
+
e[0] !== a || e[1] !== c ? (u = (C) => {
|
|
490
|
+
c.current = C, typeof a == "function" ? a(C) : a && (a.current = C);
|
|
491
|
+
}, e[0] = a, e[1] = c, e[2] = u) : u = e[2];
|
|
492
|
+
const x = u;
|
|
493
|
+
let g, h;
|
|
494
|
+
e[3] !== c ? (g = () => {
|
|
495
|
+
c.current?.querySelector(Be) && pe("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
|
|
496
|
+
}, h = [c], e[3] = c, e[4] = g, e[5] = h) : (g = e[4], h = e[5]), D(g, h);
|
|
497
|
+
const b = i ? s : void 0, y = l === "ghost" && B.triggerGhost;
|
|
498
|
+
let k;
|
|
499
|
+
e[6] !== y ? (k = [B.trigger, y], e[6] = y, e[7] = k) : k = e[7];
|
|
500
|
+
let w;
|
|
501
|
+
return e[8] !== n || e[9] !== o || e[10] !== i || e[11] !== x || e[12] !== b || e[13] !== k || e[14] !== r || e[15] !== p ? (w = /* @__PURE__ */ $("button", { "data-element-src": "Menu/Menu.tsx:86", ref: x, id: p, type: "button", onClick: r, "aria-label": n, "aria-expanded": i, "aria-haspopup": "menu", "aria-controls": b, ...W(S.button, k), children: o }), e[8] = n, e[9] = o, e[10] = i, e[11] = x, e[12] = b, e[13] = k, e[14] = r, e[15] = p, e[16] = w) : w = e[16], w;
|
|
502
|
+
}
|
|
503
|
+
function Ae(t) {
|
|
504
|
+
const e = R.c(24), {
|
|
505
|
+
children: o,
|
|
506
|
+
align: n
|
|
507
|
+
} = t, d = n === void 0 ? "start" : n, {
|
|
508
|
+
open: a,
|
|
509
|
+
menuId: l,
|
|
510
|
+
triggerId: i,
|
|
511
|
+
highlightedId: r,
|
|
512
|
+
triggerRef: s,
|
|
513
|
+
popupRef: p
|
|
514
|
+
} = Z();
|
|
515
|
+
let c;
|
|
516
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
517
|
+
top: 0,
|
|
518
|
+
left: 0
|
|
519
|
+
}, e[0] = c) : c = e[0];
|
|
520
|
+
const [u, x] = N(c), g = Re();
|
|
521
|
+
let h;
|
|
522
|
+
e[1] !== a ? (h = {
|
|
523
|
+
active: a
|
|
524
|
+
}, e[1] = a, e[2] = h) : h = e[2], Ee(p, h);
|
|
525
|
+
let b, y;
|
|
526
|
+
if (e[3] !== d || e[4] !== a || e[5] !== p || e[6] !== s ? (b = () => {
|
|
527
|
+
if (!a)
|
|
528
|
+
return;
|
|
529
|
+
const E = () => {
|
|
530
|
+
const G = p.current, T = s.current?.getBoundingClientRect();
|
|
531
|
+
if (!G || !T)
|
|
532
|
+
return;
|
|
533
|
+
const O = Pe({
|
|
534
|
+
anchor: {
|
|
535
|
+
top: T.top,
|
|
536
|
+
left: T.left,
|
|
537
|
+
width: T.width,
|
|
538
|
+
height: T.height
|
|
539
|
+
},
|
|
540
|
+
popup: {
|
|
541
|
+
width: G.offsetWidth,
|
|
542
|
+
height: G.offsetHeight
|
|
543
|
+
},
|
|
544
|
+
viewport: {
|
|
545
|
+
width: window.innerWidth,
|
|
546
|
+
height: window.innerHeight
|
|
547
|
+
},
|
|
548
|
+
side: "bottom",
|
|
549
|
+
align: d,
|
|
550
|
+
offset: $e.xs
|
|
551
|
+
});
|
|
552
|
+
x((j) => j.top === O.top && j.left === O.left ? j : {
|
|
553
|
+
top: O.top,
|
|
554
|
+
left: O.left
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
return E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
|
|
558
|
+
window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
|
|
559
|
+
};
|
|
560
|
+
}, y = [a, d, p, s], e[3] = d, e[4] = a, e[5] = p, e[6] = s, e[7] = b, e[8] = y) : (b = e[7], y = e[8]), ee(b, y), !a || typeof document > "u")
|
|
561
|
+
return null;
|
|
562
|
+
const k = r ?? void 0;
|
|
563
|
+
let w;
|
|
564
|
+
e[9] !== u.left || e[10] !== u.top ? (w = B.popupPosition(u.top, u.left), e[9] = u.left, e[10] = u.top, e[11] = w) : w = e[11];
|
|
565
|
+
let C;
|
|
566
|
+
e[12] !== w ? (C = [B.popup, w], e[12] = w, e[13] = C) : C = e[13];
|
|
567
|
+
let z;
|
|
568
|
+
e[14] !== o || e[15] !== l || e[16] !== p || e[17] !== k || e[18] !== C || e[19] !== i ? (z = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:148", ref: p, id: l, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(S.div, C), children: o }), e[14] = o, e[15] = l, e[16] = p, e[17] = k, e[18] = C, e[19] = i, e[20] = z) : z = e[20];
|
|
569
|
+
const q = g ?? document.body;
|
|
570
|
+
let I;
|
|
571
|
+
return e[21] !== q || e[22] !== z ? (I = Me(z, q), e[21] = q, e[22] = z, e[23] = I) : I = e[23], I;
|
|
572
|
+
}
|
|
573
|
+
function Fe(t) {
|
|
574
|
+
const e = R.c(18), {
|
|
575
|
+
onClick: o,
|
|
576
|
+
children: n
|
|
577
|
+
} = t, {
|
|
578
|
+
close: d,
|
|
579
|
+
highlightedId: a,
|
|
580
|
+
setHighlightedId: l,
|
|
581
|
+
registerItem: i
|
|
582
|
+
} = Z(), r = Y(), s = L(null), p = a === r;
|
|
583
|
+
let c, u;
|
|
584
|
+
e[0] !== r || e[1] !== i ? (c = () => {
|
|
585
|
+
const w = s.current;
|
|
586
|
+
if (w)
|
|
587
|
+
return i(r, w);
|
|
588
|
+
}, u = [r, i], e[0] = r, e[1] = i, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), D(c, u);
|
|
589
|
+
let x;
|
|
590
|
+
e[4] !== d || e[5] !== o ? (x = () => {
|
|
591
|
+
o?.(), d();
|
|
592
|
+
}, e[4] = d, e[5] = o, e[6] = x) : x = e[6];
|
|
593
|
+
const g = x;
|
|
594
|
+
let h;
|
|
595
|
+
e[7] !== r || e[8] !== l ? (h = () => l(r), e[7] = r, e[8] = l, e[9] = h) : h = e[9];
|
|
596
|
+
const b = p && B.itemHighlighted;
|
|
597
|
+
let y;
|
|
598
|
+
e[10] !== b ? (y = [B.item, b], e[10] = b, e[11] = y) : y = e[11];
|
|
599
|
+
let k;
|
|
600
|
+
return e[12] !== n || e[13] !== g || e[14] !== r || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:187", ref: s, id: r, role: "menuitem", onClick: g, onPointerEnter: h, ...W(S.div, y), children: n }), e[12] = n, e[13] = g, e[14] = r, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
|
|
601
|
+
}
|
|
602
|
+
function Ge(t) {
|
|
603
|
+
const e = R.c(18), {
|
|
604
|
+
href: o,
|
|
605
|
+
children: n
|
|
606
|
+
} = t, {
|
|
607
|
+
close: d,
|
|
608
|
+
highlightedId: a,
|
|
609
|
+
setHighlightedId: l,
|
|
610
|
+
registerItem: i
|
|
611
|
+
} = Z(), r = Y(), s = L(null), p = a === r;
|
|
612
|
+
let c, u;
|
|
613
|
+
e[0] !== r || e[1] !== i ? (c = () => {
|
|
614
|
+
const k = s.current;
|
|
615
|
+
if (k)
|
|
616
|
+
return i(r, k);
|
|
617
|
+
}, u = [r, i], e[0] = r, e[1] = i, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), D(c, u);
|
|
618
|
+
let x;
|
|
619
|
+
e[4] !== d ? (x = () => d(), e[4] = d, e[5] = x) : x = e[5];
|
|
620
|
+
let g;
|
|
621
|
+
e[6] !== r || e[7] !== l ? (g = () => l(r), e[6] = r, e[7] = l, e[8] = g) : g = e[8];
|
|
622
|
+
const h = p && B.itemHighlighted;
|
|
623
|
+
let b;
|
|
624
|
+
e[9] !== h ? (b = [B.item, B.linkItem, h], e[9] = h, e[10] = b) : b = e[10];
|
|
625
|
+
let y;
|
|
626
|
+
return e[11] !== n || e[12] !== o || e[13] !== r || e[14] !== x || e[15] !== g || e[16] !== b ? (y = /* @__PURE__ */ $("a", { "data-element-src": "Menu/Menu.tsx:219", ref: s, id: r, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(S.a, b), children: n }), e[11] = n, e[12] = o, e[13] = r, e[14] = x, e[15] = g, e[16] = b, e[17] = y) : y = e[17], y;
|
|
627
|
+
}
|
|
628
|
+
function Xe() {
|
|
629
|
+
const t = R.c(1);
|
|
630
|
+
let e;
|
|
631
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ $("div", { "data-element-src": "Menu/Menu.tsx:238", role: "separator", "aria-orientation": "horizontal", ...W(S.div, B.separator) }), t[0] = e) : e = t[0], e;
|
|
632
|
+
}
|
|
633
|
+
const sn = {
|
|
634
|
+
Root: Oe,
|
|
635
|
+
Trigger: De,
|
|
636
|
+
Popup: Ae,
|
|
637
|
+
Item: Fe,
|
|
638
|
+
LinkItem: Ge,
|
|
639
|
+
Separator: Xe
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* @license react-strict-dom
|
|
643
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
644
|
+
*
|
|
645
|
+
* This source code is licensed under the MIT license found in the
|
|
646
|
+
* LICENSE file in the root directory of this source tree.
|
|
647
|
+
*/
|
|
648
|
+
const de = {};
|
|
649
|
+
function Ve(t) {
|
|
650
|
+
process.env.NODE_ENV !== "test" && de[t] || (de[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
|
|
651
|
+
}
|
|
652
|
+
const Ke = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
|
|
653
|
+
function _e(t) {
|
|
654
|
+
return Ke.has(t) || t.indexOf("data-") > -1;
|
|
655
|
+
}
|
|
656
|
+
var te = {};
|
|
657
|
+
Object.defineProperty(te, "__esModule", {
|
|
658
|
+
value: !0
|
|
659
|
+
});
|
|
660
|
+
var me = te.styleq = void 0, Ne = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
|
|
661
|
+
function be(t) {
|
|
662
|
+
var e, o, n;
|
|
663
|
+
return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, n = t.transform), function() {
|
|
664
|
+
for (var a = [], l = "", i = null, r = "", s = e ? null : Ne, p = new Array(arguments.length), c = 0; c < arguments.length; c++)
|
|
665
|
+
p[c] = arguments[c];
|
|
666
|
+
for (; p.length > 0; ) {
|
|
667
|
+
var u = p.pop();
|
|
668
|
+
if (!(u == null || u === !1)) {
|
|
669
|
+
if (Array.isArray(u)) {
|
|
670
|
+
for (var x = 0; x < u.length; x++)
|
|
671
|
+
p.push(u[x]);
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
var g = n != null ? n(u) : u;
|
|
675
|
+
if (g.$$css != null) {
|
|
676
|
+
var h = "";
|
|
677
|
+
if (s != null && s.has(g)) {
|
|
678
|
+
var b = s.get(g);
|
|
679
|
+
b != null && (h = b[0], r = b[2], a.push.apply(a, b[1]), s = b[3]);
|
|
680
|
+
} else {
|
|
681
|
+
var y = [];
|
|
682
|
+
for (var k in g) {
|
|
683
|
+
var w = g[k];
|
|
684
|
+
if (k === Ye) {
|
|
685
|
+
var C = g[k];
|
|
686
|
+
C !== !0 && (r = r ? C + "; " + r : C);
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
typeof w == "string" || w === null ? a.includes(k) || (a.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
|
|
690
|
+
}
|
|
691
|
+
if (s != null) {
|
|
692
|
+
var z = /* @__PURE__ */ new WeakMap();
|
|
693
|
+
s.set(g, [h, y, r, z]), s = z;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
h && (l = l ? h + " " + l : h);
|
|
697
|
+
} else if (o)
|
|
698
|
+
i == null && (i = {}), i = Object.assign({}, g, i);
|
|
699
|
+
else {
|
|
700
|
+
var q = null;
|
|
701
|
+
for (var I in g) {
|
|
702
|
+
var E = g[I];
|
|
703
|
+
E !== void 0 && (a.includes(I) || (E != null && (i == null && (i = {}), q == null && (q = {}), q[I] = E), a.push(I), s = null));
|
|
704
|
+
}
|
|
705
|
+
q != null && (i = Object.assign(q, i));
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
var G = [l, i, r];
|
|
710
|
+
return G;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
var Ue = me = te.styleq = be();
|
|
714
|
+
Ue.factory = be;
|
|
715
|
+
const Je = me.factory({
|
|
716
|
+
disableMix: !0
|
|
717
|
+
});
|
|
718
|
+
function Ze(...t) {
|
|
719
|
+
const [e, o, n] = Je(t), d = {};
|
|
720
|
+
if (e != null && e !== "" && (d.className = e), o != null && (d.style = o), n != null && n !== "") {
|
|
721
|
+
const a = n.split(";"), l = {};
|
|
722
|
+
for (const i of a) {
|
|
723
|
+
const r = i.trim(), [s, p] = r.split(":");
|
|
724
|
+
p != null && (l[s] = l[s] != null ? `${l[s]},${p}` : p);
|
|
725
|
+
}
|
|
726
|
+
d["data-style-src"] = Object.keys(l).map((i) => `${i}:${l[i]}`).join("; ");
|
|
727
|
+
}
|
|
728
|
+
return d;
|
|
729
|
+
}
|
|
730
|
+
function Qe(t) {
|
|
731
|
+
Object.keys(t).forEach((e) => {
|
|
732
|
+
_e(e) || (Ve(`invalid prop "${e}"`), delete t[e]);
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function f(t, e) {
|
|
736
|
+
const o = {
|
|
737
|
+
$$css: !0,
|
|
738
|
+
"debug::name": `html-${t}`
|
|
739
|
+
};
|
|
740
|
+
function n({
|
|
741
|
+
ref: d,
|
|
742
|
+
...a
|
|
743
|
+
}) {
|
|
744
|
+
const {
|
|
745
|
+
for: l,
|
|
746
|
+
style: i,
|
|
747
|
+
...r
|
|
748
|
+
} = a, s = r;
|
|
749
|
+
Qe(s), l != null && (s.htmlFor = l), a.role != null && (s.role = a.role === "none" ? "presentation" : a.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
|
|
750
|
+
const p = Ze([o, e, i]);
|
|
751
|
+
return $(t, {
|
|
752
|
+
...s,
|
|
753
|
+
...p,
|
|
754
|
+
ref: d
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
return n.displayName = `html.${t}`, n;
|
|
758
|
+
}
|
|
759
|
+
const v = {
|
|
760
|
+
block: {
|
|
761
|
+
"margin-kogj98": "margin-x1ghz6dp",
|
|
762
|
+
"padding-kmVPX3": "padding-x1717udv",
|
|
763
|
+
$$css: ".pnpm:web/index.js:226"
|
|
764
|
+
},
|
|
765
|
+
inline: {
|
|
766
|
+
"margin-kogj98": "margin-x1ghz6dp",
|
|
767
|
+
"padding-kmVPX3": "padding-x1717udv",
|
|
768
|
+
"textDecoration-kybGjl": "textDecoration-x1hl2dhg",
|
|
769
|
+
"textAlign-k9WMMc": "textAlign-x16tdsg8",
|
|
770
|
+
"wordWrap-kD5eJx": "wordWrap-x1vvkbs",
|
|
771
|
+
$$css: ".pnpm:web/index.js:230"
|
|
772
|
+
},
|
|
773
|
+
inlineblock: {
|
|
774
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
775
|
+
"margin-kogj98": "margin-x1ghz6dp",
|
|
776
|
+
"padding-kmVPX3": "padding-x1717udv",
|
|
777
|
+
$$css: ".pnpm:web/index.js:237"
|
|
778
|
+
},
|
|
779
|
+
button: {
|
|
780
|
+
"borderWidth-kMzoRj": "borderWidth-xmkeg23",
|
|
781
|
+
$$css: ".pnpm:web/index.js:242"
|
|
782
|
+
},
|
|
783
|
+
codePre: {
|
|
784
|
+
"fontFamily-kMv6JI": "fontFamily-x1lxnp44",
|
|
785
|
+
"fontSize-kGuDYH": "fontSize-xrv4cvt",
|
|
786
|
+
"overflow-kVQacm": "overflow-xysyzu8",
|
|
787
|
+
$$css: ".pnpm:web/index.js:245"
|
|
788
|
+
},
|
|
789
|
+
heading: {
|
|
790
|
+
"fontSize-kGuDYH": "fontSize-xngnso2",
|
|
791
|
+
"wordWrap-kD5eJx": "wordWrap-x1vvkbs",
|
|
792
|
+
$$css: ".pnpm:web/index.js:250"
|
|
793
|
+
},
|
|
794
|
+
hr: {
|
|
795
|
+
"backgroundColor-kWkggS": "backgroundColor-x42x0ya",
|
|
796
|
+
"borderStyle-ksu8eU": "borderStyle-xng3xce",
|
|
797
|
+
"borderWidth-kMzoRj": "borderWidth-xc342km",
|
|
798
|
+
"boxSizing-kB7OPa": "boxSizing-x9f619",
|
|
799
|
+
"height-kZKoxP": "height-xjm9jq1",
|
|
800
|
+
$$css: ".pnpm:web/index.js:254"
|
|
801
|
+
},
|
|
802
|
+
img: {
|
|
803
|
+
"aspectRatio-kOBAk4": "aspectRatio-xuw900x",
|
|
804
|
+
"height-kZKoxP": "height-xt7dq6l",
|
|
805
|
+
"maxWidth-ks0D6T": "maxWidth-x193iq5w",
|
|
806
|
+
$$css: ".pnpm:web/index.js:261"
|
|
807
|
+
},
|
|
808
|
+
input: {
|
|
809
|
+
"borderWidth-kMzoRj": "borderWidth-xmkeg23",
|
|
810
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
811
|
+
$$css: ".pnpm:web/index.js:266"
|
|
812
|
+
},
|
|
813
|
+
list: {
|
|
814
|
+
"listStyle-kB88ic": "listStyle-xe8uvvx",
|
|
815
|
+
$$css: ".pnpm:web/index.js:270"
|
|
816
|
+
},
|
|
817
|
+
strong: {
|
|
818
|
+
"fontWeight-k63SB2": "fontWeight-x117nqv4",
|
|
819
|
+
$$css: ".pnpm:web/index.js:273"
|
|
820
|
+
},
|
|
821
|
+
textarea: {
|
|
822
|
+
"borderWidth-kMzoRj": "borderWidth-xmkeg23",
|
|
823
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
824
|
+
"resize-kHenm0": "resize-x288g5",
|
|
825
|
+
$$css: ".pnpm:web/index.js:276"
|
|
826
|
+
}
|
|
827
|
+
}, et = v.inline, tt = v.block, ot = v.block, nt = v.inline, rt = v.inline, it = v.inline, st = v.block, lt = null, at = [v.inlineblock, v.button], ct = [v.inline, v.codePre], dt = null, ut = v.block, pt = v.inline, xt = v.block, gt = v.block, ht = v.block, X = [v.block, v.heading], ft = v.block, mt = [v.block, v.hr], bt = v.inline, kt = v.img, vt = [v.inlineblock, v.input], yt = null, wt = null, Mt = v.inline, $t = v.block, Tt = v.block, Wt = v.inline, St = v.block, Ct = [v.list, v.block], jt = null, zt = null, Rt = v.block, Ht = [v.block, v.codePre], It = null, Lt = v.block, Pt = v.inlineblock, qt = v.inline, Et = [v.inline, v.strong], Ot = v.inline, Bt = v.inline, Dt = [v.inlineblock, v.textarea], At = null, Ft = [v.list, v.block], m = {
|
|
828
|
+
a: et,
|
|
829
|
+
article: tt,
|
|
830
|
+
aside: ot,
|
|
831
|
+
b: nt,
|
|
832
|
+
bdi: rt,
|
|
833
|
+
bdo: it,
|
|
834
|
+
blockquote: st,
|
|
835
|
+
br: lt,
|
|
836
|
+
button: at,
|
|
837
|
+
code: ct,
|
|
838
|
+
del: dt,
|
|
839
|
+
div: ut,
|
|
840
|
+
em: pt,
|
|
841
|
+
fieldset: xt,
|
|
842
|
+
footer: gt,
|
|
843
|
+
form: ht,
|
|
844
|
+
h1: X,
|
|
845
|
+
h2: X,
|
|
846
|
+
h3: X,
|
|
847
|
+
h4: X,
|
|
848
|
+
h5: X,
|
|
849
|
+
h6: X,
|
|
850
|
+
header: ft,
|
|
851
|
+
hr: mt,
|
|
852
|
+
i: bt,
|
|
853
|
+
img: kt,
|
|
854
|
+
input: vt,
|
|
855
|
+
ins: yt,
|
|
856
|
+
kbd: wt,
|
|
857
|
+
label: Mt,
|
|
858
|
+
li: $t,
|
|
859
|
+
main: Tt,
|
|
860
|
+
mark: Wt,
|
|
861
|
+
nav: St,
|
|
862
|
+
ol: Ct,
|
|
863
|
+
optgroup: jt,
|
|
864
|
+
option: zt,
|
|
865
|
+
p: Rt,
|
|
866
|
+
pre: Ht,
|
|
867
|
+
s: It,
|
|
868
|
+
section: Lt,
|
|
869
|
+
select: Pt,
|
|
870
|
+
span: qt,
|
|
871
|
+
strong: Et,
|
|
872
|
+
sub: Ot,
|
|
873
|
+
sup: Bt,
|
|
874
|
+
textarea: Dt,
|
|
875
|
+
u: At,
|
|
876
|
+
ul: Ft
|
|
877
|
+
}, Gt = f("a", m.a), Xt = f("article", m.article), Vt = f("aside", m.aside), Kt = f("b", m.b), _t = f("bdi", m.bdi), Nt = f("bdo", m.bdo), Yt = f("blockquote", m.blockquote), Ut = f("br", m.br), Jt = f("button", m.button), Zt = f("code", m.code), Qt = f("del", m.del), eo = f("div", m.div), to = f("em", m.em), oo = f("fieldset", m.fieldset), no = f("footer", m.footer), ro = f("form", m.form), io = f("h1", m.h1), so = f("h2", m.h2), lo = f("h3", m.h3), ao = f("h4", m.h4), co = f("h5", m.h5), uo = f("h6", m.h6), po = f("header", m.header), xo = f("hr", m.hr), go = f("i", m.i), ho = f("img", m.img), fo = f("input", m.input), mo = f("ins", m.ins), bo = f("kbd", m.kbd), ko = f("label", m.label), vo = f("li", m.li), yo = f("main", m.main), wo = f("mark", m.mark), Mo = f("nav", m.nav), $o = f("ol", m.ol), To = f("optgroup", m.optgroup), Wo = f("option", m.option), So = f("p", m.p), Co = f("pre", m.pre), jo = f("s", m.s), zo = f("section", m.section), Ro = f("select", m.select), Ho = f("span", m.span), Io = f("strong", m.strong), Lo = f("sub", m.sub), Po = f("sup", m.sup), qo = f("textarea", m.textarea), Eo = f("u", m.u), Oo = f("ul", m.ul);
|
|
878
|
+
var Bo = /* @__PURE__ */ Object.freeze({
|
|
879
|
+
__proto__: null,
|
|
880
|
+
a: Gt,
|
|
881
|
+
article: Xt,
|
|
882
|
+
aside: Vt,
|
|
883
|
+
b: Kt,
|
|
884
|
+
bdi: _t,
|
|
885
|
+
bdo: Nt,
|
|
886
|
+
blockquote: Yt,
|
|
887
|
+
br: Ut,
|
|
888
|
+
button: Jt,
|
|
889
|
+
code: Zt,
|
|
890
|
+
del: Qt,
|
|
891
|
+
div: eo,
|
|
892
|
+
em: to,
|
|
893
|
+
fieldset: oo,
|
|
894
|
+
footer: no,
|
|
895
|
+
form: ro,
|
|
896
|
+
h1: io,
|
|
897
|
+
h2: so,
|
|
898
|
+
h3: lo,
|
|
899
|
+
h4: ao,
|
|
900
|
+
h5: co,
|
|
901
|
+
h6: uo,
|
|
902
|
+
header: po,
|
|
903
|
+
hr: xo,
|
|
904
|
+
i: go,
|
|
905
|
+
img: ho,
|
|
906
|
+
input: fo,
|
|
907
|
+
ins: mo,
|
|
908
|
+
kbd: bo,
|
|
909
|
+
label: ko,
|
|
910
|
+
li: vo,
|
|
911
|
+
main: yo,
|
|
912
|
+
mark: wo,
|
|
913
|
+
nav: Mo,
|
|
914
|
+
ol: $o,
|
|
915
|
+
optgroup: To,
|
|
916
|
+
option: Wo,
|
|
917
|
+
p: So,
|
|
918
|
+
pre: Co,
|
|
919
|
+
s: jo,
|
|
920
|
+
section: zo,
|
|
921
|
+
select: Ro,
|
|
922
|
+
span: Ho,
|
|
923
|
+
strong: Io,
|
|
924
|
+
sub: Lo,
|
|
925
|
+
sup: Po,
|
|
926
|
+
textarea: qo,
|
|
927
|
+
u: Eo,
|
|
928
|
+
ul: Oo
|
|
929
|
+
});
|
|
930
|
+
const ln = {
|
|
931
|
+
xs: 480,
|
|
932
|
+
sm: 640,
|
|
933
|
+
md: 768,
|
|
934
|
+
lg: 1024,
|
|
935
|
+
xl: 1280
|
|
936
|
+
}, M = {
|
|
937
|
+
container: {
|
|
938
|
+
"containerType-k9g6sI": "containerType-x12h1iku",
|
|
939
|
+
"display-k1xSpc": "display-x78zum5",
|
|
940
|
+
"flexDirection-kXwgrk": "flexDirection-xdt5ytf",
|
|
941
|
+
"gap-kOIVth": "gap-x175yhtj",
|
|
942
|
+
$$css: "Table/styles.css.ts:25"
|
|
943
|
+
},
|
|
944
|
+
rootContainer: {
|
|
945
|
+
"containerType-k9g6sI": "containerType-x12h1iku",
|
|
946
|
+
"display-k1xSpc": "display-x78zum5",
|
|
947
|
+
"flexDirection-kXwgrk": "flexDirection-xdt5ytf",
|
|
948
|
+
"gap-kOIVth": "gap-x175yhtj",
|
|
949
|
+
$$css: "Table/styles.css.ts:34"
|
|
950
|
+
},
|
|
951
|
+
clickableRow: {
|
|
952
|
+
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
953
|
+
"outlineWidth-kMeerF": "outlineWidth-x1k57tk5 outlineWidth-x4u4vcp",
|
|
954
|
+
"outlineStyle-k3XXqK": "outlineStyle-xaatb59",
|
|
955
|
+
"outlineColor-kjBf7l": "outlineColor-x1e3ajik",
|
|
956
|
+
"outlineOffset-kInvED": "outlineOffset-x1j8r21s",
|
|
957
|
+
$$css: "Table/styles.css.ts:43"
|
|
958
|
+
},
|
|
959
|
+
root: {
|
|
960
|
+
"display-k1xSpc": "display-xrvj5dj",
|
|
961
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
962
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
963
|
+
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
964
|
+
"borderRadius-kaIpWk": "borderRadius-xwbokb3",
|
|
965
|
+
"overflow-kVQacm": "overflow-xb3r6kr",
|
|
966
|
+
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
967
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
968
|
+
"color-kMwMTN": "color-x95150z",
|
|
969
|
+
$$css: "Table/styles.css.ts:55"
|
|
970
|
+
},
|
|
971
|
+
rootResponsive: {
|
|
972
|
+
"minWidth-k7Eaqz": "minWidth-x13qp9f6 minWidth-xym1sjy",
|
|
973
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q borderWidth-xtteep3",
|
|
974
|
+
"backgroundColor-kWkggS": "backgroundColor-xuw63hu backgroundColor-x1i4f0qi",
|
|
975
|
+
"overflow-kVQacm": "overflow-xb3r6kr overflow-x2v4zgh",
|
|
976
|
+
"rowGap-khm7nJ": "rowGap-xxs79tx rowGap-xijoxap",
|
|
977
|
+
$$css: "Table/styles.css.ts:74"
|
|
978
|
+
},
|
|
979
|
+
header: {
|
|
980
|
+
"display-k1xSpc": "display-xrvj5dj display-xncg82s",
|
|
981
|
+
"gridColumn-kBCFzs": "gridColumn-x1osaytk",
|
|
982
|
+
"gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
|
|
983
|
+
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
984
|
+
$$css: "Table/styles.css.ts:106"
|
|
985
|
+
},
|
|
986
|
+
body: {
|
|
987
|
+
"display-k1xSpc": "display-xrvj5dj",
|
|
988
|
+
"gridColumn-kBCFzs": "gridColumn-x1osaytk",
|
|
989
|
+
"gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
|
|
990
|
+
$$css: "Table/styles.css.ts:117"
|
|
991
|
+
},
|
|
992
|
+
row: {
|
|
993
|
+
"display-k1xSpc": "display-xrvj5dj",
|
|
994
|
+
"gridColumn-kBCFzs": "gridColumn-x1osaytk",
|
|
995
|
+
"gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx gridTemplateColumns-x1iukyyp",
|
|
996
|
+
"borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5 borderBottomWidth-xatuo0m",
|
|
997
|
+
"borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
|
|
998
|
+
"borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
|
|
999
|
+
$$css: "Table/styles.css.ts:126"
|
|
1000
|
+
},
|
|
1001
|
+
bodyRow: {
|
|
1002
|
+
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-xp88rol backgroundColor-x14zl4n5",
|
|
1003
|
+
"transitionProperty-k1ekBW": "transitionProperty-x15406qy",
|
|
1004
|
+
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
1005
|
+
"transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
|
|
1006
|
+
"padding-kmVPX3": "padding-x1717udv padding-x1s7rzzx",
|
|
1007
|
+
"borderRadius-kaIpWk": "borderRadius-x2u8bby borderRadius-x95x1h7",
|
|
1008
|
+
"borderWidth-kMzoRj": "borderWidth-xc342km borderWidth-xrp8l4a",
|
|
1009
|
+
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
1010
|
+
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
1011
|
+
$$css: "Table/styles.css.ts:140"
|
|
1012
|
+
},
|
|
1013
|
+
headerCell: {
|
|
1014
|
+
"fontWeight-k63SB2": "fontWeight-x1x12jc5",
|
|
1015
|
+
"color-kMwMTN": "color-x4opovt",
|
|
1016
|
+
"textAlign-k9WMMc": "textAlign-x1yc453h",
|
|
1017
|
+
"minWidth-k7Eaqz": "minWidth-xeuugli",
|
|
1018
|
+
"overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
|
|
1019
|
+
"whiteSpace-khDVqt": "whiteSpace-xeaf4i8 whiteSpace-x1348v4l",
|
|
1020
|
+
$$css: "Table/styles.css.ts:167"
|
|
1021
|
+
},
|
|
1022
|
+
cell: {
|
|
1023
|
+
"color-kMwMTN": "color-x95150z",
|
|
1024
|
+
"display-k1xSpc": "display-x78zum5 display-xs8gwy4",
|
|
1025
|
+
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
1026
|
+
"minWidth-k7Eaqz": "minWidth-xeuugli",
|
|
1027
|
+
"overflow-kVQacm": "overflow-x1rea2x4 overflow-x1axt6uq",
|
|
1028
|
+
"whiteSpace-khDVqt": "whiteSpace-xeaf4i8",
|
|
1029
|
+
"overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
|
|
1030
|
+
"gridTemplateColumns-kumcoG": "gridTemplateColumns-xzgtm8w",
|
|
1031
|
+
"gap-kOIVth": "gap-xxhr3t gap-xgrwfsz",
|
|
1032
|
+
$$css: "Table/styles.css.ts:190"
|
|
1033
|
+
},
|
|
1034
|
+
cellValue: {
|
|
1035
|
+
"minWidth-k7Eaqz": "minWidth-xeuugli",
|
|
1036
|
+
"flexGrow-kzQI83": "flexGrow-x1iyjqo2",
|
|
1037
|
+
"overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
|
|
1038
|
+
$$css: "Table/styles.css.ts:228"
|
|
1039
|
+
},
|
|
1040
|
+
cellLabel: {
|
|
1041
|
+
"display-k1xSpc": "display-x1s85apg display-x1sim00f",
|
|
1042
|
+
"color-kMwMTN": "color-x4opovt",
|
|
1043
|
+
"fontWeight-k63SB2": "fontWeight-x120ksxs",
|
|
1044
|
+
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
1045
|
+
$$css: "Table/styles.css.ts:237"
|
|
1046
|
+
},
|
|
1047
|
+
cellActions: {
|
|
1048
|
+
"gridTemplateColumns-kumcoG": "gridTemplateColumns-x1iukyyp",
|
|
1049
|
+
"justifyContent-kjj79g": "justifyContent-xalo3at",
|
|
1050
|
+
"marginTop-keoZOQ": "marginTop-xdj266r marginTop-x1mip588",
|
|
1051
|
+
"paddingTop-kLKAdn": "paddingTop-x1waenea",
|
|
1052
|
+
"borderTopWidth-kEafiO": "borderTopWidth-x972fbf borderTopWidth-x1ijfi2n",
|
|
1053
|
+
"borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
|
|
1054
|
+
"borderTopColor-kLZC3w": "borderTopColor-xvuocu",
|
|
1055
|
+
$$css: "Table/styles.css.ts:251"
|
|
1056
|
+
},
|
|
1057
|
+
cellSm: {
|
|
1058
|
+
"paddingTop-kLKAdn": "paddingTop-x1i738hq paddingTop-x81it4n",
|
|
1059
|
+
"paddingBottom-kGO01o": "paddingBottom-x6sojwk paddingBottom-x1jele16",
|
|
1060
|
+
"paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
|
|
1061
|
+
"paddingRight-kpe85a": "paddingRight-xpkaq21",
|
|
1062
|
+
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
1063
|
+
$$css: "Table/styles.css.ts:277"
|
|
1064
|
+
},
|
|
1065
|
+
cellMd: {
|
|
1066
|
+
"paddingTop-kLKAdn": "paddingTop-xc2wovk",
|
|
1067
|
+
"paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
|
|
1068
|
+
"paddingLeft-kE3dHu": "paddingLeft-x2rk66v paddingLeft-x1u39w1b",
|
|
1069
|
+
"paddingRight-kpe85a": "paddingRight-x7huf2v paddingRight-x1cevoma",
|
|
1070
|
+
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
1071
|
+
$$css: "Table/styles.css.ts:291"
|
|
1072
|
+
},
|
|
1073
|
+
stripedEven: {
|
|
1074
|
+
"backgroundColor-kWkggS": "backgroundColor-xlyqa1p backgroundColor-xp88rol backgroundColor-x14zl4n5",
|
|
1075
|
+
$$css: "Table/styles.css.ts:307"
|
|
1076
|
+
},
|
|
1077
|
+
borderedCell: {
|
|
1078
|
+
"borderRightWidth-kWqL5O": "borderRightWidth-xnwp6cp borderRightWidth-xc5nm28",
|
|
1079
|
+
"borderRightStyle-kSWEuD": "borderRightStyle-x32b0ac",
|
|
1080
|
+
"borderRightColor-k26BEO": "borderRightColor-x9iiiab",
|
|
1081
|
+
$$css: "Table/styles.css.ts:316"
|
|
1082
|
+
},
|
|
1083
|
+
borderedCellLast: {
|
|
1084
|
+
"borderRightWidth-kWqL5O": "borderRightWidth-xgfja2r",
|
|
1085
|
+
$$css: "Table/styles.css.ts:324"
|
|
1086
|
+
},
|
|
1087
|
+
sortChip: {
|
|
1088
|
+
"display-k1xSpc": "display-x1s85apg display-x11cgw9t",
|
|
1089
|
+
"alignSelf-kSGwAc": "alignSelf-xqcrz7y",
|
|
1090
|
+
$$css: "Table/styles.css.ts:329"
|
|
1091
|
+
},
|
|
1092
|
+
scrollX: {
|
|
1093
|
+
"overflowX-kXHlph": "overflowX-xw2csxc",
|
|
1094
|
+
"overflowY-kORKVm": "overflowY-xryxfnj",
|
|
1095
|
+
"WebkitOverflowScrolling-kuHK5b": "WebkitOverflowScrolling-x5lxg6s",
|
|
1096
|
+
$$css: "Table/styles.css.ts:343"
|
|
1097
|
+
},
|
|
1098
|
+
scrollFrame: {
|
|
1099
|
+
"position-kVAEAm": "position-x1n2onr6",
|
|
1100
|
+
$$css: "Table/styles.css.ts:354"
|
|
1101
|
+
},
|
|
1102
|
+
edgeFade: {
|
|
1103
|
+
"position-kVAEAm": "position-x10l6tqk",
|
|
1104
|
+
"top-k87sOh": "top-xnfr1j",
|
|
1105
|
+
"bottom-krVfgx": "bottom-x19ip775",
|
|
1106
|
+
"width-kzqmXN": "width-x1xju080",
|
|
1107
|
+
"pointerEvents-kfzvcC": "pointerEvents-x47corl",
|
|
1108
|
+
"opacity-kSiTet": "opacity-xg01cxk",
|
|
1109
|
+
"transitionProperty-k1ekBW": "transitionProperty-x19991ni",
|
|
1110
|
+
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
1111
|
+
"transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
|
|
1112
|
+
$$css: "Table/styles.css.ts:361"
|
|
1113
|
+
},
|
|
1114
|
+
edgeFadeLeft: {
|
|
1115
|
+
"left-kbCHJM": "left-xt9097p",
|
|
1116
|
+
"borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-xha5hpv",
|
|
1117
|
+
"borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-x1hsk2v7",
|
|
1118
|
+
"backgroundImage-kKwaWg": "backgroundImage-xvdn1ag",
|
|
1119
|
+
$$css: "Table/styles.css.ts:372"
|
|
1120
|
+
},
|
|
1121
|
+
edgeFadeRight: {
|
|
1122
|
+
"right-kCIrl2": "right-x1hp3iq1",
|
|
1123
|
+
"borderTopRightRadius-ksF3WI": "borderTopRightRadius-xbbsgyh",
|
|
1124
|
+
"borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xitffcu",
|
|
1125
|
+
"backgroundImage-kKwaWg": "backgroundImage-x1ykoi01",
|
|
1126
|
+
$$css: "Table/styles.css.ts:378"
|
|
1127
|
+
},
|
|
1128
|
+
edgeFadeVisible: {
|
|
1129
|
+
"opacity-kSiTet": "opacity-x1hc1fzr",
|
|
1130
|
+
$$css: "Table/styles.css.ts:384"
|
|
1131
|
+
},
|
|
1132
|
+
gridColumns: (t) => [{
|
|
1133
|
+
"gridTemplateColumns-kumcoG": t != null ? "gridTemplateColumns-xqketvx" : t,
|
|
1134
|
+
$$css: "Table/styles.css.ts:389"
|
|
1135
|
+
}, {
|
|
1136
|
+
"--x-gridTemplateColumns": t ?? void 0
|
|
1137
|
+
}],
|
|
1138
|
+
gridColumnsResponsive: (t, e) => [{
|
|
1139
|
+
"gridTemplateColumns-kumcoG": (t != null ? "gridTemplateColumns-x39pwss " : t) + (e != null ? "gridTemplateColumns-x17u3dsi " : e) + "gridTemplateColumns-x1iukyyp",
|
|
1140
|
+
$$css: "Table/styles.css.ts:408"
|
|
1141
|
+
}, {
|
|
1142
|
+
"--x-1pds3uo": t ?? void 0,
|
|
1143
|
+
"--x-1n5740v": e ?? void 0
|
|
1144
|
+
}]
|
|
1145
|
+
}, ke = F(null);
|
|
1146
|
+
function Q() {
|
|
1147
|
+
const t = A(ke);
|
|
1148
|
+
if (!t)
|
|
1149
|
+
throw new Error("Table compound components must be used within Table.Root");
|
|
1150
|
+
return t;
|
|
1151
|
+
}
|
|
1152
|
+
const oe = F(!1);
|
|
1153
|
+
function Do(t) {
|
|
1154
|
+
const e = R.c(2), {
|
|
1155
|
+
children: o
|
|
1156
|
+
} = t;
|
|
1157
|
+
let n;
|
|
1158
|
+
return e[0] !== o ? (n = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:55", ...W(S.div, M.container), children: o }), e[0] = o, e[1] = n) : n = e[1], n;
|
|
1159
|
+
}
|
|
1160
|
+
function Ao(t) {
|
|
1161
|
+
let e = "";
|
|
1162
|
+
return J.forEach(t, (o) => {
|
|
1163
|
+
(typeof o == "string" || typeof o == "number") && (e += String(o));
|
|
1164
|
+
}), e;
|
|
1165
|
+
}
|
|
1166
|
+
function Fo(t) {
|
|
1167
|
+
let e = t;
|
|
1168
|
+
for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
|
|
1169
|
+
const n = e.type ?? e.render;
|
|
1170
|
+
if (n == null) break;
|
|
1171
|
+
e = n;
|
|
1172
|
+
}
|
|
1173
|
+
return e;
|
|
1174
|
+
}
|
|
1175
|
+
function Go(t, e) {
|
|
1176
|
+
const o = [], n = [], d = [];
|
|
1177
|
+
function a(l) {
|
|
1178
|
+
J.forEach(l, (i) => {
|
|
1179
|
+
if (!we(i)) return;
|
|
1180
|
+
const r = i.props, s = Fo(i.type), p = s?.displayName || s?.name || "";
|
|
1181
|
+
if (s === re || p === "HeaderCell") {
|
|
1182
|
+
const c = r.width ? String(ce(r.width)) : `minmax(${he(e)}, 1fr)`;
|
|
1183
|
+
o.push(c), n.push(r.compactWidth ? String(ce(r.compactWidth)) : c);
|
|
1184
|
+
const u = typeof r.label == "string" ? r.label : void 0, x = Ao(r.children).trim(), g = u ?? x;
|
|
1185
|
+
!u && x === "" && r.children != null && pe("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), d.push(g);
|
|
1186
|
+
} else r.children && a(r.children);
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
return a(t), {
|
|
1190
|
+
template: o.join(" "),
|
|
1191
|
+
compactTemplate: n.join(" "),
|
|
1192
|
+
labels: d
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
function Xo(t) {
|
|
1196
|
+
const e = R.c(13), {
|
|
1197
|
+
children: o
|
|
1198
|
+
} = t, n = L(null);
|
|
1199
|
+
let d;
|
|
1200
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1201
|
+
start: !1,
|
|
1202
|
+
end: !1
|
|
1203
|
+
}, e[0] = d) : d = e[0];
|
|
1204
|
+
const [a, l] = N(d);
|
|
1205
|
+
let i, r;
|
|
1206
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
|
|
1207
|
+
const h = n.current;
|
|
1208
|
+
if (!h)
|
|
1209
|
+
return;
|
|
1210
|
+
const b = () => {
|
|
1211
|
+
const k = h.scrollWidth - h.clientWidth > 1;
|
|
1212
|
+
l({
|
|
1213
|
+
start: k && h.scrollLeft > 1,
|
|
1214
|
+
end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
|
|
1215
|
+
});
|
|
1216
|
+
};
|
|
1217
|
+
b(), h.addEventListener("scroll", b, {
|
|
1218
|
+
passive: !0
|
|
1219
|
+
});
|
|
1220
|
+
const y = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
|
|
1221
|
+
return y?.observe(h), () => {
|
|
1222
|
+
h.removeEventListener("scroll", b), y?.disconnect();
|
|
1223
|
+
};
|
|
1224
|
+
}, r = [], e[1] = i, e[2] = r) : (i = e[1], r = e[2]), D(i, r);
|
|
1225
|
+
let s;
|
|
1226
|
+
e[3] !== o ? (s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:196", ref: n, ...W(S.div, M.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
|
|
1227
|
+
const p = a.start && M.edgeFadeVisible;
|
|
1228
|
+
let c;
|
|
1229
|
+
e[5] !== p ? (c = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(S.div, M.edgeFade, M.edgeFadeLeft, p) }), e[5] = p, e[6] = c) : c = e[6];
|
|
1230
|
+
const u = a.end && M.edgeFadeVisible;
|
|
1231
|
+
let x;
|
|
1232
|
+
e[7] !== u ? (x = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(S.div, M.edgeFade, M.edgeFadeRight, u) }), e[7] = u, e[8] = x) : x = e[8];
|
|
1233
|
+
let g;
|
|
1234
|
+
return e[9] !== s || e[10] !== c || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(S.div, M.scrollFrame), children: [
|
|
1235
|
+
s,
|
|
1236
|
+
c,
|
|
1237
|
+
x
|
|
1238
|
+
] }), e[9] = s, e[10] = c, e[11] = x, e[12] = g) : g = e[12], g;
|
|
1239
|
+
}
|
|
1240
|
+
function Vo({
|
|
1241
|
+
children: t,
|
|
1242
|
+
variant: e = "default",
|
|
1243
|
+
size: o = "md",
|
|
1244
|
+
responsive: n = !0,
|
|
1245
|
+
minColumnWidth: d = "labelMinW",
|
|
1246
|
+
sortChip: a,
|
|
1247
|
+
pagination: l
|
|
1248
|
+
}) {
|
|
1249
|
+
const i = L(null), {
|
|
1250
|
+
template: r,
|
|
1251
|
+
compactTemplate: s,
|
|
1252
|
+
labels: p
|
|
1253
|
+
} = Go(t, d);
|
|
1254
|
+
r && (i.current = r);
|
|
1255
|
+
const c = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
|
|
1256
|
+
S.div,
|
|
1257
|
+
M.root,
|
|
1258
|
+
// When responsive, use gridColumnsResponsive so the explicit column
|
|
1259
|
+
// template and the stack-mode @container override live in one StyleX
|
|
1260
|
+
// style object. Splitting them across two styles (gridColumns +
|
|
1261
|
+
// rootResponsive) causes StyleX conflict resolution to drop the
|
|
1262
|
+
// column template because rootResponsive's gridTemplateColumns key
|
|
1263
|
+
// always wins as the later entry in the array.
|
|
1264
|
+
r ? n ? M.gridColumnsResponsive(r, s) : M.gridColumns(r) : void 0,
|
|
1265
|
+
n && M.rootResponsive
|
|
1266
|
+
), children: t }), x = /* @__PURE__ */ U(ye, { children: [
|
|
1267
|
+
a,
|
|
1268
|
+
n ? /* @__PURE__ */ $(Xo, { children: c }) : c,
|
|
1269
|
+
l
|
|
1270
|
+
] });
|
|
1271
|
+
return /* @__PURE__ */ $(ke.Provider, { value: {
|
|
1272
|
+
variant: e,
|
|
1273
|
+
size: o,
|
|
1274
|
+
responsive: n,
|
|
1275
|
+
labels: p,
|
|
1276
|
+
inferredTemplateRef: i
|
|
1277
|
+
}, children: n ? /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:299", ...W(S.div, M.rootContainer), children: x }) : x });
|
|
1278
|
+
}
|
|
1279
|
+
function Ko(t) {
|
|
1280
|
+
const e = R.c(2), {
|
|
1281
|
+
children: o
|
|
1282
|
+
} = t;
|
|
1283
|
+
let n;
|
|
1284
|
+
return e[0] !== o ? (n = /* @__PURE__ */ $(oe.Provider, { value: !0, children: /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(S.div, M.header), children: o }) }), e[0] = o, e[1] = n) : n = e[1], n;
|
|
1285
|
+
}
|
|
1286
|
+
function _o(t) {
|
|
1287
|
+
const e = R.c(19), {
|
|
1288
|
+
children: o
|
|
1289
|
+
} = t, {
|
|
1290
|
+
variant: n
|
|
1291
|
+
} = Q();
|
|
1292
|
+
let d, a, l, i, r, s;
|
|
1293
|
+
if (e[0] !== o || e[1] !== n) {
|
|
1294
|
+
const u = J.toArray(o);
|
|
1295
|
+
a = oe.Provider, s = !1, d = Bo.div, l = "rowgroup", i = M.body;
|
|
1296
|
+
let x;
|
|
1297
|
+
e[8] !== n ? (x = (g, h) => n !== "striped" ? g : /* @__PURE__ */ $(ve.Provider, { value: h, children: g }, g.key ?? h), e[8] = n, e[9] = x) : x = e[9], r = u.map(x), e[0] = o, e[1] = n, e[2] = d, e[3] = a, e[4] = l, e[5] = i, e[6] = r, e[7] = s;
|
|
1298
|
+
} else
|
|
1299
|
+
d = e[2], a = e[3], l = e[4], i = e[5], r = e[6], s = e[7];
|
|
1300
|
+
let p;
|
|
1301
|
+
e[10] !== d || e[11] !== l || e[12] !== i || e[13] !== r ? (p = /* @__PURE__ */ $(d, { role: l, style: i, children: r }), e[10] = d, e[11] = l, e[12] = i, e[13] = r, e[14] = p) : p = e[14];
|
|
1302
|
+
let c;
|
|
1303
|
+
return e[15] !== a || e[16] !== s || e[17] !== p ? (c = /* @__PURE__ */ $(a, { value: s, children: p }), e[15] = a, e[16] = s, e[17] = p, e[18] = c) : c = e[18], c;
|
|
1304
|
+
}
|
|
1305
|
+
const ve = F(-1), No = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
1306
|
+
function Yo(t) {
|
|
1307
|
+
const e = R.c(17), {
|
|
1308
|
+
children: o,
|
|
1309
|
+
onClick: n,
|
|
1310
|
+
"aria-label": d
|
|
1311
|
+
} = t, {
|
|
1312
|
+
variant: a
|
|
1313
|
+
} = Q(), l = A(oe), i = A(ve), r = i >= 0 && i % 2 === 1;
|
|
1314
|
+
let s;
|
|
1315
|
+
if (e[0] !== d || e[1] !== o || e[2] !== r || e[3] !== l || e[4] !== n || e[5] !== a) {
|
|
1316
|
+
const p = J.toArray(o), c = n !== void 0 && !l;
|
|
1317
|
+
let u;
|
|
1318
|
+
e[7] !== c || e[8] !== n ? (u = c ? (k) => {
|
|
1319
|
+
const w = k.target;
|
|
1320
|
+
w instanceof Element && w.closest(No) || n();
|
|
1321
|
+
} : void 0, e[7] = c, e[8] = n, e[9] = u) : u = e[9];
|
|
1322
|
+
let x;
|
|
1323
|
+
e[10] !== c || e[11] !== n ? (x = c ? (k) => {
|
|
1324
|
+
(k.key === "Enter" || k.key === " ") && n();
|
|
1325
|
+
} : void 0, e[10] = c, e[11] = n, e[12] = x) : x = e[12];
|
|
1326
|
+
const g = !l && M.bodyRow, h = !l && a === "striped" && r && M.stripedEven, b = c && M.clickableRow;
|
|
1327
|
+
let y;
|
|
1328
|
+
e[13] !== g || e[14] !== h || e[15] !== b ? (y = [M.row, g, h, b], e[13] = g, e[14] = h, e[15] = b, e[16] = y) : y = e[16], s = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: c ? 0 : void 0, "aria-label": c ? d : void 0, onClick: u, onKeyDown: x, ...W(S.div, y), children: p.map((k, w) => /* @__PURE__ */ $(ne.Provider, { value: {
|
|
1329
|
+
index: w,
|
|
1330
|
+
total: p.length
|
|
1331
|
+
}, children: k }, k.key ?? w)) }), e[0] = d, e[1] = o, e[2] = r, e[3] = l, e[4] = n, e[5] = a, e[6] = s;
|
|
1332
|
+
} else
|
|
1333
|
+
s = e[6];
|
|
1334
|
+
return s;
|
|
1335
|
+
}
|
|
1336
|
+
const ne = F({
|
|
1337
|
+
index: 0,
|
|
1338
|
+
total: 0
|
|
1339
|
+
});
|
|
1340
|
+
function re(t) {
|
|
1341
|
+
const e = R.c(8), {
|
|
1342
|
+
children: o,
|
|
1343
|
+
"aria-label": n
|
|
1344
|
+
} = t, {
|
|
1345
|
+
size: d,
|
|
1346
|
+
variant: a
|
|
1347
|
+
} = Q(), {
|
|
1348
|
+
index: l,
|
|
1349
|
+
total: i
|
|
1350
|
+
} = A(ne), r = a === "bordered" && l === i - 1, s = d === "sm" ? M.cellSm : M.cellMd, p = a === "bordered" && M.borderedCell, c = r && M.borderedCellLast;
|
|
1351
|
+
let u;
|
|
1352
|
+
e[0] !== s || e[1] !== p || e[2] !== c ? (u = [M.headerCell, s, p, c], e[0] = s, e[1] = p, e[2] = c, e[3] = u) : u = e[3];
|
|
1353
|
+
let x;
|
|
1354
|
+
return e[4] !== n || e[5] !== o || e[6] !== u ? (x = /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": n, ...W(S.div, u), children: o }), e[4] = n, e[5] = o, e[6] = u, e[7] = x) : x = e[7], x;
|
|
1355
|
+
}
|
|
1356
|
+
re.displayName = "HeaderCell";
|
|
1357
|
+
function Uo(t) {
|
|
1358
|
+
const e = R.c(16), {
|
|
1359
|
+
children: o,
|
|
1360
|
+
isActions: n
|
|
1361
|
+
} = t, {
|
|
1362
|
+
size: d,
|
|
1363
|
+
variant: a,
|
|
1364
|
+
labels: l,
|
|
1365
|
+
responsive: i
|
|
1366
|
+
} = Q(), {
|
|
1367
|
+
index: r,
|
|
1368
|
+
total: s
|
|
1369
|
+
} = A(ne), p = a === "bordered" && r === s - 1, c = l[r] ?? "", u = d === "sm" ? M.cellSm : M.cellMd, x = a === "bordered" && M.borderedCell, g = p && M.borderedCellLast, h = n && M.cellActions;
|
|
1370
|
+
let b;
|
|
1371
|
+
e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (b = [M.cell, u, x, g, h], e[0] = u, e[1] = x, e[2] = g, e[3] = h, e[4] = b) : b = e[4];
|
|
1372
|
+
let y;
|
|
1373
|
+
e[5] !== n || e[6] !== c || e[7] !== i ? (y = i && !n && c !== "" ? /* @__PURE__ */ $("span", { "data-element-src": "Table/Table.tsx:507", ...W(S.span, M.cellLabel), children: c }) : null, e[5] = n, e[6] = c, e[7] = i, e[8] = y) : y = e[8];
|
|
1374
|
+
let k;
|
|
1375
|
+
e[9] !== o || e[10] !== n ? (k = n ? o : /* @__PURE__ */ $("div", { "data-element-src": "Table/Table.tsx:509", ...W(S.div, M.cellValue), children: o }), e[9] = o, e[10] = n, e[11] = k) : k = e[11];
|
|
1376
|
+
let w;
|
|
1377
|
+
return e[12] !== b || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(S.div, b), children: [
|
|
1378
|
+
y,
|
|
1379
|
+
k
|
|
1380
|
+
] }), e[12] = b, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
|
|
1381
|
+
}
|
|
1382
|
+
const Jo = {
|
|
1383
|
+
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1384
|
+
Container: Do,
|
|
1385
|
+
Root: Vo,
|
|
1386
|
+
Header: Ko,
|
|
1387
|
+
Body: _o,
|
|
1388
|
+
Row: Yo,
|
|
1389
|
+
HeaderCell: re,
|
|
1390
|
+
Cell: Uo
|
|
1391
|
+
}, an = Jo;
|
|
1392
|
+
export {
|
|
1393
|
+
_o as B,
|
|
1394
|
+
Uo as C,
|
|
1395
|
+
on as D,
|
|
1396
|
+
re as H,
|
|
1397
|
+
nn as I,
|
|
1398
|
+
sn as M,
|
|
1399
|
+
qe as P,
|
|
1400
|
+
Yo as R,
|
|
1401
|
+
$e as S,
|
|
1402
|
+
rn as T,
|
|
1403
|
+
Ee as a,
|
|
1404
|
+
ce as b,
|
|
1405
|
+
Pe as c,
|
|
1406
|
+
pe as d,
|
|
1407
|
+
ln as e,
|
|
1408
|
+
an as f,
|
|
1409
|
+
M as g,
|
|
1410
|
+
Ko as h,
|
|
1411
|
+
Ie as i,
|
|
1412
|
+
Vo as j,
|
|
1413
|
+
_ as k,
|
|
1414
|
+
Jo as l,
|
|
1415
|
+
he as r,
|
|
1416
|
+
xe as s,
|
|
1417
|
+
Re as u
|
|
1418
|
+
};
|
|
1419
|
+
//# sourceMappingURL=Table-C70zdSkM.js.map
|