@usace/groundwork 3.14.10 → 3.14.11
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/groundwork.es.js +118 -113
- package/dist/groundwork.umd.js +2 -2
- package/package.json +1 -1
package/dist/groundwork.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f, jsxs as F, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import E, { useMemo as L, forwardRef as ft, createContext as ne, useContext as Y, useRef as R, useState as
|
|
3
|
+
import E, { useMemo as L, forwardRef as ft, createContext as ne, useContext as Y, useRef as R, useState as V, useEffect as ee, useCallback as de, useLayoutEffect as $r, Fragment as he, isValidElement as ri, cloneElement as ni, createElement as oi, useId as ce, useReducer as wt, useSyncExternalStore as li, createRef as Gt } from "react";
|
|
4
4
|
import * as Zt from "react-dom";
|
|
5
5
|
import { createPortal as ii, flushSync as Ct } from "react-dom";
|
|
6
6
|
const _r = "-", ai = (e) => {
|
|
@@ -2286,7 +2286,7 @@ const le = (e) => {
|
|
|
2286
2286
|
const n = t[r];
|
|
2287
2287
|
n !== void 0 && (e[r] = (e[r] || []).concat(n));
|
|
2288
2288
|
}
|
|
2289
|
-
}, zi = (e, ...t) => typeof e == "function" ? Bn(zn, e, ...t) : Bn(() => Hi(zn(), e), ...t), Un = "gw-", Ui = /^(-?)(gw\w*-)(-?)(.*)/,
|
|
2289
|
+
}, zi = (e, ...t) => typeof e == "function" ? Bn(zn, e, ...t) : Bn(() => Hi(zn(), e), ...t), Un = "gw-", Ui = /^(-?)(gw\w*-)(-?)(.*)/, U = zi({
|
|
2290
2290
|
prefix: Un,
|
|
2291
2291
|
experimentalParseClassName: ({ className: e, parseClassName: t }) => {
|
|
2292
2292
|
const r = t(e), n = r.baseClassName.match(Ui), o = Xi(r.baseClassName, n), l = n ? n[4] : r.baseClassName, a = l.startsWith("-") ? l.substring(1) : l, i = Un + a, s = (o ? "-" : "") + i;
|
|
@@ -2297,7 +2297,7 @@ const le = (e) => {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
}), Xi = (e, t) => t ? t[1] || t[3] : e.startsWith("-");
|
|
2299
2299
|
function Io({ className: e, children: t, fluid: r }) {
|
|
2300
|
-
const n = L(() =>
|
|
2300
|
+
const n = L(() => U(
|
|
2301
2301
|
"gw-w-full gw-mx-auto gw-px-4 gw-box-border",
|
|
2302
2302
|
r ? "gw-max-w-screen" : "gw-max-w-screen-2xl",
|
|
2303
2303
|
e
|
|
@@ -2305,7 +2305,7 @@ function Io({ className: e, children: t, fluid: r }) {
|
|
|
2305
2305
|
return /* @__PURE__ */ f("div", { className: n, children: t });
|
|
2306
2306
|
}
|
|
2307
2307
|
const Xn = ft(function({ children: t, className: r, title: n, customTitle: o, id: l }, a) {
|
|
2308
|
-
const i = o, s = "gw-mb-10 gw-relative", u = "before:gw-block before:gw-bg-usace-box-light-gray before:gw-h-8 before:gw-mb-[-12px] before:gw-w-full", c = "after:gw-block after:gw-absolute after:gw-top-0 after:gw-left-0 after:gw-bg-usace-box-red after:gw-h-[5px] after:gw-w-[50px] after:gw-z-[2]", w = L(() =>
|
|
2308
|
+
const i = o, s = "gw-mb-10 gw-relative", u = "before:gw-block before:gw-bg-usace-box-light-gray before:gw-h-8 before:gw-mb-[-12px] before:gw-w-full", c = "after:gw-block after:gw-absolute after:gw-top-0 after:gw-left-0 after:gw-bg-usace-box-red after:gw-h-[5px] after:gw-w-[50px] after:gw-z-[2]", w = L(() => U(s, u, c, r), [r]);
|
|
2309
2309
|
return /* @__PURE__ */ F("div", { ref: a, className: w, id: l, children: [
|
|
2310
2310
|
/* @__PURE__ */ F("h2", { className: "gw-font-bold gw-mb-5 gw-text-[1.3rem]", children: [
|
|
2311
2311
|
n,
|
|
@@ -2323,7 +2323,7 @@ function Vn({ className: e, ...t }) {
|
|
|
2323
2323
|
{
|
|
2324
2324
|
...t,
|
|
2325
2325
|
"data-slot": "text",
|
|
2326
|
-
className:
|
|
2326
|
+
className: U(
|
|
2327
2327
|
"gw-text-sm/6 gw-text-zinc-500 md:gw-text-base/6 dark:gw-text-zinc-400",
|
|
2328
2328
|
e
|
|
2329
2329
|
)
|
|
@@ -2335,7 +2335,7 @@ function lf({ className: e, ...t }) {
|
|
|
2335
2335
|
ge,
|
|
2336
2336
|
{
|
|
2337
2337
|
...t,
|
|
2338
|
-
className:
|
|
2338
|
+
className: U(
|
|
2339
2339
|
"gw-text-zinc-950 gw-underline gw-decoration-zinc-950/50 data-[hover]:gw-decoration-zinc-950 dark:gw-text-white dark:gw-decoration-white/50 dark:data-[hover]:decoration-white",
|
|
2340
2340
|
e
|
|
2341
2341
|
)
|
|
@@ -2347,7 +2347,7 @@ function af({ className: e, ...t }) {
|
|
|
2347
2347
|
"strong",
|
|
2348
2348
|
{
|
|
2349
2349
|
...t,
|
|
2350
|
-
className:
|
|
2350
|
+
className: U(
|
|
2351
2351
|
"gw-font-medium gw-text-zinc-950 dark:gw-text-white",
|
|
2352
2352
|
e
|
|
2353
2353
|
)
|
|
@@ -2359,7 +2359,7 @@ function sf({ className: e, ...t }) {
|
|
|
2359
2359
|
"code",
|
|
2360
2360
|
{
|
|
2361
2361
|
...t,
|
|
2362
|
-
className:
|
|
2362
|
+
className: U(
|
|
2363
2363
|
"gw-rounded gw-border gw-border-zinc-950/10 gw-bg-zinc-950/[2.5%] gw-px-0.5 gw-text-sm gw-font-medium gw-text-zinc-950 sm:gw-text-[0.8125rem] dark:gw-border-white/20 dark:gw-bg-white/5 dark:gw-text-white",
|
|
2364
2364
|
e
|
|
2365
2365
|
)
|
|
@@ -2367,23 +2367,23 @@ function sf({ className: e, ...t }) {
|
|
|
2367
2367
|
);
|
|
2368
2368
|
}
|
|
2369
2369
|
function cf({ className: e, children: t, ...r }) {
|
|
2370
|
-
const n = L(() =>
|
|
2370
|
+
const n = L(() => U("gw-text-3xl gw-font-bold", e), [e]);
|
|
2371
2371
|
return /* @__PURE__ */ f("h1", { className: n, ...r, children: t });
|
|
2372
2372
|
}
|
|
2373
2373
|
function uf({ className: e, children: t, ...r }) {
|
|
2374
|
-
const n = L(() =>
|
|
2374
|
+
const n = L(() => U("gw-text-2xl gw-font-bold", e), [e]);
|
|
2375
2375
|
return /* @__PURE__ */ f("h2", { className: n, ...r, children: t });
|
|
2376
2376
|
}
|
|
2377
2377
|
function df({ className: e, children: t, ...r }) {
|
|
2378
|
-
const n = L(() =>
|
|
2378
|
+
const n = L(() => U("gw-text-xl gw-font-bold", e), [e]);
|
|
2379
2379
|
return /* @__PURE__ */ f("h3", { className: n, ...r, children: t });
|
|
2380
2380
|
}
|
|
2381
2381
|
function gf({ className: e, children: t, ...r }) {
|
|
2382
|
-
const n = L(() =>
|
|
2382
|
+
const n = L(() => U("gw-text-lg gw-font-bold", e), [e]);
|
|
2383
2383
|
return /* @__PURE__ */ f("h4", { className: n, ...r, children: t });
|
|
2384
2384
|
}
|
|
2385
2385
|
function ji() {
|
|
2386
|
-
const e = R(null), [t, r] =
|
|
2386
|
+
const e = R(null), [t, r] = V(!1);
|
|
2387
2387
|
return ee(() => {
|
|
2388
2388
|
const n = e.current;
|
|
2389
2389
|
if (!n) return;
|
|
@@ -2432,7 +2432,7 @@ function ff({
|
|
|
2432
2432
|
"div",
|
|
2433
2433
|
{
|
|
2434
2434
|
...u,
|
|
2435
|
-
className:
|
|
2435
|
+
className: U(
|
|
2436
2436
|
"gw--mx-[--gutter] gw-overflow-x-auto gw-whitespace-nowrap",
|
|
2437
2437
|
"gw-relative",
|
|
2438
2438
|
o
|
|
@@ -2442,7 +2442,7 @@ function ff({
|
|
|
2442
2442
|
"div",
|
|
2443
2443
|
{
|
|
2444
2444
|
ref: c,
|
|
2445
|
-
className:
|
|
2445
|
+
className: U(
|
|
2446
2446
|
"gw-inline-block gw-min-w-full gw-align-middle",
|
|
2447
2447
|
!e && "sm:gw-px-[--gutter]",
|
|
2448
2448
|
a && "gw-overflow-y-auto",
|
|
@@ -2472,7 +2472,7 @@ function wf({ className: e, ...t }) {
|
|
|
2472
2472
|
), /* @__PURE__ */ f(
|
|
2473
2473
|
"thead",
|
|
2474
2474
|
{
|
|
2475
|
-
className:
|
|
2475
|
+
className: U(
|
|
2476
2476
|
"gw-text-zinc-500 dark:gw-text-zinc-400",
|
|
2477
2477
|
e,
|
|
2478
2478
|
r && n && "gw-z-10 gw-sticky gw-top-0 gw-bg-white gw-box-shadow dark:gw-bg-zinc-950/50 gw-backdrop-blur-[var(--backdrop-blur)]"
|
|
@@ -2502,7 +2502,7 @@ function mf({
|
|
|
2502
2502
|
"tr",
|
|
2503
2503
|
{
|
|
2504
2504
|
...l,
|
|
2505
|
-
className:
|
|
2505
|
+
className: U(
|
|
2506
2506
|
e && "has-[[data-row-link][data-focus]]:gw-outline has-[[data-row-link][data-focus]]:gw-outline-2 has-[[data-row-link][data-focus]]:gw--outline-offset-2 has-[[data-row-link][data-focus]]:gw-outline-blue-500 dark:focus-within:gw-bg-white/[2.5%]",
|
|
2507
2507
|
a && "even:gw-bg-zinc-950/[2.5%] dark:even:gw-bg-white/[2.5%]",
|
|
2508
2508
|
e && a && "hover:gw-bg-zinc-950/5 dark:hover:gw-bg-white/5",
|
|
@@ -2519,7 +2519,7 @@ function hf({ className: e, ...t }) {
|
|
|
2519
2519
|
"th",
|
|
2520
2520
|
{
|
|
2521
2521
|
...t,
|
|
2522
|
-
className:
|
|
2522
|
+
className: U(
|
|
2523
2523
|
"gw-border-b gw-border-b-zinc-950/10 gw-px-4 gw-py-2 gw-font-medium first:gw-pl-[var(--gutter,theme(spacing.2))] last:gw-pr-[var(--gutter,theme(spacing.2))] dark:gw-border-b-white/10",
|
|
2524
2524
|
n && "gw-border-l gw-border-l-zinc-950/5 first:gw-border-l-0 dark:gw-border-l-white/5",
|
|
2525
2525
|
!r && "sm:first:gw-pl-2 sm:last:gw-pr-2",
|
|
@@ -2529,13 +2529,13 @@ function hf({ className: e, ...t }) {
|
|
|
2529
2529
|
);
|
|
2530
2530
|
}
|
|
2531
2531
|
function bf({ className: e, children: t, ...r }) {
|
|
2532
|
-
let { bleed: n, dense: o, grid: l, striped: a } = Y(Dt), { href: i, target: s, title: u } = Y(Po), [c, w] =
|
|
2532
|
+
let { bleed: n, dense: o, grid: l, striped: a } = Y(Dt), { href: i, target: s, title: u } = Y(Po), [c, w] = V(null);
|
|
2533
2533
|
return /* @__PURE__ */ F(
|
|
2534
2534
|
"td",
|
|
2535
2535
|
{
|
|
2536
2536
|
ref: i ? w : void 0,
|
|
2537
2537
|
...r,
|
|
2538
|
-
className:
|
|
2538
|
+
className: U(
|
|
2539
2539
|
"gw-relative gw-px-4 first:gw-pl-[var(--gutter,theme(spacing.2))] last:gw-pr-[var(--gutter,theme(spacing.2))]",
|
|
2540
2540
|
!a && "gw-border-b gw-border-zinc-950/5 dark:gw-border-white/5",
|
|
2541
2541
|
l && "gw-border-l gw-border-l-zinc-950/5 first:gw-border-l-0 dark:gw-border-l-white/5",
|
|
@@ -2561,7 +2561,7 @@ function bf({ className: e, children: t, ...r }) {
|
|
|
2561
2561
|
);
|
|
2562
2562
|
}
|
|
2563
2563
|
function vf({ className: e, children: t, stretch: r = !1, ...n }) {
|
|
2564
|
-
const o = L(() =>
|
|
2564
|
+
const o = L(() => U(
|
|
2565
2565
|
"gw-w-full gw-p-3 gw-shadow gw-bg-white gw-rounded-md gw-border",
|
|
2566
2566
|
r ? "gw-self-stretch" : "",
|
|
2567
2567
|
e
|
|
@@ -2818,7 +2818,7 @@ function la() {
|
|
|
2818
2818
|
};
|
|
2819
2819
|
}
|
|
2820
2820
|
function it(e) {
|
|
2821
|
-
let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: o } = e, [l, a] =
|
|
2821
|
+
let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: o } = e, [l, a] = V(!1), i = R({
|
|
2822
2822
|
isHovered: !1,
|
|
2823
2823
|
ignoreEmulatedMouseEvents: !1,
|
|
2824
2824
|
pointerType: "",
|
|
@@ -2881,7 +2881,7 @@ function qe(e = {}) {
|
|
|
2881
2881
|
let { autoFocus: t = !1, isTextInput: r, within: n } = e, o = R({
|
|
2882
2882
|
isFocused: !1,
|
|
2883
2883
|
isFocusVisible: t || Bo()
|
|
2884
|
-
}), [l, a] =
|
|
2884
|
+
}), [l, a] = V(!1), [i, s] = V(() => o.current.isFocused && o.current.isFocusVisible), u = de(() => s(o.current.isFocused && o.current.isFocusVisible), []), c = de((d) => {
|
|
2885
2885
|
o.current.isFocused = d, a(d), u();
|
|
2886
2886
|
}, [
|
|
2887
2887
|
u
|
|
@@ -2980,7 +2980,7 @@ function Me() {
|
|
|
2980
2980
|
return t;
|
|
2981
2981
|
}
|
|
2982
2982
|
function mt() {
|
|
2983
|
-
let [e] =
|
|
2983
|
+
let [e] = V(Me);
|
|
2984
2984
|
return ee(() => () => e.dispose(), [e]), e;
|
|
2985
2985
|
}
|
|
2986
2986
|
let _ = (e, t) => {
|
|
@@ -3004,7 +3004,7 @@ function ua(e, t) {
|
|
|
3004
3004
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
3005
3005
|
}
|
|
3006
3006
|
function Ht({ disabled: e = !1 } = {}) {
|
|
3007
|
-
let t = R(null), [r, n] =
|
|
3007
|
+
let t = R(null), [r, n] = V(!1), o = mt(), l = T(() => {
|
|
3008
3008
|
t.current = null, n(!1), o.dispose();
|
|
3009
3009
|
}), a = T((i) => {
|
|
3010
3010
|
if (o.dispose(), t.current === null) {
|
|
@@ -3162,7 +3162,7 @@ function ba(e, t) {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
let Ue = W(ba), va = ne(null);
|
|
3164
3164
|
function xa(e) {
|
|
3165
|
-
let [t, r] =
|
|
3165
|
+
let [t, r] = V(null);
|
|
3166
3166
|
return E.createElement(va.Provider, { value: { target: t } }, e.children, E.createElement(Ue, { features: ze.Hidden, ref: r }));
|
|
3167
3167
|
}
|
|
3168
3168
|
let jo = ne(void 0);
|
|
@@ -3216,7 +3216,7 @@ function Qo() {
|
|
|
3216
3216
|
return (t = (e = Y(lr)) == null ? void 0 : e.value) != null ? t : void 0;
|
|
3217
3217
|
}
|
|
3218
3218
|
function nn() {
|
|
3219
|
-
let [e, t] =
|
|
3219
|
+
let [e, t] = V([]);
|
|
3220
3220
|
return [e.length > 0 ? e.join(" ") : void 0, L(() => function(r) {
|
|
3221
3221
|
let n = T((l) => (t((a) => [...a, l]), () => t((a) => {
|
|
3222
3222
|
let i = a.slice(), s = i.indexOf(l);
|
|
@@ -3250,7 +3250,7 @@ function ln(e) {
|
|
|
3250
3250
|
return ((n = void 0) != null ? n : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
|
|
3251
3251
|
}
|
|
3252
3252
|
function sr({ inherit: e = !1 } = {}) {
|
|
3253
|
-
let t = ln(), [r, n] =
|
|
3253
|
+
let t = ln(), [r, n] = V([]), o = e ? [t, ...r].filter(Boolean) : r;
|
|
3254
3254
|
return [o.length > 0 ? o.join(" ") : void 0, L(() => function(l) {
|
|
3255
3255
|
let a = T((s) => (n((u) => [...u, s]), () => n((u) => {
|
|
3256
3256
|
let c = u.slice(), w = c.indexOf(s);
|
|
@@ -3664,7 +3664,7 @@ function Za() {
|
|
|
3664
3664
|
} };
|
|
3665
3665
|
}
|
|
3666
3666
|
function qa(e = 0) {
|
|
3667
|
-
let [t, r] =
|
|
3667
|
+
let [t, r] = V(e), n = de((s) => r(s), [t]), o = de((s) => r((u) => u | s), [t]), l = de((s) => (t & s) === s, [t]), a = de((s) => r((u) => u & ~s), [r]), i = de((s) => r((u) => u ^ s), [r]);
|
|
3668
3668
|
return { flags: t, setFlag: n, addFlag: o, hasFlag: l, removeFlag: a, toggleFlag: i };
|
|
3669
3669
|
}
|
|
3670
3670
|
var qn, Kn;
|
|
@@ -3679,7 +3679,7 @@ function Bt(e) {
|
|
|
3679
3679
|
return t;
|
|
3680
3680
|
}
|
|
3681
3681
|
function zt(e, t, r, n) {
|
|
3682
|
-
let [o, l] =
|
|
3682
|
+
let [o, l] = V(r), { hasFlag: a, addFlag: i, removeFlag: s } = qa(e && o ? 3 : 0), u = R(!1), c = R(!1), w = mt();
|
|
3683
3683
|
return _(() => {
|
|
3684
3684
|
var g;
|
|
3685
3685
|
if (e) {
|
|
@@ -5248,7 +5248,7 @@ function hl(e = null) {
|
|
|
5248
5248
|
}
|
|
5249
5249
|
let ao = 4;
|
|
5250
5250
|
function bl({ children: e, enabled: t = !0 }) {
|
|
5251
|
-
let [r, n] =
|
|
5251
|
+
let [r, n] = V(null), [o, l] = V(0), a = R(null), [i, s] = V(null);
|
|
5252
5252
|
sc(i);
|
|
5253
5253
|
let u = t && r !== null && i !== null, { to: c = "bottom", gap: w = 0, offset: g = 0, padding: d = 0, inner: p } = cc(r, i), [h, m = "center"] = c.split(" ");
|
|
5254
5254
|
_(() => {
|
|
@@ -5261,10 +5261,10 @@ function bl({ children: e, enabled: t = !0 }) {
|
|
|
5261
5261
|
if (!j) return;
|
|
5262
5262
|
let oe = parseFloat(getComputedStyle(j).scrollPaddingBottom) || 0, K = Math.min(ao, j.childElementCount), $ = 0, z = 0;
|
|
5263
5263
|
for (let y of (G = (D = x.elements.floating) == null ? void 0 : D.childNodes) != null ? G : []) if (y instanceof HTMLElement) {
|
|
5264
|
-
let S = y.offsetTop, C = S + y.clientHeight + oe, Z = j.scrollTop,
|
|
5265
|
-
if (S >= Z && C <=
|
|
5264
|
+
let S = y.offsetTop, C = S + y.clientHeight + oe, Z = j.scrollTop, X = Z + j.clientHeight;
|
|
5265
|
+
if (S >= Z && C <= X) K--;
|
|
5266
5266
|
else {
|
|
5267
|
-
z = Math.max(0, Math.min(C,
|
|
5267
|
+
z = Math.max(0, Math.min(C, X) - Math.max(S, Z)), $ = y.clientHeight;
|
|
5268
5268
|
break;
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
@@ -5330,7 +5330,7 @@ function Fr(e, t, r = void 0) {
|
|
|
5330
5330
|
}];
|
|
5331
5331
|
}
|
|
5332
5332
|
return [r, null];
|
|
5333
|
-
}), l = L(() => o(e, t)[0], [e, t]), [a = l, i] =
|
|
5333
|
+
}), l = L(() => o(e, t)[0], [e, t]), [a = l, i] = V();
|
|
5334
5334
|
return _(() => {
|
|
5335
5335
|
let [s, u] = o(e, t);
|
|
5336
5336
|
if (i(s), !!u) return u(i);
|
|
@@ -5442,7 +5442,7 @@ function co(e) {
|
|
|
5442
5442
|
return E.createElement(yl.Provider, { value: e.force }, e.children);
|
|
5443
5443
|
}
|
|
5444
5444
|
function wc(e) {
|
|
5445
|
-
let t = fc(), r = Y(Al), [n, o] =
|
|
5445
|
+
let t = fc(), r = Y(Al), [n, o] = V(() => {
|
|
5446
5446
|
var l;
|
|
5447
5447
|
if (!t && r !== null) return (l = r.current) != null ? l : null;
|
|
5448
5448
|
if (rt.isServer) return null;
|
|
@@ -5461,7 +5461,7 @@ function wc(e) {
|
|
|
5461
5461
|
let El = he, pc = W(function(e, t) {
|
|
5462
5462
|
let { ownerDocument: r = null, ...n } = e, o = R(null), l = te(rn((d) => {
|
|
5463
5463
|
o.current = d;
|
|
5464
|
-
}), t), a = Oe(o), i = r ?? a, s = wc(i), [u] =
|
|
5464
|
+
}), t), a = Oe(o), i = r ?? a, s = wc(i), [u] = V(() => {
|
|
5465
5465
|
var d;
|
|
5466
5466
|
return rt.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
5467
5467
|
}), c = Y(Jr), w = Vt();
|
|
@@ -5504,7 +5504,7 @@ function xc(e, t = typeof document < "u" ? document.defaultView : null, r) {
|
|
|
5504
5504
|
}
|
|
5505
5505
|
function yc() {
|
|
5506
5506
|
var e;
|
|
5507
|
-
let [t] =
|
|
5507
|
+
let [t] = V(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = V((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
5508
5508
|
return _(() => {
|
|
5509
5509
|
if (!t) return;
|
|
5510
5510
|
function o(l) {
|
|
@@ -5526,7 +5526,7 @@ function Cl({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
|
|
|
5526
5526
|
}
|
|
5527
5527
|
let Il = ne(null);
|
|
5528
5528
|
function er({ children: e, node: t }) {
|
|
5529
|
-
let [r, n] =
|
|
5529
|
+
let [r, n] = V(null), o = vn(t ?? r);
|
|
5530
5530
|
return E.createElement(Il.Provider, { value: o }, e, o === null && E.createElement(Ue, { features: ze.Hidden, ref: (l) => {
|
|
5531
5531
|
var a, i;
|
|
5532
5532
|
if (l) {
|
|
@@ -5714,7 +5714,7 @@ function Ol(e, t) {
|
|
|
5714
5714
|
let Dl = he, Nl = be.RenderStrategy;
|
|
5715
5715
|
function Nc(e, t) {
|
|
5716
5716
|
var r, n;
|
|
5717
|
-
let { transition: o = !0, beforeEnter: l, afterEnter: a, beforeLeave: i, afterLeave: s, enter: u, enterFrom: c, enterTo: w, entered: g, leave: d, leaveFrom: p, leaveTo: h, ...m } = e, [b, v] =
|
|
5717
|
+
let { transition: o = !0, beforeEnter: l, afterEnter: a, beforeLeave: i, afterLeave: s, enter: u, enterFrom: c, enterTo: w, entered: g, leave: d, leaveFrom: p, leaveTo: h, ...m } = e, [b, v] = V(null), x = R(null), A = Pl(e), k = te(...A ? [x, t, v] : t === null ? [] : [t]), O = (r = m.unmount) == null || r ? We.Unmount : We.Hidden, { show: I, appear: B, initial: H } = Oc(), [P, N] = V(I ? "visible" : "hidden"), D = Dc(), { register: G, unregister: j } = D;
|
|
5718
5718
|
_(() => G(x), [G, x]), _(() => {
|
|
5719
5719
|
if (O === We.Hidden && x.current) {
|
|
5720
5720
|
if (I && P !== "visible") {
|
|
@@ -5745,8 +5745,8 @@ function Nc(e, t) {
|
|
|
5745
5745
|
ee(() => {
|
|
5746
5746
|
A && o || (S(I), C(I));
|
|
5747
5747
|
}, [I, A, o]);
|
|
5748
|
-
let Z = !(!o || !A || !oe || K), [,
|
|
5749
|
-
P === "visible" && (se |= ie.Open), P === "hidden" && (se |= ie.Closed),
|
|
5748
|
+
let Z = !(!o || !A || !oe || K), [, X] = zt(Z, b, I, { start: S, end: C }), fe = Ye({ ref: k, className: ((n = Wr(m.className, $ && u, $ && c, X.enter && u, X.enter && X.closed && c, X.enter && !X.closed && w, X.leave && d, X.leave && !X.closed && p, X.leave && X.closed && h, !X.transition && I && g)) == null ? void 0 : n.trim()) || void 0, ...Bt(X) }), se = 0;
|
|
5749
|
+
P === "visible" && (se |= ie.Open), P === "hidden" && (se |= ie.Closed), X.enter && (se |= ie.Opening), X.leave && (se |= ie.Closing);
|
|
5750
5750
|
let He = J();
|
|
5751
5751
|
return E.createElement(xr.Provider, { value: y }, E.createElement(hr, { value: se }, He({ ourProps: fe, theirProps: m, defaultTag: Dl, features: Nl, visible: P === "visible", name: "Transition.Child" })));
|
|
5752
5752
|
}
|
|
@@ -5755,9 +5755,9 @@ function Mc(e, t) {
|
|
|
5755
5755
|
Vt();
|
|
5756
5756
|
let u = Ke();
|
|
5757
5757
|
if (r === void 0 && u !== null && (r = (u & ie.Open) === ie.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
5758
|
-
let [c, w] =
|
|
5758
|
+
let [c, w] = V(r ? "visible" : "hidden"), g = Ol(() => {
|
|
5759
5759
|
r || w("hidden");
|
|
5760
|
-
}), [d, p] =
|
|
5760
|
+
}), [d, p] = V(!0), h = R([r]);
|
|
5761
5761
|
_(() => {
|
|
5762
5762
|
d !== !1 && h.current[h.current.length - 1] !== r && (h.current.push(r), p(!1));
|
|
5763
5763
|
}, [h, r]);
|
|
@@ -5945,7 +5945,7 @@ function su(e, t) {
|
|
|
5945
5945
|
}
|
|
5946
5946
|
let cu = "div", uu = be.RenderStrategy | be.Static;
|
|
5947
5947
|
function du(e, t) {
|
|
5948
|
-
let r = ce(), { id: n = `headlessui-disclosure-panel-${r}`, transition: o = !1, ...l } = e, [a, i] = Sn("Disclosure.Panel"), { close: s } = Rl("Disclosure.Panel"), [u, c] =
|
|
5948
|
+
let r = ce(), { id: n = `headlessui-disclosure-panel-${r}`, transition: o = !1, ...l } = e, [a, i] = Sn("Disclosure.Panel"), { close: s } = Rl("Disclosure.Panel"), [u, c] = V(null), w = te(t, T((v) => {
|
|
5949
5949
|
_c(() => i({ type: 5, element: v }));
|
|
5950
5950
|
}), c);
|
|
5951
5951
|
ee(() => (i({ type: 3, panelId: n }), () => {
|
|
@@ -5961,7 +5961,7 @@ function mu(e, t) {
|
|
|
5961
5961
|
}
|
|
5962
5962
|
let hu = W(mu);
|
|
5963
5963
|
function bu(e) {
|
|
5964
|
-
let t = typeof e == "string" ? e : void 0, [r, n] =
|
|
5964
|
+
let t = typeof e == "string" ? e : void 0, [r, n] = V(t);
|
|
5965
5965
|
return [t ?? r, de((o) => {
|
|
5966
5966
|
t || o instanceof HTMLElement && n(o.tagName.toLowerCase());
|
|
5967
5967
|
}, [t])];
|
|
@@ -6137,7 +6137,7 @@ function Ru(e, t) {
|
|
|
6137
6137
|
let Bu = "div", zu = be.RenderStrategy | be.Static;
|
|
6138
6138
|
function Uu(e, t) {
|
|
6139
6139
|
var r, n;
|
|
6140
|
-
let o = ce(), { id: l = `headlessui-menu-items-${o}`, anchor: a, portal: i = !1, modal: s = !0, transition: u = !1, ...c } = e, w = wl(a), [g, d] = Ar("Menu.Items"), [p, h] = hl(w), m = ml(), [b, v] =
|
|
6140
|
+
let o = ce(), { id: l = `headlessui-menu-items-${o}`, anchor: a, portal: i = !1, modal: s = !0, transition: u = !1, ...c } = e, w = wl(a), [g, d] = Ar("Menu.Items"), [p, h] = hl(w), m = ml(), [b, v] = V(null), x = te(t, w ? p : null, T((y) => d({ type: 8, element: y })), v), A = Oe(g.buttonElement), k = Oe(g.itemsElement);
|
|
6141
6141
|
w && (i = !0);
|
|
6142
6142
|
let O = Ke(), [I, B] = zt(u, b, O !== null ? (O & ie.Open) === ie.Open : g.menuState === 0);
|
|
6143
6143
|
sn(I, g.buttonElement, () => {
|
|
@@ -6163,8 +6163,8 @@ function Uu(e, t) {
|
|
|
6163
6163
|
if (g.searchQuery !== "") return y.preventDefault(), y.stopPropagation(), d({ type: 3, value: y.key });
|
|
6164
6164
|
case q.Enter:
|
|
6165
6165
|
if (y.preventDefault(), y.stopPropagation(), d({ type: 1 }), g.activeItemIndex !== null) {
|
|
6166
|
-
let { dataRef:
|
|
6167
|
-
(C = (S =
|
|
6166
|
+
let { dataRef: X } = g.items[g.activeItemIndex];
|
|
6167
|
+
(C = (S = X.current) == null ? void 0 : S.domRef.current) == null || C.click();
|
|
6168
6168
|
}
|
|
6169
6169
|
$o(g.buttonElement);
|
|
6170
6170
|
break;
|
|
@@ -6299,8 +6299,8 @@ function sd(e, t) {
|
|
|
6299
6299
|
})), i = R([]), s = wt(id, { __demoMode: n, popoverState: n ? 0 : 1, buttons: i, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: Gt(), afterPanelSentinel: Gt(), afterButtonSentinel: Gt() }), [{ popoverState: u, button: c, buttonId: w, panel: g, panelId: d, beforePanelSentinel: p, afterPanelSentinel: h, afterButtonSentinel: m }, b] = s, v = Oe((r = l.current) != null ? r : c), x = L(() => {
|
|
6300
6300
|
if (!c || !g) return !1;
|
|
6301
6301
|
for (let se of document.querySelectorAll("body > *")) if (Number(se == null ? void 0 : se.contains(c)) ^ Number(se == null ? void 0 : se.contains(g))) return !0;
|
|
6302
|
-
let y = Rt(), S = y.indexOf(c), C = (S + y.length - 1) % y.length, Z = (S + 1) % y.length,
|
|
6303
|
-
return !g.contains(
|
|
6302
|
+
let y = Rt(), S = y.indexOf(c), C = (S + y.length - 1) % y.length, Z = (S + 1) % y.length, X = y[C], fe = y[Z];
|
|
6303
|
+
return !g.contains(X) && !g.contains(fe);
|
|
6304
6304
|
}, [c, g]), A = ye(w), k = ye(d), O = L(() => ({ buttonId: A, panelId: k, close: () => b({ type: 1 }) }), [A, k, b]), I = Bl(), B = I == null ? void 0 : I.registerPopover, H = T(() => {
|
|
6305
6305
|
var y;
|
|
6306
6306
|
return (y = I == null ? void 0 : I.isFocusWithinPopoverGroup()) != null ? y : (v == null ? void 0 : v.activeElement) && ((c == null ? void 0 : c.contains(v.activeElement)) || (g == null ? void 0 : g.contains(v.activeElement)));
|
|
@@ -6308,8 +6308,8 @@ function sd(e, t) {
|
|
|
6308
6308
|
ee(() => B == null ? void 0 : B(O), [B, O]);
|
|
6309
6309
|
let [P, N] = Sl(), D = vn(c), G = Cl({ mainTreeNode: D, portals: P, defaultContainers: [c, g] });
|
|
6310
6310
|
un(v == null ? void 0 : v.defaultView, "focus", (y) => {
|
|
6311
|
-
var S, C, Z,
|
|
6312
|
-
y.target !== window && y.target instanceof HTMLElement && u === 0 && (H() || c && g && (G.contains(y.target) || (C = (S = p.current) == null ? void 0 : S.contains) != null && C.call(S, y.target) || (
|
|
6311
|
+
var S, C, Z, X, fe, se;
|
|
6312
|
+
y.target !== window && y.target instanceof HTMLElement && u === 0 && (H() || c && g && (G.contains(y.target) || (C = (S = p.current) == null ? void 0 : S.contains) != null && C.call(S, y.target) || (X = (Z = h.current) == null ? void 0 : Z.contains) != null && X.call(Z, y.target) || (se = (fe = m.current) == null ? void 0 : fe.contains) != null && se.call(fe, y.target) || b({ type: 1 })));
|
|
6313
6313
|
}, !0), cn(u === 0, G.resolveContainers, (y, S) => {
|
|
6314
6314
|
b({ type: 1 }), ur(S, cr.Loose) || (y.preventDefault(), c == null || c.focus());
|
|
6315
6315
|
});
|
|
@@ -6328,7 +6328,7 @@ function ud(e, t) {
|
|
|
6328
6328
|
s({ type: 3, buttonId: null });
|
|
6329
6329
|
};
|
|
6330
6330
|
}, [p, n, s]);
|
|
6331
|
-
let [h] =
|
|
6331
|
+
let [h] = V(() => Symbol()), m = te(c, t, pl(), T((S) => {
|
|
6332
6332
|
if (!p) {
|
|
6333
6333
|
if (S) i.buttons.current.push(h);
|
|
6334
6334
|
else {
|
|
@@ -6338,13 +6338,13 @@ function ud(e, t) {
|
|
|
6338
6338
|
i.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), S && s({ type: 2, button: S });
|
|
6339
6339
|
}
|
|
6340
6340
|
})), b = te(c, t), v = Oe(c), x = T((S) => {
|
|
6341
|
-
var C, Z,
|
|
6341
|
+
var C, Z, X;
|
|
6342
6342
|
if (p) {
|
|
6343
6343
|
if (i.popoverState === 1) return;
|
|
6344
6344
|
switch (S.key) {
|
|
6345
6345
|
case q.Space:
|
|
6346
6346
|
case q.Enter:
|
|
6347
|
-
S.preventDefault(), (Z = (C = S.target).click) == null || Z.call(C), s({ type: 1 }), (
|
|
6347
|
+
S.preventDefault(), (Z = (C = S.target).click) == null || Z.call(C), s({ type: 1 }), (X = i.button) == null || X.focus();
|
|
6348
6348
|
break;
|
|
6349
6349
|
}
|
|
6350
6350
|
} else switch (S.key) {
|
|
@@ -6377,7 +6377,7 @@ function ud(e, t) {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
let dd = "div", gd = be.RenderStrategy | be.Static;
|
|
6379
6379
|
function zl(e, t) {
|
|
6380
|
-
let r = ce(), { id: n = `headlessui-popover-backdrop-${r}`, transition: o = !1, ...l } = e, [{ popoverState: a }, i] = Sr("Popover.Backdrop"), [s, u] =
|
|
6380
|
+
let r = ce(), { id: n = `headlessui-popover-backdrop-${r}`, transition: o = !1, ...l } = e, [{ popoverState: a }, i] = Sr("Popover.Backdrop"), [s, u] = V(null), c = te(t, u), w = Ke(), [g, d] = zt(o, s, w !== null ? (w & ie.Open) === ie.Open : a === 0), p = T((b) => {
|
|
6381
6381
|
if (or(b.currentTarget)) return b.preventDefault();
|
|
6382
6382
|
i({ type: 1 });
|
|
6383
6383
|
}), h = L(() => ({ open: a === 0 }), [a]), m = { ref: c, id: n, "aria-hidden": !0, onClick: p, ...Bt(d) };
|
|
@@ -6387,7 +6387,7 @@ let fd = "div", wd = be.RenderStrategy | be.Static;
|
|
|
6387
6387
|
function pd(e, t) {
|
|
6388
6388
|
let r = ce(), { id: n = `headlessui-popover-panel-${r}`, focus: o = !1, anchor: l, portal: a = !1, modal: i = !1, transition: s = !1, ...u } = e, [c, w] = Sr("Popover.Panel"), { close: g, isPortalled: d } = Ln("Popover.Panel"), p = `headlessui-focus-sentinel-before-${r}`, h = `headlessui-focus-sentinel-after-${r}`, m = R(null), b = wl(l), [v, x] = hl(b), A = ml();
|
|
6389
6389
|
b && (a = !0);
|
|
6390
|
-
let [k, O] =
|
|
6390
|
+
let [k, O] = V(null), I = te(m, t, b ? v : null, T((C) => w({ type: 4, panel: C })), O), B = Oe(c.button), H = Oe(m);
|
|
6391
6391
|
_(() => (w({ type: 5, panelId: n }), () => {
|
|
6392
6392
|
w({ type: 5, panelId: null });
|
|
6393
6393
|
}), [n, w]);
|
|
@@ -6415,19 +6415,19 @@ function pd(e, t) {
|
|
|
6415
6415
|
m.current.contains(C) || ue(m.current, re.First);
|
|
6416
6416
|
}, [c.__demoMode, o, m.current, c.popoverState]);
|
|
6417
6417
|
let oe = L(() => ({ open: c.popoverState === 0, close: g }), [c.popoverState, g]), K = ke(b ? A() : {}, { ref: I, id: n, onKeyDown: j, onBlur: o && c.popoverState === 0 ? (C) => {
|
|
6418
|
-
var Z,
|
|
6418
|
+
var Z, X, fe, se, He;
|
|
6419
6419
|
let xe = C.relatedTarget;
|
|
6420
|
-
xe && m.current && ((Z = m.current) != null && Z.contains(xe) || (w({ type: 1 }), ((fe = (
|
|
6420
|
+
xe && m.current && ((Z = m.current) != null && Z.contains(xe) || (w({ type: 1 }), ((fe = (X = c.beforePanelSentinel.current) == null ? void 0 : X.contains) != null && fe.call(X, xe) || (He = (se = c.afterPanelSentinel.current) == null ? void 0 : se.contains) != null && He.call(se, xe)) && xe.focus({ preventScroll: !0 })));
|
|
6421
6421
|
} : void 0, tabIndex: -1, style: { ...u.style, ...x, "--button-width": qo(c.button, !0).width }, ...Bt(D) }), $ = xn(), z = T(() => {
|
|
6422
6422
|
let C = m.current;
|
|
6423
6423
|
if (!C) return;
|
|
6424
6424
|
function Z() {
|
|
6425
6425
|
ae($.current, { [Ee.Forwards]: () => {
|
|
6426
|
-
var
|
|
6427
|
-
ue(C, re.First) === Te.Error && ((
|
|
6426
|
+
var X;
|
|
6427
|
+
ue(C, re.First) === Te.Error && ((X = c.afterPanelSentinel.current) == null || X.focus());
|
|
6428
6428
|
}, [Ee.Backwards]: () => {
|
|
6429
|
-
var
|
|
6430
|
-
(
|
|
6429
|
+
var X;
|
|
6430
|
+
(X = c.button) == null || X.focus({ preventScroll: !0 });
|
|
6431
6431
|
} });
|
|
6432
6432
|
}
|
|
6433
6433
|
Z();
|
|
@@ -6437,15 +6437,15 @@ function pd(e, t) {
|
|
|
6437
6437
|
function Z() {
|
|
6438
6438
|
ae($.current, { [Ee.Forwards]: () => {
|
|
6439
6439
|
if (!c.button) return;
|
|
6440
|
-
let
|
|
6440
|
+
let X = Rt(), fe = X.indexOf(c.button), se = X.slice(0, fe + 1), He = [...X.slice(fe + 1), ...se];
|
|
6441
6441
|
for (let xe of He.slice()) if (xe.dataset.headlessuiFocusGuard === "true" || k != null && k.contains(xe)) {
|
|
6442
6442
|
let Je = He.indexOf(xe);
|
|
6443
6443
|
Je !== -1 && He.splice(Je, 1);
|
|
6444
6444
|
}
|
|
6445
6445
|
ue(He, re.First, { sorted: !1 });
|
|
6446
6446
|
}, [Ee.Backwards]: () => {
|
|
6447
|
-
var
|
|
6448
|
-
ue(C, re.Previous) === Te.Error && ((
|
|
6447
|
+
var X;
|
|
6448
|
+
ue(C, re.Previous) === Te.Error && ((X = c.button) == null || X.focus());
|
|
6449
6449
|
} });
|
|
6450
6450
|
}
|
|
6451
6451
|
Z();
|
|
@@ -6454,7 +6454,7 @@ function pd(e, t) {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
let md = "div";
|
|
6456
6456
|
function hd(e, t) {
|
|
6457
|
-
let r = R(null), n = te(r, t), [o, l] =
|
|
6457
|
+
let r = R(null), n = te(r, t), [o, l] = V([]), a = T((h) => {
|
|
6458
6458
|
l((m) => {
|
|
6459
6459
|
let b = m.indexOf(h);
|
|
6460
6460
|
if (b !== -1) {
|
|
@@ -6479,7 +6479,7 @@ function hd(e, t) {
|
|
|
6479
6479
|
}
|
|
6480
6480
|
let bd = W(sd), Ul = W(ud), vd = W(zl), xd = W(zl), Xl = W(pd), yd = W(hd), Ed = Object.assign(bd, { Button: Ul, Backdrop: xd, Overlay: vd, Panel: Xl, Group: yd });
|
|
6481
6481
|
function Ad({ onFocus: e }) {
|
|
6482
|
-
let [t, r] =
|
|
6482
|
+
let [t, r] = V(!0), n = br();
|
|
6483
6483
|
return t ? E.createElement(Ue, { as: "button", type: "button", features: ze.Focusable, onFocus: (o) => {
|
|
6484
6484
|
o.preventDefault();
|
|
6485
6485
|
let l, a = 50;
|
|
@@ -6604,7 +6604,7 @@ function Md(e, t) {
|
|
|
6604
6604
|
let Fd = "button";
|
|
6605
6605
|
function Hd(e, t) {
|
|
6606
6606
|
var r, n;
|
|
6607
|
-
let o = ce(), { id: l = `headlessui-tabs-tab-${o}`, disabled: a = !1, autoFocus: i = !1, ...s } = e, { orientation: u, activation: c, selectedIndex: w, tabs: g, panels: d } = gt("Tab"), p = Nn("Tab"), h = gt("Tab"), [m, b] =
|
|
6607
|
+
let o = ce(), { id: l = `headlessui-tabs-tab-${o}`, disabled: a = !1, autoFocus: i = !1, ...s } = e, { orientation: u, activation: c, selectedIndex: w, tabs: g, panels: d } = gt("Tab"), p = Nn("Tab"), h = gt("Tab"), [m, b] = V(null), v = R(null), x = te(v, t, b);
|
|
6608
6608
|
_(() => p.registerTab(v), [p, v]);
|
|
6609
6609
|
let A = jl("tabs"), k = g.indexOf(v);
|
|
6610
6610
|
k === -1 && (k = A);
|
|
@@ -6612,7 +6612,7 @@ function Hd(e, t) {
|
|
|
6612
6612
|
var C;
|
|
6613
6613
|
let Z = S();
|
|
6614
6614
|
if (Z === Te.Success && c === "auto") {
|
|
6615
|
-
let
|
|
6615
|
+
let X = (C = Ne(v)) == null ? void 0 : C.activeElement, fe = h.tabs.findIndex((se) => se.current === X);
|
|
6616
6616
|
fe !== -1 && p.change(fe);
|
|
6617
6617
|
}
|
|
6618
6618
|
return Z;
|
|
@@ -6671,7 +6671,7 @@ function Zd(e) {
|
|
|
6671
6671
|
return window.crypto.subtle.digest("SHA-256", r).then((n) => Array.from(new Uint8Array(n)).map((a) => a.toString(16).padStart(2, "0")).join(""));
|
|
6672
6672
|
}
|
|
6673
6673
|
function qd({ email: e }) {
|
|
6674
|
-
const [t, r] =
|
|
6674
|
+
const [t, r] = V(
|
|
6675
6675
|
"https://www.gravatar.com/avatar/unknown?d=identicon"
|
|
6676
6676
|
);
|
|
6677
6677
|
return ee(() => {
|
|
@@ -6725,7 +6725,7 @@ function Ef({
|
|
|
6725
6725
|
] });
|
|
6726
6726
|
}
|
|
6727
6727
|
function Af({ text: e, className: t = null, ...r }) {
|
|
6728
|
-
return /* @__PURE__ */ f("div", { className:
|
|
6728
|
+
return /* @__PURE__ */ f("div", { className: U("gw-py-3", t), ...r, children: /* @__PURE__ */ F("div", { className: "gw-relative", children: [
|
|
6729
6729
|
/* @__PURE__ */ f(
|
|
6730
6730
|
"div",
|
|
6731
6731
|
{
|
|
@@ -6767,13 +6767,13 @@ function Kd({
|
|
|
6767
6767
|
{
|
|
6768
6768
|
open: e,
|
|
6769
6769
|
onClose: t,
|
|
6770
|
-
className:
|
|
6770
|
+
className: U("gw-relative", "gw-z-50", a),
|
|
6771
6771
|
children: [
|
|
6772
6772
|
/* @__PURE__ */ f(Yc, { className: "gw-fixed gw-inset-0 gw-bg-black/30" }),
|
|
6773
6773
|
/* @__PURE__ */ f("div", { className: "gw-fixed gw-inset-0 gw-w-screen gw-overflow-auto gw-p-4", children: /* @__PURE__ */ f("div", { className: "gw-flex gw-min-h-full gw-items-center gw-justify-center", children: /* @__PURE__ */ F(
|
|
6774
6774
|
Fl,
|
|
6775
6775
|
{
|
|
6776
|
-
className:
|
|
6776
|
+
className: U(
|
|
6777
6777
|
mo[l],
|
|
6778
6778
|
"gw-space-y-4",
|
|
6779
6779
|
"gw-border",
|
|
@@ -6797,7 +6797,7 @@ function Kd({
|
|
|
6797
6797
|
const Sf = ({ type: e, className: t, ...r }) => /* @__PURE__ */ f(
|
|
6798
6798
|
"div",
|
|
6799
6799
|
{
|
|
6800
|
-
className:
|
|
6800
|
+
className: U(
|
|
6801
6801
|
"gw-animate-pulse gw-rounded-md gw-bg-gray-400",
|
|
6802
6802
|
e === "card" ? "gw-w-80 gw-h-36" : "gw-w-12 gw-h-5",
|
|
6803
6803
|
t
|
|
@@ -6819,14 +6819,14 @@ const Sf = ({ type: e, className: t, ...r }) => /* @__PURE__ */ f(
|
|
|
6819
6819
|
return e < 0 && (e = 0), e > 100 && (e = 100), /* @__PURE__ */ f(
|
|
6820
6820
|
"div",
|
|
6821
6821
|
{
|
|
6822
|
-
className:
|
|
6822
|
+
className: U(
|
|
6823
6823
|
"gw-w-full gw-bg-gray-200 gw-rounded-full dark:gw-bg-gray-700",
|
|
6824
6824
|
t && e === 100 ? "gw-hidden" : ""
|
|
6825
6825
|
),
|
|
6826
6826
|
children: /* @__PURE__ */ f(
|
|
6827
6827
|
"div",
|
|
6828
6828
|
{
|
|
6829
|
-
className:
|
|
6829
|
+
className: U(
|
|
6830
6830
|
n,
|
|
6831
6831
|
o,
|
|
6832
6832
|
r && "gw-min-h-4",
|
|
@@ -6845,7 +6845,7 @@ const Sf = ({ type: e, className: t, ...r }) => /* @__PURE__ */ f(
|
|
|
6845
6845
|
);
|
|
6846
6846
|
}, Jd = (...e) => e.filter(Boolean).join(" ");
|
|
6847
6847
|
function Yd({ link: e, ...t }) {
|
|
6848
|
-
const [r, n] =
|
|
6848
|
+
const [r, n] = V(!1), o = Jd(
|
|
6849
6849
|
"gw-inline-block gw-relative gw-h-12 gw-inline-flex gw-w-auto gw-justify-center gw-items-center gw-px-3 gw-text-sm gw-text-nowrap",
|
|
6850
6850
|
r ? "gw-bg-nav-dark-gray gw-text-white" : "gw-text-nav-light-gray",
|
|
6851
6851
|
e.children ? "after:gw-content-['▼'] after:gw-text-[10px] after:gw-ml-2" : ""
|
|
@@ -7155,7 +7155,7 @@ const fg = [
|
|
|
7155
7155
|
children: s,
|
|
7156
7156
|
...u
|
|
7157
7157
|
}, c) {
|
|
7158
|
-
let w =
|
|
7158
|
+
let w = U(
|
|
7159
7159
|
fg,
|
|
7160
7160
|
// styles.base,
|
|
7161
7161
|
// outline
|
|
@@ -7174,7 +7174,7 @@ const fg = [
|
|
|
7174
7174
|
Vo,
|
|
7175
7175
|
{
|
|
7176
7176
|
...u,
|
|
7177
|
-
className:
|
|
7177
|
+
className: U(w, "cursor-default"),
|
|
7178
7178
|
ref: c,
|
|
7179
7179
|
children: /* @__PURE__ */ f(nr, { children: s })
|
|
7180
7180
|
}
|
|
@@ -7208,7 +7208,7 @@ function yg(e) {
|
|
|
7208
7208
|
return ve({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z" }, child: [] }] })(e);
|
|
7209
7209
|
}
|
|
7210
7210
|
function Eg({ link: e, close: t }) {
|
|
7211
|
-
const [r, n] =
|
|
7211
|
+
const [r, n] = V(!1);
|
|
7212
7212
|
return /* @__PURE__ */ F(Pe, { children: [
|
|
7213
7213
|
/* @__PURE__ */ F("div", { className: "gw-flex gw-justify-between gw-items-center gw-text-white gw-text-xl gw-font-semibold gw-px-4 gw-py-2", children: [
|
|
7214
7214
|
/* @__PURE__ */ f(ge, { href: e.href, onClick: t, children: e.text }),
|
|
@@ -7270,7 +7270,7 @@ function Cg() {
|
|
|
7270
7270
|
] });
|
|
7271
7271
|
}
|
|
7272
7272
|
function Ig({ links: e, title: t, subtitle: r, navRight: n, fluidNav: o }) {
|
|
7273
|
-
const [l, a] =
|
|
7273
|
+
const [l, a] = V(!1), i = U(
|
|
7274
7274
|
"gw-w-full gw-mx-auto gw-px-4 gw-box-border",
|
|
7275
7275
|
o ? "gw-max-w-screen" : "gw-max-w-screen-2xl"
|
|
7276
7276
|
);
|
|
@@ -7535,7 +7535,7 @@ function Rg(e = "768px") {
|
|
|
7535
7535
|
break;
|
|
7536
7536
|
}
|
|
7537
7537
|
e = e + "px";
|
|
7538
|
-
const [t, r] =
|
|
7538
|
+
const [t, r] = V(!1);
|
|
7539
7539
|
return ee(() => {
|
|
7540
7540
|
const n = window.matchMedia(`(max-width: ${e})`), o = () => r(n.matches);
|
|
7541
7541
|
return o(), n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
@@ -7550,7 +7550,7 @@ function Bg({
|
|
|
7550
7550
|
...l
|
|
7551
7551
|
}) {
|
|
7552
7552
|
var s;
|
|
7553
|
-
const [a, i] =
|
|
7553
|
+
const [a, i] = V((s = t[0]) == null ? void 0 : s.value);
|
|
7554
7554
|
return !t || t.length === 0 ? (console.error(
|
|
7555
7555
|
`Dropdown ${e} must have at least one option with value and text.`
|
|
7556
7556
|
), null) : /* @__PURE__ */ F(Pe, { children: [
|
|
@@ -7558,7 +7558,7 @@ function Bg({
|
|
|
7558
7558
|
"label",
|
|
7559
7559
|
{
|
|
7560
7560
|
htmlFor: e + "-id",
|
|
7561
|
-
className:
|
|
7561
|
+
className: U(
|
|
7562
7562
|
"gw-block gw-text-sm gw-font-medium gw-leading-6 gw-text-gray-900",
|
|
7563
7563
|
r
|
|
7564
7564
|
),
|
|
@@ -7573,7 +7573,7 @@ function Bg({
|
|
|
7573
7573
|
onChange: (u) => {
|
|
7574
7574
|
i(u.target.value), o(u);
|
|
7575
7575
|
},
|
|
7576
|
-
className:
|
|
7576
|
+
className: U(
|
|
7577
7577
|
"gw-mt-2 gw-block gw-w-full gw-rounded-md gw-border-0 gw-py-1.5 gw-pl-3 gw-pr-10 gw-text-gray-900 gw-ring-1 gw-ring-inset gw-ring-gray-300 focus:gw-ring-2 focus:gw-ring-indigo-600 sm:gw-text-sm sm:gw-leading-6",
|
|
7578
7578
|
n
|
|
7579
7579
|
),
|
|
@@ -7729,7 +7729,7 @@ function jg(...e) {
|
|
|
7729
7729
|
return e.filter(Boolean).join(" ");
|
|
7730
7730
|
}
|
|
7731
7731
|
const Wg = ({ fluidNav: e }) => {
|
|
7732
|
-
const [t, r] =
|
|
7732
|
+
const [t, r] = V(!1), n = U(
|
|
7733
7733
|
"header_banner_inner sm:gw-my-0 sm:gw-mx-auto sm:gw-font-sm",
|
|
7734
7734
|
e ? "gw-max-w-screen" : "gw-px-4 gw-max-w-screen-2xl"
|
|
7735
7735
|
);
|
|
@@ -7889,7 +7889,7 @@ function Qg() {
|
|
|
7889
7889
|
window.localStorage.setItem("gw-dod-warn-accept", (/* @__PURE__ */ new Date()).getTime());
|
|
7890
7890
|
}
|
|
7891
7891
|
function Zg({ warningTimeout: e }) {
|
|
7892
|
-
let [t, r] =
|
|
7892
|
+
let [t, r] = V(!Gg(e));
|
|
7893
7893
|
return ee(() => {
|
|
7894
7894
|
t || Qg();
|
|
7895
7895
|
}, [t]), /* @__PURE__ */ f(
|
|
@@ -7998,7 +7998,7 @@ function Lf({ onOk: e, onCancel: t }) {
|
|
|
7998
7998
|
] });
|
|
7999
7999
|
}
|
|
8000
8000
|
function Pf({ onDelete: e, alignConfirm: t = "right" }) {
|
|
8001
|
-
const [r, n] =
|
|
8001
|
+
const [r, n] = V(!1), o = () => {
|
|
8002
8002
|
n(!0);
|
|
8003
8003
|
}, i = [
|
|
8004
8004
|
/* @__PURE__ */ f(Be, { color: "white", onClick: () => {
|
|
@@ -8039,12 +8039,17 @@ function qg({
|
|
|
8039
8039
|
Ed,
|
|
8040
8040
|
{
|
|
8041
8041
|
name: "gw-popout-menu",
|
|
8042
|
-
|
|
8042
|
+
style: { zIndex: r * 10 + 10 },
|
|
8043
|
+
className: U(
|
|
8044
|
+
"gw-relative gw-cursor-not-allowed gw-select-none",
|
|
8045
|
+
n
|
|
8046
|
+
),
|
|
8043
8047
|
children: ({ open: i }) => /* @__PURE__ */ F(Pe, { children: [
|
|
8044
8048
|
/* @__PURE__ */ F(
|
|
8045
8049
|
Ul,
|
|
8046
8050
|
{
|
|
8047
|
-
|
|
8051
|
+
style: { zIndex: r * 10 + 11 },
|
|
8052
|
+
className: "gw-inline-flex gw-w-full gw-items-center gw-justify-between gw-leading-6 gw-ps-1 focus:gw-outline-none",
|
|
8048
8053
|
children: [
|
|
8049
8054
|
/* @__PURE__ */ f("span", { children: e }),
|
|
8050
8055
|
/* @__PURE__ */ f(
|
|
@@ -8063,7 +8068,7 @@ function qg({
|
|
|
8063
8068
|
{
|
|
8064
8069
|
transition: "true",
|
|
8065
8070
|
className: `${r ? "gw-fixed" : "gw-absolute"} gw-max-w-[50vw] gw-mt-2 gw-w-56 gw-shrink gw-rounded-xl gw-bg-white gw-text-sm gw-leading-6 gw-text-gray-900 gw-shadow-lg gw-ring-1 gw-ring-gray-900/5 ${l[o]}`,
|
|
8066
|
-
style: { zIndex: r *
|
|
8071
|
+
style: { zIndex: r * 30 + 12 },
|
|
8067
8072
|
children: ({ close: s }) => /* @__PURE__ */ f(
|
|
8068
8073
|
"div",
|
|
8069
8074
|
{
|
|
@@ -8101,7 +8106,7 @@ function Jg({ value: e, onChange: t, placeholder: r = "Search", ...n }) {
|
|
|
8101
8106
|
);
|
|
8102
8107
|
}
|
|
8103
8108
|
function Of({ accessKey: e, affiliate: t, placeholder: r, ...n }) {
|
|
8104
|
-
const [o, l] =
|
|
8109
|
+
const [o, l] = V([]);
|
|
8105
8110
|
return /* @__PURE__ */ f(
|
|
8106
8111
|
Jg,
|
|
8107
8112
|
{
|
|
@@ -8117,7 +8122,7 @@ function Of({ accessKey: e, affiliate: t, placeholder: r, ...n }) {
|
|
|
8117
8122
|
);
|
|
8118
8123
|
}
|
|
8119
8124
|
function Df({ title: e, subtitle: t, image: r, alt: n, children: o, duration_ms: l = 12e3, imgHeight: a, imgWidth: i, opacity: s = 0.5 }) {
|
|
8120
|
-
const u = Array.isArray(r), c = Array.isArray(n), [w, g] =
|
|
8125
|
+
const u = Array.isArray(r), c = Array.isArray(n), [w, g] = V(u ? r[0] : r), [d, p] = V(c ? n[0] : n);
|
|
8121
8126
|
function h(m) {
|
|
8122
8127
|
return Math.floor(Math.random() * m);
|
|
8123
8128
|
}
|
|
@@ -8155,7 +8160,7 @@ function Yg(e) {
|
|
|
8155
8160
|
return ve({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" }, child: [] }] })(e);
|
|
8156
8161
|
}
|
|
8157
8162
|
function Nf({ className: e, href: t, text: r }) {
|
|
8158
|
-
const n = L(() =>
|
|
8163
|
+
const n = L(() => U(
|
|
8159
8164
|
"gw-text-gray-300 hover:gw-text-gray-500 last:gw-text-gray-900",
|
|
8160
8165
|
e
|
|
8161
8166
|
), [e]);
|
|
@@ -8179,7 +8184,7 @@ function Nf({ className: e, href: t, text: r }) {
|
|
|
8179
8184
|
] }) });
|
|
8180
8185
|
}
|
|
8181
8186
|
function Mf({ className: e, children: t }) {
|
|
8182
|
-
const r = L(() =>
|
|
8187
|
+
const r = L(() => U(
|
|
8183
8188
|
"gw-flex gw-flex-nowrap gw-items-center gw-space-x-2 gw-py-4 gw-overflow-x-auto gw-hide-scrollbar",
|
|
8184
8189
|
e
|
|
8185
8190
|
), [e]);
|
|
@@ -8197,7 +8202,7 @@ function Ff({ tabs: e, fill: t = !1, defaultIndex: r = 0 }) {
|
|
|
8197
8202
|
jd,
|
|
8198
8203
|
{
|
|
8199
8204
|
onClick: typeof n.onClick == "function" ? n.onClick : void 0,
|
|
8200
|
-
className: ({ selected: l }) =>
|
|
8205
|
+
className: ({ selected: l }) => U("gw-px-4 gw-py-2 gw-shadow hover:gw-bg-gray-100", t ? "gw-flex-auto" : "", l ? "gw-bg-gray-50" : ""),
|
|
8201
8206
|
children: /* @__PURE__ */ F(
|
|
8202
8207
|
"span",
|
|
8203
8208
|
{
|
|
@@ -8236,7 +8241,7 @@ const $g = {
|
|
|
8236
8241
|
zinc: "gw-bg-zinc-600/10 gw-text-zinc-700 group-data-[hover]:gw-bg-zinc-600/20 dark:gw-bg-white/5 dark:gw-text-zinc-400 dark:group-data-[hover]:gw-bg-white/10"
|
|
8237
8242
|
};
|
|
8238
8243
|
function yo({ color: e = "zinc", className: t, ...r }) {
|
|
8239
|
-
const n = L(() =>
|
|
8244
|
+
const n = L(() => U(
|
|
8240
8245
|
"gw-inline-flex gw-items-center gw-gap-x-1.5 gw-rounded-md gw-px-1.5 gw-py-0.5 gw-text-sm/5 gw-font-medium sm:gw-text-xs/5 forced-colors:gw-outline",
|
|
8241
8246
|
$g[e],
|
|
8242
8247
|
t
|
|
@@ -8244,7 +8249,7 @@ function yo({ color: e = "zinc", className: t, ...r }) {
|
|
|
8244
8249
|
return /* @__PURE__ */ f("span", { ...r, className: n });
|
|
8245
8250
|
}
|
|
8246
8251
|
const Hf = E.forwardRef(function({ color: t = "zinc", className: r, children: n, ...o }, l) {
|
|
8247
|
-
const a = L(() =>
|
|
8252
|
+
const a = L(() => U(
|
|
8248
8253
|
"gw-group gw-relative gw-inline-flex gw-rounded-md focus:gw-outline-none data-[focus]:gw-outline data-[focus]:gw-outline-2 data-[focus]:gw-outline-offset-2 data-[focus]:gw-outline-blue-500",
|
|
8249
8254
|
r
|
|
8250
8255
|
), [r]);
|
|
@@ -8261,7 +8266,7 @@ function Rf({
|
|
|
8261
8266
|
/* @__PURE__ */ F(
|
|
8262
8267
|
Rr.Button,
|
|
8263
8268
|
{
|
|
8264
|
-
className:
|
|
8269
|
+
className: U(
|
|
8265
8270
|
"gw-flex gw-justify-between gw-items-center gw-w-full gw-shadow gw-px-3 gw-py-2 gw-text-sm gw-font-semibold gw-text-gray-500 gw-bg-gray-50 hover:gw-bg-gray-100",
|
|
8266
8271
|
l ? "gw-rounded-t" : "gw-rounded",
|
|
8267
8272
|
n
|
|
@@ -8287,7 +8292,7 @@ const _g = ["date", "datetime-local", "month", "time", "week"], Bf = ft(function
|
|
|
8287
8292
|
"span",
|
|
8288
8293
|
{
|
|
8289
8294
|
"data-slot": "control",
|
|
8290
|
-
className:
|
|
8295
|
+
className: U([
|
|
8291
8296
|
// Basic layout
|
|
8292
8297
|
"gw-relative gw-block gw-w-full",
|
|
8293
8298
|
// Background color + shadow applied to inset pseudo element, so shadow blends with border in light mode
|
|
@@ -8306,7 +8311,7 @@ const _g = ["date", "datetime-local", "month", "time", "week"], Bf = ft(function
|
|
|
8306
8311
|
Au,
|
|
8307
8312
|
{
|
|
8308
8313
|
ref: n,
|
|
8309
|
-
className:
|
|
8314
|
+
className: U([
|
|
8310
8315
|
// Date classes
|
|
8311
8316
|
r.type && _g.includes(r.type) && [
|
|
8312
8317
|
"[&::-webkit-datetime-edit-fields-wrapper]:gw-p-0",
|
|
@@ -8344,25 +8349,25 @@ const _g = ["date", "datetime-local", "month", "time", "week"], Bf = ft(function
|
|
|
8344
8349
|
);
|
|
8345
8350
|
});
|
|
8346
8351
|
function zf({ className: e, ...t }) {
|
|
8347
|
-
const r = L(() =>
|
|
8352
|
+
const r = L(() => U(
|
|
8348
8353
|
"[&>*+[data-slot=control]]:gw-mt-6 [&>[data-slot=text]]:gw-mt-1",
|
|
8349
8354
|
e
|
|
8350
8355
|
), [e]);
|
|
8351
8356
|
return /* @__PURE__ */ f(xu, { ...t, className: r });
|
|
8352
8357
|
}
|
|
8353
8358
|
function Uf({ ...e }) {
|
|
8354
|
-
const t = L(() =>
|
|
8359
|
+
const t = L(() => U(
|
|
8355
8360
|
"gw-text-base/6 gw-font-semibold gw-text-zinc-950 data-[disabled]:gw-opacity-50 sm:gw-text-sm/6 dark:gw-text-white",
|
|
8356
8361
|
e.className
|
|
8357
8362
|
), [e.className]);
|
|
8358
8363
|
return /* @__PURE__ */ f(ku, { ...e, "data-slot": "legend", className: t });
|
|
8359
8364
|
}
|
|
8360
8365
|
function Xf({ className: e, ...t }) {
|
|
8361
|
-
const r = L(() =>
|
|
8366
|
+
const r = L(() => U("gw-space-y-8", e), [e]);
|
|
8362
8367
|
return /* @__PURE__ */ f("div", { ...t, "data-slot": "control", className: r });
|
|
8363
8368
|
}
|
|
8364
8369
|
function Vf({ className: e, ...t }) {
|
|
8365
|
-
const r = L(() =>
|
|
8370
|
+
const r = L(() => U(
|
|
8366
8371
|
"[&>[data-slot=label]+[data-slot=control]]:gw-mt-3",
|
|
8367
8372
|
"[&>[data-slot=label]+[data-slot=description]]:gw-mt-1",
|
|
8368
8373
|
"[&>[data-slot=description]+[data-slot=control]]:gw-mt-3",
|
|
@@ -8374,14 +8379,14 @@ function Vf({ className: e, ...t }) {
|
|
|
8374
8379
|
return /* @__PURE__ */ f(hu, { className: r, ...t });
|
|
8375
8380
|
}
|
|
8376
8381
|
function jf({ className: e, ...t }) {
|
|
8377
|
-
const r = L(() =>
|
|
8382
|
+
const r = L(() => U(
|
|
8378
8383
|
"gw-select-none gw-text-base/6 gw-text-zinc-950 data-[disabled]:gw-opacity-50 sm:gw-text-sm/6 dark:gw-text-white",
|
|
8379
8384
|
e
|
|
8380
8385
|
), [e]);
|
|
8381
8386
|
return /* @__PURE__ */ f(Zo, { ...t, "data-slot": "label", className: r });
|
|
8382
8387
|
}
|
|
8383
8388
|
function Wf({ className: e, disabled: t, ...r }) {
|
|
8384
|
-
const n = L(() =>
|
|
8389
|
+
const n = L(() => U(
|
|
8385
8390
|
"gw-text-base/6 gw-text-zinc-500 data-[disabled]:gw-opacity-50 sm:gw-text-sm/6 dark:gw-text-zinc-400",
|
|
8386
8391
|
e
|
|
8387
8392
|
), [e]);
|
|
@@ -8395,7 +8400,7 @@ function Wf({ className: e, disabled: t, ...r }) {
|
|
|
8395
8400
|
);
|
|
8396
8401
|
}
|
|
8397
8402
|
function Gf({ className: e, disabled: t, ...r }) {
|
|
8398
|
-
const n = L(() =>
|
|
8403
|
+
const n = L(() => U(
|
|
8399
8404
|
"gw-text-base/6 gw-text-red-600 data-[disabled]:gw-opacity-50 sm:gw-text-sm/6 dark:gw-text-red-500",
|
|
8400
8405
|
e
|
|
8401
8406
|
), [e]);
|
|
@@ -8413,7 +8418,7 @@ const Qf = ft(function({ className: t, resizable: r = !0, ...n }, o) {
|
|
|
8413
8418
|
"span",
|
|
8414
8419
|
{
|
|
8415
8420
|
"data-slot": "control",
|
|
8416
|
-
className:
|
|
8421
|
+
className: U([
|
|
8417
8422
|
t,
|
|
8418
8423
|
// Basic layout
|
|
8419
8424
|
"gw-relative gw-block gw-w-full",
|
|
@@ -8430,7 +8435,7 @@ const Qf = ft(function({ className: t, resizable: r = !0, ...n }, o) {
|
|
|
8430
8435
|
Qd,
|
|
8431
8436
|
{
|
|
8432
8437
|
ref: o,
|
|
8433
|
-
className:
|
|
8438
|
+
className: U([
|
|
8434
8439
|
// Basic layout
|
|
8435
8440
|
"gw-relative gw-block gw-h-full gw-w-full gw-appearance-none gw-rounded-lg gw-px-[calc(theme(spacing[3.5])-1px)] gw-py-[calc(theme(spacing[2.5])-1px)] sm:gw-px-[calc(theme(spacing.3)-1px)] sm:gw-py-[calc(theme(spacing[1.5])-1px)]",
|
|
8436
8441
|
// Typography
|
|
@@ -8509,5 +8514,5 @@ export {
|
|
|
8509
8514
|
nr as TouchTarget,
|
|
8510
8515
|
Wg as USABanner,
|
|
8511
8516
|
Xn as UsaceBox,
|
|
8512
|
-
|
|
8517
|
+
U as gwMerge
|
|
8513
8518
|
};
|