@gnome-ui/react 1.12.0 → 1.14.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/README.md +27 -2
- package/dist/components/Box/Box.d.ts +65 -0
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +70 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +351 -290
- package/dist/index.js.map +1 -1
- package/dist/test/setup.d.ts +0 -0
- package/package.json +14 -6
package/dist/index.js
CHANGED
|
@@ -1937,7 +1937,7 @@ var Wn = {
|
|
|
1937
1937
|
top: "_top_1tk9v_67",
|
|
1938
1938
|
left: "_left_1tk9v_75",
|
|
1939
1939
|
right: "_right_1tk9v_83"
|
|
1940
|
-
}, Gn = 8, Kn =
|
|
1940
|
+
}, Gn = 8, U = 10, Kn = 6;
|
|
1941
1941
|
function qn(e, t, n) {
|
|
1942
1942
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1943
1943
|
n,
|
|
@@ -1947,21 +1947,57 @@ function qn(e, t, n) {
|
|
|
1947
1947
|
"left",
|
|
1948
1948
|
"right"
|
|
1949
1949
|
])];
|
|
1950
|
+
function o(n) {
|
|
1951
|
+
return n === "bottom" ? {
|
|
1952
|
+
top: e.bottom + Gn,
|
|
1953
|
+
left: e.left + e.width / 2 - t.width / 2
|
|
1954
|
+
} : n === "top" ? {
|
|
1955
|
+
top: e.top - t.height - Gn,
|
|
1956
|
+
left: e.left + e.width / 2 - t.width / 2
|
|
1957
|
+
} : n === "left" ? {
|
|
1958
|
+
top: e.top + e.height / 2 - t.height / 2,
|
|
1959
|
+
left: e.left - t.width - Gn
|
|
1960
|
+
} : {
|
|
1961
|
+
top: e.top + e.height / 2 - t.height / 2,
|
|
1962
|
+
left: e.right + Gn
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1950
1965
|
for (let n of a) {
|
|
1951
|
-
let a =
|
|
1952
|
-
|
|
1953
|
-
let s = o >= Kn && o + t.width <= r - Kn, c = a >= Kn && a + t.height <= i - Kn;
|
|
1954
|
-
if (s && c) return {
|
|
1966
|
+
let { top: a, left: s } = o(n), c = s >= U && s + t.width <= r - U, l = a >= U && a + t.height <= i - U;
|
|
1967
|
+
if (c && l) return {
|
|
1955
1968
|
top: a,
|
|
1956
|
-
left:
|
|
1957
|
-
placement: n
|
|
1969
|
+
left: s,
|
|
1970
|
+
placement: n,
|
|
1971
|
+
arrowOffset: n === "top" || n === "bottom" ? e.left + e.width / 2 - s : e.top + e.height / 2 - a
|
|
1958
1972
|
};
|
|
1959
1973
|
}
|
|
1960
|
-
let
|
|
1974
|
+
for (let n of a) {
|
|
1975
|
+
let { top: a, left: s } = o(n), c = a >= U && a + t.height <= i - U, l = s >= U && s + t.width <= r - U;
|
|
1976
|
+
if ((n === "top" || n === "bottom") && c) {
|
|
1977
|
+
let i = Math.max(U, Math.min(s, r - t.width - U)), o = e.left + e.width / 2 - i;
|
|
1978
|
+
return {
|
|
1979
|
+
top: a,
|
|
1980
|
+
left: i,
|
|
1981
|
+
placement: n,
|
|
1982
|
+
arrowOffset: Math.max(Kn + 4, Math.min(o, t.width - Kn - 4))
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
if ((n === "left" || n === "right") && l) {
|
|
1986
|
+
let r = Math.max(U, Math.min(a, i - t.height - U)), o = e.top + e.height / 2 - r;
|
|
1987
|
+
return {
|
|
1988
|
+
top: r,
|
|
1989
|
+
left: s,
|
|
1990
|
+
placement: n,
|
|
1991
|
+
arrowOffset: Math.max(Kn + 4, Math.min(o, t.height - Kn - 4))
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
let s = e.bottom + Gn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(U, Math.min(s, i - t.height - U)), u = Math.max(U, Math.min(c, r - t.width - U)), d = e.left + e.width / 2 - u;
|
|
1961
1996
|
return {
|
|
1962
|
-
top:
|
|
1963
|
-
left:
|
|
1964
|
-
placement: "bottom"
|
|
1997
|
+
top: l,
|
|
1998
|
+
left: u,
|
|
1999
|
+
placement: "bottom",
|
|
2000
|
+
arrowOffset: Math.max(Kn + 4, Math.min(d, t.width - Kn - 4))
|
|
1965
2001
|
};
|
|
1966
2002
|
}
|
|
1967
2003
|
function Jn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: m, children: h }) {
|
|
@@ -2037,7 +2073,14 @@ function Jn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2037
2073
|
onKeyDown: A,
|
|
2038
2074
|
children: [/* @__PURE__ */ t("div", {
|
|
2039
2075
|
className: Wn.arrow,
|
|
2040
|
-
"aria-hidden": "true"
|
|
2076
|
+
"aria-hidden": "true",
|
|
2077
|
+
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2078
|
+
left: b.arrowOffset - Kn,
|
|
2079
|
+
marginLeft: 0
|
|
2080
|
+
} : {
|
|
2081
|
+
top: b.arrowOffset - Kn,
|
|
2082
|
+
marginTop: 0
|
|
2083
|
+
}
|
|
2041
2084
|
}), r]
|
|
2042
2085
|
});
|
|
2043
2086
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? p(M, document.body) : M)] });
|
|
@@ -2056,7 +2099,7 @@ function Xn({ maximumSize: e = 600, children: n, className: r, style: i, ...a })
|
|
|
2056
2099
|
children: n
|
|
2057
2100
|
});
|
|
2058
2101
|
}
|
|
2059
|
-
var
|
|
2102
|
+
var W = {
|
|
2060
2103
|
root: "_root_yaj3r_3",
|
|
2061
2104
|
expanded: "_expanded_yaj3r_12",
|
|
2062
2105
|
sidebar: "_sidebar_yaj3r_16",
|
|
@@ -2072,8 +2115,8 @@ function Zn({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2072
2115
|
let { isNarrow: d } = He(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2073
2116
|
return /* @__PURE__ */ n("div", {
|
|
2074
2117
|
className: [
|
|
2075
|
-
|
|
2076
|
-
d ?
|
|
2118
|
+
W.root,
|
|
2119
|
+
d ? W.collapsed : W.expanded,
|
|
2077
2120
|
c
|
|
2078
2121
|
].filter(Boolean).join(" "),
|
|
2079
2122
|
style: {
|
|
@@ -2083,23 +2126,23 @@ function Zn({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2083
2126
|
...u,
|
|
2084
2127
|
children: [
|
|
2085
2128
|
/* @__PURE__ */ t("div", {
|
|
2086
|
-
className: [
|
|
2129
|
+
className: [W.sidebar, d && i ? W.paneHidden : W.paneVisible].filter(Boolean).join(" "),
|
|
2087
2130
|
"aria-hidden": d && i,
|
|
2088
2131
|
children: e
|
|
2089
2132
|
}),
|
|
2090
2133
|
!d && /* @__PURE__ */ t("div", {
|
|
2091
|
-
className:
|
|
2134
|
+
className: W.divider,
|
|
2092
2135
|
"aria-hidden": "true"
|
|
2093
2136
|
}),
|
|
2094
2137
|
/* @__PURE__ */ t("div", {
|
|
2095
|
-
className: [
|
|
2138
|
+
className: [W.contentPane, d && !i ? W.paneHidden : W.paneVisible].filter(Boolean).join(" "),
|
|
2096
2139
|
"aria-hidden": d && !i,
|
|
2097
2140
|
children: r
|
|
2098
2141
|
})
|
|
2099
2142
|
]
|
|
2100
2143
|
});
|
|
2101
2144
|
}
|
|
2102
|
-
var
|
|
2145
|
+
var G = {
|
|
2103
2146
|
root: "_root_1xl2w_3",
|
|
2104
2147
|
wide: "_wide_1xl2w_13",
|
|
2105
2148
|
end: "_end_1xl2w_17",
|
|
@@ -2132,9 +2175,9 @@ function Qn({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2132
2175
|
let v = o === "end";
|
|
2133
2176
|
return /* @__PURE__ */ n("div", {
|
|
2134
2177
|
className: [
|
|
2135
|
-
|
|
2136
|
-
h ?
|
|
2137
|
-
v ?
|
|
2178
|
+
G.root,
|
|
2179
|
+
h ? G.narrow : G.wide,
|
|
2180
|
+
v ? G.end : G.start,
|
|
2138
2181
|
f
|
|
2139
2182
|
].filter(Boolean).join(" "),
|
|
2140
2183
|
style: {
|
|
@@ -2144,18 +2187,18 @@ function Qn({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2144
2187
|
...m,
|
|
2145
2188
|
children: [
|
|
2146
2189
|
h && /* @__PURE__ */ t("div", {
|
|
2147
|
-
className: [
|
|
2190
|
+
className: [G.backdrop, i ? G.backdropVisible : null].filter(Boolean).join(" "),
|
|
2148
2191
|
"aria-hidden": "true",
|
|
2149
2192
|
onClick: a
|
|
2150
2193
|
}),
|
|
2151
2194
|
/* @__PURE__ */ t("div", {
|
|
2152
2195
|
ref: g,
|
|
2153
|
-
className: [
|
|
2196
|
+
className: [G.sidebar, h ? i ? G.sidebarOpen : G.sidebarClosed : null].filter(Boolean).join(" "),
|
|
2154
2197
|
"aria-hidden": h && !i,
|
|
2155
2198
|
children: e
|
|
2156
2199
|
}),
|
|
2157
2200
|
/* @__PURE__ */ t("div", {
|
|
2158
|
-
className:
|
|
2201
|
+
className: G.content,
|
|
2159
2202
|
children: r
|
|
2160
2203
|
})
|
|
2161
2204
|
]
|
|
@@ -2266,13 +2309,31 @@ function sr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2266
2309
|
})]
|
|
2267
2310
|
});
|
|
2268
2311
|
}
|
|
2269
|
-
|
|
2312
|
+
//#endregion
|
|
2313
|
+
//#region src/components/Box/Box.tsx
|
|
2314
|
+
function cr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2315
|
+
let l = e === "horizontal" ? "center" : "stretch";
|
|
2316
|
+
return /* @__PURE__ */ t("div", {
|
|
2317
|
+
className: a,
|
|
2318
|
+
style: {
|
|
2319
|
+
display: "flex",
|
|
2320
|
+
flexDirection: e === "horizontal" ? "row" : "column",
|
|
2321
|
+
gap: typeof n == "number" ? `${n}px` : n,
|
|
2322
|
+
alignItems: r ?? l,
|
|
2323
|
+
justifyContent: i,
|
|
2324
|
+
...o
|
|
2325
|
+
},
|
|
2326
|
+
...c,
|
|
2327
|
+
children: s
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
var lr = {
|
|
2270
2331
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2271
2332
|
reverse: "_reverse_1ik0x_10"
|
|
2272
2333
|
};
|
|
2273
2334
|
//#endregion
|
|
2274
2335
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2275
|
-
function
|
|
2336
|
+
function ur({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2276
2337
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2277
2338
|
"--wrapbox-gap": u,
|
|
2278
2339
|
"--wrapbox-row-gap": d,
|
|
@@ -2282,8 +2343,8 @@ function lr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2282
2343
|
};
|
|
2283
2344
|
return /* @__PURE__ */ t("div", {
|
|
2284
2345
|
className: [
|
|
2285
|
-
|
|
2286
|
-
a ?
|
|
2346
|
+
lr.wrapBox,
|
|
2347
|
+
a ? lr.reverse : null,
|
|
2287
2348
|
s
|
|
2288
2349
|
].filter(Boolean).join(" "),
|
|
2289
2350
|
style: f,
|
|
@@ -2291,7 +2352,7 @@ function lr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2291
2352
|
children: o
|
|
2292
2353
|
});
|
|
2293
2354
|
}
|
|
2294
|
-
var
|
|
2355
|
+
var dr = {
|
|
2295
2356
|
chip: "_chip_e26qc_3",
|
|
2296
2357
|
selectable: "_selectable_e26qc_31",
|
|
2297
2358
|
selected: "_selected_e26qc_55",
|
|
@@ -2302,16 +2363,16 @@ var ur = {
|
|
|
2302
2363
|
};
|
|
2303
2364
|
//#endregion
|
|
2304
2365
|
//#region src/components/Chip/Chip.tsx
|
|
2305
|
-
function
|
|
2366
|
+
function fr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2306
2367
|
let f = o && !a, p = [
|
|
2307
|
-
|
|
2308
|
-
s ?
|
|
2309
|
-
l ?
|
|
2310
|
-
f ?
|
|
2368
|
+
dr.chip,
|
|
2369
|
+
s ? dr.selected : null,
|
|
2370
|
+
l ? dr.disabled : null,
|
|
2371
|
+
f ? dr.selectable : null,
|
|
2311
2372
|
u
|
|
2312
2373
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2313
2374
|
i && /* @__PURE__ */ t("span", {
|
|
2314
|
-
className:
|
|
2375
|
+
className: dr.icon,
|
|
2315
2376
|
children: /* @__PURE__ */ t(F, {
|
|
2316
2377
|
icon: i,
|
|
2317
2378
|
size: "sm",
|
|
@@ -2319,12 +2380,12 @@ function dr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2319
2380
|
})
|
|
2320
2381
|
}),
|
|
2321
2382
|
/* @__PURE__ */ t("span", {
|
|
2322
|
-
className:
|
|
2383
|
+
className: dr.label,
|
|
2323
2384
|
children: r
|
|
2324
2385
|
}),
|
|
2325
2386
|
a && /* @__PURE__ */ t("button", {
|
|
2326
2387
|
type: "button",
|
|
2327
|
-
className:
|
|
2388
|
+
className: dr.remove,
|
|
2328
2389
|
"aria-label": `Remove ${r}`,
|
|
2329
2390
|
disabled: l,
|
|
2330
2391
|
onClick: (e) => {
|
|
@@ -2356,30 +2417,30 @@ function dr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2356
2417
|
}
|
|
2357
2418
|
//#endregion
|
|
2358
2419
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2359
|
-
var
|
|
2360
|
-
backdrop:
|
|
2420
|
+
var pr = "_backdrop_zvuhh_3", mr = "_dialog_zvuhh_26", hr = "_header_zvuhh_59", gr = "_title_zvuhh_67", _r = "_closeBtn_zvuhh_74", vr = "_searchRow_zvuhh_112", yr = "_searchIcon_zvuhh_124", br = "_searchInput_zvuhh_132", xr = "_searchClear_zvuhh_151", Sr = "_body_zvuhh_174", Cr = "_empty_zvuhh_182", wr = "_section_zvuhh_193", Tr = "_sectionTitle_zvuhh_199", Er = "_list_zvuhh_209", Dr = "_row_zvuhh_225", Or = "_keys_zvuhh_240", kr = "_keyCap_zvuhh_247", Ar = "_plus_zvuhh_277", jr = "_description_zvuhh_284", K = {
|
|
2421
|
+
backdrop: pr,
|
|
2361
2422
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2362
|
-
dialog:
|
|
2423
|
+
dialog: mr,
|
|
2363
2424
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2364
|
-
header:
|
|
2365
|
-
title:
|
|
2366
|
-
closeBtn:
|
|
2367
|
-
searchRow:
|
|
2368
|
-
searchIcon:
|
|
2369
|
-
searchInput:
|
|
2370
|
-
searchClear:
|
|
2371
|
-
body:
|
|
2372
|
-
empty:
|
|
2373
|
-
section:
|
|
2374
|
-
sectionTitle:
|
|
2375
|
-
list:
|
|
2376
|
-
row:
|
|
2377
|
-
keys:
|
|
2378
|
-
keyCap:
|
|
2379
|
-
plus:
|
|
2380
|
-
description:
|
|
2381
|
-
},
|
|
2382
|
-
function
|
|
2425
|
+
header: hr,
|
|
2426
|
+
title: gr,
|
|
2427
|
+
closeBtn: _r,
|
|
2428
|
+
searchRow: vr,
|
|
2429
|
+
searchIcon: yr,
|
|
2430
|
+
searchInput: br,
|
|
2431
|
+
searchClear: xr,
|
|
2432
|
+
body: Sr,
|
|
2433
|
+
empty: Cr,
|
|
2434
|
+
section: wr,
|
|
2435
|
+
sectionTitle: Tr,
|
|
2436
|
+
list: Er,
|
|
2437
|
+
row: Dr,
|
|
2438
|
+
keys: Or,
|
|
2439
|
+
keyCap: kr,
|
|
2440
|
+
plus: Ar,
|
|
2441
|
+
description: jr
|
|
2442
|
+
}, Mr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2443
|
+
function Nr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2383
2444
|
let [o, c] = f(""), u = d(null), m = d(null), h = d(null), g = d(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2384
2445
|
l(() => {
|
|
2385
2446
|
e ? (h.current = document.activeElement, requestAnimationFrame(() => m.current?.focus())) : (c(""), h.current?.focus());
|
|
@@ -2390,7 +2451,7 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2390
2451
|
return;
|
|
2391
2452
|
}
|
|
2392
2453
|
if (e.key !== "Tab") return;
|
|
2393
|
-
let t = Array.from(u.current?.querySelectorAll(
|
|
2454
|
+
let t = Array.from(u.current?.querySelectorAll(Mr) ?? []);
|
|
2394
2455
|
if (t.length === 0) return;
|
|
2395
2456
|
let n = t[0], i = t[t.length - 1];
|
|
2396
2457
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2400,7 +2461,7 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2400
2461
|
...e,
|
|
2401
2462
|
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !v || e.toLowerCase().includes(v) || t.some((e) => e.toLowerCase().includes(v)))
|
|
2402
2463
|
})).filter((e) => e.shortcuts.length > 0), b = /* @__PURE__ */ t("div", {
|
|
2403
|
-
className:
|
|
2464
|
+
className: K.backdrop,
|
|
2404
2465
|
onClick: r,
|
|
2405
2466
|
"aria-hidden": "true",
|
|
2406
2467
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -2408,36 +2469,36 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2408
2469
|
role: "dialog",
|
|
2409
2470
|
"aria-modal": "true",
|
|
2410
2471
|
"aria-labelledby": g.current,
|
|
2411
|
-
className:
|
|
2472
|
+
className: K.dialog,
|
|
2412
2473
|
onKeyDown: _,
|
|
2413
2474
|
onClick: (e) => e.stopPropagation(),
|
|
2414
2475
|
children: [
|
|
2415
2476
|
/* @__PURE__ */ n("div", {
|
|
2416
|
-
className:
|
|
2477
|
+
className: K.header,
|
|
2417
2478
|
children: [/* @__PURE__ */ t("span", {
|
|
2418
2479
|
id: g.current,
|
|
2419
|
-
className:
|
|
2480
|
+
className: K.title,
|
|
2420
2481
|
children: i
|
|
2421
2482
|
}), /* @__PURE__ */ t("button", {
|
|
2422
2483
|
type: "button",
|
|
2423
|
-
className:
|
|
2484
|
+
className: K.closeBtn,
|
|
2424
2485
|
"aria-label": "Close",
|
|
2425
2486
|
onClick: r,
|
|
2426
2487
|
children: "×"
|
|
2427
2488
|
})]
|
|
2428
2489
|
}),
|
|
2429
2490
|
/* @__PURE__ */ n("div", {
|
|
2430
|
-
className:
|
|
2491
|
+
className: K.searchRow,
|
|
2431
2492
|
children: [
|
|
2432
2493
|
/* @__PURE__ */ t("span", {
|
|
2433
|
-
className:
|
|
2494
|
+
className: K.searchIcon,
|
|
2434
2495
|
"aria-hidden": "true",
|
|
2435
2496
|
children: "⌕"
|
|
2436
2497
|
}),
|
|
2437
2498
|
/* @__PURE__ */ t("input", {
|
|
2438
2499
|
ref: m,
|
|
2439
2500
|
type: "search",
|
|
2440
|
-
className:
|
|
2501
|
+
className: K.searchInput,
|
|
2441
2502
|
placeholder: "Search shortcuts…",
|
|
2442
2503
|
value: o,
|
|
2443
2504
|
onChange: (e) => c(e.target.value),
|
|
@@ -2445,7 +2506,7 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2445
2506
|
}),
|
|
2446
2507
|
o && /* @__PURE__ */ t("button", {
|
|
2447
2508
|
type: "button",
|
|
2448
|
-
className:
|
|
2509
|
+
className: K.searchClear,
|
|
2449
2510
|
"aria-label": "Clear search",
|
|
2450
2511
|
onClick: () => {
|
|
2451
2512
|
c(""), m.current?.focus();
|
|
@@ -2455,38 +2516,38 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2455
2516
|
]
|
|
2456
2517
|
}),
|
|
2457
2518
|
/* @__PURE__ */ t("div", {
|
|
2458
|
-
className:
|
|
2519
|
+
className: K.body,
|
|
2459
2520
|
role: "list",
|
|
2460
2521
|
children: y.length === 0 ? /* @__PURE__ */ n("p", {
|
|
2461
|
-
className:
|
|
2522
|
+
className: K.empty,
|
|
2462
2523
|
children: [
|
|
2463
2524
|
"No shortcuts match \"",
|
|
2464
2525
|
o,
|
|
2465
2526
|
"\""
|
|
2466
2527
|
]
|
|
2467
2528
|
}) : y.map((e) => /* @__PURE__ */ n("section", {
|
|
2468
|
-
className:
|
|
2529
|
+
className: K.section,
|
|
2469
2530
|
children: [/* @__PURE__ */ t("h3", {
|
|
2470
|
-
className:
|
|
2531
|
+
className: K.sectionTitle,
|
|
2471
2532
|
children: e.title
|
|
2472
2533
|
}), /* @__PURE__ */ t("ul", {
|
|
2473
|
-
className:
|
|
2534
|
+
className: K.list,
|
|
2474
2535
|
children: e.shortcuts.map((e) => /* @__PURE__ */ n("li", {
|
|
2475
|
-
className:
|
|
2536
|
+
className: K.row,
|
|
2476
2537
|
role: "listitem",
|
|
2477
2538
|
children: [/* @__PURE__ */ t("span", {
|
|
2478
|
-
className:
|
|
2539
|
+
className: K.keys,
|
|
2479
2540
|
"aria-label": e.keys.join(" + "),
|
|
2480
2541
|
children: e.keys.map((r, i) => /* @__PURE__ */ n("span", {
|
|
2481
|
-
className:
|
|
2542
|
+
className: K.keyCap,
|
|
2482
2543
|
children: [/* @__PURE__ */ t("kbd", { children: r }), i < e.keys.length - 1 && /* @__PURE__ */ t("span", {
|
|
2483
|
-
className:
|
|
2544
|
+
className: K.plus,
|
|
2484
2545
|
"aria-hidden": "true",
|
|
2485
2546
|
children: "+"
|
|
2486
2547
|
})]
|
|
2487
2548
|
}, i))
|
|
2488
2549
|
}), /* @__PURE__ */ t("span", {
|
|
2489
|
-
className:
|
|
2550
|
+
className: K.description,
|
|
2490
2551
|
children: e.description
|
|
2491
2552
|
})]
|
|
2492
2553
|
}, e.description))
|
|
@@ -2498,7 +2559,7 @@ function Mr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2498
2559
|
});
|
|
2499
2560
|
return typeof document > "u" ? b : p(b, document.body);
|
|
2500
2561
|
}
|
|
2501
|
-
var
|
|
2562
|
+
var Pr = {
|
|
2502
2563
|
sidebar: "_sidebar_kmj4b_3",
|
|
2503
2564
|
list: "_list_kmj4b_17",
|
|
2504
2565
|
item: "_item_kmj4b_28",
|
|
@@ -2508,13 +2569,13 @@ var K = {
|
|
|
2508
2569
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2509
2570
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2510
2571
|
count: "_count_kmj4b_136"
|
|
2511
|
-
},
|
|
2512
|
-
function
|
|
2513
|
-
let e = c(
|
|
2572
|
+
}, Fr = a(null);
|
|
2573
|
+
function Ir() {
|
|
2574
|
+
let e = c(Fr);
|
|
2514
2575
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2515
2576
|
return e;
|
|
2516
2577
|
}
|
|
2517
|
-
function
|
|
2578
|
+
function Lr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2518
2579
|
let s = d(null);
|
|
2519
2580
|
function c(e) {
|
|
2520
2581
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2527,20 +2588,20 @@ function Fr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2527
2588
|
else return;
|
|
2528
2589
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2529
2590
|
}
|
|
2530
|
-
return /* @__PURE__ */ t(
|
|
2591
|
+
return /* @__PURE__ */ t(Fr.Provider, {
|
|
2531
2592
|
value: {
|
|
2532
2593
|
value: e,
|
|
2533
2594
|
onValueChange: n
|
|
2534
2595
|
},
|
|
2535
2596
|
children: /* @__PURE__ */ t("nav", {
|
|
2536
|
-
className: [
|
|
2597
|
+
className: [Pr.sidebar, a].filter(Boolean).join(" "),
|
|
2537
2598
|
onKeyDown: c,
|
|
2538
2599
|
...o,
|
|
2539
2600
|
children: /* @__PURE__ */ t("ul", {
|
|
2540
2601
|
ref: s,
|
|
2541
2602
|
role: "radiogroup",
|
|
2542
2603
|
"aria-label": r,
|
|
2543
|
-
className:
|
|
2604
|
+
className: Pr.list,
|
|
2544
2605
|
children: i
|
|
2545
2606
|
})
|
|
2546
2607
|
})
|
|
@@ -2548,10 +2609,10 @@ function Fr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2548
2609
|
}
|
|
2549
2610
|
//#endregion
|
|
2550
2611
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2551
|
-
function
|
|
2552
|
-
let { value: u, onValueChange: d } =
|
|
2612
|
+
function Rr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2613
|
+
let { value: u, onValueChange: d } = Ir(), f = u === e, p = o ?? a ?? null;
|
|
2553
2614
|
return /* @__PURE__ */ t("li", {
|
|
2554
|
-
className:
|
|
2615
|
+
className: Pr.item,
|
|
2555
2616
|
children: /* @__PURE__ */ n("button", {
|
|
2556
2617
|
type: "button",
|
|
2557
2618
|
role: "radio",
|
|
@@ -2560,14 +2621,14 @@ function Ir({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2560
2621
|
disabled: s,
|
|
2561
2622
|
onClick: () => d(e),
|
|
2562
2623
|
className: [
|
|
2563
|
-
|
|
2564
|
-
f ?
|
|
2624
|
+
Pr.itemBtn,
|
|
2625
|
+
f ? Pr.active : null,
|
|
2565
2626
|
c
|
|
2566
2627
|
].filter(Boolean).join(" "),
|
|
2567
2628
|
...l,
|
|
2568
2629
|
children: [
|
|
2569
2630
|
i && /* @__PURE__ */ t("span", {
|
|
2570
|
-
className:
|
|
2631
|
+
className: Pr.itemIcon,
|
|
2571
2632
|
children: /* @__PURE__ */ t(F, {
|
|
2572
2633
|
icon: i,
|
|
2573
2634
|
size: "md",
|
|
@@ -2575,13 +2636,13 @@ function Ir({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2575
2636
|
})
|
|
2576
2637
|
}),
|
|
2577
2638
|
/* @__PURE__ */ t("span", {
|
|
2578
|
-
className:
|
|
2639
|
+
className: Pr.itemLabel,
|
|
2579
2640
|
children: r
|
|
2580
2641
|
}),
|
|
2581
2642
|
p != null && /* @__PURE__ */ t("span", {
|
|
2582
|
-
className:
|
|
2643
|
+
className: Pr.itemSuffix,
|
|
2583
2644
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2584
|
-
className:
|
|
2645
|
+
className: Pr.count,
|
|
2585
2646
|
children: p > 99 ? "99+" : p
|
|
2586
2647
|
}) : p
|
|
2587
2648
|
})
|
|
@@ -2591,7 +2652,7 @@ function Ir({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2591
2652
|
}
|
|
2592
2653
|
//#endregion
|
|
2593
2654
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2594
|
-
function
|
|
2655
|
+
function zr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2595
2656
|
let o = d(null), [s, c] = f({
|
|
2596
2657
|
activeBreakpoint: null,
|
|
2597
2658
|
width: 0
|
|
@@ -2621,7 +2682,7 @@ function Lr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2621
2682
|
children: n(s)
|
|
2622
2683
|
});
|
|
2623
2684
|
}
|
|
2624
|
-
var
|
|
2685
|
+
var Br = {
|
|
2625
2686
|
row: "_row_1ba2f_3",
|
|
2626
2687
|
title: "_title_1ba2f_48",
|
|
2627
2688
|
leading: "_leading_1ba2f_59",
|
|
@@ -2632,31 +2693,31 @@ var Rr = {
|
|
|
2632
2693
|
};
|
|
2633
2694
|
//#endregion
|
|
2634
2695
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2635
|
-
function
|
|
2696
|
+
function Vr({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2636
2697
|
return /* @__PURE__ */ n("button", {
|
|
2637
2698
|
className: [
|
|
2638
|
-
|
|
2639
|
-
|
|
2699
|
+
Br.row,
|
|
2700
|
+
Br[r],
|
|
2640
2701
|
o
|
|
2641
2702
|
].filter(Boolean).join(" "),
|
|
2642
2703
|
...s,
|
|
2643
2704
|
children: [
|
|
2644
2705
|
i && /* @__PURE__ */ t("span", {
|
|
2645
|
-
className:
|
|
2706
|
+
className: Br.leading,
|
|
2646
2707
|
children: i
|
|
2647
2708
|
}),
|
|
2648
2709
|
/* @__PURE__ */ t("span", {
|
|
2649
|
-
className:
|
|
2710
|
+
className: Br.title,
|
|
2650
2711
|
children: e
|
|
2651
2712
|
}),
|
|
2652
2713
|
a && /* @__PURE__ */ t("span", {
|
|
2653
|
-
className:
|
|
2714
|
+
className: Br.trailing,
|
|
2654
2715
|
children: a
|
|
2655
2716
|
})
|
|
2656
2717
|
]
|
|
2657
2718
|
});
|
|
2658
2719
|
}
|
|
2659
|
-
var
|
|
2720
|
+
var Hr = {
|
|
2660
2721
|
container: "_container_4kjnf_3",
|
|
2661
2722
|
primary: "_primary_4kjnf_14",
|
|
2662
2723
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2670,7 +2731,7 @@ var Br = {
|
|
|
2670
2731
|
};
|
|
2671
2732
|
//#endregion
|
|
2672
2733
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2673
|
-
function
|
|
2734
|
+
function Ur({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: m, ...h }) {
|
|
2674
2735
|
let [g, _] = f(!1), [v, y] = f({}), b = d(null), x = d(null), S = d(null), C = s(() => _(!1), []), w = s(() => {
|
|
2675
2736
|
if (!x.current || !S.current) return;
|
|
2676
2737
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2700,15 +2761,15 @@ function Vr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2700
2761
|
let T = (e) => {
|
|
2701
2762
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2702
2763
|
}, E = [
|
|
2703
|
-
|
|
2704
|
-
|
|
2764
|
+
Hr.container,
|
|
2765
|
+
Hr[i],
|
|
2705
2766
|
m
|
|
2706
2767
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2707
2768
|
ref: S,
|
|
2708
2769
|
role: "dialog",
|
|
2709
2770
|
"aria-label": o,
|
|
2710
2771
|
tabIndex: -1,
|
|
2711
|
-
className: [
|
|
2772
|
+
className: [Hr.dropdown, g ? Hr.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2712
2773
|
style: Object.keys(v).length ? {
|
|
2713
2774
|
...v,
|
|
2714
2775
|
position: "fixed"
|
|
@@ -2727,26 +2788,26 @@ function Vr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2727
2788
|
className: E,
|
|
2728
2789
|
children: [
|
|
2729
2790
|
/* @__PURE__ */ t("button", {
|
|
2730
|
-
className:
|
|
2791
|
+
className: Hr.primary,
|
|
2731
2792
|
disabled: c,
|
|
2732
2793
|
onClick: u,
|
|
2733
2794
|
...h,
|
|
2734
2795
|
children: r
|
|
2735
2796
|
}),
|
|
2736
2797
|
/* @__PURE__ */ t("span", {
|
|
2737
|
-
className:
|
|
2798
|
+
className: Hr.separator,
|
|
2738
2799
|
"aria-hidden": "true"
|
|
2739
2800
|
}),
|
|
2740
2801
|
/* @__PURE__ */ t("button", {
|
|
2741
2802
|
ref: x,
|
|
2742
|
-
className:
|
|
2803
|
+
className: Hr.toggle,
|
|
2743
2804
|
disabled: c,
|
|
2744
2805
|
"aria-label": o,
|
|
2745
2806
|
"aria-haspopup": "dialog",
|
|
2746
2807
|
"aria-expanded": g,
|
|
2747
2808
|
onClick: () => _((e) => !e),
|
|
2748
2809
|
children: /* @__PURE__ */ t("svg", {
|
|
2749
|
-
className:
|
|
2810
|
+
className: Hr.chevron,
|
|
2750
2811
|
width: "16",
|
|
2751
2812
|
height: "16",
|
|
2752
2813
|
viewBox: "0 0 16 16",
|
|
@@ -2765,51 +2826,51 @@ function Vr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2765
2826
|
]
|
|
2766
2827
|
}), g && (typeof document < "u" ? p(D, document.body) : D)] });
|
|
2767
2828
|
}
|
|
2768
|
-
var
|
|
2829
|
+
var Wr = {
|
|
2769
2830
|
toolbar: "_toolbar_1avgl_2",
|
|
2770
2831
|
spacer: "_spacer_1avgl_20"
|
|
2771
2832
|
};
|
|
2772
2833
|
//#endregion
|
|
2773
2834
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
2774
|
-
function
|
|
2835
|
+
function Gr({ children: e, className: n, ...r }) {
|
|
2775
2836
|
return /* @__PURE__ */ t("div", {
|
|
2776
|
-
className: [
|
|
2837
|
+
className: [Wr.toolbar, n].filter(Boolean).join(" "),
|
|
2777
2838
|
...r,
|
|
2778
2839
|
children: e
|
|
2779
2840
|
});
|
|
2780
2841
|
}
|
|
2781
2842
|
//#endregion
|
|
2782
2843
|
//#region src/components/Toolbar/Spacer.tsx
|
|
2783
|
-
function
|
|
2844
|
+
function Kr({ className: e, ...n }) {
|
|
2784
2845
|
return /* @__PURE__ */ t("div", {
|
|
2785
2846
|
"aria-hidden": "true",
|
|
2786
|
-
className: [
|
|
2847
|
+
className: [Wr.spacer, e].filter(Boolean).join(" "),
|
|
2787
2848
|
...n
|
|
2788
2849
|
});
|
|
2789
2850
|
}
|
|
2790
|
-
var
|
|
2851
|
+
var qr = {
|
|
2791
2852
|
linked: "_linked_1tser_3",
|
|
2792
2853
|
vertical: "_vertical_1tser_9"
|
|
2793
2854
|
};
|
|
2794
2855
|
//#endregion
|
|
2795
2856
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
2796
|
-
function
|
|
2857
|
+
function Jr({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
2797
2858
|
return /* @__PURE__ */ t("div", {
|
|
2798
2859
|
className: [
|
|
2799
|
-
|
|
2800
|
-
n ?
|
|
2860
|
+
qr.linked,
|
|
2861
|
+
n ? qr.vertical : null,
|
|
2801
2862
|
r
|
|
2802
2863
|
].filter(Boolean).join(" "),
|
|
2803
2864
|
...i,
|
|
2804
2865
|
children: e
|
|
2805
2866
|
});
|
|
2806
2867
|
}
|
|
2807
|
-
var
|
|
2868
|
+
var Yr = { frame: "_frame_1bq7b_2" };
|
|
2808
2869
|
//#endregion
|
|
2809
2870
|
//#region src/components/Frame/Frame.tsx
|
|
2810
|
-
function
|
|
2871
|
+
function Xr({ children: e, className: n, ...r }) {
|
|
2811
2872
|
return /* @__PURE__ */ t("div", {
|
|
2812
|
-
className: [
|
|
2873
|
+
className: [Yr.frame, n].filter(Boolean).join(" "),
|
|
2813
2874
|
...r,
|
|
2814
2875
|
children: e
|
|
2815
2876
|
});
|
|
@@ -2833,7 +2894,7 @@ var q = {
|
|
|
2833
2894
|
};
|
|
2834
2895
|
//#endregion
|
|
2835
2896
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2836
|
-
function
|
|
2897
|
+
function Zr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: p, ...m }) {
|
|
2837
2898
|
let h = c !== void 0, [g, _] = f(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2838
2899
|
let e = !v;
|
|
2839
2900
|
h || _(e), d?.(e);
|
|
@@ -2908,7 +2969,7 @@ function Yr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
2908
2969
|
})]
|
|
2909
2970
|
});
|
|
2910
2971
|
}
|
|
2911
|
-
var
|
|
2972
|
+
var Qr = {
|
|
2912
2973
|
switcher: "_switcher_2tknm_3",
|
|
2913
2974
|
item: "_item_2tknm_10",
|
|
2914
2975
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -2918,13 +2979,13 @@ var Xr = {
|
|
|
2918
2979
|
active: "_active_2tknm_68",
|
|
2919
2980
|
flat: "_flat_2tknm_121",
|
|
2920
2981
|
round: "_round_2tknm_169"
|
|
2921
|
-
},
|
|
2922
|
-
function
|
|
2923
|
-
let e = c(
|
|
2982
|
+
}, $r = a(null);
|
|
2983
|
+
function ei() {
|
|
2984
|
+
let e = c($r);
|
|
2924
2985
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
2925
2986
|
return e;
|
|
2926
2987
|
}
|
|
2927
|
-
function
|
|
2988
|
+
function ti({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
2928
2989
|
let c = d(null);
|
|
2929
2990
|
function l(e) {
|
|
2930
2991
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2937,7 +2998,7 @@ function $r({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2937
2998
|
else return;
|
|
2938
2999
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2939
3000
|
}
|
|
2940
|
-
return /* @__PURE__ */ t(
|
|
3001
|
+
return /* @__PURE__ */ t($r.Provider, {
|
|
2941
3002
|
value: {
|
|
2942
3003
|
value: e,
|
|
2943
3004
|
onValueChange: n
|
|
@@ -2948,8 +3009,8 @@ function $r({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2948
3009
|
"aria-label": i,
|
|
2949
3010
|
onKeyDown: l,
|
|
2950
3011
|
className: [
|
|
2951
|
-
|
|
2952
|
-
|
|
3012
|
+
Qr.switcher,
|
|
3013
|
+
Qr[r],
|
|
2953
3014
|
o
|
|
2954
3015
|
].filter(Boolean).join(" "),
|
|
2955
3016
|
...s,
|
|
@@ -2959,8 +3020,8 @@ function $r({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2959
3020
|
}
|
|
2960
3021
|
//#endregion
|
|
2961
3022
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
2962
|
-
function
|
|
2963
|
-
let { value: c, onValueChange: l } =
|
|
3023
|
+
function ni({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3024
|
+
let { value: c, onValueChange: l } = ei(), u = c === e, d = i && !r;
|
|
2964
3025
|
return /* @__PURE__ */ n("button", {
|
|
2965
3026
|
type: "button",
|
|
2966
3027
|
role: "radio",
|
|
@@ -2969,26 +3030,26 @@ function ei({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2969
3030
|
disabled: a,
|
|
2970
3031
|
onClick: () => l(e),
|
|
2971
3032
|
className: [
|
|
2972
|
-
|
|
2973
|
-
u ?
|
|
2974
|
-
d ?
|
|
3033
|
+
Qr.item,
|
|
3034
|
+
u ? Qr.active : null,
|
|
3035
|
+
d ? Qr.iconOnly : null,
|
|
2975
3036
|
o
|
|
2976
3037
|
].filter(Boolean).join(" "),
|
|
2977
3038
|
...s,
|
|
2978
3039
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2979
|
-
className:
|
|
3040
|
+
className: Qr.itemIcon,
|
|
2980
3041
|
children: /* @__PURE__ */ t(F, {
|
|
2981
3042
|
icon: i,
|
|
2982
3043
|
size: "md",
|
|
2983
3044
|
"aria-hidden": !0
|
|
2984
3045
|
})
|
|
2985
3046
|
}), r && /* @__PURE__ */ t("span", {
|
|
2986
|
-
className:
|
|
3047
|
+
className: Qr.itemLabel,
|
|
2987
3048
|
children: r
|
|
2988
3049
|
})]
|
|
2989
3050
|
});
|
|
2990
3051
|
}
|
|
2991
|
-
var
|
|
3052
|
+
var ri = {
|
|
2992
3053
|
row: "_row_jl3bc_3",
|
|
2993
3054
|
disabled: "_disabled_jl3bc_41",
|
|
2994
3055
|
leading: "_leading_jl3bc_49",
|
|
@@ -3001,7 +3062,7 @@ var ti = {
|
|
|
3001
3062
|
};
|
|
3002
3063
|
//#endregion
|
|
3003
3064
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3004
|
-
function
|
|
3065
|
+
function ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3005
3066
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3006
3067
|
let t = !_;
|
|
3007
3068
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3012,32 +3073,32 @@ function ni({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3012
3073
|
"aria-labelledby": v,
|
|
3013
3074
|
disabled: c,
|
|
3014
3075
|
className: [
|
|
3015
|
-
|
|
3016
|
-
c ?
|
|
3076
|
+
ri.row,
|
|
3077
|
+
c ? ri.disabled : null,
|
|
3017
3078
|
l
|
|
3018
3079
|
].filter(Boolean).join(" "),
|
|
3019
3080
|
onClick: y,
|
|
3020
3081
|
...p,
|
|
3021
3082
|
children: [
|
|
3022
3083
|
i && /* @__PURE__ */ t("span", {
|
|
3023
|
-
className:
|
|
3084
|
+
className: ri.leading,
|
|
3024
3085
|
children: i
|
|
3025
3086
|
}),
|
|
3026
3087
|
/* @__PURE__ */ n("span", {
|
|
3027
|
-
className:
|
|
3088
|
+
className: ri.content,
|
|
3028
3089
|
id: v,
|
|
3029
3090
|
children: [/* @__PURE__ */ t("span", {
|
|
3030
|
-
className:
|
|
3091
|
+
className: ri.title,
|
|
3031
3092
|
children: e
|
|
3032
3093
|
}), r && /* @__PURE__ */ t("span", {
|
|
3033
|
-
className:
|
|
3094
|
+
className: ri.subtitle,
|
|
3034
3095
|
children: r
|
|
3035
3096
|
})]
|
|
3036
3097
|
}),
|
|
3037
3098
|
/* @__PURE__ */ t("span", {
|
|
3038
|
-
className:
|
|
3099
|
+
className: ri.switchTrack,
|
|
3039
3100
|
"aria-hidden": "true",
|
|
3040
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3101
|
+
children: /* @__PURE__ */ t("span", { className: [ri.switchThumb, _ ? ri.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3041
3102
|
})
|
|
3042
3103
|
]
|
|
3043
3104
|
});
|
|
@@ -3056,7 +3117,7 @@ var J = {
|
|
|
3056
3117
|
};
|
|
3057
3118
|
//#endregion
|
|
3058
3119
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3059
|
-
function
|
|
3120
|
+
function ai({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3060
3121
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3061
3122
|
let t = !_;
|
|
3062
3123
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3116,35 +3177,35 @@ function ri({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3116
3177
|
}
|
|
3117
3178
|
//#endregion
|
|
3118
3179
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3119
|
-
var
|
|
3120
|
-
row:
|
|
3121
|
-
disabled:
|
|
3122
|
-
leading:
|
|
3123
|
-
content:
|
|
3124
|
-
title:
|
|
3125
|
-
subtitle:
|
|
3126
|
-
comboWrap:
|
|
3127
|
-
trigger:
|
|
3128
|
-
triggerOpen:
|
|
3129
|
-
triggerLabel:
|
|
3130
|
-
placeholder:
|
|
3131
|
-
chevron:
|
|
3132
|
-
chevronOpen:
|
|
3133
|
-
list:
|
|
3180
|
+
var oi = "_row_46mn8_3", si = "_disabled_46mn8_16", ci = "_leading_46mn8_23", li = "_content_46mn8_32", ui = "_title_46mn8_40", di = "_subtitle_46mn8_51", fi = "_comboWrap_46mn8_65", pi = "_trigger_46mn8_73", mi = "_triggerOpen_46mn8_126", hi = "_triggerLabel_46mn8_136", gi = "_placeholder_46mn8_144", _i = "_chevron_46mn8_150", vi = "_chevronOpen_46mn8_157", yi = "_list_46mn8_163", bi = "_listDown_46mn8_192", xi = "_listUp_46mn8_196", Si = "_option_46mn8_208", Ci = "_optionActive_46mn8_225", wi = "_optionSelected_46mn8_229", Ti = "_optionDisabled_46mn8_233", Ei = "_optionLabel_46mn8_239", Di = "_checkIcon_46mn8_247", Y = {
|
|
3181
|
+
row: oi,
|
|
3182
|
+
disabled: si,
|
|
3183
|
+
leading: ci,
|
|
3184
|
+
content: li,
|
|
3185
|
+
title: ui,
|
|
3186
|
+
subtitle: di,
|
|
3187
|
+
comboWrap: fi,
|
|
3188
|
+
trigger: pi,
|
|
3189
|
+
triggerOpen: mi,
|
|
3190
|
+
triggerLabel: hi,
|
|
3191
|
+
placeholder: gi,
|
|
3192
|
+
chevron: _i,
|
|
3193
|
+
chevronOpen: vi,
|
|
3194
|
+
list: yi,
|
|
3134
3195
|
"list-in": "_list-in_46mn8_1",
|
|
3135
|
-
listDown:
|
|
3136
|
-
listUp:
|
|
3196
|
+
listDown: bi,
|
|
3197
|
+
listUp: xi,
|
|
3137
3198
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3138
|
-
option:
|
|
3139
|
-
optionActive:
|
|
3140
|
-
optionSelected:
|
|
3141
|
-
optionDisabled:
|
|
3142
|
-
optionLabel:
|
|
3143
|
-
checkIcon:
|
|
3199
|
+
option: Si,
|
|
3200
|
+
optionActive: Ci,
|
|
3201
|
+
optionSelected: wi,
|
|
3202
|
+
optionDisabled: Ti,
|
|
3203
|
+
optionLabel: Ei,
|
|
3204
|
+
checkIcon: Di
|
|
3144
3205
|
};
|
|
3145
3206
|
//#endregion
|
|
3146
3207
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3147
|
-
function
|
|
3208
|
+
function Oi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: p, disabled: m = !1, className: h, ...g }) {
|
|
3148
3209
|
let _ = o !== void 0, [v, y] = f(c), b = _ ? o : v, [x, S] = f(!1), [C, w] = f(-1), [T, E] = f(!1), D = u(), O = u(), k = d(null), A = d(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3149
3210
|
if (!k.current) return;
|
|
3150
3211
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3347,7 +3408,7 @@ var X = {
|
|
|
3347
3408
|
};
|
|
3348
3409
|
//#endregion
|
|
3349
3410
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3350
|
-
function
|
|
3411
|
+
function ki({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: p, onChange: m, ...h }) {
|
|
3351
3412
|
let g = u(), _ = p ?? g, v = r !== void 0, [y, b] = f(String(i)), x = v ? String(r) : y, [S, C] = f(!1), w = d(null), T = S || x.length > 0;
|
|
3352
3413
|
return /* @__PURE__ */ n("div", {
|
|
3353
3414
|
className: [
|
|
@@ -3389,13 +3450,13 @@ function Di({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3389
3450
|
]
|
|
3390
3451
|
});
|
|
3391
3452
|
}
|
|
3392
|
-
var
|
|
3453
|
+
var Ai = { revealButton: "_revealButton_1j8z0_3" };
|
|
3393
3454
|
//#endregion
|
|
3394
3455
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3395
|
-
function
|
|
3456
|
+
function ji({ trailing: r, disabled: i, ...a }) {
|
|
3396
3457
|
let [o, s] = f(!1), c = /* @__PURE__ */ t("button", {
|
|
3397
3458
|
type: "button",
|
|
3398
|
-
className:
|
|
3459
|
+
className: Ai.revealButton,
|
|
3399
3460
|
onClick: (e) => {
|
|
3400
3461
|
e.stopPropagation(), s((e) => !e);
|
|
3401
3462
|
},
|
|
@@ -3408,7 +3469,7 @@ function ki({ trailing: r, disabled: i, ...a }) {
|
|
|
3408
3469
|
"aria-hidden": !0
|
|
3409
3470
|
})
|
|
3410
3471
|
});
|
|
3411
|
-
return /* @__PURE__ */ t(
|
|
3472
|
+
return /* @__PURE__ */ t(ki, {
|
|
3412
3473
|
...a,
|
|
3413
3474
|
type: o ? "text" : "password",
|
|
3414
3475
|
disabled: i,
|
|
@@ -3428,16 +3489,16 @@ var Z = {
|
|
|
3428
3489
|
};
|
|
3429
3490
|
//#endregion
|
|
3430
3491
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3431
|
-
function
|
|
3492
|
+
function Mi(e) {
|
|
3432
3493
|
let t = e.toString(), n = t.indexOf(".");
|
|
3433
3494
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3434
3495
|
}
|
|
3435
|
-
function
|
|
3496
|
+
function Ni(e, t, n) {
|
|
3436
3497
|
return Math.min(n, Math.max(t, e));
|
|
3437
3498
|
}
|
|
3438
|
-
function
|
|
3439
|
-
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ??
|
|
3440
|
-
let t = parseFloat(
|
|
3499
|
+
function Pi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: p = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3500
|
+
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ?? Mi(p), C = u(), w = s((e) => {
|
|
3501
|
+
let t = parseFloat(Ni(e, l, d).toFixed(S));
|
|
3441
3502
|
v || b(t), c?.(t);
|
|
3442
3503
|
}, [
|
|
3443
3504
|
v,
|
|
@@ -3541,50 +3602,50 @@ function Mi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3541
3602
|
}
|
|
3542
3603
|
//#endregion
|
|
3543
3604
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3544
|
-
var
|
|
3545
|
-
view:
|
|
3546
|
-
page:
|
|
3547
|
-
pageHeader:
|
|
3548
|
-
pageTitle:
|
|
3549
|
-
pageContent:
|
|
3550
|
-
enterForward:
|
|
3605
|
+
var Fi = "_view_1r1om_3", Ii = "_page_1r1om_12", Li = "_pageHeader_1r1om_23", Ri = "_pageTitle_1r1om_34", zi = "_pageContent_1r1om_43", Bi = "_enterForward_1r1om_52", Vi = "_enterBack_1r1om_56", Hi = {
|
|
3606
|
+
view: Fi,
|
|
3607
|
+
page: Ii,
|
|
3608
|
+
pageHeader: Li,
|
|
3609
|
+
pageTitle: Ri,
|
|
3610
|
+
pageContent: zi,
|
|
3611
|
+
enterForward: Bi,
|
|
3551
3612
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3552
|
-
enterBack:
|
|
3613
|
+
enterBack: Vi,
|
|
3553
3614
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3554
|
-
},
|
|
3615
|
+
}, Ui = a({
|
|
3555
3616
|
navigate: () => {},
|
|
3556
3617
|
pop: () => {},
|
|
3557
3618
|
canGoBack: !1,
|
|
3558
3619
|
currentTag: "",
|
|
3559
3620
|
direction: "forward"
|
|
3560
3621
|
});
|
|
3561
|
-
function
|
|
3562
|
-
return c(
|
|
3622
|
+
function Wi() {
|
|
3623
|
+
return c(Ui);
|
|
3563
3624
|
}
|
|
3564
|
-
function
|
|
3565
|
-
let { currentTag: s, direction: l } = c(
|
|
3625
|
+
function Gi({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3626
|
+
let { currentTag: s, direction: l } = c(Ui);
|
|
3566
3627
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3567
3628
|
className: [
|
|
3568
|
-
|
|
3569
|
-
l === "forward" ?
|
|
3629
|
+
Hi.page,
|
|
3630
|
+
l === "forward" ? Hi.enterForward : Hi.enterBack,
|
|
3570
3631
|
a
|
|
3571
3632
|
].filter(Boolean).join(" "),
|
|
3572
3633
|
...o,
|
|
3573
3634
|
children: [/* @__PURE__ */ t("div", {
|
|
3574
|
-
className:
|
|
3635
|
+
className: Hi.pageHeader,
|
|
3575
3636
|
children: /* @__PURE__ */ t("span", {
|
|
3576
|
-
className:
|
|
3637
|
+
className: Hi.pageTitle,
|
|
3577
3638
|
children: r
|
|
3578
3639
|
})
|
|
3579
3640
|
}), /* @__PURE__ */ t("div", {
|
|
3580
|
-
className:
|
|
3641
|
+
className: Hi.pageContent,
|
|
3581
3642
|
children: i
|
|
3582
3643
|
})]
|
|
3583
3644
|
}) : null;
|
|
3584
3645
|
}
|
|
3585
|
-
function
|
|
3646
|
+
function Ki({ initialPage: e, children: n, className: r, ...i }) {
|
|
3586
3647
|
let [a, o] = f([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = f("forward");
|
|
3587
|
-
return /* @__PURE__ */ t(
|
|
3648
|
+
return /* @__PURE__ */ t(Ui.Provider, {
|
|
3588
3649
|
value: {
|
|
3589
3650
|
navigate: (e) => {
|
|
3590
3651
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3597,7 +3658,7 @@ function Wi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3597
3658
|
direction: l
|
|
3598
3659
|
},
|
|
3599
3660
|
children: /* @__PURE__ */ t("div", {
|
|
3600
|
-
className: [
|
|
3661
|
+
className: [Hi.view, r].filter(Boolean).join(" "),
|
|
3601
3662
|
...i,
|
|
3602
3663
|
children: n
|
|
3603
3664
|
})
|
|
@@ -3605,20 +3666,20 @@ function Wi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3605
3666
|
}
|
|
3606
3667
|
//#endregion
|
|
3607
3668
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3608
|
-
var
|
|
3609
|
-
backdrop:
|
|
3669
|
+
var qi = "_backdrop_zzv98_3", Ji = "_sheet_zzv98_26", Yi = "_handle_zzv98_49", Xi = "_handleBar_zzv98_56", Zi = "_title_zzv98_66", Qi = "_content_zzv98_79", $i = {
|
|
3670
|
+
backdrop: qi,
|
|
3610
3671
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3611
|
-
sheet:
|
|
3672
|
+
sheet: Ji,
|
|
3612
3673
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3613
|
-
handle:
|
|
3614
|
-
handleBar:
|
|
3615
|
-
title:
|
|
3616
|
-
content:
|
|
3617
|
-
},
|
|
3618
|
-
function
|
|
3674
|
+
handle: Yi,
|
|
3675
|
+
handleBar: Xi,
|
|
3676
|
+
title: Zi,
|
|
3677
|
+
content: Qi
|
|
3678
|
+
}, ea = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3679
|
+
function ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...f }) {
|
|
3619
3680
|
let m = d(null), h = u(), g = d(null);
|
|
3620
3681
|
l(() => {
|
|
3621
|
-
e ? (g.current = document.activeElement, (m.current?.querySelector(
|
|
3682
|
+
e ? (g.current = document.activeElement, (m.current?.querySelector(ea))?.focus()) : g.current?.focus();
|
|
3622
3683
|
}, [e]);
|
|
3623
3684
|
let _ = s((e) => {
|
|
3624
3685
|
if (e.key === "Escape") {
|
|
@@ -3626,14 +3687,14 @@ function $i({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3626
3687
|
return;
|
|
3627
3688
|
}
|
|
3628
3689
|
if (e.key !== "Tab") return;
|
|
3629
|
-
let t = Array.from(m.current?.querySelectorAll(
|
|
3690
|
+
let t = Array.from(m.current?.querySelectorAll(ea) ?? []);
|
|
3630
3691
|
if (t.length === 0) return;
|
|
3631
3692
|
let n = t[0], r = t[t.length - 1];
|
|
3632
3693
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3633
3694
|
}, [a]);
|
|
3634
3695
|
if (!e) return null;
|
|
3635
3696
|
let v = /* @__PURE__ */ t("div", {
|
|
3636
|
-
className:
|
|
3697
|
+
className: $i.backdrop,
|
|
3637
3698
|
onClick: o ? a : void 0,
|
|
3638
3699
|
"aria-hidden": "true",
|
|
3639
3700
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3641,23 +3702,23 @@ function $i({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3641
3702
|
role: "dialog",
|
|
3642
3703
|
"aria-modal": "true",
|
|
3643
3704
|
"aria-labelledby": r ? h : void 0,
|
|
3644
|
-
className: [
|
|
3705
|
+
className: [$i.sheet, c].filter(Boolean).join(" "),
|
|
3645
3706
|
onKeyDown: _,
|
|
3646
3707
|
onClick: (e) => e.stopPropagation(),
|
|
3647
3708
|
...f,
|
|
3648
3709
|
children: [
|
|
3649
3710
|
/* @__PURE__ */ t("div", {
|
|
3650
|
-
className:
|
|
3711
|
+
className: $i.handle,
|
|
3651
3712
|
"aria-hidden": "true",
|
|
3652
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3713
|
+
children: /* @__PURE__ */ t("div", { className: $i.handleBar })
|
|
3653
3714
|
}),
|
|
3654
3715
|
r && /* @__PURE__ */ t("div", {
|
|
3655
3716
|
id: h,
|
|
3656
|
-
className:
|
|
3717
|
+
className: $i.title,
|
|
3657
3718
|
children: r
|
|
3658
3719
|
}),
|
|
3659
3720
|
i && /* @__PURE__ */ t("div", {
|
|
3660
|
-
className:
|
|
3721
|
+
className: $i.content,
|
|
3661
3722
|
children: i
|
|
3662
3723
|
})
|
|
3663
3724
|
]
|
|
@@ -3679,7 +3740,7 @@ var Q = {
|
|
|
3679
3740
|
};
|
|
3680
3741
|
//#endregion
|
|
3681
3742
|
//#region src/components/Carousel/Carousel.tsx
|
|
3682
|
-
function
|
|
3743
|
+
function na({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3683
3744
|
return /* @__PURE__ */ t("div", {
|
|
3684
3745
|
className: [Q.indicatorDots, i].filter(Boolean).join(" "),
|
|
3685
3746
|
role: "tablist",
|
|
@@ -3695,7 +3756,7 @@ function ea({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3695
3756
|
}, i))
|
|
3696
3757
|
});
|
|
3697
3758
|
}
|
|
3698
|
-
function
|
|
3759
|
+
function ra({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3699
3760
|
return /* @__PURE__ */ t("div", {
|
|
3700
3761
|
className: [Q.indicatorLines, i].filter(Boolean).join(" "),
|
|
3701
3762
|
role: "tablist",
|
|
@@ -3711,7 +3772,7 @@ function ta({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3711
3772
|
}, i))
|
|
3712
3773
|
});
|
|
3713
3774
|
}
|
|
3714
|
-
function
|
|
3775
|
+
function ia({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...p }) {
|
|
3715
3776
|
let m = d(null), h = r.count(e), [g, _] = f(0), v = c !== void 0, y = v ? c : g;
|
|
3716
3777
|
l(() => {
|
|
3717
3778
|
v && b(c, "smooth");
|
|
@@ -3785,49 +3846,49 @@ function na({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3785
3846
|
}
|
|
3786
3847
|
//#endregion
|
|
3787
3848
|
//#region src/components/Bin/Bin.tsx
|
|
3788
|
-
function
|
|
3849
|
+
function aa({ children: e, ...n }) {
|
|
3789
3850
|
return /* @__PURE__ */ t("div", {
|
|
3790
3851
|
...n,
|
|
3791
3852
|
children: e
|
|
3792
3853
|
});
|
|
3793
3854
|
}
|
|
3794
|
-
var
|
|
3855
|
+
var oa = {
|
|
3795
3856
|
content: "_content_1xkwk_3",
|
|
3796
3857
|
icon: "_icon_1xkwk_9",
|
|
3797
3858
|
label: "_label_1xkwk_15"
|
|
3798
3859
|
};
|
|
3799
3860
|
//#endregion
|
|
3800
3861
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3801
|
-
function
|
|
3862
|
+
function sa({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3802
3863
|
return /* @__PURE__ */ n("span", {
|
|
3803
3864
|
className: [
|
|
3804
|
-
|
|
3805
|
-
i === "end" ?
|
|
3865
|
+
oa.content,
|
|
3866
|
+
i === "end" ? oa.iconEnd : null,
|
|
3806
3867
|
a
|
|
3807
3868
|
].filter(Boolean).join(" "),
|
|
3808
3869
|
...o,
|
|
3809
3870
|
children: [
|
|
3810
3871
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3811
|
-
className:
|
|
3872
|
+
className: oa.icon,
|
|
3812
3873
|
"aria-hidden": "true",
|
|
3813
3874
|
children: e
|
|
3814
3875
|
}),
|
|
3815
3876
|
/* @__PURE__ */ t("span", {
|
|
3816
|
-
className:
|
|
3877
|
+
className: oa.label,
|
|
3817
3878
|
children: r
|
|
3818
3879
|
}),
|
|
3819
3880
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3820
|
-
className:
|
|
3881
|
+
className: oa.icon,
|
|
3821
3882
|
"aria-hidden": "true",
|
|
3822
3883
|
children: e
|
|
3823
3884
|
})
|
|
3824
3885
|
]
|
|
3825
3886
|
});
|
|
3826
3887
|
}
|
|
3827
|
-
var
|
|
3888
|
+
var ca = {
|
|
3828
3889
|
label: "_label_h3znl_3",
|
|
3829
3890
|
key: "_key_h3znl_9"
|
|
3830
|
-
},
|
|
3891
|
+
}, la = {
|
|
3831
3892
|
ctrl: "⌃",
|
|
3832
3893
|
control: "⌃",
|
|
3833
3894
|
shift: "⇧",
|
|
@@ -3855,22 +3916,22 @@ var oa = {
|
|
|
3855
3916
|
home: "⇱",
|
|
3856
3917
|
end: "⇲"
|
|
3857
3918
|
};
|
|
3858
|
-
function
|
|
3919
|
+
function ua({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3859
3920
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3860
3921
|
return /* @__PURE__ */ t("span", {
|
|
3861
|
-
className: [
|
|
3922
|
+
className: [ca.label, r].filter(Boolean).join(" "),
|
|
3862
3923
|
"aria-label": e,
|
|
3863
3924
|
...i,
|
|
3864
3925
|
children: a.map((e, r) => {
|
|
3865
|
-
let i = n ?
|
|
3926
|
+
let i = n ? la[e.toLowerCase()] ?? e : e;
|
|
3866
3927
|
return /* @__PURE__ */ t("kbd", {
|
|
3867
|
-
className:
|
|
3928
|
+
className: ca.key,
|
|
3868
3929
|
children: i
|
|
3869
3930
|
}, r);
|
|
3870
3931
|
})
|
|
3871
3932
|
});
|
|
3872
3933
|
}
|
|
3873
|
-
var
|
|
3934
|
+
var da = {
|
|
3874
3935
|
toolbarView: "_toolbarView_134hf_3",
|
|
3875
3936
|
top: "_top_134hf_11",
|
|
3876
3937
|
content: "_content_134hf_16",
|
|
@@ -3878,47 +3939,47 @@ var la = {
|
|
|
3878
3939
|
};
|
|
3879
3940
|
//#endregion
|
|
3880
3941
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3881
|
-
function
|
|
3942
|
+
function fa({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3882
3943
|
return /* @__PURE__ */ n("div", {
|
|
3883
|
-
className: [
|
|
3944
|
+
className: [da.toolbarView, a].filter(Boolean).join(" "),
|
|
3884
3945
|
...o,
|
|
3885
3946
|
children: [
|
|
3886
3947
|
e && /* @__PURE__ */ t("div", {
|
|
3887
|
-
className:
|
|
3948
|
+
className: da.top,
|
|
3888
3949
|
children: e
|
|
3889
3950
|
}),
|
|
3890
3951
|
/* @__PURE__ */ t("div", {
|
|
3891
|
-
className:
|
|
3952
|
+
className: da.content,
|
|
3892
3953
|
children: i
|
|
3893
3954
|
}),
|
|
3894
3955
|
r && /* @__PURE__ */ t("div", {
|
|
3895
|
-
className:
|
|
3956
|
+
className: da.bottom,
|
|
3896
3957
|
children: r
|
|
3897
3958
|
})
|
|
3898
3959
|
]
|
|
3899
3960
|
});
|
|
3900
3961
|
}
|
|
3901
|
-
var
|
|
3962
|
+
var pa = {
|
|
3902
3963
|
windowTitle: "_windowTitle_zm877_3",
|
|
3903
3964
|
title: "_title_zm877_11",
|
|
3904
3965
|
subtitle: "_subtitle_zm877_24"
|
|
3905
3966
|
};
|
|
3906
3967
|
//#endregion
|
|
3907
3968
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
3908
|
-
function
|
|
3969
|
+
function ma({ title: e, subtitle: r, className: i, ...a }) {
|
|
3909
3970
|
return /* @__PURE__ */ n("div", {
|
|
3910
|
-
className: [
|
|
3971
|
+
className: [pa.windowTitle, i].filter(Boolean).join(" "),
|
|
3911
3972
|
...a,
|
|
3912
3973
|
children: [/* @__PURE__ */ t("span", {
|
|
3913
|
-
className:
|
|
3974
|
+
className: pa.title,
|
|
3914
3975
|
children: e
|
|
3915
3976
|
}), r && /* @__PURE__ */ t("span", {
|
|
3916
|
-
className:
|
|
3977
|
+
className: pa.subtitle,
|
|
3917
3978
|
children: r
|
|
3918
3979
|
})]
|
|
3919
3980
|
});
|
|
3920
3981
|
}
|
|
3921
|
-
var
|
|
3982
|
+
var ha = {
|
|
3922
3983
|
group: "_group_17s4f_3",
|
|
3923
3984
|
header: "_header_17s4f_11",
|
|
3924
3985
|
headerText: "_headerText_17s4f_17",
|
|
@@ -3929,85 +3990,85 @@ var pa = {
|
|
|
3929
3990
|
};
|
|
3930
3991
|
//#endregion
|
|
3931
3992
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
3932
|
-
function
|
|
3993
|
+
function ga({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
3933
3994
|
let c = e || r || i;
|
|
3934
3995
|
return /* @__PURE__ */ n("div", {
|
|
3935
|
-
className: [
|
|
3996
|
+
className: [ha.group, o].filter(Boolean).join(" "),
|
|
3936
3997
|
...s,
|
|
3937
3998
|
children: [c && /* @__PURE__ */ n("div", {
|
|
3938
|
-
className:
|
|
3999
|
+
className: ha.header,
|
|
3939
4000
|
children: [/* @__PURE__ */ n("div", {
|
|
3940
|
-
className:
|
|
4001
|
+
className: ha.headerText,
|
|
3941
4002
|
children: [e && /* @__PURE__ */ t("span", {
|
|
3942
|
-
className:
|
|
4003
|
+
className: ha.title,
|
|
3943
4004
|
children: e
|
|
3944
4005
|
}), r && /* @__PURE__ */ t("span", {
|
|
3945
|
-
className:
|
|
4006
|
+
className: ha.description,
|
|
3946
4007
|
children: r
|
|
3947
4008
|
})]
|
|
3948
4009
|
}), i && /* @__PURE__ */ t("div", {
|
|
3949
|
-
className:
|
|
4010
|
+
className: ha.suffix,
|
|
3950
4011
|
children: i
|
|
3951
4012
|
})]
|
|
3952
4013
|
}), /* @__PURE__ */ t("div", {
|
|
3953
|
-
className:
|
|
4014
|
+
className: ha.content,
|
|
3954
4015
|
children: a
|
|
3955
4016
|
})]
|
|
3956
4017
|
});
|
|
3957
4018
|
}
|
|
3958
|
-
var
|
|
4019
|
+
var _a = {
|
|
3959
4020
|
page: "_page_gt42j_3",
|
|
3960
4021
|
inner: "_inner_gt42j_10"
|
|
3961
4022
|
};
|
|
3962
4023
|
//#endregion
|
|
3963
4024
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
3964
|
-
function
|
|
4025
|
+
function va({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
3965
4026
|
return /* @__PURE__ */ t("div", {
|
|
3966
|
-
className: [
|
|
4027
|
+
className: [_a.page, i].filter(Boolean).join(" "),
|
|
3967
4028
|
role: "tabpanel",
|
|
3968
4029
|
...a,
|
|
3969
4030
|
children: /* @__PURE__ */ t("div", {
|
|
3970
|
-
className:
|
|
4031
|
+
className: _a.inner,
|
|
3971
4032
|
children: r
|
|
3972
4033
|
})
|
|
3973
4034
|
});
|
|
3974
4035
|
}
|
|
3975
4036
|
//#endregion
|
|
3976
4037
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
3977
|
-
var
|
|
3978
|
-
backdrop:
|
|
4038
|
+
var ya = "_backdrop_1u1bd_3", ba = "_dialog_1u1bd_26", xa = "_dialogMulti_1u1bd_46", Sa = "_header_1u1bd_63", Ca = "_closeBtn_1u1bd_73", wa = "_title_1u1bd_102", Ta = "_searchWrap_1u1bd_112", Ea = "_searchInput_1u1bd_116", Da = "_body_1u1bd_143", Oa = "_sidebar_1u1bd_152", ka = "_navList_1u1bd_160", Aa = "_navItem_1u1bd_169", ja = "_navItemActive_1u1bd_190", Ma = "_navIcon_1u1bd_205", Na = "_navLabel_1u1bd_211", Pa = "_pageWrap_1u1bd_221", $ = {
|
|
4039
|
+
backdrop: ya,
|
|
3979
4040
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
3980
|
-
dialog:
|
|
4041
|
+
dialog: ba,
|
|
3981
4042
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
3982
|
-
dialogMulti:
|
|
3983
|
-
header:
|
|
3984
|
-
closeBtn:
|
|
3985
|
-
title:
|
|
3986
|
-
searchWrap:
|
|
3987
|
-
searchInput:
|
|
3988
|
-
body:
|
|
3989
|
-
sidebar:
|
|
3990
|
-
navList:
|
|
3991
|
-
navItem:
|
|
3992
|
-
navItemActive:
|
|
3993
|
-
navIcon:
|
|
3994
|
-
navLabel:
|
|
3995
|
-
pageWrap:
|
|
3996
|
-
},
|
|
3997
|
-
function
|
|
4043
|
+
dialogMulti: xa,
|
|
4044
|
+
header: Sa,
|
|
4045
|
+
closeBtn: Ca,
|
|
4046
|
+
title: wa,
|
|
4047
|
+
searchWrap: Ta,
|
|
4048
|
+
searchInput: Ea,
|
|
4049
|
+
body: Da,
|
|
4050
|
+
sidebar: Oa,
|
|
4051
|
+
navList: ka,
|
|
4052
|
+
navItem: Aa,
|
|
4053
|
+
navItemActive: ja,
|
|
4054
|
+
navIcon: Ma,
|
|
4055
|
+
navLabel: Na,
|
|
4056
|
+
pageWrap: Pa
|
|
4057
|
+
}, Fa = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4058
|
+
function Ia(e, t) {
|
|
3998
4059
|
if (e.key !== "Tab") return;
|
|
3999
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4060
|
+
let n = Array.from(t.current?.querySelectorAll(Fa) ?? []);
|
|
4000
4061
|
if (!n.length) return;
|
|
4001
4062
|
let r = n[0], i = n[n.length - 1];
|
|
4002
4063
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4003
4064
|
}
|
|
4004
|
-
function
|
|
4065
|
+
function La({ open: e, onClose: a, children: c, searchable: m = !0, className: h, ...g }) {
|
|
4005
4066
|
let _ = d(null), v = d(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = f(0), [C, w] = f("");
|
|
4006
4067
|
l(() => {
|
|
4007
4068
|
if (e) {
|
|
4008
4069
|
S(0), w("");
|
|
4009
4070
|
let e = requestAnimationFrame(() => {
|
|
4010
|
-
m && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4071
|
+
m && v.current ? v.current.focus() : (_.current?.querySelector(Fa))?.focus();
|
|
4011
4072
|
});
|
|
4012
4073
|
return () => cancelAnimationFrame(e);
|
|
4013
4074
|
}
|
|
@@ -4017,7 +4078,7 @@ function Fa({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4017
4078
|
e.stopPropagation(), a();
|
|
4018
4079
|
return;
|
|
4019
4080
|
}
|
|
4020
|
-
|
|
4081
|
+
Ia(e, _);
|
|
4021
4082
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4022
4083
|
return e ? p(/* @__PURE__ */ t("div", {
|
|
4023
4084
|
className: $.backdrop,
|
|
@@ -4104,6 +4165,6 @@ function Fa({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4104
4165
|
}), document.body) : null;
|
|
4105
4166
|
}
|
|
4106
4167
|
//#endregion
|
|
4107
|
-
export { Tt as ActionRow, te as Avatar, Ae as Badge, we as Banner,
|
|
4168
|
+
export { Tt as ActionRow, te as Avatar, Ae as Badge, we as Banner, aa as Bin, ta as BottomSheet, cr as Box, Dt as BoxedList, zr as BreakpointBin, h as Button, sa as ButtonContent, Vr as ButtonRow, k as Card, ia as Carousel, na as CarouselIndicatorDots, ra as CarouselIndicatorLines, ai as CheckRow, se as Checkbox, fr as Chip, Xn as Clamp, Oi as ComboRow, bn as Dialog, zn as Dropdown, ki as EntryRow, Zr as ExpanderRow, Oe as Footer, Xr as Frame, Ve as GNOME_BREAKPOINTS, Ee as HeaderBar, F as Icon, ti as InlineViewSwitcher, ni as InlineViewSwitcherItem, nr as Link, Jr as LinkedGroup, Gi as NavigationPage, Zn as NavigationSplitView, Ki as NavigationView, Qn as OverlaySplitView, ji as PasswordEntryRow, Jn as Popover, La as PreferencesDialog, ga as PreferencesGroup, va as PreferencesPage, pe as ProgressBar, de as RadioButton, Re as SearchBar, re as Separator, ua as ShortcutLabel, Nr as ShortcutsDialog, dt as Sidebar, st as SidebarCollapsedContext, _t as SidebarItem, ft as SidebarSection, Un as Slider, Kr as Spacer, xt as SpinButton, Pi as SpinRow, j as Spinner, Ur as SplitButton, Be as StatusPage, ae as Switch, ii as SwitchRow, St as TabBar, Ct as TabItem, wt as TabPanel, T as Text, le as TextField, Bt as Toast, Vt as Toaster, or as ToggleGroup, sr as ToggleGroupItem, Gr as Toolbar, fa as ToolbarView, gt as Tooltip, kt as ViewSwitcher, er as ViewSwitcherBar, At as ViewSwitcherItem, Lr as ViewSwitcherSidebar, Rr as ViewSwitcherSidebarItem, ma as WindowTitle, ur as WrapBox, He as useBreakpoint, Wi as useNavigation, ct as useSidebarCollapsed };
|
|
4108
4169
|
|
|
4109
4170
|
//# sourceMappingURL=index.js.map
|