@fabio.caffarello/react-design-system 3.13.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js +116 -88
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/granular/ui/components/Autocomplete/AutocompleteList.js +57 -47
- package/dist/granular/ui/components/Autocomplete/AutocompleteList.js.map +1 -1
- package/dist/granular/ui/components/Autocomplete/AutocompleteOption.js +21 -20
- package/dist/granular/ui/components/Autocomplete/AutocompleteOption.js.map +1 -1
- package/dist/granular/ui/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/granular/ui/components/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/granular/ui/components/CommandPalette/CommandPalette.js +187 -149
- package/dist/granular/ui/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/granular/ui/components/DataGrid/DataGrid.js +92 -92
- package/dist/granular/ui/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/granular/ui/components/DatePicker/DatePickerCalendar.js +154 -139
- package/dist/granular/ui/components/DatePicker/DatePickerCalendar.js.map +1 -1
- package/dist/granular/ui/components/Dialog/AlertDialog.js +73 -40
- package/dist/granular/ui/components/Dialog/AlertDialog.js.map +1 -1
- package/dist/granular/ui/components/Dialog/DialogContent.js +54 -48
- package/dist/granular/ui/components/Dialog/DialogContent.js.map +1 -1
- package/dist/granular/ui/components/Dialog/DialogDescription.js +31 -31
- package/dist/granular/ui/components/Dialog/DialogDescription.js.map +1 -1
- package/dist/granular/ui/components/Dialog/DialogTitle.js +30 -30
- package/dist/granular/ui/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/granular/ui/components/Drawer/Drawer.js.map +1 -1
- package/dist/granular/ui/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/granular/ui/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/granular/ui/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/granular/ui/components/Form/Form.js +38 -37
- package/dist/granular/ui/components/Form/Form.js.map +1 -1
- package/dist/granular/ui/components/Form/FormField.js +28 -26
- package/dist/granular/ui/components/Form/FormField.js.map +1 -1
- package/dist/granular/ui/components/Header/Header.js.map +1 -1
- package/dist/granular/ui/components/Header/components/HeaderActions.js.map +1 -1
- package/dist/granular/ui/components/Header/components/HeaderHamburger.js.map +1 -1
- package/dist/granular/ui/components/Header/components/HeaderLogo.js.map +1 -1
- package/dist/granular/ui/components/Header/components/HeaderMobileMenu.js.map +1 -1
- package/dist/granular/ui/components/Header/components/HeaderNavigation.js.map +1 -1
- package/dist/granular/ui/components/Header/contexts/HeaderContext.js.map +1 -1
- package/dist/granular/ui/components/Menu/Menu.js.map +1 -1
- package/dist/granular/ui/components/Modal/Modal.js +98 -86
- package/dist/granular/ui/components/Modal/Modal.js.map +1 -1
- package/dist/granular/ui/components/MultiSelect/MultiSelect.js +122 -106
- package/dist/granular/ui/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/granular/ui/components/Navigation/Navigation.js.map +1 -1
- package/dist/granular/ui/components/PageHeader/PageHeader.js.map +1 -1
- package/dist/granular/ui/components/Pagination/Pagination.js.map +1 -1
- package/dist/granular/ui/components/Popover/Popover.js.map +1 -1
- package/dist/granular/ui/components/Rating/Rating.js.map +1 -1
- package/dist/granular/ui/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarGroup.js +82 -64
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarGroup.js.map +1 -1
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarItem.js +30 -29
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarItem.js.map +1 -1
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarResizeHandle.js +37 -35
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarResizeHandle.js.map +1 -1
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarStateProvider.js +57 -57
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarStateProvider.js.map +1 -1
- package/dist/granular/ui/components/Stepper/Stepper.js +102 -94
- package/dist/granular/ui/components/Stepper/Stepper.js.map +1 -1
- package/dist/granular/ui/components/Table/Table.js +41 -35
- package/dist/granular/ui/components/Table/Table.js.map +1 -1
- package/dist/granular/ui/components/Table/TableActions/TableActions.js.map +1 -1
- package/dist/granular/ui/components/Table/TableFilters/TableFilters.js +49 -46
- package/dist/granular/ui/components/Table/TableFilters/TableFilters.js.map +1 -1
- package/dist/granular/ui/components/Table/TablePagination/TablePagination.js.map +1 -1
- package/dist/granular/ui/components/Table/TableProvider.js +82 -80
- package/dist/granular/ui/components/Table/TableProvider.js.map +1 -1
- package/dist/granular/ui/components/Table/TableRow.js +57 -53
- package/dist/granular/ui/components/Table/TableRow.js.map +1 -1
- package/dist/granular/ui/components/Table/useColumnResizing.js +53 -53
- package/dist/granular/ui/components/Table/useColumnResizing.js.map +1 -1
- package/dist/granular/ui/components/TimePicker/TimePicker.js +149 -103
- package/dist/granular/ui/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/granular/ui/components/Timeline/Timeline.js.map +1 -1
- package/dist/granular/ui/hooks/useFocusRestore.js +14 -15
- package/dist/granular/ui/hooks/useFocusRestore.js.map +1 -1
- package/dist/granular/ui/primitives/Badge/Badge.js.map +1 -1
- package/dist/granular/ui/primitives/Button/Button.js +86 -104
- package/dist/granular/ui/primitives/Button/Button.js.map +1 -1
- package/dist/granular/ui/primitives/Checkbox/Checkbox.js.map +1 -1
- package/dist/granular/ui/primitives/Chip/Chip.js +91 -71
- package/dist/granular/ui/primitives/Chip/Chip.js.map +1 -1
- package/dist/granular/ui/primitives/ErrorMessage/ErrorMessage.js.map +1 -1
- package/dist/granular/ui/primitives/Input/Input.js.map +1 -1
- package/dist/granular/ui/primitives/Label/Label.js.map +1 -1
- package/dist/granular/ui/primitives/NavLink/NavLink.js.map +1 -1
- package/dist/granular/ui/primitives/Radio/Radio.js.map +1 -1
- package/dist/granular/ui/primitives/Select/Select.js.map +1 -1
- package/dist/granular/ui/primitives/Separator/Separator.js.map +1 -1
- package/dist/granular/ui/primitives/Skeleton/Skeleton.js.map +1 -1
- package/dist/granular/ui/primitives/Slider/Slider.js.map +1 -1
- package/dist/granular/ui/primitives/Spinner/Spinner.js.map +1 -1
- package/dist/granular/ui/primitives/Switch/Switch.js.map +1 -1
- package/dist/granular/ui/primitives/Tooltip/Tooltip.js.map +1 -1
- package/dist/granular/ui/providers/DialogContext.js.map +1 -1
- package/dist/granular/ui/providers/DialogProvider.js +24 -20
- package/dist/granular/ui/providers/DialogProvider.js.map +1 -1
- package/dist/index.cjs +144 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5896 -5609
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +13 -13
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +1050 -789
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Autocomplete/Autocomplete.d.ts +21 -0
- package/dist/ui/components/Autocomplete/AutocompleteList.d.ts +4 -0
- package/dist/ui/components/Autocomplete/AutocompleteOption.d.ts +8 -0
- package/dist/ui/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/ui/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/ui/components/CommandPalette/CommandPalette.d.ts +0 -1
- package/dist/ui/components/DataGrid/DataGrid.d.ts +0 -1
- package/dist/ui/components/Dialog/DialogContent.d.ts +20 -1
- package/dist/ui/components/Drawer/Drawer.d.ts +0 -1
- package/dist/ui/components/Dropdown/Dropdown.d.ts +0 -1
- package/dist/ui/components/EmptyState/EmptyState.d.ts +0 -1
- package/dist/ui/components/FileUpload/FileUpload.d.ts +0 -1
- package/dist/ui/components/Form/FormField.d.ts +7 -0
- package/dist/ui/components/Header/Header.d.ts +1 -1
- package/dist/ui/components/Header/components/HeaderActions.d.ts +1 -1
- package/dist/ui/components/Header/components/HeaderHamburger.d.ts +1 -1
- package/dist/ui/components/Header/components/HeaderLogo.d.ts +1 -1
- package/dist/ui/components/Header/components/HeaderMobileMenu.d.ts +1 -1
- package/dist/ui/components/Header/components/HeaderNavigation.d.ts +1 -1
- package/dist/ui/components/Header/contexts/HeaderContext.d.ts +1 -1
- package/dist/ui/components/Menu/Menu.d.ts +0 -1
- package/dist/ui/components/Modal/Modal.d.ts +1 -2
- package/dist/ui/components/Navigation/Navigation.d.ts +1 -1
- package/dist/ui/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/ui/components/Pagination/Pagination.d.ts +0 -1
- package/dist/ui/components/Popover/Popover.d.ts +0 -1
- package/dist/ui/components/Rating/Rating.d.ts +0 -1
- package/dist/ui/components/SearchInput/SearchInput.d.ts +0 -1
- package/dist/ui/components/Stepper/Stepper.d.ts +0 -1
- package/dist/ui/components/Table/TableActions/TableActions.d.ts +0 -1
- package/dist/ui/components/Table/TableFilters/TableFilters.d.ts +0 -1
- package/dist/ui/components/Table/TablePagination/TablePagination.d.ts +0 -1
- package/dist/ui/components/TimePicker/TimePicker.d.ts +0 -1
- package/dist/ui/components/Timeline/Timeline.d.ts +0 -1
- package/dist/ui/primitives/Checkbox/Checkbox.d.ts +0 -1
- package/dist/ui/primitives/Chip/Chip.d.ts +21 -0
- package/dist/ui/primitives/ErrorMessage/ErrorMessage.d.ts +0 -1
- package/dist/ui/primitives/Input/Input.d.ts +0 -1
- package/dist/ui/primitives/Label/Label.d.ts +0 -1
- package/dist/ui/primitives/NavLink/NavLink.d.ts +1 -1
- package/dist/ui/primitives/Radio/Radio.d.ts +0 -1
- package/dist/ui/primitives/Select/Select.d.ts +0 -1
- package/dist/ui/primitives/Skeleton/Skeleton.d.ts +0 -1
- package/dist/ui/primitives/Slider/Slider.d.ts +0 -1
- package/dist/ui/primitives/Switch/Switch.d.ts +0 -1
- package/dist/ui/primitives/Tooltip/Tooltip.d.ts +0 -1
- package/dist/ui/providers/DialogContext.d.ts +8 -0
- package/dist/ui/server.d.ts +2 -0
- package/package.json +7 -7
package/dist/server/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var r in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
1
|
+
var ge = Object.defineProperty, xe = Object.defineProperties;
|
|
2
|
+
var be = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var ee = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var X = (e, a, r) => a in e ? ge(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, u = (e, a) => {
|
|
6
|
+
for (var r in a || (a = {}))
|
|
7
|
+
ee.call(a, r) && X(e, r, a[r]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var r of B(a))
|
|
10
|
+
ae.call(a, r) && X(e, r, a[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, y = (e,
|
|
13
|
-
var
|
|
12
|
+
}, y = (e, a) => xe(e, be(a));
|
|
13
|
+
var b = (e, a) => {
|
|
14
14
|
var r = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
|
|
15
|
+
for (var t in e)
|
|
16
|
+
ee.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
|
+
if (e != null && B)
|
|
18
|
+
for (var t of B(e))
|
|
19
|
+
a.indexOf(t) < 0 && ae.call(e, t) && (r[t] = e[t]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
26
|
-
import { clsx as
|
|
27
|
-
import { twMerge as
|
|
28
|
-
import { cva as
|
|
29
|
-
import {
|
|
22
|
+
var te = (e, a, r) => X(e, typeof a != "symbol" ? a + "" : a, r);
|
|
23
|
+
import { jsx as l, jsxs as v, Fragment as re } from "react/jsx-runtime";
|
|
24
|
+
import * as V from "react";
|
|
25
|
+
import ce, { memo as M, forwardRef as j } from "react";
|
|
26
|
+
import { clsx as he } from "clsx";
|
|
27
|
+
import { twMerge as ye } from "tailwind-merge";
|
|
28
|
+
import { cva as ve } from "class-variance-authority";
|
|
29
|
+
import { Loader2 as we, X as Ne, AlertCircle as Se, CheckCircle2 as ne } from "lucide-react";
|
|
30
30
|
class F {
|
|
31
31
|
/**
|
|
32
32
|
* Create a radius token
|
|
33
33
|
*/
|
|
34
|
-
static create(
|
|
35
|
-
const
|
|
34
|
+
static create(a) {
|
|
35
|
+
const t = {
|
|
36
36
|
none: {
|
|
37
37
|
px: 0,
|
|
38
38
|
tailwind: "rounded-none",
|
|
@@ -73,17 +73,17 @@ class F {
|
|
|
73
73
|
tailwind: "rounded-full",
|
|
74
74
|
description: "Full radius for circular elements"
|
|
75
75
|
}
|
|
76
|
-
}[
|
|
76
|
+
}[a];
|
|
77
77
|
return {
|
|
78
|
-
value:
|
|
79
|
-
rem: `${
|
|
80
|
-
px: `${
|
|
81
|
-
tailwind:
|
|
82
|
-
description:
|
|
78
|
+
value: t.px,
|
|
79
|
+
rem: `${t.px / 16}rem`,
|
|
80
|
+
px: `${t.px}px`,
|
|
81
|
+
tailwind: t.tailwind,
|
|
82
|
+
description: t.description
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const $e = {
|
|
87
87
|
none: F.create("none"),
|
|
88
88
|
sm: F.create("sm"),
|
|
89
89
|
md: F.create("md"),
|
|
@@ -93,27 +93,27 @@ const fe = {
|
|
|
93
93
|
"3xl": F.create("3xl"),
|
|
94
94
|
full: F.create("full")
|
|
95
95
|
};
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function $(e) {
|
|
97
|
+
return $e[e].tailwind;
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class k {
|
|
100
100
|
// 4px base
|
|
101
101
|
/**
|
|
102
102
|
* Create a spacing token from scale value
|
|
103
103
|
*/
|
|
104
|
-
static create(
|
|
105
|
-
const r =
|
|
104
|
+
static create(a) {
|
|
105
|
+
const r = a * this.BASE_UNIT, t = r / 16;
|
|
106
106
|
return {
|
|
107
107
|
value: r,
|
|
108
|
-
rem: `${
|
|
108
|
+
rem: `${t}rem`,
|
|
109
109
|
px: `${r}px`,
|
|
110
|
-
tailwind: this.getTailwindClass(
|
|
110
|
+
tailwind: this.getTailwindClass(a)
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Get Tailwind class for spacing value
|
|
115
115
|
*/
|
|
116
|
-
static getTailwindClass(
|
|
116
|
+
static getTailwindClass(a) {
|
|
117
117
|
return {
|
|
118
118
|
0: "0",
|
|
119
119
|
0.5: "0.5",
|
|
@@ -160,49 +160,49 @@ class S {
|
|
|
160
160
|
// 320px
|
|
161
161
|
96: "96"
|
|
162
162
|
// 384px
|
|
163
|
-
}[
|
|
163
|
+
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
te(k, "BASE_UNIT", 4);
|
|
167
|
+
const ke = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
|
-
none:
|
|
170
|
-
"0.5":
|
|
169
|
+
none: k.create(0),
|
|
170
|
+
"0.5": k.create(0.5),
|
|
171
171
|
// 2px (half-step)
|
|
172
|
-
xs:
|
|
172
|
+
xs: k.create(1),
|
|
173
173
|
// 4px
|
|
174
|
-
"1.5":
|
|
174
|
+
"1.5": k.create(1.5),
|
|
175
175
|
// 6px (half-step)
|
|
176
|
-
sm:
|
|
176
|
+
sm: k.create(2),
|
|
177
177
|
// 8px
|
|
178
|
-
"2.5":
|
|
178
|
+
"2.5": k.create(2.5),
|
|
179
179
|
// 10px (half-step)
|
|
180
|
-
md:
|
|
180
|
+
md: k.create(3),
|
|
181
181
|
// 12px
|
|
182
|
-
"3.5":
|
|
182
|
+
"3.5": k.create(3.5),
|
|
183
183
|
// 14px (half-step)
|
|
184
184
|
// Standard spacing (16-32px)
|
|
185
|
-
base:
|
|
185
|
+
base: k.create(4),
|
|
186
186
|
// 16px
|
|
187
|
-
lg:
|
|
187
|
+
lg: k.create(6),
|
|
188
188
|
// 24px
|
|
189
|
-
xl:
|
|
189
|
+
xl: k.create(8),
|
|
190
190
|
// 32px
|
|
191
191
|
// Large spacing (40-64px)
|
|
192
|
-
"2xl":
|
|
192
|
+
"2xl": k.create(10),
|
|
193
193
|
// 40px
|
|
194
|
-
"3xl":
|
|
194
|
+
"3xl": k.create(12),
|
|
195
195
|
// 48px
|
|
196
|
-
"4xl":
|
|
196
|
+
"4xl": k.create(16),
|
|
197
197
|
// 64px
|
|
198
198
|
// Extra large spacing (80px+)
|
|
199
|
-
"5xl":
|
|
199
|
+
"5xl": k.create(20),
|
|
200
200
|
// 80px
|
|
201
|
-
"6xl":
|
|
201
|
+
"6xl": k.create(24)
|
|
202
202
|
// 96px
|
|
203
203
|
};
|
|
204
|
-
function i(e,
|
|
205
|
-
const
|
|
204
|
+
function i(e, a = "p") {
|
|
205
|
+
const t = ke[e].tailwind;
|
|
206
206
|
return `${{
|
|
207
207
|
p: "p",
|
|
208
208
|
m: "m",
|
|
@@ -223,14 +223,14 @@ function i(e, t = "p") {
|
|
|
223
223
|
"gap-y": "gap-y",
|
|
224
224
|
"space-x": "space-x",
|
|
225
225
|
"space-y": "space-y"
|
|
226
|
-
}[
|
|
226
|
+
}[a]}-${t}`;
|
|
227
227
|
}
|
|
228
|
-
class
|
|
228
|
+
class C {
|
|
229
229
|
/**
|
|
230
230
|
* Create font size token
|
|
231
231
|
*/
|
|
232
|
-
static createFontSize(
|
|
233
|
-
const
|
|
232
|
+
static createFontSize(a) {
|
|
233
|
+
const t = {
|
|
234
234
|
"2xs": { px: 10, tailwind: "text-2xs" },
|
|
235
235
|
// micro-text (badge counters, mini chips)
|
|
236
236
|
xs: { px: 12, tailwind: "text-xs" },
|
|
@@ -243,103 +243,103 @@ class $ {
|
|
|
243
243
|
"4xl": { px: 36, tailwind: "text-4xl" },
|
|
244
244
|
"5xl": { px: 48, tailwind: "text-5xl" },
|
|
245
245
|
"6xl": { px: 60, tailwind: "text-6xl" }
|
|
246
|
-
}[
|
|
246
|
+
}[a];
|
|
247
247
|
return {
|
|
248
|
-
value:
|
|
249
|
-
rem: `${
|
|
250
|
-
px: `${
|
|
251
|
-
tailwind:
|
|
248
|
+
value: t.px,
|
|
249
|
+
rem: `${t.px / 16}rem`,
|
|
250
|
+
px: `${t.px}px`,
|
|
251
|
+
tailwind: t.tailwind
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* Create line height token
|
|
256
256
|
*/
|
|
257
|
-
static createLineHeight(
|
|
258
|
-
const
|
|
257
|
+
static createLineHeight(a) {
|
|
258
|
+
const t = {
|
|
259
259
|
none: { value: 1, tailwind: "leading-none" },
|
|
260
260
|
tight: { value: 1.25, tailwind: "leading-tight" },
|
|
261
261
|
snug: { value: 1.375, tailwind: "leading-snug" },
|
|
262
262
|
normal: { value: 1.5, tailwind: "leading-normal" },
|
|
263
263
|
relaxed: { value: 1.625, tailwind: "leading-relaxed" },
|
|
264
264
|
loose: { value: 2, tailwind: "leading-loose" }
|
|
265
|
-
}[
|
|
265
|
+
}[a];
|
|
266
266
|
return {
|
|
267
|
-
value:
|
|
268
|
-
tailwind:
|
|
267
|
+
value: t.value,
|
|
268
|
+
tailwind: t.tailwind
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Create font weight token
|
|
273
273
|
*/
|
|
274
|
-
static createFontWeight(
|
|
275
|
-
const
|
|
274
|
+
static createFontWeight(a) {
|
|
275
|
+
const t = {
|
|
276
276
|
light: { value: 300, tailwind: "font-light" },
|
|
277
277
|
normal: { value: 400, tailwind: "font-normal" },
|
|
278
278
|
medium: { value: 500, tailwind: "font-medium" },
|
|
279
279
|
semibold: { value: 600, tailwind: "font-semibold" },
|
|
280
280
|
bold: { value: 700, tailwind: "font-bold" }
|
|
281
|
-
}[
|
|
281
|
+
}[a];
|
|
282
282
|
return {
|
|
283
|
-
value:
|
|
284
|
-
tailwind:
|
|
283
|
+
value: t.value,
|
|
284
|
+
tailwind: t.tailwind
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* Create complete typography token
|
|
289
289
|
*/
|
|
290
|
-
static create(
|
|
290
|
+
static create(a, r = "normal", t = "normal") {
|
|
291
291
|
return {
|
|
292
|
-
fontSize: this.createFontSize(
|
|
292
|
+
fontSize: this.createFontSize(a),
|
|
293
293
|
lineHeight: this.createLineHeight(r),
|
|
294
|
-
fontWeight: this.createFontWeight(
|
|
294
|
+
fontWeight: this.createFontWeight(t)
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
const
|
|
298
|
+
C.createFontWeight("light"), C.createFontWeight("normal"), C.createFontWeight("medium"), C.createFontWeight("semibold"), C.createFontWeight("bold");
|
|
299
|
+
const G = {
|
|
300
300
|
// Headings
|
|
301
|
-
h1:
|
|
302
|
-
h2:
|
|
303
|
-
h3:
|
|
304
|
-
h4:
|
|
305
|
-
h5:
|
|
306
|
-
h6:
|
|
301
|
+
h1: C.create("4xl", "tight", "bold"),
|
|
302
|
+
h2: C.create("3xl", "tight", "bold"),
|
|
303
|
+
h3: C.create("2xl", "snug", "semibold"),
|
|
304
|
+
h4: C.create("xl", "snug", "semibold"),
|
|
305
|
+
h5: C.create("lg", "normal", "medium"),
|
|
306
|
+
h6: C.create("base", "normal", "medium"),
|
|
307
307
|
// Body text
|
|
308
|
-
body:
|
|
309
|
-
bodySmall:
|
|
310
|
-
bodyLarge:
|
|
308
|
+
body: C.create("base", "relaxed", "normal"),
|
|
309
|
+
bodySmall: C.create("sm", "relaxed", "normal"),
|
|
310
|
+
bodyLarge: C.create("lg", "relaxed", "normal"),
|
|
311
311
|
// UI elements
|
|
312
|
-
label:
|
|
313
|
-
caption:
|
|
314
|
-
button:
|
|
312
|
+
label: C.create("sm", "normal", "medium"),
|
|
313
|
+
caption: C.create("xs", "normal", "normal"),
|
|
314
|
+
button: C.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return `${
|
|
316
|
+
function D(e) {
|
|
317
|
+
const a = G[e];
|
|
318
|
+
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
320
|
+
function S(e) {
|
|
321
|
+
return G[e].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
323
|
+
function O(e) {
|
|
324
|
+
return G[e].fontWeight.tailwind;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function s(...e) {
|
|
327
|
+
return ye(he(e));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
const r =
|
|
331
|
-
return ((
|
|
332
|
-
const
|
|
333
|
-
return n
|
|
329
|
+
const L = (e, a) => {
|
|
330
|
+
const r = ve(e, a);
|
|
331
|
+
return ((t) => {
|
|
332
|
+
const n = r(t);
|
|
333
|
+
return s(n);
|
|
334
334
|
});
|
|
335
|
-
},
|
|
335
|
+
}, Ce = L(
|
|
336
336
|
// Base classes
|
|
337
|
-
|
|
337
|
+
s(
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
O("label"),
|
|
342
|
+
$("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
345
345
|
{
|
|
@@ -354,20 +354,20 @@ const V = (e, t) => {
|
|
|
354
354
|
secondary: ""
|
|
355
355
|
},
|
|
356
356
|
size: {
|
|
357
|
-
sm:
|
|
357
|
+
sm: s(
|
|
358
358
|
i("1.5", "px"),
|
|
359
359
|
i("0.5", "py"),
|
|
360
|
-
|
|
360
|
+
S("caption")
|
|
361
361
|
),
|
|
362
|
-
md:
|
|
362
|
+
md: s(
|
|
363
363
|
i("sm", "px"),
|
|
364
364
|
i("xs", "py"),
|
|
365
|
-
|
|
365
|
+
S("caption")
|
|
366
366
|
),
|
|
367
|
-
lg:
|
|
367
|
+
lg: s(
|
|
368
368
|
i("sm", "px"),
|
|
369
369
|
i("xs", "py"),
|
|
370
|
-
|
|
370
|
+
S("bodySmall")
|
|
371
371
|
)
|
|
372
372
|
},
|
|
373
373
|
style: {
|
|
@@ -380,32 +380,32 @@ const V = (e, t) => {
|
|
|
380
380
|
{
|
|
381
381
|
variant: "success",
|
|
382
382
|
style: "solid",
|
|
383
|
-
class:
|
|
383
|
+
class: s("bg-success-bg", "text-success-dark", "border-success")
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
variant: "warning",
|
|
387
387
|
style: "solid",
|
|
388
|
-
class:
|
|
388
|
+
class: s("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
variant: "error",
|
|
392
392
|
style: "solid",
|
|
393
|
-
class:
|
|
393
|
+
class: s("bg-error-bg", "text-error-dark", "border-error")
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
variant: "info",
|
|
397
397
|
style: "solid",
|
|
398
|
-
class:
|
|
398
|
+
class: s("bg-info-bg", "text-info-dark", "border-info")
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
variant: "neutral",
|
|
402
402
|
style: "solid",
|
|
403
|
-
class:
|
|
403
|
+
class: s("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
variant: "primary",
|
|
407
407
|
style: "solid",
|
|
408
|
-
class:
|
|
408
|
+
class: s(
|
|
409
409
|
"bg-surface-brand-subtle",
|
|
410
410
|
"text-fg-brand-emphasis",
|
|
411
411
|
"border-line-brand"
|
|
@@ -417,7 +417,7 @@ const V = (e, t) => {
|
|
|
417
417
|
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
418
418
|
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
419
419
|
// secondary brand surface palette expands beyond DEFAULT.
|
|
420
|
-
class:
|
|
420
|
+
class: s(
|
|
421
421
|
"bg-pink-300",
|
|
422
422
|
"text-fg-brand-secondary-emphasis",
|
|
423
423
|
"border-line-secondary"
|
|
@@ -427,37 +427,37 @@ const V = (e, t) => {
|
|
|
427
427
|
{
|
|
428
428
|
variant: "success",
|
|
429
429
|
style: "outline",
|
|
430
|
-
class:
|
|
430
|
+
class: s("bg-transparent", "border-success", "text-fg-success")
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
variant: "warning",
|
|
434
434
|
style: "outline",
|
|
435
|
-
class:
|
|
435
|
+
class: s("bg-transparent", "border-warning", "text-fg-warning")
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
variant: "error",
|
|
439
439
|
style: "outline",
|
|
440
|
-
class:
|
|
440
|
+
class: s("bg-transparent", "border-error", "text-fg-error")
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
variant: "info",
|
|
444
444
|
style: "outline",
|
|
445
|
-
class:
|
|
445
|
+
class: s("bg-transparent", "border-info", "text-fg-info")
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
448
|
variant: "neutral",
|
|
449
449
|
style: "outline",
|
|
450
|
-
class:
|
|
450
|
+
class: s("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
variant: "primary",
|
|
454
454
|
style: "outline",
|
|
455
|
-
class:
|
|
455
|
+
class: s("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
variant: "secondary",
|
|
459
459
|
style: "outline",
|
|
460
|
-
class:
|
|
460
|
+
class: s(
|
|
461
461
|
"bg-transparent",
|
|
462
462
|
"border-line-secondary",
|
|
463
463
|
"text-fg-brand-secondary"
|
|
@@ -470,16 +470,16 @@ const V = (e, t) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
),
|
|
474
|
-
j(function(
|
|
475
|
-
var
|
|
476
|
-
variant:
|
|
473
|
+
), Ee = M(
|
|
474
|
+
j(function(x, p) {
|
|
475
|
+
var m = x, {
|
|
476
|
+
variant: a = "neutral",
|
|
477
477
|
size: r = "md",
|
|
478
|
-
style:
|
|
479
|
-
className:
|
|
478
|
+
style: t = "solid",
|
|
479
|
+
className: n = "",
|
|
480
480
|
children: o,
|
|
481
481
|
"aria-label": c
|
|
482
|
-
} =
|
|
482
|
+
} = m, d = b(m, [
|
|
483
483
|
"variant",
|
|
484
484
|
"size",
|
|
485
485
|
"style",
|
|
@@ -487,148 +487,450 @@ const V = (e, t) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
491
|
-
let
|
|
490
|
+
const h = s(Ce({ variant: a, size: r, style: t }), n);
|
|
491
|
+
let f;
|
|
492
492
|
if (c)
|
|
493
|
-
|
|
493
|
+
f = c;
|
|
494
494
|
else if (typeof o == "string")
|
|
495
|
-
|
|
495
|
+
f = o;
|
|
496
496
|
else if (typeof o == "object" && o !== null && "props" in o) {
|
|
497
|
-
const
|
|
498
|
-
|
|
497
|
+
const g = o.props;
|
|
498
|
+
g != null && g.children && typeof g.children == "string" && (f = g.children);
|
|
499
499
|
}
|
|
500
500
|
return /* @__PURE__ */ l(
|
|
501
501
|
"span",
|
|
502
|
-
y(
|
|
502
|
+
y(u({
|
|
503
503
|
ref: p,
|
|
504
504
|
role: "status",
|
|
505
|
-
"aria-label":
|
|
506
|
-
className:
|
|
505
|
+
"aria-label": f,
|
|
506
|
+
className: h
|
|
507
507
|
}, d), {
|
|
508
508
|
children: o
|
|
509
509
|
})
|
|
510
510
|
);
|
|
511
511
|
})
|
|
512
512
|
);
|
|
513
|
-
|
|
514
|
-
function
|
|
513
|
+
Ee.displayName = "Badge";
|
|
514
|
+
function se(e, a) {
|
|
515
515
|
if (typeof e == "function")
|
|
516
|
-
return e(
|
|
517
|
-
e != null && (e.current =
|
|
516
|
+
return e(a);
|
|
517
|
+
e != null && (e.current = a);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return (
|
|
519
|
+
function Te(...e) {
|
|
520
|
+
return (a) => {
|
|
521
521
|
let r = !1;
|
|
522
|
-
const
|
|
523
|
-
const o =
|
|
522
|
+
const t = e.map((n) => {
|
|
523
|
+
const o = se(n, a);
|
|
524
524
|
return !r && typeof o == "function" && (r = !0), o;
|
|
525
525
|
});
|
|
526
526
|
if (r)
|
|
527
527
|
return () => {
|
|
528
|
-
for (let
|
|
529
|
-
const o =
|
|
530
|
-
typeof o == "function" ? o() :
|
|
528
|
+
for (let n = 0; n < t.length; n++) {
|
|
529
|
+
const o = t[n];
|
|
530
|
+
typeof o == "function" ? o() : se(e[n], null);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
535
|
+
function Ve(...e) {
|
|
536
|
+
return V.useCallback(Te(...e), e);
|
|
537
537
|
}
|
|
538
538
|
// @__NO_SIDE_EFFECTS__
|
|
539
|
-
function
|
|
540
|
-
const
|
|
541
|
-
var
|
|
542
|
-
let
|
|
539
|
+
function Ae(e) {
|
|
540
|
+
const a = V.forwardRef((r, t) => {
|
|
541
|
+
var g;
|
|
542
|
+
let f = r, { children: n } = f, o = b(f, ["children"]), c = null, d = !1;
|
|
543
543
|
const p = [];
|
|
544
|
-
|
|
544
|
+
ie(n) && typeof I == "function" && (n = I(n._payload)), V.Children.forEach(n, (w) => {
|
|
545
545
|
var N;
|
|
546
|
-
if (
|
|
546
|
+
if (Re(w)) {
|
|
547
547
|
d = !0;
|
|
548
|
-
const
|
|
549
|
-
let T = "child" in
|
|
550
|
-
|
|
548
|
+
const E = w;
|
|
549
|
+
let T = "child" in E.props ? E.props.child : E.props.children;
|
|
550
|
+
ie(T) && typeof I == "function" && (T = I(T._payload)), c = Fe(E, T), p.push((N = c == null ? void 0 : c.props) == null ? void 0 : N.children);
|
|
551
551
|
} else
|
|
552
552
|
p.push(w);
|
|
553
|
-
}), c ? c =
|
|
553
|
+
}), c ? c = V.cloneElement(c, void 0, p) : (
|
|
554
554
|
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
555
555
|
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
556
556
|
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
557
557
|
// itself as the slot target — throw a descriptive error below instead.
|
|
558
|
-
!d &&
|
|
558
|
+
!d && V.Children.count(n) === 1 && V.isValidElement(n) && (c = n)
|
|
559
559
|
);
|
|
560
|
-
const
|
|
560
|
+
const x = c ? je(c) : void 0, m = Ve(t, x);
|
|
561
561
|
if (!c) {
|
|
562
|
-
if (
|
|
562
|
+
if (n || n === 0)
|
|
563
563
|
throw new Error(
|
|
564
|
-
d ?
|
|
564
|
+
d ? He(e) : Me(e)
|
|
565
565
|
);
|
|
566
|
-
return
|
|
566
|
+
return n;
|
|
567
567
|
}
|
|
568
|
-
const
|
|
569
|
-
return c.type !==
|
|
568
|
+
const h = De(o, (g = c.props) != null ? g : {});
|
|
569
|
+
return c.type !== V.Fragment && (h.ref = t ? m : x), V.cloneElement(c, h);
|
|
570
570
|
});
|
|
571
|
-
return
|
|
571
|
+
return a.displayName = `${e}.Slot`, a;
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var de = /* @__PURE__ */ Ae("Slot"), ue = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
574
|
+
// @__NO_SIDE_EFFECTS__
|
|
575
|
+
function Le(e) {
|
|
576
|
+
const a = (r) => "child" in r ? r.children(r.child) : r.children;
|
|
577
|
+
return a.displayName = `${e}.Slottable`, a.__radixId = ue, a;
|
|
578
|
+
}
|
|
579
|
+
var ze = /* @__PURE__ */ Le("Slottable"), Fe = (e, a) => {
|
|
574
580
|
if ("child" in e.props) {
|
|
575
581
|
const r = e.props.child;
|
|
576
|
-
return
|
|
582
|
+
return V.isValidElement(r) ? V.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
577
583
|
}
|
|
578
|
-
return
|
|
584
|
+
return V.isValidElement(a) ? a : null;
|
|
579
585
|
};
|
|
580
|
-
function
|
|
581
|
-
const r =
|
|
582
|
-
for (const
|
|
583
|
-
const
|
|
584
|
-
/^on[A-Z]/.test(
|
|
586
|
+
function De(e, a) {
|
|
587
|
+
const r = u({}, a);
|
|
588
|
+
for (const t in a) {
|
|
589
|
+
const n = e[t], o = a[t];
|
|
590
|
+
/^on[A-Z]/.test(t) ? n && o ? r[t] = (...d) => {
|
|
585
591
|
const p = o(...d);
|
|
586
|
-
return
|
|
587
|
-
} :
|
|
592
|
+
return n(...d), p;
|
|
593
|
+
} : n && (r[t] = n) : t === "style" ? r[t] = u(u({}, n), o) : t === "className" && (r[t] = [n, o].filter(Boolean).join(" "));
|
|
588
594
|
}
|
|
589
|
-
return
|
|
595
|
+
return u(u({}, e), r);
|
|
590
596
|
}
|
|
591
|
-
function
|
|
592
|
-
var
|
|
593
|
-
let
|
|
594
|
-
return r ? e.ref : (
|
|
597
|
+
function je(e) {
|
|
598
|
+
var t, n;
|
|
599
|
+
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = a && "isReactWarning" in a && a.isReactWarning;
|
|
600
|
+
return r ? e.ref : (a = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = a && "isReactWarning" in a && a.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
595
601
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
602
|
+
function Re(e) {
|
|
603
|
+
return V.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ue;
|
|
598
604
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
605
|
+
var _e = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
606
|
+
function ie(e) {
|
|
607
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === _e && "_payload" in e && Oe(e._payload);
|
|
602
608
|
}
|
|
603
|
-
function
|
|
609
|
+
function Oe(e) {
|
|
604
610
|
return typeof e == "object" && e !== null && "then" in e;
|
|
605
611
|
}
|
|
606
|
-
var
|
|
607
|
-
const
|
|
612
|
+
var Me = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, He = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, I = V[" use ".trim().toString()];
|
|
613
|
+
const Pe = L("motion-safe:animate-spin", {
|
|
614
|
+
variants: {
|
|
615
|
+
size: {
|
|
616
|
+
sm: "h-4 w-4",
|
|
617
|
+
md: "h-5 w-5",
|
|
618
|
+
lg: "h-8 w-8"
|
|
619
|
+
},
|
|
620
|
+
variant: {
|
|
621
|
+
primary: "text-fg-brand",
|
|
622
|
+
secondary: "text-fg-brand-secondary",
|
|
623
|
+
neutral: "text-fg-secondary"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
defaultVariants: {
|
|
627
|
+
size: "md",
|
|
628
|
+
variant: "primary"
|
|
629
|
+
}
|
|
630
|
+
}), fe = M(function(c) {
|
|
631
|
+
var d = c, {
|
|
632
|
+
size: a = "md",
|
|
633
|
+
variant: r = "primary",
|
|
634
|
+
label: t,
|
|
635
|
+
className: n = ""
|
|
636
|
+
} = d, o = b(d, [
|
|
637
|
+
"size",
|
|
638
|
+
"variant",
|
|
639
|
+
"label",
|
|
640
|
+
"className"
|
|
641
|
+
]);
|
|
642
|
+
return /* @__PURE__ */ v(
|
|
643
|
+
"div",
|
|
644
|
+
y(u({
|
|
645
|
+
className: s("inline-flex", "items-center", n),
|
|
646
|
+
role: "status",
|
|
647
|
+
"aria-label": t || "Loading",
|
|
648
|
+
"aria-live": "polite"
|
|
649
|
+
}, o), {
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ l(
|
|
652
|
+
we,
|
|
653
|
+
{
|
|
654
|
+
className: s(Pe({ size: a, variant: r })),
|
|
655
|
+
"aria-hidden": "true"
|
|
656
|
+
}
|
|
657
|
+
),
|
|
658
|
+
t && /* @__PURE__ */ l(
|
|
659
|
+
"span",
|
|
660
|
+
{
|
|
661
|
+
className: s(
|
|
662
|
+
i("sm", "ml"),
|
|
663
|
+
S("bodySmall"),
|
|
664
|
+
"text-fg-secondary",
|
|
665
|
+
"sr-only"
|
|
666
|
+
),
|
|
667
|
+
children: t
|
|
668
|
+
}
|
|
669
|
+
)
|
|
670
|
+
]
|
|
671
|
+
})
|
|
672
|
+
);
|
|
673
|
+
});
|
|
674
|
+
fe.displayName = "Spinner";
|
|
675
|
+
const We = L(
|
|
608
676
|
// Base classes
|
|
609
|
-
|
|
677
|
+
s(
|
|
678
|
+
"inline-flex",
|
|
679
|
+
"items-center",
|
|
680
|
+
"justify-center",
|
|
681
|
+
D("button").split(" ")[2] || "font-medium",
|
|
682
|
+
// Extract font-medium
|
|
683
|
+
$("md"),
|
|
684
|
+
"transition-colors",
|
|
685
|
+
"focus:outline-none",
|
|
686
|
+
"focus:ring-2",
|
|
687
|
+
"focus:ring-offset-2",
|
|
688
|
+
"disabled:opacity-50",
|
|
689
|
+
"disabled:cursor-not-allowed"
|
|
690
|
+
),
|
|
691
|
+
{
|
|
692
|
+
variants: {
|
|
693
|
+
variant: {
|
|
694
|
+
primary: s(
|
|
695
|
+
"bg-surface-brand-strong",
|
|
696
|
+
"text-fg-inverse",
|
|
697
|
+
"hover:opacity-90",
|
|
698
|
+
"focus:ring-line-brand"
|
|
699
|
+
),
|
|
700
|
+
secondary: s(
|
|
701
|
+
"bg-surface-secondary",
|
|
702
|
+
"text-fg-inverse",
|
|
703
|
+
"hover:opacity-90",
|
|
704
|
+
"focus:ring-line-secondary"
|
|
705
|
+
),
|
|
706
|
+
error: s(
|
|
707
|
+
"bg-error",
|
|
708
|
+
"text-fg-inverse",
|
|
709
|
+
"hover:opacity-90",
|
|
710
|
+
"focus:ring-error"
|
|
711
|
+
),
|
|
712
|
+
outline: s(
|
|
713
|
+
"border-2",
|
|
714
|
+
"border-line-default",
|
|
715
|
+
"bg-transparent",
|
|
716
|
+
"text-fg-primary",
|
|
717
|
+
"hover:bg-surface-hover",
|
|
718
|
+
"focus:ring-line-focus"
|
|
719
|
+
),
|
|
720
|
+
ghost: s(
|
|
721
|
+
"bg-transparent",
|
|
722
|
+
"text-fg-primary",
|
|
723
|
+
"hover:bg-surface-hover",
|
|
724
|
+
"focus:ring-line-focus"
|
|
725
|
+
),
|
|
726
|
+
iconOnly: s(
|
|
727
|
+
"bg-transparent",
|
|
728
|
+
"text-fg-primary",
|
|
729
|
+
"hover:bg-surface-hover",
|
|
730
|
+
"focus:ring-line-focus",
|
|
731
|
+
i("none", "p")
|
|
732
|
+
),
|
|
733
|
+
// Textual call-to-action — brand-coloured text, underline on
|
|
734
|
+
// hover, no chrome (no surface, no border). Padding is zeroed
|
|
735
|
+
// out per size in compoundVariants so the bounding box hugs
|
|
736
|
+
// the text (height intrinsic). Issue #156.
|
|
737
|
+
//
|
|
738
|
+
// Focus ring: `focus:ring-line-focus` keeps the same focus
|
|
739
|
+
// family the other no-chrome variants use (ghost, outline,
|
|
740
|
+
// iconOnly). The base's `focus:ring-2` + `focus:ring-offset-2`
|
|
741
|
+
// produce a 2px ring 2px away from the text bounding box; the
|
|
742
|
+
// 2px offset is rendered in surface-base so the ring contrasts
|
|
743
|
+
// against surface (≥3:1 for WCAG 2.4.11, verified) rather than
|
|
744
|
+
// colliding with the brand-coloured text. The element keeps
|
|
745
|
+
// `getRadiusClass("md")` from the base, which is invisible
|
|
746
|
+
// without chrome but rounds the focus ring corners.
|
|
747
|
+
//
|
|
748
|
+
// hover:underline pairs with `underline-offset-4` so the
|
|
749
|
+
// underline that appears on hover sits clear of the descenders
|
|
750
|
+
// (WCAG-aligned with link best practice). At rest the link
|
|
751
|
+
// carries no underline — the brand colour alone signals
|
|
752
|
+
// affordance, matching the shadcn convention this variant is
|
|
753
|
+
// modelled on (see issue body).
|
|
754
|
+
//
|
|
755
|
+
// disabled: inherits opacity-50 + cursor-not-allowed from the
|
|
756
|
+
// base. We do NOT special-case `disabled:no-underline` because
|
|
757
|
+
// a disabled link should still receive the same visual
|
|
758
|
+
// treatment as a disabled chrome variant — the opacity and
|
|
759
|
+
// cursor signal the disabled state.
|
|
760
|
+
link: s(
|
|
761
|
+
"bg-transparent",
|
|
762
|
+
"text-fg-brand",
|
|
763
|
+
"underline-offset-4",
|
|
764
|
+
"hover:underline",
|
|
765
|
+
"focus:ring-line-focus"
|
|
766
|
+
)
|
|
767
|
+
},
|
|
768
|
+
size: {
|
|
769
|
+
sm: s(
|
|
770
|
+
i("md", "px"),
|
|
771
|
+
i("1.5", "py"),
|
|
772
|
+
S("bodySmall"),
|
|
773
|
+
i("1.5", "gap")
|
|
774
|
+
),
|
|
775
|
+
md: s(
|
|
776
|
+
i("base", "px"),
|
|
777
|
+
i("sm", "py"),
|
|
778
|
+
S("body"),
|
|
779
|
+
i("sm", "gap")
|
|
780
|
+
),
|
|
781
|
+
lg: s(
|
|
782
|
+
i("lg", "px"),
|
|
783
|
+
i("md", "py"),
|
|
784
|
+
S("bodyLarge"),
|
|
785
|
+
i("2.5", "gap")
|
|
786
|
+
)
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
compoundVariants: [
|
|
790
|
+
// IconOnly variant has different sizing
|
|
791
|
+
{
|
|
792
|
+
variant: "iconOnly",
|
|
793
|
+
size: "sm",
|
|
794
|
+
class: s("h-8", "w-8", i("none", "p"))
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
variant: "iconOnly",
|
|
798
|
+
size: "md",
|
|
799
|
+
class: s("h-10", "w-10", i("none", "p"))
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
variant: "iconOnly",
|
|
803
|
+
size: "lg",
|
|
804
|
+
class: s("h-12", "w-12", i("none", "p"))
|
|
805
|
+
},
|
|
806
|
+
// Link variant zeroes the size's padding via compoundVariants so
|
|
807
|
+
// the override runs AFTER the size block's `px-N`/`py-N` and
|
|
808
|
+
// twMerge picks the zero value (`cn` joins variant before
|
|
809
|
+
// compound). The size's typography and gap survive — the link's
|
|
810
|
+
// text scales with size and icons still get gap-N when present.
|
|
811
|
+
// Issue #156.
|
|
812
|
+
{
|
|
813
|
+
variant: "link",
|
|
814
|
+
size: "sm",
|
|
815
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
variant: "link",
|
|
819
|
+
size: "md",
|
|
820
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
variant: "link",
|
|
824
|
+
size: "lg",
|
|
825
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
defaultVariants: {
|
|
829
|
+
variant: "primary",
|
|
830
|
+
size: "md"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
);
|
|
834
|
+
function U({
|
|
835
|
+
children: e,
|
|
836
|
+
position: a
|
|
837
|
+
}) {
|
|
838
|
+
return e ? /* @__PURE__ */ l(
|
|
839
|
+
"span",
|
|
840
|
+
{
|
|
841
|
+
className: `inline-flex items-center ${a === "left" ? i("none", "mr") : i("none", "ml")}`,
|
|
842
|
+
children: e
|
|
843
|
+
}
|
|
844
|
+
) : null;
|
|
845
|
+
}
|
|
846
|
+
const Be = M(
|
|
847
|
+
j(function(T, E) {
|
|
848
|
+
var z = T, {
|
|
849
|
+
variant: a = "primary",
|
|
850
|
+
size: r = "md",
|
|
851
|
+
isLoading: t = !1,
|
|
852
|
+
loadingText: n,
|
|
853
|
+
loadingIcon: o,
|
|
854
|
+
leftIcon: c,
|
|
855
|
+
rightIcon: d,
|
|
856
|
+
fullWidth: p = !1,
|
|
857
|
+
asChild: x = !1,
|
|
858
|
+
as: m,
|
|
859
|
+
className: h = "",
|
|
860
|
+
disabled: f = !1,
|
|
861
|
+
children: g,
|
|
862
|
+
"aria-label": w
|
|
863
|
+
} = z, N = b(z, [
|
|
864
|
+
"variant",
|
|
865
|
+
"size",
|
|
866
|
+
"isLoading",
|
|
867
|
+
"loadingText",
|
|
868
|
+
"loadingIcon",
|
|
869
|
+
"leftIcon",
|
|
870
|
+
"rightIcon",
|
|
871
|
+
"fullWidth",
|
|
872
|
+
"asChild",
|
|
873
|
+
"as",
|
|
874
|
+
"className",
|
|
875
|
+
"disabled",
|
|
876
|
+
"children",
|
|
877
|
+
"aria-label"
|
|
878
|
+
]);
|
|
879
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && x && m !== void 0 && m !== "button" && console.warn(
|
|
880
|
+
"[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning."
|
|
881
|
+
);
|
|
882
|
+
const P = x ? de : m != null ? m : "button", W = s(
|
|
883
|
+
We({ variant: a, size: r }),
|
|
884
|
+
p && "w-full",
|
|
885
|
+
h
|
|
886
|
+
), K = (a === "iconOnly" || !g && (c || d)) && !w && !g ? "Button" : w, me = o || /* @__PURE__ */ l(fe, { size: r === "sm" ? "sm" : r === "lg" ? "lg" : "md", variant: a === "error" ? "primary" : a === "primary" || a === "secondary" ? "neutral" : "primary" }), J = !x && (m === void 0 || m === "button") && !N.type ? "button" : void 0, Q = u(u({
|
|
887
|
+
className: W,
|
|
888
|
+
disabled: f || t,
|
|
889
|
+
"aria-busy": t,
|
|
890
|
+
"aria-label": K,
|
|
891
|
+
"aria-disabled": f || t
|
|
892
|
+
}, J ? { type: J } : {}), N);
|
|
893
|
+
return x ? /* @__PURE__ */ v(P, y(u({ ref: E }, Q), { children: [
|
|
894
|
+
c && /* @__PURE__ */ l(U, { position: "left", children: c }),
|
|
895
|
+
/* @__PURE__ */ l(ze, { children: g }),
|
|
896
|
+
d && /* @__PURE__ */ l(U, { position: "right", children: d })
|
|
897
|
+
] })) : /* @__PURE__ */ l(P, y(u({ ref: E }, Q), { children: t ? /* @__PURE__ */ v(re, { children: [
|
|
898
|
+
me,
|
|
899
|
+
n && /* @__PURE__ */ l("span", { className: i("sm", "ml"), children: n }),
|
|
900
|
+
!n && g && /* @__PURE__ */ l("span", { className: `${i("sm", "ml")} opacity-0`, children: g })
|
|
901
|
+
] }) : /* @__PURE__ */ v(re, { children: [
|
|
902
|
+
c && /* @__PURE__ */ l(U, { position: "left", children: c }),
|
|
903
|
+
g,
|
|
904
|
+
d && /* @__PURE__ */ l(U, { position: "right", children: d })
|
|
905
|
+
] }) }));
|
|
906
|
+
})
|
|
907
|
+
);
|
|
908
|
+
Be.displayName = "Button";
|
|
909
|
+
const le = L(
|
|
910
|
+
// Base classes
|
|
911
|
+
s(
|
|
610
912
|
"inline-flex",
|
|
611
913
|
"items-center",
|
|
612
914
|
"font-medium",
|
|
613
|
-
|
|
915
|
+
$("full"),
|
|
614
916
|
i("xs", "gap")
|
|
615
917
|
),
|
|
616
918
|
{
|
|
617
919
|
variants: {
|
|
618
920
|
variant: {
|
|
619
|
-
default:
|
|
921
|
+
default: s(
|
|
620
922
|
"bg-surface-muted",
|
|
621
923
|
"text-fg-primary",
|
|
622
924
|
"border",
|
|
623
925
|
"border-line-default"
|
|
624
926
|
),
|
|
625
|
-
outlined:
|
|
927
|
+
outlined: s(
|
|
626
928
|
"bg-transparent",
|
|
627
929
|
"text-fg-primary",
|
|
628
930
|
"border",
|
|
629
931
|
"border-line-default"
|
|
630
932
|
),
|
|
631
|
-
filled:
|
|
933
|
+
filled: s(
|
|
632
934
|
"bg-surface-brand-strong",
|
|
633
935
|
"text-fg-inverse",
|
|
634
936
|
"border",
|
|
@@ -636,24 +938,24 @@ const J = V(
|
|
|
636
938
|
)
|
|
637
939
|
},
|
|
638
940
|
size: {
|
|
639
|
-
sm:
|
|
941
|
+
sm: s(
|
|
640
942
|
i("xs", "px"),
|
|
641
943
|
i("xs", "py"),
|
|
642
|
-
|
|
944
|
+
S("caption")
|
|
643
945
|
),
|
|
644
|
-
md:
|
|
946
|
+
md: s(
|
|
645
947
|
i("sm", "px"),
|
|
646
948
|
i("xs", "py"),
|
|
647
|
-
|
|
949
|
+
S("bodySmall")
|
|
648
950
|
),
|
|
649
|
-
lg:
|
|
951
|
+
lg: s(
|
|
650
952
|
i("md", "px"),
|
|
651
953
|
i("sm", "py"),
|
|
652
|
-
|
|
954
|
+
S("body")
|
|
653
955
|
)
|
|
654
956
|
},
|
|
655
957
|
selected: {
|
|
656
|
-
true:
|
|
958
|
+
true: s(
|
|
657
959
|
"bg-surface-brand-strong",
|
|
658
960
|
"text-fg-inverse",
|
|
659
961
|
"border",
|
|
@@ -693,66 +995,85 @@ const J = V(
|
|
|
693
995
|
disabled: !1
|
|
694
996
|
}
|
|
695
997
|
}
|
|
696
|
-
),
|
|
998
|
+
), Ie = j(function(a, r) {
|
|
697
999
|
const {
|
|
698
|
-
children:
|
|
699
|
-
variant:
|
|
1000
|
+
children: t,
|
|
1001
|
+
variant: n = "default",
|
|
700
1002
|
size: o = "md",
|
|
701
1003
|
selected: c = !1,
|
|
702
1004
|
disabled: d = !1,
|
|
703
1005
|
className: p = "",
|
|
704
|
-
"aria-label":
|
|
705
|
-
tabIndex:
|
|
706
|
-
asChild:
|
|
707
|
-
} =
|
|
708
|
-
if (
|
|
709
|
-
if (typeof
|
|
710
|
-
if (typeof
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
713
|
-
return
|
|
1006
|
+
"aria-label": x,
|
|
1007
|
+
tabIndex: m,
|
|
1008
|
+
asChild: h = !1
|
|
1009
|
+
} = a, g = (() => {
|
|
1010
|
+
if (x) return x;
|
|
1011
|
+
if (typeof t == "string") return t;
|
|
1012
|
+
if (typeof t == "object" && t !== null && "props" in t) {
|
|
1013
|
+
const A = t.props;
|
|
1014
|
+
if (A != null && A.children && typeof A.children == "string")
|
|
1015
|
+
return A.children;
|
|
714
1016
|
}
|
|
715
1017
|
})();
|
|
716
|
-
if (
|
|
1018
|
+
if (h)
|
|
717
1019
|
return /* @__PURE__ */ l(
|
|
718
|
-
|
|
1020
|
+
de,
|
|
719
1021
|
{
|
|
720
1022
|
ref: r,
|
|
721
|
-
className:
|
|
722
|
-
|
|
1023
|
+
className: s(
|
|
1024
|
+
le({ variant: n, size: o, selected: c, disabled: d }),
|
|
723
1025
|
p
|
|
724
1026
|
),
|
|
725
|
-
"aria-label":
|
|
1027
|
+
"aria-label": x,
|
|
726
1028
|
"aria-disabled": d || void 0,
|
|
727
|
-
tabIndex:
|
|
728
|
-
children:
|
|
1029
|
+
tabIndex: m,
|
|
1030
|
+
children: t
|
|
729
1031
|
}
|
|
730
1032
|
);
|
|
731
|
-
const { onRemove: w, onClick: N } =
|
|
732
|
-
d || (
|
|
733
|
-
}
|
|
1033
|
+
const { onRemove: w, onClick: N, count: E } = a, T = N !== void 0, z = T && !d, P = (A) => {
|
|
1034
|
+
d || (A.key === "Enter" || A.key === " ") && (A.preventDefault(), N == null || N());
|
|
1035
|
+
}, W = E !== void 0, Y = c || n === "filled", K = W ? /* @__PURE__ */ l(
|
|
1036
|
+
"span",
|
|
1037
|
+
{
|
|
1038
|
+
"aria-hidden": T || void 0,
|
|
1039
|
+
className: s(
|
|
1040
|
+
"inline-flex",
|
|
1041
|
+
"items-center",
|
|
1042
|
+
"justify-center",
|
|
1043
|
+
"tabular-nums",
|
|
1044
|
+
"leading-none",
|
|
1045
|
+
$("full"),
|
|
1046
|
+
i("xs", "px"),
|
|
1047
|
+
i("0.5", "py"),
|
|
1048
|
+
S("caption"),
|
|
1049
|
+
O("label"),
|
|
1050
|
+
Y ? s("bg-surface-base", "text-fg-brand-emphasis") : s("bg-surface-brand-strong", "text-fg-inverse")
|
|
1051
|
+
),
|
|
1052
|
+
children: E
|
|
1053
|
+
}
|
|
1054
|
+
) : null, Z = W && g !== void 0 ? `${g}, ${E}` : g;
|
|
734
1055
|
return /* @__PURE__ */ v(
|
|
735
1056
|
"div",
|
|
736
1057
|
{
|
|
737
1058
|
ref: r,
|
|
738
|
-
className:
|
|
739
|
-
|
|
1059
|
+
className: s(
|
|
1060
|
+
le({ variant: n, size: o, selected: c, disabled: d }),
|
|
740
1061
|
w && i("xs", "pr"),
|
|
741
1062
|
p
|
|
742
1063
|
),
|
|
743
1064
|
"aria-disabled": d,
|
|
744
1065
|
children: [
|
|
745
|
-
|
|
1066
|
+
T ? /* @__PURE__ */ l(
|
|
746
1067
|
"button",
|
|
747
1068
|
{
|
|
748
1069
|
type: "button",
|
|
749
1070
|
onClick: d ? void 0 : N,
|
|
750
|
-
onKeyDown:
|
|
1071
|
+
onKeyDown: P,
|
|
751
1072
|
disabled: d,
|
|
752
1073
|
"aria-pressed": c ? !0 : void 0,
|
|
753
|
-
"aria-label":
|
|
754
|
-
tabIndex:
|
|
755
|
-
className:
|
|
1074
|
+
"aria-label": x || Z,
|
|
1075
|
+
tabIndex: m !== void 0 ? m : z ? 0 : void 0,
|
|
1076
|
+
className: s(
|
|
756
1077
|
"flex-1",
|
|
757
1078
|
"bg-transparent",
|
|
758
1079
|
"border-0",
|
|
@@ -764,22 +1085,23 @@ const J = V(
|
|
|
764
1085
|
"focus:ring-2",
|
|
765
1086
|
"focus:ring-line-focus",
|
|
766
1087
|
"focus:ring-offset-2",
|
|
767
|
-
|
|
1088
|
+
$("full")
|
|
768
1089
|
),
|
|
769
|
-
children:
|
|
1090
|
+
children: t
|
|
770
1091
|
}
|
|
771
|
-
) : /* @__PURE__ */ l("span", { children:
|
|
1092
|
+
) : /* @__PURE__ */ l("span", { children: t }),
|
|
1093
|
+
K,
|
|
772
1094
|
w && !d && /* @__PURE__ */ l(
|
|
773
1095
|
"button",
|
|
774
1096
|
{
|
|
775
1097
|
type: "button",
|
|
776
|
-
onClick: (
|
|
777
|
-
|
|
1098
|
+
onClick: (A) => {
|
|
1099
|
+
A.stopPropagation(), w();
|
|
778
1100
|
},
|
|
779
|
-
className:
|
|
1101
|
+
className: s(
|
|
780
1102
|
i("xs", "ml"),
|
|
781
1103
|
"hover:bg-tint-hover",
|
|
782
|
-
|
|
1104
|
+
$("full"),
|
|
783
1105
|
i("xs", "p"),
|
|
784
1106
|
"transition-colors",
|
|
785
1107
|
"focus:outline-none",
|
|
@@ -787,101 +1109,101 @@ const J = V(
|
|
|
787
1109
|
"focus:ring-line-focus",
|
|
788
1110
|
"focus:ring-offset-1"
|
|
789
1111
|
),
|
|
790
|
-
"aria-label": `Remove ${
|
|
791
|
-
children: /* @__PURE__ */ l(
|
|
1112
|
+
"aria-label": `Remove ${g || "chip"}`,
|
|
1113
|
+
children: /* @__PURE__ */ l(Ne, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
792
1114
|
}
|
|
793
1115
|
)
|
|
794
1116
|
]
|
|
795
1117
|
}
|
|
796
1118
|
);
|
|
797
1119
|
});
|
|
798
|
-
|
|
799
|
-
function
|
|
800
|
-
var o =
|
|
1120
|
+
Ie.displayName = "Chip";
|
|
1121
|
+
function La(n) {
|
|
1122
|
+
var o = n, {
|
|
801
1123
|
message: e,
|
|
802
|
-
id:
|
|
1124
|
+
id: a,
|
|
803
1125
|
className: r = ""
|
|
804
|
-
} = o,
|
|
1126
|
+
} = o, t = b(o, [
|
|
805
1127
|
"message",
|
|
806
1128
|
"id",
|
|
807
1129
|
"className"
|
|
808
1130
|
]);
|
|
809
1131
|
const c = [
|
|
810
1132
|
i("xs", "mt"),
|
|
811
|
-
|
|
1133
|
+
S("bodySmall"),
|
|
812
1134
|
"text-fg-error",
|
|
813
1135
|
"flex",
|
|
814
1136
|
"items-center",
|
|
815
1137
|
i("xs", "gap")
|
|
816
|
-
], d =
|
|
817
|
-
return /* @__PURE__ */ v("div", y(
|
|
818
|
-
/* @__PURE__ */ l(
|
|
1138
|
+
], d = s(...c, r);
|
|
1139
|
+
return /* @__PURE__ */ v("div", y(u({ role: "alert", id: a, className: d, "aria-live": "polite" }, t), { children: [
|
|
1140
|
+
/* @__PURE__ */ l(Se, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
819
1141
|
/* @__PURE__ */ l("span", { children: e })
|
|
820
1142
|
] }));
|
|
821
1143
|
}
|
|
822
|
-
function
|
|
823
|
-
var
|
|
1144
|
+
function za(t) {
|
|
1145
|
+
var n = t, {
|
|
824
1146
|
variant: e = "info",
|
|
825
|
-
className:
|
|
826
|
-
} =
|
|
1147
|
+
className: a
|
|
1148
|
+
} = n, r = b(n, [
|
|
827
1149
|
"variant",
|
|
828
1150
|
"className"
|
|
829
1151
|
]);
|
|
830
1152
|
const o = {
|
|
831
|
-
warning:
|
|
832
|
-
error:
|
|
833
|
-
info:
|
|
1153
|
+
warning: s("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
1154
|
+
error: s("bg-error-bg", "text-error-dark", "border-error"),
|
|
1155
|
+
info: s("bg-info-bg", "text-info-dark", "border-info")
|
|
834
1156
|
};
|
|
835
1157
|
return /* @__PURE__ */ l(
|
|
836
1158
|
"div",
|
|
837
|
-
|
|
1159
|
+
u({
|
|
838
1160
|
role: "alert",
|
|
839
|
-
className:
|
|
1161
|
+
className: s(
|
|
840
1162
|
"border",
|
|
841
1163
|
i("base", "px"),
|
|
842
1164
|
i("sm", "py"),
|
|
843
|
-
|
|
1165
|
+
$("lg"),
|
|
844
1166
|
o[e],
|
|
845
|
-
|
|
1167
|
+
a
|
|
846
1168
|
)
|
|
847
1169
|
}, r)
|
|
848
1170
|
);
|
|
849
1171
|
}
|
|
850
|
-
const
|
|
1172
|
+
const Ue = s(
|
|
851
1173
|
"block",
|
|
852
|
-
|
|
853
|
-
|
|
1174
|
+
S("label"),
|
|
1175
|
+
O("label"),
|
|
854
1176
|
"text-fg-primary"
|
|
855
|
-
),
|
|
1177
|
+
), Ke = {
|
|
856
1178
|
default: "",
|
|
857
|
-
required:
|
|
1179
|
+
required: s(
|
|
858
1180
|
"after:content-['*']",
|
|
859
1181
|
`after:${i("0.5", "ml")}`,
|
|
860
1182
|
"after:text-fg-error"
|
|
861
1183
|
),
|
|
862
|
-
optional:
|
|
1184
|
+
optional: s(
|
|
863
1185
|
"after:content-['(optional)']",
|
|
864
1186
|
`after:${i("xs", "ml")}`,
|
|
865
1187
|
"after:text-fg-tertiary",
|
|
866
1188
|
"after:font-normal"
|
|
867
1189
|
)
|
|
868
|
-
},
|
|
1190
|
+
}, Xe = M(
|
|
869
1191
|
j(function(c, o) {
|
|
870
|
-
var d = c, { variant:
|
|
871
|
-
const p =
|
|
872
|
-
|
|
873
|
-
|
|
1192
|
+
var d = c, { variant: a = "default", className: r = "", children: t } = d, n = b(d, ["variant", "className", "children"]);
|
|
1193
|
+
const p = s(
|
|
1194
|
+
Ue,
|
|
1195
|
+
Ke[a],
|
|
874
1196
|
r
|
|
875
1197
|
);
|
|
876
|
-
return /* @__PURE__ */ l("label", y(
|
|
1198
|
+
return /* @__PURE__ */ l("label", y(u({ ref: o, className: p }, n), { children: t }));
|
|
877
1199
|
})
|
|
878
1200
|
);
|
|
879
|
-
|
|
880
|
-
class
|
|
1201
|
+
Xe.displayName = "Label";
|
|
1202
|
+
class R {
|
|
881
1203
|
/**
|
|
882
1204
|
* Create a shadow token
|
|
883
1205
|
*/
|
|
884
|
-
static create(
|
|
1206
|
+
static create(a) {
|
|
885
1207
|
return {
|
|
886
1208
|
none: {
|
|
887
1209
|
value: "none",
|
|
@@ -918,22 +1240,22 @@ class D {
|
|
|
918
1240
|
tailwind: "shadow-inner",
|
|
919
1241
|
description: "Inner shadow for inset elements"
|
|
920
1242
|
}
|
|
921
|
-
}[
|
|
1243
|
+
}[a];
|
|
922
1244
|
}
|
|
923
1245
|
}
|
|
924
|
-
const
|
|
925
|
-
none:
|
|
926
|
-
sm:
|
|
927
|
-
md:
|
|
928
|
-
lg:
|
|
929
|
-
xl:
|
|
930
|
-
"2xl":
|
|
931
|
-
inner:
|
|
1246
|
+
const qe = {
|
|
1247
|
+
none: R.create("none"),
|
|
1248
|
+
sm: R.create("sm"),
|
|
1249
|
+
md: R.create("md"),
|
|
1250
|
+
lg: R.create("lg"),
|
|
1251
|
+
xl: R.create("xl"),
|
|
1252
|
+
"2xl": R.create("2xl"),
|
|
1253
|
+
inner: R.create("inner")
|
|
932
1254
|
};
|
|
933
|
-
function
|
|
934
|
-
return
|
|
1255
|
+
function q(e) {
|
|
1256
|
+
return qe[e].tailwind;
|
|
935
1257
|
}
|
|
936
|
-
const
|
|
1258
|
+
const Ge = L("w-full", {
|
|
937
1259
|
variants: {
|
|
938
1260
|
size: {
|
|
939
1261
|
sm: "h-1",
|
|
@@ -953,7 +1275,7 @@ const Re = V("w-full", {
|
|
|
953
1275
|
size: "md",
|
|
954
1276
|
variant: "primary"
|
|
955
1277
|
}
|
|
956
|
-
}),
|
|
1278
|
+
}), oe = L("transition-all", {
|
|
957
1279
|
variants: {
|
|
958
1280
|
variant: {
|
|
959
1281
|
primary: "bg-surface-brand",
|
|
@@ -967,17 +1289,17 @@ const Re = V("w-full", {
|
|
|
967
1289
|
defaultVariants: {
|
|
968
1290
|
variant: "primary"
|
|
969
1291
|
}
|
|
970
|
-
}),
|
|
971
|
-
var
|
|
972
|
-
value:
|
|
1292
|
+
}), Ye = j(function(h, m) {
|
|
1293
|
+
var f = h, {
|
|
1294
|
+
value: a,
|
|
973
1295
|
max: r = 100,
|
|
974
|
-
variant:
|
|
975
|
-
size:
|
|
1296
|
+
variant: t = "primary",
|
|
1297
|
+
size: n = "md",
|
|
976
1298
|
showLabel: o = !1,
|
|
977
1299
|
label: c,
|
|
978
1300
|
"aria-label": d,
|
|
979
1301
|
className: p = ""
|
|
980
|
-
} =
|
|
1302
|
+
} = f, x = b(f, [
|
|
981
1303
|
"value",
|
|
982
1304
|
"max",
|
|
983
1305
|
"variant",
|
|
@@ -987,12 +1309,12 @@ const Re = V("w-full", {
|
|
|
987
1309
|
"aria-label",
|
|
988
1310
|
"className"
|
|
989
1311
|
]);
|
|
990
|
-
const
|
|
991
|
-
return /* @__PURE__ */ v("div", y(
|
|
992
|
-
o && (c || !
|
|
1312
|
+
const g = a === void 0, w = g ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), N = d || (g ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
|
|
1313
|
+
return /* @__PURE__ */ v("div", y(u({ ref: m, className: s("w-full", p) }, x), { children: [
|
|
1314
|
+
o && (c || !g) && /* @__PURE__ */ v(
|
|
993
1315
|
"div",
|
|
994
1316
|
{
|
|
995
|
-
className:
|
|
1317
|
+
className: s(
|
|
996
1318
|
"flex",
|
|
997
1319
|
"items-center",
|
|
998
1320
|
"justify-between",
|
|
@@ -1002,19 +1324,19 @@ const Re = V("w-full", {
|
|
|
1002
1324
|
c && /* @__PURE__ */ l(
|
|
1003
1325
|
"span",
|
|
1004
1326
|
{
|
|
1005
|
-
className:
|
|
1006
|
-
|
|
1007
|
-
|
|
1327
|
+
className: s(
|
|
1328
|
+
S("bodySmall"),
|
|
1329
|
+
O("label"),
|
|
1008
1330
|
"text-fg-primary"
|
|
1009
1331
|
),
|
|
1010
1332
|
children: c
|
|
1011
1333
|
}
|
|
1012
1334
|
),
|
|
1013
|
-
!
|
|
1335
|
+
!g && w !== void 0 && /* @__PURE__ */ v(
|
|
1014
1336
|
"span",
|
|
1015
1337
|
{
|
|
1016
|
-
className:
|
|
1017
|
-
|
|
1338
|
+
className: s(
|
|
1339
|
+
S("bodySmall"),
|
|
1018
1340
|
"text-fg-secondary"
|
|
1019
1341
|
),
|
|
1020
1342
|
children: [
|
|
@@ -1030,28 +1352,28 @@ const Re = V("w-full", {
|
|
|
1030
1352
|
"div",
|
|
1031
1353
|
{
|
|
1032
1354
|
role: "progressbar",
|
|
1033
|
-
"aria-valuemin":
|
|
1034
|
-
"aria-valuemax":
|
|
1035
|
-
"aria-valuenow":
|
|
1355
|
+
"aria-valuemin": g ? void 0 : 0,
|
|
1356
|
+
"aria-valuemax": g ? void 0 : r,
|
|
1357
|
+
"aria-valuenow": g ? void 0 : a,
|
|
1036
1358
|
"aria-label": N,
|
|
1037
|
-
"aria-busy":
|
|
1038
|
-
className:
|
|
1359
|
+
"aria-busy": g,
|
|
1360
|
+
className: s(
|
|
1039
1361
|
"relative",
|
|
1040
1362
|
"w-full",
|
|
1041
1363
|
"overflow-hidden",
|
|
1042
|
-
|
|
1043
|
-
|
|
1364
|
+
Ge({ size: n, variant: t }),
|
|
1365
|
+
$("full")
|
|
1044
1366
|
),
|
|
1045
|
-
children:
|
|
1367
|
+
children: g ? /* @__PURE__ */ l(
|
|
1046
1368
|
"div",
|
|
1047
1369
|
{
|
|
1048
|
-
className:
|
|
1370
|
+
className: s(
|
|
1049
1371
|
"absolute",
|
|
1050
1372
|
"top-0",
|
|
1051
1373
|
"left-0",
|
|
1052
1374
|
"bottom-0",
|
|
1053
|
-
|
|
1054
|
-
|
|
1375
|
+
oe({ variant: t }),
|
|
1376
|
+
$("full"),
|
|
1055
1377
|
"motion-reduce:animate-none"
|
|
1056
1378
|
),
|
|
1057
1379
|
style: {
|
|
@@ -1062,10 +1384,10 @@ const Re = V("w-full", {
|
|
|
1062
1384
|
) : /* @__PURE__ */ l(
|
|
1063
1385
|
"div",
|
|
1064
1386
|
{
|
|
1065
|
-
className:
|
|
1387
|
+
className: s(
|
|
1066
1388
|
"h-full",
|
|
1067
|
-
|
|
1068
|
-
|
|
1389
|
+
oe({ variant: t }),
|
|
1390
|
+
$("full"),
|
|
1069
1391
|
"transition-all",
|
|
1070
1392
|
"duration-300",
|
|
1071
1393
|
"ease-out"
|
|
@@ -1080,57 +1402,57 @@ const Re = V("w-full", {
|
|
|
1080
1402
|
)
|
|
1081
1403
|
] }));
|
|
1082
1404
|
});
|
|
1083
|
-
|
|
1084
|
-
const
|
|
1405
|
+
Ye.displayName = "Progress";
|
|
1406
|
+
const Ze = {
|
|
1085
1407
|
horizontal: "w-full border-t",
|
|
1086
1408
|
vertical: "h-full border-l self-stretch"
|
|
1087
|
-
},
|
|
1409
|
+
}, Je = {
|
|
1088
1410
|
solid: "border-solid",
|
|
1089
1411
|
dashed: "border-dashed",
|
|
1090
1412
|
dotted: "border-dotted"
|
|
1091
|
-
},
|
|
1413
|
+
}, Qe = M(function(o) {
|
|
1092
1414
|
var c = o, {
|
|
1093
|
-
orientation:
|
|
1415
|
+
orientation: a = "horizontal",
|
|
1094
1416
|
variant: r = "solid",
|
|
1095
|
-
className:
|
|
1096
|
-
} = c,
|
|
1417
|
+
className: t = ""
|
|
1418
|
+
} = c, n = b(c, [
|
|
1097
1419
|
"orientation",
|
|
1098
1420
|
"variant",
|
|
1099
1421
|
"className"
|
|
1100
1422
|
]);
|
|
1101
|
-
const d =
|
|
1423
|
+
const d = s(
|
|
1102
1424
|
"border-0",
|
|
1103
1425
|
"border-line-default",
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1426
|
+
Ze[a],
|
|
1427
|
+
Je[r],
|
|
1428
|
+
t
|
|
1107
1429
|
);
|
|
1108
|
-
return
|
|
1430
|
+
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1109
1431
|
"div",
|
|
1110
|
-
|
|
1432
|
+
u({
|
|
1111
1433
|
className: d,
|
|
1112
1434
|
role: "separator",
|
|
1113
1435
|
"aria-orientation": "vertical"
|
|
1114
|
-
},
|
|
1436
|
+
}, n)
|
|
1115
1437
|
) : /* @__PURE__ */ l(
|
|
1116
1438
|
"hr",
|
|
1117
|
-
|
|
1439
|
+
u({
|
|
1118
1440
|
className: d,
|
|
1119
1441
|
role: "separator",
|
|
1120
1442
|
"aria-orientation": "horizontal"
|
|
1121
|
-
},
|
|
1443
|
+
}, n)
|
|
1122
1444
|
);
|
|
1123
1445
|
});
|
|
1124
|
-
|
|
1125
|
-
function
|
|
1446
|
+
Qe.displayName = "Separator";
|
|
1447
|
+
function Fa(d) {
|
|
1126
1448
|
var p = d, {
|
|
1127
1449
|
variant: e = "text",
|
|
1128
|
-
width:
|
|
1450
|
+
width: a,
|
|
1129
1451
|
height: r,
|
|
1130
|
-
lines:
|
|
1131
|
-
className:
|
|
1452
|
+
lines: t = 1,
|
|
1453
|
+
className: n = "",
|
|
1132
1454
|
"aria-label": o
|
|
1133
|
-
} = p, c =
|
|
1455
|
+
} = p, c = b(p, [
|
|
1134
1456
|
"variant",
|
|
1135
1457
|
"width",
|
|
1136
1458
|
"height",
|
|
@@ -1138,31 +1460,31 @@ function ya(d) {
|
|
|
1138
1460
|
"className",
|
|
1139
1461
|
"aria-label"
|
|
1140
1462
|
]);
|
|
1141
|
-
const
|
|
1463
|
+
const x = [
|
|
1142
1464
|
"motion-safe:animate-pulse",
|
|
1143
1465
|
"bg-surface-muted",
|
|
1144
|
-
|
|
1145
|
-
],
|
|
1466
|
+
$("sm")
|
|
1467
|
+
], m = {
|
|
1146
1468
|
text: "h-4",
|
|
1147
1469
|
card: "h-32",
|
|
1148
1470
|
list: "h-12",
|
|
1149
|
-
circle:
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1153
|
-
return e === "text" &&
|
|
1471
|
+
circle: $("full")
|
|
1472
|
+
}, h = s(...x, m[e], n), f = {};
|
|
1473
|
+
a && (f.width = a), r && (f.height = r);
|
|
1474
|
+
const g = o || `Loading ${e} content`;
|
|
1475
|
+
return e === "text" && t > 1 ? /* @__PURE__ */ l(
|
|
1154
1476
|
"div",
|
|
1155
|
-
y(
|
|
1477
|
+
y(u({
|
|
1156
1478
|
className: i("sm", "space-y"),
|
|
1157
1479
|
role: "status",
|
|
1158
1480
|
"aria-busy": "true",
|
|
1159
|
-
"aria-label":
|
|
1481
|
+
"aria-label": g
|
|
1160
1482
|
}, c), {
|
|
1161
|
-
children: Array.from({ length:
|
|
1483
|
+
children: Array.from({ length: t }).map((w, N) => /* @__PURE__ */ l(
|
|
1162
1484
|
"div",
|
|
1163
1485
|
{
|
|
1164
|
-
className:
|
|
1165
|
-
style: N ===
|
|
1486
|
+
className: h,
|
|
1487
|
+
style: N === t - 1 ? { width: "75%" } : f,
|
|
1166
1488
|
"aria-hidden": "true"
|
|
1167
1489
|
},
|
|
1168
1490
|
N
|
|
@@ -1170,78 +1492,16 @@ function ya(d) {
|
|
|
1170
1492
|
})
|
|
1171
1493
|
) : /* @__PURE__ */ l(
|
|
1172
1494
|
"div",
|
|
1173
|
-
|
|
1174
|
-
className:
|
|
1175
|
-
style:
|
|
1495
|
+
u({
|
|
1496
|
+
className: h,
|
|
1497
|
+
style: f,
|
|
1176
1498
|
role: "status",
|
|
1177
1499
|
"aria-busy": "true",
|
|
1178
|
-
"aria-label":
|
|
1500
|
+
"aria-label": g
|
|
1179
1501
|
}, c)
|
|
1180
1502
|
);
|
|
1181
1503
|
}
|
|
1182
|
-
const
|
|
1183
|
-
variants: {
|
|
1184
|
-
size: {
|
|
1185
|
-
sm: "h-4 w-4",
|
|
1186
|
-
md: "h-5 w-5",
|
|
1187
|
-
lg: "h-8 w-8"
|
|
1188
|
-
},
|
|
1189
|
-
variant: {
|
|
1190
|
-
primary: "text-fg-brand",
|
|
1191
|
-
secondary: "text-fg-brand-secondary",
|
|
1192
|
-
neutral: "text-fg-secondary"
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
defaultVariants: {
|
|
1196
|
-
size: "md",
|
|
1197
|
-
variant: "primary"
|
|
1198
|
-
}
|
|
1199
|
-
}), He = H(function(c) {
|
|
1200
|
-
var d = c, {
|
|
1201
|
-
size: t = "md",
|
|
1202
|
-
variant: r = "primary",
|
|
1203
|
-
label: a,
|
|
1204
|
-
className: s = ""
|
|
1205
|
-
} = d, o = m(d, [
|
|
1206
|
-
"size",
|
|
1207
|
-
"variant",
|
|
1208
|
-
"label",
|
|
1209
|
-
"className"
|
|
1210
|
-
]);
|
|
1211
|
-
return /* @__PURE__ */ v(
|
|
1212
|
-
"div",
|
|
1213
|
-
y(f({
|
|
1214
|
-
className: n("inline-flex", "items-center", s),
|
|
1215
|
-
role: "status",
|
|
1216
|
-
"aria-label": a || "Loading",
|
|
1217
|
-
"aria-live": "polite"
|
|
1218
|
-
}, o), {
|
|
1219
|
-
children: [
|
|
1220
|
-
/* @__PURE__ */ l(
|
|
1221
|
-
de,
|
|
1222
|
-
{
|
|
1223
|
-
className: n(Me({ size: t, variant: r })),
|
|
1224
|
-
"aria-hidden": "true"
|
|
1225
|
-
}
|
|
1226
|
-
),
|
|
1227
|
-
a && /* @__PURE__ */ l(
|
|
1228
|
-
"span",
|
|
1229
|
-
{
|
|
1230
|
-
className: n(
|
|
1231
|
-
i("sm", "ml"),
|
|
1232
|
-
C("bodySmall"),
|
|
1233
|
-
"text-fg-secondary",
|
|
1234
|
-
"sr-only"
|
|
1235
|
-
),
|
|
1236
|
-
children: a
|
|
1237
|
-
}
|
|
1238
|
-
)
|
|
1239
|
-
]
|
|
1240
|
-
})
|
|
1241
|
-
);
|
|
1242
|
-
});
|
|
1243
|
-
He.displayName = "Spinner";
|
|
1244
|
-
const Ie = {
|
|
1504
|
+
const ea = {
|
|
1245
1505
|
primary: {
|
|
1246
1506
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1247
1507
|
light: "text-indigo-400",
|
|
@@ -1293,16 +1553,16 @@ const Ie = {
|
|
|
1293
1553
|
contrast: "text-fg-inverse"
|
|
1294
1554
|
}
|
|
1295
1555
|
};
|
|
1296
|
-
function
|
|
1297
|
-
var
|
|
1556
|
+
function aa(x, p) {
|
|
1557
|
+
var m = x, {
|
|
1298
1558
|
variant: e = "paragraph",
|
|
1299
|
-
bold:
|
|
1559
|
+
bold: a,
|
|
1300
1560
|
italic: r,
|
|
1301
|
-
className:
|
|
1302
|
-
as:
|
|
1561
|
+
className: t,
|
|
1562
|
+
as: n,
|
|
1303
1563
|
colorRole: o = "neutral",
|
|
1304
1564
|
colorShade: c = "dark"
|
|
1305
|
-
} =
|
|
1565
|
+
} = m, d = b(m, [
|
|
1306
1566
|
"variant",
|
|
1307
1567
|
"bold",
|
|
1308
1568
|
"italic",
|
|
@@ -1311,41 +1571,41 @@ function Pe(b, p) {
|
|
|
1311
1571
|
"colorRole",
|
|
1312
1572
|
"colorShade"
|
|
1313
1573
|
]);
|
|
1314
|
-
const
|
|
1315
|
-
let
|
|
1316
|
-
if (
|
|
1317
|
-
|
|
1574
|
+
const h = [];
|
|
1575
|
+
let f;
|
|
1576
|
+
if (n)
|
|
1577
|
+
f = n;
|
|
1318
1578
|
else
|
|
1319
1579
|
switch (e) {
|
|
1320
1580
|
case "heading":
|
|
1321
|
-
|
|
1581
|
+
f = "h2";
|
|
1322
1582
|
break;
|
|
1323
1583
|
case "list":
|
|
1324
|
-
|
|
1584
|
+
f = "li";
|
|
1325
1585
|
break;
|
|
1326
1586
|
default:
|
|
1327
|
-
|
|
1587
|
+
f = "p";
|
|
1328
1588
|
break;
|
|
1329
1589
|
}
|
|
1330
|
-
return e === "heading" ?
|
|
1590
|
+
return e === "heading" ? h.push(D("h2")) : e === "body" || e === "paragraph" ? h.push(D("body")) : e === "bodySmall" ? h.push(D("bodySmall")) : e === "bodyLarge" ? h.push(D("bodyLarge")) : e === "caption" ? h.push(D("caption")) : e === "label" ? h.push(D("label")) : h.push(D("body")), a && h.push("font-bold"), r && h.push("italic"), h.push(ea[o][c]), /* @__PURE__ */ l(f, u({ ref: p, className: s(...h, t) }, d));
|
|
1331
1591
|
}
|
|
1332
|
-
const _ = j(
|
|
1592
|
+
const _ = j(aa), ta = {
|
|
1333
1593
|
sm: "max-w-screen-sm",
|
|
1334
1594
|
md: "max-w-screen-md",
|
|
1335
1595
|
lg: "max-w-screen-lg",
|
|
1336
1596
|
xl: "max-w-screen-xl",
|
|
1337
1597
|
"2xl": "max-w-screen-2xl",
|
|
1338
1598
|
full: "max-w-full"
|
|
1339
|
-
},
|
|
1599
|
+
}, ra = ce.forwardRef(
|
|
1340
1600
|
(p, d) => {
|
|
1341
|
-
var
|
|
1601
|
+
var x = p, {
|
|
1342
1602
|
className: e,
|
|
1343
|
-
maxWidth:
|
|
1603
|
+
maxWidth: a = "lg",
|
|
1344
1604
|
paddingX: r = "base",
|
|
1345
|
-
paddingY:
|
|
1346
|
-
center:
|
|
1605
|
+
paddingY: t = "base",
|
|
1606
|
+
center: n = !0,
|
|
1347
1607
|
children: o
|
|
1348
|
-
} =
|
|
1608
|
+
} = x, c = b(x, [
|
|
1349
1609
|
"className",
|
|
1350
1610
|
"maxWidth",
|
|
1351
1611
|
"paddingX",
|
|
@@ -1355,14 +1615,14 @@ const _ = j(Pe), Oe = {
|
|
|
1355
1615
|
]);
|
|
1356
1616
|
return /* @__PURE__ */ l(
|
|
1357
1617
|
"div",
|
|
1358
|
-
y(
|
|
1618
|
+
y(u({
|
|
1359
1619
|
ref: d,
|
|
1360
|
-
className:
|
|
1620
|
+
className: s(
|
|
1361
1621
|
"w-full",
|
|
1362
|
-
|
|
1622
|
+
ta[a],
|
|
1363
1623
|
i(r, "px"),
|
|
1364
|
-
i(
|
|
1365
|
-
|
|
1624
|
+
i(t, "py"),
|
|
1625
|
+
n && "mx-auto",
|
|
1366
1626
|
e
|
|
1367
1627
|
)
|
|
1368
1628
|
}, c), {
|
|
@@ -1371,17 +1631,17 @@ const _ = j(Pe), Oe = {
|
|
|
1371
1631
|
);
|
|
1372
1632
|
}
|
|
1373
1633
|
);
|
|
1374
|
-
|
|
1375
|
-
const
|
|
1634
|
+
ra.displayName = "Container";
|
|
1635
|
+
const na = ce.forwardRef(
|
|
1376
1636
|
(p, d) => {
|
|
1377
|
-
var
|
|
1637
|
+
var x = p, {
|
|
1378
1638
|
className: e,
|
|
1379
|
-
spacing:
|
|
1639
|
+
spacing: a = "base",
|
|
1380
1640
|
align: r = "stretch",
|
|
1381
|
-
justify:
|
|
1382
|
-
direction:
|
|
1641
|
+
justify: t = "start",
|
|
1642
|
+
direction: n = "column",
|
|
1383
1643
|
children: o
|
|
1384
|
-
} =
|
|
1644
|
+
} = x, c = b(x, [
|
|
1385
1645
|
"className",
|
|
1386
1646
|
"spacing",
|
|
1387
1647
|
"align",
|
|
@@ -1389,12 +1649,12 @@ const Ue = ee.forwardRef(
|
|
|
1389
1649
|
"direction",
|
|
1390
1650
|
"children"
|
|
1391
1651
|
]);
|
|
1392
|
-
const
|
|
1652
|
+
const m = n === "column" ? i(a, "gap-y") : i(a, "gap-x"), h = {
|
|
1393
1653
|
start: "items-start",
|
|
1394
1654
|
center: "items-center",
|
|
1395
1655
|
end: "items-end",
|
|
1396
1656
|
stretch: "items-stretch"
|
|
1397
|
-
},
|
|
1657
|
+
}, f = {
|
|
1398
1658
|
start: "justify-start",
|
|
1399
1659
|
center: "justify-center",
|
|
1400
1660
|
end: "justify-end",
|
|
@@ -1404,14 +1664,14 @@ const Ue = ee.forwardRef(
|
|
|
1404
1664
|
};
|
|
1405
1665
|
return /* @__PURE__ */ l(
|
|
1406
1666
|
"div",
|
|
1407
|
-
y(
|
|
1667
|
+
y(u({
|
|
1408
1668
|
ref: d,
|
|
1409
|
-
className:
|
|
1669
|
+
className: s(
|
|
1410
1670
|
"flex",
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1671
|
+
n === "column" ? "flex-col" : "flex-row",
|
|
1672
|
+
m,
|
|
1673
|
+
h[r],
|
|
1674
|
+
f[t],
|
|
1415
1675
|
e
|
|
1416
1676
|
)
|
|
1417
1677
|
}, c), {
|
|
@@ -1420,13 +1680,13 @@ const Ue = ee.forwardRef(
|
|
|
1420
1680
|
);
|
|
1421
1681
|
}
|
|
1422
1682
|
);
|
|
1423
|
-
|
|
1424
|
-
function
|
|
1425
|
-
var o =
|
|
1683
|
+
na.displayName = "Stack";
|
|
1684
|
+
function sa(n) {
|
|
1685
|
+
var o = n, {
|
|
1426
1686
|
items: e,
|
|
1427
|
-
separator:
|
|
1687
|
+
separator: a = "/",
|
|
1428
1688
|
className: r = ""
|
|
1429
|
-
} = o,
|
|
1689
|
+
} = o, t = b(o, [
|
|
1430
1690
|
"items",
|
|
1431
1691
|
"separator",
|
|
1432
1692
|
"className"
|
|
@@ -1435,32 +1695,32 @@ function Be(s) {
|
|
|
1435
1695
|
"flex",
|
|
1436
1696
|
"items-center",
|
|
1437
1697
|
i("sm", "space-x"),
|
|
1438
|
-
|
|
1439
|
-
], d =
|
|
1440
|
-
return /* @__PURE__ */ l("nav", y(
|
|
1698
|
+
S("bodySmall")
|
|
1699
|
+
], d = s(...c, r);
|
|
1700
|
+
return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
|
|
1441
1701
|
"ol",
|
|
1442
1702
|
{
|
|
1443
|
-
className:
|
|
1444
|
-
children: e.map((p,
|
|
1445
|
-
const
|
|
1703
|
+
className: s("flex", "items-center", i("sm", "space-x")),
|
|
1704
|
+
children: e.map((p, x) => {
|
|
1705
|
+
const m = x === e.length - 1;
|
|
1446
1706
|
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1447
|
-
|
|
1707
|
+
x > 0 && /* @__PURE__ */ l(
|
|
1448
1708
|
"span",
|
|
1449
1709
|
{
|
|
1450
|
-
className:
|
|
1710
|
+
className: s(
|
|
1451
1711
|
i("sm", "mx"),
|
|
1452
1712
|
"text-fg-tertiary"
|
|
1453
1713
|
),
|
|
1454
1714
|
"aria-hidden": "true",
|
|
1455
|
-
children:
|
|
1715
|
+
children: a
|
|
1456
1716
|
}
|
|
1457
1717
|
),
|
|
1458
|
-
|
|
1718
|
+
m ? /* @__PURE__ */ l(
|
|
1459
1719
|
"span",
|
|
1460
1720
|
{
|
|
1461
|
-
className:
|
|
1721
|
+
className: s(
|
|
1462
1722
|
"text-fg-primary",
|
|
1463
|
-
|
|
1723
|
+
O("label")
|
|
1464
1724
|
),
|
|
1465
1725
|
"aria-current": "page",
|
|
1466
1726
|
children: p.label
|
|
@@ -1469,15 +1729,15 @@ function Be(s) {
|
|
|
1469
1729
|
"a",
|
|
1470
1730
|
{
|
|
1471
1731
|
href: p.href,
|
|
1472
|
-
className:
|
|
1732
|
+
className: s(
|
|
1473
1733
|
"inline-flex",
|
|
1474
1734
|
"items-center",
|
|
1475
1735
|
i("xs", "px"),
|
|
1476
1736
|
i("xs", "pt"),
|
|
1477
1737
|
"border-b-2",
|
|
1478
1738
|
"border-transparent",
|
|
1479
|
-
|
|
1480
|
-
|
|
1739
|
+
S("bodySmall"),
|
|
1740
|
+
O("label"),
|
|
1481
1741
|
"transition-colors",
|
|
1482
1742
|
"text-fg-secondary",
|
|
1483
1743
|
"hover:border-line-emphasis",
|
|
@@ -1486,37 +1746,37 @@ function Be(s) {
|
|
|
1486
1746
|
children: p.label
|
|
1487
1747
|
}
|
|
1488
1748
|
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
|
|
1489
|
-
] },
|
|
1749
|
+
] }, x);
|
|
1490
1750
|
})
|
|
1491
1751
|
}
|
|
1492
1752
|
) }));
|
|
1493
1753
|
}
|
|
1494
|
-
function
|
|
1495
|
-
var
|
|
1754
|
+
function ia(t) {
|
|
1755
|
+
var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
|
|
1496
1756
|
return /* @__PURE__ */ l(
|
|
1497
1757
|
"div",
|
|
1498
|
-
y(
|
|
1499
|
-
className:
|
|
1758
|
+
y(u({
|
|
1759
|
+
className: s(
|
|
1500
1760
|
"grid items-start",
|
|
1501
1761
|
i("1.5", "gap"),
|
|
1502
1762
|
i("base", "mb"),
|
|
1503
1763
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1504
1764
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1505
|
-
|
|
1765
|
+
a
|
|
1506
1766
|
)
|
|
1507
1767
|
}, r), {
|
|
1508
1768
|
children: e
|
|
1509
1769
|
})
|
|
1510
1770
|
);
|
|
1511
1771
|
}
|
|
1512
|
-
function
|
|
1772
|
+
function la(c) {
|
|
1513
1773
|
var d = c, {
|
|
1514
1774
|
children: e,
|
|
1515
|
-
icon:
|
|
1775
|
+
icon: a,
|
|
1516
1776
|
badge: r,
|
|
1517
|
-
as:
|
|
1518
|
-
className:
|
|
1519
|
-
} = d, o =
|
|
1777
|
+
as: t = "h2",
|
|
1778
|
+
className: n
|
|
1779
|
+
} = d, o = b(d, [
|
|
1520
1780
|
"children",
|
|
1521
1781
|
"icon",
|
|
1522
1782
|
"badge",
|
|
@@ -1524,70 +1784,70 @@ function Xe(c) {
|
|
|
1524
1784
|
"className"
|
|
1525
1785
|
]);
|
|
1526
1786
|
return /* @__PURE__ */ v(
|
|
1527
|
-
|
|
1528
|
-
y(
|
|
1529
|
-
className:
|
|
1787
|
+
t,
|
|
1788
|
+
y(u({
|
|
1789
|
+
className: s(
|
|
1530
1790
|
"text-base font-semibold text-fg-primary",
|
|
1531
1791
|
"flex items-center",
|
|
1532
1792
|
i("sm", "gap"),
|
|
1533
|
-
|
|
1793
|
+
n
|
|
1534
1794
|
)
|
|
1535
1795
|
}, o), {
|
|
1536
1796
|
children: [
|
|
1537
|
-
|
|
1797
|
+
a ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: a }) : null,
|
|
1538
1798
|
/* @__PURE__ */ l("span", { children: e }),
|
|
1539
1799
|
r ? /* @__PURE__ */ l("span", { className: "inline-flex", children: r }) : null
|
|
1540
1800
|
]
|
|
1541
1801
|
})
|
|
1542
1802
|
);
|
|
1543
1803
|
}
|
|
1544
|
-
function
|
|
1545
|
-
var
|
|
1804
|
+
function oa(t) {
|
|
1805
|
+
var n = t, {
|
|
1546
1806
|
children: e,
|
|
1547
|
-
className:
|
|
1548
|
-
} =
|
|
1807
|
+
className: a
|
|
1808
|
+
} = n, r = b(n, [
|
|
1549
1809
|
"children",
|
|
1550
1810
|
"className"
|
|
1551
1811
|
]);
|
|
1552
|
-
return /* @__PURE__ */ l("p", y(
|
|
1812
|
+
return /* @__PURE__ */ l("p", y(u({ className: s("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
1553
1813
|
}
|
|
1554
|
-
function
|
|
1555
|
-
var
|
|
1814
|
+
function ca(t) {
|
|
1815
|
+
var n = t, {
|
|
1556
1816
|
children: e,
|
|
1557
|
-
className:
|
|
1558
|
-
} =
|
|
1817
|
+
className: a
|
|
1818
|
+
} = n, r = b(n, [
|
|
1559
1819
|
"children",
|
|
1560
1820
|
"className"
|
|
1561
1821
|
]);
|
|
1562
1822
|
return /* @__PURE__ */ l(
|
|
1563
1823
|
"div",
|
|
1564
|
-
y(
|
|
1824
|
+
y(u({
|
|
1565
1825
|
"data-card-actions": "",
|
|
1566
|
-
className:
|
|
1826
|
+
className: s(
|
|
1567
1827
|
"flex items-center self-start",
|
|
1568
1828
|
i("sm", "gap"),
|
|
1569
|
-
|
|
1829
|
+
a
|
|
1570
1830
|
)
|
|
1571
1831
|
}, r), {
|
|
1572
1832
|
children: e
|
|
1573
1833
|
})
|
|
1574
1834
|
);
|
|
1575
1835
|
}
|
|
1576
|
-
function
|
|
1577
|
-
var
|
|
1578
|
-
return /* @__PURE__ */ l("div", y(
|
|
1836
|
+
function da(t) {
|
|
1837
|
+
var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
|
|
1838
|
+
return /* @__PURE__ */ l("div", y(u({ className: s(a) }, r), { children: e }));
|
|
1579
1839
|
}
|
|
1580
|
-
function
|
|
1581
|
-
var
|
|
1840
|
+
function ua(x) {
|
|
1841
|
+
var m = x, {
|
|
1582
1842
|
variant: e = "default",
|
|
1583
|
-
padding:
|
|
1843
|
+
padding: a = "medium",
|
|
1584
1844
|
className: r = "",
|
|
1585
|
-
onClick:
|
|
1586
|
-
"aria-label":
|
|
1845
|
+
onClick: t,
|
|
1846
|
+
"aria-label": n,
|
|
1587
1847
|
"aria-labelledby": o,
|
|
1588
1848
|
asSection: c = !1,
|
|
1589
1849
|
children: d
|
|
1590
|
-
} =
|
|
1850
|
+
} = m, p = b(m, [
|
|
1591
1851
|
"variant",
|
|
1592
1852
|
"padding",
|
|
1593
1853
|
"className",
|
|
@@ -1597,27 +1857,27 @@ function Ze(b) {
|
|
|
1597
1857
|
"asSection",
|
|
1598
1858
|
"children"
|
|
1599
1859
|
]);
|
|
1600
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !
|
|
1860
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !n && !o && console.warn(
|
|
1601
1861
|
"[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation."
|
|
1602
1862
|
);
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1863
|
+
const h = L(
|
|
1864
|
+
s(
|
|
1605
1865
|
"bg-surface-base",
|
|
1606
|
-
|
|
1866
|
+
$("lg"),
|
|
1607
1867
|
"border",
|
|
1608
1868
|
"border-line-default",
|
|
1609
|
-
|
|
1869
|
+
q("sm")
|
|
1610
1870
|
),
|
|
1611
1871
|
{
|
|
1612
1872
|
variants: {
|
|
1613
1873
|
variant: {
|
|
1614
1874
|
default: "",
|
|
1615
|
-
hover:
|
|
1616
|
-
`hover:${
|
|
1875
|
+
hover: s(
|
|
1876
|
+
`hover:${q("md")}`,
|
|
1617
1877
|
"transition-shadow",
|
|
1618
1878
|
"cursor-pointer"
|
|
1619
1879
|
),
|
|
1620
|
-
selected:
|
|
1880
|
+
selected: s("border-line-brand", q("md"))
|
|
1621
1881
|
},
|
|
1622
1882
|
padding: {
|
|
1623
1883
|
none: "",
|
|
@@ -1631,94 +1891,94 @@ function Ze(b) {
|
|
|
1631
1891
|
padding: "medium"
|
|
1632
1892
|
}
|
|
1633
1893
|
}
|
|
1634
|
-
),
|
|
1894
|
+
), f = t !== void 0, g = f ? "button" : void 0, w = f ? 0 : void 0, N = s(h({ variant: e, padding: a }), r), T = u({
|
|
1635
1895
|
className: N,
|
|
1636
|
-
role:
|
|
1896
|
+
role: g,
|
|
1637
1897
|
tabIndex: w,
|
|
1638
|
-
onClick:
|
|
1639
|
-
onKeyDown:
|
|
1640
|
-
|
|
1898
|
+
onClick: t,
|
|
1899
|
+
onKeyDown: f ? (z) => {
|
|
1900
|
+
f && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), t == null || t());
|
|
1641
1901
|
} : void 0,
|
|
1642
|
-
"aria-label":
|
|
1902
|
+
"aria-label": n,
|
|
1643
1903
|
"aria-labelledby": o
|
|
1644
1904
|
}, p);
|
|
1645
|
-
return c ? /* @__PURE__ */ l("section", y(
|
|
1905
|
+
return c ? /* @__PURE__ */ l("section", y(u({}, T), { children: d })) : /* @__PURE__ */ l("div", y(u({}, T), { children: d }));
|
|
1646
1906
|
}
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
function
|
|
1656
|
-
var
|
|
1907
|
+
const pe = M(ua);
|
|
1908
|
+
pe.displayName = "Card";
|
|
1909
|
+
const H = pe;
|
|
1910
|
+
H.Header = ia;
|
|
1911
|
+
H.Title = la;
|
|
1912
|
+
H.Subtitle = oa;
|
|
1913
|
+
H.Actions = ca;
|
|
1914
|
+
H.Body = da;
|
|
1915
|
+
function Da(t) {
|
|
1916
|
+
var n = t, {
|
|
1657
1917
|
children: e,
|
|
1658
|
-
className:
|
|
1659
|
-
} =
|
|
1918
|
+
className: a = ""
|
|
1919
|
+
} = n, r = b(n, [
|
|
1660
1920
|
"children",
|
|
1661
1921
|
"className"
|
|
1662
1922
|
]);
|
|
1663
1923
|
return /* @__PURE__ */ l(
|
|
1664
1924
|
"div",
|
|
1665
|
-
y(
|
|
1666
|
-
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${
|
|
1925
|
+
y(u({
|
|
1926
|
+
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
|
|
1667
1927
|
}, r), {
|
|
1668
1928
|
children: e
|
|
1669
1929
|
})
|
|
1670
1930
|
);
|
|
1671
1931
|
}
|
|
1672
|
-
function
|
|
1673
|
-
var
|
|
1932
|
+
function ja(t) {
|
|
1933
|
+
var n = t, {
|
|
1674
1934
|
children: e,
|
|
1675
|
-
className:
|
|
1676
|
-
} =
|
|
1935
|
+
className: a = ""
|
|
1936
|
+
} = n, r = b(n, [
|
|
1677
1937
|
"children",
|
|
1678
1938
|
"className"
|
|
1679
1939
|
]);
|
|
1680
1940
|
return /* @__PURE__ */ l(
|
|
1681
1941
|
"div",
|
|
1682
|
-
y(
|
|
1683
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${
|
|
1942
|
+
y(u({
|
|
1943
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
|
|
1684
1944
|
}, r), {
|
|
1685
1945
|
children: e
|
|
1686
1946
|
})
|
|
1687
1947
|
);
|
|
1688
1948
|
}
|
|
1689
|
-
function
|
|
1690
|
-
var
|
|
1949
|
+
function Ra(t) {
|
|
1950
|
+
var n = t, {
|
|
1691
1951
|
children: e,
|
|
1692
|
-
className:
|
|
1693
|
-
} =
|
|
1952
|
+
className: a = ""
|
|
1953
|
+
} = n, r = b(n, [
|
|
1694
1954
|
"children",
|
|
1695
1955
|
"className"
|
|
1696
1956
|
]);
|
|
1697
1957
|
return /* @__PURE__ */ l(
|
|
1698
1958
|
"div",
|
|
1699
|
-
y(
|
|
1959
|
+
y(u({
|
|
1700
1960
|
className: `
|
|
1701
1961
|
${i("lg", "p")}
|
|
1702
1962
|
border-b
|
|
1703
1963
|
border-line-default
|
|
1704
|
-
${
|
|
1964
|
+
${a}
|
|
1705
1965
|
`
|
|
1706
1966
|
}, r), {
|
|
1707
1967
|
children: e
|
|
1708
1968
|
})
|
|
1709
1969
|
);
|
|
1710
1970
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var
|
|
1971
|
+
function _a(t) {
|
|
1972
|
+
var n = t, {
|
|
1713
1973
|
children: e,
|
|
1714
|
-
className:
|
|
1715
|
-
} =
|
|
1974
|
+
className: a = ""
|
|
1975
|
+
} = n, r = b(n, [
|
|
1716
1976
|
"children",
|
|
1717
1977
|
"className"
|
|
1718
1978
|
]);
|
|
1719
1979
|
return /* @__PURE__ */ l(
|
|
1720
1980
|
"div",
|
|
1721
|
-
y(
|
|
1981
|
+
y(u({
|
|
1722
1982
|
className: `
|
|
1723
1983
|
${i("lg", "p")}
|
|
1724
1984
|
border-t
|
|
@@ -1726,38 +1986,38 @@ function Sa(a) {
|
|
|
1726
1986
|
flex
|
|
1727
1987
|
justify-end
|
|
1728
1988
|
${i("sm", "gap")}
|
|
1729
|
-
${
|
|
1989
|
+
${a}
|
|
1730
1990
|
`
|
|
1731
1991
|
}, r), {
|
|
1732
1992
|
children: e
|
|
1733
1993
|
})
|
|
1734
1994
|
);
|
|
1735
1995
|
}
|
|
1736
|
-
function
|
|
1996
|
+
function Oa(o) {
|
|
1737
1997
|
var c = o, {
|
|
1738
1998
|
label: e,
|
|
1739
|
-
children:
|
|
1999
|
+
children: a,
|
|
1740
2000
|
wrap: r = !0,
|
|
1741
|
-
className:
|
|
1742
|
-
} = c,
|
|
2001
|
+
className: t
|
|
2002
|
+
} = c, n = b(c, [
|
|
1743
2003
|
"label",
|
|
1744
2004
|
"children",
|
|
1745
2005
|
"wrap",
|
|
1746
2006
|
"className"
|
|
1747
2007
|
]);
|
|
1748
|
-
const p = !(
|
|
2008
|
+
const p = !(n["aria-label"] != null || n["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
1749
2009
|
return /* @__PURE__ */ v(
|
|
1750
2010
|
"div",
|
|
1751
|
-
y(
|
|
2011
|
+
y(u({
|
|
1752
2012
|
role: "group",
|
|
1753
2013
|
"aria-label": p,
|
|
1754
|
-
className:
|
|
2014
|
+
className: s(
|
|
1755
2015
|
"flex items-center",
|
|
1756
2016
|
r ? "flex-wrap" : "flex-nowrap",
|
|
1757
2017
|
i("sm", "gap"),
|
|
1758
|
-
|
|
2018
|
+
t
|
|
1759
2019
|
)
|
|
1760
|
-
},
|
|
2020
|
+
}, n), {
|
|
1761
2021
|
children: [
|
|
1762
2022
|
e ? (
|
|
1763
2023
|
// shrink-0 keeps the label a stable leading unit: in the wrapping
|
|
@@ -1765,45 +2025,45 @@ function $a(o) {
|
|
|
1765
2025
|
// chips overflow — it stays on one line and the chips wrap around it.
|
|
1766
2026
|
/* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
|
|
1767
2027
|
) : null,
|
|
1768
|
-
|
|
2028
|
+
a
|
|
1769
2029
|
]
|
|
1770
2030
|
})
|
|
1771
2031
|
);
|
|
1772
2032
|
}
|
|
1773
|
-
function
|
|
2033
|
+
function Ma({ children: e, className: a }) {
|
|
1774
2034
|
return /* @__PURE__ */ l(
|
|
1775
2035
|
"div",
|
|
1776
2036
|
{
|
|
1777
|
-
className:
|
|
2037
|
+
className: s(
|
|
1778
2038
|
"flex-shrink-0 flex items-center",
|
|
1779
2039
|
i("sm", "gap"),
|
|
1780
|
-
|
|
2040
|
+
a
|
|
1781
2041
|
),
|
|
1782
2042
|
children: e
|
|
1783
2043
|
}
|
|
1784
2044
|
);
|
|
1785
2045
|
}
|
|
1786
|
-
function
|
|
2046
|
+
function Ha({
|
|
1787
2047
|
children: e,
|
|
1788
|
-
className:
|
|
2048
|
+
className: a
|
|
1789
2049
|
}) {
|
|
1790
2050
|
return /* @__PURE__ */ l(
|
|
1791
2051
|
"nav",
|
|
1792
2052
|
{
|
|
1793
|
-
className:
|
|
2053
|
+
className: s(
|
|
1794
2054
|
"flex-1 flex items-center justify-center",
|
|
1795
2055
|
i("base", "gap"),
|
|
1796
2056
|
"hidden md:flex",
|
|
1797
2057
|
// Hidden on mobile, visible on desktop
|
|
1798
|
-
|
|
2058
|
+
a
|
|
1799
2059
|
),
|
|
1800
2060
|
"aria-label": "Main navigation",
|
|
1801
2061
|
children: e
|
|
1802
2062
|
}
|
|
1803
2063
|
);
|
|
1804
2064
|
}
|
|
1805
|
-
const
|
|
1806
|
-
|
|
2065
|
+
const fa = L(
|
|
2066
|
+
s(
|
|
1807
2067
|
"w-full flex flex-col",
|
|
1808
2068
|
i("2xl", "py"),
|
|
1809
2069
|
// 40px vertical breathing room
|
|
@@ -1817,7 +2077,7 @@ const Je = V(
|
|
|
1817
2077
|
variant: {
|
|
1818
2078
|
plain: "",
|
|
1819
2079
|
gradient: "hero-gradient",
|
|
1820
|
-
"gradient-glow":
|
|
2080
|
+
"gradient-glow": s("hero-gradient", "hero-glow")
|
|
1821
2081
|
},
|
|
1822
2082
|
align: {
|
|
1823
2083
|
start: "text-left",
|
|
@@ -1829,27 +2089,27 @@ const Je = V(
|
|
|
1829
2089
|
align: "start"
|
|
1830
2090
|
}
|
|
1831
2091
|
}
|
|
1832
|
-
),
|
|
2092
|
+
), pa = {
|
|
1833
2093
|
start: "items-start",
|
|
1834
2094
|
center: "items-center"
|
|
1835
|
-
},
|
|
2095
|
+
}, ma = {
|
|
1836
2096
|
start: "justify-start",
|
|
1837
2097
|
center: "justify-center"
|
|
1838
|
-
},
|
|
1839
|
-
function(w,
|
|
2098
|
+
}, ga = j(
|
|
2099
|
+
function(w, g) {
|
|
1840
2100
|
var N = w, {
|
|
1841
|
-
kicker:
|
|
2101
|
+
kicker: a,
|
|
1842
2102
|
title: r,
|
|
1843
|
-
description:
|
|
1844
|
-
actions:
|
|
2103
|
+
description: t,
|
|
2104
|
+
actions: n,
|
|
1845
2105
|
kpis: o,
|
|
1846
2106
|
meta: c,
|
|
1847
2107
|
variant: d = "plain",
|
|
1848
2108
|
align: p = "start",
|
|
1849
|
-
className:
|
|
1850
|
-
"aria-label":
|
|
1851
|
-
"aria-labelledby":
|
|
1852
|
-
} = N,
|
|
2109
|
+
className: x,
|
|
2110
|
+
"aria-label": m,
|
|
2111
|
+
"aria-labelledby": h
|
|
2112
|
+
} = N, f = b(N, [
|
|
1853
2113
|
"kicker",
|
|
1854
2114
|
"title",
|
|
1855
2115
|
"description",
|
|
@@ -1862,28 +2122,28 @@ const Je = V(
|
|
|
1862
2122
|
"aria-label",
|
|
1863
2123
|
"aria-labelledby"
|
|
1864
2124
|
]);
|
|
1865
|
-
const
|
|
1866
|
-
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !
|
|
2125
|
+
const E = m != null || h != null, T = m != null ? m : typeof r == "string" ? r : void 0;
|
|
2126
|
+
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !E && typeof r != "string" && console.warn(
|
|
1867
2127
|
"[HeroSection] A non-string `title` was provided without `aria-label` or `aria-labelledby`. The hero <section> landmark will have no accessible name. Pass `aria-label`, or set `aria-labelledby` to your title's id."
|
|
1868
2128
|
), /* @__PURE__ */ v(
|
|
1869
2129
|
"section",
|
|
1870
|
-
y(
|
|
1871
|
-
ref:
|
|
1872
|
-
className:
|
|
2130
|
+
y(u({
|
|
2131
|
+
ref: g,
|
|
2132
|
+
className: s(fa({ variant: d, align: p }), x),
|
|
1873
2133
|
"aria-label": T,
|
|
1874
|
-
"aria-labelledby":
|
|
1875
|
-
},
|
|
2134
|
+
"aria-labelledby": h
|
|
2135
|
+
}, f), {
|
|
1876
2136
|
children: [
|
|
1877
2137
|
/* @__PURE__ */ v(
|
|
1878
2138
|
"div",
|
|
1879
2139
|
{
|
|
1880
|
-
className:
|
|
2140
|
+
className: s(
|
|
1881
2141
|
"flex flex-col",
|
|
1882
2142
|
i("md", "gap-y"),
|
|
1883
|
-
|
|
2143
|
+
pa[p]
|
|
1884
2144
|
),
|
|
1885
2145
|
children: [
|
|
1886
|
-
|
|
2146
|
+
a ? /* @__PURE__ */ l(
|
|
1887
2147
|
_,
|
|
1888
2148
|
{
|
|
1889
2149
|
as: "span",
|
|
@@ -1891,7 +2151,7 @@ const Je = V(
|
|
|
1891
2151
|
colorRole: "primary",
|
|
1892
2152
|
colorShade: "DEFAULT",
|
|
1893
2153
|
className: "text-sm font-semibold tracking-wide uppercase",
|
|
1894
|
-
children:
|
|
2154
|
+
children: a
|
|
1895
2155
|
}
|
|
1896
2156
|
) : null,
|
|
1897
2157
|
/* @__PURE__ */ l(
|
|
@@ -1903,7 +2163,7 @@ const Je = V(
|
|
|
1903
2163
|
children: r
|
|
1904
2164
|
}
|
|
1905
2165
|
),
|
|
1906
|
-
|
|
2166
|
+
t ? /* @__PURE__ */ l(
|
|
1907
2167
|
_,
|
|
1908
2168
|
{
|
|
1909
2169
|
as: "p",
|
|
@@ -1911,21 +2171,21 @@ const Je = V(
|
|
|
1911
2171
|
colorRole: "neutral",
|
|
1912
2172
|
colorShade: "DEFAULT",
|
|
1913
2173
|
className: "max-w-2xl text-base leading-relaxed sm:text-lg",
|
|
1914
|
-
children:
|
|
2174
|
+
children: t
|
|
1915
2175
|
}
|
|
1916
2176
|
) : null
|
|
1917
2177
|
]
|
|
1918
2178
|
}
|
|
1919
2179
|
),
|
|
1920
|
-
|
|
2180
|
+
n ? /* @__PURE__ */ l(
|
|
1921
2181
|
"div",
|
|
1922
2182
|
{
|
|
1923
|
-
className:
|
|
2183
|
+
className: s(
|
|
1924
2184
|
"flex flex-wrap",
|
|
1925
2185
|
i("sm", "gap"),
|
|
1926
|
-
|
|
2186
|
+
ma[p]
|
|
1927
2187
|
),
|
|
1928
|
-
children:
|
|
2188
|
+
children: n
|
|
1929
2189
|
}
|
|
1930
2190
|
) : null,
|
|
1931
2191
|
o ? /* @__PURE__ */ l("div", { className: "w-full", children: o }) : null,
|
|
@@ -1945,16 +2205,16 @@ const Je = V(
|
|
|
1945
2205
|
);
|
|
1946
2206
|
}
|
|
1947
2207
|
);
|
|
1948
|
-
|
|
1949
|
-
function
|
|
1950
|
-
var
|
|
2208
|
+
ga.displayName = "HeroSection";
|
|
2209
|
+
function Pa(r) {
|
|
2210
|
+
var t = r, {
|
|
1951
2211
|
className: e = ""
|
|
1952
|
-
} =
|
|
2212
|
+
} = t, a = b(t, [
|
|
1953
2213
|
"className"
|
|
1954
2214
|
]);
|
|
1955
2215
|
return /* @__PURE__ */ l(
|
|
1956
2216
|
"div",
|
|
1957
|
-
|
|
2217
|
+
u({
|
|
1958
2218
|
role: "separator",
|
|
1959
2219
|
className: `
|
|
1960
2220
|
h-px
|
|
@@ -1962,28 +2222,28 @@ function Ea(r) {
|
|
|
1962
2222
|
${i("sm", "my")}
|
|
1963
2223
|
${e}
|
|
1964
2224
|
`
|
|
1965
|
-
},
|
|
2225
|
+
}, a)
|
|
1966
2226
|
);
|
|
1967
2227
|
}
|
|
1968
|
-
function
|
|
1969
|
-
var
|
|
2228
|
+
function Wa(t) {
|
|
2229
|
+
var n = t, {
|
|
1970
2230
|
orientation: e = "horizontal",
|
|
1971
|
-
className:
|
|
1972
|
-
} =
|
|
2231
|
+
className: a = ""
|
|
2232
|
+
} = n, r = b(n, [
|
|
1973
2233
|
"orientation",
|
|
1974
2234
|
"className"
|
|
1975
2235
|
]);
|
|
1976
2236
|
return e === "vertical" ? /* @__PURE__ */ l(
|
|
1977
2237
|
"div",
|
|
1978
|
-
|
|
1979
|
-
className:
|
|
2238
|
+
u({
|
|
2239
|
+
className: s("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
1980
2240
|
role: "separator",
|
|
1981
2241
|
"aria-orientation": "vertical"
|
|
1982
2242
|
}, r)
|
|
1983
2243
|
) : /* @__PURE__ */ l(
|
|
1984
2244
|
"div",
|
|
1985
|
-
|
|
1986
|
-
className:
|
|
2245
|
+
u({
|
|
2246
|
+
className: s(
|
|
1987
2247
|
"w-full",
|
|
1988
2248
|
"h-px",
|
|
1989
2249
|
"bg-line-default",
|
|
@@ -1991,7 +2251,7 @@ function Ta(a) {
|
|
|
1991
2251
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
1992
2252
|
"flex-shrink-0",
|
|
1993
2253
|
// Prevenir que separator encolha
|
|
1994
|
-
|
|
2254
|
+
a
|
|
1995
2255
|
),
|
|
1996
2256
|
role: "separator",
|
|
1997
2257
|
"aria-orientation": "horizontal",
|
|
@@ -2003,14 +2263,14 @@ function Ta(a) {
|
|
|
2003
2263
|
}, r)
|
|
2004
2264
|
);
|
|
2005
2265
|
}
|
|
2006
|
-
const
|
|
2266
|
+
const xa = L(
|
|
2007
2267
|
// Base classes
|
|
2008
|
-
|
|
2268
|
+
s("w-full", "flex", "flex-col", i("sm", "gap")),
|
|
2009
2269
|
{
|
|
2010
2270
|
variants: {
|
|
2011
2271
|
variant: {
|
|
2012
|
-
default:
|
|
2013
|
-
compact:
|
|
2272
|
+
default: s(i("base", "mb")),
|
|
2273
|
+
compact: s(i("sm", "mb"))
|
|
2014
2274
|
}
|
|
2015
2275
|
},
|
|
2016
2276
|
defaultVariants: {
|
|
@@ -2018,15 +2278,15 @@ const ta = V(
|
|
|
2018
2278
|
}
|
|
2019
2279
|
}
|
|
2020
2280
|
);
|
|
2021
|
-
function
|
|
2281
|
+
function Ba(d) {
|
|
2022
2282
|
var p = d, {
|
|
2023
2283
|
title: e,
|
|
2024
|
-
description:
|
|
2284
|
+
description: a,
|
|
2025
2285
|
breadcrumb: r,
|
|
2026
|
-
actions:
|
|
2027
|
-
variant:
|
|
2286
|
+
actions: t,
|
|
2287
|
+
variant: n = "default",
|
|
2028
2288
|
className: o
|
|
2029
|
-
} = p, c =
|
|
2289
|
+
} = p, c = b(p, [
|
|
2030
2290
|
"title",
|
|
2031
2291
|
"description",
|
|
2032
2292
|
"breadcrumb",
|
|
@@ -2034,8 +2294,8 @@ function La(d) {
|
|
|
2034
2294
|
"variant",
|
|
2035
2295
|
"className"
|
|
2036
2296
|
]);
|
|
2037
|
-
return /* @__PURE__ */ v("div", y(
|
|
2038
|
-
r && r.length > 0 && /* @__PURE__ */ l(
|
|
2297
|
+
return /* @__PURE__ */ v("div", y(u({ className: s(xa({ variant: n }), o) }, c), { children: [
|
|
2298
|
+
r && r.length > 0 && /* @__PURE__ */ l(sa, { items: r }),
|
|
2039
2299
|
/* @__PURE__ */ v(
|
|
2040
2300
|
"div",
|
|
2041
2301
|
{
|
|
@@ -2051,13 +2311,13 @@ function La(d) {
|
|
|
2051
2311
|
children: e
|
|
2052
2312
|
}
|
|
2053
2313
|
),
|
|
2054
|
-
|
|
2314
|
+
a && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2055
2315
|
] }),
|
|
2056
|
-
|
|
2316
|
+
t && /* @__PURE__ */ l(
|
|
2057
2317
|
"div",
|
|
2058
2318
|
{
|
|
2059
2319
|
className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
|
|
2060
|
-
children:
|
|
2320
|
+
children: t
|
|
2061
2321
|
}
|
|
2062
2322
|
)
|
|
2063
2323
|
]
|
|
@@ -2065,25 +2325,25 @@ function La(d) {
|
|
|
2065
2325
|
)
|
|
2066
2326
|
] }));
|
|
2067
2327
|
}
|
|
2068
|
-
const
|
|
2328
|
+
const ba = {
|
|
2069
2329
|
start: "items-start text-left",
|
|
2070
2330
|
center: "items-center text-center"
|
|
2071
|
-
},
|
|
2331
|
+
}, ha = {
|
|
2072
2332
|
neutral: "text-fg-tertiary",
|
|
2073
2333
|
success: "text-fg-success",
|
|
2074
2334
|
warning: "text-fg-warning",
|
|
2075
2335
|
error: "text-fg-error"
|
|
2076
2336
|
};
|
|
2077
|
-
function
|
|
2078
|
-
var
|
|
2337
|
+
function Ia(p) {
|
|
2338
|
+
var x = p, {
|
|
2079
2339
|
value: e,
|
|
2080
|
-
label:
|
|
2340
|
+
label: a,
|
|
2081
2341
|
hint: r,
|
|
2082
|
-
icon:
|
|
2083
|
-
align:
|
|
2342
|
+
icon: t,
|
|
2343
|
+
align: n = "start",
|
|
2084
2344
|
tone: o = "neutral",
|
|
2085
2345
|
className: c
|
|
2086
|
-
} =
|
|
2346
|
+
} = x, d = b(x, [
|
|
2087
2347
|
"value",
|
|
2088
2348
|
"label",
|
|
2089
2349
|
"hint",
|
|
@@ -2092,21 +2352,21 @@ function Aa(p) {
|
|
|
2092
2352
|
"tone",
|
|
2093
2353
|
"className"
|
|
2094
2354
|
]);
|
|
2095
|
-
const
|
|
2355
|
+
const m = e == null;
|
|
2096
2356
|
return /* @__PURE__ */ v(
|
|
2097
2357
|
"div",
|
|
2098
|
-
y(
|
|
2099
|
-
className:
|
|
2358
|
+
y(u({
|
|
2359
|
+
className: s(
|
|
2100
2360
|
"bg-surface-base flex-1 flex flex-col",
|
|
2101
2361
|
i("base", "p"),
|
|
2102
2362
|
i("xs", "gap-y"),
|
|
2103
|
-
|
|
2363
|
+
ba[n],
|
|
2104
2364
|
c
|
|
2105
2365
|
)
|
|
2106
2366
|
}, d), {
|
|
2107
2367
|
children: [
|
|
2108
|
-
|
|
2109
|
-
|
|
2368
|
+
t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
|
|
2369
|
+
m ? /* @__PURE__ */ l(
|
|
2110
2370
|
"span",
|
|
2111
2371
|
{
|
|
2112
2372
|
"aria-label": "No data",
|
|
@@ -2114,24 +2374,24 @@ function Aa(p) {
|
|
|
2114
2374
|
children: "—"
|
|
2115
2375
|
}
|
|
2116
2376
|
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
2117
|
-
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children:
|
|
2118
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
2377
|
+
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
2378
|
+
r ? /* @__PURE__ */ l("span", { className: s("text-xs", ha[o]), children: r }) : null
|
|
2119
2379
|
]
|
|
2120
2380
|
})
|
|
2121
2381
|
);
|
|
2122
2382
|
}
|
|
2123
|
-
const
|
|
2383
|
+
const ya = {
|
|
2124
2384
|
2: "md:grid-cols-2",
|
|
2125
2385
|
3: "md:grid-cols-3",
|
|
2126
2386
|
4: "md:grid-cols-4"
|
|
2127
2387
|
};
|
|
2128
|
-
function
|
|
2388
|
+
function Ua(o) {
|
|
2129
2389
|
var c = o, {
|
|
2130
2390
|
layout: e = "grid",
|
|
2131
|
-
cols:
|
|
2391
|
+
cols: a = 4,
|
|
2132
2392
|
className: r,
|
|
2133
|
-
children:
|
|
2134
|
-
} = c,
|
|
2393
|
+
children: t
|
|
2394
|
+
} = c, n = b(c, [
|
|
2135
2395
|
"layout",
|
|
2136
2396
|
"cols",
|
|
2137
2397
|
"className",
|
|
@@ -2140,42 +2400,42 @@ function Va(o) {
|
|
|
2140
2400
|
const d = e === "grid";
|
|
2141
2401
|
return /* @__PURE__ */ l(
|
|
2142
2402
|
"div",
|
|
2143
|
-
y(
|
|
2144
|
-
className:
|
|
2403
|
+
y(u({
|
|
2404
|
+
className: s(
|
|
2145
2405
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2146
|
-
|
|
2147
|
-
d ? `grid grid-cols-2 ${
|
|
2406
|
+
$("lg"),
|
|
2407
|
+
d ? `grid grid-cols-2 ${ya[a]}` : "flex",
|
|
2148
2408
|
r
|
|
2149
2409
|
)
|
|
2150
|
-
},
|
|
2151
|
-
children:
|
|
2410
|
+
}, n), {
|
|
2411
|
+
children: t
|
|
2152
2412
|
})
|
|
2153
2413
|
);
|
|
2154
2414
|
}
|
|
2155
|
-
function
|
|
2156
|
-
var o =
|
|
2157
|
-
const c = e.key in
|
|
2415
|
+
function Ka(n) {
|
|
2416
|
+
var o = n, { column: e, row: a, className: r = "" } = o, t = b(o, ["column", "row", "className"]);
|
|
2417
|
+
const c = e.key in a ? a[e.key] : void 0;
|
|
2158
2418
|
return /* @__PURE__ */ l(
|
|
2159
2419
|
"td",
|
|
2160
|
-
y(
|
|
2420
|
+
y(u({
|
|
2161
2421
|
className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2162
|
-
},
|
|
2163
|
-
children: e.render ? e.render(c,
|
|
2422
|
+
}, t), {
|
|
2423
|
+
children: e.render ? e.render(c, a) : String(c != null ? c : "")
|
|
2164
2424
|
})
|
|
2165
2425
|
);
|
|
2166
2426
|
}
|
|
2167
|
-
const
|
|
2427
|
+
const va = L(s("flex items-center", "border-b"), {
|
|
2168
2428
|
variants: {
|
|
2169
2429
|
variant: {
|
|
2170
|
-
default:
|
|
2171
|
-
sub:
|
|
2430
|
+
default: s("border-line-default", i("base", "gap-x")),
|
|
2431
|
+
sub: s("border-line-muted", i("sm", "gap-x"))
|
|
2172
2432
|
}
|
|
2173
2433
|
},
|
|
2174
2434
|
defaultVariants: {
|
|
2175
2435
|
variant: "default"
|
|
2176
2436
|
}
|
|
2177
|
-
}),
|
|
2178
|
-
|
|
2437
|
+
}), wa = L(
|
|
2438
|
+
s(
|
|
2179
2439
|
"relative -mb-px inline-flex items-center",
|
|
2180
2440
|
i("xs", "gap-x"),
|
|
2181
2441
|
"border-b-2 border-transparent",
|
|
@@ -2184,25 +2444,25 @@ const ia = V(n("flex items-center", "border-b"), {
|
|
|
2184
2444
|
"focus-visible:ring-2",
|
|
2185
2445
|
"focus-visible:ring-line-focus",
|
|
2186
2446
|
"focus-visible:ring-offset-2",
|
|
2187
|
-
|
|
2447
|
+
$("sm")
|
|
2188
2448
|
),
|
|
2189
2449
|
{
|
|
2190
2450
|
variants: {
|
|
2191
2451
|
variant: {
|
|
2192
|
-
default:
|
|
2452
|
+
default: s(
|
|
2193
2453
|
i("sm", "px"),
|
|
2194
2454
|
i("sm", "py"),
|
|
2195
|
-
|
|
2455
|
+
S("body")
|
|
2196
2456
|
),
|
|
2197
|
-
sub:
|
|
2457
|
+
sub: s(
|
|
2198
2458
|
i("sm", "px"),
|
|
2199
2459
|
i("xs", "py"),
|
|
2200
|
-
|
|
2460
|
+
S("bodySmall")
|
|
2201
2461
|
)
|
|
2202
2462
|
},
|
|
2203
2463
|
active: {
|
|
2204
|
-
true:
|
|
2205
|
-
false:
|
|
2464
|
+
true: s("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
|
|
2465
|
+
false: s(
|
|
2206
2466
|
"text-fg-secondary",
|
|
2207
2467
|
"hover:text-fg-primary",
|
|
2208
2468
|
"hover:border-line-muted"
|
|
@@ -2214,7 +2474,7 @@ const ia = V(n("flex items-center", "border-b"), {
|
|
|
2214
2474
|
{
|
|
2215
2475
|
variant: "sub",
|
|
2216
2476
|
active: !1,
|
|
2217
|
-
class:
|
|
2477
|
+
class: s("text-fg-tertiary", "hover:text-fg-secondary")
|
|
2218
2478
|
}
|
|
2219
2479
|
],
|
|
2220
2480
|
defaultVariants: {
|
|
@@ -2222,21 +2482,21 @@ const ia = V(n("flex items-center", "border-b"), {
|
|
|
2222
2482
|
active: !1
|
|
2223
2483
|
}
|
|
2224
2484
|
}
|
|
2225
|
-
),
|
|
2485
|
+
), Na = s(
|
|
2226
2486
|
"inline-flex items-center justify-center",
|
|
2227
|
-
|
|
2487
|
+
$("full"),
|
|
2228
2488
|
i("xs", "px"),
|
|
2229
2489
|
"bg-surface-muted text-fg-secondary text-xs"
|
|
2230
|
-
),
|
|
2231
|
-
function(
|
|
2232
|
-
var
|
|
2233
|
-
items:
|
|
2490
|
+
), Sa = j(
|
|
2491
|
+
function(x, p) {
|
|
2492
|
+
var m = x, {
|
|
2493
|
+
items: a,
|
|
2234
2494
|
variant: r = "default",
|
|
2235
|
-
linkComponent:
|
|
2236
|
-
className:
|
|
2495
|
+
linkComponent: t,
|
|
2496
|
+
className: n,
|
|
2237
2497
|
"aria-label": o,
|
|
2238
2498
|
"aria-labelledby": c
|
|
2239
|
-
} =
|
|
2499
|
+
} = m, d = b(m, [
|
|
2240
2500
|
"items",
|
|
2241
2501
|
"variant",
|
|
2242
2502
|
"linkComponent",
|
|
@@ -2247,57 +2507,57 @@ const ia = V(n("flex items-center", "border-b"), {
|
|
|
2247
2507
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !c && console.warn(
|
|
2248
2508
|
'[TabsAsLinks] renders a <nav> landmark and should have an accessible name. Pass `aria-label` (e.g. "Painel") or `aria-labelledby` — multiple unnamed navs on a page are ambiguous to screen readers.'
|
|
2249
2509
|
);
|
|
2250
|
-
const
|
|
2510
|
+
const h = t != null ? t : "a";
|
|
2251
2511
|
return /* @__PURE__ */ l(
|
|
2252
2512
|
"nav",
|
|
2253
|
-
y(
|
|
2513
|
+
y(u({
|
|
2254
2514
|
ref: p,
|
|
2255
|
-
className:
|
|
2515
|
+
className: s(va({ variant: r }), n),
|
|
2256
2516
|
"aria-label": o,
|
|
2257
2517
|
"aria-labelledby": c
|
|
2258
2518
|
}, d), {
|
|
2259
|
-
children:
|
|
2260
|
-
|
|
2519
|
+
children: a.map((f, g) => /* @__PURE__ */ v(
|
|
2520
|
+
h,
|
|
2261
2521
|
{
|
|
2262
|
-
href:
|
|
2263
|
-
"aria-current":
|
|
2264
|
-
"data-active":
|
|
2265
|
-
className:
|
|
2522
|
+
href: f.href,
|
|
2523
|
+
"aria-current": f.active ? "page" : void 0,
|
|
2524
|
+
"data-active": f.active ? "true" : void 0,
|
|
2525
|
+
className: wa({ variant: r, active: !!f.active }),
|
|
2266
2526
|
children: [
|
|
2267
|
-
|
|
2268
|
-
/* @__PURE__ */ l("span", { children:
|
|
2269
|
-
|
|
2527
|
+
f.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: f.icon }) : null,
|
|
2528
|
+
/* @__PURE__ */ l("span", { children: f.label }),
|
|
2529
|
+
f.count !== void 0 ? /* @__PURE__ */ l("span", { className: Na, children: f.count }) : null
|
|
2270
2530
|
]
|
|
2271
2531
|
},
|
|
2272
|
-
|
|
2532
|
+
f.href || g
|
|
2273
2533
|
))
|
|
2274
2534
|
})
|
|
2275
2535
|
);
|
|
2276
2536
|
}
|
|
2277
2537
|
);
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2538
|
+
Sa.displayName = "TabsAsLinks";
|
|
2539
|
+
function Xa({
|
|
2280
2540
|
items: e,
|
|
2281
|
-
orientation:
|
|
2541
|
+
orientation: a = "vertical",
|
|
2282
2542
|
className: r = ""
|
|
2283
2543
|
}) {
|
|
2284
|
-
return
|
|
2285
|
-
const o =
|
|
2544
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, n) => {
|
|
2545
|
+
const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
|
|
2286
2546
|
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2287
2547
|
/* @__PURE__ */ l(
|
|
2288
2548
|
"div",
|
|
2289
|
-
y(
|
|
2549
|
+
y(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2290
2550
|
className: `
|
|
2291
2551
|
flex
|
|
2292
2552
|
items-center
|
|
2293
2553
|
justify-center
|
|
2294
2554
|
w-10
|
|
2295
2555
|
h-10
|
|
2296
|
-
${
|
|
2556
|
+
${$("full")}
|
|
2297
2557
|
border-2
|
|
2298
2558
|
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2299
2559
|
`,
|
|
2300
|
-
children:
|
|
2560
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
|
|
2301
2561
|
})
|
|
2302
2562
|
),
|
|
2303
2563
|
!c && /* @__PURE__ */ l(
|
|
@@ -2316,28 +2576,28 @@ function Ra({
|
|
|
2316
2576
|
{
|
|
2317
2577
|
className: `${i("base", "mt")} text-center ${i("base", "px")}`,
|
|
2318
2578
|
children: [
|
|
2319
|
-
|
|
2579
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2320
2580
|
"p",
|
|
2321
2581
|
{
|
|
2322
2582
|
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2323
|
-
children:
|
|
2583
|
+
children: t.timestamp
|
|
2324
2584
|
}
|
|
2325
2585
|
),
|
|
2326
|
-
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children:
|
|
2327
|
-
|
|
2586
|
+
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
|
|
2587
|
+
t.description && /* @__PURE__ */ l(
|
|
2328
2588
|
"p",
|
|
2329
2589
|
{
|
|
2330
2590
|
className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
|
|
2331
|
-
children:
|
|
2591
|
+
children: t.description
|
|
2332
2592
|
}
|
|
2333
2593
|
),
|
|
2334
|
-
|
|
2594
|
+
t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
|
|
2335
2595
|
]
|
|
2336
2596
|
}
|
|
2337
2597
|
)
|
|
2338
|
-
] }) },
|
|
2339
|
-
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((
|
|
2340
|
-
const o =
|
|
2598
|
+
] }) }, t.id);
|
|
2599
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, n) => {
|
|
2600
|
+
const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
|
|
2341
2601
|
return /* @__PURE__ */ v(
|
|
2342
2602
|
"div",
|
|
2343
2603
|
{
|
|
@@ -2346,18 +2606,18 @@ function Ra({
|
|
|
2346
2606
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
|
|
2347
2607
|
/* @__PURE__ */ l(
|
|
2348
2608
|
"div",
|
|
2349
|
-
y(
|
|
2609
|
+
y(u({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2350
2610
|
className: `
|
|
2351
2611
|
flex
|
|
2352
2612
|
items-center
|
|
2353
2613
|
justify-center
|
|
2354
2614
|
w-10
|
|
2355
2615
|
h-10
|
|
2356
|
-
${
|
|
2616
|
+
${$("full")}
|
|
2357
2617
|
border-2
|
|
2358
2618
|
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2359
2619
|
`,
|
|
2360
|
-
children:
|
|
2620
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
|
|
2361
2621
|
})
|
|
2362
2622
|
),
|
|
2363
2623
|
!c && /* @__PURE__ */ l(
|
|
@@ -2374,11 +2634,11 @@ function Ra({
|
|
|
2374
2634
|
)
|
|
2375
2635
|
] }),
|
|
2376
2636
|
/* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
|
|
2377
|
-
|
|
2637
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2378
2638
|
"p",
|
|
2379
2639
|
{
|
|
2380
2640
|
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2381
|
-
children:
|
|
2641
|
+
children: t.timestamp
|
|
2382
2642
|
}
|
|
2383
2643
|
),
|
|
2384
2644
|
/* @__PURE__ */ l(
|
|
@@ -2389,59 +2649,60 @@ function Ra({
|
|
|
2389
2649
|
font-semibold
|
|
2390
2650
|
${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
|
|
2391
2651
|
`,
|
|
2392
|
-
children:
|
|
2652
|
+
children: t.title
|
|
2393
2653
|
}
|
|
2394
2654
|
),
|
|
2395
|
-
|
|
2655
|
+
t.description && /* @__PURE__ */ l(
|
|
2396
2656
|
"p",
|
|
2397
2657
|
{
|
|
2398
2658
|
className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
|
|
2399
|
-
children:
|
|
2659
|
+
children: t.description
|
|
2400
2660
|
}
|
|
2401
2661
|
),
|
|
2402
|
-
|
|
2662
|
+
t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
|
|
2403
2663
|
] })
|
|
2404
2664
|
]
|
|
2405
2665
|
},
|
|
2406
|
-
|
|
2666
|
+
t.id
|
|
2407
2667
|
);
|
|
2408
2668
|
}) });
|
|
2409
2669
|
}
|
|
2410
2670
|
export {
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2671
|
+
Ee as Badge,
|
|
2672
|
+
sa as Breadcrumb,
|
|
2673
|
+
Be as Button,
|
|
2674
|
+
H as Card,
|
|
2675
|
+
ca as CardActions,
|
|
2676
|
+
da as CardBody,
|
|
2677
|
+
ia as CardHeader,
|
|
2678
|
+
oa as CardSubtitle,
|
|
2679
|
+
la as CardTitle,
|
|
2680
|
+
Ie as Chip,
|
|
2681
|
+
ra as Container,
|
|
2682
|
+
ja as DialogFooter,
|
|
2683
|
+
Da as DialogHeader,
|
|
2684
|
+
_a as DrawerFooter,
|
|
2685
|
+
Ra as DrawerHeader,
|
|
2686
|
+
La as ErrorMessage,
|
|
2687
|
+
Oa as FilterChips,
|
|
2688
|
+
Ma as HeaderActions,
|
|
2689
|
+
Ha as HeaderNavigation,
|
|
2690
|
+
ga as HeroSection,
|
|
2691
|
+
za as Info,
|
|
2692
|
+
Xe as Label,
|
|
2693
|
+
Pa as MenuSeparator,
|
|
2694
|
+
Wa as NavbarSeparator,
|
|
2695
|
+
Ba as PageHeader,
|
|
2696
|
+
Ye as Progress,
|
|
2697
|
+
Qe as Separator,
|
|
2698
|
+
Fa as Skeleton,
|
|
2699
|
+
fe as Spinner,
|
|
2700
|
+
na as Stack,
|
|
2701
|
+
Ia as Stat,
|
|
2702
|
+
Ua as StatGroup,
|
|
2703
|
+
Ka as TableCell,
|
|
2704
|
+
Sa as TabsAsLinks,
|
|
2444
2705
|
_ as Text,
|
|
2445
|
-
|
|
2706
|
+
Xa as Timeline
|
|
2446
2707
|
};
|
|
2447
2708
|
//# sourceMappingURL=index.js.map
|