@burdenoff/fe-libs 2026.1118.9 → 2026.1118.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/shared/backgrounds/color.js +68 -51
- package/dist/ui/gallery-category-rail.d.ts +49 -0
- package/dist/ui/gallery-category-rail.js +110 -0
- package/dist/ui/gallery-pager-labels.d.ts +22 -0
- package/dist/ui/gallery-pager-labels.js +12 -0
- package/dist/ui/gallery-pager.d.ts +19 -0
- package/dist/ui/gallery-pager.js +89 -0
- package/dist/ui/gallery-paging.d.ts +45 -0
- package/dist/ui/gallery-paging.js +66 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui.js +49 -45
- package/package.json +1 -1
|
@@ -37,71 +37,88 @@ function r(r) {
|
|
|
37
37
|
}
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
var i;
|
|
41
|
-
function a(
|
|
40
|
+
var i = null;
|
|
41
|
+
function a() {
|
|
42
|
+
if (typeof document > "u") return null;
|
|
43
|
+
if (i?.document !== document) {
|
|
44
|
+
let e = null;
|
|
45
|
+
try {
|
|
46
|
+
let t = document.createElement("canvas");
|
|
47
|
+
t.width = 1, t.height = 1, e = t.getContext("2d", { willReadFrequently: !0 });
|
|
48
|
+
} catch {
|
|
49
|
+
e = null;
|
|
50
|
+
}
|
|
51
|
+
i = {
|
|
52
|
+
document,
|
|
53
|
+
context: e
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return i.context;
|
|
57
|
+
}
|
|
58
|
+
function o(e, t) {
|
|
59
|
+
e.fillStyle = "#000000", e.fillStyle = t;
|
|
60
|
+
let n = String(e.fillStyle);
|
|
61
|
+
return e.fillStyle = "#ffffff", e.fillStyle = t, String(e.fillStyle) === n;
|
|
62
|
+
}
|
|
63
|
+
function s(e) {
|
|
42
64
|
let t = r(e);
|
|
43
65
|
if (t) return t;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
if (!i || typeof CSS < "u" && typeof CSS.supports == "function" && !CSS.supports("color", e)) return null;
|
|
51
|
-
i.fillStyle = e, i.clearRect(0, 0, 1, 1), i.fillRect(0, 0, 1, 1);
|
|
52
|
-
let [n, a, o, s] = i.getImageData(0, 0, 1, 1).data;
|
|
53
|
-
return s === 0 ? {
|
|
66
|
+
let n = a();
|
|
67
|
+
if (!n || typeof CSS < "u" && typeof CSS.supports == "function" && !CSS.supports("color", e) || !o(n, e)) return null;
|
|
68
|
+
n.clearRect(0, 0, 1, 1), n.fillRect(0, 0, 1, 1);
|
|
69
|
+
let [i, s, c, l] = n.getImageData(0, 0, 1, 1).data;
|
|
70
|
+
return l === 0 ? {
|
|
54
71
|
r: 0,
|
|
55
72
|
g: 0,
|
|
56
73
|
b: 0,
|
|
57
74
|
a: 0
|
|
58
75
|
} : {
|
|
59
|
-
r:
|
|
60
|
-
g:
|
|
61
|
-
b:
|
|
62
|
-
a:
|
|
76
|
+
r: i,
|
|
77
|
+
g: s,
|
|
78
|
+
b: c,
|
|
79
|
+
a: l / 255
|
|
63
80
|
};
|
|
64
81
|
}
|
|
65
|
-
function
|
|
66
|
-
return r(e) ??
|
|
82
|
+
function c(e) {
|
|
83
|
+
return r(e) ?? s(e);
|
|
67
84
|
}
|
|
68
|
-
function
|
|
69
|
-
let n =
|
|
85
|
+
function l(e, t) {
|
|
86
|
+
let n = c(e), r = c(t);
|
|
70
87
|
return n && r ? [n, r] : null;
|
|
71
88
|
}
|
|
72
|
-
var
|
|
89
|
+
var u = (e) => {
|
|
73
90
|
let t = e / 255;
|
|
74
91
|
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
75
|
-
},
|
|
92
|
+
}, d = (e) => {
|
|
76
93
|
let t = e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055;
|
|
77
94
|
return n(Math.round(t * 255), 0, 255);
|
|
78
95
|
};
|
|
79
|
-
function
|
|
80
|
-
let r =
|
|
96
|
+
function f({ r: e, g: t, b: n }) {
|
|
97
|
+
let r = u(e), i = u(t), a = u(n), o = Math.cbrt(.4122214708 * r + .5363325363 * i + .0514459929 * a), s = Math.cbrt(.2119034982 * r + .6806995451 * i + .1073969566 * a), c = Math.cbrt(.0883024619 * r + .2817188376 * i + .6299787005 * a);
|
|
81
98
|
return {
|
|
82
|
-
L: .2104542553 * o + .793617785 * s - .0040720468 *
|
|
83
|
-
a: 1.9779984951 * o - 2.428592205 * s + .4505937099 *
|
|
84
|
-
b: .0259040371 * o + .7827717662 * s - .808675766 *
|
|
99
|
+
L: .2104542553 * o + .793617785 * s - .0040720468 * c,
|
|
100
|
+
a: 1.9779984951 * o - 2.428592205 * s + .4505937099 * c,
|
|
101
|
+
b: .0259040371 * o + .7827717662 * s - .808675766 * c
|
|
85
102
|
};
|
|
86
103
|
}
|
|
87
|
-
function
|
|
88
|
-
let [n, r, i] =
|
|
104
|
+
function p(e, t = 1) {
|
|
105
|
+
let [n, r, i] = h(e);
|
|
89
106
|
return {
|
|
90
|
-
r:
|
|
91
|
-
g:
|
|
92
|
-
b:
|
|
107
|
+
r: d(n),
|
|
108
|
+
g: d(r),
|
|
109
|
+
b: d(i),
|
|
93
110
|
a: t
|
|
94
111
|
};
|
|
95
112
|
}
|
|
96
|
-
function
|
|
97
|
-
let i =
|
|
98
|
-
return
|
|
113
|
+
function m(e, t, r) {
|
|
114
|
+
let i = f(e), a = f(t), o = n(r, 0, 1);
|
|
115
|
+
return p({
|
|
99
116
|
L: i.L + (a.L - i.L) * o,
|
|
100
117
|
a: i.a + (a.a - i.a) * o,
|
|
101
118
|
b: i.b + (a.b - i.b) * o
|
|
102
119
|
}, e.a + (t.a - e.a) * o);
|
|
103
120
|
}
|
|
104
|
-
function
|
|
121
|
+
function h({ L: e, a: t, b: n }) {
|
|
105
122
|
let r = (e + .3963377774 * t + .2158037573 * n) ** 3, i = (e - .1055613458 * t - .0638541728 * n) ** 3, a = (e - .0894841775 * t - 1.291485548 * n) ** 3;
|
|
106
123
|
return [
|
|
107
124
|
4.0767416621 * r - 3.3077115913 * i + .2309699292 * a,
|
|
@@ -109,45 +126,45 @@ function p({ L: e, a: t, b: n }) {
|
|
|
109
126
|
-.0041960863 * r - .7034186147 * i + 1.707614701 * a
|
|
110
127
|
];
|
|
111
128
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
129
|
+
var g = (e) => h(e).every((e) => e >= -1e-4 && e <= 1.0001);
|
|
130
|
+
function _(e, t = 1) {
|
|
131
|
+
if (g(e)) return p(e, t);
|
|
115
132
|
let n = 0, r = 1;
|
|
116
133
|
for (let t = 0; t < 12; t++) {
|
|
117
134
|
let t = (n + r) / 2;
|
|
118
|
-
|
|
135
|
+
g({
|
|
119
136
|
L: e.L,
|
|
120
137
|
a: e.a * t,
|
|
121
138
|
b: e.b * t
|
|
122
139
|
}) ? n = t : r = t;
|
|
123
140
|
}
|
|
124
|
-
return
|
|
141
|
+
return p({
|
|
125
142
|
L: e.L,
|
|
126
143
|
a: e.a * n,
|
|
127
144
|
b: e.b * n
|
|
128
145
|
}, t);
|
|
129
146
|
}
|
|
130
|
-
function
|
|
131
|
-
let i =
|
|
132
|
-
return
|
|
147
|
+
function v(e, t, r = 1) {
|
|
148
|
+
let i = f(e);
|
|
149
|
+
return _({
|
|
133
150
|
L: n(t, 0, 1),
|
|
134
151
|
a: i.a * r,
|
|
135
152
|
b: i.b * r
|
|
136
153
|
}, e.a);
|
|
137
154
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
155
|
+
function y(e) {
|
|
156
|
+
return f(e).L;
|
|
140
157
|
}
|
|
141
|
-
function
|
|
142
|
-
let t =
|
|
143
|
-
return
|
|
158
|
+
function b(e) {
|
|
159
|
+
let t = f(e);
|
|
160
|
+
return p({
|
|
144
161
|
L: n(1.08 - t.L, .12, .62),
|
|
145
162
|
a: t.a,
|
|
146
163
|
b: t.b
|
|
147
164
|
}, e.a);
|
|
148
165
|
}
|
|
149
|
-
function
|
|
166
|
+
function x({ r: e, g: t, b: r, a: i }, a = 1) {
|
|
150
167
|
let o = n(i * a, 0, 1);
|
|
151
168
|
return `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(r)}, ${Math.round(o * 1e3) / 1e3})`;
|
|
152
169
|
}
|
|
153
|
-
export {
|
|
170
|
+
export { x as cssRgba, p as fromOklab, _ as fromOklabInGamut, y as lightness, m as mixOklab, r as parseColor, c as readColor, l as readColorPair, s as resolveColor, b as toInk, f as toOklab, v as withLightness };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CategoryFacet } from './gallery-paging';
|
|
3
|
+
export interface GalleryChipProps {
|
|
4
|
+
label: string;
|
|
5
|
+
/** Leading icon; the host chooses its icon set. */
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
count?: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
onSelect: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** One category chip (a toggle button with an optional count). */
|
|
12
|
+
export declare function GalleryChip({ label, icon, count, active, onSelect }: GalleryChipProps): import('react').JSX.Element;
|
|
13
|
+
export interface GalleryCategoryRailProps {
|
|
14
|
+
/** Categories with counts, most used first. */
|
|
15
|
+
facets: readonly CategoryFacet[];
|
|
16
|
+
/** Total shown on the "All" chip; hidden when 0. */
|
|
17
|
+
facetsTotal: number;
|
|
18
|
+
/** The selected category value, or "all". */
|
|
19
|
+
category: string;
|
|
20
|
+
onCategoryChange: (value: string) => void;
|
|
21
|
+
/** Translated name of a category value. */
|
|
22
|
+
labelFor: (value: string) => string;
|
|
23
|
+
/** Icon of a category value. */
|
|
24
|
+
iconFor?: (value: string) => ReactNode;
|
|
25
|
+
/** Icon of the "All" chip. */
|
|
26
|
+
allIcon?: ReactNode;
|
|
27
|
+
allLabel: string;
|
|
28
|
+
/** "{n} more" chip text. */
|
|
29
|
+
moreLabel: (count: number) => string;
|
|
30
|
+
/** Heading of the "more" menu. */
|
|
31
|
+
moreTitle: string;
|
|
32
|
+
/** Chips shown before the "N more" menu; default 6. */
|
|
33
|
+
topCount?: number;
|
|
34
|
+
testId?: string;
|
|
35
|
+
moreTestId?: string;
|
|
36
|
+
}
|
|
37
|
+
/** One row of category chips: All, the largest, the selected one, and "N more". */
|
|
38
|
+
export declare function GalleryCategoryRail({ facets, facetsTotal, category, onCategoryChange, labelFor, iconFor, allIcon, allLabel, moreLabel, moreTitle, topCount, testId, moreTestId, }: GalleryCategoryRailProps): import('react').JSX.Element;
|
|
39
|
+
export interface GalleryPanelProps {
|
|
40
|
+
icon: ReactNode;
|
|
41
|
+
title: string;
|
|
42
|
+
text: string;
|
|
43
|
+
/** "alert" for an error panel. */
|
|
44
|
+
role?: 'alert';
|
|
45
|
+
/** Actions (buttons) under the text. */
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
/** The dashed empty / no-match / error panel shown in place of results. */
|
|
49
|
+
export declare function GalleryPanel({ icon, title, text, role, children }: GalleryPanelProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuLabel as r, DropdownMenuRadioGroup as i, DropdownMenuRadioItem as a, DropdownMenuTrigger as o } from "./dropdown-menu.js";
|
|
3
|
+
import { splitCategories as s } from "./gallery-paging.js";
|
|
4
|
+
import { ChevronDown as c } from "lucide-react";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
// src/ui/gallery-category-rail.tsx
|
|
7
|
+
var d = "inline-flex flex-none items-center gap-1.5 whitespace-nowrap rounded-lg border px-3 py-1.5 text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-accent-glow";
|
|
8
|
+
function f({ label: t, icon: n, count: r, active: i, onSelect: a }) {
|
|
9
|
+
return /* @__PURE__ */ u("button", {
|
|
10
|
+
type: "button",
|
|
11
|
+
onClick: a,
|
|
12
|
+
"aria-pressed": i,
|
|
13
|
+
className: e(d, i ? "border-accent-glow/55 bg-accent-glow/15 text-text-primary" : "border-border-default bg-surface text-text-secondary hover:border-border-strong hover:text-text-primary"),
|
|
14
|
+
children: [
|
|
15
|
+
n,
|
|
16
|
+
t,
|
|
17
|
+
r !== void 0 && /* @__PURE__ */ l("span", {
|
|
18
|
+
className: "ms-0.5 text-xs font-medium text-text-muted",
|
|
19
|
+
children: r
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function p({ facets: p, facetsTotal: m, category: h, onCategoryChange: g, labelFor: _, iconFor: v, allIcon: y, allLabel: b, moreLabel: x, moreTitle: S, topCount: C, testId: w, moreTestId: T }) {
|
|
25
|
+
let { top: E, extra: D, more: O } = s(p, h, C);
|
|
26
|
+
return /* @__PURE__ */ u("div", {
|
|
27
|
+
className: "mb-[18px] flex flex-nowrap gap-2 overflow-x-auto pb-0.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden max-xl:[mask-image:linear-gradient(to_right,var(--color-text-primary)_calc(100%-48px),transparent)] max-xl:rtl:[mask-image:linear-gradient(to_left,var(--color-text-primary)_calc(100%-48px),transparent)]",
|
|
28
|
+
"data-testid": w,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ l(f, {
|
|
31
|
+
label: b,
|
|
32
|
+
icon: y,
|
|
33
|
+
count: m > 0 ? m : void 0,
|
|
34
|
+
active: h === "all",
|
|
35
|
+
onSelect: () => g("all")
|
|
36
|
+
}),
|
|
37
|
+
E.map((e) => /* @__PURE__ */ l(f, {
|
|
38
|
+
label: _(e.value),
|
|
39
|
+
icon: v?.(e.value),
|
|
40
|
+
count: e.count,
|
|
41
|
+
active: h === e.value,
|
|
42
|
+
onSelect: () => g(e.value)
|
|
43
|
+
}, e.value)),
|
|
44
|
+
D && /* @__PURE__ */ l(f, {
|
|
45
|
+
label: _(D.value),
|
|
46
|
+
icon: v?.(D.value),
|
|
47
|
+
count: D.count,
|
|
48
|
+
active: !0,
|
|
49
|
+
onSelect: () => g(D.value)
|
|
50
|
+
}),
|
|
51
|
+
O.length > 0 && /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(o, {
|
|
52
|
+
asChild: !0,
|
|
53
|
+
children: /* @__PURE__ */ u("button", {
|
|
54
|
+
type: "button",
|
|
55
|
+
"data-testid": T,
|
|
56
|
+
className: e(d, "border-dashed border-border-default bg-surface text-text-secondary hover:border-border-strong hover:text-text-primary"),
|
|
57
|
+
children: [x(O.length), /* @__PURE__ */ l(c, {
|
|
58
|
+
className: "size-4",
|
|
59
|
+
"aria-hidden": "true"
|
|
60
|
+
})]
|
|
61
|
+
})
|
|
62
|
+
}), /* @__PURE__ */ u(n, {
|
|
63
|
+
align: "start",
|
|
64
|
+
className: "max-h-[min(24rem,var(--radix-dropdown-menu-content-available-height))] min-w-[230px] overflow-y-auto",
|
|
65
|
+
children: [/* @__PURE__ */ l(r, {
|
|
66
|
+
className: "text-[11px] uppercase tracking-wide text-text-muted",
|
|
67
|
+
children: S
|
|
68
|
+
}), /* @__PURE__ */ l(i, {
|
|
69
|
+
value: h,
|
|
70
|
+
onValueChange: g,
|
|
71
|
+
children: O.map((e) => /* @__PURE__ */ l(a, {
|
|
72
|
+
value: e.value,
|
|
73
|
+
children: /* @__PURE__ */ u("span", {
|
|
74
|
+
className: "flex w-full items-center justify-between gap-4",
|
|
75
|
+
children: [/* @__PURE__ */ l("span", { children: _(e.value) }), e.count !== void 0 && /* @__PURE__ */ l("span", {
|
|
76
|
+
className: "text-xs text-text-muted",
|
|
77
|
+
children: e.count
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
}, e.value))
|
|
81
|
+
})]
|
|
82
|
+
})] })
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function m({ icon: e, title: t, text: n, role: r, children: i }) {
|
|
87
|
+
return /* @__PURE__ */ u("div", {
|
|
88
|
+
role: r,
|
|
89
|
+
className: "flex flex-col items-center gap-2.5 rounded-xl border border-dashed border-border-default bg-bg-elevated/60 px-4 py-12 text-center",
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ l("span", {
|
|
92
|
+
className: "flex size-12 items-center justify-center rounded-[14px] border border-border-subtle bg-bg-sunken",
|
|
93
|
+
children: e
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ l("h3", {
|
|
96
|
+
className: "text-base font-semibold text-text-primary",
|
|
97
|
+
children: t
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ l("p", {
|
|
100
|
+
className: "max-w-[30rem] text-sm text-text-secondary",
|
|
101
|
+
children: n
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ l("div", {
|
|
104
|
+
className: "mt-1.5 flex flex-wrap justify-center gap-2",
|
|
105
|
+
children: i
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
export { p as GalleryCategoryRail, f as GalleryChip, m as GalleryPanel };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words a pager shows. The host translates them (fe-libs components take
|
|
3
|
+
* finished strings, as the host owns the i18n catalogue); English defaults
|
|
4
|
+
* apply when `labels` is omitted.
|
|
5
|
+
*/
|
|
6
|
+
export interface GalleryPagerLabels {
|
|
7
|
+
/** Accessible name of the `<nav>` landmark. */
|
|
8
|
+
pagesNav: string;
|
|
9
|
+
previous: string;
|
|
10
|
+
next: string;
|
|
11
|
+
/** Accessible name of the phone "previous" icon button. */
|
|
12
|
+
previousPage: string;
|
|
13
|
+
/** Accessible name of the phone "next" icon button. */
|
|
14
|
+
nextPage: string;
|
|
15
|
+
/** "Showing 21–40 of 236" (desktop). */
|
|
16
|
+
showing: (start: number, end: number, total: number) => string;
|
|
17
|
+
/** Accessible name of a numbered page button. */
|
|
18
|
+
pageAria: (page: number) => string;
|
|
19
|
+
/** "Page 3 of 12" (phone). */
|
|
20
|
+
pageOf: (page: number, pages: number) => string;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_GALLERY_PAGER_LABELS: GalleryPagerLabels;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/ui/gallery-pager-labels.ts
|
|
2
|
+
var e = {
|
|
3
|
+
pagesNav: "Pages",
|
|
4
|
+
previous: "Previous",
|
|
5
|
+
next: "Next",
|
|
6
|
+
previousPage: "Previous page",
|
|
7
|
+
nextPage: "Next page",
|
|
8
|
+
showing: (e, t, n) => `Showing ${e}–${t} of ${n}`,
|
|
9
|
+
pageAria: (e) => `Page ${e}`,
|
|
10
|
+
pageOf: (e, t) => `Page ${e} of ${t}`
|
|
11
|
+
};
|
|
12
|
+
export { e as DEFAULT_GALLERY_PAGER_LABELS };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GalleryPagerLabels } from './gallery-pager-labels';
|
|
2
|
+
export interface GalleryPagerProps {
|
|
3
|
+
/** Current page, 1-based (clamp it first with `clampPage`). */
|
|
4
|
+
page: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
/** Total number of results. */
|
|
7
|
+
total: number;
|
|
8
|
+
onPage: (page: number) => void;
|
|
9
|
+
/** Results per page; default {@link GALLERY_PAGE_SIZE}. */
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
labels?: GalleryPagerLabels;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The gallery pager. Desktop: "Showing 21–40 of 236", Previous, numbered pages
|
|
16
|
+
* with ellipses, Next. Phones: "‹ Page 3 of 12 ›". Controlled: the page owns
|
|
17
|
+
* the current page (normally in the URL).
|
|
18
|
+
*/
|
|
19
|
+
export declare function GalleryPager({ page, totalPages, total, onPage, pageSize, labels, className, }: GalleryPagerProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import { DEFAULT_GALLERY_PAGER_LABELS as t } from "./gallery-pager-labels.js";
|
|
3
|
+
import { pageItems as n, pageRange as r } from "./gallery-paging.js";
|
|
4
|
+
import { ChevronLeft as i, ChevronRight as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
// src/ui/gallery-pager.tsx
|
|
7
|
+
var c = "inline-flex h-10 min-w-10 items-center justify-center gap-1 rounded-[10px] border border-border-default bg-transparent px-2.5 text-sm text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-accent-glow disabled:opacity-45 disabled:hover:text-text-secondary";
|
|
8
|
+
function l({ page: l, totalPages: u, total: d, onPage: f, pageSize: p = 20, labels: m = t, className: h }) {
|
|
9
|
+
let { start: g, end: _ } = r(l, p, d);
|
|
10
|
+
return /* @__PURE__ */ s("nav", {
|
|
11
|
+
"aria-label": m.pagesNav,
|
|
12
|
+
className: e("mt-6 flex flex-wrap items-center justify-between gap-3", h),
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ o("span", {
|
|
15
|
+
className: "hidden text-[13px] text-text-muted sm:inline",
|
|
16
|
+
children: m.showing(g, _, d)
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ s("div", {
|
|
19
|
+
className: "hidden items-center gap-1.5 sm:flex",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ s("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
className: c,
|
|
24
|
+
disabled: l <= 1,
|
|
25
|
+
onClick: () => f(l - 1),
|
|
26
|
+
children: [/* @__PURE__ */ o(i, {
|
|
27
|
+
className: "size-4 rtl:rotate-180",
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}), m.previous]
|
|
30
|
+
}),
|
|
31
|
+
n(l, u).map((t, n) => t === "gap" ? /* @__PURE__ */ o("span", {
|
|
32
|
+
className: "w-6 text-center text-text-muted",
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
children: "…"
|
|
35
|
+
}, `gap-${n}`) : /* @__PURE__ */ o("button", {
|
|
36
|
+
type: "button",
|
|
37
|
+
className: e(c, t === l && "border-accent-glow/60 bg-accent-glow/20 font-bold text-text-primary"),
|
|
38
|
+
"aria-current": t === l ? "page" : void 0,
|
|
39
|
+
"aria-label": m.pageAria(t),
|
|
40
|
+
onClick: () => f(t),
|
|
41
|
+
children: t
|
|
42
|
+
}, t)),
|
|
43
|
+
/* @__PURE__ */ s("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
className: c,
|
|
46
|
+
disabled: l >= u,
|
|
47
|
+
onClick: () => f(l + 1),
|
|
48
|
+
children: [m.next, /* @__PURE__ */ o(a, {
|
|
49
|
+
className: "size-4 rtl:rotate-180",
|
|
50
|
+
"aria-hidden": "true"
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ s("div", {
|
|
56
|
+
className: "flex w-full items-center justify-between sm:hidden",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ o("button", {
|
|
59
|
+
type: "button",
|
|
60
|
+
className: e(c, "size-11"),
|
|
61
|
+
disabled: l <= 1,
|
|
62
|
+
"aria-label": m.previousPage,
|
|
63
|
+
onClick: () => f(l - 1),
|
|
64
|
+
children: /* @__PURE__ */ o(i, {
|
|
65
|
+
className: "size-4 rtl:rotate-180",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ o("span", {
|
|
70
|
+
className: "text-[13.5px] text-text-secondary",
|
|
71
|
+
children: m.pageOf(l, u)
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ o("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
className: e(c, "size-11"),
|
|
76
|
+
disabled: l >= u,
|
|
77
|
+
"aria-label": m.nextPage,
|
|
78
|
+
onClick: () => f(l + 1),
|
|
79
|
+
children: /* @__PURE__ */ o(a, {
|
|
80
|
+
className: "size-4 rtl:rotate-180",
|
|
81
|
+
"aria-hidden": "true"
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
export { l as GalleryPager };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paging rules shared by every gallery-style page (BOFF-15371): page maths,
|
|
3
|
+
* the page-number window with ellipses, and the `?page=` URL helpers. Pure
|
|
4
|
+
* functions, so a page can keep its state in the URL and a shared link or Back
|
|
5
|
+
* returns to the same results.
|
|
6
|
+
*/
|
|
7
|
+
/** Items per page on gallery pages (no page-size picker). */
|
|
8
|
+
export declare const GALLERY_PAGE_SIZE = 20;
|
|
9
|
+
/** `?page=` as a page number: a positive whole number, else 1. */
|
|
10
|
+
export declare function parsePageParam(raw: string | null | undefined): number;
|
|
11
|
+
export declare function totalPagesFor(total: number, pageSize: number): number;
|
|
12
|
+
/** A page past the end becomes the last page; below 1 becomes 1. */
|
|
13
|
+
export declare function clampPage(page: number, totalPages: number): number;
|
|
14
|
+
export declare function offsetForPage(page: number, pageSize: number): number;
|
|
15
|
+
/** "Showing {start}–{end} of {total}": 1-based, both 0 when empty. */
|
|
16
|
+
export declare function pageRange(page: number, pageSize: number, total: number): {
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
};
|
|
20
|
+
export type PageItem = number | 'gap';
|
|
21
|
+
/**
|
|
22
|
+
* Page numbers with ellipses: 1 2 3 4 5 … 33 / 1 … 6 7 8 … 33 /
|
|
23
|
+
* 1 … 29 30 31 32 33. Up to seven pages are all listed.
|
|
24
|
+
*/
|
|
25
|
+
export declare function pageItems(page: number, totalPages: number): PageItem[];
|
|
26
|
+
/**
|
|
27
|
+
* The query string with `page` set. Page 1 is the default and is left out;
|
|
28
|
+
* every other parameter is kept.
|
|
29
|
+
*/
|
|
30
|
+
export declare function withPageParam(params: URLSearchParams, page: number): URLSearchParams;
|
|
31
|
+
/** Category chips shown before the "N more" menu. */
|
|
32
|
+
export declare const TOP_CATEGORY_COUNT = 6;
|
|
33
|
+
export interface CategoryFacet {
|
|
34
|
+
value: string;
|
|
35
|
+
count?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface CategorySplit {
|
|
38
|
+
/** The first {@link TOP_CATEGORY_COUNT} categories, most used first. */
|
|
39
|
+
top: CategoryFacet[];
|
|
40
|
+
/** The selected category when it is one of the "more" ones, else null. */
|
|
41
|
+
extra: CategoryFacet | null;
|
|
42
|
+
/** Every category behind the "N more" chip. */
|
|
43
|
+
more: CategoryFacet[];
|
|
44
|
+
}
|
|
45
|
+
export declare function splitCategories(facets: readonly CategoryFacet[], selected: string, topCount?: number): CategorySplit;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// src/ui/gallery-paging.ts
|
|
2
|
+
var e = 20;
|
|
3
|
+
function t(e) {
|
|
4
|
+
if (!e || !/^\d+$/.test(e.trim())) return 1;
|
|
5
|
+
let t = Number.parseInt(e, 10);
|
|
6
|
+
return Number.isSafeInteger(t) && t >= 1 ? t : 1;
|
|
7
|
+
}
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
return e > 0 ? Math.ceil(e / t) : 1;
|
|
10
|
+
}
|
|
11
|
+
function r(e, t) {
|
|
12
|
+
return Math.min(Math.max(1, e), Math.max(1, t));
|
|
13
|
+
}
|
|
14
|
+
function i(e, t) {
|
|
15
|
+
return (Math.max(1, e) - 1) * t;
|
|
16
|
+
}
|
|
17
|
+
function a(e, t, n) {
|
|
18
|
+
return n <= 0 ? {
|
|
19
|
+
start: 0,
|
|
20
|
+
end: 0
|
|
21
|
+
} : {
|
|
22
|
+
start: i(e, t) + 1,
|
|
23
|
+
end: Math.min(e * t, n)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function o(e, t) {
|
|
27
|
+
return t <= 7 ? Array.from({ length: t }, (e, t) => t + 1) : e <= 4 ? [
|
|
28
|
+
1,
|
|
29
|
+
2,
|
|
30
|
+
3,
|
|
31
|
+
4,
|
|
32
|
+
5,
|
|
33
|
+
"gap",
|
|
34
|
+
t
|
|
35
|
+
] : e >= t - 3 ? [
|
|
36
|
+
1,
|
|
37
|
+
"gap",
|
|
38
|
+
t - 4,
|
|
39
|
+
t - 3,
|
|
40
|
+
t - 2,
|
|
41
|
+
t - 1,
|
|
42
|
+
t
|
|
43
|
+
] : [
|
|
44
|
+
1,
|
|
45
|
+
"gap",
|
|
46
|
+
e - 1,
|
|
47
|
+
e,
|
|
48
|
+
e + 1,
|
|
49
|
+
"gap",
|
|
50
|
+
t
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
function s(e, t) {
|
|
54
|
+
let n = new URLSearchParams(e);
|
|
55
|
+
return t <= 1 ? n.delete("page") : n.set("page", String(t)), n;
|
|
56
|
+
}
|
|
57
|
+
var c = 6;
|
|
58
|
+
function l(e, t, n = 6) {
|
|
59
|
+
let r = e.slice(0, n), i = e.slice(n);
|
|
60
|
+
return {
|
|
61
|
+
top: r,
|
|
62
|
+
extra: i.find((e) => e.value === t) ?? null,
|
|
63
|
+
more: i
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export { e as GALLERY_PAGE_SIZE, c as TOP_CATEGORY_COUNT, r as clampPage, i as offsetForPage, o as pageItems, a as pageRange, t as parsePageParam, l as splitCategories, n as totalPagesFor, s as withPageParam };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export { BottomSheet, BottomSheetClose, BottomSheetContent, BottomSheetDescripti
|
|
|
11
11
|
export { ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, type ResponsiveDialogContentProps, } from './responsive-dialog';
|
|
12
12
|
export { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority, type ResponsiveTableProps, } from './responsive-table';
|
|
13
13
|
export { Pagination, type PaginationProps } from './pagination';
|
|
14
|
+
export { GalleryPager, type GalleryPagerProps } from './gallery-pager';
|
|
15
|
+
export { DEFAULT_GALLERY_PAGER_LABELS, type GalleryPagerLabels } from './gallery-pager-labels';
|
|
16
|
+
export { GALLERY_PAGE_SIZE, TOP_CATEGORY_COUNT, clampPage, offsetForPage, pageItems, pageRange, parsePageParam, splitCategories, totalPagesFor, withPageParam, type CategoryFacet, type CategorySplit, type PageItem, } from './gallery-paging';
|
|
17
|
+
export { GalleryCategoryRail, GalleryChip, GalleryPanel, type GalleryCategoryRailProps, type GalleryChipProps, type GalleryPanelProps, } from './gallery-category-rail';
|
|
14
18
|
export { Stepper, type StepperProps, type StepperStep } from './stepper';
|
|
15
19
|
export { ResponsiveStack, type ResponsiveStackProps } from './responsive-stack';
|
|
16
20
|
export { EmptyState, type EmptyStateProps } from './empty-state';
|
package/dist/ui.js
CHANGED
|
@@ -11,48 +11,52 @@ import { BottomSheet as h, BottomSheetClose as g, BottomSheetContent as _, Botto
|
|
|
11
11
|
import { ResponsiveDialog as C, ResponsiveDialogClose as w, ResponsiveDialogContent as T, ResponsiveDialogDescription as E, ResponsiveDialogFooter as D, ResponsiveDialogHeader as O, ResponsiveDialogTitle as k, ResponsiveDialogTrigger as A } from "./ui/responsive-dialog.js";
|
|
12
12
|
import { ResponsiveTable as j } from "./ui/responsive-table.js";
|
|
13
13
|
import { Pagination as M } from "./ui/pagination.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
|
|
14
|
+
import { GalleryPager as N } from "./ui/gallery-pager.js";
|
|
15
|
+
import { DEFAULT_GALLERY_PAGER_LABELS as P } from "./ui/gallery-pager-labels.js";
|
|
16
|
+
import { GALLERY_PAGE_SIZE as F, TOP_CATEGORY_COUNT as I, clampPage as L, offsetForPage as R, pageItems as z, pageRange as B, parsePageParam as V, splitCategories as H, totalPagesFor as U, withPageParam as W } from "./ui/gallery-paging.js";
|
|
17
|
+
import { GalleryCategoryRail as G, GalleryChip as K, GalleryPanel as q } from "./ui/gallery-category-rail.js";
|
|
18
|
+
import { Stepper as J } from "./ui/stepper.js";
|
|
19
|
+
import { ResponsiveStack as Y } from "./ui/responsive-stack.js";
|
|
20
|
+
import { EmptyState as X } from "./ui/empty-state.js";
|
|
21
|
+
import { AlertDialog as Z, AlertDialogAction as Q, AlertDialogCancel as $, AlertDialogContent as ee, AlertDialogDescription as te, AlertDialogFooter as ne, AlertDialogHeader as re, AlertDialogOverlay as ie, AlertDialogPortal as ae, AlertDialogTitle as oe, AlertDialogTrigger as se } from "./ui/alert-dialog.js";
|
|
22
|
+
import { Badge as ce, badgeVariants as le } from "./ui/badge.js";
|
|
23
|
+
import { Button as ue, buttonVariants as de } from "./ui/button.js";
|
|
24
|
+
import { Card as fe, CardContent as pe, CardDescription as me, CardFooter as he, CardHeader as ge, CardTitle as _e } from "./ui/card.js";
|
|
25
|
+
import { Checkbox as ve } from "./ui/checkbox.js";
|
|
26
|
+
import { Command as ye, CommandDialog as be, CommandEmpty as xe, CommandGroup as Se, CommandInput as Ce, CommandItem as we, CommandList as Te, CommandSeparator as Ee, CommandShortcut as De } from "./ui/command.js";
|
|
27
|
+
import { Dialog as Oe, DialogClose as ke, DialogContent as Ae, DialogDescription as je, DialogFooter as Me, DialogHeader as Ne, DialogOverlay as Pe, DialogPortal as Fe, DialogTitle as Ie, DialogTrigger as Le } from "./ui/dialog.js";
|
|
28
|
+
import { DropdownMenu as Re, DropdownMenuCheckboxItem as ze, DropdownMenuContent as Be, DropdownMenuGroup as Ve, DropdownMenuItem as He, DropdownMenuLabel as Ue, DropdownMenuPortal as We, DropdownMenuRadioGroup as Ge, DropdownMenuRadioItem as Ke, DropdownMenuSeparator as qe, DropdownMenuShortcut as Je, DropdownMenuSub as Ye, DropdownMenuSubContent as Xe, DropdownMenuSubTrigger as Ze, DropdownMenuTrigger as Qe } from "./ui/dropdown-menu.js";
|
|
29
|
+
import { Input as $e } from "./ui/input.js";
|
|
30
|
+
import { Label as et } from "./ui/label.js";
|
|
31
|
+
import { Popover as tt, PopoverAnchor as nt, PopoverContent as rt, PopoverTrigger as it } from "./ui/popover.js";
|
|
32
|
+
import { ScrollArea as at, ScrollBar as ot } from "./ui/scroll-area.js";
|
|
33
|
+
import { NativeSelect as st, Select as ct, SelectContent as lt, SelectGroup as ut, SelectItem as dt, SelectLabel as ft, SelectScrollDownButton as pt, SelectScrollUpButton as mt, SelectSeparator as ht, SelectTrigger as gt, SelectValue as _t } from "./ui/select.js";
|
|
34
|
+
import { Separator as vt } from "./ui/separator.js";
|
|
35
|
+
import { Sheet as yt, SheetClose as bt, SheetContent as xt, SheetDescription as St, SheetFooter as Ct, SheetHeader as wt, SheetTitle as Tt, SheetTrigger as Et } from "./ui/sheet.js";
|
|
36
|
+
import { Skeleton as Dt } from "./ui/skeleton.js";
|
|
37
|
+
import { Toaster as Ot } from "./ui/sonner.js";
|
|
38
|
+
import { Spinner as kt } from "./ui/spinner.js";
|
|
39
|
+
import { Switch as At } from "./ui/switch.js";
|
|
40
|
+
import { Table as jt, TableBody as Mt, TableCaption as Nt, TableCell as Pt, TableFooter as Ft, TableHead as It, TableHeader as Lt, TableRow as Rt } from "./ui/table.js";
|
|
41
|
+
import { Tabs as zt, TabsContent as Bt, TabsList as Vt, TabsTrigger as Ht } from "./ui/tabs.js";
|
|
42
|
+
import { Textarea as Ut } from "./ui/textarea.js";
|
|
43
|
+
import { Tooltip as Wt, TooltipContent as Gt, TooltipProvider as Kt, TooltipTrigger as qt } from "./ui/tooltip.js";
|
|
44
|
+
import { PageContainer as Jt } from "./ui/page-container.js";
|
|
45
|
+
import { GlassCard as Yt, glassCardVariants as Xt } from "./ui/glass-card.js";
|
|
46
|
+
import { EmphasisPanel as Zt } from "./ui/emphasis-panel.js";
|
|
47
|
+
import { IconTile as Qt } from "./ui/icon-tile.js";
|
|
48
|
+
import { ShowMore as $t } from "./ui/show-more.js";
|
|
49
|
+
import { CTAOverflowMenu as en } from "./ui/cta-overflow-menu.js";
|
|
50
|
+
import { BrandedSplash as tn } from "./ui/branded-splash.js";
|
|
51
|
+
import { ModernLanding as nn } from "./ui/modern-landing.js";
|
|
52
|
+
import { AuroraBackground as rn } from "./ui/aurora-background.js";
|
|
53
|
+
import { IllustratedEmptyState as an, Illustration as on } from "./ui/illustration.js";
|
|
54
|
+
import { GradientText as sn } from "./ui/gradient-text.js";
|
|
55
|
+
import { NextSteps as cn, PagePurpose as ln } from "./ui/guidance.js";
|
|
56
|
+
import { NativeWelcome as un } from "./ui/native-welcome.js";
|
|
57
|
+
import { ActionSheet as dn } from "./ui/action-sheet.js";
|
|
58
|
+
import { OfflineBanner as fn } from "./ui/offline-banner.js";
|
|
59
|
+
import { PullToRefresh as pn } from "./ui/pull-to-refresh.js";
|
|
60
|
+
import { PWAUpdateToast as mn } from "./ui/pwa-update-toast.js";
|
|
61
|
+
import { ModalShell as hn } from "./ui/modal-shell.js";
|
|
62
|
+
export { f as AccessGate, p as AccessNeededChip, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, dn as ActionSheet, Z as AlertDialog, Q as AlertDialogAction, $ as AlertDialogCancel, ee as AlertDialogContent, te as AlertDialogDescription, ne as AlertDialogFooter, re as AlertDialogHeader, ie as AlertDialogOverlay, ae as AlertDialogPortal, oe as AlertDialogTitle, se as AlertDialogTrigger, rn as AuroraBackground, ce as Badge, h as BottomSheet, g as BottomSheetClose, _ as BottomSheetContent, v as BottomSheetDescription, y as BottomSheetFooter, b as BottomSheetHeader, x as BottomSheetTitle, S as BottomSheetTrigger, tn as BrandedSplash, ue as Button, en as CTAOverflowMenu, fe as Card, pe as CardContent, me as CardDescription, he as CardFooter, ge as CardHeader, _e as CardTitle, ve as Checkbox, ye as Command, be as CommandDialog, xe as CommandEmpty, Se as CommandGroup, Ce as CommandInput, we as CommandItem, Te as CommandList, Ee as CommandSeparator, De as CommandShortcut, P as DEFAULT_GALLERY_PAGER_LABELS, Oe as Dialog, ke as DialogClose, Ae as DialogContent, je as DialogDescription, Me as DialogFooter, Ne as DialogHeader, Pe as DialogOverlay, Fe as DialogPortal, Ie as DialogTitle, Le as DialogTrigger, Re as DropdownMenu, ze as DropdownMenuCheckboxItem, Be as DropdownMenuContent, Ve as DropdownMenuGroup, He as DropdownMenuItem, Ue as DropdownMenuLabel, We as DropdownMenuPortal, Ge as DropdownMenuRadioGroup, Ke as DropdownMenuRadioItem, qe as DropdownMenuSeparator, Je as DropdownMenuShortcut, Ye as DropdownMenuSub, Xe as DropdownMenuSubContent, Ze as DropdownMenuSubTrigger, Qe as DropdownMenuTrigger, Zt as EmphasisPanel, X as EmptyState, i as EntityIdModal, F as GALLERY_PAGE_SIZE, G as GalleryCategoryRail, K as GalleryChip, N as GalleryPager, q as GalleryPanel, Yt as GlassCard, sn as GradientText, Qt as IconTile, an as IllustratedEmptyState, on as Illustration, $e as Input, et as Label, hn as ModalShell, nn as ModernLanding, st as NativeSelect, un as NativeWelcome, cn as NextSteps, fn as OfflineBanner, o as OptionalFields, mn as PWAUpdateToast, Jt as PageContainer, ln as PagePurpose, l as PageTabs, M as Pagination, tt as Popover, nt as PopoverAnchor, rt as PopoverContent, it as PopoverTrigger, pn as PullToRefresh, C as ResponsiveDialog, w as ResponsiveDialogClose, T as ResponsiveDialogContent, E as ResponsiveDialogDescription, D as ResponsiveDialogFooter, O as ResponsiveDialogHeader, k as ResponsiveDialogTitle, A as ResponsiveDialogTrigger, Y as ResponsiveStack, j as ResponsiveTable, at as ScrollArea, ot as ScrollBar, ct as Select, lt as SelectContent, ut as SelectGroup, dt as SelectItem, ft as SelectLabel, pt as SelectScrollDownButton, mt as SelectScrollUpButton, ht as SelectSeparator, gt as SelectTrigger, _t as SelectValue, vt as Separator, yt as Sheet, bt as SheetClose, xt as SheetContent, St as SheetDescription, Ct as SheetFooter, wt as SheetHeader, Tt as SheetTitle, Et as SheetTrigger, $t as ShowMore, c as ShowTechnicalDetails, Dt as Skeleton, kt as Spinner, J as Stepper, At as Switch, I as TOP_CATEGORY_COUNT, jt as Table, Mt as TableBody, Nt as TableCaption, Pt as TableCell, Ft as TableFooter, It as TableHead, Lt as TableHeader, Rt as TableRow, zt as Tabs, Bt as TabsContent, Vt as TabsList, Ht as TabsTrigger, Ut as Textarea, Ot as Toaster, Wt as Tooltip, Gt as TooltipContent, Kt as TooltipProvider, qt as TooltipTrigger, le as badgeVariants, de as buttonVariants, L as clampPage, Xt as glassCardVariants, u as matchActiveTab, R as offsetForPage, z as pageItems, B as pageRange, V as parsePageParam, H as splitCategories, d as splitTabs, U as totalPagesFor, a as useEntityIdModal, m as useHeadingDocumentTitle, s as useRememberedOpen, W as withPageParam };
|