@goliapkg/gds 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avatar-By0U5Vts.js +74 -0
- package/dist/avatar-By0U5Vts.js.map +1 -0
- package/dist/badge-DTJq6AXr.js +59 -0
- package/dist/badge-DTJq6AXr.js.map +1 -0
- package/dist/button-avu-rQU4.js +99 -0
- package/dist/button-avu-rQU4.js.map +1 -0
- package/dist/dom-17XgfxMq.js +20 -0
- package/dist/dom-17XgfxMq.js.map +1 -0
- package/dist/gesture-BCGijGek.js +104 -0
- package/dist/gesture-BCGijGek.js.map +1 -0
- package/dist/gesture-system-v-bjvnCe.js +56 -0
- package/dist/gesture-system-v-bjvnCe.js.map +1 -0
- package/dist/glass-CQTlX7IO.js +1702 -0
- package/dist/glass-CQTlX7IO.js.map +1 -0
- package/dist/highlight-BAGZc-4h.js +28 -0
- package/dist/highlight-BAGZc-4h.js.map +1 -0
- package/dist/hooks-BE-_EmDI.js +87 -0
- package/dist/hooks-BE-_EmDI.js.map +1 -0
- package/dist/icon-button-YatlVZnz.js +44 -0
- package/dist/icon-button-YatlVZnz.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -18594
- package/dist/l0-tokens/deps.d.ts +5 -0
- package/dist/l0-tokens/deps.d.ts.map +1 -1
- package/dist/l0-tokens/index.js +4 -0
- package/dist/l0-tokens-DZkyVlac.js +296 -0
- package/dist/l0-tokens-DZkyVlac.js.map +1 -0
- package/dist/l1-systems/index.js +2 -0
- package/dist/l2-primitives/index.js +11 -0
- package/dist/l2-primitives/screen-overlay.d.ts.map +1 -1
- package/dist/l2-primitives/truncate.d.ts +2 -1
- package/dist/l2-primitives/truncate.d.ts.map +1 -1
- package/dist/l2-primitives-CqrezrJ4.js +482 -0
- package/dist/l2-primitives-CqrezrJ4.js.map +1 -0
- package/dist/l3-atoms/index.d.ts +0 -14
- package/dist/l3-atoms/index.d.ts.map +1 -1
- package/dist/l3-atoms/index.js +6 -0
- package/dist/l3-atoms/keyboard-shortcut.d.ts +1 -1
- package/dist/l3-atoms/keyboard-shortcut.d.ts.map +1 -1
- package/dist/l3-atoms/sparkle.d.ts +1 -1
- package/dist/l3-atoms/sparkle.d.ts.map +1 -1
- package/dist/l3-atoms-CsN9IA9J.js +1794 -0
- package/dist/l3-atoms-CsN9IA9J.js.map +1 -0
- package/dist/l4-molecules/dialog.d.ts.map +1 -1
- package/dist/l4-molecules/editable.d.ts.map +1 -0
- package/dist/l4-molecules/index.d.ts +12 -4
- package/dist/l4-molecules/index.d.ts.map +1 -1
- package/dist/l4-molecules/index.js +4 -0
- package/dist/l4-molecules/overflow-menu.d.ts.map +1 -0
- package/dist/l4-molecules/pin-input.d.ts.map +1 -0
- package/dist/l4-molecules/popover.d.ts.map +1 -0
- package/dist/l4-molecules/split-button.d.ts.map +1 -0
- package/dist/l4-molecules/tag-input.d.ts.map +1 -0
- package/dist/l4-molecules-DCc074MJ.js +4048 -0
- package/dist/l4-molecules-DCc074MJ.js.map +1 -0
- package/dist/l5-organisms/command-palette.d.ts.map +1 -1
- package/dist/l5-organisms/confetti.d.ts.map +1 -1
- package/dist/l5-organisms/cookie-banner.d.ts.map +1 -1
- package/dist/l5-organisms/image-preview.d.ts.map +1 -1
- package/dist/l5-organisms/index.d.ts +2 -0
- package/dist/l5-organisms/index.d.ts.map +1 -1
- package/dist/l5-organisms/index.js +2 -0
- package/dist/l5-organisms/notification-toast.d.ts.map +1 -1
- package/dist/{l4-molecules → l5-organisms}/sortable-table.d.ts.map +1 -1
- package/dist/l5-organisms-8KB_8a-H.js +3798 -0
- package/dist/l5-organisms-8KB_8a-H.js.map +1 -0
- package/dist/l6-charts/candlestick-chart.d.ts.map +1 -1
- package/dist/l6-charts/index.js +2 -0
- package/dist/l6-charts-DYnr5B9X.js +1743 -0
- package/dist/l6-charts-DYnr5B9X.js.map +1 -0
- package/dist/l7-patterns/index.js +2 -0
- package/dist/l7-patterns-DZXveS4Y.js +1826 -0
- package/dist/l7-patterns-DZXveS4Y.js.map +1 -0
- package/dist/loading-dots-fB4X_Zh0.js +24 -0
- package/dist/loading-dots-fB4X_Zh0.js.map +1 -0
- package/dist/motion-DUPegem-.js +22 -0
- package/dist/motion-DUPegem-.js.map +1 -0
- package/dist/portal-Bbl6F_Wj.js +9 -0
- package/dist/portal-Bbl6F_Wj.js.map +1 -0
- package/dist/progress-wAKN3Czz.js +44 -0
- package/dist/progress-wAKN3Czz.js.map +1 -0
- package/dist/resize-handle-CktEYqwi.js +77 -0
- package/dist/resize-handle-CktEYqwi.js.map +1 -0
- package/dist/scales-C80FTPsL.js +1299 -0
- package/dist/scales-C80FTPsL.js.map +1 -0
- package/dist/separator-Dqs23A9D.js +65 -0
- package/dist/separator-Dqs23A9D.js.map +1 -0
- package/dist/skeleton-C9FFZSYN.js +43 -0
- package/dist/skeleton-C9FFZSYN.js.map +1 -0
- package/dist/spinner-D8Ti-TFe.js +101 -0
- package/dist/spinner-D8Ti-TFe.js.map +1 -0
- package/dist/stepper-DhpGORX8.js +140 -0
- package/dist/stepper-DhpGORX8.js.map +1 -0
- package/dist/switch-DC85Os9r.js +130 -0
- package/dist/switch-DC85Os9r.js.map +1 -0
- package/dist/textarea-BJCl_aH2.js +40 -0
- package/dist/textarea-BJCl_aH2.js.map +1 -0
- package/dist/toast-DN5xANLM.js +442 -0
- package/dist/toast-DN5xANLM.js.map +1 -0
- package/dist/use-theme-C0aWVw70.js +203 -0
- package/dist/use-theme-C0aWVw70.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +7 -0
- package/dist/utils/portal.d.ts +3 -0
- package/dist/utils/portal.d.ts.map +1 -0
- package/package.json +37 -1
- package/dist/index.js.map +0 -1
- package/dist/l3-atoms/editable.d.ts.map +0 -1
- package/dist/l3-atoms/overflow-menu.d.ts.map +0 -1
- package/dist/l3-atoms/pin-input.d.ts.map +0 -1
- package/dist/l3-atoms/popover.d.ts.map +0 -1
- package/dist/l3-atoms/split-button.d.ts.map +0 -1
- package/dist/l3-atoms/tag-input.d.ts.map +0 -1
- package/dist/l3-atoms/time-since.d.ts +0 -9
- package/dist/l3-atoms/time-since.d.ts.map +0 -1
- package/dist/l4-molecules/otp-input.d.ts +0 -11
- package/dist/l4-molecules/otp-input.d.ts.map +0 -1
- /package/dist/{l3-atoms → l4-molecules}/editable.d.ts +0 -0
- /package/dist/{l3-atoms → l4-molecules}/overflow-menu.d.ts +0 -0
- /package/dist/{l3-atoms → l4-molecules}/pin-input.d.ts +0 -0
- /package/dist/{l3-atoms → l4-molecules}/popover.d.ts +0 -0
- /package/dist/{l3-atoms → l4-molecules}/split-button.d.ts +0 -0
- /package/dist/{l3-atoms → l4-molecules}/tag-input.d.ts +0 -0
- /package/dist/{l4-molecules → l5-organisms}/sortable-table.d.ts +0 -0
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
//#region src/l0-tokens/color-math.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.replace("#", ""), n = parseInt(t.length === 3 ? t.split("").map((e) => e + e).join("") : t, 16);
|
|
4
|
+
return {
|
|
5
|
+
r: n >> 16 & 255,
|
|
6
|
+
g: n >> 8 & 255,
|
|
7
|
+
b: n & 255
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function t(e) {
|
|
11
|
+
let t = (e) => Math.round(Math.min(255, Math.max(0, e))).toString(16).padStart(2, "0");
|
|
12
|
+
return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
|
|
13
|
+
}
|
|
14
|
+
function n(e) {
|
|
15
|
+
let t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
|
|
16
|
+
if (i === a) return {
|
|
17
|
+
h: 0,
|
|
18
|
+
s: 0,
|
|
19
|
+
l: o
|
|
20
|
+
};
|
|
21
|
+
let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
|
|
22
|
+
return {
|
|
23
|
+
h: (i === t ? ((n - r) / s + (n < r ? 6 : 0)) / 6 : i === n ? ((r - t) / s + 2) / 6 : ((t - n) / s + 4) / 6) * 360,
|
|
24
|
+
s: c,
|
|
25
|
+
l: o
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function r(e) {
|
|
29
|
+
let { h: t, s: n, l: r } = e;
|
|
30
|
+
if (n === 0) {
|
|
31
|
+
let e = Math.round(r * 255);
|
|
32
|
+
return {
|
|
33
|
+
r: e,
|
|
34
|
+
g: e,
|
|
35
|
+
b: e
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
let i = (e, t, n) => {
|
|
39
|
+
let r = n < 0 ? n + 1 : n > 1 ? n - 1 : n;
|
|
40
|
+
return r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
41
|
+
}, a = r < .5 ? r * (1 + n) : r + n - r * n, o = 2 * r - a, s = t / 360;
|
|
42
|
+
return {
|
|
43
|
+
r: Math.round(i(o, a, s + 1 / 3) * 255),
|
|
44
|
+
g: Math.round(i(o, a, s) * 255),
|
|
45
|
+
b: Math.round(i(o, a, s - 1 / 3) * 255)
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function i(t) {
|
|
49
|
+
return n(e(t));
|
|
50
|
+
}
|
|
51
|
+
function a(e) {
|
|
52
|
+
return t(r(e));
|
|
53
|
+
}
|
|
54
|
+
function o(e) {
|
|
55
|
+
let t = [
|
|
56
|
+
e.r,
|
|
57
|
+
e.g,
|
|
58
|
+
e.b
|
|
59
|
+
].map((e) => {
|
|
60
|
+
let t = e / 255;
|
|
61
|
+
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
62
|
+
});
|
|
63
|
+
return .2126 * t[0] + .7152 * t[1] + .0722 * t[2];
|
|
64
|
+
}
|
|
65
|
+
function s(e, t) {
|
|
66
|
+
let n = o(e), r = o(t), i = Math.max(n, r), a = Math.min(n, r);
|
|
67
|
+
return (i + .05) / (a + .05);
|
|
68
|
+
}
|
|
69
|
+
function c(n, r, i) {
|
|
70
|
+
let a = e(n), o = e(r);
|
|
71
|
+
return t({
|
|
72
|
+
r: Math.round(a.r + (o.r - a.r) * i),
|
|
73
|
+
g: Math.round(a.g + (o.g - a.g) * i),
|
|
74
|
+
b: Math.round(a.b + (o.b - a.b) * i)
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function l(e, t) {
|
|
78
|
+
let n = i(e);
|
|
79
|
+
return a({
|
|
80
|
+
...n,
|
|
81
|
+
l: Math.min(1, n.l + t)
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function u(e, t) {
|
|
85
|
+
let n = i(e);
|
|
86
|
+
return a({
|
|
87
|
+
...n,
|
|
88
|
+
l: Math.max(0, n.l - t)
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function d(e, t) {
|
|
92
|
+
let n = i(e);
|
|
93
|
+
return a({
|
|
94
|
+
...n,
|
|
95
|
+
s: Math.min(1, Math.max(0, n.s + t))
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function f(e, t) {
|
|
99
|
+
let n = i(e);
|
|
100
|
+
return a({
|
|
101
|
+
...n,
|
|
102
|
+
h: (n.h + t + 360) % 360
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function p(t, n) {
|
|
106
|
+
let { r, g: i, b: a } = e(t);
|
|
107
|
+
return `rgba(${r}, ${i}, ${a}, ${n})`;
|
|
108
|
+
}
|
|
109
|
+
function m(e) {
|
|
110
|
+
return f(e, 180);
|
|
111
|
+
}
|
|
112
|
+
function h(e) {
|
|
113
|
+
return [f(e, -30), f(e, 30)];
|
|
114
|
+
}
|
|
115
|
+
function g(e) {
|
|
116
|
+
return [f(e, 120), f(e, 240)];
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/l0-tokens/color-health.ts
|
|
120
|
+
var _ = {
|
|
121
|
+
r: 15,
|
|
122
|
+
g: 23,
|
|
123
|
+
b: 42
|
|
124
|
+
}, v = {
|
|
125
|
+
r: 255,
|
|
126
|
+
g: 255,
|
|
127
|
+
b: 255
|
|
128
|
+
}, y = {
|
|
129
|
+
r: 255,
|
|
130
|
+
g: 255,
|
|
131
|
+
b: 255
|
|
132
|
+
}, b = {
|
|
133
|
+
r: 0,
|
|
134
|
+
g: 0,
|
|
135
|
+
b: 0
|
|
136
|
+
}, x = [
|
|
137
|
+
{
|
|
138
|
+
name: "danger (red)",
|
|
139
|
+
hueMin: 340,
|
|
140
|
+
hueMax: 360
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "danger (red)",
|
|
144
|
+
hueMin: 0,
|
|
145
|
+
hueMax: 20
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "warning (amber)",
|
|
149
|
+
hueMin: 30,
|
|
150
|
+
hueMax: 55
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "success (green)",
|
|
154
|
+
hueMin: 100,
|
|
155
|
+
hueMax: 150
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
function ee(e, t) {
|
|
159
|
+
let n = s(e, _);
|
|
160
|
+
return n < 2.5 ? (t.push({
|
|
161
|
+
id: "contrast-dark-fail",
|
|
162
|
+
severity: "error",
|
|
163
|
+
message: `contrast on dark background too low (${n.toFixed(1)}:1)`,
|
|
164
|
+
suggestion: "lighten the color or increase saturation"
|
|
165
|
+
}), 30) : n < 3.5 ? (t.push({
|
|
166
|
+
id: "contrast-dark-low",
|
|
167
|
+
severity: "warning",
|
|
168
|
+
message: `contrast on dark background is marginal (${n.toFixed(1)}:1)`,
|
|
169
|
+
suggestion: "consider a slightly lighter variant for better readability"
|
|
170
|
+
}), 15) : 0;
|
|
171
|
+
}
|
|
172
|
+
function te(e, t) {
|
|
173
|
+
let n = s(e, v);
|
|
174
|
+
return n < 2.5 ? (t.push({
|
|
175
|
+
id: "contrast-light-fail",
|
|
176
|
+
severity: "warning",
|
|
177
|
+
message: `contrast on light background too low (${n.toFixed(1)}:1)`,
|
|
178
|
+
suggestion: "darken the color for light mode usage"
|
|
179
|
+
}), 15) : 0;
|
|
180
|
+
}
|
|
181
|
+
function ne(e, t) {
|
|
182
|
+
let n = s(y, e), r = s(b, e), i = Math.max(n, r);
|
|
183
|
+
return i < 3 ? (t.push({
|
|
184
|
+
id: "text-on-color-fail",
|
|
185
|
+
severity: "error",
|
|
186
|
+
message: `neither white nor black text is readable on this color (best: ${i.toFixed(1)}:1)`,
|
|
187
|
+
suggestion: "adjust lightness — avoid the 40-60% lightness midrange"
|
|
188
|
+
}), 20) : i < 4.5 ? (t.push({
|
|
189
|
+
id: "text-on-color-low",
|
|
190
|
+
severity: "warning",
|
|
191
|
+
message: `text on this color has limited contrast (${i.toFixed(1)}:1)`,
|
|
192
|
+
suggestion: "push lightness below 40% or above 60% for clearer text"
|
|
193
|
+
}), 8) : 0;
|
|
194
|
+
}
|
|
195
|
+
function re(e, t) {
|
|
196
|
+
return e < .2 ? (t.push({
|
|
197
|
+
id: "saturation-low",
|
|
198
|
+
severity: "warning",
|
|
199
|
+
message: `saturation too low (${(e * 100).toFixed(0)}%) — color appears grayish`,
|
|
200
|
+
suggestion: "increase saturation above 30% for a vibrant primary"
|
|
201
|
+
}), 15) : e > .95 ? (t.push({
|
|
202
|
+
id: "saturation-high",
|
|
203
|
+
severity: "info",
|
|
204
|
+
message: `very high saturation (${(e * 100).toFixed(0)}%) — may cause eye strain`,
|
|
205
|
+
suggestion: "reduce to 70-90% for comfortable prolonged viewing"
|
|
206
|
+
}), 5) : 0;
|
|
207
|
+
}
|
|
208
|
+
function ie(e, t) {
|
|
209
|
+
return e < .15 ? (t.push({
|
|
210
|
+
id: "lightness-too-dark",
|
|
211
|
+
severity: "error",
|
|
212
|
+
message: `color is too dark (L=${(e * 100).toFixed(0)}%) — invisible on dark mode`,
|
|
213
|
+
suggestion: "increase lightness above 30%"
|
|
214
|
+
}), 20) : e > .85 ? (t.push({
|
|
215
|
+
id: "lightness-too-light",
|
|
216
|
+
severity: "warning",
|
|
217
|
+
message: `color is too light (L=${(e * 100).toFixed(0)}%) — weak on light mode`,
|
|
218
|
+
suggestion: "decrease lightness below 70%"
|
|
219
|
+
}), 15) : 0;
|
|
220
|
+
}
|
|
221
|
+
function ae(e, t, n) {
|
|
222
|
+
if (t <= .4) return null;
|
|
223
|
+
for (let t of x) if (e >= t.hueMin && e <= t.hueMax) return n.push({
|
|
224
|
+
id: "semantic-conflict",
|
|
225
|
+
severity: "warning",
|
|
226
|
+
message: `hue (${e.toFixed(0)}°) overlaps with ${t.name} semantic color`,
|
|
227
|
+
suggestion: "users may confuse accent with status colors — shift hue away from red/amber/green zones"
|
|
228
|
+
}), t.name;
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
function oe(e) {
|
|
232
|
+
return e < 60 ? "rejected" : e < 80 ? "warning" : e < 90 ? "good" : "excellent";
|
|
233
|
+
}
|
|
234
|
+
function S(t) {
|
|
235
|
+
let n = e(t), r = i(t), a = [], o = ee(n, a) + te(n, a) + ne(n, a) + re(r.s, a) + ie(r.l, a), c = ae(r.h, r.s, a), l = c === null ? 0 : 10, u = Math.max(0, Math.min(100, 100 - o - l));
|
|
236
|
+
return {
|
|
237
|
+
score: u,
|
|
238
|
+
level: oe(u),
|
|
239
|
+
diagnostics: a,
|
|
240
|
+
details: {
|
|
241
|
+
contrastOnDark: s(n, _),
|
|
242
|
+
contrastOnLight: s(n, v),
|
|
243
|
+
contrastWhiteOnColor: s(y, n),
|
|
244
|
+
contrastBlackOnColor: s(b, n),
|
|
245
|
+
saturation: r.s,
|
|
246
|
+
lightness: r.l,
|
|
247
|
+
hue: r.h,
|
|
248
|
+
semanticConflict: c
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
function C(t) {
|
|
253
|
+
let n = e(t), r = s(y, n), i = s(b, n);
|
|
254
|
+
return r >= 3 ? "#ffffff" : i >= 3 ? "#000000" : r > i ? "#ffffff" : "#000000";
|
|
255
|
+
}
|
|
256
|
+
function se(e) {
|
|
257
|
+
let t = i(e), n = e, r = S(e).score, o = Math.max(.45, Math.min(.85, t.s));
|
|
258
|
+
for (let e = .4; e <= .7; e += .02) {
|
|
259
|
+
let i = t.h;
|
|
260
|
+
for (let e of x) if (i >= e.hueMin && i <= e.hueMax) {
|
|
261
|
+
i = Math.abs(i - e.hueMin) < Math.abs(i - e.hueMax) ? e.hueMin - 10 : e.hueMax + 10, i = (i + 360) % 360;
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
let s = a({
|
|
265
|
+
h: i,
|
|
266
|
+
s: o,
|
|
267
|
+
l: e
|
|
268
|
+
}), c = S(s).score;
|
|
269
|
+
c > r && (r = c, n = s);
|
|
270
|
+
}
|
|
271
|
+
return n;
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/l0-tokens/color-derive.ts
|
|
275
|
+
var w = {
|
|
276
|
+
danger: {
|
|
277
|
+
dark: "#ef4444",
|
|
278
|
+
light: "#dc2626"
|
|
279
|
+
},
|
|
280
|
+
warning: {
|
|
281
|
+
dark: "#f59e0b",
|
|
282
|
+
light: "#d97706"
|
|
283
|
+
},
|
|
284
|
+
success: {
|
|
285
|
+
dark: "#22c55e",
|
|
286
|
+
light: "#16a34a"
|
|
287
|
+
},
|
|
288
|
+
statusActive: "#22c55e",
|
|
289
|
+
statusInactive: "#94a3b8",
|
|
290
|
+
statusPending: "#f59e0b",
|
|
291
|
+
statusDraft: "#64748b",
|
|
292
|
+
priorityCritical: "#ef4444",
|
|
293
|
+
priorityHigh: "#f97316",
|
|
294
|
+
priorityMedium: "#f59e0b",
|
|
295
|
+
priorityLow: "#22c55e",
|
|
296
|
+
actionCreate: "#22c55e",
|
|
297
|
+
actionUpdate: "#3b82f6",
|
|
298
|
+
actionDelete: "#ef4444",
|
|
299
|
+
dot: "#ef4444"
|
|
300
|
+
}, ce = .06, le = .03;
|
|
301
|
+
function T(e) {
|
|
302
|
+
let t = i(e), n = t.h, o = ce, s = a({
|
|
303
|
+
h: n,
|
|
304
|
+
s: Math.max(.55, Math.min(.85, t.s)),
|
|
305
|
+
l: Math.max(.45, Math.min(.55, t.l))
|
|
306
|
+
}), c = l(s, .1), u = C(s), d = p(s, .12), f = p(s, .05), m = a({
|
|
307
|
+
h: n,
|
|
308
|
+
s: o,
|
|
309
|
+
l: .06
|
|
310
|
+
}), h = a({
|
|
311
|
+
h: n,
|
|
312
|
+
s: o,
|
|
313
|
+
l: .11
|
|
314
|
+
}), g = a({
|
|
315
|
+
h: n,
|
|
316
|
+
s: o,
|
|
317
|
+
l: .2
|
|
318
|
+
}), _ = a({
|
|
319
|
+
h: n,
|
|
320
|
+
s: o,
|
|
321
|
+
l: .11
|
|
322
|
+
}), v = a({
|
|
323
|
+
h: n,
|
|
324
|
+
s: o,
|
|
325
|
+
l: .2
|
|
326
|
+
});
|
|
327
|
+
return {
|
|
328
|
+
accent: s,
|
|
329
|
+
accentHover: c,
|
|
330
|
+
accentFg: u,
|
|
331
|
+
accentMuted: d,
|
|
332
|
+
accentSubtle: f,
|
|
333
|
+
bg: m,
|
|
334
|
+
bgSecondary: h,
|
|
335
|
+
bgTertiary: g,
|
|
336
|
+
fg: a({
|
|
337
|
+
h: n,
|
|
338
|
+
s: .02,
|
|
339
|
+
l: .95
|
|
340
|
+
}),
|
|
341
|
+
fgSecondary: a({
|
|
342
|
+
h: n,
|
|
343
|
+
s: .03,
|
|
344
|
+
l: .82
|
|
345
|
+
}),
|
|
346
|
+
fgMuted: a({
|
|
347
|
+
h: n,
|
|
348
|
+
s: .04,
|
|
349
|
+
l: .62
|
|
350
|
+
}),
|
|
351
|
+
border: a({
|
|
352
|
+
h: n,
|
|
353
|
+
s: o,
|
|
354
|
+
l: .2
|
|
355
|
+
}),
|
|
356
|
+
borderStrong: a({
|
|
357
|
+
h: n,
|
|
358
|
+
s: o,
|
|
359
|
+
l: .28
|
|
360
|
+
}),
|
|
361
|
+
surface: _,
|
|
362
|
+
surfaceRaised: v,
|
|
363
|
+
overlay: `rgba(${Math.round(r({
|
|
364
|
+
h: n,
|
|
365
|
+
s: o,
|
|
366
|
+
l: .04
|
|
367
|
+
}).r)}, ${Math.round(r({
|
|
368
|
+
h: n,
|
|
369
|
+
s: o,
|
|
370
|
+
l: .04
|
|
371
|
+
}).g)}, ${Math.round(r({
|
|
372
|
+
h: n,
|
|
373
|
+
s: o,
|
|
374
|
+
l: .04
|
|
375
|
+
}).b)}, 0.6)`,
|
|
376
|
+
palette: D(n, "dark")
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
function E(e) {
|
|
380
|
+
let t = i(e), n = t.h, r = le, o = a({
|
|
381
|
+
h: n,
|
|
382
|
+
s: Math.max(.6, Math.min(.9, t.s)),
|
|
383
|
+
l: Math.max(.42, Math.min(.55, t.l))
|
|
384
|
+
});
|
|
385
|
+
return {
|
|
386
|
+
accent: o,
|
|
387
|
+
accentHover: u(o, .06),
|
|
388
|
+
accentFg: C(o),
|
|
389
|
+
accentMuted: p(o, .1),
|
|
390
|
+
accentSubtle: p(o, .04),
|
|
391
|
+
bg: "#ffffff",
|
|
392
|
+
bgSecondary: a({
|
|
393
|
+
h: n,
|
|
394
|
+
s: r,
|
|
395
|
+
l: .97
|
|
396
|
+
}),
|
|
397
|
+
bgTertiary: a({
|
|
398
|
+
h: n,
|
|
399
|
+
s: r,
|
|
400
|
+
l: .95
|
|
401
|
+
}),
|
|
402
|
+
fg: a({
|
|
403
|
+
h: n,
|
|
404
|
+
s: .02,
|
|
405
|
+
l: .12
|
|
406
|
+
}),
|
|
407
|
+
fgSecondary: a({
|
|
408
|
+
h: n,
|
|
409
|
+
s: .03,
|
|
410
|
+
l: .3
|
|
411
|
+
}),
|
|
412
|
+
fgMuted: a({
|
|
413
|
+
h: n,
|
|
414
|
+
s: .03,
|
|
415
|
+
l: .42
|
|
416
|
+
}),
|
|
417
|
+
border: a({
|
|
418
|
+
h: n,
|
|
419
|
+
s: r,
|
|
420
|
+
l: .9
|
|
421
|
+
}),
|
|
422
|
+
borderStrong: a({
|
|
423
|
+
h: n,
|
|
424
|
+
s: r,
|
|
425
|
+
l: .83
|
|
426
|
+
}),
|
|
427
|
+
surface: "#ffffff",
|
|
428
|
+
surfaceRaised: "#ffffff",
|
|
429
|
+
overlay: "rgba(0, 0, 0, 0.5)",
|
|
430
|
+
palette: D(n, "light")
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function D(e, t) {
|
|
434
|
+
let n = t === "dark" ? .65 : .55, r = t === "dark" ? .7 : .75;
|
|
435
|
+
return [
|
|
436
|
+
0,
|
|
437
|
+
137.5,
|
|
438
|
+
275,
|
|
439
|
+
52.5,
|
|
440
|
+
190,
|
|
441
|
+
327.5,
|
|
442
|
+
95,
|
|
443
|
+
232.5,
|
|
444
|
+
10,
|
|
445
|
+
170
|
|
446
|
+
].map((t) => a({
|
|
447
|
+
h: (e + t) % 360,
|
|
448
|
+
s: r,
|
|
449
|
+
l: n
|
|
450
|
+
}));
|
|
451
|
+
}
|
|
452
|
+
function O(e, t) {
|
|
453
|
+
let n = w, r = t === "dark", i = {
|
|
454
|
+
"--gds-bg": e.bg,
|
|
455
|
+
"--gds-bg-secondary": e.bgSecondary,
|
|
456
|
+
"--gds-bg-tertiary": e.bgTertiary,
|
|
457
|
+
"--gds-surface": e.surface,
|
|
458
|
+
"--gds-surface-raised": e.surfaceRaised,
|
|
459
|
+
"--gds-fg": e.fg,
|
|
460
|
+
"--gds-fg-secondary": e.fgSecondary,
|
|
461
|
+
"--gds-fg-muted": e.fgMuted,
|
|
462
|
+
"--gds-border": e.border,
|
|
463
|
+
"--gds-border-strong": e.borderStrong,
|
|
464
|
+
"--gds-accent": e.accent,
|
|
465
|
+
"--gds-accent-hover": e.accentHover,
|
|
466
|
+
"--gds-accent-fg": e.accentFg,
|
|
467
|
+
"--gds-overlay": e.overlay,
|
|
468
|
+
"--gds-danger": r ? n.danger.dark : n.danger.light,
|
|
469
|
+
"--gds-warning": r ? n.warning.dark : n.warning.light,
|
|
470
|
+
"--gds-success": r ? n.success.dark : n.success.light,
|
|
471
|
+
"--gds-status-active": n.statusActive,
|
|
472
|
+
"--gds-status-inactive": n.statusInactive,
|
|
473
|
+
"--gds-status-pending": n.statusPending,
|
|
474
|
+
"--gds-status-draft": n.statusDraft,
|
|
475
|
+
"--gds-priority-critical": n.priorityCritical,
|
|
476
|
+
"--gds-priority-high": n.priorityHigh,
|
|
477
|
+
"--gds-priority-medium": n.priorityMedium,
|
|
478
|
+
"--gds-priority-low": n.priorityLow,
|
|
479
|
+
"--gds-action-create": n.actionCreate,
|
|
480
|
+
"--gds-action-update": n.actionUpdate,
|
|
481
|
+
"--gds-action-delete": n.actionDelete,
|
|
482
|
+
"--gds-dot": n.dot
|
|
483
|
+
};
|
|
484
|
+
return e.palette.forEach((e, t) => {
|
|
485
|
+
i[`--gds-palette-${t}`] = e;
|
|
486
|
+
}), i;
|
|
487
|
+
}
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region src/l0-tokens/size-system.ts
|
|
490
|
+
var k = 4, ue = {
|
|
491
|
+
0: 0,
|
|
492
|
+
1: 4,
|
|
493
|
+
2: 8,
|
|
494
|
+
3: 12,
|
|
495
|
+
4: 16,
|
|
496
|
+
5: 20,
|
|
497
|
+
6: 24,
|
|
498
|
+
7: 32,
|
|
499
|
+
8: 40,
|
|
500
|
+
9: 48,
|
|
501
|
+
10: 64
|
|
502
|
+
}, A = {
|
|
503
|
+
xs: k * 6,
|
|
504
|
+
sm: k * 7,
|
|
505
|
+
default: k * 8,
|
|
506
|
+
lg: k * 10,
|
|
507
|
+
xl: k * 12
|
|
508
|
+
}, j = {
|
|
509
|
+
xs: 12,
|
|
510
|
+
sm: 14,
|
|
511
|
+
default: 16,
|
|
512
|
+
lg: 20,
|
|
513
|
+
xl: 24
|
|
514
|
+
}, de = {
|
|
515
|
+
desktop: 32,
|
|
516
|
+
mobile: 44
|
|
517
|
+
}, fe = {
|
|
518
|
+
input: {
|
|
519
|
+
min: 120,
|
|
520
|
+
max: 480
|
|
521
|
+
},
|
|
522
|
+
dialog: {
|
|
523
|
+
sm: 320,
|
|
524
|
+
md: 384,
|
|
525
|
+
lg: 480,
|
|
526
|
+
xl: 600
|
|
527
|
+
},
|
|
528
|
+
sheet: {
|
|
529
|
+
sm: 280,
|
|
530
|
+
md: 320,
|
|
531
|
+
lg: 400
|
|
532
|
+
},
|
|
533
|
+
dropdown: {
|
|
534
|
+
min: 160,
|
|
535
|
+
max: 320
|
|
536
|
+
}
|
|
537
|
+
}, M = {
|
|
538
|
+
compact: {
|
|
539
|
+
component: "sm",
|
|
540
|
+
icon: "sm",
|
|
541
|
+
gap: k * 1.5,
|
|
542
|
+
pad: k * 2,
|
|
543
|
+
text: 11
|
|
544
|
+
},
|
|
545
|
+
default: {
|
|
546
|
+
component: "default",
|
|
547
|
+
icon: "default",
|
|
548
|
+
gap: k * 3,
|
|
549
|
+
pad: k * 4,
|
|
550
|
+
text: 13
|
|
551
|
+
},
|
|
552
|
+
comfortable: {
|
|
553
|
+
component: "lg",
|
|
554
|
+
icon: "lg",
|
|
555
|
+
gap: k * 4,
|
|
556
|
+
pad: k * 6,
|
|
557
|
+
text: 14
|
|
558
|
+
}
|
|
559
|
+
}, N = {
|
|
560
|
+
compact: {
|
|
561
|
+
xs: 20,
|
|
562
|
+
sm: 24,
|
|
563
|
+
default: 28,
|
|
564
|
+
lg: 32,
|
|
565
|
+
xl: 36
|
|
566
|
+
},
|
|
567
|
+
default: {
|
|
568
|
+
xs: 24,
|
|
569
|
+
sm: 28,
|
|
570
|
+
default: 32,
|
|
571
|
+
lg: 36,
|
|
572
|
+
xl: 40
|
|
573
|
+
},
|
|
574
|
+
comfortable: {
|
|
575
|
+
xs: 28,
|
|
576
|
+
sm: 32,
|
|
577
|
+
default: 36,
|
|
578
|
+
lg: 40,
|
|
579
|
+
xl: 48
|
|
580
|
+
}
|
|
581
|
+
}, pe = {
|
|
582
|
+
compact: {
|
|
583
|
+
xs: 10,
|
|
584
|
+
sm: 12,
|
|
585
|
+
default: 14,
|
|
586
|
+
lg: 16
|
|
587
|
+
},
|
|
588
|
+
default: {
|
|
589
|
+
xs: 12,
|
|
590
|
+
sm: 14,
|
|
591
|
+
default: 16,
|
|
592
|
+
lg: 20
|
|
593
|
+
},
|
|
594
|
+
comfortable: {
|
|
595
|
+
xs: 14,
|
|
596
|
+
sm: 16,
|
|
597
|
+
default: 20,
|
|
598
|
+
lg: 24
|
|
599
|
+
}
|
|
600
|
+
}, me = {
|
|
601
|
+
compact: {
|
|
602
|
+
caption: 9,
|
|
603
|
+
label: 10,
|
|
604
|
+
body: 11
|
|
605
|
+
},
|
|
606
|
+
default: {
|
|
607
|
+
caption: 10,
|
|
608
|
+
label: 11,
|
|
609
|
+
body: 13
|
|
610
|
+
},
|
|
611
|
+
comfortable: {
|
|
612
|
+
caption: 11,
|
|
613
|
+
label: 12,
|
|
614
|
+
body: 14
|
|
615
|
+
}
|
|
616
|
+
}, he = {
|
|
617
|
+
compact: {
|
|
618
|
+
xs: 2,
|
|
619
|
+
sm: 4,
|
|
620
|
+
default: 6,
|
|
621
|
+
lg: 8
|
|
622
|
+
},
|
|
623
|
+
default: {
|
|
624
|
+
xs: 4,
|
|
625
|
+
sm: 6,
|
|
626
|
+
default: 8,
|
|
627
|
+
lg: 12
|
|
628
|
+
},
|
|
629
|
+
comfortable: {
|
|
630
|
+
xs: 6,
|
|
631
|
+
sm: 8,
|
|
632
|
+
default: 12,
|
|
633
|
+
lg: 16
|
|
634
|
+
}
|
|
635
|
+
}, ge = {
|
|
636
|
+
compact: {
|
|
637
|
+
sm: {
|
|
638
|
+
x: 4,
|
|
639
|
+
y: 2
|
|
640
|
+
},
|
|
641
|
+
default: {
|
|
642
|
+
x: 8,
|
|
643
|
+
y: 4
|
|
644
|
+
},
|
|
645
|
+
lg: {
|
|
646
|
+
x: 12,
|
|
647
|
+
y: 6
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
default: {
|
|
651
|
+
sm: {
|
|
652
|
+
x: 8,
|
|
653
|
+
y: 4
|
|
654
|
+
},
|
|
655
|
+
default: {
|
|
656
|
+
x: 12,
|
|
657
|
+
y: 6
|
|
658
|
+
},
|
|
659
|
+
lg: {
|
|
660
|
+
x: 16,
|
|
661
|
+
y: 8
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
comfortable: {
|
|
665
|
+
sm: {
|
|
666
|
+
x: 10,
|
|
667
|
+
y: 6
|
|
668
|
+
},
|
|
669
|
+
default: {
|
|
670
|
+
x: 16,
|
|
671
|
+
y: 8
|
|
672
|
+
},
|
|
673
|
+
lg: {
|
|
674
|
+
x: 20,
|
|
675
|
+
y: 12
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
function P(e) {
|
|
680
|
+
let t = e in N ? e : "default", n = M[t] ?? M.default, r = N[t], i = pe[t], a = me[t], o = he[t], s = ge[t];
|
|
681
|
+
return {
|
|
682
|
+
"--gds-component-height": `${A[n.component]}px`,
|
|
683
|
+
"--gds-icon-size": `${j[n.icon]}px`,
|
|
684
|
+
"--gds-density-gap": `${n.gap}px`,
|
|
685
|
+
"--gds-density-pad": `${n.pad}px`,
|
|
686
|
+
"--gds-density-text": `${n.text}px`,
|
|
687
|
+
"--gds-h-xs": `${r.xs}px`,
|
|
688
|
+
"--gds-h-sm": `${r.sm}px`,
|
|
689
|
+
"--gds-h": `${r.default}px`,
|
|
690
|
+
"--gds-h-lg": `${r.lg}px`,
|
|
691
|
+
"--gds-h-xl": `${r.xl}px`,
|
|
692
|
+
"--gds-icon-xs": `${i.xs}px`,
|
|
693
|
+
"--gds-icon-sm": `${i.sm}px`,
|
|
694
|
+
"--gds-icon": `${i.default}px`,
|
|
695
|
+
"--gds-icon-lg": `${i.lg}px`,
|
|
696
|
+
"--gds-text-caption": `${a.caption}px`,
|
|
697
|
+
"--gds-text-label": `${a.label}px`,
|
|
698
|
+
"--gds-text-body": `${a.body}px`,
|
|
699
|
+
"--gds-gap-xs": `${o.xs}px`,
|
|
700
|
+
"--gds-gap-sm": `${o.sm}px`,
|
|
701
|
+
"--gds-gap": `${o.default}px`,
|
|
702
|
+
"--gds-gap-lg": `${o.lg}px`,
|
|
703
|
+
"--gds-pad-x-sm": `${s.sm.x}px`,
|
|
704
|
+
"--gds-pad-x": `${s.default.x}px`,
|
|
705
|
+
"--gds-pad-x-lg": `${s.lg.x}px`,
|
|
706
|
+
"--gds-pad-y-sm": `${s.sm.y}px`,
|
|
707
|
+
"--gds-pad-y": `${s.default.y}px`,
|
|
708
|
+
"--gds-pad-y-lg": `${s.lg.y}px`
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
//#endregion
|
|
712
|
+
//#region src/l0-tokens/radius-system.ts
|
|
713
|
+
var F = [
|
|
714
|
+
4,
|
|
715
|
+
6,
|
|
716
|
+
8,
|
|
717
|
+
12
|
|
718
|
+
], _e = {
|
|
719
|
+
sharp: .5,
|
|
720
|
+
default: 1,
|
|
721
|
+
rounded: 2
|
|
722
|
+
};
|
|
723
|
+
function I(e) {
|
|
724
|
+
let t = _e[e] ?? 1;
|
|
725
|
+
return {
|
|
726
|
+
sm: Math.round(F[0] * t),
|
|
727
|
+
md: Math.round(F[1] * t),
|
|
728
|
+
lg: Math.round(F[2] * t),
|
|
729
|
+
xl: Math.round(F[3] * t),
|
|
730
|
+
full: 9999
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
function L(e) {
|
|
734
|
+
let t = I(e);
|
|
735
|
+
return {
|
|
736
|
+
"--gds-radius-sm": `${t.sm}px`,
|
|
737
|
+
"--gds-radius-md": `${t.md}px`,
|
|
738
|
+
"--gds-radius-lg": `${t.lg}px`,
|
|
739
|
+
"--gds-radius-xl": `${t.xl}px`,
|
|
740
|
+
"--gds-radius-full": `${t.full}px`,
|
|
741
|
+
"--gds-radius-button": `${t.md}px`,
|
|
742
|
+
"--gds-radius-input": `${t.md}px`,
|
|
743
|
+
"--gds-radius-badge": `${t.full}px`,
|
|
744
|
+
"--gds-radius-card": `${t.xl}px`,
|
|
745
|
+
"--gds-radius-modal": `${t.xl}px`,
|
|
746
|
+
"--gds-radius-popover": `${t.lg}px`,
|
|
747
|
+
"--gds-radius-tooltip": `${t.md}px`
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
//#endregion
|
|
751
|
+
//#region src/l0-tokens/shadow-system.ts
|
|
752
|
+
var ve = {
|
|
753
|
+
xs: [{
|
|
754
|
+
blur: 1,
|
|
755
|
+
spread: 0,
|
|
756
|
+
yOffset: 1,
|
|
757
|
+
opacity: .03
|
|
758
|
+
}],
|
|
759
|
+
sm: [{
|
|
760
|
+
blur: 2,
|
|
761
|
+
spread: 0,
|
|
762
|
+
yOffset: 1,
|
|
763
|
+
opacity: .05
|
|
764
|
+
}],
|
|
765
|
+
md: [{
|
|
766
|
+
blur: 6,
|
|
767
|
+
spread: -1,
|
|
768
|
+
yOffset: 4,
|
|
769
|
+
opacity: .1
|
|
770
|
+
}, {
|
|
771
|
+
blur: 4,
|
|
772
|
+
spread: -2,
|
|
773
|
+
yOffset: 2,
|
|
774
|
+
opacity: .1
|
|
775
|
+
}],
|
|
776
|
+
lg: [{
|
|
777
|
+
blur: 15,
|
|
778
|
+
spread: -3,
|
|
779
|
+
yOffset: 10,
|
|
780
|
+
opacity: .1
|
|
781
|
+
}, {
|
|
782
|
+
blur: 6,
|
|
783
|
+
spread: -4,
|
|
784
|
+
yOffset: 4,
|
|
785
|
+
opacity: .1
|
|
786
|
+
}],
|
|
787
|
+
xl: [{
|
|
788
|
+
blur: 25,
|
|
789
|
+
spread: -5,
|
|
790
|
+
yOffset: 20,
|
|
791
|
+
opacity: .1
|
|
792
|
+
}, {
|
|
793
|
+
blur: 10,
|
|
794
|
+
spread: -6,
|
|
795
|
+
yOffset: 8,
|
|
796
|
+
opacity: .1
|
|
797
|
+
}]
|
|
798
|
+
}, ye = {
|
|
799
|
+
flat: 0,
|
|
800
|
+
subtle: .6,
|
|
801
|
+
raised: 1
|
|
802
|
+
}, be = {
|
|
803
|
+
dark: 3,
|
|
804
|
+
light: 1
|
|
805
|
+
};
|
|
806
|
+
function xe(e, t, n) {
|
|
807
|
+
if (t === 0) return "none";
|
|
808
|
+
let r = Math.min(1, e.opacity * t * n);
|
|
809
|
+
return `0 ${e.yOffset}px ${e.blur}px ${e.spread}px rgb(0 0 0 / ${r.toFixed(2)})`;
|
|
810
|
+
}
|
|
811
|
+
function R(e, t, n) {
|
|
812
|
+
let r = ve[e];
|
|
813
|
+
if (r === void 0) return "none";
|
|
814
|
+
let i = ye[t] ?? 1;
|
|
815
|
+
if (i === 0) return "none";
|
|
816
|
+
let a = be[n] ?? 1;
|
|
817
|
+
return r.map((e) => xe(e, i, a)).join(", ");
|
|
818
|
+
}
|
|
819
|
+
function z(e, t) {
|
|
820
|
+
return {
|
|
821
|
+
"--gds-shadow-xs": R("xs", e, t),
|
|
822
|
+
"--gds-shadow-sm": R("sm", e, t),
|
|
823
|
+
"--gds-shadow-md": R("md", e, t),
|
|
824
|
+
"--gds-shadow-lg": R("lg", e, t),
|
|
825
|
+
"--gds-shadow-xl": R("xl", e, t)
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
//#endregion
|
|
829
|
+
//#region src/l0-tokens/glass-system.ts
|
|
830
|
+
var Se = {
|
|
831
|
+
off: {
|
|
832
|
+
blurSm: 0,
|
|
833
|
+
blurMd: 0,
|
|
834
|
+
blurLg: 0,
|
|
835
|
+
saturateSm: 100,
|
|
836
|
+
saturateMd: 100,
|
|
837
|
+
saturateLg: 100,
|
|
838
|
+
bgOpacity: .95
|
|
839
|
+
},
|
|
840
|
+
subtle: {
|
|
841
|
+
blurSm: 4,
|
|
842
|
+
blurMd: 12,
|
|
843
|
+
blurLg: 24,
|
|
844
|
+
saturateSm: 130,
|
|
845
|
+
saturateMd: 150,
|
|
846
|
+
saturateLg: 160,
|
|
847
|
+
bgOpacity: .25
|
|
848
|
+
},
|
|
849
|
+
full: {
|
|
850
|
+
blurSm: 8,
|
|
851
|
+
blurMd: 20,
|
|
852
|
+
blurLg: 40,
|
|
853
|
+
saturateSm: 150,
|
|
854
|
+
saturateMd: 180,
|
|
855
|
+
saturateLg: 200,
|
|
856
|
+
bgOpacity: .15
|
|
857
|
+
}
|
|
858
|
+
}, Ce = {
|
|
859
|
+
dark: -.05,
|
|
860
|
+
light: .1
|
|
861
|
+
};
|
|
862
|
+
function B(e, t) {
|
|
863
|
+
let n = Se[e], r = Ce[t] ?? 0;
|
|
864
|
+
return {
|
|
865
|
+
...n,
|
|
866
|
+
bgOpacity: Math.min(.95, Math.max(.05, n.bgOpacity + r))
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function V(e, t) {
|
|
870
|
+
let n = B(e, t);
|
|
871
|
+
return {
|
|
872
|
+
"--gds-glass-blur-sm": `${n.blurSm}px`,
|
|
873
|
+
"--gds-glass-blur-md": `${n.blurMd}px`,
|
|
874
|
+
"--gds-glass-blur-lg": `${n.blurLg}px`,
|
|
875
|
+
"--gds-glass-saturate-sm": `${n.saturateSm}%`,
|
|
876
|
+
"--gds-glass-saturate-md": `${n.saturateMd}%`,
|
|
877
|
+
"--gds-glass-saturate-lg": `${n.saturateLg}%`,
|
|
878
|
+
"--gds-glass-bg-opacity": `${n.bgOpacity}`
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
function we() {
|
|
882
|
+
return typeof CSS > "u" ? !1 : CSS.supports("backdrop-filter", "blur(1px)") || CSS.supports("-webkit-backdrop-filter", "blur(1px)");
|
|
883
|
+
}
|
|
884
|
+
//#endregion
|
|
885
|
+
//#region src/l0-tokens/motion-system.ts
|
|
886
|
+
var Te = 100, Ee = {
|
|
887
|
+
fast: 1,
|
|
888
|
+
normal: 2,
|
|
889
|
+
slow: 3,
|
|
890
|
+
slower: 5
|
|
891
|
+
}, H = {
|
|
892
|
+
off: 0,
|
|
893
|
+
reduced: .5,
|
|
894
|
+
full: 1
|
|
895
|
+
};
|
|
896
|
+
function U(e, t) {
|
|
897
|
+
return Math.round(Te * Ee[e] * H[t]);
|
|
898
|
+
}
|
|
899
|
+
var W = {
|
|
900
|
+
default: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
901
|
+
in: "cubic-bezier(0.4, 0, 1, 1)",
|
|
902
|
+
out: "cubic-bezier(0, 0, 0.2, 1)",
|
|
903
|
+
inOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
904
|
+
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
905
|
+
bounce: "cubic-bezier(0.68, -0.55, 0.27, 1.55)"
|
|
906
|
+
}, De = {
|
|
907
|
+
default: {
|
|
908
|
+
tension: 170,
|
|
909
|
+
friction: 26
|
|
910
|
+
},
|
|
911
|
+
gentle: {
|
|
912
|
+
tension: 120,
|
|
913
|
+
friction: 14
|
|
914
|
+
},
|
|
915
|
+
bouncy: {
|
|
916
|
+
tension: 300,
|
|
917
|
+
friction: 10
|
|
918
|
+
},
|
|
919
|
+
stiff: {
|
|
920
|
+
tension: 400,
|
|
921
|
+
friction: 28
|
|
922
|
+
},
|
|
923
|
+
slow: {
|
|
924
|
+
tension: 100,
|
|
925
|
+
friction: 20
|
|
926
|
+
}
|
|
927
|
+
}, Oe = {
|
|
928
|
+
fadeIn: {
|
|
929
|
+
from: { opacity: 0 },
|
|
930
|
+
to: { opacity: 1 }
|
|
931
|
+
},
|
|
932
|
+
fadeOut: {
|
|
933
|
+
from: { opacity: 1 },
|
|
934
|
+
to: { opacity: 0 }
|
|
935
|
+
},
|
|
936
|
+
scaleIn: {
|
|
937
|
+
from: {
|
|
938
|
+
opacity: 0,
|
|
939
|
+
transform: "scale(0.95)"
|
|
940
|
+
},
|
|
941
|
+
to: {
|
|
942
|
+
opacity: 1,
|
|
943
|
+
transform: "scale(1)"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
scaleOut: {
|
|
947
|
+
from: {
|
|
948
|
+
opacity: 1,
|
|
949
|
+
transform: "scale(1)"
|
|
950
|
+
},
|
|
951
|
+
to: {
|
|
952
|
+
opacity: 0,
|
|
953
|
+
transform: "scale(0.95)"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
slideUp: {
|
|
957
|
+
from: {
|
|
958
|
+
opacity: 0,
|
|
959
|
+
transform: "translateY(8px)"
|
|
960
|
+
},
|
|
961
|
+
to: {
|
|
962
|
+
opacity: 1,
|
|
963
|
+
transform: "translateY(0)"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
slideDown: {
|
|
967
|
+
from: {
|
|
968
|
+
opacity: 0,
|
|
969
|
+
transform: "translateY(-8px)"
|
|
970
|
+
},
|
|
971
|
+
to: {
|
|
972
|
+
opacity: 1,
|
|
973
|
+
transform: "translateY(0)"
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
slideLeft: {
|
|
977
|
+
from: {
|
|
978
|
+
opacity: 0,
|
|
979
|
+
transform: "translateX(8px)"
|
|
980
|
+
},
|
|
981
|
+
to: {
|
|
982
|
+
opacity: 1,
|
|
983
|
+
transform: "translateX(0)"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
slideRight: {
|
|
987
|
+
from: {
|
|
988
|
+
opacity: 0,
|
|
989
|
+
transform: "translateX(-8px)"
|
|
990
|
+
},
|
|
991
|
+
to: {
|
|
992
|
+
opacity: 1,
|
|
993
|
+
transform: "translateX(0)"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
function G(e) {
|
|
998
|
+
return {
|
|
999
|
+
"--gds-duration-fast": `${U("fast", e)}ms`,
|
|
1000
|
+
"--gds-duration-normal": `${U("normal", e)}ms`,
|
|
1001
|
+
"--gds-duration-slow": `${U("slow", e)}ms`,
|
|
1002
|
+
"--gds-duration-slower": `${U("slower", e)}ms`,
|
|
1003
|
+
"--gds-ease-default": W.default,
|
|
1004
|
+
"--gds-ease-in": W.in,
|
|
1005
|
+
"--gds-ease-out": W.out,
|
|
1006
|
+
"--gds-ease-spring": W.spring
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/l0-tokens/font-system.ts
|
|
1011
|
+
var K = {
|
|
1012
|
+
sans: [
|
|
1013
|
+
"Inter",
|
|
1014
|
+
"\"Noto Sans SC\"",
|
|
1015
|
+
"\"Noto Sans JP\"",
|
|
1016
|
+
"\"Noto Sans KR\"",
|
|
1017
|
+
"system-ui",
|
|
1018
|
+
"-apple-system",
|
|
1019
|
+
"sans-serif"
|
|
1020
|
+
].join(", "),
|
|
1021
|
+
mono: [
|
|
1022
|
+
"\"JetBrains Mono\"",
|
|
1023
|
+
"\"Noto Sans Mono\"",
|
|
1024
|
+
"ui-monospace",
|
|
1025
|
+
"Consolas",
|
|
1026
|
+
"monospace"
|
|
1027
|
+
].join(", "),
|
|
1028
|
+
flex: [
|
|
1029
|
+
"\"Roboto Flex\"",
|
|
1030
|
+
"system-ui",
|
|
1031
|
+
"sans-serif"
|
|
1032
|
+
].join(", ")
|
|
1033
|
+
}, q = {
|
|
1034
|
+
proportional: "'MONO' 0",
|
|
1035
|
+
half: "'MONO' 0.5",
|
|
1036
|
+
full: "'MONO' 1"
|
|
1037
|
+
}, J = {
|
|
1038
|
+
light: 300,
|
|
1039
|
+
regular: 400,
|
|
1040
|
+
medium: 500,
|
|
1041
|
+
semibold: 600,
|
|
1042
|
+
bold: 700
|
|
1043
|
+
}, Y = {
|
|
1044
|
+
tabular: "'tnum' 1",
|
|
1045
|
+
slashedZero: "'zero' 1",
|
|
1046
|
+
tabularSlashed: "'tnum' 1, 'zero' 1",
|
|
1047
|
+
proportional: "'pnum' 1",
|
|
1048
|
+
ligatures: "'liga' 1, 'calt' 1",
|
|
1049
|
+
cjkPunct: "'halt' 1"
|
|
1050
|
+
}, X = {
|
|
1051
|
+
h1: {
|
|
1052
|
+
family: "sans",
|
|
1053
|
+
weight: 700,
|
|
1054
|
+
size: "1.5rem",
|
|
1055
|
+
leading: 1.2,
|
|
1056
|
+
tracking: "-0.025em",
|
|
1057
|
+
features: ""
|
|
1058
|
+
},
|
|
1059
|
+
h2: {
|
|
1060
|
+
family: "sans",
|
|
1061
|
+
weight: 600,
|
|
1062
|
+
size: "1.25rem",
|
|
1063
|
+
leading: 1.25,
|
|
1064
|
+
tracking: "-0.02em",
|
|
1065
|
+
features: ""
|
|
1066
|
+
},
|
|
1067
|
+
h3: {
|
|
1068
|
+
family: "sans",
|
|
1069
|
+
weight: 600,
|
|
1070
|
+
size: "1.125rem",
|
|
1071
|
+
leading: 1.3,
|
|
1072
|
+
tracking: "-0.015em",
|
|
1073
|
+
features: ""
|
|
1074
|
+
},
|
|
1075
|
+
h4: {
|
|
1076
|
+
family: "sans",
|
|
1077
|
+
weight: 600,
|
|
1078
|
+
size: "1rem",
|
|
1079
|
+
leading: 1.35,
|
|
1080
|
+
tracking: "-0.01em",
|
|
1081
|
+
features: ""
|
|
1082
|
+
},
|
|
1083
|
+
h5: {
|
|
1084
|
+
family: "sans",
|
|
1085
|
+
weight: 600,
|
|
1086
|
+
size: "0.875rem",
|
|
1087
|
+
leading: 1.4,
|
|
1088
|
+
tracking: "0",
|
|
1089
|
+
features: ""
|
|
1090
|
+
},
|
|
1091
|
+
h6: {
|
|
1092
|
+
family: "sans",
|
|
1093
|
+
weight: 600,
|
|
1094
|
+
size: "0.75rem",
|
|
1095
|
+
leading: 1.4,
|
|
1096
|
+
tracking: "0.01em",
|
|
1097
|
+
features: ""
|
|
1098
|
+
},
|
|
1099
|
+
body: {
|
|
1100
|
+
family: "sans",
|
|
1101
|
+
weight: 400,
|
|
1102
|
+
size: "0.875rem",
|
|
1103
|
+
leading: 1.6,
|
|
1104
|
+
tracking: "0",
|
|
1105
|
+
features: ""
|
|
1106
|
+
},
|
|
1107
|
+
bodySmall: {
|
|
1108
|
+
family: "sans",
|
|
1109
|
+
weight: 400,
|
|
1110
|
+
size: "0.8125rem",
|
|
1111
|
+
leading: 1.5,
|
|
1112
|
+
tracking: "0",
|
|
1113
|
+
features: ""
|
|
1114
|
+
},
|
|
1115
|
+
label: {
|
|
1116
|
+
family: "flex",
|
|
1117
|
+
weight: 500,
|
|
1118
|
+
size: "0.75rem",
|
|
1119
|
+
leading: 1.4,
|
|
1120
|
+
tracking: "0.01em",
|
|
1121
|
+
features: "",
|
|
1122
|
+
variation: q.full
|
|
1123
|
+
},
|
|
1124
|
+
caption: {
|
|
1125
|
+
family: "sans",
|
|
1126
|
+
weight: 400,
|
|
1127
|
+
size: "0.6875rem",
|
|
1128
|
+
leading: 1.4,
|
|
1129
|
+
tracking: "0.01em",
|
|
1130
|
+
features: ""
|
|
1131
|
+
},
|
|
1132
|
+
badge: {
|
|
1133
|
+
family: "flex",
|
|
1134
|
+
weight: 600,
|
|
1135
|
+
size: "0.625rem",
|
|
1136
|
+
leading: 1,
|
|
1137
|
+
tracking: "0.03em",
|
|
1138
|
+
features: "",
|
|
1139
|
+
variation: q.full
|
|
1140
|
+
},
|
|
1141
|
+
button: {
|
|
1142
|
+
family: "sans",
|
|
1143
|
+
weight: 500,
|
|
1144
|
+
size: "0.8125rem",
|
|
1145
|
+
leading: 1,
|
|
1146
|
+
tracking: "0.01em",
|
|
1147
|
+
features: ""
|
|
1148
|
+
},
|
|
1149
|
+
code: {
|
|
1150
|
+
family: "mono",
|
|
1151
|
+
weight: 400,
|
|
1152
|
+
size: "0.8125rem",
|
|
1153
|
+
leading: 1.6,
|
|
1154
|
+
tracking: "0",
|
|
1155
|
+
features: Y.ligatures
|
|
1156
|
+
},
|
|
1157
|
+
codeSmall: {
|
|
1158
|
+
family: "mono",
|
|
1159
|
+
weight: 400,
|
|
1160
|
+
size: "0.6875rem",
|
|
1161
|
+
leading: 1.5,
|
|
1162
|
+
tracking: "0",
|
|
1163
|
+
features: Y.ligatures
|
|
1164
|
+
},
|
|
1165
|
+
finance: {
|
|
1166
|
+
family: "flex",
|
|
1167
|
+
weight: 400,
|
|
1168
|
+
size: "0.875rem",
|
|
1169
|
+
leading: 1.4,
|
|
1170
|
+
tracking: "0",
|
|
1171
|
+
features: "",
|
|
1172
|
+
variation: q.full
|
|
1173
|
+
},
|
|
1174
|
+
price: {
|
|
1175
|
+
family: "flex",
|
|
1176
|
+
weight: 600,
|
|
1177
|
+
size: "1rem",
|
|
1178
|
+
leading: 1,
|
|
1179
|
+
tracking: "-0.01em",
|
|
1180
|
+
features: "",
|
|
1181
|
+
variation: q.full
|
|
1182
|
+
},
|
|
1183
|
+
tableNum: {
|
|
1184
|
+
family: "flex",
|
|
1185
|
+
weight: 400,
|
|
1186
|
+
size: "0.75rem",
|
|
1187
|
+
leading: 1.4,
|
|
1188
|
+
tracking: "0",
|
|
1189
|
+
features: "",
|
|
1190
|
+
variation: q.full
|
|
1191
|
+
},
|
|
1192
|
+
tableHead: {
|
|
1193
|
+
family: "flex",
|
|
1194
|
+
weight: 500,
|
|
1195
|
+
size: "0.6875rem",
|
|
1196
|
+
leading: 1.4,
|
|
1197
|
+
tracking: "0.02em",
|
|
1198
|
+
features: "",
|
|
1199
|
+
variation: q.full
|
|
1200
|
+
},
|
|
1201
|
+
jpFull: {
|
|
1202
|
+
family: "sans",
|
|
1203
|
+
weight: 400,
|
|
1204
|
+
size: "0.875rem",
|
|
1205
|
+
leading: 1.8,
|
|
1206
|
+
tracking: "0.05em",
|
|
1207
|
+
features: Y.cjkPunct
|
|
1208
|
+
}
|
|
1209
|
+
}, ke = {
|
|
1210
|
+
check: "✓",
|
|
1211
|
+
cross: "✕",
|
|
1212
|
+
dot: "●",
|
|
1213
|
+
ring: "○",
|
|
1214
|
+
triangle: "▲",
|
|
1215
|
+
triangleDown: "▼",
|
|
1216
|
+
diamond: "◆",
|
|
1217
|
+
square: "■",
|
|
1218
|
+
arrowUp: "↑",
|
|
1219
|
+
arrowDown: "↓",
|
|
1220
|
+
arrowLeft: "←",
|
|
1221
|
+
arrowRight: "→",
|
|
1222
|
+
arrowUpDown: "↕",
|
|
1223
|
+
command: "⌘",
|
|
1224
|
+
shift: "⇧",
|
|
1225
|
+
option: "⌥",
|
|
1226
|
+
control: "⌃",
|
|
1227
|
+
enter: "⏎",
|
|
1228
|
+
tab: "⇥",
|
|
1229
|
+
escape: "⎋",
|
|
1230
|
+
backspace: "⌫",
|
|
1231
|
+
delete: "⌦",
|
|
1232
|
+
space: "␣",
|
|
1233
|
+
ellipsis: "…",
|
|
1234
|
+
bullet: "•",
|
|
1235
|
+
dash: "—",
|
|
1236
|
+
ndash: "–",
|
|
1237
|
+
middot: "·",
|
|
1238
|
+
times: "×",
|
|
1239
|
+
minus: "−",
|
|
1240
|
+
plus: "+"
|
|
1241
|
+
};
|
|
1242
|
+
function Z() {
|
|
1243
|
+
return {
|
|
1244
|
+
"--gds-font-sans": K.sans,
|
|
1245
|
+
"--gds-font-mono": K.mono,
|
|
1246
|
+
"--gds-font-flex": K.flex,
|
|
1247
|
+
"--gds-font-light": `${J.light}`,
|
|
1248
|
+
"--gds-font-regular": `${J.regular}`,
|
|
1249
|
+
"--gds-font-medium": `${J.medium}`,
|
|
1250
|
+
"--gds-font-semibold": `${J.semibold}`,
|
|
1251
|
+
"--gds-font-bold": `${J.bold}`
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
function Ae(e) {
|
|
1255
|
+
let t = X[e];
|
|
1256
|
+
return {
|
|
1257
|
+
fontFamily: `var(--gds-font-${t.family})`,
|
|
1258
|
+
fontWeight: t.weight,
|
|
1259
|
+
fontSize: t.size,
|
|
1260
|
+
lineHeight: t.leading,
|
|
1261
|
+
letterSpacing: t.tracking,
|
|
1262
|
+
...t.features ? { fontFeatureSettings: t.features } : {},
|
|
1263
|
+
...t.variation ? { fontVariationSettings: t.variation } : {},
|
|
1264
|
+
...t.italic ? { fontStyle: "italic" } : {}
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
//#endregion
|
|
1268
|
+
//#region src/l0-tokens/generate-defaults.ts
|
|
1269
|
+
var Q = "#3b82f6";
|
|
1270
|
+
function $(e) {
|
|
1271
|
+
return {
|
|
1272
|
+
...O(e === "dark" ? T(Q) : E(Q), e),
|
|
1273
|
+
...Z(),
|
|
1274
|
+
...L("default"),
|
|
1275
|
+
...P("default"),
|
|
1276
|
+
...z("raised", e),
|
|
1277
|
+
...V("full", e),
|
|
1278
|
+
...G("full")
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
function je(e, t) {
|
|
1282
|
+
let n = $(t);
|
|
1283
|
+
for (let [t, r] of Object.entries(n)) e.style.setProperty(t, r);
|
|
1284
|
+
}
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region src/l0-tokens/scales.ts
|
|
1287
|
+
function Me(e, t, n, r, i, a) {
|
|
1288
|
+
return {
|
|
1289
|
+
...L(e),
|
|
1290
|
+
...P(t),
|
|
1291
|
+
...z(n, a),
|
|
1292
|
+
...V(r, a),
|
|
1293
|
+
...G(i)
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
//#endregion
|
|
1297
|
+
export { d as $, ue as A, m as B, I as C, M as D, fe as E, O as F, a as G, u as H, se as I, c as J, r as K, C as L, w as M, T as N, j as O, E as P, n as Q, S as R, R as S, A as T, i as U, s as V, e as W, o as X, l as Y, t as Z, De as _, q as a, we as b, K as c, Ae as d, g as et, ke as f, G as g, Oe as h, $ as i, de as j, P as k, Z as l, W as m, Q as n, Y as o, U as p, f as q, je as r, X as s, Me as t, p as tt, J as u, B as v, L as w, z as x, V as y, h as z };
|
|
1298
|
+
|
|
1299
|
+
//# sourceMappingURL=scales-C80FTPsL.js.map
|