@drdex0101/water-design-system 1.0.1
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 +52 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +6 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/pages/ColorTokens.d.ts +2 -0
- package/dist/pages/TypographyTokens.d.ts +2 -0
- package/dist/tokens/colors.d.ts +443 -0
- package/dist/tokens/index.d.ts +8 -0
- package/dist/tokens/semantic.d.ts +208 -0
- package/dist/tokens/typography.d.ts +490 -0
- package/dist/water-design-system.es.js +882 -0
- package/dist/water-design-system.umd.js +22 -0
- package/package.json +50 -0
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
import ge from "react";
|
|
2
|
+
var L = { exports: {} }, x = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var X;
|
|
13
|
+
function he() {
|
|
14
|
+
if (X) return x;
|
|
15
|
+
X = 1;
|
|
16
|
+
var c = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
|
|
17
|
+
function _(v, b, g) {
|
|
18
|
+
var T = null;
|
|
19
|
+
if (g !== void 0 && (T = "" + g), b.key !== void 0 && (T = "" + b.key), "key" in b) {
|
|
20
|
+
g = {};
|
|
21
|
+
for (var F in b)
|
|
22
|
+
F !== "key" && (g[F] = b[F]);
|
|
23
|
+
} else g = b;
|
|
24
|
+
return b = g.ref, {
|
|
25
|
+
$$typeof: c,
|
|
26
|
+
type: v,
|
|
27
|
+
key: T,
|
|
28
|
+
ref: b !== void 0 ? b : null,
|
|
29
|
+
props: g
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return x.Fragment = E, x.jsx = _, x.jsxs = _, x;
|
|
33
|
+
}
|
|
34
|
+
var W = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var Z;
|
|
45
|
+
function ye() {
|
|
46
|
+
return Z || (Z = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function c(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === me ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case P:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case re:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case ne:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case se:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case fe:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case de:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case oe:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case ae:
|
|
73
|
+
return e.displayName || "Context";
|
|
74
|
+
case ie:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case le:
|
|
77
|
+
var t = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case ce:
|
|
80
|
+
return t = e.displayName || null, t !== null ? t : c(e.type) || "Memo";
|
|
81
|
+
case M:
|
|
82
|
+
t = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return c(e(t));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function E(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function _(e) {
|
|
94
|
+
try {
|
|
95
|
+
E(e);
|
|
96
|
+
var t = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
t = !0;
|
|
99
|
+
}
|
|
100
|
+
if (t) {
|
|
101
|
+
t = console;
|
|
102
|
+
var a = t.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return a.call(
|
|
104
|
+
t,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
s
|
|
107
|
+
), E(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function v(e) {
|
|
111
|
+
if (e === P) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === M)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var t = c(e);
|
|
116
|
+
return t ? "<" + t + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function b() {
|
|
122
|
+
var e = H.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function g() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function T(e) {
|
|
129
|
+
if (I.call(e, "key")) {
|
|
130
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (t && t.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function F(e, t) {
|
|
136
|
+
function a() {
|
|
137
|
+
U || (U = !0, console.error(
|
|
138
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
+
t
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: a,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function ee() {
|
|
148
|
+
var e = c(this.type);
|
|
149
|
+
return V[e] || (V[e] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function te(e, t, a, s, z, C) {
|
|
154
|
+
var f = a.ref;
|
|
155
|
+
return e = {
|
|
156
|
+
$$typeof: D,
|
|
157
|
+
type: e,
|
|
158
|
+
key: t,
|
|
159
|
+
props: a,
|
|
160
|
+
_owner: s
|
|
161
|
+
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: ee
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: z
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: C
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function Y(e, t, a, s, z, C) {
|
|
187
|
+
var f = t.children;
|
|
188
|
+
if (f !== void 0)
|
|
189
|
+
if (s)
|
|
190
|
+
if (ue(f)) {
|
|
191
|
+
for (s = 0; s < f.length; s++)
|
|
192
|
+
B(f[s]);
|
|
193
|
+
Object.freeze && Object.freeze(f);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else B(f);
|
|
199
|
+
if (I.call(t, "key")) {
|
|
200
|
+
f = c(e);
|
|
201
|
+
var R = Object.keys(t).filter(function(be) {
|
|
202
|
+
return be !== "key";
|
|
203
|
+
});
|
|
204
|
+
s = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", J[f + s] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
s,
|
|
212
|
+
f,
|
|
213
|
+
R,
|
|
214
|
+
f
|
|
215
|
+
), J[f + s] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (f = null, a !== void 0 && (_(a), f = "" + a), T(t) && (_(t.key), f = "" + t.key), "key" in t) {
|
|
218
|
+
a = {};
|
|
219
|
+
for (var N in t)
|
|
220
|
+
N !== "key" && (a[N] = t[N]);
|
|
221
|
+
} else a = t;
|
|
222
|
+
return f && F(
|
|
223
|
+
a,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), te(
|
|
226
|
+
e,
|
|
227
|
+
f,
|
|
228
|
+
a,
|
|
229
|
+
b(),
|
|
230
|
+
z,
|
|
231
|
+
C
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
function B(e) {
|
|
235
|
+
$(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === M && (e._payload.status === "fulfilled" ? $(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
|
+
}
|
|
237
|
+
function $(e) {
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === D;
|
|
239
|
+
}
|
|
240
|
+
var O = ge, D = Symbol.for("react.transitional.element"), oe = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), ie = Symbol.for("react.consumer"), ae = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), se = Symbol.for("react.suspense"), fe = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), de = Symbol.for("react.activity"), me = Symbol.for("react.client.reference"), H = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, ue = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
241
|
+
return null;
|
|
242
|
+
};
|
|
243
|
+
O = {
|
|
244
|
+
react_stack_bottom_frame: function(e) {
|
|
245
|
+
return e();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var U, V = {}, q = O.react_stack_bottom_frame.bind(
|
|
249
|
+
O,
|
|
250
|
+
g
|
|
251
|
+
)(), G = j(v(g)), J = {};
|
|
252
|
+
W.Fragment = P, W.jsx = function(e, t, a) {
|
|
253
|
+
var s = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
254
|
+
return Y(
|
|
255
|
+
e,
|
|
256
|
+
t,
|
|
257
|
+
a,
|
|
258
|
+
!1,
|
|
259
|
+
s ? Error("react-stack-top-frame") : q,
|
|
260
|
+
s ? j(v(e)) : G
|
|
261
|
+
);
|
|
262
|
+
}, W.jsxs = function(e, t, a) {
|
|
263
|
+
var s = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return Y(
|
|
265
|
+
e,
|
|
266
|
+
t,
|
|
267
|
+
a,
|
|
268
|
+
!0,
|
|
269
|
+
s ? Error("react-stack-top-frame") : q,
|
|
270
|
+
s ? j(v(e)) : G
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
}()), W;
|
|
274
|
+
}
|
|
275
|
+
process.env.NODE_ENV === "production" ? L.exports = he() : L.exports = ye();
|
|
276
|
+
var pe = L.exports;
|
|
277
|
+
const y = {
|
|
278
|
+
50: "#fdecec",
|
|
279
|
+
100: "#fac5c5",
|
|
280
|
+
200: "#f8a9a9",
|
|
281
|
+
300: "#f48282",
|
|
282
|
+
400: "#f26969",
|
|
283
|
+
500: "#ef4444",
|
|
284
|
+
600: "#d93e3e",
|
|
285
|
+
700: "#aa3030",
|
|
286
|
+
800: "#832525",
|
|
287
|
+
900: "#641d1d"
|
|
288
|
+
}, S = {
|
|
289
|
+
50: "#fdf1e6",
|
|
290
|
+
100: "#f8d4b0",
|
|
291
|
+
200: "#f4bf8a",
|
|
292
|
+
300: "#efa154",
|
|
293
|
+
400: "#ec8f33",
|
|
294
|
+
500: "#e77300",
|
|
295
|
+
600: "#d26900",
|
|
296
|
+
700: "#a45200",
|
|
297
|
+
800: "#7f3f00",
|
|
298
|
+
900: "#613000"
|
|
299
|
+
}, p = {
|
|
300
|
+
50: "#fef7e6",
|
|
301
|
+
100: "#fae7b0",
|
|
302
|
+
200: "#f8db8a",
|
|
303
|
+
300: "#f5cb54",
|
|
304
|
+
400: "#f3c133",
|
|
305
|
+
500: "#f0b100",
|
|
306
|
+
600: "#daa100",
|
|
307
|
+
700: "#aa7e00",
|
|
308
|
+
800: "#846100",
|
|
309
|
+
900: "#654a00"
|
|
310
|
+
}, h = {
|
|
311
|
+
50: "#e7f7ed",
|
|
312
|
+
100: "#b3e6c6",
|
|
313
|
+
200: "#8fd9aa",
|
|
314
|
+
300: "#5cc884",
|
|
315
|
+
400: "#3cbd6c",
|
|
316
|
+
500: "#0bad47",
|
|
317
|
+
600: "#0a9d41",
|
|
318
|
+
700: "#087b32",
|
|
319
|
+
800: "#065f27",
|
|
320
|
+
900: "#05491e"
|
|
321
|
+
}, Q = {
|
|
322
|
+
50: "#e6fdfe",
|
|
323
|
+
100: "#b1f7fc",
|
|
324
|
+
200: "#8bf4fb",
|
|
325
|
+
300: "#55eef9",
|
|
326
|
+
400: "#35ebf8",
|
|
327
|
+
500: "#02e6f6",
|
|
328
|
+
600: "#02d1e0",
|
|
329
|
+
700: "#01a3af",
|
|
330
|
+
800: "#017f87",
|
|
331
|
+
900: "#016167"
|
|
332
|
+
}, Se = {
|
|
333
|
+
50: "#e6f8f6",
|
|
334
|
+
100: "#b0ebe4",
|
|
335
|
+
200: "#8ae1d7",
|
|
336
|
+
300: "#55d3c4",
|
|
337
|
+
400: "#34cab9",
|
|
338
|
+
500: "#01bda7",
|
|
339
|
+
600: "#01ac98",
|
|
340
|
+
700: "#018677",
|
|
341
|
+
800: "#01685c",
|
|
342
|
+
900: "#004f46"
|
|
343
|
+
}, d = {
|
|
344
|
+
50: "#eaf5ff",
|
|
345
|
+
100: "#bee1ff",
|
|
346
|
+
200: "#9fd2ff",
|
|
347
|
+
300: "#73bdff",
|
|
348
|
+
400: "#58b1ff",
|
|
349
|
+
500: "#2e9dff",
|
|
350
|
+
600: "#2a8fe8",
|
|
351
|
+
700: "#216fb5",
|
|
352
|
+
800: "#19568c",
|
|
353
|
+
900: "#13426b"
|
|
354
|
+
}, l = {
|
|
355
|
+
50: "#eff0f2",
|
|
356
|
+
100: "#cfd1d5",
|
|
357
|
+
200: "#b7bac1",
|
|
358
|
+
300: "#969ba5",
|
|
359
|
+
400: "#828894",
|
|
360
|
+
500: "#636a79",
|
|
361
|
+
600: "#5a606e",
|
|
362
|
+
700: "#464b56",
|
|
363
|
+
800: "#363a43",
|
|
364
|
+
900: "#2a2d33"
|
|
365
|
+
}, A = {
|
|
366
|
+
50: "#fcfdfd",
|
|
367
|
+
100: "#f7f8f9",
|
|
368
|
+
200: "#f3f4f6",
|
|
369
|
+
300: "#eeeff2",
|
|
370
|
+
400: "#eaecef",
|
|
371
|
+
500: "#e5e7eb",
|
|
372
|
+
600: "#d0d2d6",
|
|
373
|
+
700: "#a3a4a7",
|
|
374
|
+
800: "#7e7f81",
|
|
375
|
+
900: "#606163"
|
|
376
|
+
}, ke = {
|
|
377
|
+
50: "#f9fafb",
|
|
378
|
+
100: "#f3f4f6",
|
|
379
|
+
200: "#e5e7eb",
|
|
380
|
+
300: "#d1d5db",
|
|
381
|
+
400: "#9ca3af",
|
|
382
|
+
500: "#6b7280",
|
|
383
|
+
600: "#4b5563",
|
|
384
|
+
700: "#374151",
|
|
385
|
+
800: "#1f2937",
|
|
386
|
+
900: "#111827"
|
|
387
|
+
}, Ee = {
|
|
388
|
+
50: "#e8f4f7",
|
|
389
|
+
100: "#c6e4eb",
|
|
390
|
+
200: "#a3d4df",
|
|
391
|
+
300: "#81c4d3",
|
|
392
|
+
400: "#5eb4c7",
|
|
393
|
+
500: "#3ca4bb",
|
|
394
|
+
600: "#358fa3",
|
|
395
|
+
700: "#2d7a8b",
|
|
396
|
+
800: "#256573",
|
|
397
|
+
900: "#1e505b"
|
|
398
|
+
}, w = "#ffffff", K = "#000000", Pe = {
|
|
399
|
+
red: y,
|
|
400
|
+
orange: S,
|
|
401
|
+
yellow: p,
|
|
402
|
+
green: h,
|
|
403
|
+
cyan: Q,
|
|
404
|
+
teal: Se,
|
|
405
|
+
brandblue: d,
|
|
406
|
+
slate: l,
|
|
407
|
+
lightgrey: A,
|
|
408
|
+
grey: ke,
|
|
409
|
+
deepocean: Ee,
|
|
410
|
+
white: w,
|
|
411
|
+
black: K
|
|
412
|
+
}, Re = d, _e = l, ve = h, Te = p, Fe = y, xe = Q, Me = {
|
|
413
|
+
primary: Re,
|
|
414
|
+
neutral: _e,
|
|
415
|
+
success: ve,
|
|
416
|
+
warning: Te,
|
|
417
|
+
error: Fe,
|
|
418
|
+
info: xe
|
|
419
|
+
}, m = {
|
|
420
|
+
light: {
|
|
421
|
+
default: w,
|
|
422
|
+
// App main background
|
|
423
|
+
secondary: A[100],
|
|
424
|
+
// Secondary background, for containers/cards
|
|
425
|
+
tertiary: A[200],
|
|
426
|
+
// Tertiary, for input backgrounds, card hover states
|
|
427
|
+
overlay: l[900],
|
|
428
|
+
// Overlay backgrounds, for modals
|
|
429
|
+
disabled: A[300],
|
|
430
|
+
// Disabled states, for non-interactive elements
|
|
431
|
+
success: h[50],
|
|
432
|
+
// Success background
|
|
433
|
+
error: y[50],
|
|
434
|
+
// Error background
|
|
435
|
+
warning: p[50],
|
|
436
|
+
// Warning background
|
|
437
|
+
brand: d[500],
|
|
438
|
+
// Brand background, for Primary Button
|
|
439
|
+
brandSubtle: d[50],
|
|
440
|
+
// Subtle brand background
|
|
441
|
+
accent: S[500],
|
|
442
|
+
// Accent background
|
|
443
|
+
accent2: S[500]
|
|
444
|
+
// Accent 2 background
|
|
445
|
+
},
|
|
446
|
+
dark: {
|
|
447
|
+
default: l[900],
|
|
448
|
+
// App main background
|
|
449
|
+
secondary: l[800],
|
|
450
|
+
// Secondary background
|
|
451
|
+
tertiary: l[700],
|
|
452
|
+
// Tertiary background
|
|
453
|
+
overlay: K,
|
|
454
|
+
// Overlay backgrounds
|
|
455
|
+
disabled: l[700],
|
|
456
|
+
// Disabled states
|
|
457
|
+
success: h[900],
|
|
458
|
+
// Success background
|
|
459
|
+
error: y[900],
|
|
460
|
+
// Error background
|
|
461
|
+
warning: p[900],
|
|
462
|
+
// Warning background
|
|
463
|
+
brand: d[500],
|
|
464
|
+
// Brand background
|
|
465
|
+
brandSubtle: d[900],
|
|
466
|
+
// Subtle brand background
|
|
467
|
+
accent: S[500],
|
|
468
|
+
// Accent background
|
|
469
|
+
accent2: S[500]
|
|
470
|
+
// Accent 2 background
|
|
471
|
+
}
|
|
472
|
+
}, u = {
|
|
473
|
+
light: {
|
|
474
|
+
primary: l[900],
|
|
475
|
+
// Main text, body content, high contrast
|
|
476
|
+
secondary: l[600],
|
|
477
|
+
// Secondary text, for supporting info
|
|
478
|
+
tertiary: l[500],
|
|
479
|
+
// Tertiary text, for metadata
|
|
480
|
+
disabled: l[400],
|
|
481
|
+
// Disabled text, non-interactive
|
|
482
|
+
placeholder: l[400],
|
|
483
|
+
// Placeholder text, for input hints
|
|
484
|
+
success: h[600],
|
|
485
|
+
// Success text
|
|
486
|
+
error: y[600],
|
|
487
|
+
// Error text, for error messages
|
|
488
|
+
warning: p[700],
|
|
489
|
+
// Warning text
|
|
490
|
+
link: d[500],
|
|
491
|
+
// Link text, for navigation
|
|
492
|
+
brand: d[500],
|
|
493
|
+
// Brand text
|
|
494
|
+
onBrand: w,
|
|
495
|
+
// Text on brand backgrounds
|
|
496
|
+
pokerCall: h[500],
|
|
497
|
+
// Poker call text
|
|
498
|
+
pokerRaise: S[500]
|
|
499
|
+
// Poker raise text
|
|
500
|
+
},
|
|
501
|
+
dark: {
|
|
502
|
+
primary: w,
|
|
503
|
+
// Main text
|
|
504
|
+
secondary: l[300],
|
|
505
|
+
// Secondary text
|
|
506
|
+
tertiary: l[400],
|
|
507
|
+
// Tertiary text
|
|
508
|
+
disabled: l[500],
|
|
509
|
+
// Disabled text
|
|
510
|
+
placeholder: l[500],
|
|
511
|
+
// Placeholder text
|
|
512
|
+
success: h[400],
|
|
513
|
+
// Success text
|
|
514
|
+
error: y[400],
|
|
515
|
+
// Error text
|
|
516
|
+
warning: p[400],
|
|
517
|
+
// Warning text
|
|
518
|
+
link: d[400],
|
|
519
|
+
// Link text
|
|
520
|
+
brand: d[400],
|
|
521
|
+
// Brand text
|
|
522
|
+
onBrand: w,
|
|
523
|
+
// Text on brand backgrounds
|
|
524
|
+
pokerCall: h[400],
|
|
525
|
+
// Poker call text
|
|
526
|
+
pokerRaise: S[400]
|
|
527
|
+
// Poker raise text
|
|
528
|
+
}
|
|
529
|
+
}, k = {
|
|
530
|
+
light: {
|
|
531
|
+
primary: l[300],
|
|
532
|
+
// Main borders
|
|
533
|
+
subtle: l[200],
|
|
534
|
+
// Subtle borders
|
|
535
|
+
focus: d[500],
|
|
536
|
+
// Focus ring
|
|
537
|
+
success: h[500],
|
|
538
|
+
// Success borders
|
|
539
|
+
error: y[500],
|
|
540
|
+
// Error borders
|
|
541
|
+
warning: p[500]
|
|
542
|
+
// Warning borders
|
|
543
|
+
},
|
|
544
|
+
dark: {
|
|
545
|
+
primary: l[600],
|
|
546
|
+
// Main borders
|
|
547
|
+
subtle: l[700],
|
|
548
|
+
// Subtle borders
|
|
549
|
+
focus: d[400],
|
|
550
|
+
// Focus ring
|
|
551
|
+
success: h[400],
|
|
552
|
+
// Success borders
|
|
553
|
+
error: y[400],
|
|
554
|
+
// Error borders
|
|
555
|
+
warning: p[400]
|
|
556
|
+
// Warning borders
|
|
557
|
+
}
|
|
558
|
+
}, He = {
|
|
559
|
+
background: m,
|
|
560
|
+
text: u,
|
|
561
|
+
border: k
|
|
562
|
+
}, je = m.light.default, Ce = m.light.secondary, Ne = m.light.tertiary, Le = m.light.overlay, Ye = m.light.disabled, Be = m.light.success, $e = m.light.error, De = m.light.warning, We = m.light.brand, Ie = m.light.brandSubtle, Ue = m.light.accent, Ve = u.light.primary, qe = u.light.secondary, Ge = u.light.tertiary, Je = u.light.disabled, Xe = u.light.placeholder, Ze = u.light.success, Qe = u.light.error, Ke = u.light.warning, et = u.light.link, tt = u.light.brand, we = u.light.onBrand, ot = k.light.primary, nt = k.light.subtle, rt = k.light.focus, it = k.light.success, at = k.light.error, lt = k.light.warning, o = {
|
|
563
|
+
main: "'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, Roboto, sans-serif",
|
|
564
|
+
mono: "'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace"
|
|
565
|
+
}, n = {
|
|
566
|
+
regular: 400,
|
|
567
|
+
medium: 500,
|
|
568
|
+
semibold: 600,
|
|
569
|
+
bold: 700
|
|
570
|
+
}, r = {
|
|
571
|
+
tight: 1.2,
|
|
572
|
+
// 120% - for body text, dense content
|
|
573
|
+
normal: 1.5
|
|
574
|
+
// 150% - for headings, readable content
|
|
575
|
+
}, i = {
|
|
576
|
+
// Mobile Scale
|
|
577
|
+
mobile: {
|
|
578
|
+
display: 28,
|
|
579
|
+
h1: 24,
|
|
580
|
+
h2: 20,
|
|
581
|
+
bodyLg: 16,
|
|
582
|
+
bodyMd: 14,
|
|
583
|
+
bodySm: 12,
|
|
584
|
+
caption: 10,
|
|
585
|
+
poker: 8
|
|
586
|
+
},
|
|
587
|
+
// Desktop Scale
|
|
588
|
+
desktop: {
|
|
589
|
+
display: 40,
|
|
590
|
+
h1: 32,
|
|
591
|
+
h2: 24,
|
|
592
|
+
bodyLg: 18,
|
|
593
|
+
bodyMd: 16,
|
|
594
|
+
bodySm: 14,
|
|
595
|
+
caption: 12,
|
|
596
|
+
poker: 10
|
|
597
|
+
}
|
|
598
|
+
}, Oe = {
|
|
599
|
+
display: {
|
|
600
|
+
fontSize: i.mobile.display,
|
|
601
|
+
fontWeight: n.semibold,
|
|
602
|
+
lineHeight: r.normal,
|
|
603
|
+
fontFamily: o.main
|
|
604
|
+
},
|
|
605
|
+
h1: {
|
|
606
|
+
fontSize: i.mobile.h1,
|
|
607
|
+
fontWeight: n.semibold,
|
|
608
|
+
lineHeight: r.normal,
|
|
609
|
+
fontFamily: o.main
|
|
610
|
+
},
|
|
611
|
+
h2: {
|
|
612
|
+
fontSize: i.mobile.h2,
|
|
613
|
+
fontWeight: n.semibold,
|
|
614
|
+
lineHeight: r.normal,
|
|
615
|
+
fontFamily: o.main
|
|
616
|
+
},
|
|
617
|
+
bodyLgBold: {
|
|
618
|
+
fontSize: i.mobile.bodyLg,
|
|
619
|
+
fontWeight: n.bold,
|
|
620
|
+
lineHeight: r.tight,
|
|
621
|
+
fontFamily: o.main
|
|
622
|
+
},
|
|
623
|
+
bodyLgMedium: {
|
|
624
|
+
fontSize: i.mobile.bodyLg,
|
|
625
|
+
fontWeight: n.medium,
|
|
626
|
+
lineHeight: r.tight,
|
|
627
|
+
fontFamily: o.main
|
|
628
|
+
},
|
|
629
|
+
bodyLgRegular: {
|
|
630
|
+
fontSize: i.mobile.bodyLg,
|
|
631
|
+
fontWeight: n.regular,
|
|
632
|
+
lineHeight: r.normal,
|
|
633
|
+
fontFamily: o.main
|
|
634
|
+
},
|
|
635
|
+
bodyMdSemiBold: {
|
|
636
|
+
fontSize: i.mobile.bodyMd,
|
|
637
|
+
fontWeight: n.semibold,
|
|
638
|
+
lineHeight: r.tight,
|
|
639
|
+
fontFamily: o.main
|
|
640
|
+
},
|
|
641
|
+
bodyMdMedium: {
|
|
642
|
+
fontSize: i.mobile.bodyMd,
|
|
643
|
+
fontWeight: n.medium,
|
|
644
|
+
lineHeight: r.tight,
|
|
645
|
+
fontFamily: o.main
|
|
646
|
+
},
|
|
647
|
+
bodyMdRegular: {
|
|
648
|
+
fontSize: i.mobile.bodyMd,
|
|
649
|
+
fontWeight: n.regular,
|
|
650
|
+
lineHeight: r.normal,
|
|
651
|
+
fontFamily: o.main
|
|
652
|
+
},
|
|
653
|
+
bodySmSemiBold: {
|
|
654
|
+
fontSize: i.mobile.bodySm,
|
|
655
|
+
fontWeight: n.semibold,
|
|
656
|
+
lineHeight: r.tight,
|
|
657
|
+
fontFamily: o.main
|
|
658
|
+
},
|
|
659
|
+
bodySmMedium: {
|
|
660
|
+
fontSize: i.mobile.bodySm,
|
|
661
|
+
fontWeight: n.medium,
|
|
662
|
+
lineHeight: r.tight,
|
|
663
|
+
fontFamily: o.main
|
|
664
|
+
},
|
|
665
|
+
bodySmRegular: {
|
|
666
|
+
fontSize: i.mobile.bodySm,
|
|
667
|
+
fontWeight: n.regular,
|
|
668
|
+
lineHeight: r.tight,
|
|
669
|
+
fontFamily: o.main
|
|
670
|
+
},
|
|
671
|
+
captionSemiBold: {
|
|
672
|
+
fontSize: i.mobile.caption,
|
|
673
|
+
fontWeight: n.semibold,
|
|
674
|
+
lineHeight: r.tight,
|
|
675
|
+
fontFamily: o.main
|
|
676
|
+
},
|
|
677
|
+
captionMedium: {
|
|
678
|
+
fontSize: i.mobile.caption,
|
|
679
|
+
fontWeight: n.medium,
|
|
680
|
+
lineHeight: r.tight,
|
|
681
|
+
fontFamily: o.main
|
|
682
|
+
},
|
|
683
|
+
captionRegular: {
|
|
684
|
+
fontSize: i.mobile.caption,
|
|
685
|
+
fontWeight: n.regular,
|
|
686
|
+
lineHeight: r.tight,
|
|
687
|
+
fontFamily: o.main
|
|
688
|
+
},
|
|
689
|
+
pokerMedium: {
|
|
690
|
+
fontSize: i.mobile.poker,
|
|
691
|
+
fontWeight: n.medium,
|
|
692
|
+
lineHeight: r.tight,
|
|
693
|
+
fontFamily: o.main
|
|
694
|
+
}
|
|
695
|
+
}, ze = {
|
|
696
|
+
display: {
|
|
697
|
+
fontSize: i.desktop.display,
|
|
698
|
+
fontWeight: n.semibold,
|
|
699
|
+
lineHeight: r.normal,
|
|
700
|
+
fontFamily: o.main
|
|
701
|
+
},
|
|
702
|
+
h1: {
|
|
703
|
+
fontSize: i.desktop.h1,
|
|
704
|
+
fontWeight: n.semibold,
|
|
705
|
+
lineHeight: r.normal,
|
|
706
|
+
fontFamily: o.main
|
|
707
|
+
},
|
|
708
|
+
h2: {
|
|
709
|
+
fontSize: i.desktop.h2,
|
|
710
|
+
fontWeight: n.semibold,
|
|
711
|
+
lineHeight: r.normal,
|
|
712
|
+
fontFamily: o.main
|
|
713
|
+
},
|
|
714
|
+
bodyLgBold: {
|
|
715
|
+
fontSize: i.desktop.bodyLg,
|
|
716
|
+
fontWeight: n.bold,
|
|
717
|
+
lineHeight: r.tight,
|
|
718
|
+
fontFamily: o.main
|
|
719
|
+
},
|
|
720
|
+
bodyLgMedium: {
|
|
721
|
+
fontSize: i.desktop.bodyLg,
|
|
722
|
+
fontWeight: n.medium,
|
|
723
|
+
lineHeight: r.tight,
|
|
724
|
+
fontFamily: o.main
|
|
725
|
+
},
|
|
726
|
+
bodyLgRegular: {
|
|
727
|
+
fontSize: i.desktop.bodyLg,
|
|
728
|
+
fontWeight: n.regular,
|
|
729
|
+
lineHeight: r.normal,
|
|
730
|
+
fontFamily: o.main
|
|
731
|
+
},
|
|
732
|
+
bodyMdSemiBold: {
|
|
733
|
+
fontSize: i.desktop.bodyMd,
|
|
734
|
+
fontWeight: n.semibold,
|
|
735
|
+
lineHeight: r.tight,
|
|
736
|
+
fontFamily: o.main
|
|
737
|
+
},
|
|
738
|
+
bodyMdMedium: {
|
|
739
|
+
fontSize: i.desktop.bodyMd,
|
|
740
|
+
fontWeight: n.medium,
|
|
741
|
+
lineHeight: r.tight,
|
|
742
|
+
fontFamily: o.main
|
|
743
|
+
},
|
|
744
|
+
bodyMdRegular: {
|
|
745
|
+
fontSize: i.desktop.bodyMd,
|
|
746
|
+
fontWeight: n.regular,
|
|
747
|
+
lineHeight: r.normal,
|
|
748
|
+
fontFamily: o.main
|
|
749
|
+
},
|
|
750
|
+
bodySmSemiBold: {
|
|
751
|
+
fontSize: i.desktop.bodySm,
|
|
752
|
+
fontWeight: n.semibold,
|
|
753
|
+
lineHeight: r.tight,
|
|
754
|
+
fontFamily: o.main
|
|
755
|
+
},
|
|
756
|
+
bodySmMedium: {
|
|
757
|
+
fontSize: i.desktop.bodySm,
|
|
758
|
+
fontWeight: n.medium,
|
|
759
|
+
lineHeight: r.tight,
|
|
760
|
+
fontFamily: o.main
|
|
761
|
+
},
|
|
762
|
+
bodySmRegular: {
|
|
763
|
+
fontSize: i.desktop.bodySm,
|
|
764
|
+
fontWeight: n.regular,
|
|
765
|
+
lineHeight: r.tight,
|
|
766
|
+
fontFamily: o.main
|
|
767
|
+
},
|
|
768
|
+
captionSemiBold: {
|
|
769
|
+
fontSize: i.desktop.caption,
|
|
770
|
+
fontWeight: n.semibold,
|
|
771
|
+
lineHeight: r.tight,
|
|
772
|
+
fontFamily: o.main
|
|
773
|
+
},
|
|
774
|
+
captionMedium: {
|
|
775
|
+
fontSize: i.desktop.caption,
|
|
776
|
+
fontWeight: n.medium,
|
|
777
|
+
lineHeight: r.tight,
|
|
778
|
+
fontFamily: o.main
|
|
779
|
+
},
|
|
780
|
+
captionRegular: {
|
|
781
|
+
fontSize: i.desktop.caption,
|
|
782
|
+
fontWeight: n.regular,
|
|
783
|
+
lineHeight: r.tight,
|
|
784
|
+
fontFamily: o.main
|
|
785
|
+
},
|
|
786
|
+
pokerMedium: {
|
|
787
|
+
fontSize: i.desktop.poker,
|
|
788
|
+
fontWeight: n.medium,
|
|
789
|
+
lineHeight: r.tight,
|
|
790
|
+
fontFamily: o.main
|
|
791
|
+
}
|
|
792
|
+
}, st = {
|
|
793
|
+
fontFamily: o,
|
|
794
|
+
fontWeight: n,
|
|
795
|
+
lineHeight: r,
|
|
796
|
+
fontSize: i,
|
|
797
|
+
mobile: Oe,
|
|
798
|
+
desktop: ze
|
|
799
|
+
}, ft = (c) => ({
|
|
800
|
+
fontSize: `${c.fontSize}px`,
|
|
801
|
+
fontWeight: c.fontWeight,
|
|
802
|
+
lineHeight: c.lineHeight,
|
|
803
|
+
fontFamily: c.fontFamily
|
|
804
|
+
}), ct = ({ label: c, ...E }) => /* @__PURE__ */ pe.jsx(
|
|
805
|
+
"button",
|
|
806
|
+
{
|
|
807
|
+
style: {
|
|
808
|
+
padding: "10px 20px",
|
|
809
|
+
backgroundColor: We,
|
|
810
|
+
color: we,
|
|
811
|
+
border: "none",
|
|
812
|
+
borderRadius: "4px",
|
|
813
|
+
cursor: "pointer"
|
|
814
|
+
},
|
|
815
|
+
...E,
|
|
816
|
+
children: c
|
|
817
|
+
}
|
|
818
|
+
);
|
|
819
|
+
export {
|
|
820
|
+
ct as Button,
|
|
821
|
+
m as background,
|
|
822
|
+
Ue as bgAccent,
|
|
823
|
+
We as bgBrand,
|
|
824
|
+
Ie as bgBrandSubtle,
|
|
825
|
+
je as bgDefault,
|
|
826
|
+
Ye as bgDisabled,
|
|
827
|
+
$e as bgError,
|
|
828
|
+
Le as bgOverlay,
|
|
829
|
+
Ce as bgSecondary,
|
|
830
|
+
Be as bgSuccess,
|
|
831
|
+
Ne as bgTertiary,
|
|
832
|
+
De as bgWarning,
|
|
833
|
+
K as black,
|
|
834
|
+
k as border,
|
|
835
|
+
at as borderError,
|
|
836
|
+
rt as borderFocus,
|
|
837
|
+
ot as borderPrimary,
|
|
838
|
+
nt as borderSubtle,
|
|
839
|
+
it as borderSuccess,
|
|
840
|
+
lt as borderWarning,
|
|
841
|
+
d as brandblue,
|
|
842
|
+
Me as colors,
|
|
843
|
+
Q as cyan,
|
|
844
|
+
Ee as deepocean,
|
|
845
|
+
Fe as error,
|
|
846
|
+
o as fontFamily,
|
|
847
|
+
i as fontSize,
|
|
848
|
+
n as fontWeight,
|
|
849
|
+
ft as getTypographyStyles,
|
|
850
|
+
h as green,
|
|
851
|
+
ke as grey,
|
|
852
|
+
xe as info,
|
|
853
|
+
A as lightgrey,
|
|
854
|
+
r as lineHeight,
|
|
855
|
+
_e as neutral,
|
|
856
|
+
S as orange,
|
|
857
|
+
Re as primary,
|
|
858
|
+
Pe as primitiveColors,
|
|
859
|
+
y as red,
|
|
860
|
+
He as semanticColors,
|
|
861
|
+
l as slate,
|
|
862
|
+
ve as success,
|
|
863
|
+
Se as teal,
|
|
864
|
+
u as text,
|
|
865
|
+
tt as textBrand,
|
|
866
|
+
Je as textDisabled,
|
|
867
|
+
Qe as textError,
|
|
868
|
+
et as textLink,
|
|
869
|
+
we as textOnBrand,
|
|
870
|
+
Xe as textPlaceholder,
|
|
871
|
+
Ve as textPrimary,
|
|
872
|
+
qe as textSecondary,
|
|
873
|
+
Ze as textSuccess,
|
|
874
|
+
Ge as textTertiary,
|
|
875
|
+
Ke as textWarning,
|
|
876
|
+
st as typography,
|
|
877
|
+
ze as typographyDesktop,
|
|
878
|
+
Oe as typographyMobile,
|
|
879
|
+
Te as warning,
|
|
880
|
+
w as white,
|
|
881
|
+
p as yellow
|
|
882
|
+
};
|