@cronocode/react-box 3.0.0 → 3.0.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 +53 -42
- package/box.d.ts +3 -2
- package/components/button.d.ts +4 -4
- package/components/checkbox.d.ts +1 -1
- package/components/flex.d.ts +1 -2
- package/components/form.d.ts +3 -4
- package/components/grid.d.ts +1 -2
- package/components/radioButton.d.ts +4 -4
- package/components/textarea.d.ts +4 -4
- package/components/textbox.d.ts +4 -4
- package/components/tooltip.d.ts +2 -3
- package/core/boxExtends.d.ts +4 -2
- package/core/boxStyles.d.ts +34 -13
- package/core/coreTypes.d.ts +3 -3
- package/core/theme.d.ts +4 -0
- package/core/variables.d.ts +256 -0
- package/core.cjs +4 -4
- package/core.mjs +591 -276
- package/package.json +1 -1
- package/types.d.ts +11 -6
package/core.mjs
CHANGED
|
@@ -1,76 +1,342 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
function
|
|
3
|
-
return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...
|
|
4
|
-
|
|
1
|
+
import { useMemo as J, useLayoutEffect as ue, useEffect as fe } from "react";
|
|
2
|
+
function ce(...e) {
|
|
3
|
+
return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...ce(...a)), t) : (Object.entries(a).forEach(([u, d]) => {
|
|
4
|
+
d && t.push(u);
|
|
5
5
|
}), t) : t, []);
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var n;
|
|
8
8
|
((e) => {
|
|
9
9
|
((t) => {
|
|
10
|
-
function a(
|
|
11
|
-
return `${
|
|
10
|
+
function a(d, l) {
|
|
11
|
+
return `${d}${l.replace("/", "-")}`;
|
|
12
12
|
}
|
|
13
13
|
t.fraction = a;
|
|
14
|
-
function u(
|
|
15
|
-
return [`${
|
|
14
|
+
function u(d) {
|
|
15
|
+
return [`${d} path`, `${d} circle`, `${d} rect`, `${d} line`];
|
|
16
16
|
}
|
|
17
17
|
t.svg = u;
|
|
18
18
|
})(e.ClassName || (e.ClassName = {})), ((t) => {
|
|
19
|
-
function a(
|
|
20
|
-
return `${
|
|
19
|
+
function a(y) {
|
|
20
|
+
return `${y / 4}rem`;
|
|
21
21
|
}
|
|
22
22
|
t.rem = a;
|
|
23
|
-
function u(
|
|
24
|
-
return `${
|
|
23
|
+
function u(y) {
|
|
24
|
+
return `${y}px`;
|
|
25
25
|
}
|
|
26
26
|
t.px = u;
|
|
27
|
-
function
|
|
28
|
-
const [
|
|
29
|
-
return `${+
|
|
27
|
+
function d(y, o) {
|
|
28
|
+
const [c, f] = o.split("/");
|
|
29
|
+
return `${+c / +f * 100}%`;
|
|
30
30
|
}
|
|
31
|
-
t.fraction =
|
|
32
|
-
function
|
|
33
|
-
switch (
|
|
31
|
+
t.fraction = d;
|
|
32
|
+
function l(y, o) {
|
|
33
|
+
switch (o) {
|
|
34
34
|
case "fit":
|
|
35
35
|
return "100%";
|
|
36
36
|
case "fit-screen":
|
|
37
|
-
return
|
|
37
|
+
return y.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
|
|
38
38
|
default:
|
|
39
|
-
return
|
|
39
|
+
return o;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
t.widthHeight =
|
|
43
|
-
function
|
|
44
|
-
return (
|
|
42
|
+
t.widthHeight = l;
|
|
43
|
+
function s(y) {
|
|
44
|
+
return (o, c) => `var(--${y}${c});`;
|
|
45
45
|
}
|
|
46
|
-
t.variables =
|
|
47
|
-
function
|
|
48
|
-
return (
|
|
46
|
+
t.variables = s;
|
|
47
|
+
function i(y) {
|
|
48
|
+
return (o, c) => `var(--${y}${c});`;
|
|
49
49
|
}
|
|
50
|
-
t.svgVariables =
|
|
51
|
-
function
|
|
52
|
-
return `repeat(${
|
|
50
|
+
t.svgVariables = i;
|
|
51
|
+
function m(y, o) {
|
|
52
|
+
return `repeat(${o},minmax(0,1fr))`;
|
|
53
53
|
}
|
|
54
|
-
t.gridColumns =
|
|
55
|
-
function y
|
|
56
|
-
return
|
|
54
|
+
t.gridColumns = m;
|
|
55
|
+
function b(y, o) {
|
|
56
|
+
return o === "full-row" ? "1/-1" : `span ${o}/span ${o}`;
|
|
57
57
|
}
|
|
58
|
-
t.gridColumn =
|
|
59
|
-
function
|
|
60
|
-
return `${
|
|
58
|
+
t.gridColumn = b;
|
|
59
|
+
function r(y, o) {
|
|
60
|
+
return `${o}ms`;
|
|
61
61
|
}
|
|
62
|
-
t.ms =
|
|
63
|
-
function
|
|
64
|
-
return `${
|
|
62
|
+
t.ms = r;
|
|
63
|
+
function v(y, o) {
|
|
64
|
+
return `${o}deg`;
|
|
65
65
|
}
|
|
66
|
-
t.rotate =
|
|
67
|
-
function
|
|
68
|
-
return
|
|
66
|
+
t.rotate = v;
|
|
67
|
+
function h(y, o) {
|
|
68
|
+
return o === "xAxis" ? "-1 1" : "1 -1";
|
|
69
69
|
}
|
|
70
|
-
t.flip =
|
|
70
|
+
t.flip = h;
|
|
71
71
|
})(e.Value || (e.Value = {}));
|
|
72
|
-
})(
|
|
73
|
-
|
|
72
|
+
})(n || (n = {}));
|
|
73
|
+
var W;
|
|
74
|
+
((e) => {
|
|
75
|
+
e.colors = {
|
|
76
|
+
inherit: "inherit",
|
|
77
|
+
current: "currentColor",
|
|
78
|
+
transparent: "transparent",
|
|
79
|
+
black: "#000",
|
|
80
|
+
white: "#fff",
|
|
81
|
+
"slate-50": "#f8fafc",
|
|
82
|
+
"slate-100": "#f1f5f9",
|
|
83
|
+
"slate-200": "#e2e8f0",
|
|
84
|
+
"slate-300": "#cbd5e1",
|
|
85
|
+
"slate-400": "#94a3b8",
|
|
86
|
+
"slate-500": "#64748b",
|
|
87
|
+
"slate-600": "#475569",
|
|
88
|
+
"slate-700": "#334155",
|
|
89
|
+
"slate-800": "#1e293b",
|
|
90
|
+
"slate-900": "#0f172a",
|
|
91
|
+
"slate-950": "#020617",
|
|
92
|
+
"gray-50": "#f9fafb",
|
|
93
|
+
"gray-100": "#f3f4f6",
|
|
94
|
+
"gray-200": "#e5e7eb",
|
|
95
|
+
"gray-300": "#d1d5db",
|
|
96
|
+
"gray-400": "#9ca3af",
|
|
97
|
+
"gray-500": "#6b7280",
|
|
98
|
+
"gray-600": "#4b5563",
|
|
99
|
+
"gray-700": "#374151",
|
|
100
|
+
"gray-800": "#1f2937",
|
|
101
|
+
"gray-900": "#111827",
|
|
102
|
+
"gray-950": "#030712",
|
|
103
|
+
"zinc-50": "#fafafa",
|
|
104
|
+
"zinc-100": "#f4f4f5",
|
|
105
|
+
"zinc-200": "#e4e4e7",
|
|
106
|
+
"zinc-300": "#d4d4d8",
|
|
107
|
+
"zinc-400": "#a1a1aa",
|
|
108
|
+
"zinc-500": "#71717a",
|
|
109
|
+
"zinc-600": "#52525b",
|
|
110
|
+
"zinc-700": "#3f3f46",
|
|
111
|
+
"zinc-800": "#27272a",
|
|
112
|
+
"zinc-900": "#18181b",
|
|
113
|
+
"zinc-950": "#09090b",
|
|
114
|
+
"neutral-50": "#fafafa",
|
|
115
|
+
"neutral-100": "#f5f5f5",
|
|
116
|
+
"neutral-200": "#e5e5e5",
|
|
117
|
+
"neutral-300": "#d4d4d4",
|
|
118
|
+
"neutral-400": "#a3a3a3",
|
|
119
|
+
"neutral-500": "#737373",
|
|
120
|
+
"neutral-600": "#525252",
|
|
121
|
+
"neutral-700": "#404040",
|
|
122
|
+
"neutral-800": "#262626",
|
|
123
|
+
"neutral-900": "#171717",
|
|
124
|
+
"neutral-950": "#0a0a0a",
|
|
125
|
+
"stone-50": "#fafaf9",
|
|
126
|
+
"stone-100": "#f5f5f4",
|
|
127
|
+
"stone-200": "#e7e5e4",
|
|
128
|
+
"stone-300": "#d6d3d1",
|
|
129
|
+
"stone-400": "#a8a29e",
|
|
130
|
+
"stone-500": "#78716c",
|
|
131
|
+
"stone-600": "#57534e",
|
|
132
|
+
"stone-700": "#44403c",
|
|
133
|
+
"stone-800": "#292524",
|
|
134
|
+
"stone-900": "#1c1917",
|
|
135
|
+
"stone-950": "#0c0a09",
|
|
136
|
+
"red-50": "#fef2f2",
|
|
137
|
+
"red-100": "#fee2e2",
|
|
138
|
+
"red-200": "#fecaca",
|
|
139
|
+
"red-300": "#fca5a5",
|
|
140
|
+
"red-400": "#f87171",
|
|
141
|
+
"red-500": "#ef4444",
|
|
142
|
+
"red-600": "#dc2626",
|
|
143
|
+
"red-700": "#b91c1c",
|
|
144
|
+
"red-800": "#991b1b",
|
|
145
|
+
"red-900": "#7f1d1d",
|
|
146
|
+
"red-950": "#450a0a",
|
|
147
|
+
"orange-50": "#fff7ed",
|
|
148
|
+
"orange-100": "#ffedd5",
|
|
149
|
+
"orange-200": "#fed7aa",
|
|
150
|
+
"orange-300": "#fdba74",
|
|
151
|
+
"orange-400": "#fb923c",
|
|
152
|
+
"orange-500": "#f97316",
|
|
153
|
+
"orange-600": "#ea580c",
|
|
154
|
+
"orange-700": "#c2410c",
|
|
155
|
+
"orange-800": "#9a3412",
|
|
156
|
+
"orange-900": "#7c2d12",
|
|
157
|
+
"orange-950": "#431407",
|
|
158
|
+
"amber-50": "#fffbeb",
|
|
159
|
+
"amber-100": "#fef3c7",
|
|
160
|
+
"amber-200": "#fde68a",
|
|
161
|
+
"amber-300": "#fcd34d",
|
|
162
|
+
"amber-400": "#fbbf24",
|
|
163
|
+
"amber-500": "#f59e0b",
|
|
164
|
+
"amber-600": "#d97706",
|
|
165
|
+
"amber-700": "#b45309",
|
|
166
|
+
"amber-800": "#92400e",
|
|
167
|
+
"amber-900": "#78350f",
|
|
168
|
+
"amber-950": "#451a03",
|
|
169
|
+
"yellow-50": "#fefce8",
|
|
170
|
+
"yellow-100": "#fef9c3",
|
|
171
|
+
"yellow-200": "#fef08a",
|
|
172
|
+
"yellow-300": "#fde047",
|
|
173
|
+
"yellow-400": "#facc15",
|
|
174
|
+
"yellow-500": "#eab308",
|
|
175
|
+
"yellow-600": "#ca8a04",
|
|
176
|
+
"yellow-700": "#a16207",
|
|
177
|
+
"yellow-800": "#854d0e",
|
|
178
|
+
"yellow-900": "#713f12",
|
|
179
|
+
"yellow-950": "#422006",
|
|
180
|
+
"lime-50": "#f7fee7",
|
|
181
|
+
"lime-100": "#ecfccb",
|
|
182
|
+
"lime-200": "#d9f99d",
|
|
183
|
+
"lime-300": "#bef264",
|
|
184
|
+
"lime-400": "#a3e635",
|
|
185
|
+
"lime-500": "#84cc16",
|
|
186
|
+
"lime-600": "#65a30d",
|
|
187
|
+
"lime-700": "#4d7c0f",
|
|
188
|
+
"lime-800": "#3f6212",
|
|
189
|
+
"lime-900": "#365314",
|
|
190
|
+
"lime-950": "#1a2e05",
|
|
191
|
+
"green-50": "#f0fdf4",
|
|
192
|
+
"green-100": "#dcfce7",
|
|
193
|
+
"green-200": "#bbf7d0",
|
|
194
|
+
"green-300": "#86efac",
|
|
195
|
+
"green-400": "#4ade80",
|
|
196
|
+
"green-500": "#22c55e",
|
|
197
|
+
"green-600": "#16a34a",
|
|
198
|
+
"green-700": "#15803d",
|
|
199
|
+
"green-800": "#166534",
|
|
200
|
+
"green-900": "#14532d",
|
|
201
|
+
"green-950": "#052e16",
|
|
202
|
+
"emerald-50": "#ecfdf5",
|
|
203
|
+
"emerald-100": "#d1fae5",
|
|
204
|
+
"emerald-200": "#a7f3d0",
|
|
205
|
+
"emerald-300": "#6ee7b7",
|
|
206
|
+
"emerald-400": "#34d399",
|
|
207
|
+
"emerald-500": "#10b981",
|
|
208
|
+
"emerald-600": "#059669",
|
|
209
|
+
"emerald-700": "#047857",
|
|
210
|
+
"emerald-800": "#065f46",
|
|
211
|
+
"emerald-900": "#064e3b",
|
|
212
|
+
"emerald-950": "#022c22",
|
|
213
|
+
"teal-50": "#f0fdfa",
|
|
214
|
+
"teal-100": "#ccfbf1",
|
|
215
|
+
"teal-200": "#99f6e4",
|
|
216
|
+
"teal-300": "#5eead4",
|
|
217
|
+
"teal-400": "#2dd4bf",
|
|
218
|
+
"teal-500": "#14b8a6",
|
|
219
|
+
"teal-600": "#0d9488",
|
|
220
|
+
"teal-700": "#0f766e",
|
|
221
|
+
"teal-800": "#115e59",
|
|
222
|
+
"teal-900": "#134e4a",
|
|
223
|
+
"teal-950": "#042f2e",
|
|
224
|
+
"cyan-50": "#ecfeff",
|
|
225
|
+
"cyan-100": "#cffafe",
|
|
226
|
+
"cyan-200": "#a5f3fc",
|
|
227
|
+
"cyan-300": "#67e8f9",
|
|
228
|
+
"cyan-400": "#22d3ee",
|
|
229
|
+
"cyan-500": "#06b6d4",
|
|
230
|
+
"cyan-600": "#0891b2",
|
|
231
|
+
"cyan-700": "#0e7490",
|
|
232
|
+
"cyan-800": "#155e75",
|
|
233
|
+
"cyan-900": "#164e63",
|
|
234
|
+
"cyan-950": "#083344",
|
|
235
|
+
"sky-50": "#f0f9ff",
|
|
236
|
+
"sky-100": "#e0f2fe",
|
|
237
|
+
"sky-200": "#bae6fd",
|
|
238
|
+
"sky-300": "#7dd3fc",
|
|
239
|
+
"sky-400": "#38bdf8",
|
|
240
|
+
"sky-500": "#0ea5e9",
|
|
241
|
+
"sky-600": "#0284c7",
|
|
242
|
+
"sky-700": "#0369a1",
|
|
243
|
+
"sky-800": "#075985",
|
|
244
|
+
"sky-900": "#0c4a6e",
|
|
245
|
+
"sky-950": "#082f49",
|
|
246
|
+
"blue-50": "#eff6ff",
|
|
247
|
+
"blue-100": "#dbeafe",
|
|
248
|
+
"blue-200": "#bfdbfe",
|
|
249
|
+
"blue-300": "#93c5fd",
|
|
250
|
+
"blue-400": "#60a5fa",
|
|
251
|
+
"blue-500": "#3b82f6",
|
|
252
|
+
"blue-600": "#2563eb",
|
|
253
|
+
"blue-700": "#1d4ed8",
|
|
254
|
+
"blue-800": "#1e40af",
|
|
255
|
+
"blue-900": "#1e3a8a",
|
|
256
|
+
"blue-950": "#172554",
|
|
257
|
+
"indigo-50": "#eef2ff",
|
|
258
|
+
"indigo-100": "#e0e7ff",
|
|
259
|
+
"indigo-200": "#c7d2fe",
|
|
260
|
+
"indigo-300": "#a5b4fc",
|
|
261
|
+
"indigo-400": "#818cf8",
|
|
262
|
+
"indigo-500": "#6366f1",
|
|
263
|
+
"indigo-600": "#4f46e5",
|
|
264
|
+
"indigo-700": "#4338ca",
|
|
265
|
+
"indigo-800": "#3730a3",
|
|
266
|
+
"indigo-900": "#312e81",
|
|
267
|
+
"indigo-950": "#1e1b4b",
|
|
268
|
+
"violet-50": "#f5f3ff",
|
|
269
|
+
"violet-100": "#ede9fe",
|
|
270
|
+
"violet-200": "#ddd6fe",
|
|
271
|
+
"violet-300": "#c4b5fd",
|
|
272
|
+
"violet-400": "#a78bfa",
|
|
273
|
+
"violet-500": "#8b5cf6",
|
|
274
|
+
"violet-600": "#7c3aed",
|
|
275
|
+
"violet-700": "#6d28d9",
|
|
276
|
+
"violet-800": "#5b21b6",
|
|
277
|
+
"violet-900": "#4c1d95",
|
|
278
|
+
"violet-950": "#2e1065",
|
|
279
|
+
"purple-50": "#faf5ff",
|
|
280
|
+
"purple-100": "#f3e8ff",
|
|
281
|
+
"purple-200": "#e9d5ff",
|
|
282
|
+
"purple-300": "#d8b4fe",
|
|
283
|
+
"purple-400": "#c084fc",
|
|
284
|
+
"purple-500": "#a855f7",
|
|
285
|
+
"purple-600": "#9333ea",
|
|
286
|
+
"purple-700": "#7e22ce",
|
|
287
|
+
"purple-800": "#6b21a8",
|
|
288
|
+
"purple-900": "#581c87",
|
|
289
|
+
"purple-950": "#3b0764",
|
|
290
|
+
"fuchsia-50": "#fdf4ff",
|
|
291
|
+
"fuchsia-100": "#fae8ff",
|
|
292
|
+
"fuchsia-200": "#f5d0fe",
|
|
293
|
+
"fuchsia-300": "#f0abfc",
|
|
294
|
+
"fuchsia-400": "#e879f9",
|
|
295
|
+
"fuchsia-500": "#d946ef",
|
|
296
|
+
"fuchsia-600": "#c026d3",
|
|
297
|
+
"fuchsia-700": "#a21caf",
|
|
298
|
+
"fuchsia-800": "#86198f",
|
|
299
|
+
"fuchsia-900": "#701a75",
|
|
300
|
+
"fuchsia-950": "#4a044e",
|
|
301
|
+
"pink-50": "#fdf2f8",
|
|
302
|
+
"pink-100": "#fce7f3",
|
|
303
|
+
"pink-200": "#fbcfe8",
|
|
304
|
+
"pink-300": "#f9a8d4",
|
|
305
|
+
"pink-400": "#f472b6",
|
|
306
|
+
"pink-500": "#ec4899",
|
|
307
|
+
"pink-600": "#db2777",
|
|
308
|
+
"pink-700": "#be185d",
|
|
309
|
+
"pink-800": "#9d174d",
|
|
310
|
+
"pink-900": "#831843",
|
|
311
|
+
"pink-950": "#500724",
|
|
312
|
+
"rose-50": "#fff1f2",
|
|
313
|
+
"rose-100": "#ffe4e6",
|
|
314
|
+
"rose-200": "#fecdd3",
|
|
315
|
+
"rose-300": "#fda4af",
|
|
316
|
+
"rose-400": "#fb7185",
|
|
317
|
+
"rose-500": "#f43f5e",
|
|
318
|
+
"rose-600": "#e11d48",
|
|
319
|
+
"rose-700": "#be123c",
|
|
320
|
+
"rose-800": "#9f1239",
|
|
321
|
+
"rose-900": "#881337",
|
|
322
|
+
"rose-950": "#4c0519"
|
|
323
|
+
};
|
|
324
|
+
const t = {};
|
|
325
|
+
let a = {};
|
|
326
|
+
function u(s) {
|
|
327
|
+
return s in a ? t[s] = a[s] : s in e.colors && (t[s] = e.colors[s]), `var(--${s})`;
|
|
328
|
+
}
|
|
329
|
+
e.useVariable = u;
|
|
330
|
+
function d() {
|
|
331
|
+
return Object.entries(t).map(([s, i]) => `--${s}: ${i};`).join("");
|
|
332
|
+
}
|
|
333
|
+
e.generateVariables = d;
|
|
334
|
+
function l(s) {
|
|
335
|
+
a = s;
|
|
336
|
+
}
|
|
337
|
+
e.setUserVariables = l;
|
|
338
|
+
})(W || (W = {}));
|
|
339
|
+
const E = W, j = {
|
|
74
340
|
/** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
|
|
75
341
|
appearance: [
|
|
76
342
|
{
|
|
@@ -82,7 +348,7 @@ const S = {
|
|
|
82
348
|
{
|
|
83
349
|
values: 0,
|
|
84
350
|
styleName: "border-width",
|
|
85
|
-
valueFormat:
|
|
351
|
+
valueFormat: n.Value.px
|
|
86
352
|
}
|
|
87
353
|
],
|
|
88
354
|
/** The border-width shorthand CSS property sets the width of an element's left and right border. */
|
|
@@ -90,7 +356,7 @@ const S = {
|
|
|
90
356
|
{
|
|
91
357
|
values: 0,
|
|
92
358
|
styleName: "border-inline-width",
|
|
93
|
-
valueFormat:
|
|
359
|
+
valueFormat: n.Value.px
|
|
94
360
|
}
|
|
95
361
|
],
|
|
96
362
|
/** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
|
|
@@ -98,7 +364,7 @@ const S = {
|
|
|
98
364
|
{
|
|
99
365
|
values: 0,
|
|
100
366
|
styleName: "border-block-width",
|
|
101
|
-
valueFormat:
|
|
367
|
+
valueFormat: n.Value.px
|
|
102
368
|
}
|
|
103
369
|
],
|
|
104
370
|
/** The border-top-width CSS property sets the width of the top border of an element. */
|
|
@@ -106,7 +372,7 @@ const S = {
|
|
|
106
372
|
{
|
|
107
373
|
values: 0,
|
|
108
374
|
styleName: "border-top-width",
|
|
109
|
-
valueFormat:
|
|
375
|
+
valueFormat: n.Value.px
|
|
110
376
|
}
|
|
111
377
|
],
|
|
112
378
|
/** The border-right-width CSS property sets the width of the right border of an element. */
|
|
@@ -114,7 +380,7 @@ const S = {
|
|
|
114
380
|
{
|
|
115
381
|
values: 0,
|
|
116
382
|
styleName: "border-right-width",
|
|
117
|
-
valueFormat:
|
|
383
|
+
valueFormat: n.Value.px
|
|
118
384
|
}
|
|
119
385
|
],
|
|
120
386
|
/** The border-bottom-width CSS property sets the width of the bottom border of an element. */
|
|
@@ -122,7 +388,7 @@ const S = {
|
|
|
122
388
|
{
|
|
123
389
|
values: 0,
|
|
124
390
|
styleName: "border-bottom-width",
|
|
125
|
-
valueFormat:
|
|
391
|
+
valueFormat: n.Value.px
|
|
126
392
|
}
|
|
127
393
|
],
|
|
128
394
|
/** The border-left-width CSS property sets the width of the left border of an element. */
|
|
@@ -130,7 +396,7 @@ const S = {
|
|
|
130
396
|
{
|
|
131
397
|
values: 0,
|
|
132
398
|
styleName: "border-left-width",
|
|
133
|
-
valueFormat:
|
|
399
|
+
valueFormat: n.Value.px
|
|
134
400
|
}
|
|
135
401
|
],
|
|
136
402
|
/** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
|
|
@@ -145,71 +411,71 @@ const S = {
|
|
|
145
411
|
{
|
|
146
412
|
styleName: "border-radius",
|
|
147
413
|
values: 0,
|
|
148
|
-
valueFormat:
|
|
414
|
+
valueFormat: n.Value.rem
|
|
149
415
|
}
|
|
150
416
|
],
|
|
151
417
|
/** The border-top-radius CSS property rounds the top corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
152
418
|
borderRadiusTop: [
|
|
153
419
|
{
|
|
154
420
|
values: 0,
|
|
155
|
-
styleName: "border-radius",
|
|
156
|
-
valueFormat:
|
|
421
|
+
styleName: ["border-top-left-radius", "border-top-right-radius"],
|
|
422
|
+
valueFormat: n.Value.rem
|
|
157
423
|
}
|
|
158
424
|
],
|
|
159
425
|
/** The border-right-radius CSS property rounds the right corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
160
426
|
borderRadiusRight: [
|
|
161
427
|
{
|
|
162
428
|
values: 0,
|
|
163
|
-
styleName: "border-radius",
|
|
164
|
-
valueFormat:
|
|
429
|
+
styleName: ["border-top-right-radius", "border-bottom-right-radius"],
|
|
430
|
+
valueFormat: n.Value.rem
|
|
165
431
|
}
|
|
166
432
|
],
|
|
167
433
|
/** The border-bottom-radius CSS property rounds the bottom corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
168
434
|
borderRadiusBottom: [
|
|
169
435
|
{
|
|
170
436
|
values: 0,
|
|
171
|
-
styleName: "border-radius",
|
|
172
|
-
valueFormat:
|
|
437
|
+
styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
438
|
+
valueFormat: n.Value.rem
|
|
173
439
|
}
|
|
174
440
|
],
|
|
175
441
|
/** The border-left-radius CSS property rounds the left corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
176
442
|
borderRadiusLeft: [
|
|
177
443
|
{
|
|
178
444
|
values: 0,
|
|
179
|
-
styleName: "border-radius",
|
|
180
|
-
valueFormat:
|
|
445
|
+
styleName: ["border-top-left-radius", "border-bottom-left-radius"],
|
|
446
|
+
valueFormat: n.Value.rem
|
|
181
447
|
}
|
|
182
448
|
],
|
|
183
449
|
/** The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
184
450
|
borderRadiusTopLeft: [
|
|
185
451
|
{
|
|
186
452
|
values: 0,
|
|
187
|
-
styleName: "border-radius",
|
|
188
|
-
valueFormat:
|
|
453
|
+
styleName: "border-top-left-radius",
|
|
454
|
+
valueFormat: n.Value.rem
|
|
189
455
|
}
|
|
190
456
|
],
|
|
191
457
|
/** The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
192
458
|
borderRadiusTopRight: [
|
|
193
459
|
{
|
|
194
460
|
values: 0,
|
|
195
|
-
styleName: "border-radius",
|
|
196
|
-
valueFormat:
|
|
461
|
+
styleName: "border-top-right-radius",
|
|
462
|
+
valueFormat: n.Value.rem
|
|
197
463
|
}
|
|
198
464
|
],
|
|
199
465
|
/** The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
200
466
|
borderRadiusBottomRight: [
|
|
201
467
|
{
|
|
202
468
|
values: 0,
|
|
203
|
-
styleName: "border-radius",
|
|
204
|
-
valueFormat:
|
|
469
|
+
styleName: "border-bottom-right-radius",
|
|
470
|
+
valueFormat: n.Value.rem
|
|
205
471
|
}
|
|
206
472
|
],
|
|
207
473
|
/** The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
208
474
|
borderRadiusBottomLeft: [
|
|
209
475
|
{
|
|
210
476
|
values: 0,
|
|
211
|
-
styleName: "border-radius",
|
|
212
|
-
valueFormat:
|
|
477
|
+
styleName: "border-bottom-left-radius",
|
|
478
|
+
valueFormat: n.Value.rem
|
|
213
479
|
}
|
|
214
480
|
],
|
|
215
481
|
/** The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
|
@@ -222,35 +488,35 @@ const S = {
|
|
|
222
488
|
top: [
|
|
223
489
|
{
|
|
224
490
|
values: 0,
|
|
225
|
-
valueFormat:
|
|
491
|
+
valueFormat: n.Value.rem
|
|
226
492
|
}
|
|
227
493
|
],
|
|
228
494
|
/** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
229
495
|
right: [
|
|
230
496
|
{
|
|
231
497
|
values: 0,
|
|
232
|
-
valueFormat:
|
|
498
|
+
valueFormat: n.Value.rem
|
|
233
499
|
}
|
|
234
500
|
],
|
|
235
501
|
/** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
236
502
|
bottom: [
|
|
237
503
|
{
|
|
238
504
|
values: 0,
|
|
239
|
-
valueFormat:
|
|
505
|
+
valueFormat: n.Value.rem
|
|
240
506
|
}
|
|
241
507
|
],
|
|
242
508
|
/** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
243
509
|
left: [
|
|
244
510
|
{
|
|
245
511
|
values: 0,
|
|
246
|
-
valueFormat:
|
|
512
|
+
valueFormat: n.Value.rem
|
|
247
513
|
}
|
|
248
514
|
],
|
|
249
515
|
/** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
|
|
250
516
|
inset: [
|
|
251
517
|
{
|
|
252
518
|
values: 0,
|
|
253
|
-
valueFormat:
|
|
519
|
+
valueFormat: n.Value.rem
|
|
254
520
|
}
|
|
255
521
|
],
|
|
256
522
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -423,7 +689,7 @@ const S = {
|
|
|
423
689
|
{
|
|
424
690
|
styleName: "font-size",
|
|
425
691
|
values: 0,
|
|
426
|
-
valueFormat:
|
|
692
|
+
valueFormat: n.Value.px
|
|
427
693
|
},
|
|
428
694
|
{
|
|
429
695
|
styleName: "font-size",
|
|
@@ -448,7 +714,7 @@ const S = {
|
|
|
448
714
|
gap: [
|
|
449
715
|
{
|
|
450
716
|
values: 0,
|
|
451
|
-
valueFormat:
|
|
717
|
+
valueFormat: n.Value.rem
|
|
452
718
|
}
|
|
453
719
|
],
|
|
454
720
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -456,7 +722,7 @@ const S = {
|
|
|
456
722
|
{
|
|
457
723
|
styleName: "row-gap",
|
|
458
724
|
values: 0,
|
|
459
|
-
valueFormat:
|
|
725
|
+
valueFormat: n.Value.rem
|
|
460
726
|
}
|
|
461
727
|
],
|
|
462
728
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -464,7 +730,7 @@ const S = {
|
|
|
464
730
|
{
|
|
465
731
|
styleName: "column-gap",
|
|
466
732
|
values: 0,
|
|
467
|
-
valueFormat:
|
|
733
|
+
valueFormat: n.Value.rem
|
|
468
734
|
}
|
|
469
735
|
],
|
|
470
736
|
/** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
|
|
@@ -789,7 +1055,7 @@ const S = {
|
|
|
789
1055
|
{
|
|
790
1056
|
styleName: "letter-spacing",
|
|
791
1057
|
values: 0,
|
|
792
|
-
valueFormat:
|
|
1058
|
+
valueFormat: n.Value.px
|
|
793
1059
|
}
|
|
794
1060
|
],
|
|
795
1061
|
/** The line-height CSS property sets the height of a line box in horizontal writing modes. In vertical writing modes, it sets the width of a line box. It's commonly used to set the distance between lines of text. On block-level elements in horizontal writing modes, it specifies the preferred height of line boxes within the element, and on non-replaced inline elements, it specifies the height that is used to calculate line box height. */
|
|
@@ -797,7 +1063,7 @@ const S = {
|
|
|
797
1063
|
{
|
|
798
1064
|
styleName: "line-height",
|
|
799
1065
|
values: 0,
|
|
800
|
-
valueFormat:
|
|
1066
|
+
valueFormat: n.Value.px
|
|
801
1067
|
},
|
|
802
1068
|
{
|
|
803
1069
|
styleName: "line-height",
|
|
@@ -817,7 +1083,7 @@ const S = {
|
|
|
817
1083
|
{
|
|
818
1084
|
values: 0,
|
|
819
1085
|
styleName: "margin",
|
|
820
|
-
valueFormat:
|
|
1086
|
+
valueFormat: n.Value.rem
|
|
821
1087
|
},
|
|
822
1088
|
{
|
|
823
1089
|
values: ["auto"],
|
|
@@ -829,7 +1095,7 @@ const S = {
|
|
|
829
1095
|
{
|
|
830
1096
|
values: 0,
|
|
831
1097
|
styleName: "margin-inline",
|
|
832
|
-
valueFormat:
|
|
1098
|
+
valueFormat: n.Value.rem
|
|
833
1099
|
},
|
|
834
1100
|
{
|
|
835
1101
|
values: ["auto"],
|
|
@@ -841,7 +1107,7 @@ const S = {
|
|
|
841
1107
|
{
|
|
842
1108
|
values: 0,
|
|
843
1109
|
styleName: "margin-block",
|
|
844
|
-
valueFormat:
|
|
1110
|
+
valueFormat: n.Value.rem
|
|
845
1111
|
},
|
|
846
1112
|
{
|
|
847
1113
|
values: ["auto"],
|
|
@@ -853,7 +1119,7 @@ const S = {
|
|
|
853
1119
|
{
|
|
854
1120
|
values: 0,
|
|
855
1121
|
styleName: "margin-top",
|
|
856
|
-
valueFormat:
|
|
1122
|
+
valueFormat: n.Value.rem
|
|
857
1123
|
},
|
|
858
1124
|
{
|
|
859
1125
|
values: ["auto"],
|
|
@@ -865,7 +1131,7 @@ const S = {
|
|
|
865
1131
|
{
|
|
866
1132
|
values: 0,
|
|
867
1133
|
styleName: "margin-right",
|
|
868
|
-
valueFormat:
|
|
1134
|
+
valueFormat: n.Value.rem
|
|
869
1135
|
},
|
|
870
1136
|
{
|
|
871
1137
|
values: ["auto"],
|
|
@@ -877,7 +1143,7 @@ const S = {
|
|
|
877
1143
|
{
|
|
878
1144
|
values: 0,
|
|
879
1145
|
styleName: "margin-bottom",
|
|
880
|
-
valueFormat:
|
|
1146
|
+
valueFormat: n.Value.rem
|
|
881
1147
|
},
|
|
882
1148
|
{
|
|
883
1149
|
values: ["auto"],
|
|
@@ -889,7 +1155,7 @@ const S = {
|
|
|
889
1155
|
{
|
|
890
1156
|
values: 0,
|
|
891
1157
|
styleName: "margin-left",
|
|
892
|
-
valueFormat:
|
|
1158
|
+
valueFormat: n.Value.rem
|
|
893
1159
|
},
|
|
894
1160
|
{
|
|
895
1161
|
values: ["auto"],
|
|
@@ -901,7 +1167,7 @@ const S = {
|
|
|
901
1167
|
{
|
|
902
1168
|
values: 0,
|
|
903
1169
|
styleName: "padding",
|
|
904
|
-
valueFormat:
|
|
1170
|
+
valueFormat: n.Value.rem
|
|
905
1171
|
}
|
|
906
1172
|
],
|
|
907
1173
|
/** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -909,7 +1175,7 @@ const S = {
|
|
|
909
1175
|
{
|
|
910
1176
|
values: 0,
|
|
911
1177
|
styleName: "padding-inline",
|
|
912
|
-
valueFormat:
|
|
1178
|
+
valueFormat: n.Value.rem
|
|
913
1179
|
}
|
|
914
1180
|
],
|
|
915
1181
|
/** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -917,7 +1183,7 @@ const S = {
|
|
|
917
1183
|
{
|
|
918
1184
|
values: 0,
|
|
919
1185
|
styleName: "padding-block",
|
|
920
|
-
valueFormat:
|
|
1186
|
+
valueFormat: n.Value.rem
|
|
921
1187
|
}
|
|
922
1188
|
],
|
|
923
1189
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
@@ -925,7 +1191,7 @@ const S = {
|
|
|
925
1191
|
{
|
|
926
1192
|
values: 0,
|
|
927
1193
|
styleName: "padding-top",
|
|
928
|
-
valueFormat:
|
|
1194
|
+
valueFormat: n.Value.rem
|
|
929
1195
|
}
|
|
930
1196
|
],
|
|
931
1197
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
@@ -933,7 +1199,7 @@ const S = {
|
|
|
933
1199
|
{
|
|
934
1200
|
values: 0,
|
|
935
1201
|
styleName: "padding-right",
|
|
936
|
-
valueFormat:
|
|
1202
|
+
valueFormat: n.Value.rem
|
|
937
1203
|
}
|
|
938
1204
|
],
|
|
939
1205
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
@@ -941,7 +1207,7 @@ const S = {
|
|
|
941
1207
|
{
|
|
942
1208
|
values: 0,
|
|
943
1209
|
styleName: "padding-bottom",
|
|
944
|
-
valueFormat:
|
|
1210
|
+
valueFormat: n.Value.rem
|
|
945
1211
|
}
|
|
946
1212
|
],
|
|
947
1213
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
@@ -949,7 +1215,7 @@ const S = {
|
|
|
949
1215
|
{
|
|
950
1216
|
values: 0,
|
|
951
1217
|
styleName: "padding-left",
|
|
952
|
-
valueFormat:
|
|
1218
|
+
valueFormat: n.Value.rem
|
|
953
1219
|
}
|
|
954
1220
|
],
|
|
955
1221
|
/** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
|
|
@@ -970,7 +1236,7 @@ const S = {
|
|
|
970
1236
|
{
|
|
971
1237
|
styleName: "outline-width",
|
|
972
1238
|
values: 0,
|
|
973
|
-
valueFormat:
|
|
1239
|
+
valueFormat: n.Value.px
|
|
974
1240
|
}
|
|
975
1241
|
],
|
|
976
1242
|
/** The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border. */
|
|
@@ -985,7 +1251,7 @@ const S = {
|
|
|
985
1251
|
{
|
|
986
1252
|
styleName: "outline-offset",
|
|
987
1253
|
values: 0,
|
|
988
|
-
valueFormat:
|
|
1254
|
+
valueFormat: n.Value.px
|
|
989
1255
|
}
|
|
990
1256
|
],
|
|
991
1257
|
/** The overflow CSS shorthand property sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction. */
|
|
@@ -1138,7 +1404,7 @@ const S = {
|
|
|
1138
1404
|
}
|
|
1139
1405
|
],
|
|
1140
1406
|
/** The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area. */
|
|
1141
|
-
|
|
1407
|
+
colSpan: [
|
|
1142
1408
|
{
|
|
1143
1409
|
styleName: "grid-column",
|
|
1144
1410
|
values: 0,
|
|
@@ -1190,8 +1456,35 @@ const S = {
|
|
|
1190
1456
|
styleName: "grid-row-end",
|
|
1191
1457
|
values: 0
|
|
1192
1458
|
}
|
|
1459
|
+
],
|
|
1460
|
+
color: [
|
|
1461
|
+
{
|
|
1462
|
+
values: Object.keys(E.colors),
|
|
1463
|
+
valueFormat: (e, t) => t(e)
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
bgColor: [
|
|
1467
|
+
{
|
|
1468
|
+
values: Object.keys(E.colors),
|
|
1469
|
+
valueFormat: (e, t) => t(e),
|
|
1470
|
+
styleName: "background-color"
|
|
1471
|
+
}
|
|
1472
|
+
],
|
|
1473
|
+
borderColor: [
|
|
1474
|
+
{
|
|
1475
|
+
values: Object.keys(E.colors),
|
|
1476
|
+
valueFormat: (e, t) => t(e),
|
|
1477
|
+
styleName: "border-color"
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1480
|
+
outlineColor: [
|
|
1481
|
+
{
|
|
1482
|
+
values: Object.keys(E.colors),
|
|
1483
|
+
valueFormat: (e, t) => t(e),
|
|
1484
|
+
styleName: "outline-color"
|
|
1485
|
+
}
|
|
1193
1486
|
]
|
|
1194
|
-
},
|
|
1487
|
+
}, se = {
|
|
1195
1488
|
hover: ":hover",
|
|
1196
1489
|
focus: ":focus-within",
|
|
1197
1490
|
hasFocus: ":has(:focus)",
|
|
@@ -1204,62 +1497,63 @@ const S = {
|
|
|
1204
1497
|
hasChecked: ":has(:checked)",
|
|
1205
1498
|
hasRequired: ":has(:required)",
|
|
1206
1499
|
hasDisabled: ":has([disabled])"
|
|
1207
|
-
},
|
|
1500
|
+
}, D = {
|
|
1208
1501
|
indeterminate: ":indeterminate",
|
|
1209
1502
|
checked: ":checked",
|
|
1210
1503
|
required: ":required",
|
|
1211
1504
|
disabled: "[disabled]"
|
|
1212
|
-
},
|
|
1505
|
+
}, Q = { ...se, ...D }, le = Object.entries(Q).reduce(
|
|
1213
1506
|
(e, [t], a) => (e[t] = Math.pow(2, a), e),
|
|
1214
1507
|
{}
|
|
1215
|
-
),
|
|
1508
|
+
), K = Object.entries(Q).reduce(
|
|
1216
1509
|
(e, [t]) => {
|
|
1217
|
-
const a =
|
|
1218
|
-
return Object.entries(e).forEach(([u,
|
|
1219
|
-
e[+u + a] = [...
|
|
1510
|
+
const a = le[t];
|
|
1511
|
+
return Object.entries(e).forEach(([u, d]) => {
|
|
1512
|
+
e[+u + a] = [...d, t];
|
|
1220
1513
|
}), e;
|
|
1221
1514
|
},
|
|
1222
1515
|
{ 0: [] }
|
|
1223
|
-
),
|
|
1516
|
+
), L = {
|
|
1224
1517
|
hoverGroup: "hover",
|
|
1225
1518
|
focusGroup: "focus",
|
|
1226
|
-
activeGroup: "active"
|
|
1227
|
-
|
|
1519
|
+
activeGroup: "active",
|
|
1520
|
+
disabledGroup: "disabled"
|
|
1521
|
+
}, G = {
|
|
1228
1522
|
sm: 640,
|
|
1229
1523
|
md: 768,
|
|
1230
1524
|
lg: 1024,
|
|
1231
1525
|
xl: 1280,
|
|
1232
1526
|
xxl: 1536
|
|
1233
1527
|
};
|
|
1234
|
-
var
|
|
1528
|
+
var k;
|
|
1235
1529
|
((e) => {
|
|
1236
|
-
function t(
|
|
1237
|
-
const
|
|
1238
|
-
return
|
|
1239
|
-
|
|
1240
|
-
}),
|
|
1241
|
-
|
|
1242
|
-
}),
|
|
1530
|
+
function t(l, s, i) {
|
|
1531
|
+
const m = { ...l }, b = m.props || {};
|
|
1532
|
+
return s.forEach((r) => {
|
|
1533
|
+
r in m && (b[r] = m[r], delete m[r]);
|
|
1534
|
+
}), i && Object.entries(i).forEach(([r, v]) => {
|
|
1535
|
+
b[r] = v;
|
|
1536
|
+
}), m.props = b, m;
|
|
1243
1537
|
}
|
|
1244
1538
|
e.buildProps = t;
|
|
1245
|
-
function a(
|
|
1246
|
-
return !!
|
|
1539
|
+
function a(l) {
|
|
1540
|
+
return !!l && typeof l == "object";
|
|
1247
1541
|
}
|
|
1248
1542
|
e.isObject = a;
|
|
1249
|
-
function u(...
|
|
1250
|
-
return
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
}),
|
|
1543
|
+
function u(...l) {
|
|
1544
|
+
return l.reduce((s, i) => (Object.keys(i).forEach((m) => {
|
|
1545
|
+
const b = s[m], r = i[m];
|
|
1546
|
+
m in D && typeof r == "boolean" || (m in D && Array.isArray(r) ? s[m] = u(b, r[1] ?? {}) : Array.isArray(b) && Array.isArray(r) ? s[m] = b.concat(...r) : a(b) && a(r) ? s[m] = u(b, r) : s[m] = r);
|
|
1547
|
+
}), s), {});
|
|
1254
1548
|
}
|
|
1255
1549
|
e.mergeDeep = u;
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1550
|
+
function d(l, s) {
|
|
1551
|
+
return l in s;
|
|
1258
1552
|
}
|
|
1259
|
-
e.isKeyOf =
|
|
1260
|
-
})(
|
|
1261
|
-
const
|
|
1262
|
-
class
|
|
1553
|
+
e.isKeyOf = d;
|
|
1554
|
+
})(k || (k = {}));
|
|
1555
|
+
const $ = k;
|
|
1556
|
+
class de {
|
|
1263
1557
|
constructor() {
|
|
1264
1558
|
this._index = 0, this._cache = {};
|
|
1265
1559
|
}
|
|
@@ -1267,149 +1561,154 @@ class oe {
|
|
|
1267
1561
|
return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
|
|
1268
1562
|
}
|
|
1269
1563
|
getByIndex(t) {
|
|
1270
|
-
const { first: a, next: u } =
|
|
1271
|
-
if (
|
|
1564
|
+
const { first: a, next: u } = me, d = t - a.length;
|
|
1565
|
+
if (d < 0)
|
|
1272
1566
|
return a[t];
|
|
1273
|
-
const
|
|
1274
|
-
return this.getByIndex(
|
|
1567
|
+
const l = Math.floor(d / u.length), s = d - l * u.length;
|
|
1568
|
+
return this.getByIndex(l) + u[s];
|
|
1275
1569
|
}
|
|
1276
1570
|
}
|
|
1277
|
-
const
|
|
1571
|
+
const me = {
|
|
1278
1572
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
1279
1573
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
1280
1574
|
};
|
|
1281
|
-
var
|
|
1282
|
-
((e) => {
|
|
1283
|
-
let t = "";
|
|
1284
|
-
function a(m, n) {
|
|
1285
|
-
return t = Object.entries(m).map(([d, o]) => `--${d}: ${o};`).join(""), Object.entries(n).forEach(([d, o]) => {
|
|
1286
|
-
S[d] = o;
|
|
1287
|
-
}), n;
|
|
1288
|
-
}
|
|
1289
|
-
e.extend = a;
|
|
1290
|
-
function u() {
|
|
1291
|
-
return t;
|
|
1292
|
-
}
|
|
1293
|
-
e.getVariables = u;
|
|
1294
|
-
})(K || (K = {}));
|
|
1295
|
-
const me = K;
|
|
1296
|
-
var I;
|
|
1575
|
+
var H;
|
|
1297
1576
|
((e) => {
|
|
1298
1577
|
e.components = {};
|
|
1299
|
-
})(
|
|
1300
|
-
function
|
|
1578
|
+
})(H || (H = {}));
|
|
1579
|
+
function ve(e) {
|
|
1301
1580
|
const { clean: t, theme: a, component: u } = e;
|
|
1302
|
-
return
|
|
1303
|
-
var
|
|
1581
|
+
return J(() => {
|
|
1582
|
+
var s;
|
|
1304
1583
|
if (t) return;
|
|
1305
|
-
|
|
1306
|
-
if (
|
|
1307
|
-
|
|
1584
|
+
const d = u == null ? void 0 : u.split(".");
|
|
1585
|
+
if (!d) return;
|
|
1586
|
+
const l = d.reduce((i, m, b) => {
|
|
1587
|
+
var r, v;
|
|
1588
|
+
return b === 0 ? (r = H.components) == null ? void 0 : r[m] : (v = i == null ? void 0 : i.children) == null ? void 0 : v[m];
|
|
1589
|
+
}, void 0);
|
|
1590
|
+
if (l)
|
|
1591
|
+
return a ? $.mergeDeep(l.styles, ((s = l.themes) == null ? void 0 : s[a]) ?? {}) : l.styles;
|
|
1308
1592
|
}, [u, t, a]);
|
|
1309
1593
|
}
|
|
1310
|
-
const
|
|
1311
|
-
var
|
|
1312
|
-
const
|
|
1313
|
-
function
|
|
1314
|
-
|
|
1315
|
-
const a =
|
|
1316
|
-
return
|
|
1317
|
-
var
|
|
1318
|
-
const u = [t ?
|
|
1319
|
-
(
|
|
1320
|
-
const
|
|
1321
|
-
return
|
|
1594
|
+
const ye = new de(), be = typeof window < "u" && typeof window.document < "u";
|
|
1595
|
+
var re;
|
|
1596
|
+
const oe = typeof process == "object" && ((re = process.env) == null ? void 0 : re.NODE_ENV) === "test", he = be && !oe ? ue : fe, ne = "_b", S = "_s";
|
|
1597
|
+
function ge(e, t) {
|
|
1598
|
+
he(A.flush, [e]);
|
|
1599
|
+
const a = ve(e);
|
|
1600
|
+
return J(() => {
|
|
1601
|
+
var l;
|
|
1602
|
+
const u = [t ? S : ne];
|
|
1603
|
+
(l = e.props) == null || l.name;
|
|
1604
|
+
const d = a ? $.mergeDeep(a, e) : e;
|
|
1605
|
+
return A.addClassNames(d, u, []), u;
|
|
1322
1606
|
}, [e, t, a]);
|
|
1323
1607
|
}
|
|
1324
|
-
var
|
|
1608
|
+
var A;
|
|
1325
1609
|
((e) => {
|
|
1326
1610
|
let t = !0, a = {};
|
|
1327
|
-
function u(
|
|
1328
|
-
Object.entries(
|
|
1329
|
-
if (
|
|
1330
|
-
|
|
1331
|
-
else if (
|
|
1332
|
-
u(
|
|
1333
|
-
else if (
|
|
1334
|
-
if (Array.isArray(
|
|
1335
|
-
const [
|
|
1336
|
-
u(
|
|
1611
|
+
function u(r, v, h, y, o) {
|
|
1612
|
+
Object.entries(r).forEach(([c, f]) => {
|
|
1613
|
+
if ($.isKeyOf(c, j))
|
|
1614
|
+
s(c, f, v, h, y, o);
|
|
1615
|
+
else if ($.isKeyOf(c, se))
|
|
1616
|
+
u(f, v, [...h, c], y, o);
|
|
1617
|
+
else if ($.isKeyOf(c, D)) {
|
|
1618
|
+
if (Array.isArray(f)) {
|
|
1619
|
+
const [x, N] = f;
|
|
1620
|
+
u(N, v, [...h, c], y, o);
|
|
1337
1621
|
}
|
|
1338
|
-
|
|
1339
|
-
} else
|
|
1340
|
-
u(
|
|
1622
|
+
$.isObject(f) && u(f, v, [...h, c], y, o);
|
|
1623
|
+
} else $.isKeyOf(c, G) ? u(f, v, h, c, o) : $.isKeyOf(c, L) && (typeof f == "string" ? v.push(`${L[c]}-${f}`) : Object.entries(f).forEach(([x, N]) => {
|
|
1624
|
+
u(N, v, [...h, L[c]], y, x);
|
|
1341
1625
|
}));
|
|
1342
1626
|
});
|
|
1343
1627
|
}
|
|
1344
1628
|
e.addClassNames = u;
|
|
1345
|
-
function
|
|
1629
|
+
function d() {
|
|
1346
1630
|
if (!t) return;
|
|
1347
1631
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
1348
|
-
const
|
|
1632
|
+
const r = Object.entries(j).reduce((c, [f], x) => (c[f] = x, c), {}), v = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;}
|
|
1349
1633
|
html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
1350
1634
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
1351
1635
|
a,ul{all: unset;}
|
|
1352
|
-
.${
|
|
1353
|
-
.${
|
|
1354
|
-
`,
|
|
1355
|
-
|
|
1356
|
-
([
|
|
1636
|
+
.${ne}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
|
|
1637
|
+
.${S}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${S} path,.${S} circle,.${S} rect,.${S} line {transition: all var(--svgTransitionTime);}
|
|
1638
|
+
`, h = Object.entries(a);
|
|
1639
|
+
h.sort(
|
|
1640
|
+
([c], [f]) => (G[c] ?? 0) - (G[f] ?? 0)
|
|
1357
1641
|
);
|
|
1358
|
-
const
|
|
1359
|
-
(
|
|
1360
|
-
const { __parents:
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
var
|
|
1364
|
-
const
|
|
1365
|
-
if (!
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1642
|
+
const y = h.reduce(
|
|
1643
|
+
(c, [f, x]) => (f !== "normal" && c.push(`@media(min-width: ${G[f]}px){`), Object.entries(x).forEach(([N, U]) => {
|
|
1644
|
+
const { __parents: Z, ...ie } = U, P = Object.entries(ie);
|
|
1645
|
+
P.sort(([w], [T]) => r[w] - r[T]), P.forEach(([w, T]) => {
|
|
1646
|
+
T.forEach((V) => {
|
|
1647
|
+
var B, R;
|
|
1648
|
+
const p = j[w].find((F) => Array.isArray(F.values) ? F.values.includes(V) : typeof V == typeof F.values);
|
|
1649
|
+
if (!p) return;
|
|
1650
|
+
const z = i(w, V, +N, f), q = K[+N].map((F) => Q[F]).join(""), g = ((B = p.selector) == null ? void 0 : B.call(p, `.${z}`, q)) ?? `.${z}${q}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? w], _ = ((R = p.valueFormat) == null ? void 0 : R.call(p, V, E.useVariable)) ?? V;
|
|
1651
|
+
c.push(`${g}{${I.map((F) => `${F}:${_}`).join(";")}}`);
|
|
1368
1652
|
});
|
|
1369
|
-
}),
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
var
|
|
1374
|
-
const
|
|
1375
|
-
if (!
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1653
|
+
}), Z && Object.entries(Z).forEach(([w, T]) => {
|
|
1654
|
+
const V = Object.entries(T);
|
|
1655
|
+
V.sort(([O], [p]) => r[O] - r[p]), V.forEach(([O, p]) => {
|
|
1656
|
+
p.forEach((z) => {
|
|
1657
|
+
var ee, te;
|
|
1658
|
+
const g = j[O].find((C) => Array.isArray(C.values) ? C.values.includes(z) : typeof z == typeof C.values);
|
|
1659
|
+
if (!g) return;
|
|
1660
|
+
const I = i(O, z, +N, f, w), [_] = K[+N], B = ((ee = g.selector) == null ? void 0 : ee.call(g, `.${_}-${w}:${_} .${I}`, "")) ?? `.${_}-${w}:${_} .${I}`, R = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? O], F = ((te = g.valueFormat) == null ? void 0 : te.call(g, z, E.useVariable)) ?? z;
|
|
1661
|
+
c.push(`${B}{${R.map((C) => `${C}:${F}`).join(";")}}`);
|
|
1378
1662
|
});
|
|
1379
1663
|
});
|
|
1380
1664
|
});
|
|
1381
|
-
}),
|
|
1382
|
-
[
|
|
1383
|
-
)
|
|
1384
|
-
|
|
1665
|
+
}), f !== "normal" && c.push("}"), c),
|
|
1666
|
+
[v]
|
|
1667
|
+
);
|
|
1668
|
+
y.unshift(`:root{${E.generateVariables()}}`);
|
|
1669
|
+
const o = b();
|
|
1670
|
+
o.innerHTML = y.join(""), t = !1;
|
|
1385
1671
|
}
|
|
1386
|
-
e.flush =
|
|
1387
|
-
function
|
|
1672
|
+
e.flush = d;
|
|
1673
|
+
function l() {
|
|
1388
1674
|
a = {};
|
|
1389
1675
|
}
|
|
1390
|
-
e.clear =
|
|
1391
|
-
function
|
|
1392
|
-
if (
|
|
1393
|
-
const
|
|
1394
|
-
a[
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1676
|
+
e.clear = l;
|
|
1677
|
+
function s(r, v, h, y, o = "normal", c) {
|
|
1678
|
+
if (v == null) return;
|
|
1679
|
+
const f = y.reduce((N, U) => N + le[U], 0);
|
|
1680
|
+
a[o] ? a[o][f] ? a[o][f][r] || (a[o][f][r] = /* @__PURE__ */ new Set()) : a[o][f] = { [r]: /* @__PURE__ */ new Set() } : a[o] = { [f]: { [r]: /* @__PURE__ */ new Set() } }, c ? (a[o][f].__parents ? a[o][f].__parents[c] ? a[o][f].__parents[c][r] || (a[o][f].__parents[c][r] = /* @__PURE__ */ new Set()) : a[o][f].__parents[c] = { [r]: /* @__PURE__ */ new Set() } : a[o][f].__parents = { [c]: { [r]: /* @__PURE__ */ new Set() } }, a[o][f].__parents[c][r].has(v) || (a[o][f].__parents[c][r].add(v), t = !0)) : a[o][f][r].has(v) || (a[o][f][r].add(v), t = !0);
|
|
1681
|
+
const x = i(r, v, f, o, c);
|
|
1682
|
+
h.push(x);
|
|
1397
1683
|
}
|
|
1398
|
-
function
|
|
1399
|
-
const
|
|
1400
|
-
return
|
|
1684
|
+
function i(r, v, h, y, o) {
|
|
1685
|
+
const c = K[h], f = `${y === "normal" ? "" : `${y}-`}${c.map((x) => `${x}-`).join("")}${o ? `${o}-` : ""}${r}-${v}`;
|
|
1686
|
+
return oe ? f : ye.getIdentity(f);
|
|
1401
1687
|
}
|
|
1402
|
-
const
|
|
1403
|
-
function
|
|
1404
|
-
let
|
|
1405
|
-
return
|
|
1688
|
+
const m = "crono-styles";
|
|
1689
|
+
function b() {
|
|
1690
|
+
let r = document.getElementById(m);
|
|
1691
|
+
return r || (r = document.createElement("style"), r.setAttribute("id", m), r.setAttribute("type", "text/css"), document.head.insertBefore(r, document.head.firstChild)), r;
|
|
1406
1692
|
}
|
|
1407
|
-
})(
|
|
1408
|
-
var
|
|
1693
|
+
})(A || (A = {}));
|
|
1694
|
+
var ae;
|
|
1409
1695
|
((e) => {
|
|
1410
|
-
e.flush =
|
|
1411
|
-
})(
|
|
1412
|
-
var
|
|
1696
|
+
e.flush = A.flush, e.clear = A.clear;
|
|
1697
|
+
})(ae || (ae = {}));
|
|
1698
|
+
var M;
|
|
1699
|
+
((e) => {
|
|
1700
|
+
function t(a, u, d) {
|
|
1701
|
+
return E.setUserVariables(a), Object.entries(u).forEach(([l, s]) => {
|
|
1702
|
+
j[l] = s;
|
|
1703
|
+
}), Object.entries(d).forEach(([l, s]) => {
|
|
1704
|
+
const i = j[l];
|
|
1705
|
+
j[l] = i ? [...s, ...i] : s;
|
|
1706
|
+
}), { extendedProps: u, extendedPropTypes: d };
|
|
1707
|
+
}
|
|
1708
|
+
e.extend = t;
|
|
1709
|
+
})(M || (M = {}));
|
|
1710
|
+
const xe = M;
|
|
1711
|
+
var X;
|
|
1413
1712
|
((e) => {
|
|
1414
1713
|
const t = {
|
|
1415
1714
|
button: {
|
|
@@ -1452,72 +1751,88 @@ var L;
|
|
|
1452
1751
|
borderRadius: 1
|
|
1453
1752
|
}
|
|
1454
1753
|
}
|
|
1754
|
+
// dropdown: {
|
|
1755
|
+
// styles: {
|
|
1756
|
+
// width: 'min-content',
|
|
1757
|
+
// b: 1,
|
|
1758
|
+
// borderRadius: 1,
|
|
1759
|
+
// p: 3,
|
|
1760
|
+
// cursor: 'pointer',
|
|
1761
|
+
// },
|
|
1762
|
+
// children: {
|
|
1763
|
+
// items: {
|
|
1764
|
+
// styles: {
|
|
1765
|
+
// b: 1,
|
|
1766
|
+
// },
|
|
1767
|
+
// },
|
|
1768
|
+
// },
|
|
1769
|
+
// },
|
|
1455
1770
|
};
|
|
1456
1771
|
function a(u) {
|
|
1457
|
-
const { components:
|
|
1458
|
-
Object.entries(
|
|
1459
|
-
|
|
1460
|
-
}),
|
|
1772
|
+
const { components: d, ...l } = u, s = d ?? {};
|
|
1773
|
+
Object.entries(l).forEach(([i, m]) => {
|
|
1774
|
+
s[i] = m;
|
|
1775
|
+
}), H.components = $.mergeDeep(t, s);
|
|
1461
1776
|
}
|
|
1462
1777
|
e.setup = a;
|
|
1463
|
-
})(
|
|
1464
|
-
const
|
|
1465
|
-
var
|
|
1778
|
+
})(X || (X = {}));
|
|
1779
|
+
const Ne = X;
|
|
1780
|
+
var Y;
|
|
1466
1781
|
((e) => {
|
|
1467
1782
|
function t(u) {
|
|
1468
|
-
const
|
|
1469
|
-
(
|
|
1470
|
-
const
|
|
1471
|
-
return
|
|
1783
|
+
const d = Array.from(u.elements).reduce(
|
|
1784
|
+
(l, s) => {
|
|
1785
|
+
const i = s.name;
|
|
1786
|
+
return i && (l[i] || (l[i] = []), l[i].push(s)), l;
|
|
1472
1787
|
},
|
|
1473
1788
|
{}
|
|
1474
1789
|
);
|
|
1475
|
-
return Object.entries(
|
|
1476
|
-
if (
|
|
1477
|
-
const
|
|
1478
|
-
a(
|
|
1790
|
+
return Object.entries(d).reduce((l, [s, i]) => {
|
|
1791
|
+
if (i.length === 1) {
|
|
1792
|
+
const m = i[0];
|
|
1793
|
+
a(l, s, m.type === "checkbox" || m.type === "radio" ? m.checked : m.value);
|
|
1479
1794
|
} else {
|
|
1480
|
-
const
|
|
1481
|
-
a(
|
|
1795
|
+
const m = i.reduce((b, r) => (r.type === "checkbox" || r.type === "radio" ? r.checked && b.push(r.value) : b.push(r.value), b), []);
|
|
1796
|
+
a(l, s, m);
|
|
1482
1797
|
}
|
|
1483
|
-
return
|
|
1798
|
+
return l;
|
|
1484
1799
|
}, {});
|
|
1485
1800
|
}
|
|
1486
1801
|
e.getFormEntries = t;
|
|
1487
|
-
function a(u,
|
|
1488
|
-
if (
|
|
1489
|
-
const
|
|
1490
|
-
let
|
|
1491
|
-
|
|
1492
|
-
if (
|
|
1493
|
-
const
|
|
1494
|
-
if (
|
|
1495
|
-
const [,
|
|
1496
|
-
|
|
1802
|
+
function a(u, d, l) {
|
|
1803
|
+
if (d.includes(".")) {
|
|
1804
|
+
const s = d.split(".");
|
|
1805
|
+
let i = u;
|
|
1806
|
+
s.forEach((m, b) => {
|
|
1807
|
+
if (s.length > b + 1) {
|
|
1808
|
+
const r = m.match(/^(.+)\[(\d)\]$/);
|
|
1809
|
+
if (r) {
|
|
1810
|
+
const [, v, h] = r;
|
|
1811
|
+
i[v] = i[v] || [], i[v][h] = i[v][h] || {}, i = i[v][h];
|
|
1497
1812
|
} else
|
|
1498
|
-
|
|
1813
|
+
i[m] = i[m] || {}, i = i[m];
|
|
1499
1814
|
} else
|
|
1500
|
-
|
|
1815
|
+
i[m] = l;
|
|
1501
1816
|
});
|
|
1502
1817
|
} else
|
|
1503
|
-
u[
|
|
1818
|
+
u[d] = l;
|
|
1504
1819
|
}
|
|
1505
|
-
})(
|
|
1506
|
-
const
|
|
1507
|
-
function
|
|
1508
|
-
return
|
|
1820
|
+
})(Y || (Y = {}));
|
|
1821
|
+
const we = Y;
|
|
1822
|
+
function Fe() {
|
|
1823
|
+
return J(() => {
|
|
1509
1824
|
const e = "crono-box";
|
|
1510
1825
|
let t = document.getElementById(e);
|
|
1511
1826
|
return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
|
|
1512
1827
|
}, []);
|
|
1513
1828
|
}
|
|
1514
1829
|
export {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1830
|
+
xe as B,
|
|
1831
|
+
we as F,
|
|
1832
|
+
$ as O,
|
|
1833
|
+
ae as S,
|
|
1834
|
+
Ne as T,
|
|
1835
|
+
Fe as a,
|
|
1836
|
+
ce as c,
|
|
1837
|
+
ge as u
|
|
1523
1838
|
};
|