burne-ui 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionParts.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionTypes.d.ts +4 -3
- package/dist/components/composite/Accordion/index.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +3 -2
- package/dist/components/composite/AlertDialog/index.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +5 -1
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +3 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/composite/Form/Form.d.ts +1 -1
- package/dist/components/composite/Form/formContext.d.ts +2 -1
- package/dist/components/composite/Form/formParts.d.ts +2 -2
- package/dist/components/composite/Form/formStyles.d.ts +9 -8
- package/dist/components/composite/Form/formTypes.d.ts +4 -3
- package/dist/components/composite/Form/index.d.ts +3 -3
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/composite/RadioGroup/index.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +3 -2
- package/dist/components/composite/utils/optionGroupClassNames.d.ts +2 -1
- package/dist/components/core/Alert/Alert.d.ts +1 -1
- package/dist/components/core/Alert/alertContext.d.ts +2 -1
- package/dist/components/core/Alert/alertTypes.d.ts +2 -1
- package/dist/components/core/Alert/index.d.ts +1 -1
- package/dist/components/core/Avatar/Avatar.d.ts +1 -1
- package/dist/components/core/Avatar/avatarParts.d.ts +1 -1
- package/dist/components/core/Avatar/avatarTypes.d.ts +4 -3
- package/dist/components/core/Avatar/index.d.ts +2 -2
- package/dist/components/core/Badge/Badge.d.ts +1 -1
- package/dist/components/core/Badge/badgeParts.d.ts +1 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +4 -3
- package/dist/components/core/Badge/index.d.ts +2 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +4 -3
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/core/Button/Button.d.ts +1 -1
- package/dist/components/core/Button/buttonContext.d.ts +2 -1
- package/dist/components/core/Button/buttonTypes.d.ts +2 -1
- package/dist/components/core/Button/index.d.ts +1 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +10 -1
- package/dist/components/core/Calendar/calendarTypes.d.ts +3 -2
- package/dist/components/core/Card/Card.d.ts +1 -1
- package/dist/components/core/Card/cardTypes.d.ts +3 -2
- package/dist/components/core/Card/index.d.ts +1 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +4 -3
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +3 -2
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +5 -1
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +3 -2
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +3 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +1 -1
- package/dist/components/core/Dialog/dialogTypes.d.ts +3 -2
- package/dist/components/core/Dialog/index.d.ts +1 -1
- package/dist/components/core/Disclosure/Disclosure.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +4 -3
- package/dist/components/core/Disclosure/index.d.ts +2 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +1 -1
- package/dist/components/core/Drawer/drawerTypes.d.ts +3 -2
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +2 -1
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +4 -3
- package/dist/components/core/Expandable/Expandable.d.ts +1 -1
- package/dist/components/core/Expandable/expandableTypes.d.ts +3 -2
- package/dist/components/core/Expandable/index.d.ts +1 -1
- package/dist/components/core/Field/Field.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +5 -4
- package/dist/components/core/Field/index.d.ts +1 -1
- package/dist/components/core/Input/index.d.ts +1 -1
- package/dist/components/core/Input/inputControlParts.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +4 -3
- package/dist/components/core/Kbd/Kbd.d.ts +1 -1
- package/dist/components/core/Kbd/index.d.ts +1 -1
- package/dist/components/core/Kbd/kbdTypes.d.ts +5 -4
- package/dist/components/core/Label/labelTypes.d.ts +3 -2
- package/dist/components/core/Link/linkTypes.d.ts +3 -2
- package/dist/components/core/ListBox/listBoxAPI.d.ts +2 -1
- package/dist/components/core/ListBox/listBoxTypes.d.ts +4 -3
- package/dist/components/core/Loading/Loading.d.ts +1 -1
- package/dist/components/core/Loading/loadingTypes.d.ts +2 -1
- package/dist/components/core/Meter/meterTypes.d.ts +3 -2
- package/dist/components/core/Pagination/Pagination.d.ts +1 -1
- package/dist/components/core/Pagination/index.d.ts +1 -1
- package/dist/components/core/Pagination/paginationTypes.d.ts +3 -2
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -2
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +3 -2
- package/dist/components/core/Radio/Radio.d.ts +1 -1
- package/dist/components/core/Radio/index.d.ts +1 -1
- package/dist/components/core/Radio/radioAPI.d.ts +2 -1
- package/dist/components/core/Radio/radioTypes.d.ts +4 -3
- package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +3 -2
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +7 -1
- package/dist/components/core/Select/selectTypes.d.ts +3 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorAPI.d.ts +2 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +2 -1
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +3 -2
- package/dist/components/core/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/core/Skeleton/index.d.ts +5 -5
- package/dist/components/core/Skeleton/skeletonParts.d.ts +4 -4
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +6 -5
- package/dist/components/core/Slider/sliderTypes.d.ts +4 -3
- package/dist/components/core/Surface/Surface.d.ts +1 -1
- package/dist/components/core/Surface/surfaceTypes.d.ts +2 -1
- package/dist/components/core/Switch/Switch.d.ts +1 -1
- package/dist/components/core/Switch/index.d.ts +2 -2
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTypes.d.ts +5 -4
- package/dist/components/core/Switch/useSwitchRootState.d.ts +1 -1
- package/dist/components/core/Table/Table.d.ts +1 -1
- package/dist/components/core/Table/index.d.ts +1 -1
- package/dist/components/core/Table/tableTypes.d.ts +3 -2
- package/dist/components/core/Tabs/Tabs.d.ts +1 -1
- package/dist/components/core/Tabs/index.d.ts +1 -1
- package/dist/components/core/Tabs/tabsTypes.d.ts +3 -2
- package/dist/components/core/TextArea/textAreaStyles.d.ts +2 -2
- package/dist/components/core/TextArea/textAreaTypes.d.ts +3 -2
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +3 -2
- package/dist/components/core/Toast/Toast.d.ts +1 -1
- package/dist/components/core/Toast/index.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +8 -7
- package/dist/components/core/Toast/useToastProviderState.d.ts +13 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +3 -1
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +8 -1
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +3 -2
- package/dist/components/core/utils/hoverVariant.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1950 -1939
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/theme/themeDefaults.d.ts +2 -2
- package/dist/{themeRuntimeContext-D_BFeuKg.js → themeRuntimeContext-Bvsrm3yI.js} +716 -706
- package/dist/themeRuntimeContext-DEEtVAx5.cjs +14 -0
- package/dist/tokens/config.d.ts +1 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +132 -48
- package/dist/utils/prettify.d.ts +8 -0
- package/package.json +1 -1
- package/dist/themeRuntimeContext-BGPGJ9Al.cjs +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as Ke, Fragment as Fo } from "react/jsx-runtime";
|
|
3
|
-
import { useSyncExternalStore as
|
|
3
|
+
import { useSyncExternalStore as Co, memo as Oo, useRef as Z, useLayoutEffect as Q, useState as Ze, useCallback as D, useEffect as Gr, useMemo as J, createElement as Hr, useContext as Ne, createContext as $r } from "react";
|
|
4
4
|
import R from "gsap";
|
|
5
5
|
import { CustomEase as Je } from "gsap/CustomEase";
|
|
6
6
|
function Wr(e) {
|
|
@@ -12,42 +12,42 @@ function Wr(e) {
|
|
|
12
12
|
} else for (o in e) e[o] && (n && (n += " "), n += o);
|
|
13
13
|
return n;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _o() {
|
|
16
16
|
for (var e, r, o = 0, n = "", i = arguments.length; o < i; o++) (e = arguments[o]) && (r = Wr(e)) && (n && (n += " "), n += r);
|
|
17
17
|
return n;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const Io = (e, r) => {
|
|
20
20
|
const o = new Array(e.length + r.length);
|
|
21
21
|
for (let n = 0; n < e.length; n++)
|
|
22
22
|
o[n] = e[n];
|
|
23
23
|
for (let n = 0; n < r.length; n++)
|
|
24
24
|
o[e.length + n] = r[n];
|
|
25
25
|
return o;
|
|
26
|
-
},
|
|
26
|
+
}, Lo = (e, r) => ({
|
|
27
27
|
classGroupId: e,
|
|
28
28
|
validator: r
|
|
29
29
|
}), Ur = (e = /* @__PURE__ */ new Map(), r = null, o) => ({
|
|
30
30
|
nextPart: e,
|
|
31
31
|
validators: r,
|
|
32
32
|
classGroupId: o
|
|
33
|
-
}), Ie = "-", Er = [],
|
|
34
|
-
const r =
|
|
33
|
+
}), Ie = "-", Er = [], zo = "arbitrary..", Ro = (e) => {
|
|
34
|
+
const r = Po(e), {
|
|
35
35
|
conflictingClassGroups: o,
|
|
36
36
|
conflictingClassGroupModifiers: n
|
|
37
37
|
} = e;
|
|
38
38
|
return {
|
|
39
|
-
getClassGroupId: (
|
|
40
|
-
if (
|
|
41
|
-
return
|
|
42
|
-
const
|
|
43
|
-
return Vr(
|
|
39
|
+
getClassGroupId: (a) => {
|
|
40
|
+
if (a.startsWith("[") && a.endsWith("]"))
|
|
41
|
+
return Ao(a);
|
|
42
|
+
const s = a.split(Ie), d = s[0] === "" && s.length > 1 ? 1 : 0;
|
|
43
|
+
return Vr(s, d, r);
|
|
44
44
|
},
|
|
45
|
-
getConflictingClassGroupIds: (
|
|
46
|
-
if (
|
|
47
|
-
const d = n[
|
|
48
|
-
return d ? c ?
|
|
45
|
+
getConflictingClassGroupIds: (a, s) => {
|
|
46
|
+
if (s) {
|
|
47
|
+
const d = n[a], c = o[a];
|
|
48
|
+
return d ? c ? Io(c, d) : d : c || Er;
|
|
49
49
|
}
|
|
50
|
-
return o[
|
|
50
|
+
return o[a] || Er;
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
}, Vr = (e, r, o) => {
|
|
@@ -58,25 +58,25 @@ const Lo = (e, r) => {
|
|
|
58
58
|
const c = Vr(e, r + 1, t);
|
|
59
59
|
if (c) return c;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
61
|
+
const a = o.validators;
|
|
62
|
+
if (a === null)
|
|
63
63
|
return;
|
|
64
|
-
const
|
|
64
|
+
const s = r === 0 ? e.join(Ie) : e.slice(r).join(Ie), d = a.length;
|
|
65
65
|
for (let c = 0; c < d; c++) {
|
|
66
|
-
const p =
|
|
67
|
-
if (p.validator(
|
|
66
|
+
const p = a[c];
|
|
67
|
+
if (p.validator(s))
|
|
68
68
|
return p.classGroupId;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, Ao = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
71
71
|
const r = e.slice(1, -1), o = r.indexOf(":"), n = r.slice(0, o);
|
|
72
|
-
return n ?
|
|
73
|
-
})(),
|
|
72
|
+
return n ? zo + n : void 0;
|
|
73
|
+
})(), Po = (e) => {
|
|
74
74
|
const {
|
|
75
75
|
theme: r,
|
|
76
76
|
classGroups: o
|
|
77
77
|
} = e;
|
|
78
|
-
return
|
|
79
|
-
},
|
|
78
|
+
return Mo(o, r);
|
|
79
|
+
}, Mo = (e, r) => {
|
|
80
80
|
const o = Ur();
|
|
81
81
|
for (const n in e) {
|
|
82
82
|
const i = e[n];
|
|
@@ -86,44 +86,44 @@ const Lo = (e, r) => {
|
|
|
86
86
|
}, nr = (e, r, o, n) => {
|
|
87
87
|
const i = e.length;
|
|
88
88
|
for (let t = 0; t < i; t++) {
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
const a = e[t];
|
|
90
|
+
No(a, r, o, n);
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, No = (e, r, o, n) => {
|
|
93
93
|
if (typeof e == "string") {
|
|
94
|
-
|
|
94
|
+
Bo(e, r, o);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
if (typeof e == "function") {
|
|
98
|
-
|
|
98
|
+
Go(e, r, o, n);
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
},
|
|
101
|
+
Ho(e, r, o, n);
|
|
102
|
+
}, Bo = (e, r, o) => {
|
|
103
103
|
const n = e === "" ? r : qr(r, e);
|
|
104
104
|
n.classGroupId = o;
|
|
105
|
-
},
|
|
106
|
-
if (
|
|
105
|
+
}, Go = (e, r, o, n) => {
|
|
106
|
+
if ($o(e)) {
|
|
107
107
|
nr(e(n), r, o, n);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
111
|
-
},
|
|
110
|
+
r.validators === null && (r.validators = []), r.validators.push(Lo(o, e));
|
|
111
|
+
}, Ho = (e, r, o, n) => {
|
|
112
112
|
const i = Object.entries(e), t = i.length;
|
|
113
|
-
for (let
|
|
114
|
-
const [
|
|
115
|
-
nr(d, qr(r,
|
|
113
|
+
for (let a = 0; a < t; a++) {
|
|
114
|
+
const [s, d] = i[a];
|
|
115
|
+
nr(d, qr(r, s), o, n);
|
|
116
116
|
}
|
|
117
117
|
}, qr = (e, r) => {
|
|
118
118
|
let o = e;
|
|
119
119
|
const n = r.split(Ie), i = n.length;
|
|
120
120
|
for (let t = 0; t < i; t++) {
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
|
|
121
|
+
const a = n[t];
|
|
122
|
+
let s = o.nextPart.get(a);
|
|
123
|
+
s || (s = Ur(), o.nextPart.set(a, s)), o = s;
|
|
124
124
|
}
|
|
125
125
|
return o;
|
|
126
|
-
},
|
|
126
|
+
}, $o = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Wo = (e) => {
|
|
127
127
|
if (e < 1)
|
|
128
128
|
return {
|
|
129
129
|
get: () => {
|
|
@@ -132,39 +132,39 @@ const Lo = (e, r) => {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
let r = 0, o = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
|
|
135
|
-
const i = (t,
|
|
136
|
-
o[t] =
|
|
135
|
+
const i = (t, a) => {
|
|
136
|
+
o[t] = a, r++, r > e && (r = 0, n = o, o = /* @__PURE__ */ Object.create(null));
|
|
137
137
|
};
|
|
138
138
|
return {
|
|
139
139
|
get(t) {
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
142
|
-
return
|
|
143
|
-
if ((
|
|
144
|
-
return i(t,
|
|
140
|
+
let a = o[t];
|
|
141
|
+
if (a !== void 0)
|
|
142
|
+
return a;
|
|
143
|
+
if ((a = n[t]) !== void 0)
|
|
144
|
+
return i(t, a), a;
|
|
145
145
|
},
|
|
146
|
-
set(t,
|
|
147
|
-
t in o ? o[t] =
|
|
146
|
+
set(t, a) {
|
|
147
|
+
t in o ? o[t] = a : i(t, a);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
}, Qe = "!", Dr = ":",
|
|
150
|
+
}, Qe = "!", Dr = ":", Uo = [], Fr = (e, r, o, n, i) => ({
|
|
151
151
|
modifiers: e,
|
|
152
152
|
hasImportantModifier: r,
|
|
153
153
|
baseClassName: o,
|
|
154
154
|
maybePostfixModifierPosition: n,
|
|
155
155
|
isExternal: i
|
|
156
|
-
}),
|
|
156
|
+
}), Vo = (e) => {
|
|
157
157
|
const {
|
|
158
158
|
prefix: r,
|
|
159
159
|
experimentalParseClassName: o
|
|
160
160
|
} = e;
|
|
161
161
|
let n = (i) => {
|
|
162
162
|
const t = [];
|
|
163
|
-
let
|
|
163
|
+
let a = 0, s = 0, d = 0, c;
|
|
164
164
|
const p = i.length;
|
|
165
165
|
for (let k = 0; k < p; k++) {
|
|
166
166
|
const O = i[k];
|
|
167
|
-
if (
|
|
167
|
+
if (a === 0 && s === 0) {
|
|
168
168
|
if (O === Dr) {
|
|
169
169
|
t.push(i.slice(d, k)), d = k + 1;
|
|
170
170
|
continue;
|
|
@@ -174,7 +174,7 @@ const Lo = (e, r) => {
|
|
|
174
174
|
continue;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
O === "[" ?
|
|
177
|
+
O === "[" ? a++ : O === "]" ? a-- : O === "(" ? s++ : O === ")" && s--;
|
|
178
178
|
}
|
|
179
179
|
const m = t.length === 0 ? i : i.slice(d);
|
|
180
180
|
let w = m, h = !1;
|
|
@@ -185,12 +185,12 @@ const Lo = (e, r) => {
|
|
|
185
185
|
*/
|
|
186
186
|
m.startsWith(Qe) && (w = m.slice(1), h = !0)
|
|
187
187
|
);
|
|
188
|
-
const
|
|
189
|
-
return
|
|
188
|
+
const y = c && c > d ? c - d : void 0;
|
|
189
|
+
return Fr(t, h, w, y);
|
|
190
190
|
};
|
|
191
191
|
if (r) {
|
|
192
192
|
const i = r + Dr, t = n;
|
|
193
|
-
n = (
|
|
193
|
+
n = (a) => a.startsWith(i) ? t(a.slice(i.length)) : Fr(Uo, !1, a, void 0, !0);
|
|
194
194
|
}
|
|
195
195
|
if (o) {
|
|
196
196
|
const i = n;
|
|
@@ -200,7 +200,7 @@ const Lo = (e, r) => {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
return n;
|
|
203
|
-
},
|
|
203
|
+
}, qo = (e) => {
|
|
204
204
|
const r = /* @__PURE__ */ new Map();
|
|
205
205
|
return e.orderSensitiveModifiers.forEach((o, n) => {
|
|
206
206
|
r.set(o, 1e6 + n);
|
|
@@ -208,37 +208,37 @@ const Lo = (e, r) => {
|
|
|
208
208
|
const n = [];
|
|
209
209
|
let i = [];
|
|
210
210
|
for (let t = 0; t < o.length; t++) {
|
|
211
|
-
const
|
|
212
|
-
|
|
211
|
+
const a = o[t], s = a[0] === "[", d = r.has(a);
|
|
212
|
+
s || d ? (i.length > 0 && (i.sort(), n.push(...i), i = []), n.push(a)) : i.push(a);
|
|
213
213
|
}
|
|
214
214
|
return i.length > 0 && (i.sort(), n.push(...i)), n;
|
|
215
215
|
};
|
|
216
|
-
},
|
|
217
|
-
cache:
|
|
218
|
-
parseClassName:
|
|
219
|
-
sortModifiers:
|
|
220
|
-
postfixLookupClassGroupIds:
|
|
221
|
-
...
|
|
222
|
-
}),
|
|
216
|
+
}, jo = (e) => ({
|
|
217
|
+
cache: Wo(e.cacheSize),
|
|
218
|
+
parseClassName: Vo(e),
|
|
219
|
+
sortModifiers: qo(e),
|
|
220
|
+
postfixLookupClassGroupIds: Xo(e),
|
|
221
|
+
...Ro(e)
|
|
222
|
+
}), Xo = (e) => {
|
|
223
223
|
const r = /* @__PURE__ */ Object.create(null), o = e.postfixLookupClassGroups;
|
|
224
224
|
if (o)
|
|
225
225
|
for (let n = 0; n < o.length; n++)
|
|
226
226
|
r[o[n]] = !0;
|
|
227
227
|
return r;
|
|
228
|
-
},
|
|
228
|
+
}, Yo = /\s+/, Ko = (e, r) => {
|
|
229
229
|
const {
|
|
230
230
|
parseClassName: o,
|
|
231
231
|
getClassGroupId: n,
|
|
232
232
|
getConflictingClassGroupIds: i,
|
|
233
233
|
sortModifiers: t,
|
|
234
|
-
postfixLookupClassGroupIds:
|
|
235
|
-
} = r,
|
|
234
|
+
postfixLookupClassGroupIds: a
|
|
235
|
+
} = r, s = [], d = e.trim().split(Yo);
|
|
236
236
|
let c = "";
|
|
237
237
|
for (let p = d.length - 1; p >= 0; p -= 1) {
|
|
238
238
|
const m = d[p], {
|
|
239
239
|
isExternal: w,
|
|
240
240
|
modifiers: h,
|
|
241
|
-
hasImportantModifier:
|
|
241
|
+
hasImportantModifier: y,
|
|
242
242
|
baseClassName: k,
|
|
243
243
|
maybePostfixModifierPosition: O
|
|
244
244
|
} = o(m);
|
|
@@ -250,7 +250,7 @@ const Lo = (e, r) => {
|
|
|
250
250
|
if (q) {
|
|
251
251
|
const N = k.substring(0, O);
|
|
252
252
|
_ = n(N);
|
|
253
|
-
const f = _ &&
|
|
253
|
+
const f = _ && a[_] ? n(k) : void 0;
|
|
254
254
|
f && f !== _ && (_ = f, q = !1);
|
|
255
255
|
} else
|
|
256
256
|
_ = n(k);
|
|
@@ -265,19 +265,19 @@ const Lo = (e, r) => {
|
|
|
265
265
|
}
|
|
266
266
|
q = !1;
|
|
267
267
|
}
|
|
268
|
-
const de = h.length === 0 ? "" : h.length === 1 ? h[0] : t(h).join(":"), re =
|
|
269
|
-
if (
|
|
268
|
+
const de = h.length === 0 ? "" : h.length === 1 ? h[0] : t(h).join(":"), re = y ? de + Qe : de, oe = re + _;
|
|
269
|
+
if (s.indexOf(oe) > -1)
|
|
270
270
|
continue;
|
|
271
|
-
|
|
271
|
+
s.push(oe);
|
|
272
272
|
const ne = i(_, q);
|
|
273
273
|
for (let N = 0; N < ne.length; ++N) {
|
|
274
274
|
const f = ne[N];
|
|
275
|
-
|
|
275
|
+
s.push(re + f);
|
|
276
276
|
}
|
|
277
277
|
c = m + (c.length > 0 ? " " + c : c);
|
|
278
278
|
}
|
|
279
279
|
return c;
|
|
280
|
-
},
|
|
280
|
+
}, Zo = (...e) => {
|
|
281
281
|
let r = 0, o, n, i = "";
|
|
282
282
|
for (; r < e.length; )
|
|
283
283
|
(o = e[r++]) && (n = jr(o)) && (i && (i += " "), i += n);
|
|
@@ -289,35 +289,35 @@ const Lo = (e, r) => {
|
|
|
289
289
|
for (let n = 0; n < e.length; n++)
|
|
290
290
|
e[n] && (r = jr(e[n])) && (o && (o += " "), o += r);
|
|
291
291
|
return o;
|
|
292
|
-
},
|
|
292
|
+
}, Cr = (e, ...r) => {
|
|
293
293
|
let o, n, i, t;
|
|
294
|
-
const
|
|
294
|
+
const a = (d) => {
|
|
295
295
|
const c = r.reduce((p, m) => m(p), e());
|
|
296
|
-
return o =
|
|
297
|
-
},
|
|
296
|
+
return o = jo(c), n = o.cache.get, i = o.cache.set, t = s, s(d);
|
|
297
|
+
}, s = (d) => {
|
|
298
298
|
const c = n(d);
|
|
299
299
|
if (c)
|
|
300
300
|
return c;
|
|
301
|
-
const p =
|
|
301
|
+
const p = Ko(d, o);
|
|
302
302
|
return i(d, p), p;
|
|
303
303
|
};
|
|
304
|
-
return t =
|
|
305
|
-
},
|
|
306
|
-
const r = (o) => o[e] ||
|
|
304
|
+
return t = a, (...d) => t(Zo(...d));
|
|
305
|
+
}, Jo = [], T = (e) => {
|
|
306
|
+
const r = (o) => o[e] || Jo;
|
|
307
307
|
return r.isThemeGetter = !0, r;
|
|
308
|
-
}, Xr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
308
|
+
}, Xr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, en = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, on = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, nn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Qo.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), M = (e) => !!e && Number.isInteger(Number(e)), je = (e) => e.endsWith("%") && b(e.slice(0, -1)), B = (e) => en.test(e), Kr = () => !0, an = (e) => (
|
|
309
309
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
310
310
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
311
311
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
312
|
-
|
|
313
|
-
), tr = () => !1,
|
|
312
|
+
rn.test(e) && !on.test(e)
|
|
313
|
+
), tr = () => !1, sn = (e) => nn.test(e), ln = (e) => tn.test(e), cn = (e) => !l(e) && !u(e), un = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dn = (e) => V(e, Qr, tr), l = (e) => Xr.test(e), X = (e) => V(e, eo, an), Or = (e) => V(e, xn, b), fn = (e) => V(e, oo, Kr), gn = (e) => V(e, ro, tr), _r = (e) => V(e, Zr, tr), mn = (e) => V(e, Jr, ln), Se = (e) => V(e, no, sn), u = (e) => Yr.test(e), fe = (e) => ee(e, eo), pn = (e) => ee(e, ro), Ir = (e) => ee(e, Zr), bn = (e) => ee(e, Qr), hn = (e) => ee(e, Jr), Te = (e) => ee(e, no, !0), vn = (e) => ee(e, oo, !0), V = (e, r, o) => {
|
|
314
314
|
const n = Xr.exec(e);
|
|
315
315
|
return n ? n[1] ? r(n[1]) : o(n[2]) : !1;
|
|
316
316
|
}, ee = (e, r, o = !1) => {
|
|
317
317
|
const n = Yr.exec(e);
|
|
318
318
|
return n ? n[1] ? r(n[1]) : o : !1;
|
|
319
319
|
}, Zr = (e) => e === "position" || e === "percentage", Jr = (e) => e === "image" || e === "url", Qr = (e) => e === "length" || e === "size" || e === "bg-size", eo = (e) => e === "length", xn = (e) => e === "number", ro = (e) => e === "family-name", oo = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Lr = () => {
|
|
320
|
-
const e = T("color"), r = T("font"), o = T("text"), n = T("font-weight"), i = T("tracking"), t = T("leading"),
|
|
320
|
+
const e = T("color"), r = T("font"), o = T("text"), n = T("font-weight"), i = T("tracking"), t = T("leading"), a = T("breakpoint"), s = T("container"), d = T("spacing"), c = T("radius"), p = T("shadow"), m = T("inset-shadow"), w = T("text-shadow"), h = T("drop-shadow"), y = T("blur"), k = T("perspective"), O = T("aspect"), q = T("ease"), _ = T("animate"), de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], re = () => [
|
|
321
321
|
"center",
|
|
322
322
|
"top",
|
|
323
323
|
"bottom",
|
|
@@ -337,13 +337,13 @@ const Lo = (e, r) => {
|
|
|
337
337
|
"left-bottom"
|
|
338
338
|
], oe = () => [...re(), u, l], ne = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], f = () => [u, l, d], I = () => [H, "full", "auto", ...f()], hr = () => [M, "none", "subgrid", u, l], vr = () => ["auto", {
|
|
339
339
|
span: ["full", M, u, l]
|
|
340
|
-
}, M, u, l], he = () => [M, "auto", u, l],
|
|
340
|
+
}, M, u, l], he = () => [M, "auto", u, l], xr = () => ["auto", "min", "max", "fr", u, l], $e = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...f()], j = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], We = () => [H, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...f()], Ue = () => [H, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...f()], g = () => [e, u, l], yr = () => [...re(), Ir, _r, {
|
|
341
341
|
position: [u, l]
|
|
342
342
|
}], wr = () => ["no-repeat", {
|
|
343
343
|
repeat: ["", "x", "y", "space", "round"]
|
|
344
|
-
}], Sr = () => ["auto", "cover", "contain",
|
|
344
|
+
}], Sr = () => ["auto", "cover", "contain", bn, dn, {
|
|
345
345
|
size: [u, l]
|
|
346
|
-
}], Ve = () => [je, fe, X],
|
|
346
|
+
}], Ve = () => [je, fe, X], F = () => [
|
|
347
347
|
// Deprecated since Tailwind CSS v4.0.0
|
|
348
348
|
"",
|
|
349
349
|
"none",
|
|
@@ -351,14 +351,14 @@ const Lo = (e, r) => {
|
|
|
351
351
|
c,
|
|
352
352
|
u,
|
|
353
353
|
l
|
|
354
|
-
],
|
|
354
|
+
], C = () => ["", b, fe, X], ve = () => ["solid", "dashed", "dotted", "double"], Tr = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], E = () => [b, je, Ir, _r], kr = () => [
|
|
355
355
|
// Deprecated since Tailwind CSS v4.0.0
|
|
356
356
|
"",
|
|
357
357
|
"none",
|
|
358
|
-
|
|
358
|
+
y,
|
|
359
359
|
u,
|
|
360
360
|
l
|
|
361
|
-
],
|
|
361
|
+
], xe = () => ["none", b, u, l], ye = () => ["none", b, u, l], qe = () => [b, u, l], we = () => [H, "full", ...f()];
|
|
362
362
|
return {
|
|
363
363
|
cacheSize: 500,
|
|
364
364
|
theme: {
|
|
@@ -370,7 +370,7 @@ const Lo = (e, r) => {
|
|
|
370
370
|
container: [B],
|
|
371
371
|
"drop-shadow": [B],
|
|
372
372
|
ease: ["in", "out", "in-out"],
|
|
373
|
-
font: [
|
|
373
|
+
font: [cn],
|
|
374
374
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
375
375
|
"inset-shadow": [B],
|
|
376
376
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -410,13 +410,13 @@ const Lo = (e, r) => {
|
|
|
410
410
|
* Container Name
|
|
411
411
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
412
412
|
*/
|
|
413
|
-
"container-named": [
|
|
413
|
+
"container-named": [un],
|
|
414
414
|
/**
|
|
415
415
|
* Columns
|
|
416
416
|
* @see https://tailwindcss.com/docs/columns
|
|
417
417
|
*/
|
|
418
418
|
columns: [{
|
|
419
|
-
columns: [b, l, u,
|
|
419
|
+
columns: [b, l, u, s]
|
|
420
420
|
}],
|
|
421
421
|
/**
|
|
422
422
|
* Break After
|
|
@@ -652,7 +652,7 @@ const Lo = (e, r) => {
|
|
|
652
652
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
653
653
|
*/
|
|
654
654
|
basis: [{
|
|
655
|
-
basis: [H, "full", "auto",
|
|
655
|
+
basis: [H, "full", "auto", s, ...f()]
|
|
656
656
|
}],
|
|
657
657
|
/**
|
|
658
658
|
* Flex Direction
|
|
@@ -764,14 +764,14 @@ const Lo = (e, r) => {
|
|
|
764
764
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
765
765
|
*/
|
|
766
766
|
"auto-cols": [{
|
|
767
|
-
"auto-cols":
|
|
767
|
+
"auto-cols": xr()
|
|
768
768
|
}],
|
|
769
769
|
/**
|
|
770
770
|
* Grid Auto Rows
|
|
771
771
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
772
772
|
*/
|
|
773
773
|
"auto-rows": [{
|
|
774
|
-
"auto-rows":
|
|
774
|
+
"auto-rows": xr()
|
|
775
775
|
}],
|
|
776
776
|
/**
|
|
777
777
|
* Gap
|
|
@@ -1097,7 +1097,7 @@ const Lo = (e, r) => {
|
|
|
1097
1097
|
* @see https://tailwindcss.com/docs/width
|
|
1098
1098
|
*/
|
|
1099
1099
|
w: [{
|
|
1100
|
-
w: [
|
|
1100
|
+
w: [s, "screen", ...j()]
|
|
1101
1101
|
}],
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Min-Width
|
|
@@ -1105,7 +1105,7 @@ const Lo = (e, r) => {
|
|
|
1105
1105
|
*/
|
|
1106
1106
|
"min-w": [{
|
|
1107
1107
|
"min-w": [
|
|
1108
|
-
|
|
1108
|
+
s,
|
|
1109
1109
|
"screen",
|
|
1110
1110
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1111
1111
|
"none",
|
|
@@ -1118,14 +1118,14 @@ const Lo = (e, r) => {
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
"max-w": [{
|
|
1120
1120
|
"max-w": [
|
|
1121
|
-
|
|
1121
|
+
s,
|
|
1122
1122
|
"screen",
|
|
1123
1123
|
"none",
|
|
1124
1124
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1125
1125
|
"prose",
|
|
1126
1126
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1127
1127
|
{
|
|
1128
|
-
screen: [
|
|
1128
|
+
screen: [a]
|
|
1129
1129
|
},
|
|
1130
1130
|
...j()
|
|
1131
1131
|
]
|
|
@@ -1176,7 +1176,7 @@ const Lo = (e, r) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1177
1177
|
*/
|
|
1178
1178
|
"font-weight": [{
|
|
1179
|
-
font: [n,
|
|
1179
|
+
font: [n, vn, fn]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Font Stretch
|
|
@@ -1190,7 +1190,7 @@ const Lo = (e, r) => {
|
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/font-family
|
|
1191
1191
|
*/
|
|
1192
1192
|
"font-family": [{
|
|
1193
|
-
font: [
|
|
1193
|
+
font: [pn, gn, r]
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Font Feature Settings
|
|
@@ -1432,7 +1432,7 @@ const Lo = (e, r) => {
|
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/background-position
|
|
1433
1433
|
*/
|
|
1434
1434
|
"bg-position": [{
|
|
1435
|
-
bg:
|
|
1435
|
+
bg: yr()
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Background Repeat
|
|
@@ -1459,7 +1459,7 @@ const Lo = (e, r) => {
|
|
|
1459
1459
|
}, M, u, l],
|
|
1460
1460
|
radial: ["", u, l],
|
|
1461
1461
|
conic: [M, u, l]
|
|
1462
|
-
},
|
|
1462
|
+
}, hn, mn]
|
|
1463
1463
|
}],
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Background Color
|
|
@@ -1518,189 +1518,189 @@ const Lo = (e, r) => {
|
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1519
1519
|
*/
|
|
1520
1520
|
rounded: [{
|
|
1521
|
-
rounded:
|
|
1521
|
+
rounded: F()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Border Radius Start
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1526
1526
|
*/
|
|
1527
1527
|
"rounded-s": [{
|
|
1528
|
-
"rounded-s":
|
|
1528
|
+
"rounded-s": F()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Border Radius End
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1533
1533
|
*/
|
|
1534
1534
|
"rounded-e": [{
|
|
1535
|
-
"rounded-e":
|
|
1535
|
+
"rounded-e": F()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Border Radius Top
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1540
1540
|
*/
|
|
1541
1541
|
"rounded-t": [{
|
|
1542
|
-
"rounded-t":
|
|
1542
|
+
"rounded-t": F()
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Border Radius Right
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1547
1547
|
*/
|
|
1548
1548
|
"rounded-r": [{
|
|
1549
|
-
"rounded-r":
|
|
1549
|
+
"rounded-r": F()
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Border Radius Bottom
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1554
1554
|
*/
|
|
1555
1555
|
"rounded-b": [{
|
|
1556
|
-
"rounded-b":
|
|
1556
|
+
"rounded-b": F()
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Border Radius Left
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1561
1561
|
*/
|
|
1562
1562
|
"rounded-l": [{
|
|
1563
|
-
"rounded-l":
|
|
1563
|
+
"rounded-l": F()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Border Radius Start Start
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1568
1568
|
*/
|
|
1569
1569
|
"rounded-ss": [{
|
|
1570
|
-
"rounded-ss":
|
|
1570
|
+
"rounded-ss": F()
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Border Radius Start End
|
|
1574
1574
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1575
1575
|
*/
|
|
1576
1576
|
"rounded-se": [{
|
|
1577
|
-
"rounded-se":
|
|
1577
|
+
"rounded-se": F()
|
|
1578
1578
|
}],
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Border Radius End End
|
|
1581
1581
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1582
1582
|
*/
|
|
1583
1583
|
"rounded-ee": [{
|
|
1584
|
-
"rounded-ee":
|
|
1584
|
+
"rounded-ee": F()
|
|
1585
1585
|
}],
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Border Radius End Start
|
|
1588
1588
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1589
1589
|
*/
|
|
1590
1590
|
"rounded-es": [{
|
|
1591
|
-
"rounded-es":
|
|
1591
|
+
"rounded-es": F()
|
|
1592
1592
|
}],
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Border Radius Top Left
|
|
1595
1595
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1596
1596
|
*/
|
|
1597
1597
|
"rounded-tl": [{
|
|
1598
|
-
"rounded-tl":
|
|
1598
|
+
"rounded-tl": F()
|
|
1599
1599
|
}],
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Border Radius Top Right
|
|
1602
1602
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1603
1603
|
*/
|
|
1604
1604
|
"rounded-tr": [{
|
|
1605
|
-
"rounded-tr":
|
|
1605
|
+
"rounded-tr": F()
|
|
1606
1606
|
}],
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Border Radius Bottom Right
|
|
1609
1609
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1610
1610
|
*/
|
|
1611
1611
|
"rounded-br": [{
|
|
1612
|
-
"rounded-br":
|
|
1612
|
+
"rounded-br": F()
|
|
1613
1613
|
}],
|
|
1614
1614
|
/**
|
|
1615
1615
|
* Border Radius Bottom Left
|
|
1616
1616
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1617
1617
|
*/
|
|
1618
1618
|
"rounded-bl": [{
|
|
1619
|
-
"rounded-bl":
|
|
1619
|
+
"rounded-bl": F()
|
|
1620
1620
|
}],
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Border Width
|
|
1623
1623
|
* @see https://tailwindcss.com/docs/border-width
|
|
1624
1624
|
*/
|
|
1625
1625
|
"border-w": [{
|
|
1626
|
-
border:
|
|
1626
|
+
border: C()
|
|
1627
1627
|
}],
|
|
1628
1628
|
/**
|
|
1629
1629
|
* Border Width Inline
|
|
1630
1630
|
* @see https://tailwindcss.com/docs/border-width
|
|
1631
1631
|
*/
|
|
1632
1632
|
"border-w-x": [{
|
|
1633
|
-
"border-x":
|
|
1633
|
+
"border-x": C()
|
|
1634
1634
|
}],
|
|
1635
1635
|
/**
|
|
1636
1636
|
* Border Width Block
|
|
1637
1637
|
* @see https://tailwindcss.com/docs/border-width
|
|
1638
1638
|
*/
|
|
1639
1639
|
"border-w-y": [{
|
|
1640
|
-
"border-y":
|
|
1640
|
+
"border-y": C()
|
|
1641
1641
|
}],
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Border Width Inline Start
|
|
1644
1644
|
* @see https://tailwindcss.com/docs/border-width
|
|
1645
1645
|
*/
|
|
1646
1646
|
"border-w-s": [{
|
|
1647
|
-
"border-s":
|
|
1647
|
+
"border-s": C()
|
|
1648
1648
|
}],
|
|
1649
1649
|
/**
|
|
1650
1650
|
* Border Width Inline End
|
|
1651
1651
|
* @see https://tailwindcss.com/docs/border-width
|
|
1652
1652
|
*/
|
|
1653
1653
|
"border-w-e": [{
|
|
1654
|
-
"border-e":
|
|
1654
|
+
"border-e": C()
|
|
1655
1655
|
}],
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Border Width Block Start
|
|
1658
1658
|
* @see https://tailwindcss.com/docs/border-width
|
|
1659
1659
|
*/
|
|
1660
1660
|
"border-w-bs": [{
|
|
1661
|
-
"border-bs":
|
|
1661
|
+
"border-bs": C()
|
|
1662
1662
|
}],
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Border Width Block End
|
|
1665
1665
|
* @see https://tailwindcss.com/docs/border-width
|
|
1666
1666
|
*/
|
|
1667
1667
|
"border-w-be": [{
|
|
1668
|
-
"border-be":
|
|
1668
|
+
"border-be": C()
|
|
1669
1669
|
}],
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Border Width Top
|
|
1672
1672
|
* @see https://tailwindcss.com/docs/border-width
|
|
1673
1673
|
*/
|
|
1674
1674
|
"border-w-t": [{
|
|
1675
|
-
"border-t":
|
|
1675
|
+
"border-t": C()
|
|
1676
1676
|
}],
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Border Width Right
|
|
1679
1679
|
* @see https://tailwindcss.com/docs/border-width
|
|
1680
1680
|
*/
|
|
1681
1681
|
"border-w-r": [{
|
|
1682
|
-
"border-r":
|
|
1682
|
+
"border-r": C()
|
|
1683
1683
|
}],
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Border Width Bottom
|
|
1686
1686
|
* @see https://tailwindcss.com/docs/border-width
|
|
1687
1687
|
*/
|
|
1688
1688
|
"border-w-b": [{
|
|
1689
|
-
"border-b":
|
|
1689
|
+
"border-b": C()
|
|
1690
1690
|
}],
|
|
1691
1691
|
/**
|
|
1692
1692
|
* Border Width Left
|
|
1693
1693
|
* @see https://tailwindcss.com/docs/border-width
|
|
1694
1694
|
*/
|
|
1695
1695
|
"border-w-l": [{
|
|
1696
|
-
"border-l":
|
|
1696
|
+
"border-l": C()
|
|
1697
1697
|
}],
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Divide Width X
|
|
1700
1700
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1701
1701
|
*/
|
|
1702
1702
|
"divide-x": [{
|
|
1703
|
-
"divide-x":
|
|
1703
|
+
"divide-x": C()
|
|
1704
1704
|
}],
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Divide Width X Reverse
|
|
@@ -1712,7 +1712,7 @@ const Lo = (e, r) => {
|
|
|
1712
1712
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1713
1713
|
*/
|
|
1714
1714
|
"divide-y": [{
|
|
1715
|
-
"divide-y":
|
|
1715
|
+
"divide-y": C()
|
|
1716
1716
|
}],
|
|
1717
1717
|
/**
|
|
1718
1718
|
* Divide Width Y Reverse
|
|
@@ -1888,7 +1888,7 @@ const Lo = (e, r) => {
|
|
|
1888
1888
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1889
1889
|
*/
|
|
1890
1890
|
"ring-w": [{
|
|
1891
|
-
ring:
|
|
1891
|
+
ring: C()
|
|
1892
1892
|
}],
|
|
1893
1893
|
/**
|
|
1894
1894
|
* Ring Width Inset
|
|
@@ -1927,7 +1927,7 @@ const Lo = (e, r) => {
|
|
|
1927
1927
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1928
1928
|
*/
|
|
1929
1929
|
"inset-ring-w": [{
|
|
1930
|
-
"inset-ring":
|
|
1930
|
+
"inset-ring": C()
|
|
1931
1931
|
}],
|
|
1932
1932
|
/**
|
|
1933
1933
|
* Inset Ring Color
|
|
@@ -2137,7 +2137,7 @@ const Lo = (e, r) => {
|
|
|
2137
2137
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2138
2138
|
*/
|
|
2139
2139
|
"mask-position": [{
|
|
2140
|
-
mask:
|
|
2140
|
+
mask: yr()
|
|
2141
2141
|
}],
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Mask Repeat
|
|
@@ -2455,56 +2455,56 @@ const Lo = (e, r) => {
|
|
|
2455
2455
|
* @see https://tailwindcss.com/docs/rotate
|
|
2456
2456
|
*/
|
|
2457
2457
|
rotate: [{
|
|
2458
|
-
rotate:
|
|
2458
|
+
rotate: xe()
|
|
2459
2459
|
}],
|
|
2460
2460
|
/**
|
|
2461
2461
|
* Rotate X
|
|
2462
2462
|
* @see https://tailwindcss.com/docs/rotate
|
|
2463
2463
|
*/
|
|
2464
2464
|
"rotate-x": [{
|
|
2465
|
-
"rotate-x":
|
|
2465
|
+
"rotate-x": xe()
|
|
2466
2466
|
}],
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Rotate Y
|
|
2469
2469
|
* @see https://tailwindcss.com/docs/rotate
|
|
2470
2470
|
*/
|
|
2471
2471
|
"rotate-y": [{
|
|
2472
|
-
"rotate-y":
|
|
2472
|
+
"rotate-y": xe()
|
|
2473
2473
|
}],
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Rotate Z
|
|
2476
2476
|
* @see https://tailwindcss.com/docs/rotate
|
|
2477
2477
|
*/
|
|
2478
2478
|
"rotate-z": [{
|
|
2479
|
-
"rotate-z":
|
|
2479
|
+
"rotate-z": xe()
|
|
2480
2480
|
}],
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Scale
|
|
2483
2483
|
* @see https://tailwindcss.com/docs/scale
|
|
2484
2484
|
*/
|
|
2485
2485
|
scale: [{
|
|
2486
|
-
scale:
|
|
2486
|
+
scale: ye()
|
|
2487
2487
|
}],
|
|
2488
2488
|
/**
|
|
2489
2489
|
* Scale X
|
|
2490
2490
|
* @see https://tailwindcss.com/docs/scale
|
|
2491
2491
|
*/
|
|
2492
2492
|
"scale-x": [{
|
|
2493
|
-
"scale-x":
|
|
2493
|
+
"scale-x": ye()
|
|
2494
2494
|
}],
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Scale Y
|
|
2497
2497
|
* @see https://tailwindcss.com/docs/scale
|
|
2498
2498
|
*/
|
|
2499
2499
|
"scale-y": [{
|
|
2500
|
-
"scale-y":
|
|
2500
|
+
"scale-y": ye()
|
|
2501
2501
|
}],
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Scale Z
|
|
2504
2504
|
* @see https://tailwindcss.com/docs/scale
|
|
2505
2505
|
*/
|
|
2506
2506
|
"scale-z": [{
|
|
2507
|
-
"scale-z":
|
|
2507
|
+
"scale-z": ye()
|
|
2508
2508
|
}],
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Scale 3D
|
|
@@ -3001,18 +3001,18 @@ const Lo = (e, r) => {
|
|
|
3001
3001
|
postfixLookupClassGroups: ["container-type"],
|
|
3002
3002
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3003
3003
|
};
|
|
3004
|
-
},
|
|
3004
|
+
}, yn = (e, {
|
|
3005
3005
|
cacheSize: r,
|
|
3006
3006
|
prefix: o,
|
|
3007
3007
|
experimentalParseClassName: n,
|
|
3008
3008
|
extend: i = {},
|
|
3009
3009
|
override: t = {}
|
|
3010
|
-
}) => (
|
|
3010
|
+
}) => (ae(e, "cacheSize", r), ae(e, "prefix", o), ae(e, "experimentalParseClassName", n), ke(e.theme, t.theme), ke(e.classGroups, t.classGroups), ke(e.conflictingClassGroups, t.conflictingClassGroups), ke(e.conflictingClassGroupModifiers, t.conflictingClassGroupModifiers), ae(e, "postfixLookupClassGroups", t.postfixLookupClassGroups), ae(e, "orderSensitiveModifiers", t.orderSensitiveModifiers), Ee(e.theme, i.theme), Ee(e.classGroups, i.classGroups), Ee(e.conflictingClassGroups, i.conflictingClassGroups), Ee(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), er(e, i, "postfixLookupClassGroups"), er(e, i, "orderSensitiveModifiers"), e), ae = (e, r, o) => {
|
|
3011
3011
|
o !== void 0 && (e[r] = o);
|
|
3012
3012
|
}, ke = (e, r) => {
|
|
3013
3013
|
if (r)
|
|
3014
3014
|
for (const o in r)
|
|
3015
|
-
|
|
3015
|
+
ae(e, o, r[o]);
|
|
3016
3016
|
}, Ee = (e, r) => {
|
|
3017
3017
|
if (r)
|
|
3018
3018
|
for (const o in r)
|
|
@@ -3020,26 +3020,26 @@ const Lo = (e, r) => {
|
|
|
3020
3020
|
}, er = (e, r, o) => {
|
|
3021
3021
|
const n = r[o];
|
|
3022
3022
|
n !== void 0 && (e[o] = e[o] ? e[o].concat(n) : n);
|
|
3023
|
-
},
|
|
3024
|
-
fontFamilySans:
|
|
3025
|
-
fontFamilyMono:
|
|
3026
|
-
shadowSize:
|
|
3027
|
-
textScale:
|
|
3028
|
-
shadowOpacity:
|
|
3023
|
+
}, wn = (e, ...r) => typeof e == "function" ? Cr(Lr, e, ...r) : Cr(() => yn(Lr(), e), ...r), Sn = 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', Tn = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace", kn = 0.5, En = { xsmall: { size: 0.6875, line: 0.875 }, small: { size: 0.75, line: 1 }, base: { size: 0.875, line: 1.25 }, mid: { size: 1, line: 1.5 }, large: { size: 1.15, line: 1.75 }, xlarge: { size: 1.5, line: 2 }, "2xlarge": { size: 1.875, line: 2.25 }, "3xlarge": { size: 2.25, line: 2.5 } }, Dn = { dark: { base: 0.15, mid: 0.2, large: 0.24 }, light: { base: 0.08, mid: 0.12, large: 0.16 } }, Fn = { base: [0, 2, 4, -2], mid: [0, 4, 10, -6], large: [0, 8, 20, -12] }, W = {
|
|
3024
|
+
fontFamilySans: Sn,
|
|
3025
|
+
fontFamilyMono: Tn,
|
|
3026
|
+
shadowSize: kn,
|
|
3027
|
+
textScale: En,
|
|
3028
|
+
shadowOpacity: Dn,
|
|
3029
3029
|
shadowGeom: Fn
|
|
3030
|
-
},
|
|
3030
|
+
}, Pi = ["none", "base", "mid", "large"], to = {
|
|
3031
3031
|
base: "--shadow-base",
|
|
3032
3032
|
mid: "--shadow-mid",
|
|
3033
3033
|
large: "--shadow-large"
|
|
3034
|
-
},
|
|
3034
|
+
}, Mi = W.shadowSize, Cn = W.shadowOpacity, On = {
|
|
3035
3035
|
base: [W.shadowGeom.base],
|
|
3036
3036
|
mid: [W.shadowGeom.mid],
|
|
3037
3037
|
large: [W.shadowGeom.large]
|
|
3038
3038
|
};
|
|
3039
|
-
function
|
|
3039
|
+
function Ni(e) {
|
|
3040
3040
|
return `var(--shadow-${e})`;
|
|
3041
3041
|
}
|
|
3042
|
-
const
|
|
3042
|
+
const Bi = {
|
|
3043
3043
|
/** Namespace for documentation */
|
|
3044
3044
|
namespace: "burne",
|
|
3045
3045
|
tailwindBridge: {
|
|
@@ -3068,6 +3068,7 @@ const Gi = {
|
|
|
3068
3068
|
"color-primary-foreground": "color-primary-foreground",
|
|
3069
3069
|
"color-primary-hover": "color-primary-hover",
|
|
3070
3070
|
"color-default-hover": "color-default-hover",
|
|
3071
|
+
"color-transparent-hover": "color-transparent-hover",
|
|
3071
3072
|
"color-primary-tint": "color-primary-tint",
|
|
3072
3073
|
"color-primary-tint-strong": "color-primary-tint-strong",
|
|
3073
3074
|
"color-indicator": "color-indicator",
|
|
@@ -3119,7 +3120,7 @@ const Gi = {
|
|
|
3119
3120
|
"icon-2xlarge": "icon-size-2xlarge",
|
|
3120
3121
|
"icon-3xlarge": "icon-size-3xlarge"
|
|
3121
3122
|
}
|
|
3122
|
-
},
|
|
3123
|
+
}, _n = [
|
|
3123
3124
|
"xsmall",
|
|
3124
3125
|
"small",
|
|
3125
3126
|
"base",
|
|
@@ -3128,13 +3129,13 @@ const Gi = {
|
|
|
3128
3129
|
"xlarge",
|
|
3129
3130
|
"2xlarge",
|
|
3130
3131
|
"3xlarge"
|
|
3131
|
-
],
|
|
3132
|
+
], In = [
|
|
3132
3133
|
"xsmall",
|
|
3133
3134
|
"small",
|
|
3134
3135
|
"base",
|
|
3135
3136
|
"mid",
|
|
3136
3137
|
"large"
|
|
3137
|
-
],
|
|
3138
|
+
], Ln = [
|
|
3138
3139
|
"small",
|
|
3139
3140
|
"mid",
|
|
3140
3141
|
"xsmall",
|
|
@@ -3142,17 +3143,17 @@ const Gi = {
|
|
|
3142
3143
|
"header-1",
|
|
3143
3144
|
"header-2",
|
|
3144
3145
|
"large"
|
|
3145
|
-
],
|
|
3146
|
+
], zn = wn({
|
|
3146
3147
|
extend: {
|
|
3147
3148
|
theme: {
|
|
3148
|
-
spacing: [...
|
|
3149
|
-
radius: [...
|
|
3150
|
-
text: [...
|
|
3149
|
+
spacing: [..._n],
|
|
3150
|
+
radius: [...In],
|
|
3151
|
+
text: [...Ln]
|
|
3151
3152
|
}
|
|
3152
3153
|
}
|
|
3153
3154
|
});
|
|
3154
|
-
function
|
|
3155
|
-
return
|
|
3155
|
+
function x(...e) {
|
|
3156
|
+
return zn(_o(e));
|
|
3156
3157
|
}
|
|
3157
3158
|
const le = {
|
|
3158
3159
|
small: {
|
|
@@ -3211,35 +3212,35 @@ const le = {
|
|
|
3211
3212
|
spinnerBorder: "border-[2.5px]",
|
|
3212
3213
|
rounded: "rounded-large"
|
|
3213
3214
|
}
|
|
3214
|
-
},
|
|
3215
|
+
}, Rn = "(prefers-reduced-motion: reduce)";
|
|
3215
3216
|
function io() {
|
|
3216
|
-
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(
|
|
3217
|
+
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(Rn);
|
|
3217
3218
|
}
|
|
3218
3219
|
function Be() {
|
|
3219
3220
|
var e;
|
|
3220
3221
|
return ((e = io()) == null ? void 0 : e.matches) ?? !1;
|
|
3221
3222
|
}
|
|
3222
|
-
function
|
|
3223
|
+
function An(e) {
|
|
3223
3224
|
const r = io();
|
|
3224
3225
|
if (!r) return () => {
|
|
3225
3226
|
};
|
|
3226
3227
|
const o = () => e();
|
|
3227
3228
|
return r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
3228
3229
|
}
|
|
3229
|
-
function
|
|
3230
|
+
function Pn() {
|
|
3230
3231
|
return Be();
|
|
3231
3232
|
}
|
|
3232
|
-
function
|
|
3233
|
+
function Mn() {
|
|
3233
3234
|
return !1;
|
|
3234
3235
|
}
|
|
3235
|
-
function
|
|
3236
|
-
return
|
|
3236
|
+
function Gi() {
|
|
3237
|
+
return Co(
|
|
3238
|
+
An,
|
|
3237
3239
|
Pn,
|
|
3238
|
-
Mn
|
|
3239
|
-
Nn
|
|
3240
|
+
Mn
|
|
3240
3241
|
);
|
|
3241
3242
|
}
|
|
3242
|
-
const
|
|
3243
|
+
const Nn = {
|
|
3243
3244
|
surfaceDuration: "--motion-surface-duration"
|
|
3244
3245
|
}, ir = {
|
|
3245
3246
|
interactiveDuration: 280,
|
|
@@ -3291,42 +3292,42 @@ const Bn = {
|
|
|
3291
3292
|
enablePaginationFlip: !0,
|
|
3292
3293
|
enableSelectionFill: !0
|
|
3293
3294
|
};
|
|
3294
|
-
let v = { ...ir },
|
|
3295
|
+
let v = { ...ir }, ao = 0;
|
|
3295
3296
|
const rr = /* @__PURE__ */ new Set();
|
|
3296
|
-
function
|
|
3297
|
+
function Hi(e) {
|
|
3297
3298
|
return rr.add(e), () => {
|
|
3298
3299
|
rr.delete(e);
|
|
3299
3300
|
};
|
|
3300
3301
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return
|
|
3302
|
+
function $i() {
|
|
3303
|
+
return ao;
|
|
3303
3304
|
}
|
|
3304
|
-
function
|
|
3305
|
+
function so(e, r = v) {
|
|
3305
3306
|
if (typeof document > "u") return;
|
|
3306
|
-
const o = e ?? document.documentElement, n =
|
|
3307
|
+
const o = e ?? document.documentElement, n = Nn.surfaceDuration;
|
|
3307
3308
|
r.surfaceTransitionDuration === ir.surfaceTransitionDuration ? o.style.removeProperty(n) : o.style.setProperty(n, `${r.surfaceTransitionDuration}ms`);
|
|
3308
3309
|
}
|
|
3309
|
-
function
|
|
3310
|
-
v = { ...v, ...e },
|
|
3310
|
+
function Bn(e) {
|
|
3311
|
+
v = { ...v, ...e }, ao += 1, so(document.documentElement, v);
|
|
3311
3312
|
for (const r of rr)
|
|
3312
3313
|
r();
|
|
3313
3314
|
}
|
|
3314
3315
|
function G() {
|
|
3315
3316
|
return v;
|
|
3316
3317
|
}
|
|
3317
|
-
function
|
|
3318
|
+
function Wi() {
|
|
3318
3319
|
return v.enableAnimations;
|
|
3319
3320
|
}
|
|
3320
3321
|
function Ge(e) {
|
|
3321
3322
|
return v.enableAnimations && v[e];
|
|
3322
3323
|
}
|
|
3323
|
-
function
|
|
3324
|
+
function Ui() {
|
|
3324
3325
|
return {
|
|
3325
3326
|
duration: v.interactiveDuration / 1e3,
|
|
3326
3327
|
ease: v.interactiveEase
|
|
3327
3328
|
};
|
|
3328
3329
|
}
|
|
3329
|
-
function
|
|
3330
|
+
function Vi() {
|
|
3330
3331
|
return {
|
|
3331
3332
|
duration: v.modalDuration / 1e3,
|
|
3332
3333
|
ease: v.interactiveEase
|
|
@@ -3335,78 +3336,78 @@ function qi() {
|
|
|
3335
3336
|
function lo() {
|
|
3336
3337
|
return v.interactiveDuration * v.pressSqueezeDurationFactor / 1e3;
|
|
3337
3338
|
}
|
|
3338
|
-
function
|
|
3339
|
+
function qi() {
|
|
3339
3340
|
return {
|
|
3340
3341
|
duration: v.selectionFillDuration / 1e3,
|
|
3341
3342
|
ease: v.selectionFillEase
|
|
3342
3343
|
};
|
|
3343
3344
|
}
|
|
3344
|
-
function
|
|
3345
|
+
function ji() {
|
|
3345
3346
|
return {
|
|
3346
3347
|
duration: v.tooltipDuration / 1e3,
|
|
3347
3348
|
ease: v.interactiveEase
|
|
3348
3349
|
};
|
|
3349
3350
|
}
|
|
3350
|
-
function
|
|
3351
|
+
function Xi() {
|
|
3351
3352
|
return {
|
|
3352
3353
|
duration: v.switchThumbDuration / 1e3,
|
|
3353
3354
|
ease: v.switchThumbEase
|
|
3354
3355
|
};
|
|
3355
3356
|
}
|
|
3356
|
-
function
|
|
3357
|
+
function Yi() {
|
|
3357
3358
|
return {
|
|
3358
3359
|
duration: v.expandDuration / 1e3,
|
|
3359
3360
|
ease: v.expandOpenEase
|
|
3360
3361
|
};
|
|
3361
3362
|
}
|
|
3362
|
-
function
|
|
3363
|
+
function Ki() {
|
|
3363
3364
|
return {
|
|
3364
3365
|
duration: v.tooltipDuration / 1e3,
|
|
3365
3366
|
ease: v.interactiveEase
|
|
3366
3367
|
};
|
|
3367
3368
|
}
|
|
3368
|
-
function
|
|
3369
|
+
function Zi() {
|
|
3369
3370
|
return {
|
|
3370
3371
|
duration: v.feedbackExpandDuration / 1e3
|
|
3371
3372
|
};
|
|
3372
3373
|
}
|
|
3373
|
-
function
|
|
3374
|
+
function Ji() {
|
|
3374
3375
|
return {
|
|
3375
3376
|
duration: v.progressFillDuration / 1e3,
|
|
3376
3377
|
ease: v.progressFillEase
|
|
3377
3378
|
};
|
|
3378
3379
|
}
|
|
3379
|
-
function
|
|
3380
|
+
function Qi() {
|
|
3380
3381
|
return {
|
|
3381
3382
|
duration: v.progressIndeterminateDuration / 1e3,
|
|
3382
3383
|
ease: v.progressIndeterminateEase
|
|
3383
3384
|
};
|
|
3384
3385
|
}
|
|
3385
|
-
function
|
|
3386
|
+
function ea() {
|
|
3386
3387
|
return {
|
|
3387
3388
|
duration: v.toastDismissDuration / 1e3,
|
|
3388
3389
|
ease: v.toastDismissEase
|
|
3389
3390
|
};
|
|
3390
3391
|
}
|
|
3391
|
-
const
|
|
3392
|
-
function
|
|
3392
|
+
const Gn = 3;
|
|
3393
|
+
function ra() {
|
|
3393
3394
|
const e = v.loadingDotsDuration / 1e3;
|
|
3394
3395
|
return {
|
|
3395
3396
|
cycleSec: e,
|
|
3396
|
-
staggerSec: e /
|
|
3397
|
+
staggerSec: e / Gn,
|
|
3397
3398
|
halfCycleSec: e / 2,
|
|
3398
3399
|
easeUp: v.loadingDotsEaseUp,
|
|
3399
3400
|
easeDown: v.loadingDotsEaseDown,
|
|
3400
3401
|
enabled: Ge("enableLoadingDots")
|
|
3401
3402
|
};
|
|
3402
3403
|
}
|
|
3403
|
-
const
|
|
3404
|
+
const Hn = "pointer-events-none absolute z-0 rounded-full", Xe = "brn-ripple";
|
|
3404
3405
|
let zr = !1, Rr = "";
|
|
3405
|
-
function
|
|
3406
|
+
function $n() {
|
|
3406
3407
|
zr || (R.registerPlugin(Je), zr = !0);
|
|
3407
3408
|
}
|
|
3408
|
-
function
|
|
3409
|
-
|
|
3409
|
+
function Wn() {
|
|
3410
|
+
$n();
|
|
3410
3411
|
const e = G().rippleEaseCss;
|
|
3411
3412
|
if (Rr !== e) {
|
|
3412
3413
|
const r = /cubic-bezier\(\s*([\d.]+),\s*([\d.]+),\s*([\d.]+),\s*([\d.]+)\s*\)/.exec(e);
|
|
@@ -3436,15 +3437,15 @@ function uo(e, r) {
|
|
|
3436
3437
|
};
|
|
3437
3438
|
}
|
|
3438
3439
|
const Ye = 0.12;
|
|
3439
|
-
function
|
|
3440
|
+
function Un({
|
|
3440
3441
|
id: e,
|
|
3441
3442
|
x: r,
|
|
3442
3443
|
y: o,
|
|
3443
3444
|
size: n,
|
|
3444
3445
|
durationMs: i,
|
|
3445
3446
|
opacityFrom: t,
|
|
3446
|
-
background:
|
|
3447
|
-
direction:
|
|
3447
|
+
background: a,
|
|
3448
|
+
direction: s,
|
|
3448
3449
|
onDone: d
|
|
3449
3450
|
}) {
|
|
3450
3451
|
const c = Z(null), p = Z(d);
|
|
@@ -3453,14 +3454,14 @@ function Vn({
|
|
|
3453
3454
|
if (!m) return;
|
|
3454
3455
|
let w = !1;
|
|
3455
3456
|
A(m);
|
|
3456
|
-
const h =
|
|
3457
|
+
const h = s === "out" ? Ye : 1, y = s === "out" ? 1 : Ye, k = R.fromTo(
|
|
3457
3458
|
m,
|
|
3458
3459
|
{ scale: h, autoAlpha: t },
|
|
3459
3460
|
{
|
|
3460
|
-
scale:
|
|
3461
|
+
scale: y,
|
|
3461
3462
|
autoAlpha: 0,
|
|
3462
3463
|
duration: i / 1e3,
|
|
3463
|
-
ease:
|
|
3464
|
+
ease: Wn(),
|
|
3464
3465
|
onComplete: () => {
|
|
3465
3466
|
w || p.current(e);
|
|
3466
3467
|
}
|
|
@@ -3469,98 +3470,98 @@ function Vn({
|
|
|
3469
3470
|
return () => {
|
|
3470
3471
|
w = !0, k.kill(), A(m);
|
|
3471
3472
|
};
|
|
3472
|
-
}, [e, r, o, n, i, t,
|
|
3473
|
+
}, [e, r, o, n, i, t, a, s]), /* @__PURE__ */ Ke(
|
|
3473
3474
|
"span",
|
|
3474
3475
|
{
|
|
3475
3476
|
ref: c,
|
|
3476
|
-
className:
|
|
3477
|
+
className: Hn,
|
|
3477
3478
|
style: {
|
|
3478
3479
|
left: r - n / 2,
|
|
3479
3480
|
top: o - n / 2,
|
|
3480
3481
|
width: n,
|
|
3481
3482
|
height: n,
|
|
3482
|
-
background:
|
|
3483
|
+
background: a,
|
|
3483
3484
|
transformOrigin: "center center",
|
|
3484
|
-
transform: `scale(${
|
|
3485
|
+
transform: `scale(${s === "out" ? Ye : 1})`
|
|
3485
3486
|
},
|
|
3486
3487
|
"aria-hidden": !0
|
|
3487
3488
|
}
|
|
3488
3489
|
);
|
|
3489
3490
|
}
|
|
3490
|
-
const
|
|
3491
|
+
const oa = Oo(function({
|
|
3491
3492
|
ripples: r,
|
|
3492
3493
|
tone: o,
|
|
3493
3494
|
onDone: n,
|
|
3494
3495
|
durationMs: i = G().rippleDefaultDuration,
|
|
3495
3496
|
opacityFrom: t = G().rippleDefaultOpacityFrom,
|
|
3496
|
-
direction:
|
|
3497
|
+
direction: a = "in"
|
|
3497
3498
|
}) {
|
|
3498
|
-
return /* @__PURE__ */ Ke(Fo, { children: r.map((
|
|
3499
|
-
|
|
3499
|
+
return /* @__PURE__ */ Ke(Fo, { children: r.map((s) => /* @__PURE__ */ Ke(
|
|
3500
|
+
Un,
|
|
3500
3501
|
{
|
|
3501
|
-
...
|
|
3502
|
+
...s,
|
|
3502
3503
|
background: o,
|
|
3503
3504
|
durationMs: i,
|
|
3504
3505
|
opacityFrom: t,
|
|
3505
|
-
direction:
|
|
3506
|
+
direction: a,
|
|
3506
3507
|
onDone: n
|
|
3507
3508
|
},
|
|
3508
|
-
|
|
3509
|
+
s.id
|
|
3509
3510
|
)) });
|
|
3510
3511
|
});
|
|
3511
|
-
function
|
|
3512
|
+
function Vn(e, r, o, n) {
|
|
3512
3513
|
return Math.max(...[
|
|
3513
3514
|
[0, 0],
|
|
3514
3515
|
[o, 0],
|
|
3515
3516
|
[0, n],
|
|
3516
3517
|
[o, n]
|
|
3517
|
-
].map(([t,
|
|
3518
|
+
].map(([t, a]) => Math.hypot(t - e, a - r)));
|
|
3518
3519
|
}
|
|
3519
3520
|
function fo(e, r, o, n) {
|
|
3520
|
-
const i = e.getBoundingClientRect(), t = r - i.left,
|
|
3521
|
-
return { id: n, x: t, y:
|
|
3521
|
+
const i = e.getBoundingClientRect(), t = r - i.left, a = o - i.top, s = Vn(t, a, i.width, i.height) * 2;
|
|
3522
|
+
return { id: n, x: t, y: a, size: s };
|
|
3522
3523
|
}
|
|
3523
|
-
function
|
|
3524
|
+
function na(e, r) {
|
|
3524
3525
|
const o = e.currentTarget;
|
|
3525
3526
|
return o ? fo(o, e.clientX, e.clientY, r) : null;
|
|
3526
3527
|
}
|
|
3527
|
-
function
|
|
3528
|
-
const e = Z(0), [r, o] = Ze([]), n = D((
|
|
3529
|
-
o((
|
|
3528
|
+
function ta() {
|
|
3529
|
+
const e = Z(0), [r, o] = Ze([]), n = D((a) => {
|
|
3530
|
+
o((s) => s.filter((d) => d.id !== a));
|
|
3530
3531
|
}, []), i = D(
|
|
3531
|
-
(
|
|
3532
|
+
(a, s, d) => {
|
|
3532
3533
|
const c = ++e.current, p = fo(
|
|
3533
|
-
s,
|
|
3534
3534
|
a,
|
|
3535
|
+
s,
|
|
3535
3536
|
d,
|
|
3536
3537
|
c
|
|
3537
3538
|
);
|
|
3538
3539
|
o((m) => [...m, p]);
|
|
3539
3540
|
},
|
|
3540
3541
|
[]
|
|
3541
|
-
), t = D((
|
|
3542
|
-
const
|
|
3543
|
-
|
|
3542
|
+
), t = D((a) => {
|
|
3543
|
+
const s = a.currentTarget;
|
|
3544
|
+
s && i(s, a.clientX, a.clientY);
|
|
3544
3545
|
}, [i]);
|
|
3545
3546
|
return { ripples: r, pushFromPointer: t, pushAtClientCoords: i, dismiss: n };
|
|
3546
3547
|
}
|
|
3547
|
-
const
|
|
3548
|
+
const ia = ["small", "base", "mid", "strong", "bold"], ar = {
|
|
3548
3549
|
small: "--font-w-small",
|
|
3549
3550
|
base: "--font-w-base",
|
|
3550
3551
|
mid: "--font-w-mid",
|
|
3551
3552
|
strong: "--font-w-strong",
|
|
3552
3553
|
bold: "--font-w-bold"
|
|
3553
|
-
},
|
|
3554
|
+
}, qn = {
|
|
3554
3555
|
small: 400,
|
|
3555
3556
|
base: 500,
|
|
3556
3557
|
mid: 600,
|
|
3557
3558
|
strong: 700,
|
|
3558
3559
|
bold: 800
|
|
3559
3560
|
};
|
|
3560
|
-
function
|
|
3561
|
+
function aa(e) {
|
|
3561
3562
|
return `var(--font-w-${e})`;
|
|
3562
3563
|
}
|
|
3563
|
-
const ce = W.textScale,
|
|
3564
|
+
const ce = W.textScale, jn = 1024, go = `(max-width: ${jn}px), (hover: none), (pointer: coarse)`, sa = `${go}, (any-pointer: coarse)`, la = [
|
|
3564
3565
|
"--border-width",
|
|
3565
3566
|
"--focus-ring-width",
|
|
3566
3567
|
"--focus-ring-offset",
|
|
@@ -3582,10 +3583,12 @@ const ce = W.textScale, Xn = 1024, go = `(max-width: ${Xn}px), (hover: none), (p
|
|
|
3582
3583
|
"--color-border",
|
|
3583
3584
|
"--color-foreground",
|
|
3584
3585
|
"--color-muted",
|
|
3586
|
+
"--color-muted-foreground",
|
|
3585
3587
|
"--color-primary",
|
|
3586
3588
|
"--color-primary-foreground",
|
|
3587
3589
|
"--color-primary-hover",
|
|
3588
3590
|
"--color-default-hover",
|
|
3591
|
+
"--color-transparent-hover",
|
|
3589
3592
|
"--color-primary-tint",
|
|
3590
3593
|
"--color-primary-tint-strong",
|
|
3591
3594
|
"--color-indicator",
|
|
@@ -3753,7 +3756,7 @@ const ce = W.textScale, Xn = 1024, go = `(max-width: ${Xn}px), (hover: none), (p
|
|
|
3753
3756
|
function S(e) {
|
|
3754
3757
|
return `var(--color-${e})`;
|
|
3755
3758
|
}
|
|
3756
|
-
function
|
|
3759
|
+
function Xn(e, r) {
|
|
3757
3760
|
return r == null || !(r instanceof Node) ? !0 : !e.contains(r);
|
|
3758
3761
|
}
|
|
3759
3762
|
function mo({
|
|
@@ -3763,67 +3766,67 @@ function mo({
|
|
|
3763
3766
|
skipHover: n,
|
|
3764
3767
|
killMotionOnUnmount: i = !0,
|
|
3765
3768
|
onEnter: t,
|
|
3766
|
-
onLeave:
|
|
3769
|
+
onLeave: a
|
|
3767
3770
|
}) {
|
|
3768
3771
|
return Gr(() => {
|
|
3769
3772
|
if (!i) return;
|
|
3770
|
-
const
|
|
3773
|
+
const s = r.current;
|
|
3771
3774
|
return () => {
|
|
3772
|
-
|
|
3775
|
+
s && A(s);
|
|
3773
3776
|
};
|
|
3774
3777
|
}, [i, r]), J(() => ({ onPointerOver: (c) => {
|
|
3775
3778
|
if (!e || c.defaultPrevented) return;
|
|
3776
3779
|
const p = c.currentTarget;
|
|
3777
|
-
if (!(c.target instanceof Node) || !p.contains(c.target) || !
|
|
3780
|
+
if (!(c.target instanceof Node) || !p.contains(c.target) || !Xn(p, c.relatedTarget) || n != null && n()) return;
|
|
3778
3781
|
const m = r.current;
|
|
3779
3782
|
m && (o && (o.current = !0), t(m, c));
|
|
3780
3783
|
}, onPointerOut: (c) => {
|
|
3781
3784
|
const p = c.currentTarget, m = c.relatedTarget;
|
|
3782
3785
|
if (m instanceof Node && p.contains(m) || (o && (o.current = !1), !e) || n != null && n()) return;
|
|
3783
3786
|
const w = r.current;
|
|
3784
|
-
w &&
|
|
3785
|
-
} }), [e, t,
|
|
3787
|
+
w && a(w, c);
|
|
3788
|
+
} }), [e, t, a, o, n, r]);
|
|
3786
3789
|
}
|
|
3787
|
-
function
|
|
3790
|
+
function Yn(e) {
|
|
3788
3791
|
return e || document.documentElement;
|
|
3789
3792
|
}
|
|
3790
3793
|
function Ar(e, r) {
|
|
3791
|
-
return typeof window > "u" ? "none" : getComputedStyle(
|
|
3794
|
+
return typeof window > "u" ? "none" : getComputedStyle(Yn(r)).getPropertyValue(e).trim() || "none";
|
|
3792
3795
|
}
|
|
3793
3796
|
function He(e) {
|
|
3794
3797
|
return e === "none" ? "var(--shadow-none)" : `var(${to[e]})`;
|
|
3795
3798
|
}
|
|
3796
|
-
const or = () => He("none"), pe = () => He("base"),
|
|
3797
|
-
function
|
|
3799
|
+
const or = () => He("none"), pe = () => He("base"), Kn = () => He("mid"), ca = () => He("large");
|
|
3800
|
+
function ua(e, r) {
|
|
3798
3801
|
return Ar(e === "none" ? "--shadow-none" : to[e], r);
|
|
3799
3802
|
}
|
|
3800
|
-
function
|
|
3803
|
+
function sr(e, r) {
|
|
3801
3804
|
e && e.style.setProperty("--el-shadow", r);
|
|
3802
3805
|
}
|
|
3803
|
-
function
|
|
3806
|
+
function Zn() {
|
|
3804
3807
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(go).matches;
|
|
3805
3808
|
}
|
|
3806
3809
|
function P() {
|
|
3807
|
-
return Be() ||
|
|
3810
|
+
return Be() || Zn() || !Ge("enableHoverLift");
|
|
3808
3811
|
}
|
|
3809
|
-
const
|
|
3812
|
+
const Jn = 2.4, Qn = 3e-3, et = 1.8, rt = 2e-3;
|
|
3810
3813
|
function po(e) {
|
|
3811
3814
|
const { width: r, height: o } = e.getBoundingClientRect(), n = Math.max(r, o, 1), i = 1 - G().pressSqueezeScale[1];
|
|
3812
3815
|
return 1 - Math.min(
|
|
3813
|
-
Math.max(
|
|
3816
|
+
Math.max(Jn / n, Qn),
|
|
3814
3817
|
i
|
|
3815
3818
|
);
|
|
3816
3819
|
}
|
|
3817
3820
|
function lr(e) {
|
|
3818
3821
|
return cr(e);
|
|
3819
3822
|
}
|
|
3820
|
-
function
|
|
3823
|
+
function ot(e) {
|
|
3821
3824
|
return po(e);
|
|
3822
3825
|
}
|
|
3823
3826
|
function cr(e) {
|
|
3824
3827
|
const { width: r, height: o } = e.getBoundingClientRect(), n = Math.max(r, o, 1);
|
|
3825
3828
|
return 1 + Math.min(
|
|
3826
|
-
Math.max(
|
|
3829
|
+
Math.max(et / n, rt),
|
|
3827
3830
|
G().hoverLiftScale - 1
|
|
3828
3831
|
);
|
|
3829
3832
|
}
|
|
@@ -3841,19 +3844,19 @@ function Le(e, r, o, n) {
|
|
|
3841
3844
|
overwrite: "auto",
|
|
3842
3845
|
onComplete: uo(e)
|
|
3843
3846
|
}), n) {
|
|
3844
|
-
const
|
|
3845
|
-
e.style.setProperty("--el-shadow", r ? n.hover :
|
|
3847
|
+
const a = n.idle ?? or();
|
|
3848
|
+
e.style.setProperty("--el-shadow", r ? n.hover : a);
|
|
3846
3849
|
}
|
|
3847
3850
|
}
|
|
3848
|
-
function
|
|
3851
|
+
function da(e, r) {
|
|
3849
3852
|
var w;
|
|
3850
3853
|
if (!Ge("enablePressSqueeze"))
|
|
3851
3854
|
return (w = r == null ? void 0 : r.onReleaseStart) == null || w.call(r), Promise.resolve();
|
|
3852
3855
|
A(e);
|
|
3853
|
-
const o = po(e), n = G(), i = lo(), t = i * 0.3,
|
|
3856
|
+
const o = po(e), n = G(), i = lo(), t = i * 0.3, a = !P(), s = !!(r != null && r.pointerInside && a), d = s ? (r == null ? void 0 : r.liftScale) !== void 0 ? r.liftScale : cr(e) : 1, c = s ? i : i * 0.5, p = s ? n.hoverLiftEase : "sine.inOut", m = r == null ? void 0 : r.shadow;
|
|
3854
3857
|
if (m) {
|
|
3855
3858
|
const h = m.idle ?? or();
|
|
3856
|
-
e.style.setProperty("--el-shadow",
|
|
3859
|
+
e.style.setProperty("--el-shadow", s ? m.hover : h);
|
|
3857
3860
|
}
|
|
3858
3861
|
return new Promise((h) => {
|
|
3859
3862
|
U(e, !0), R.timeline({
|
|
@@ -3866,8 +3869,8 @@ function fs(e, r) {
|
|
|
3866
3869
|
ease: "power1.out",
|
|
3867
3870
|
overwrite: "auto"
|
|
3868
3871
|
}).add(() => {
|
|
3869
|
-
var
|
|
3870
|
-
(
|
|
3872
|
+
var y;
|
|
3873
|
+
(y = r == null ? void 0 : r.onReleaseStart) == null || y.call(r);
|
|
3871
3874
|
}).to(e, {
|
|
3872
3875
|
scale: d,
|
|
3873
3876
|
duration: c,
|
|
@@ -3876,15 +3879,15 @@ function fs(e, r) {
|
|
|
3876
3879
|
});
|
|
3877
3880
|
});
|
|
3878
3881
|
}
|
|
3879
|
-
function
|
|
3882
|
+
function nt(e, r, o, n, i) {
|
|
3880
3883
|
const t = D(
|
|
3881
|
-
(
|
|
3882
|
-
Le(
|
|
3884
|
+
(s) => {
|
|
3885
|
+
Le(s, !0, n, i);
|
|
3883
3886
|
},
|
|
3884
3887
|
[n, i]
|
|
3885
|
-
),
|
|
3886
|
-
(
|
|
3887
|
-
Le(
|
|
3888
|
+
), a = D(
|
|
3889
|
+
(s) => {
|
|
3890
|
+
Le(s, !1, n, i);
|
|
3888
3891
|
},
|
|
3889
3892
|
[n, i]
|
|
3890
3893
|
);
|
|
@@ -3894,19 +3897,19 @@ function tt(e, r, o, n, i) {
|
|
|
3894
3897
|
pointerInsideRef: o,
|
|
3895
3898
|
skipHover: P,
|
|
3896
3899
|
onEnter: t,
|
|
3897
|
-
onLeave:
|
|
3900
|
+
onLeave: a
|
|
3898
3901
|
});
|
|
3899
3902
|
}
|
|
3900
3903
|
const me = "data-gloss-motion-init", bo = "origin-center", Pr = {
|
|
3901
3904
|
rest: { angle1: -75, angle2: -45, shineX: 0, shineY: 50 },
|
|
3902
3905
|
hover: { angle1: -80, angle2: -45, shineX: 10, shineY: 50 },
|
|
3903
3906
|
press: { angle1: -75, angle2: -15, shineX: 15, shineY: 15 }
|
|
3904
|
-
},
|
|
3907
|
+
}, tt = 120, it = 0.35;
|
|
3905
3908
|
function at(e) {
|
|
3906
3909
|
const { width: r, height: o } = e.getBoundingClientRect(), n = Math.max(r, o, 1);
|
|
3907
|
-
return Math.min(1, Math.max(
|
|
3910
|
+
return Math.min(1, Math.max(it, tt / n));
|
|
3908
3911
|
}
|
|
3909
|
-
function
|
|
3912
|
+
function st(e, r) {
|
|
3910
3913
|
const o = Pr.rest, n = Pr[r];
|
|
3911
3914
|
if (r === "rest") return n;
|
|
3912
3915
|
const i = at(e);
|
|
@@ -3921,8 +3924,8 @@ function Y(e, r) {
|
|
|
3921
3924
|
const o = getComputedStyle(e).getPropertyValue(r).trim();
|
|
3922
3925
|
return o || (typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(r).trim());
|
|
3923
3926
|
}
|
|
3924
|
-
function
|
|
3925
|
-
const o =
|
|
3927
|
+
function lt(e, r) {
|
|
3928
|
+
const o = st(e, r);
|
|
3926
3929
|
return {
|
|
3927
3930
|
"--gloss-angle-1": `${o.angle1}deg`,
|
|
3928
3931
|
"--gloss-angle-2": `${o.angle2}deg`,
|
|
@@ -3930,14 +3933,14 @@ function ct(e, r) {
|
|
|
3930
3933
|
"--gloss-shine-y": o.shineY
|
|
3931
3934
|
};
|
|
3932
3935
|
}
|
|
3933
|
-
function
|
|
3934
|
-
const o = Y(e, "--gloss-inset-top"), n = Y(e, "--gloss-inset-bottom"), i = Y(e, "--gloss-elevation"), t = Y(e, "--gloss-elevation-hover") || i,
|
|
3936
|
+
function ct(e, r) {
|
|
3937
|
+
const o = Y(e, "--gloss-inset-top"), n = Y(e, "--gloss-inset-bottom"), i = Y(e, "--gloss-elevation"), t = Y(e, "--gloss-elevation-hover") || i, a = Y(e, "--gloss-inner-glow"), s = Y(e, "--gloss-glow-hover"), d = Y(e, "--gloss-press-inset"), c = `inset 0 0.425em 0.425em ${o}, inset 0 -0.225em 0.225em ${n}`, p = r === "hover" ? `0 0.125em 0.3125em -0.1875em ${t}` : r === "press" ? `0 0.04em 0.08em -0.0625em ${i}` : `0 0.0625em 0.125em -0.0625em ${i}`, m = r === "hover" ? `inset 0 0 0.1em 0.25em ${s}` : `inset 0 0 0.05em 0.1em ${a}`, w = r === "press" ? `inset 0 0.25em 0.06em 0 ${d}` : "inset 0 0.25em 0.06em 0 rgb(0 0 0 / 0)";
|
|
3935
3938
|
return `${c}, ${p}, ${m}, ${w}`;
|
|
3936
3939
|
}
|
|
3937
3940
|
function ue(e, r) {
|
|
3938
3941
|
return {
|
|
3939
|
-
...
|
|
3940
|
-
boxShadow:
|
|
3942
|
+
...lt(e, r),
|
|
3943
|
+
boxShadow: ct(e, r)
|
|
3941
3944
|
};
|
|
3942
3945
|
}
|
|
3943
3946
|
function ze(e) {
|
|
@@ -3962,15 +3965,15 @@ function ho(e) {
|
|
|
3962
3965
|
}
|
|
3963
3966
|
ze(e);
|
|
3964
3967
|
}
|
|
3965
|
-
function
|
|
3968
|
+
function ut(e) {
|
|
3966
3969
|
if (typeof document > "u") return;
|
|
3967
3970
|
document.querySelectorAll(`[${me}]`).forEach(ho);
|
|
3968
3971
|
}
|
|
3969
|
-
function
|
|
3972
|
+
function dt() {
|
|
3970
3973
|
K || typeof document > "u" || (K = new MutationObserver((e) => {
|
|
3971
3974
|
for (const r of e)
|
|
3972
3975
|
if (r.type === "attributes" && r.attributeName === "data-theme") {
|
|
3973
|
-
|
|
3976
|
+
ut();
|
|
3974
3977
|
return;
|
|
3975
3978
|
}
|
|
3976
3979
|
}), K.observe(document.documentElement, {
|
|
@@ -3978,26 +3981,26 @@ function ft() {
|
|
|
3978
3981
|
attributeFilter: ["data-theme"]
|
|
3979
3982
|
}));
|
|
3980
3983
|
}
|
|
3981
|
-
function
|
|
3984
|
+
function ft() {
|
|
3982
3985
|
K == null || K.disconnect(), K = null;
|
|
3983
3986
|
}
|
|
3984
|
-
function
|
|
3985
|
-
e.hasAttribute(me) || (e.setAttribute(me, ""), _e += 1,
|
|
3987
|
+
function gt(e) {
|
|
3988
|
+
e.hasAttribute(me) || (e.setAttribute(me, ""), _e += 1, dt(), ze(e));
|
|
3986
3989
|
}
|
|
3987
3990
|
function Mr(e) {
|
|
3988
|
-
e.hasAttribute(me) && (e.removeAttribute(me), _e = Math.max(0, _e - 1), _e === 0 &&
|
|
3991
|
+
e.hasAttribute(me) && (e.removeAttribute(me), _e = Math.max(0, _e - 1), _e === 0 && ft());
|
|
3989
3992
|
}
|
|
3990
3993
|
function vo(e, r = !0) {
|
|
3991
3994
|
let o = null;
|
|
3992
3995
|
return (n) => {
|
|
3993
3996
|
if (o && o !== n && (Mr(o), o = null), e.current = n, n && r) {
|
|
3994
|
-
|
|
3997
|
+
gt(n), o = n;
|
|
3995
3998
|
return;
|
|
3996
3999
|
}
|
|
3997
4000
|
o && (Mr(o), o = null);
|
|
3998
4001
|
};
|
|
3999
4002
|
}
|
|
4000
|
-
function
|
|
4003
|
+
function fa(e, r = !0) {
|
|
4001
4004
|
const o = Z(null), n = J(
|
|
4002
4005
|
() => vo(o, r),
|
|
4003
4006
|
[r]
|
|
@@ -4025,14 +4028,14 @@ function Re(e, r, o) {
|
|
|
4025
4028
|
onComplete: uo(e)
|
|
4026
4029
|
});
|
|
4027
4030
|
}
|
|
4028
|
-
function
|
|
4031
|
+
function mt(e, r = !1, o, n) {
|
|
4029
4032
|
if (Be())
|
|
4030
4033
|
return Promise.resolve();
|
|
4031
4034
|
const i = G();
|
|
4032
4035
|
if (!Ge("enablePressSqueeze"))
|
|
4033
4036
|
return n == null || n(), P() || Re(e, r, o), Promise.resolve();
|
|
4034
4037
|
A(e);
|
|
4035
|
-
const t =
|
|
4038
|
+
const t = ot(e), a = lo(), s = a * 0.3, d = a * 1, c = !P(), p = r && c, m = p ? "hover" : "rest", w = p ? lr(e) : 1;
|
|
4036
4039
|
return new Promise((h) => {
|
|
4037
4040
|
U(e, !0), R.timeline({
|
|
4038
4041
|
onComplete: () => {
|
|
@@ -4041,7 +4044,7 @@ function pt(e, r = !1, o, n) {
|
|
|
4041
4044
|
}).to(e, {
|
|
4042
4045
|
...ue(e, "press"),
|
|
4043
4046
|
scale: t,
|
|
4044
|
-
duration:
|
|
4047
|
+
duration: s,
|
|
4045
4048
|
ease: "power1.out",
|
|
4046
4049
|
overwrite: "auto"
|
|
4047
4050
|
}).add(() => {
|
|
@@ -4055,21 +4058,21 @@ function pt(e, r = !1, o, n) {
|
|
|
4055
4058
|
});
|
|
4056
4059
|
});
|
|
4057
4060
|
}
|
|
4058
|
-
function
|
|
4061
|
+
function pt(e, r, o) {
|
|
4059
4062
|
const n = o == null ? void 0 : o.liftScale, i = o == null ? void 0 : o.pointerInsideRef;
|
|
4060
4063
|
Q(() => {
|
|
4061
4064
|
if (!r) return;
|
|
4062
|
-
const
|
|
4063
|
-
|
|
4065
|
+
const s = e.current;
|
|
4066
|
+
s && ze(s);
|
|
4064
4067
|
}, [r, e]);
|
|
4065
4068
|
const t = D(
|
|
4066
|
-
(
|
|
4067
|
-
Re(
|
|
4069
|
+
(s) => {
|
|
4070
|
+
Re(s, !0, n);
|
|
4068
4071
|
},
|
|
4069
4072
|
[n]
|
|
4070
|
-
),
|
|
4071
|
-
(
|
|
4072
|
-
Re(
|
|
4073
|
+
), a = D(
|
|
4074
|
+
(s) => {
|
|
4075
|
+
Re(s, !1, n);
|
|
4073
4076
|
},
|
|
4074
4077
|
[n]
|
|
4075
4078
|
);
|
|
@@ -4079,53 +4082,53 @@ function bt(e, r, o) {
|
|
|
4079
4082
|
pointerInsideRef: i,
|
|
4080
4083
|
skipHover: P,
|
|
4081
4084
|
onEnter: t,
|
|
4082
|
-
onLeave:
|
|
4085
|
+
onLeave: a
|
|
4083
4086
|
});
|
|
4084
4087
|
}
|
|
4085
|
-
function
|
|
4088
|
+
function ga(e, r) {
|
|
4086
4089
|
const o = Z(!1), n = Z(!1), i = Z(!1), t = J(
|
|
4087
4090
|
() => vo(e, r),
|
|
4088
4091
|
[e, r]
|
|
4089
|
-
),
|
|
4092
|
+
), a = D(() => {
|
|
4090
4093
|
const h = e.current;
|
|
4091
4094
|
if (!h || !r || P()) return;
|
|
4092
|
-
const
|
|
4093
|
-
Re(h,
|
|
4094
|
-
}, [r, e]),
|
|
4095
|
+
const y = o.current || n.current;
|
|
4096
|
+
Re(h, y);
|
|
4097
|
+
}, [r, e]), s = pt(e, r, {
|
|
4095
4098
|
pointerInsideRef: o
|
|
4096
4099
|
});
|
|
4097
4100
|
Q(() => {
|
|
4098
4101
|
if (!r) return;
|
|
4099
4102
|
const h = e.current;
|
|
4100
4103
|
if (!h || typeof ResizeObserver > "u") return;
|
|
4101
|
-
const
|
|
4104
|
+
const y = new ResizeObserver(() => {
|
|
4102
4105
|
ho(h);
|
|
4103
4106
|
});
|
|
4104
|
-
return
|
|
4107
|
+
return y.observe(h), () => y.disconnect();
|
|
4105
4108
|
}, [r, e]);
|
|
4106
4109
|
const d = D(
|
|
4107
4110
|
(h) => {
|
|
4108
|
-
|
|
4111
|
+
s.onPointerOver(h), n.current && a();
|
|
4109
4112
|
},
|
|
4110
|
-
[
|
|
4113
|
+
[s, a]
|
|
4111
4114
|
), c = D(
|
|
4112
4115
|
(h) => {
|
|
4113
|
-
|
|
4116
|
+
s.onPointerOut(h), n.current && a();
|
|
4114
4117
|
},
|
|
4115
|
-
[
|
|
4118
|
+
[s, a]
|
|
4116
4119
|
), p = D(() => {
|
|
4117
|
-
r && (n.current = !0, !(i.current || o.current) &&
|
|
4118
|
-
}, [r,
|
|
4120
|
+
r && (n.current = !0, !(i.current || o.current) && a());
|
|
4121
|
+
}, [r, a]), m = D(
|
|
4119
4122
|
(h) => {
|
|
4120
4123
|
if (!r) return;
|
|
4121
|
-
const
|
|
4122
|
-
|
|
4124
|
+
const y = e.current;
|
|
4125
|
+
y && h.relatedTarget instanceof Node && y.contains(h.relatedTarget) || (n.current = !1, a());
|
|
4123
4126
|
},
|
|
4124
|
-
[r, e,
|
|
4127
|
+
[r, e, a]
|
|
4125
4128
|
), w = D(() => {
|
|
4126
4129
|
if (!r) return;
|
|
4127
4130
|
const h = e.current;
|
|
4128
|
-
!h || Be() || (o.current = !0, i.current = !0,
|
|
4131
|
+
!h || Be() || (o.current = !0, i.current = !0, mt(h, !0).finally(() => {
|
|
4129
4132
|
i.current = !1;
|
|
4130
4133
|
}));
|
|
4131
4134
|
}, [r, e]);
|
|
@@ -4140,31 +4143,31 @@ function ms(e, r) {
|
|
|
4140
4143
|
};
|
|
4141
4144
|
}
|
|
4142
4145
|
const ur = "animate-shadow origin-center";
|
|
4143
|
-
function
|
|
4146
|
+
function ma() {
|
|
4144
4147
|
return { hover: pe() };
|
|
4145
4148
|
}
|
|
4146
|
-
function
|
|
4147
|
-
return { idle: pe(), hover:
|
|
4149
|
+
function xo() {
|
|
4150
|
+
return { idle: pe(), hover: Kn() };
|
|
4148
4151
|
}
|
|
4149
|
-
function
|
|
4152
|
+
function pa(e, r, o = pe, n) {
|
|
4150
4153
|
Q(() => {
|
|
4151
|
-
r &&
|
|
4154
|
+
r && sr(e.current, o());
|
|
4152
4155
|
}, [r, e, o, n]);
|
|
4153
4156
|
}
|
|
4154
|
-
function
|
|
4155
|
-
const n = J(() =>
|
|
4157
|
+
function bt(e, r, o) {
|
|
4158
|
+
const n = J(() => xo(), []), i = (o == null ? void 0 : o.resolveIdle) ?? pe;
|
|
4156
4159
|
Q(() => {
|
|
4157
|
-
r &&
|
|
4160
|
+
r && sr(e.current, i());
|
|
4158
4161
|
}, [r, e, i, o == null ? void 0 : o.idleSyncKey]);
|
|
4159
4162
|
const t = D(
|
|
4160
|
-
(
|
|
4161
|
-
if (!r ||
|
|
4163
|
+
(s) => {
|
|
4164
|
+
if (!r || s.defaultPrevented) return;
|
|
4162
4165
|
const d = e.current;
|
|
4163
4166
|
!d || P() || Le(d, !0, o == null ? void 0 : o.liftScale, n);
|
|
4164
4167
|
},
|
|
4165
4168
|
[r, o == null ? void 0 : o.liftScale, n, e]
|
|
4166
|
-
),
|
|
4167
|
-
(
|
|
4169
|
+
), a = D(
|
|
4170
|
+
(s) => {
|
|
4168
4171
|
if (!r) return;
|
|
4169
4172
|
const d = e.current;
|
|
4170
4173
|
!d || P() || Le(d, !1, o == null ? void 0 : o.liftScale, n);
|
|
@@ -4175,15 +4178,15 @@ function ht(e, r, o) {
|
|
|
4175
4178
|
motionClass: r ? ur : "",
|
|
4176
4179
|
shadow: n,
|
|
4177
4180
|
onPointerEnter: t,
|
|
4178
|
-
onPointerLeave:
|
|
4181
|
+
onPointerLeave: a
|
|
4179
4182
|
};
|
|
4180
4183
|
}
|
|
4181
|
-
function
|
|
4182
|
-
const n = J(() =>
|
|
4184
|
+
function ba(e, r, o) {
|
|
4185
|
+
const n = J(() => xo(), []), i = (o == null ? void 0 : o.resolveIdle) ?? pe;
|
|
4183
4186
|
Q(() => {
|
|
4184
|
-
r &&
|
|
4187
|
+
r && sr(e.current, i());
|
|
4185
4188
|
}, [r, e, i, o == null ? void 0 : o.idleSyncKey]);
|
|
4186
|
-
const t =
|
|
4189
|
+
const t = nt(
|
|
4187
4190
|
e,
|
|
4188
4191
|
r,
|
|
4189
4192
|
o == null ? void 0 : o.pointerInsideRef,
|
|
@@ -4201,12 +4204,12 @@ const De = {
|
|
|
4201
4204
|
success: "text-success",
|
|
4202
4205
|
info: "text-info",
|
|
4203
4206
|
warning: "text-warning"
|
|
4204
|
-
},
|
|
4207
|
+
}, ht = {
|
|
4205
4208
|
danger: "bg-surface-tint-danger border-token",
|
|
4206
4209
|
success: "bg-surface-tint-success border-token",
|
|
4207
4210
|
info: "bg-surface-tint-info border-token",
|
|
4208
4211
|
warning: "bg-surface-tint-warning border-token"
|
|
4209
|
-
},
|
|
4212
|
+
}, vt = {
|
|
4210
4213
|
danger: "bg-danger border border-transparent text-danger-foreground",
|
|
4211
4214
|
success: "bg-success border border-transparent text-success-foreground",
|
|
4212
4215
|
info: "bg-info border border-transparent text-info-foreground",
|
|
@@ -4216,16 +4219,20 @@ const De = {
|
|
|
4216
4219
|
success: "text-success-foreground",
|
|
4217
4220
|
info: "text-info-foreground",
|
|
4218
4221
|
warning: "text-warning-foreground"
|
|
4219
|
-
},
|
|
4222
|
+
}, yt = {
|
|
4220
4223
|
danger: "border-token-danger",
|
|
4221
4224
|
success: "border-token-success",
|
|
4222
4225
|
info: "border-token-info",
|
|
4223
4226
|
warning: "border-token-warning"
|
|
4224
|
-
},
|
|
4227
|
+
}, wt = "surface-color-transition motion-reduce:transition-none", ha = "text-color-transition motion-reduce:transition-none", St = {
|
|
4225
4228
|
default: {
|
|
4226
4229
|
"focus-visible": "hover:bg-default-hover focus-visible:bg-default-hover",
|
|
4227
4230
|
"focus-within": "hover:bg-default-hover focus-within:bg-default-hover"
|
|
4228
4231
|
},
|
|
4232
|
+
"transparent-hover": {
|
|
4233
|
+
"focus-visible": "hover:bg-transparent-hover focus-visible:bg-transparent-hover",
|
|
4234
|
+
"focus-within": "hover:bg-transparent-hover focus-within:bg-transparent-hover"
|
|
4235
|
+
},
|
|
4229
4236
|
primary: {
|
|
4230
4237
|
"focus-visible": "hover:bg-primary-hover focus-visible:bg-primary-hover",
|
|
4231
4238
|
"focus-within": "hover:bg-primary-hover focus-within:bg-primary-hover"
|
|
@@ -4283,11 +4290,11 @@ const De = {
|
|
|
4283
4290
|
"focus-within": "hover:bg-success-fill-hover focus-within:bg-success-fill-hover"
|
|
4284
4291
|
}
|
|
4285
4292
|
};
|
|
4286
|
-
function
|
|
4287
|
-
return
|
|
4293
|
+
function yo(e = "default", r = "focus-visible") {
|
|
4294
|
+
return St[e][r];
|
|
4288
4295
|
}
|
|
4289
|
-
function
|
|
4290
|
-
return
|
|
4296
|
+
function Tt(e = "default") {
|
|
4297
|
+
return x(wt, yo(e, "focus-visible"));
|
|
4291
4298
|
}
|
|
4292
4299
|
const ie = {
|
|
4293
4300
|
default: "bg-surface text-foreground border-token",
|
|
@@ -4296,7 +4303,7 @@ const ie = {
|
|
|
4296
4303
|
secondary: "bg-secondary text-secondary-foreground border border-token",
|
|
4297
4304
|
ghost: "bg-transparent text-foreground border border-transparent",
|
|
4298
4305
|
gloss: ""
|
|
4299
|
-
},
|
|
4306
|
+
}, va = /* @__PURE__ */ new Set([
|
|
4300
4307
|
"default",
|
|
4301
4308
|
"primary",
|
|
4302
4309
|
"outline",
|
|
@@ -4327,25 +4334,25 @@ const ie = {
|
|
|
4327
4334
|
root: ie.gloss,
|
|
4328
4335
|
loaderText: "text-foreground"
|
|
4329
4336
|
}
|
|
4330
|
-
},
|
|
4337
|
+
}, kt = {
|
|
4331
4338
|
default: "",
|
|
4332
4339
|
danger: "gloss-btn-danger",
|
|
4333
4340
|
success: "gloss-btn-success",
|
|
4334
4341
|
info: "gloss-btn-info",
|
|
4335
4342
|
warning: "gloss-btn-warning"
|
|
4336
|
-
},
|
|
4343
|
+
}, xa = {
|
|
4337
4344
|
default: "",
|
|
4338
4345
|
danger: "[--color-focus-ring:var(--color-focus-ring-danger)]",
|
|
4339
4346
|
success: "[--color-focus-ring:var(--color-focus-ring-success)]",
|
|
4340
4347
|
info: "[--color-focus-ring:var(--color-focus-ring-info)]",
|
|
4341
4348
|
warning: "[--color-focus-ring:var(--color-focus-ring-warning)]"
|
|
4342
|
-
},
|
|
4349
|
+
}, Et = {
|
|
4343
4350
|
default: S("converge-ripple-neutral"),
|
|
4344
4351
|
danger: S("converge-ripple-danger"),
|
|
4345
4352
|
success: S("converge-ripple-success"),
|
|
4346
4353
|
info: S("converge-ripple-info"),
|
|
4347
4354
|
warning: S("converge-ripple-warning")
|
|
4348
|
-
},
|
|
4355
|
+
}, Dt = {
|
|
4349
4356
|
danger: S("converge-ripple-danger"),
|
|
4350
4357
|
success: S("converge-ripple-success"),
|
|
4351
4358
|
info: S("converge-ripple-info"),
|
|
@@ -4355,20 +4362,20 @@ const ie = {
|
|
|
4355
4362
|
base: "[&_svg]:icon-base",
|
|
4356
4363
|
mid: "[&_svg]:icon-mid",
|
|
4357
4364
|
large: "[&_svg]:icon-large"
|
|
4358
|
-
},
|
|
4365
|
+
}, ya = {
|
|
4359
4366
|
small: "small",
|
|
4360
4367
|
base: "base",
|
|
4361
4368
|
mid: "mid",
|
|
4362
4369
|
large: "large"
|
|
4363
|
-
},
|
|
4364
|
-
function
|
|
4370
|
+
}, wa = "relative overflow-hidden inline-flex items-center justify-center outline-none focus-ring disabled:pointer-events-none", Sa = "pointer-events-none absolute inset-0 z-0 overflow-hidden", Ct = "relative z-[1] grid w-full min-w-0 place-items-center", Ot = "origin-center", _t = "col-start-1 row-start-1 inline-flex w-full min-w-0 items-center justify-center gap-xsmall", It = "inline-flex shrink-0 items-center justify-center", Lt = "min-w-0 shrink", dr = "col-start-1 row-start-1 flex items-center justify-center", zt = "text-success", Rt = "text-danger", Ta = "animate-spin motion-reduce:animate-none", ka = "cursor-pointer", Ea = "opacity-50";
|
|
4371
|
+
function At(e, r) {
|
|
4365
4372
|
const { root: o } = wo[e];
|
|
4366
4373
|
return e === "outline" && r !== "default" ? "bg-transparent text-foreground" : o;
|
|
4367
4374
|
}
|
|
4368
|
-
function
|
|
4375
|
+
function Pt(e) {
|
|
4369
4376
|
return wo[e].loaderText;
|
|
4370
4377
|
}
|
|
4371
|
-
function
|
|
4378
|
+
function Mt(e, r) {
|
|
4372
4379
|
if (r === "default")
|
|
4373
4380
|
switch (e) {
|
|
4374
4381
|
case "default":
|
|
@@ -4376,11 +4383,11 @@ function Nt(e, r) {
|
|
|
4376
4383
|
case "primary":
|
|
4377
4384
|
return "primary";
|
|
4378
4385
|
case "outline":
|
|
4379
|
-
return "
|
|
4386
|
+
return "transparent-hover";
|
|
4380
4387
|
case "secondary":
|
|
4381
4388
|
return "secondary";
|
|
4382
4389
|
case "ghost":
|
|
4383
|
-
return "
|
|
4390
|
+
return "transparent-hover";
|
|
4384
4391
|
case "gloss":
|
|
4385
4392
|
return "default";
|
|
4386
4393
|
}
|
|
@@ -4398,15 +4405,15 @@ function Nt(e, r) {
|
|
|
4398
4405
|
return "default";
|
|
4399
4406
|
}
|
|
4400
4407
|
}
|
|
4401
|
-
function
|
|
4408
|
+
function Nt(e, r) {
|
|
4402
4409
|
if (r === "default") return "";
|
|
4403
4410
|
switch (e) {
|
|
4404
4411
|
case "default":
|
|
4405
|
-
return
|
|
4412
|
+
return x(ht[r], De[r]);
|
|
4406
4413
|
case "primary":
|
|
4407
|
-
return
|
|
4414
|
+
return vt[r];
|
|
4408
4415
|
case "outline":
|
|
4409
|
-
return
|
|
4416
|
+
return x(yt[r], De[r]);
|
|
4410
4417
|
case "secondary":
|
|
4411
4418
|
return De[r];
|
|
4412
4419
|
case "ghost":
|
|
@@ -4415,263 +4422,260 @@ function Bt(e, r) {
|
|
|
4415
4422
|
return "";
|
|
4416
4423
|
}
|
|
4417
4424
|
}
|
|
4418
|
-
function
|
|
4419
|
-
return o ? "" :
|
|
4425
|
+
function Bt(e, r, o) {
|
|
4426
|
+
return o ? "" : Tt(Mt(e, r));
|
|
4420
4427
|
}
|
|
4421
|
-
function
|
|
4422
|
-
return e === "primary" && r !== "default" ? xt[r] :
|
|
4428
|
+
function Da(e, r) {
|
|
4429
|
+
return e === "primary" && r !== "default" ? xt[r] : Pt(e);
|
|
4423
4430
|
}
|
|
4424
|
-
function
|
|
4425
|
-
return e === "primary" ? r === "default" ? S("converge-ripple-primary-fill") :
|
|
4431
|
+
function Fa(e, r) {
|
|
4432
|
+
return e === "primary" ? r === "default" ? S("converge-ripple-primary-fill") : Dt[r] : Et[r];
|
|
4426
4433
|
}
|
|
4427
|
-
const
|
|
4434
|
+
const Gt = {
|
|
4428
4435
|
small: "h-control-small",
|
|
4429
4436
|
base: "h-control-base",
|
|
4430
4437
|
mid: "h-control-mid",
|
|
4431
4438
|
large: "h-control-large"
|
|
4432
4439
|
};
|
|
4433
|
-
function
|
|
4440
|
+
function Ca(e, r = le[e].minWButton) {
|
|
4434
4441
|
const o = le[e];
|
|
4435
|
-
return
|
|
4442
|
+
return x(r, o.padX, o.padY);
|
|
4436
4443
|
}
|
|
4437
|
-
function
|
|
4444
|
+
function Oa(e, r = !1) {
|
|
4438
4445
|
const o = le[e];
|
|
4439
|
-
return
|
|
4440
|
-
|
|
4446
|
+
return x(
|
|
4447
|
+
Gt[e],
|
|
4441
4448
|
r ? "min-w-fit" : o.minWButton,
|
|
4442
4449
|
o.padX,
|
|
4443
4450
|
o.padY
|
|
4444
4451
|
);
|
|
4445
4452
|
}
|
|
4446
|
-
function
|
|
4453
|
+
function _a(e) {
|
|
4447
4454
|
const r = le[e];
|
|
4448
|
-
return
|
|
4455
|
+
return x(r.spinnerIcon, r.spinnerBorder);
|
|
4449
4456
|
}
|
|
4450
|
-
function
|
|
4457
|
+
function Ia() {
|
|
4451
4458
|
return "pointer-events-none absolute left-1/2 top-1/2 z-0 rounded-full";
|
|
4452
4459
|
}
|
|
4453
|
-
function
|
|
4460
|
+
function La() {
|
|
4454
4461
|
return "box-border inline-block rounded-full border-current border-t-transparent";
|
|
4455
4462
|
}
|
|
4456
|
-
function
|
|
4463
|
+
function za({
|
|
4457
4464
|
groupSegment: e,
|
|
4458
4465
|
slotClass: r,
|
|
4459
4466
|
className: o
|
|
4460
4467
|
}) {
|
|
4461
|
-
return
|
|
4462
|
-
|
|
4463
|
-
e &&
|
|
4468
|
+
return x(
|
|
4469
|
+
Ct,
|
|
4470
|
+
e && Ot,
|
|
4464
4471
|
r,
|
|
4465
4472
|
o
|
|
4466
4473
|
);
|
|
4467
4474
|
}
|
|
4468
|
-
function
|
|
4475
|
+
function Ra({
|
|
4469
4476
|
slotClass: e,
|
|
4470
4477
|
className: r,
|
|
4471
4478
|
layoutClass: o
|
|
4472
4479
|
}) {
|
|
4473
|
-
return
|
|
4480
|
+
return x(_t, e, o, r);
|
|
4474
4481
|
}
|
|
4475
|
-
function
|
|
4476
|
-
return
|
|
4482
|
+
function Aa(e, r) {
|
|
4483
|
+
return x(It, Ft[e], r);
|
|
4477
4484
|
}
|
|
4478
|
-
function
|
|
4479
|
-
return
|
|
4485
|
+
function Pa(e, r) {
|
|
4486
|
+
return x(Lt, e, r);
|
|
4480
4487
|
}
|
|
4481
|
-
function
|
|
4482
|
-
return
|
|
4488
|
+
function Ma(e, r) {
|
|
4489
|
+
return x(dr, e, r);
|
|
4483
4490
|
}
|
|
4484
|
-
function
|
|
4485
|
-
return
|
|
4491
|
+
function Na(e) {
|
|
4492
|
+
return x(dr, zt, e);
|
|
4486
4493
|
}
|
|
4487
|
-
function
|
|
4488
|
-
return
|
|
4494
|
+
function Ba(e) {
|
|
4495
|
+
return x(dr, Rt, e);
|
|
4489
4496
|
}
|
|
4490
|
-
function
|
|
4497
|
+
function Ga() {
|
|
4491
4498
|
return "shrink-0";
|
|
4492
4499
|
}
|
|
4493
|
-
const
|
|
4500
|
+
const Ht = {
|
|
4494
4501
|
default: S("converge-ripple-neutral"),
|
|
4495
4502
|
primary: S("converge-ripple-primary-fill"),
|
|
4496
4503
|
outline: S("converge-ripple-neutral"),
|
|
4497
4504
|
secondary: S("converge-ripple-neutral"),
|
|
4498
4505
|
ghost: S("converge-ripple-neutral"),
|
|
4499
4506
|
gloss: S("converge-ripple-neutral")
|
|
4500
|
-
},
|
|
4507
|
+
}, $t = {
|
|
4501
4508
|
danger: S("converge-ripple-danger"),
|
|
4502
4509
|
success: S("converge-ripple-success"),
|
|
4503
4510
|
info: S("converge-ripple-info"),
|
|
4504
4511
|
warning: S("converge-ripple-warning")
|
|
4505
4512
|
};
|
|
4506
|
-
function
|
|
4507
|
-
return r !== "default" ?
|
|
4513
|
+
function Ha(e, r = "default") {
|
|
4514
|
+
return r !== "default" ? $t[r] : Ht[e];
|
|
4508
4515
|
}
|
|
4509
|
-
function
|
|
4510
|
-
return e ?
|
|
4511
|
-
|
|
4512
|
-
|
|
4516
|
+
function $a(e, r, o, n, i) {
|
|
4517
|
+
return e ? x("gloss-btn", bo, kt[r]) : x(
|
|
4518
|
+
At(o, r),
|
|
4519
|
+
Nt(o, r),
|
|
4513
4520
|
!n && ur,
|
|
4514
|
-
|
|
4521
|
+
Bt(o, r, i)
|
|
4515
4522
|
);
|
|
4516
4523
|
}
|
|
4517
|
-
const
|
|
4524
|
+
const Wa = {
|
|
4518
4525
|
small: "small",
|
|
4519
4526
|
base: "base",
|
|
4520
4527
|
mid: "mid",
|
|
4521
4528
|
large: "large"
|
|
4522
|
-
},
|
|
4529
|
+
}, Wt = {
|
|
4523
4530
|
small: "h-control-small",
|
|
4524
4531
|
base: "h-control-base",
|
|
4525
4532
|
mid: "h-control-mid",
|
|
4526
4533
|
large: "h-control-large"
|
|
4527
4534
|
};
|
|
4528
|
-
function
|
|
4535
|
+
function Ut(e) {
|
|
4529
4536
|
const { padX: r, padY: o } = le[e];
|
|
4530
|
-
return
|
|
4537
|
+
return x(Wt[e], r, o);
|
|
4531
4538
|
}
|
|
4532
|
-
function
|
|
4539
|
+
function Vt(e) {
|
|
4533
4540
|
if (e == null) return "";
|
|
4534
4541
|
const { orientation: r, position: o } = e;
|
|
4535
|
-
return o === "only" ? "rounded-
|
|
4536
|
-
}
|
|
4537
|
-
function qt(e) {
|
|
4538
|
-
const { orientation: r, position: o } = e;
|
|
4539
|
-
return o === "only" ? "!rounded-base" : r === "horizontal" ? o === "first" ? "!rounded-l-base !rounded-r-none" : o === "middle" ? "!rounded-none" : "!rounded-r-base !rounded-l-none" : o === "first" ? "!rounded-t-base !rounded-b-none" : o === "middle" ? "!rounded-none" : "!rounded-b-base !rounded-t-none";
|
|
4542
|
+
return o === "only" ? "rounded-[inherit]" : r === "horizontal" ? o === "first" ? "rounded-l-[inherit] rounded-r-none" : o === "middle" ? "rounded-none" : "rounded-r-[inherit] rounded-l-none" : o === "first" ? "rounded-t-[inherit] rounded-b-none" : o === "middle" ? "rounded-none" : "rounded-b-[inherit] rounded-t-none";
|
|
4540
4543
|
}
|
|
4541
|
-
function
|
|
4544
|
+
function Ua(e) {
|
|
4542
4545
|
if (e == null || e.position === "only") return "";
|
|
4543
4546
|
const { orientation: r, position: o } = e;
|
|
4544
4547
|
return r === "horizontal" ? o === "first" ? "" : "border-l-0" : o === "first" ? "" : "border-t-0";
|
|
4545
4548
|
}
|
|
4546
|
-
function
|
|
4547
|
-
return e == null ? "" :
|
|
4548
|
-
So(e),
|
|
4549
|
-
qt(e),
|
|
4549
|
+
function qt(e) {
|
|
4550
|
+
return e == null ? "" : x(
|
|
4550
4551
|
"!border-0 [border:0!important] !shadow-none [box-shadow:none!important]",
|
|
4551
4552
|
"z-0 focus-visible:z-[2]"
|
|
4552
4553
|
);
|
|
4553
4554
|
}
|
|
4554
|
-
function
|
|
4555
|
-
return
|
|
4555
|
+
function jt(e) {
|
|
4556
|
+
return x(
|
|
4556
4557
|
"relative inline-flex shrink-0 select-none items-center justify-center border-token bg-surface text-muted",
|
|
4557
|
-
|
|
4558
|
-
e != null &&
|
|
4558
|
+
Vt(e),
|
|
4559
|
+
e != null && qt(e),
|
|
4559
4560
|
"z-0"
|
|
4560
4561
|
);
|
|
4561
4562
|
}
|
|
4562
|
-
function
|
|
4563
|
+
function Va({
|
|
4563
4564
|
orientation: e,
|
|
4564
4565
|
segmented: r,
|
|
4565
4566
|
variant: o,
|
|
4566
4567
|
className: n
|
|
4567
4568
|
}) {
|
|
4568
|
-
return
|
|
4569
|
+
return x(
|
|
4569
4570
|
"inline-flex text-left w-fit",
|
|
4570
|
-
!r &&
|
|
4571
|
-
|
|
4572
|
-
|
|
4571
|
+
!r && x(
|
|
4572
|
+
// Frame lives on ::after (keeps separators / focus paint clean). Radius +
|
|
4573
|
+
// border-color come from the root so `rounded-*` / `border-primary` on
|
|
4574
|
+
// classNames.root retarget the visible frame without `after:*` overrides.
|
|
4575
|
+
"relative rounded-base border-border",
|
|
4576
|
+
o === "gloss" ? "gloss-panel gloss-deep border-0 text-foreground" : "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border-solid after:[border-width:var(--border-width,1px)] after:border-inherit after:content-['']"
|
|
4573
4577
|
),
|
|
4574
|
-
|
|
4578
|
+
x(e === "horizontal" ? "flex-row flex-nowrap items-stretch" : "flex-col flex-nowrap items-stretch", r && "gap-xsmall"),
|
|
4575
4579
|
n
|
|
4576
4580
|
);
|
|
4577
4581
|
}
|
|
4578
|
-
function
|
|
4579
|
-
return
|
|
4582
|
+
function qa(e, r) {
|
|
4583
|
+
return x(
|
|
4580
4584
|
"pointer-events-none shrink-0",
|
|
4581
4585
|
e === "horizontal" ? "my-[var(--border-width)] self-stretch border-r-token" : "mx-[var(--border-width)] self-stretch border-b-token",
|
|
4582
4586
|
r
|
|
4583
4587
|
);
|
|
4584
4588
|
}
|
|
4585
|
-
function
|
|
4589
|
+
function ja({
|
|
4586
4590
|
groupSegment: e,
|
|
4587
4591
|
groupVariant: r,
|
|
4588
4592
|
buttonSize: o,
|
|
4589
4593
|
className: n
|
|
4590
4594
|
}) {
|
|
4591
|
-
return
|
|
4592
|
-
|
|
4595
|
+
return x(
|
|
4596
|
+
jt(e),
|
|
4593
4597
|
r === "gloss" && "bg-transparent text-foreground",
|
|
4594
4598
|
"inline-flex items-center",
|
|
4595
|
-
|
|
4599
|
+
Ut(o),
|
|
4596
4600
|
n
|
|
4597
4601
|
);
|
|
4598
4602
|
}
|
|
4599
|
-
const
|
|
4603
|
+
const Xa = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base", Xt = {
|
|
4600
4604
|
default: "bg-surface",
|
|
4601
4605
|
outline: "bg-transparent",
|
|
4602
4606
|
secondary: "bg-secondary"
|
|
4603
4607
|
};
|
|
4604
|
-
function
|
|
4608
|
+
function Yt(e) {
|
|
4605
4609
|
return e === "secondary" ? "secondary" : "default";
|
|
4606
4610
|
}
|
|
4607
|
-
function
|
|
4611
|
+
function Ya(e) {
|
|
4608
4612
|
return e === "gloss" ? "gloss" : e === "outline" ? "outline" : e === "secondary" ? "secondary" : "default";
|
|
4609
4613
|
}
|
|
4610
|
-
function
|
|
4614
|
+
function Ka({
|
|
4611
4615
|
variant: e
|
|
4612
4616
|
}) {
|
|
4613
|
-
return e === "gloss" ? "gloss-control" : e === "outline" ? "bg-transparent border-token" :
|
|
4617
|
+
return e === "gloss" ? "gloss-control" : e === "outline" ? "bg-transparent border-token" : x(Xt[e], "border-token");
|
|
4614
4618
|
}
|
|
4615
|
-
function
|
|
4616
|
-
return e ?
|
|
4619
|
+
function Za(e, r = "default", o = "default") {
|
|
4620
|
+
return e ? yo(Yt(o), "focus-within") : "";
|
|
4617
4621
|
}
|
|
4618
|
-
const
|
|
4622
|
+
const Ja = "field-shell-transition motion-reduce:transition-none", Kt = "focus-within-ring", Fe = "outline-solid outline-[length:var(--focus-ring-width,2px)] outline-offset-[length:var(--focus-ring-offset,0px)]", Ce = {
|
|
4619
4623
|
danger: "outline-[var(--color-focus-ring-danger)] focus-within:outline-[var(--color-focus-ring-danger)]",
|
|
4620
4624
|
success: "outline-[var(--color-focus-ring-success)] focus-within:outline-[var(--color-focus-ring-success)]",
|
|
4621
4625
|
info: "outline-[var(--color-focus-ring-info)] focus-within:outline-[var(--color-focus-ring-info)]",
|
|
4622
4626
|
warning: "outline-[var(--color-focus-ring-warning)] focus-within:outline-[var(--color-focus-ring-warning)]"
|
|
4623
|
-
},
|
|
4624
|
-
danger:
|
|
4625
|
-
success:
|
|
4626
|
-
info:
|
|
4627
|
-
warning:
|
|
4627
|
+
}, Zt = {
|
|
4628
|
+
danger: x(Fe, Ce.danger),
|
|
4629
|
+
success: x(Fe, Ce.success),
|
|
4630
|
+
info: x(Fe, Ce.info),
|
|
4631
|
+
warning: x(Fe, Ce.warning)
|
|
4628
4632
|
};
|
|
4629
|
-
function
|
|
4630
|
-
return e === "default" ?
|
|
4633
|
+
function Qa(e = "default") {
|
|
4634
|
+
return e === "default" ? Kt : Zt[e];
|
|
4631
4635
|
}
|
|
4632
|
-
function
|
|
4633
|
-
const o =
|
|
4636
|
+
function es(e, r) {
|
|
4637
|
+
const o = bt(e, r);
|
|
4634
4638
|
return {
|
|
4635
4639
|
shellHoverMotionClass: o.motionClass,
|
|
4636
4640
|
onShellPointerEnter: o.onPointerEnter,
|
|
4637
4641
|
onShellPointerLeave: o.onPointerLeave
|
|
4638
4642
|
};
|
|
4639
4643
|
}
|
|
4640
|
-
function
|
|
4644
|
+
function rs(e) {
|
|
4641
4645
|
const r = le[e];
|
|
4642
|
-
return
|
|
4646
|
+
return x(
|
|
4643
4647
|
"flex self-stretch shrink-0 items-center text-muted",
|
|
4644
4648
|
r.affixPadX,
|
|
4645
4649
|
r.affixText
|
|
4646
4650
|
);
|
|
4647
4651
|
}
|
|
4648
|
-
const
|
|
4652
|
+
const Jt = {
|
|
4649
4653
|
small: "min-w-control-small",
|
|
4650
4654
|
base: "min-w-control-base",
|
|
4651
4655
|
mid: "min-w-control-mid",
|
|
4652
4656
|
large: "min-w-control-large"
|
|
4653
4657
|
};
|
|
4654
|
-
function
|
|
4655
|
-
return
|
|
4658
|
+
function os(e) {
|
|
4659
|
+
return Jt[e];
|
|
4656
4660
|
}
|
|
4657
|
-
const
|
|
4661
|
+
const Qt = {
|
|
4658
4662
|
small: "--control-height-small",
|
|
4659
4663
|
base: "--control-height-base",
|
|
4660
4664
|
mid: "--control-height-mid",
|
|
4661
4665
|
large: "--control-height-large"
|
|
4662
|
-
},
|
|
4666
|
+
}, ei = {
|
|
4663
4667
|
small: 1.75,
|
|
4664
4668
|
base: 2.2,
|
|
4665
4669
|
mid: 2.5,
|
|
4666
4670
|
large: 3
|
|
4667
4671
|
}, Nr = /* @__PURE__ */ new Map();
|
|
4668
|
-
function
|
|
4672
|
+
function ri(e) {
|
|
4669
4673
|
if (typeof document > "u") return null;
|
|
4670
4674
|
const r = Nr.get(e);
|
|
4671
4675
|
if (r != null) return r;
|
|
4672
4676
|
try {
|
|
4673
4677
|
const o = document.createElement("div");
|
|
4674
|
-
o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = `var(${
|
|
4678
|
+
o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = `var(${Qt[e]})`, document.body.appendChild(o);
|
|
4675
4679
|
const n = o.getBoundingClientRect().height;
|
|
4676
4680
|
if (document.body.removeChild(o), n > 0)
|
|
4677
4681
|
return Nr.set(e, n), n;
|
|
@@ -4679,10 +4683,10 @@ function oi(e) {
|
|
|
4679
4683
|
}
|
|
4680
4684
|
return null;
|
|
4681
4685
|
}
|
|
4682
|
-
function
|
|
4683
|
-
return
|
|
4686
|
+
function ns(e, r = 16) {
|
|
4687
|
+
return ri(e) ?? r * ei[e];
|
|
4684
4688
|
}
|
|
4685
|
-
const
|
|
4689
|
+
const oi = {
|
|
4686
4690
|
convergeRipplePrimaryFill: "color-mix(in oklab, var(--color-primary-foreground) 38%, transparent)",
|
|
4687
4691
|
convergeRippleNeutral: "var(--color-primary-tint-strong)",
|
|
4688
4692
|
convergeRippleNeutralMuted: "color-mix(in oklab, var(--color-primary) 14%, transparent)",
|
|
@@ -4690,7 +4694,7 @@ const ni = {
|
|
|
4690
4694
|
convergeRippleSuccess: "color-mix(in oklab, var(--color-success-foreground) 38%, transparent)",
|
|
4691
4695
|
convergeRippleInfo: "color-mix(in oklab, var(--color-info-foreground) 38%, transparent)",
|
|
4692
4696
|
convergeRippleWarning: "color-mix(in oklab, var(--color-warning-foreground) 38%, transparent)"
|
|
4693
|
-
},
|
|
4697
|
+
}, ni = {
|
|
4694
4698
|
convergeRipplePrimaryFill: "color-mix(in oklab, var(--color-primary-foreground) 52%, var(--color-primary))",
|
|
4695
4699
|
convergeRippleNeutral: "var(--color-primary-tint-strong)",
|
|
4696
4700
|
convergeRippleNeutralMuted: "color-mix(in oklab, var(--color-primary) 14%, transparent)",
|
|
@@ -4698,7 +4702,7 @@ const ni = {
|
|
|
4698
4702
|
convergeRippleSuccess: "color-mix(in oklab, var(--color-success-foreground) 38%, transparent)",
|
|
4699
4703
|
convergeRippleInfo: "color-mix(in oklab, var(--color-info-foreground) 38%, transparent)",
|
|
4700
4704
|
convergeRippleWarning: "color-mix(in oklab, var(--color-warning-foreground) 38%, transparent)"
|
|
4701
|
-
},
|
|
4705
|
+
}, ti = {
|
|
4702
4706
|
background: "#0c0d10",
|
|
4703
4707
|
surface: "#171717",
|
|
4704
4708
|
secondary: "color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",
|
|
@@ -4707,7 +4711,8 @@ const ni = {
|
|
|
4707
4711
|
tertiaryForeground: "var(--color-foreground)",
|
|
4708
4712
|
border: "color-mix(in oklab, var(--color-foreground) 12%, transparent)",
|
|
4709
4713
|
foreground: "#f4f5f7",
|
|
4710
|
-
muted: "
|
|
4714
|
+
muted: "color-mix(in oklab, var(--color-foreground) 6%, var(--color-surface))",
|
|
4715
|
+
mutedForeground: "#858994",
|
|
4711
4716
|
primary: "#ebebef",
|
|
4712
4717
|
primaryForeground: "#0c0c0e",
|
|
4713
4718
|
primaryTint: "color-mix(in oklab, var(--color-primary) 20%, transparent)",
|
|
@@ -4729,6 +4734,7 @@ const ni = {
|
|
|
4729
4734
|
warningForeground: "#0c0c0e",
|
|
4730
4735
|
primaryHover: "color-mix(in oklab, var(--color-primary) 80%, var(--color-surface))",
|
|
4731
4736
|
defaultHover: "color-mix(in oklab, var(--color-foreground) 8%, var(--color-surface))",
|
|
4737
|
+
transparentHover: "color-mix(in oklab, var(--color-muted) 70%, transparent)",
|
|
4732
4738
|
secondaryHover: "color-mix(in oklab, var(--color-foreground) 6%, var(--color-secondary))",
|
|
4733
4739
|
tertiaryHover: "color-mix(in oklab, var(--color-foreground) 6%, var(--color-tertiary))",
|
|
4734
4740
|
surfaceTintDanger: "color-mix(in oklab, var(--color-danger) 15%, transparent)",
|
|
@@ -4743,8 +4749,8 @@ const ni = {
|
|
|
4743
4749
|
surfaceTintWarning: "color-mix(in oklab, var(--color-warning) 15%, transparent)",
|
|
4744
4750
|
surfaceTintWarningHover: "color-mix(in oklab, var(--color-warning) 25%, transparent)",
|
|
4745
4751
|
warningFillHover: "color-mix(in oklab, var(--color-warning) 80%, transparent)",
|
|
4746
|
-
...
|
|
4747
|
-
},
|
|
4752
|
+
...oi
|
|
4753
|
+
}, ii = {
|
|
4748
4754
|
background: "#f5f5f5",
|
|
4749
4755
|
surface: "#ffffff",
|
|
4750
4756
|
secondary: "color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",
|
|
@@ -4753,7 +4759,8 @@ const ni = {
|
|
|
4753
4759
|
tertiaryForeground: "var(--color-foreground)",
|
|
4754
4760
|
border: "color-mix(in oklab, var(--color-foreground) 12%, transparent)",
|
|
4755
4761
|
foreground: "#18181b",
|
|
4756
|
-
muted: "
|
|
4762
|
+
muted: "color-mix(in oklab, var(--color-foreground) 12%, var(--color-surface))",
|
|
4763
|
+
mutedForeground: "#646467",
|
|
4757
4764
|
primary: "#18181b",
|
|
4758
4765
|
primaryForeground: "#fafafa",
|
|
4759
4766
|
primaryTint: "color-mix(in oklab, var(--color-primary) 20%, transparent)",
|
|
@@ -4775,6 +4782,7 @@ const ni = {
|
|
|
4775
4782
|
warningForeground: "#0c0c0e",
|
|
4776
4783
|
primaryHover: "color-mix(in oklab, var(--color-primary) 90%, var(--color-surface))",
|
|
4777
4784
|
defaultHover: "color-mix(in oklab, var(--color-foreground) 8%, var(--color-surface))",
|
|
4785
|
+
transparentHover: "color-mix(in oklab, var(--color-muted) 70%, transparent)",
|
|
4778
4786
|
secondaryHover: "color-mix(in oklab, var(--color-foreground) 6%, var(--color-secondary))",
|
|
4779
4787
|
tertiaryHover: "color-mix(in oklab, var(--color-foreground) 6%, var(--color-tertiary))",
|
|
4780
4788
|
surfaceTintDanger: "color-mix(in oklab, var(--color-danger) 15%, transparent)",
|
|
@@ -4789,7 +4797,7 @@ const ni = {
|
|
|
4789
4797
|
surfaceTintWarning: "color-mix(in oklab, var(--color-warning) 15%, transparent)",
|
|
4790
4798
|
surfaceTintWarningHover: "color-mix(in oklab, var(--color-warning) 25%, transparent)",
|
|
4791
4799
|
warningFillHover: "color-mix(in oklab, var(--color-warning) 80%, transparent)",
|
|
4792
|
-
...
|
|
4800
|
+
...ni
|
|
4793
4801
|
}, fr = {
|
|
4794
4802
|
background: "--color-background",
|
|
4795
4803
|
surface: "--color-surface",
|
|
@@ -4800,6 +4808,7 @@ const ni = {
|
|
|
4800
4808
|
border: "--color-border",
|
|
4801
4809
|
foreground: "--color-foreground",
|
|
4802
4810
|
muted: "--color-muted",
|
|
4811
|
+
mutedForeground: "--color-muted-foreground",
|
|
4803
4812
|
primary: "--color-primary",
|
|
4804
4813
|
primaryForeground: "--color-primary-foreground",
|
|
4805
4814
|
primaryTint: "--color-primary-tint",
|
|
@@ -4821,6 +4830,7 @@ const ni = {
|
|
|
4821
4830
|
warningForeground: "--color-warning-foreground",
|
|
4822
4831
|
primaryHover: "--color-primary-hover",
|
|
4823
4832
|
defaultHover: "--color-default-hover",
|
|
4833
|
+
transparentHover: "--color-transparent-hover",
|
|
4824
4834
|
secondaryHover: "--color-secondary-hover",
|
|
4825
4835
|
tertiaryHover: "--color-tertiary-hover",
|
|
4826
4836
|
surfaceTintDanger: "--color-surface-tint-danger",
|
|
@@ -4854,53 +4864,53 @@ const ni = {
|
|
|
4854
4864
|
shadowSize: 1,
|
|
4855
4865
|
toastScrimSize: 1,
|
|
4856
4866
|
toastScrimDensity: 1
|
|
4857
|
-
},
|
|
4867
|
+
}, si = (() => {
|
|
4858
4868
|
const { pressSqueezeScale: e, ...r } = ir;
|
|
4859
4869
|
return {
|
|
4860
4870
|
...r,
|
|
4861
4871
|
pressSqueezeMid: e[1]
|
|
4862
4872
|
};
|
|
4863
|
-
})(),
|
|
4873
|
+
})(), li = W.fontFamilySans, ci = W.fontFamilyMono, ui = 0.9375, di = 0.875, fi = 0.25;
|
|
4864
4874
|
function ge(e) {
|
|
4865
4875
|
const r = Math.round(e * 1e8) / 1e8;
|
|
4866
4876
|
return String(r);
|
|
4867
4877
|
}
|
|
4868
|
-
function
|
|
4878
|
+
function se(e) {
|
|
4869
4879
|
if (e === 0) return "0rem";
|
|
4870
|
-
const r = ge(e *
|
|
4880
|
+
const r = ge(e * ui), o = ge(e * di), n = ge(e * fi), i = ge(e);
|
|
4871
4881
|
return `clamp(${r}rem, ${o}rem + ${n}vw, ${i}rem)`;
|
|
4872
4882
|
}
|
|
4873
4883
|
function Oe(e) {
|
|
4874
4884
|
return e === 0 ? "0" : `calc(${e}px * var(--shadow-size))`;
|
|
4875
4885
|
}
|
|
4876
|
-
function
|
|
4886
|
+
function gi(e, r, o, n, i) {
|
|
4877
4887
|
return `${Oe(e)} ${Oe(r)} ${Oe(o)} ${Oe(n)} rgb(0 0 0 / ${ge(i)})`;
|
|
4878
4888
|
}
|
|
4879
4889
|
function $(e, r, o) {
|
|
4880
|
-
const n =
|
|
4881
|
-
return
|
|
4890
|
+
const n = Cn[r][e] * o, [i, t, a, s] = On[e][0];
|
|
4891
|
+
return gi(i, t, a, s, n);
|
|
4882
4892
|
}
|
|
4883
|
-
function
|
|
4893
|
+
function mi(e, r, o, n) {
|
|
4884
4894
|
e.style.setProperty("--shadow-size", String(n)), e.style.setProperty("--shadow-none", $("base", r, 0)), e.style.setProperty("--shadow-base", $("base", r, o)), e.style.setProperty("--shadow-mid", $("mid", r, o)), e.style.setProperty("--shadow-large", $("large", r, o));
|
|
4885
4895
|
}
|
|
4886
|
-
function
|
|
4896
|
+
function pi(e) {
|
|
4887
4897
|
e.style.removeProperty("--shadow-size"), e.style.removeProperty("--shadow-none"), e.style.removeProperty("--shadow-base"), e.style.removeProperty("--shadow-mid"), e.style.removeProperty("--shadow-large");
|
|
4888
4898
|
}
|
|
4889
|
-
function
|
|
4899
|
+
function bi(e, r) {
|
|
4890
4900
|
for (const o of Object.keys(ce)) {
|
|
4891
|
-
const { size: n, line: i } = ce[o], t = n * r,
|
|
4901
|
+
const { size: n, line: i } = ce[o], t = n * r, a = i * r;
|
|
4892
4902
|
e.style.setProperty(`--text-scale-${o}`, `${t}rem`), e.style.setProperty(
|
|
4893
4903
|
`--text-scale-${o}--line-height`,
|
|
4894
|
-
`calc(${
|
|
4904
|
+
`calc(${a}rem / ${t}rem)`
|
|
4895
4905
|
);
|
|
4896
4906
|
}
|
|
4897
4907
|
}
|
|
4898
|
-
function
|
|
4908
|
+
function hi(e) {
|
|
4899
4909
|
for (const r of Object.keys(ce))
|
|
4900
4910
|
e.style.removeProperty(`--text-scale-${r}`), e.style.removeProperty(`--text-scale-${r}--line-height`);
|
|
4901
4911
|
}
|
|
4902
|
-
function
|
|
4903
|
-
for (const [n, i] of Object.entries(
|
|
4912
|
+
function vi(e, r, o) {
|
|
4913
|
+
for (const [n, i] of Object.entries(ar))
|
|
4904
4914
|
L(e, i, r[n] !== o[n] ? String(r[n]) : null);
|
|
4905
4915
|
}
|
|
4906
4916
|
function L(e, r, o) {
|
|
@@ -4909,16 +4919,16 @@ function L(e, r, o) {
|
|
|
4909
4919
|
function Ae(e) {
|
|
4910
4920
|
return e === 0 ? "0px" : `${e}px`;
|
|
4911
4921
|
}
|
|
4912
|
-
function
|
|
4922
|
+
function So() {
|
|
4913
4923
|
return {
|
|
4914
|
-
dark: { ...
|
|
4915
|
-
light: { ...
|
|
4924
|
+
dark: { ...ti },
|
|
4925
|
+
light: { ...ii }
|
|
4916
4926
|
};
|
|
4917
4927
|
}
|
|
4918
4928
|
function gr(e) {
|
|
4919
4929
|
var n, i;
|
|
4920
4930
|
if ((n = e.modePalettes) != null && n.dark && ((i = e.modePalettes) != null && i.light)) return e;
|
|
4921
|
-
const r =
|
|
4931
|
+
const r = So(), o = { ...e.colors };
|
|
4922
4932
|
return {
|
|
4923
4933
|
...e,
|
|
4924
4934
|
modePalettes: {
|
|
@@ -4927,7 +4937,7 @@ function gr(e) {
|
|
|
4927
4937
|
}
|
|
4928
4938
|
};
|
|
4929
4939
|
}
|
|
4930
|
-
function
|
|
4940
|
+
function ts(e, r) {
|
|
4931
4941
|
const o = gr(e), n = o.modePalettes[r];
|
|
4932
4942
|
return {
|
|
4933
4943
|
...o,
|
|
@@ -4935,7 +4945,7 @@ function ia(e, r) {
|
|
|
4935
4945
|
colors: { ...n }
|
|
4936
4946
|
};
|
|
4937
4947
|
}
|
|
4938
|
-
function
|
|
4948
|
+
function is(e, r, o) {
|
|
4939
4949
|
const n = gr(e), i = { ...n.colors, [r]: o };
|
|
4940
4950
|
return {
|
|
4941
4951
|
...n,
|
|
@@ -4947,14 +4957,14 @@ function sa(e, r, o) {
|
|
|
4947
4957
|
};
|
|
4948
4958
|
}
|
|
4949
4959
|
function be(e = "dark") {
|
|
4950
|
-
const r =
|
|
4960
|
+
const r = So(), o = r[e];
|
|
4951
4961
|
return {
|
|
4952
4962
|
theme: e,
|
|
4953
4963
|
...ai,
|
|
4954
|
-
...
|
|
4955
|
-
fontFamily:
|
|
4956
|
-
fontFamilyMono:
|
|
4957
|
-
fontWeights: { ...
|
|
4964
|
+
...si,
|
|
4965
|
+
fontFamily: li,
|
|
4966
|
+
fontFamilyMono: ci,
|
|
4967
|
+
fontWeights: { ...qn },
|
|
4958
4968
|
colors: { ...o },
|
|
4959
4969
|
modePalettes: r
|
|
4960
4970
|
};
|
|
@@ -4969,7 +4979,7 @@ const xi = [
|
|
|
4969
4979
|
"--motion-surface-duration",
|
|
4970
4980
|
"--font-family-sans",
|
|
4971
4981
|
"--font-family-mono",
|
|
4972
|
-
...Object.values(
|
|
4982
|
+
...Object.values(ar),
|
|
4973
4983
|
"--shadow-size",
|
|
4974
4984
|
"--shadow-none",
|
|
4975
4985
|
"--shadow-base",
|
|
@@ -4983,7 +4993,7 @@ const xi = [
|
|
|
4983
4993
|
]),
|
|
4984
4994
|
...Object.values(fr)
|
|
4985
4995
|
];
|
|
4986
|
-
function
|
|
4996
|
+
function as(e) {
|
|
4987
4997
|
if (typeof document > "u") return;
|
|
4988
4998
|
const r = e ?? document.documentElement;
|
|
4989
4999
|
for (const o of xi)
|
|
@@ -4991,7 +5001,7 @@ function aa(e) {
|
|
|
4991
5001
|
delete r.dataset.theme;
|
|
4992
5002
|
}
|
|
4993
5003
|
let Br = "";
|
|
4994
|
-
function
|
|
5004
|
+
function yi(e, r) {
|
|
4995
5005
|
const o = JSON.stringify({
|
|
4996
5006
|
interactiveDuration: e.interactiveDuration,
|
|
4997
5007
|
interactiveEase: e.interactiveEase,
|
|
@@ -5042,7 +5052,7 @@ function wi(e, r) {
|
|
|
5042
5052
|
enablePaginationFlip: e.enablePaginationFlip,
|
|
5043
5053
|
enableSelectionFill: e.enableSelectionFill
|
|
5044
5054
|
});
|
|
5045
|
-
o !== Br && (Br = o,
|
|
5055
|
+
o !== Br && (Br = o, Bn({
|
|
5046
5056
|
interactiveDuration: e.interactiveDuration,
|
|
5047
5057
|
interactiveEase: e.interactiveEase,
|
|
5048
5058
|
hoverLiftEase: e.hoverLiftEase,
|
|
@@ -5091,25 +5101,25 @@ function wi(e, r) {
|
|
|
5091
5101
|
enableTabsIndicator: e.enableTabsIndicator,
|
|
5092
5102
|
enablePaginationFlip: e.enablePaginationFlip,
|
|
5093
5103
|
enableSelectionFill: e.enableSelectionFill
|
|
5094
|
-
}),
|
|
5104
|
+
}), so(r, {
|
|
5095
5105
|
surfaceTransitionDuration: e.surfaceTransitionDuration
|
|
5096
5106
|
}));
|
|
5097
5107
|
}
|
|
5098
|
-
function
|
|
5108
|
+
function wi(e, r) {
|
|
5099
5109
|
if (typeof document > "u") return;
|
|
5100
5110
|
const o = r ?? document.documentElement, n = be(e.theme);
|
|
5101
5111
|
e.theme === "light" ? o.dataset.theme = "light" : delete o.dataset.theme, L(
|
|
5102
5112
|
o,
|
|
5103
5113
|
"--space",
|
|
5104
|
-
e.space !== n.space ?
|
|
5114
|
+
e.space !== n.space ? se(e.space) : null
|
|
5105
5115
|
), L(
|
|
5106
5116
|
o,
|
|
5107
5117
|
"--size",
|
|
5108
|
-
e.size !== n.size ?
|
|
5118
|
+
e.size !== n.size ? se(e.size) : null
|
|
5109
5119
|
), L(
|
|
5110
5120
|
o,
|
|
5111
5121
|
"--radius",
|
|
5112
|
-
e.radius !== n.radius ?
|
|
5122
|
+
e.radius !== n.radius ? se(e.radius) : null
|
|
5113
5123
|
), L(
|
|
5114
5124
|
o,
|
|
5115
5125
|
"--border-width",
|
|
@@ -5130,7 +5140,7 @@ function Si(e, r) {
|
|
|
5130
5140
|
o,
|
|
5131
5141
|
"--font-family-mono",
|
|
5132
5142
|
e.fontFamilyMono !== n.fontFamilyMono ? e.fontFamilyMono : null
|
|
5133
|
-
),
|
|
5143
|
+
), vi(o, e.fontWeights, n.fontWeights), yi(e, o), e.textScale !== n.textScale ? bi(o, e.textScale) : hi(o), e.shadowStrength !== n.shadowStrength || e.shadowSize !== n.shadowSize ? mi(o, e.theme, e.shadowStrength, e.shadowSize) : pi(o), L(
|
|
5134
5144
|
o,
|
|
5135
5145
|
"--toast-scrim-size",
|
|
5136
5146
|
e.toastScrimSize !== n.toastScrimSize ? String(e.toastScrimSize) : null
|
|
@@ -5146,10 +5156,10 @@ function Si(e, r) {
|
|
|
5146
5156
|
e.colors[i] !== n.colors[i] ? e.colors[i] : null
|
|
5147
5157
|
);
|
|
5148
5158
|
}
|
|
5149
|
-
function
|
|
5159
|
+
function Si(e) {
|
|
5150
5160
|
const r = be(e.theme), o = [":root {"];
|
|
5151
|
-
e.space !== r.space && o.push(` --space: ${
|
|
5152
|
-
for (const [n, i] of Object.entries(
|
|
5161
|
+
e.space !== r.space && o.push(` --space: ${se(e.space)};`), e.size !== r.size && o.push(` --size: ${se(e.size)};`), e.radius !== r.radius && o.push(` --radius: ${se(e.radius)};`), e.borderWidth !== r.borderWidth && o.push(` --border-width: ${Ae(e.borderWidth)};`), e.focusRingWidth !== r.focusRingWidth && o.push(` --focus-ring-width: ${Ae(e.focusRingWidth)};`), e.focusRingOffset !== r.focusRingOffset && o.push(` --focus-ring-offset: ${e.focusRingOffset}px;`), e.fontFamily !== r.fontFamily && o.push(` --font-family-sans: ${e.fontFamily};`), e.fontFamilyMono !== r.fontFamilyMono && o.push(` --font-family-mono: ${e.fontFamilyMono};`);
|
|
5162
|
+
for (const [n, i] of Object.entries(ar))
|
|
5153
5163
|
e.fontWeights[n] !== r.fontWeights[n] && o.push(` ${i}: ${e.fontWeights[n]};`);
|
|
5154
5164
|
if ((e.shadowStrength !== r.shadowStrength || e.shadowSize !== r.shadowSize) && (o.push(` --shadow-size: ${e.shadowSize};`), o.push(` --shadow-none: ${$("base", e.theme, 0)};`), o.push(
|
|
5155
5165
|
` --shadow-base: ${$("base", e.theme, e.shadowStrength)};`
|
|
@@ -5159,9 +5169,9 @@ function Ti(e) {
|
|
|
5159
5169
|
` --shadow-large: ${$("large", e.theme, e.shadowStrength)};`
|
|
5160
5170
|
)), e.toastScrimSize !== r.toastScrimSize && o.push(` --toast-scrim-size: ${e.toastScrimSize};`), e.toastScrimDensity !== r.toastScrimDensity && o.push(` --toast-scrim-density: ${e.toastScrimDensity};`), e.surfaceTransitionDuration !== r.surfaceTransitionDuration && o.push(` --motion-surface-duration: ${e.surfaceTransitionDuration}ms;`), e.textScale !== r.textScale)
|
|
5161
5171
|
for (const n of Object.keys(ce)) {
|
|
5162
|
-
const { size: i, line: t } = ce[n],
|
|
5163
|
-
o.push(` --text-scale-${n}: ${
|
|
5164
|
-
` --text-scale-${n}--line-height: calc(${
|
|
5172
|
+
const { size: i, line: t } = ce[n], a = i * e.textScale, s = t * e.textScale;
|
|
5173
|
+
o.push(` --text-scale-${n}: ${a}rem;`), o.push(
|
|
5174
|
+
` --text-scale-${n}--line-height: calc(${s}rem / ${a}rem);`
|
|
5165
5175
|
);
|
|
5166
5176
|
}
|
|
5167
5177
|
for (const [n, i] of Object.entries(fr))
|
|
@@ -5169,13 +5179,13 @@ function Ti(e) {
|
|
|
5169
5179
|
return o.length === 1 && o.push(" /* (no overrides vs kit defaults) */"), o.push("}"), e.theme === "light" && (o.push("", "/* Optional: light theme via data-attribute */"), o.push('/* <html data-theme="light"> */')), o.join(`
|
|
5170
5180
|
`);
|
|
5171
5181
|
}
|
|
5172
|
-
const
|
|
5173
|
-
function
|
|
5174
|
-
var
|
|
5175
|
-
const o = be(r), n = e.tokens ?? {}, i = (
|
|
5182
|
+
const To = "burne-ui-theme";
|
|
5183
|
+
function ko(e, r) {
|
|
5184
|
+
var s;
|
|
5185
|
+
const o = be(r), n = e.tokens ?? {}, i = (s = e.colors) == null ? void 0 : s[r], t = i ? { ...o.colors, ...i } : o.colors, a = n.shadowStrength ?? o.shadowStrength;
|
|
5176
5186
|
return {
|
|
5177
5187
|
...o,
|
|
5178
|
-
...
|
|
5188
|
+
...Do({
|
|
5179
5189
|
space: n.space,
|
|
5180
5190
|
size: n.size,
|
|
5181
5191
|
radius: n.radius,
|
|
@@ -5189,7 +5199,7 @@ function Eo(e, r) {
|
|
|
5189
5199
|
toastScrimSize: n.toastScrimSize,
|
|
5190
5200
|
toastScrimDensity: n.toastScrimDensity
|
|
5191
5201
|
}),
|
|
5192
|
-
shadowStrength:
|
|
5202
|
+
shadowStrength: a,
|
|
5193
5203
|
fontWeights: n.fontWeights ? { ...o.fontWeights, ...n.fontWeights } : o.fontWeights,
|
|
5194
5204
|
colors: t,
|
|
5195
5205
|
modePalettes: {
|
|
@@ -5198,7 +5208,7 @@ function Eo(e, r) {
|
|
|
5198
5208
|
}
|
|
5199
5209
|
};
|
|
5200
5210
|
}
|
|
5201
|
-
function
|
|
5211
|
+
function Ti(e) {
|
|
5202
5212
|
const r = gr(e), o = {
|
|
5203
5213
|
interactiveDuration: r.interactiveDuration,
|
|
5204
5214
|
interactiveEase: r.interactiveEase,
|
|
@@ -5275,36 +5285,36 @@ function ki(e) {
|
|
|
5275
5285
|
toast: !0
|
|
5276
5286
|
};
|
|
5277
5287
|
}
|
|
5278
|
-
function
|
|
5288
|
+
function ki(e, r) {
|
|
5279
5289
|
var n;
|
|
5280
5290
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean")
|
|
5281
5291
|
return { value: e };
|
|
5282
5292
|
const o = ((n = e.values) == null ? void 0 : n[r]) ?? e.value;
|
|
5283
5293
|
return o === void 0 ? null : { value: o, unit: e.unit };
|
|
5284
5294
|
}
|
|
5285
|
-
function
|
|
5295
|
+
function Eo(e, r) {
|
|
5286
5296
|
const o = {};
|
|
5287
5297
|
if (!e) return o;
|
|
5288
5298
|
for (const [n, i] of Object.entries(e)) {
|
|
5289
|
-
const t =
|
|
5299
|
+
const t = ki(i, r);
|
|
5290
5300
|
t && (o[n] = typeof t.value == "number" && t.unit ? `${t.value}${t.unit}` : String(t.value));
|
|
5291
5301
|
}
|
|
5292
5302
|
return o;
|
|
5293
5303
|
}
|
|
5294
5304
|
const Pe = /* @__PURE__ */ new WeakMap();
|
|
5295
|
-
function
|
|
5296
|
-
const n =
|
|
5297
|
-
t.forEach((
|
|
5298
|
-
i.has(
|
|
5305
|
+
function Ei(e, r, o) {
|
|
5306
|
+
const n = Eo(e, o), i = new Set(Object.keys(n)), t = Pe.get(r) ?? /* @__PURE__ */ new Map();
|
|
5307
|
+
t.forEach((a, s) => {
|
|
5308
|
+
i.has(s) || (a.value ? r.style.setProperty(s, a.value, a.priority) : r.style.removeProperty(s), t.delete(s));
|
|
5299
5309
|
});
|
|
5300
|
-
for (const [
|
|
5301
|
-
t.has(
|
|
5302
|
-
value: r.style.getPropertyValue(
|
|
5303
|
-
priority: r.style.getPropertyPriority(
|
|
5304
|
-
}), r.style.setProperty(
|
|
5310
|
+
for (const [a, s] of Object.entries(n))
|
|
5311
|
+
t.has(a) || t.set(a, {
|
|
5312
|
+
value: r.style.getPropertyValue(a),
|
|
5313
|
+
priority: r.style.getPropertyPriority(a)
|
|
5314
|
+
}), r.style.setProperty(a, s);
|
|
5305
5315
|
Pe.set(r, t);
|
|
5306
5316
|
}
|
|
5307
|
-
function
|
|
5317
|
+
function ss(e) {
|
|
5308
5318
|
var o;
|
|
5309
5319
|
if (typeof document > "u") return;
|
|
5310
5320
|
const r = e ?? document.documentElement;
|
|
@@ -5312,14 +5322,14 @@ function la(e) {
|
|
|
5312
5322
|
n.value ? r.style.setProperty(i, n.value, n.priority) : r.style.removeProperty(i);
|
|
5313
5323
|
}), Pe.delete(r);
|
|
5314
5324
|
}
|
|
5315
|
-
function
|
|
5325
|
+
function Di(e) {
|
|
5316
5326
|
return {
|
|
5317
|
-
...
|
|
5318
|
-
storageKey: (e == null ? void 0 : e.storageKey) === void 0 ?
|
|
5327
|
+
...Ti(be((e == null ? void 0 : e.theme) ?? "dark")),
|
|
5328
|
+
storageKey: (e == null ? void 0 : e.storageKey) === void 0 ? To : e.storageKey
|
|
5319
5329
|
};
|
|
5320
5330
|
}
|
|
5321
|
-
function
|
|
5322
|
-
const r = (e == null ? void 0 : e.exportName) ?? "burneTheme", o = Me(
|
|
5331
|
+
function ls(e) {
|
|
5332
|
+
const r = (e == null ? void 0 : e.exportName) ?? "burneTheme", o = Me(Di(), 0);
|
|
5323
5333
|
return [
|
|
5324
5334
|
"/**",
|
|
5325
5335
|
" * Burne UI theme config (starter snapshot).",
|
|
@@ -5341,11 +5351,11 @@ function ca(e) {
|
|
|
5341
5351
|
].join(`
|
|
5342
5352
|
`);
|
|
5343
5353
|
}
|
|
5344
|
-
function
|
|
5354
|
+
function cs(e, r = "dark") {
|
|
5345
5355
|
const o = be(r);
|
|
5346
5356
|
return e ? {
|
|
5347
5357
|
...o,
|
|
5348
|
-
...
|
|
5358
|
+
...Do({
|
|
5349
5359
|
space: e.space,
|
|
5350
5360
|
size: e.size,
|
|
5351
5361
|
radius: e.radius,
|
|
@@ -5363,7 +5373,7 @@ function ua(e, r = "dark") {
|
|
|
5363
5373
|
fontWeights: e.fontWeights ? { ...o.fontWeights, ...e.fontWeights } : o.fontWeights
|
|
5364
5374
|
} : o;
|
|
5365
5375
|
}
|
|
5366
|
-
function
|
|
5376
|
+
function Do(e) {
|
|
5367
5377
|
const r = {};
|
|
5368
5378
|
for (const [o, n] of Object.entries(e))
|
|
5369
5379
|
n !== void 0 && (r[o] = n);
|
|
@@ -5371,27 +5381,27 @@ function Co(e) {
|
|
|
5371
5381
|
}
|
|
5372
5382
|
function Fi(e, r, o = mr(e.theme)) {
|
|
5373
5383
|
if (typeof document > "u") return;
|
|
5374
|
-
const n = r ?? document.documentElement, i =
|
|
5384
|
+
const n = r ?? document.documentElement, i = ko(e, o);
|
|
5375
5385
|
if (e.motion) {
|
|
5376
5386
|
const t = e.motion;
|
|
5377
5387
|
t.interactiveDuration !== void 0 && (i.interactiveDuration = t.interactiveDuration), t.interactiveEase !== void 0 && (i.interactiveEase = t.interactiveEase), t.hoverLiftEase !== void 0 && (i.hoverLiftEase = t.hoverLiftEase), t.tooltipDuration !== void 0 && (i.tooltipDuration = t.tooltipDuration), t.modalDuration !== void 0 && (i.modalDuration = t.modalDuration), t.switchThumbDuration !== void 0 && (i.switchThumbDuration = t.switchThumbDuration), t.switchThumbEase !== void 0 && (i.switchThumbEase = t.switchThumbEase), t.selectionFillDuration !== void 0 && (i.selectionFillDuration = t.selectionFillDuration), t.selectionFillEase !== void 0 && (i.selectionFillEase = t.selectionFillEase), t.hoverLiftScale !== void 0 && (i.hoverLiftScale = t.hoverLiftScale), t.badgeAnchorHoverLiftScale !== void 0 && (i.badgeAnchorHoverLiftScale = t.badgeAnchorHoverLiftScale), t.pressSqueezeScale !== void 0 && (i.pressSqueezeMid = t.pressSqueezeScale[1]), t.pressSqueezeDurationFactor !== void 0 && (i.pressSqueezeDurationFactor = t.pressSqueezeDurationFactor), t.rippleDefaultDuration !== void 0 && (i.rippleDefaultDuration = t.rippleDefaultDuration), t.rippleDefaultOpacityFrom !== void 0 && (i.rippleDefaultOpacityFrom = t.rippleDefaultOpacityFrom), t.rippleExpandableDuration !== void 0 && (i.rippleExpandableDuration = t.rippleExpandableDuration), t.rippleExpandableOpacityFrom !== void 0 && (i.rippleExpandableOpacityFrom = t.rippleExpandableOpacityFrom), t.rippleEaseCss !== void 0 && (i.rippleEaseCss = t.rippleEaseCss), t.feedbackExpandDuration !== void 0 && (i.feedbackExpandDuration = t.feedbackExpandDuration), t.expandDuration !== void 0 && (i.expandDuration = t.expandDuration), t.expandOpenEase !== void 0 && (i.expandOpenEase = t.expandOpenEase), t.surfaceTransitionDuration !== void 0 && (i.surfaceTransitionDuration = t.surfaceTransitionDuration), t.toastDismissDuration !== void 0 && (i.toastDismissDuration = t.toastDismissDuration), t.toastDismissEase !== void 0 && (i.toastDismissEase = t.toastDismissEase), t.progressFillDuration !== void 0 && (i.progressFillDuration = t.progressFillDuration), t.progressFillEase !== void 0 && (i.progressFillEase = t.progressFillEase), t.progressIndeterminateDuration !== void 0 && (i.progressIndeterminateDuration = t.progressIndeterminateDuration), t.progressIndeterminateEase !== void 0 && (i.progressIndeterminateEase = t.progressIndeterminateEase), t.loadingDotsDuration !== void 0 && (i.loadingDotsDuration = t.loadingDotsDuration), t.loadingDotsEaseUp !== void 0 && (i.loadingDotsEaseUp = t.loadingDotsEaseUp), t.loadingDotsEaseDown !== void 0 && (i.loadingDotsEaseDown = t.loadingDotsEaseDown), t.enableAnimations !== void 0 && (i.enableAnimations = t.enableAnimations), t.enableHoverLift !== void 0 && (i.enableHoverLift = t.enableHoverLift), t.enablePressSqueeze !== void 0 && (i.enablePressSqueeze = t.enablePressSqueeze), t.enableToggleButtonFill !== void 0 && (i.enableToggleButtonFill = t.enableToggleButtonFill), t.enableRipple !== void 0 && (i.enableRipple = t.enableRipple), t.enableExpandable !== void 0 && (i.enableExpandable = t.enableExpandable), t.enableToastStack !== void 0 && (i.enableToastStack = t.enableToastStack), t.enableAsyncButtonCrossfade !== void 0 && (i.enableAsyncButtonCrossfade = t.enableAsyncButtonCrossfade), t.enableContentFade !== void 0 && (i.enableContentFade = t.enableContentFade), t.enableFeedbackExpand !== void 0 && (i.enableFeedbackExpand = t.enableFeedbackExpand), t.enableProgressFill !== void 0 && (i.enableProgressFill = t.enableProgressFill), t.enableLoadingDots !== void 0 && (i.enableLoadingDots = t.enableLoadingDots), t.enableModalMotion !== void 0 && (i.enableModalMotion = t.enableModalMotion), t.enableSwitchThumb !== void 0 && (i.enableSwitchThumb = t.enableSwitchThumb), t.enableTabsIndicator !== void 0 && (i.enableTabsIndicator = t.enableTabsIndicator), t.enablePaginationFlip !== void 0 && (i.enablePaginationFlip = t.enablePaginationFlip), t.enableSelectionFill !== void 0 && (i.enableSelectionFill = t.enableSelectionFill);
|
|
5378
5388
|
}
|
|
5379
|
-
|
|
5389
|
+
wi(i, n), Ei(e.customTokens, n, o);
|
|
5380
5390
|
}
|
|
5381
5391
|
function mr(e = "system") {
|
|
5382
5392
|
return e === "light" || e === "dark" ? e : typeof window < "u" && window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
5383
5393
|
}
|
|
5384
|
-
function
|
|
5394
|
+
function us(e, r, o = "dark") {
|
|
5385
5395
|
Fi({ theme: o, tokens: e }, r, o);
|
|
5386
5396
|
}
|
|
5387
|
-
function
|
|
5388
|
-
const r = mr(e.theme), o =
|
|
5397
|
+
function ds(e) {
|
|
5398
|
+
const r = mr(e.theme), o = ko(e, r), n = Si(o), i = Eo(e.customTokens, r), t = Object.entries(i);
|
|
5389
5399
|
if (t.length === 0) return n;
|
|
5390
|
-
const
|
|
5400
|
+
const a = t.map(([s, d]) => ` ${s}: ${d};`).join(`
|
|
5391
5401
|
`);
|
|
5392
5402
|
return n.replace(/\n}(\n|$)/, `
|
|
5393
5403
|
/* Custom project tokens */
|
|
5394
|
-
${
|
|
5404
|
+
${a}
|
|
5395
5405
|
}$1`);
|
|
5396
5406
|
}
|
|
5397
5407
|
function Me(e, r) {
|
|
@@ -5406,21 +5416,21 @@ ${e.map((t) => `${n}${Me(t, r + 1)}`).join(`,
|
|
|
5406
5416
|
${o}]`;
|
|
5407
5417
|
if (typeof e == "object") {
|
|
5408
5418
|
const i = Object.entries(e).filter(
|
|
5409
|
-
([,
|
|
5419
|
+
([, a]) => a !== void 0
|
|
5410
5420
|
);
|
|
5411
5421
|
return i.length === 0 ? "{}" : `{
|
|
5412
5422
|
${i.map(
|
|
5413
|
-
([
|
|
5423
|
+
([a, s]) => `${n}${Ci(a)}: ${Me(s, r + 1)}`
|
|
5414
5424
|
).join(`,
|
|
5415
5425
|
`)},
|
|
5416
5426
|
${o}}`;
|
|
5417
5427
|
}
|
|
5418
5428
|
return JSON.stringify(e);
|
|
5419
5429
|
}
|
|
5420
|
-
function
|
|
5430
|
+
function Ci(e) {
|
|
5421
5431
|
return /^[A-Za-z_$][\w$]*$/.test(e) ? e : JSON.stringify(e);
|
|
5422
5432
|
}
|
|
5423
|
-
function
|
|
5433
|
+
function fs(e, r) {
|
|
5424
5434
|
const o = (r == null ? void 0 : r.exportName) ?? "burneTheme", n = Me(e, 0);
|
|
5425
5435
|
return [
|
|
5426
5436
|
"/**",
|
|
@@ -5445,7 +5455,7 @@ function ga(e, r) {
|
|
|
5445
5455
|
`);
|
|
5446
5456
|
}
|
|
5447
5457
|
const pr = $r(null);
|
|
5448
|
-
function
|
|
5458
|
+
function Oi(e) {
|
|
5449
5459
|
if (!e || typeof window > "u") return null;
|
|
5450
5460
|
try {
|
|
5451
5461
|
const r = window.localStorage.getItem(e);
|
|
@@ -5454,41 +5464,41 @@ function _i(e) {
|
|
|
5454
5464
|
}
|
|
5455
5465
|
return null;
|
|
5456
5466
|
}
|
|
5457
|
-
function
|
|
5467
|
+
function _i(e, r) {
|
|
5458
5468
|
if (!(!e || typeof window > "u"))
|
|
5459
5469
|
try {
|
|
5460
5470
|
window.localStorage.setItem(e, r);
|
|
5461
5471
|
} catch {
|
|
5462
5472
|
}
|
|
5463
5473
|
}
|
|
5464
|
-
function
|
|
5474
|
+
function Ii(e, r) {
|
|
5465
5475
|
if (typeof document > "u") return;
|
|
5466
5476
|
const o = r ?? document.documentElement;
|
|
5467
5477
|
e === "light" ? o.dataset.theme = "light" : delete o.dataset.theme;
|
|
5468
5478
|
}
|
|
5469
|
-
function
|
|
5479
|
+
function gs({
|
|
5470
5480
|
children: e,
|
|
5471
5481
|
theme: r,
|
|
5472
5482
|
defaultTheme: o = "dark",
|
|
5473
|
-
storageKey: n =
|
|
5483
|
+
storageKey: n = To,
|
|
5474
5484
|
root: i = null,
|
|
5475
5485
|
onThemeChange: t
|
|
5476
5486
|
}) {
|
|
5477
|
-
const [
|
|
5478
|
-
(
|
|
5479
|
-
r === void 0 &&
|
|
5487
|
+
const [a, s] = Ze(() => Oi(n) ?? o), [d, c] = Ze(0), p = r ?? a, m = J(() => mr(p), [p, d]), w = D(
|
|
5488
|
+
(y) => {
|
|
5489
|
+
r === void 0 && s(y), _i(n, y), t == null || t(y);
|
|
5480
5490
|
},
|
|
5481
5491
|
[r, n, t]
|
|
5482
5492
|
);
|
|
5483
5493
|
Q(() => {
|
|
5484
|
-
const
|
|
5485
|
-
|
|
5494
|
+
const y = i ?? (typeof document < "u" ? document.documentElement : null);
|
|
5495
|
+
y && Ii(m, y);
|
|
5486
5496
|
}, [m, i]), Gr(() => {
|
|
5487
5497
|
if (p !== "system" || typeof window > "u") return;
|
|
5488
|
-
const
|
|
5498
|
+
const y = window.matchMedia("(prefers-color-scheme: light)"), k = () => {
|
|
5489
5499
|
c((O) => O + 1);
|
|
5490
5500
|
};
|
|
5491
|
-
return
|
|
5501
|
+
return y.addEventListener("change", k), () => y.removeEventListener("change", k);
|
|
5492
5502
|
}, [p]);
|
|
5493
5503
|
const h = J(
|
|
5494
5504
|
() => ({ theme: p, resolvedTheme: m, setTheme: w }),
|
|
@@ -5496,196 +5506,196 @@ function ma({
|
|
|
5496
5506
|
);
|
|
5497
5507
|
return Hr(pr.Provider, { value: h }, e);
|
|
5498
5508
|
}
|
|
5499
|
-
function
|
|
5509
|
+
function ms() {
|
|
5500
5510
|
const e = Ne(pr);
|
|
5501
5511
|
if (!e)
|
|
5502
5512
|
throw new Error("useBurneTheme must be used within ThemeProvider or BurneUIProvider.");
|
|
5503
5513
|
return e;
|
|
5504
5514
|
}
|
|
5505
|
-
function
|
|
5515
|
+
function ps() {
|
|
5506
5516
|
return Ne(pr);
|
|
5507
5517
|
}
|
|
5508
5518
|
const br = $r(null);
|
|
5509
|
-
function
|
|
5519
|
+
function bs({
|
|
5510
5520
|
children: e,
|
|
5511
5521
|
value: r
|
|
5512
5522
|
}) {
|
|
5513
5523
|
return Hr(br.Provider, { value: r }, e);
|
|
5514
5524
|
}
|
|
5515
|
-
function
|
|
5525
|
+
function hs() {
|
|
5516
5526
|
const e = Ne(br);
|
|
5517
5527
|
if (!e)
|
|
5518
5528
|
throw new Error("useBurneThemeRuntime must be used within BurneUIProvider.");
|
|
5519
5529
|
return e;
|
|
5520
5530
|
}
|
|
5521
|
-
function
|
|
5531
|
+
function vs() {
|
|
5522
5532
|
return Ne(br);
|
|
5523
5533
|
}
|
|
5524
5534
|
export {
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5535
|
+
ma as $,
|
|
5536
|
+
qt as A,
|
|
5537
|
+
Ut as B,
|
|
5528
5538
|
fr as C,
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5539
|
+
ti as D,
|
|
5540
|
+
jt as E,
|
|
5541
|
+
Kt as F,
|
|
5542
|
+
Ha as G,
|
|
5543
|
+
Oa as H,
|
|
5544
|
+
_a as I,
|
|
5545
|
+
ss as J,
|
|
5546
|
+
as as K,
|
|
5547
|
+
ii as L,
|
|
5538
5548
|
ir as M,
|
|
5539
|
-
|
|
5549
|
+
Ca as N,
|
|
5540
5550
|
fo as O,
|
|
5541
|
-
|
|
5542
|
-
|
|
5551
|
+
na as P,
|
|
5552
|
+
Di as Q,
|
|
5543
5553
|
be as R,
|
|
5544
5554
|
ai as S,
|
|
5545
5555
|
ce as T,
|
|
5546
5556
|
gr as U,
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5557
|
+
Wn as V,
|
|
5558
|
+
fs as W,
|
|
5559
|
+
ds as X,
|
|
5560
|
+
ls as Y,
|
|
5561
|
+
Si as Z,
|
|
5562
|
+
Za as _,
|
|
5553
5563
|
le as a,
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5564
|
+
Tt as a$,
|
|
5565
|
+
se as a0,
|
|
5566
|
+
sr as a1,
|
|
5557
5567
|
A as a2,
|
|
5558
|
-
|
|
5559
|
-
|
|
5568
|
+
cs as a3,
|
|
5569
|
+
is as a4,
|
|
5560
5570
|
Be as a5,
|
|
5561
|
-
|
|
5562
|
-
|
|
5571
|
+
ns as a6,
|
|
5572
|
+
ua as a7,
|
|
5563
5573
|
Ar as a8,
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5574
|
+
Eo as a9,
|
|
5575
|
+
mt as aA,
|
|
5576
|
+
va as aB,
|
|
5577
|
+
Ui as aC,
|
|
5578
|
+
Ba as aD,
|
|
5579
|
+
Na as aE,
|
|
5580
|
+
Ma as aF,
|
|
5581
|
+
ya as aG,
|
|
5582
|
+
Pa as aH,
|
|
5583
|
+
Aa as aI,
|
|
5584
|
+
Ra as aJ,
|
|
5585
|
+
za as aK,
|
|
5586
|
+
Ga as aL,
|
|
5587
|
+
La as aM,
|
|
5588
|
+
Ta as aN,
|
|
5579
5589
|
U as aO,
|
|
5580
5590
|
uo as aP,
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
+
Zi as aQ,
|
|
5592
|
+
Ia as aR,
|
|
5593
|
+
Sa as aS,
|
|
5594
|
+
ka as aT,
|
|
5595
|
+
Ea as aU,
|
|
5596
|
+
$a as aV,
|
|
5597
|
+
xa as aW,
|
|
5598
|
+
wa as aX,
|
|
5599
|
+
Da as aY,
|
|
5600
|
+
Fa as aZ,
|
|
5591
5601
|
ie as a_,
|
|
5592
5602
|
mr as aa,
|
|
5593
|
-
|
|
5594
|
-
|
|
5603
|
+
ko as ab,
|
|
5604
|
+
xo as ac,
|
|
5595
5605
|
pe as ad,
|
|
5596
5606
|
He as ae,
|
|
5597
|
-
|
|
5598
|
-
|
|
5607
|
+
ca as af,
|
|
5608
|
+
Kn as ag,
|
|
5599
5609
|
or as ah,
|
|
5600
5610
|
P as ai,
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5611
|
+
Ti as aj,
|
|
5612
|
+
hs as ak,
|
|
5613
|
+
vs as al,
|
|
5604
5614
|
mo as am,
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5615
|
+
ta as an,
|
|
5616
|
+
es as ao,
|
|
5617
|
+
nt as ap,
|
|
5618
|
+
pa as aq,
|
|
5619
|
+
Gi as ar,
|
|
5620
|
+
bt as as,
|
|
5621
|
+
ba as at,
|
|
5612
5622
|
S as au,
|
|
5613
|
-
|
|
5623
|
+
x as av,
|
|
5614
5624
|
G as aw,
|
|
5615
5625
|
Ge as ax,
|
|
5616
5626
|
vo as ay,
|
|
5617
5627
|
Re as az,
|
|
5618
|
-
|
|
5628
|
+
oa as b,
|
|
5619
5629
|
bo as b0,
|
|
5620
|
-
|
|
5621
|
-
|
|
5630
|
+
Yi as b1,
|
|
5631
|
+
fa as b2,
|
|
5622
5632
|
De as b3,
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5633
|
+
pt as b4,
|
|
5634
|
+
qi as b5,
|
|
5635
|
+
wt as b6,
|
|
5636
|
+
ji as b7,
|
|
5637
|
+
Qa as b8,
|
|
5638
|
+
Ka as b9,
|
|
5629
5639
|
to as bA,
|
|
5630
5640
|
go as bB,
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5641
|
+
sa as bC,
|
|
5642
|
+
ia as bD,
|
|
5643
|
+
Pi as bE,
|
|
5644
|
+
Bn as bF,
|
|
5645
|
+
la as bG,
|
|
5646
|
+
aa as bH,
|
|
5647
|
+
Wi as bI,
|
|
5648
|
+
Ni as bJ,
|
|
5649
|
+
Bi as bK,
|
|
5650
|
+
ps as bL,
|
|
5651
|
+
ga as ba,
|
|
5652
|
+
Ya as bb,
|
|
5653
|
+
ha as bc,
|
|
5654
|
+
Xt as bd,
|
|
5655
|
+
Va as be,
|
|
5656
|
+
qa as bf,
|
|
5657
|
+
Wa as bg,
|
|
5658
|
+
Xa as bh,
|
|
5659
|
+
ja as bi,
|
|
5660
|
+
Vi as bj,
|
|
5661
|
+
Hi as bk,
|
|
5662
|
+
$i as bl,
|
|
5663
|
+
ra as bm,
|
|
5664
|
+
ea as bn,
|
|
5665
|
+
Xi as bo,
|
|
5666
|
+
Ji as bp,
|
|
5667
|
+
Qi as bq,
|
|
5668
|
+
Ki as br,
|
|
5669
|
+
yt as bs,
|
|
5670
|
+
vt as bt,
|
|
5671
|
+
ht as bu,
|
|
5672
|
+
To as bv,
|
|
5673
|
+
gs as bw,
|
|
5674
|
+
ms as bx,
|
|
5675
|
+
bs as by,
|
|
5676
|
+
jn as bz,
|
|
5677
|
+
li as c,
|
|
5678
|
+
ci as d,
|
|
5679
|
+
Ja as e,
|
|
5680
|
+
ar as f,
|
|
5681
|
+
qn as g,
|
|
5682
|
+
Nn as h,
|
|
5683
|
+
si as i,
|
|
5684
|
+
On as j,
|
|
5675
5685
|
ur as k,
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5686
|
+
Cn as l,
|
|
5687
|
+
Mi as m,
|
|
5688
|
+
ts as n,
|
|
5689
|
+
rs as o,
|
|
5690
|
+
os as p,
|
|
5681
5691
|
Le as q,
|
|
5682
|
-
|
|
5692
|
+
da as r,
|
|
5683
5693
|
Fi as s,
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5694
|
+
Ei as t,
|
|
5695
|
+
so as u,
|
|
5696
|
+
Ii as v,
|
|
5697
|
+
wi as w,
|
|
5698
|
+
us as x,
|
|
5699
|
+
Ua as y,
|
|
5700
|
+
Vt as z
|
|
5691
5701
|
};
|