tekivex-ui 2.5.11 → 2.5.12
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/TkxForm-1KDzoniV.cjs +12 -0
- package/dist/TkxForm-9-W3Nl6m.js +314 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +543 -507
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +428 -447
- package/dist/hooks-6pRsPOyG.js +58 -0
- package/dist/hooks-mivgRljH.cjs +1 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.js +728 -752
- package/dist/index.cjs +26 -26
- package/dist/index.js +16102 -16619
- package/dist/quantum.cjs +14 -16
- package/dist/quantum.js +2473 -2279
- package/dist/realtime.cjs +4 -10
- package/dist/realtime.js +804 -958
- package/dist/src/components/TkxClock.d.ts.map +1 -1
- package/dist/src/components/TkxForm.d.ts.map +1 -1
- package/dist/src/components/TkxLiveFeed.d.ts +1 -1
- package/dist/src/components/TkxLiveLog.d.ts +1 -1
- package/dist/src/components/TkxRealTimeChart.d.ts +1 -1
- package/dist/src/components/TkxTooltip.d.ts.map +1 -1
- package/dist/src/components/TkxTypography.d.ts +5 -5
- package/dist/src/components/TkxTypography.d.ts.map +1 -1
- package/dist/tekivex-ui.css +2 -0
- package/dist/themes-BbJanqiC.js +498 -0
- package/dist/themes-CMq2vWXj.cjs +2 -0
- package/dist/tkx-0oAwZqgL.cjs +4 -0
- package/dist/tkx-DQkvHdE5.js +1172 -0
- package/package.json +16 -16
- package/src/components/TkxClock.tsx +2 -2
- package/src/components/TkxForm.tsx +4 -2
- package/src/components/TkxTooltip.tsx +7 -5
- package/src/components/TkxTypography.tsx +2 -2
- package/dist/TkxForm-2tGLCPH6.js +0 -326
- package/dist/TkxForm-C2VqR2wC.cjs +0 -12
- package/dist/index-BgHMZe4Z.js +0 -66
- package/dist/index-Bt5y50Qa.cjs +0 -1
- package/dist/index-DnqXtpwV.cjs +0 -2
- package/dist/index-iUUHRxqJ.js +0 -515
- package/dist/security-C-ZPGoyG.js +0 -97
- package/dist/security-Uf0mjv8o.cjs +0 -1
- package/dist/style.css +0 -1
- package/dist/tkx-BtHzWKTl.js +0 -1112
- package/dist/tkx-C7GvVUE9.cjs +0 -4
package/dist/tkx-BtHzWKTl.js
DELETED
|
@@ -1,1112 +0,0 @@
|
|
|
1
|
-
import { n as V } from "./index-iUUHRxqJ.js";
|
|
2
|
-
const l = {
|
|
3
|
-
0: "0",
|
|
4
|
-
px: "1px",
|
|
5
|
-
"0.5": "2px",
|
|
6
|
-
1: "4px",
|
|
7
|
-
"1.5": "6px",
|
|
8
|
-
2: "8px",
|
|
9
|
-
"2.5": "10px",
|
|
10
|
-
3: "12px",
|
|
11
|
-
"3.5": "14px",
|
|
12
|
-
4: "16px",
|
|
13
|
-
5: "20px",
|
|
14
|
-
6: "24px",
|
|
15
|
-
7: "28px",
|
|
16
|
-
8: "32px",
|
|
17
|
-
9: "36px",
|
|
18
|
-
10: "40px",
|
|
19
|
-
11: "44px",
|
|
20
|
-
12: "48px",
|
|
21
|
-
14: "56px",
|
|
22
|
-
16: "64px",
|
|
23
|
-
20: "80px",
|
|
24
|
-
24: "96px",
|
|
25
|
-
28: "112px",
|
|
26
|
-
32: "128px",
|
|
27
|
-
36: "144px",
|
|
28
|
-
40: "160px",
|
|
29
|
-
44: "176px",
|
|
30
|
-
48: "192px",
|
|
31
|
-
52: "208px",
|
|
32
|
-
56: "224px",
|
|
33
|
-
60: "240px",
|
|
34
|
-
64: "256px",
|
|
35
|
-
72: "288px",
|
|
36
|
-
80: "320px",
|
|
37
|
-
96: "384px",
|
|
38
|
-
auto: "auto",
|
|
39
|
-
full: "100%",
|
|
40
|
-
screen: "100vw",
|
|
41
|
-
svh: "100svh",
|
|
42
|
-
dvh: "100dvh",
|
|
43
|
-
fit: "fit-content",
|
|
44
|
-
max: "max-content",
|
|
45
|
-
min: "min-content"
|
|
46
|
-
}, H = { ...l, screen: "100vh" }, x = {
|
|
47
|
-
"1/2": "50%",
|
|
48
|
-
"1/3": "33.333333%",
|
|
49
|
-
"2/3": "66.666667%",
|
|
50
|
-
"1/4": "25%",
|
|
51
|
-
"2/4": "50%",
|
|
52
|
-
"3/4": "75%",
|
|
53
|
-
"1/5": "20%",
|
|
54
|
-
"2/5": "40%",
|
|
55
|
-
"3/5": "60%",
|
|
56
|
-
"4/5": "80%",
|
|
57
|
-
"1/6": "16.666667%",
|
|
58
|
-
"5/6": "83.333333%",
|
|
59
|
-
"1/12": "8.333333%",
|
|
60
|
-
"5/12": "41.666667%",
|
|
61
|
-
"7/12": "58.333333%",
|
|
62
|
-
"11/12": "91.666667%"
|
|
63
|
-
}, y = {
|
|
64
|
-
none: "0",
|
|
65
|
-
sm: "2px",
|
|
66
|
-
"": "4px",
|
|
67
|
-
md: "6px",
|
|
68
|
-
lg: "8px",
|
|
69
|
-
xl: "12px",
|
|
70
|
-
"2xl": "16px",
|
|
71
|
-
"3xl": "24px",
|
|
72
|
-
full: "9999px"
|
|
73
|
-
}, U = {
|
|
74
|
-
sm: "0 1px 2px 0 rgba(0,0,0,.05)",
|
|
75
|
-
"": "0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",
|
|
76
|
-
md: "0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",
|
|
77
|
-
lg: "0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",
|
|
78
|
-
xl: "0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)",
|
|
79
|
-
"2xl": "0 25px 50px -12px rgba(0,0,0,.25)",
|
|
80
|
-
inner: "inset 0 2px 4px 0 rgba(0,0,0,.05)",
|
|
81
|
-
none: "none"
|
|
82
|
-
}, J = {
|
|
83
|
-
xs: ["0.75rem", "1rem"],
|
|
84
|
-
sm: ["0.875rem", "1.25rem"],
|
|
85
|
-
base: ["1rem", "1.5rem"],
|
|
86
|
-
lg: ["1.125rem", "1.75rem"],
|
|
87
|
-
xl: ["1.25rem", "1.75rem"],
|
|
88
|
-
"2xl": ["1.5rem", "2rem"],
|
|
89
|
-
"3xl": ["1.875rem", "2.25rem"],
|
|
90
|
-
"4xl": ["2.25rem", "2.5rem"],
|
|
91
|
-
"5xl": ["3rem", "1"],
|
|
92
|
-
"6xl": ["3.75rem", "1"],
|
|
93
|
-
"7xl": ["4.5rem", "1"],
|
|
94
|
-
"8xl": ["6rem", "1"],
|
|
95
|
-
"9xl": ["8rem", "1"]
|
|
96
|
-
}, Q = {
|
|
97
|
-
thin: "100",
|
|
98
|
-
extralight: "200",
|
|
99
|
-
light: "300",
|
|
100
|
-
normal: "400",
|
|
101
|
-
medium: "500",
|
|
102
|
-
semibold: "600",
|
|
103
|
-
bold: "700",
|
|
104
|
-
extrabold: "800",
|
|
105
|
-
black: "900"
|
|
106
|
-
}, tt = {
|
|
107
|
-
none: "1",
|
|
108
|
-
tight: "1.25",
|
|
109
|
-
snug: "1.375",
|
|
110
|
-
normal: "1.5",
|
|
111
|
-
relaxed: "1.625",
|
|
112
|
-
loose: "2",
|
|
113
|
-
3: "0.75rem",
|
|
114
|
-
4: "1rem",
|
|
115
|
-
5: "1.25rem",
|
|
116
|
-
6: "1.5rem",
|
|
117
|
-
7: "1.75rem",
|
|
118
|
-
8: "2rem",
|
|
119
|
-
9: "2.25rem",
|
|
120
|
-
10: "2.5rem"
|
|
121
|
-
}, et = {
|
|
122
|
-
tighter: "-0.05em",
|
|
123
|
-
tight: "-0.025em",
|
|
124
|
-
normal: "0em",
|
|
125
|
-
wide: "0.025em",
|
|
126
|
-
wider: "0.05em",
|
|
127
|
-
widest: "0.1em"
|
|
128
|
-
}, k = {
|
|
129
|
-
none: "0",
|
|
130
|
-
sm: "4px",
|
|
131
|
-
"": "8px",
|
|
132
|
-
md: "12px",
|
|
133
|
-
lg: "16px",
|
|
134
|
-
xl: "24px",
|
|
135
|
-
"2xl": "40px",
|
|
136
|
-
"3xl": "64px"
|
|
137
|
-
}, rt = Object.fromEntries(
|
|
138
|
-
[0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100].map((t) => [String(t), String(t / 100)])
|
|
139
|
-
), Y = /* @__PURE__ */ new Set([
|
|
140
|
-
"bg",
|
|
141
|
-
"surface",
|
|
142
|
-
"surfaceAlt",
|
|
143
|
-
"border",
|
|
144
|
-
"text",
|
|
145
|
-
"textMuted",
|
|
146
|
-
"primary",
|
|
147
|
-
"secondary",
|
|
148
|
-
"danger",
|
|
149
|
-
"warning",
|
|
150
|
-
"success",
|
|
151
|
-
"info"
|
|
152
|
-
]), nt = {
|
|
153
|
-
sm: "640px",
|
|
154
|
-
md: "768px",
|
|
155
|
-
lg: "1024px",
|
|
156
|
-
xl: "1280px",
|
|
157
|
-
"2xl": "1536px"
|
|
158
|
-
}, it = /javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i, ot = /* @__PURE__ */ new Set([
|
|
159
|
-
"behavior",
|
|
160
|
-
"-moz-binding",
|
|
161
|
-
"-webkit-binding",
|
|
162
|
-
"src"
|
|
163
|
-
]), st = /* @__PURE__ */ new Set([
|
|
164
|
-
// Box model
|
|
165
|
-
"width",
|
|
166
|
-
"min-width",
|
|
167
|
-
"max-width",
|
|
168
|
-
"height",
|
|
169
|
-
"min-height",
|
|
170
|
-
"max-height",
|
|
171
|
-
"margin",
|
|
172
|
-
"margin-top",
|
|
173
|
-
"margin-right",
|
|
174
|
-
"margin-bottom",
|
|
175
|
-
"margin-left",
|
|
176
|
-
"padding",
|
|
177
|
-
"padding-top",
|
|
178
|
-
"padding-right",
|
|
179
|
-
"padding-bottom",
|
|
180
|
-
"padding-left",
|
|
181
|
-
// Positioning
|
|
182
|
-
"position",
|
|
183
|
-
"top",
|
|
184
|
-
"right",
|
|
185
|
-
"bottom",
|
|
186
|
-
"left",
|
|
187
|
-
"z-index",
|
|
188
|
-
"inset",
|
|
189
|
-
// Flexbox / Grid
|
|
190
|
-
"flex",
|
|
191
|
-
"flex-grow",
|
|
192
|
-
"flex-shrink",
|
|
193
|
-
"flex-basis",
|
|
194
|
-
"flex-direction",
|
|
195
|
-
"flex-wrap",
|
|
196
|
-
"align-items",
|
|
197
|
-
"align-self",
|
|
198
|
-
"align-content",
|
|
199
|
-
"justify-content",
|
|
200
|
-
"justify-items",
|
|
201
|
-
"justify-self",
|
|
202
|
-
"gap",
|
|
203
|
-
"row-gap",
|
|
204
|
-
"column-gap",
|
|
205
|
-
"grid-template-columns",
|
|
206
|
-
"grid-template-rows",
|
|
207
|
-
"grid-column",
|
|
208
|
-
"grid-row",
|
|
209
|
-
"grid-area",
|
|
210
|
-
"grid-template-areas",
|
|
211
|
-
// Typography
|
|
212
|
-
"font-size",
|
|
213
|
-
"font-weight",
|
|
214
|
-
"font-family",
|
|
215
|
-
"font-style",
|
|
216
|
-
"line-height",
|
|
217
|
-
"letter-spacing",
|
|
218
|
-
"text-align",
|
|
219
|
-
"text-decoration",
|
|
220
|
-
"text-transform",
|
|
221
|
-
"text-overflow",
|
|
222
|
-
"white-space",
|
|
223
|
-
"word-break",
|
|
224
|
-
"word-wrap",
|
|
225
|
-
"overflow-wrap",
|
|
226
|
-
// Color / Background
|
|
227
|
-
"color",
|
|
228
|
-
"background",
|
|
229
|
-
"background-color",
|
|
230
|
-
"background-image",
|
|
231
|
-
"background-position",
|
|
232
|
-
"background-size",
|
|
233
|
-
"background-repeat",
|
|
234
|
-
"opacity",
|
|
235
|
-
// Border
|
|
236
|
-
"border",
|
|
237
|
-
"border-top",
|
|
238
|
-
"border-right",
|
|
239
|
-
"border-bottom",
|
|
240
|
-
"border-left",
|
|
241
|
-
"border-width",
|
|
242
|
-
"border-style",
|
|
243
|
-
"border-color",
|
|
244
|
-
"border-radius",
|
|
245
|
-
"outline",
|
|
246
|
-
"outline-offset",
|
|
247
|
-
// Effects
|
|
248
|
-
"box-shadow",
|
|
249
|
-
"text-shadow",
|
|
250
|
-
"filter",
|
|
251
|
-
"backdrop-filter",
|
|
252
|
-
"transform",
|
|
253
|
-
"transition",
|
|
254
|
-
"animation",
|
|
255
|
-
// Layout
|
|
256
|
-
"display",
|
|
257
|
-
"overflow",
|
|
258
|
-
"overflow-x",
|
|
259
|
-
"overflow-y",
|
|
260
|
-
"visibility",
|
|
261
|
-
"pointer-events",
|
|
262
|
-
"cursor",
|
|
263
|
-
"user-select",
|
|
264
|
-
// Misc safe
|
|
265
|
-
"aspect-ratio",
|
|
266
|
-
"object-fit",
|
|
267
|
-
"object-position",
|
|
268
|
-
"list-style",
|
|
269
|
-
"vertical-align",
|
|
270
|
-
"float",
|
|
271
|
-
"clear",
|
|
272
|
-
"resize",
|
|
273
|
-
"scroll-behavior",
|
|
274
|
-
"content"
|
|
275
|
-
// allow content: '' for pseudo-like patterns but value is guarded
|
|
276
|
-
]);
|
|
277
|
-
function B(t) {
|
|
278
|
-
return it.test(t) || t.includes("}") || t.includes("{") || t.includes("<") || t.includes(">") ? null : t;
|
|
279
|
-
}
|
|
280
|
-
function at(t) {
|
|
281
|
-
const o = t.toLowerCase().trim();
|
|
282
|
-
return ot.has(o) || !st.has(o) ? null : o;
|
|
283
|
-
}
|
|
284
|
-
function i(t) {
|
|
285
|
-
const o = t.match(/^\[(.+)]$/);
|
|
286
|
-
return o ? B(o[1]) : null;
|
|
287
|
-
}
|
|
288
|
-
function h(t) {
|
|
289
|
-
if (Y.has(t)) return `var(--tkx-${t})`;
|
|
290
|
-
if (t === "transparent") return "transparent";
|
|
291
|
-
if (t === "current") return "currentColor";
|
|
292
|
-
if (t === "white") return "#ffffff";
|
|
293
|
-
if (t === "black") return "#000000";
|
|
294
|
-
if (t === "inherit") return "inherit";
|
|
295
|
-
const o = i(t);
|
|
296
|
-
return o || (/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t), t);
|
|
297
|
-
}
|
|
298
|
-
function lt(t) {
|
|
299
|
-
const o = t.match(/^\[([a-zA-Z-]+):(.+)]$/);
|
|
300
|
-
if (o) {
|
|
301
|
-
const r = at(o[1]), n = B(o[2]);
|
|
302
|
-
return r && n ? { [r]: n } : null;
|
|
303
|
-
}
|
|
304
|
-
const s = {
|
|
305
|
-
flex: "flex",
|
|
306
|
-
"inline-flex": "inline-flex",
|
|
307
|
-
grid: "grid",
|
|
308
|
-
"inline-grid": "inline-grid",
|
|
309
|
-
block: "block",
|
|
310
|
-
"inline-block": "inline-block",
|
|
311
|
-
inline: "inline",
|
|
312
|
-
hidden: "none",
|
|
313
|
-
contents: "contents",
|
|
314
|
-
"flow-root": "flow-root",
|
|
315
|
-
table: "table",
|
|
316
|
-
"table-row": "table-row",
|
|
317
|
-
"table-cell": "table-cell",
|
|
318
|
-
"table-caption": "table-caption",
|
|
319
|
-
"list-item": "list-item"
|
|
320
|
-
};
|
|
321
|
-
if (s[t]) return { display: s[t] };
|
|
322
|
-
const a = {
|
|
323
|
-
"flex-row": "row",
|
|
324
|
-
"flex-col": "column",
|
|
325
|
-
"flex-row-reverse": "row-reverse",
|
|
326
|
-
"flex-col-reverse": "column-reverse"
|
|
327
|
-
};
|
|
328
|
-
if (a[t]) return { "flex-direction": a[t] };
|
|
329
|
-
const f = {
|
|
330
|
-
"flex-wrap": "wrap",
|
|
331
|
-
"flex-nowrap": "nowrap",
|
|
332
|
-
"flex-wrap-reverse": "wrap-reverse"
|
|
333
|
-
};
|
|
334
|
-
if (f[t]) return { "flex-wrap": f[t] };
|
|
335
|
-
const b = {
|
|
336
|
-
"flex-1": "1 1 0%",
|
|
337
|
-
"flex-auto": "1 1 auto",
|
|
338
|
-
"flex-none": "none",
|
|
339
|
-
"flex-initial": "0 1 auto"
|
|
340
|
-
};
|
|
341
|
-
if (b[t]) return { flex: b[t] };
|
|
342
|
-
if (t === "grow" || t === "flex-grow") return { "flex-grow": "1" };
|
|
343
|
-
if (t === "grow-0") return { "flex-grow": "0" };
|
|
344
|
-
if (t === "shrink" || t === "flex-shrink") return { "flex-shrink": "1" };
|
|
345
|
-
if (t === "shrink-0" || t === "flex-shrink-0") return { "flex-shrink": "0" };
|
|
346
|
-
const $ = {
|
|
347
|
-
"items-start": "flex-start",
|
|
348
|
-
"items-end": "flex-end",
|
|
349
|
-
"items-center": "center",
|
|
350
|
-
"items-stretch": "stretch",
|
|
351
|
-
"items-baseline": "baseline"
|
|
352
|
-
};
|
|
353
|
-
if ($[t]) return { "align-items": $[t] };
|
|
354
|
-
const d = {
|
|
355
|
-
"justify-start": "flex-start",
|
|
356
|
-
"justify-end": "flex-end",
|
|
357
|
-
"justify-center": "center",
|
|
358
|
-
"justify-between": "space-between",
|
|
359
|
-
"justify-around": "space-around",
|
|
360
|
-
"justify-evenly": "space-evenly",
|
|
361
|
-
"justify-stretch": "stretch",
|
|
362
|
-
"justify-normal": "normal"
|
|
363
|
-
};
|
|
364
|
-
if (d[t]) return { "justify-content": d[t] };
|
|
365
|
-
const c = {
|
|
366
|
-
"self-auto": "auto",
|
|
367
|
-
"self-start": "flex-start",
|
|
368
|
-
"self-end": "flex-end",
|
|
369
|
-
"self-center": "center",
|
|
370
|
-
"self-stretch": "stretch",
|
|
371
|
-
"self-baseline": "baseline"
|
|
372
|
-
};
|
|
373
|
-
if (c[t]) return { "align-self": c[t] };
|
|
374
|
-
const m = {
|
|
375
|
-
"content-start": "flex-start",
|
|
376
|
-
"content-end": "flex-end",
|
|
377
|
-
"content-center": "center",
|
|
378
|
-
"content-between": "space-between",
|
|
379
|
-
"content-around": "space-around",
|
|
380
|
-
"content-evenly": "space-evenly",
|
|
381
|
-
"content-stretch": "stretch"
|
|
382
|
-
};
|
|
383
|
-
if (m[t]) return { "align-content": m[t] };
|
|
384
|
-
let e;
|
|
385
|
-
if (e = t.match(/^grid-cols-(\d+|none|subgrid)$/))
|
|
386
|
-
return { "grid-template-columns": e[1] === "none" ? "none" : e[1] === "subgrid" ? "subgrid" : `repeat(${e[1]},minmax(0,1fr))` };
|
|
387
|
-
if (e = t.match(/^grid-rows-(\d+|none|subgrid)$/))
|
|
388
|
-
return { "grid-template-rows": e[1] === "none" ? "none" : e[1] === "subgrid" ? "subgrid" : `repeat(${e[1]},minmax(0,1fr))` };
|
|
389
|
-
if (e = t.match(/^col-span-(full|\d+)$/))
|
|
390
|
-
return { "grid-column": e[1] === "full" ? "1 / -1" : `span ${e[1]} / span ${e[1]}` };
|
|
391
|
-
if (e = t.match(/^col-start-(\d+|auto)$/)) return { "grid-column-start": e[1] };
|
|
392
|
-
if (e = t.match(/^col-end-(\d+|auto)$/)) return { "grid-column-end": e[1] };
|
|
393
|
-
if (e = t.match(/^row-span-(full|\d+)$/))
|
|
394
|
-
return { "grid-row": e[1] === "full" ? "1 / -1" : `span ${e[1]} / span ${e[1]}` };
|
|
395
|
-
if (e = t.match(/^row-start-(\d+|auto)$/)) return { "grid-row-start": e[1] };
|
|
396
|
-
if (e = t.match(/^row-end-(\d+|auto)$/)) return { "grid-row-end": e[1] };
|
|
397
|
-
if (t === "grid-flow-row") return { "grid-auto-flow": "row" };
|
|
398
|
-
if (t === "grid-flow-col") return { "grid-auto-flow": "column" };
|
|
399
|
-
if (t === "grid-flow-dense") return { "grid-auto-flow": "dense" };
|
|
400
|
-
if (t === "grid-flow-row-dense") return { "grid-auto-flow": "row dense" };
|
|
401
|
-
if (t === "grid-flow-col-dense") return { "grid-auto-flow": "column dense" };
|
|
402
|
-
if (e = t.match(/^p-(.+)$/)) {
|
|
403
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
404
|
-
if (r) return { padding: r };
|
|
405
|
-
}
|
|
406
|
-
if (e = t.match(/^px-(.+)$/)) {
|
|
407
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
408
|
-
if (r) return { "padding-left": r, "padding-right": r };
|
|
409
|
-
}
|
|
410
|
-
if (e = t.match(/^py-(.+)$/)) {
|
|
411
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
412
|
-
if (r) return { "padding-top": r, "padding-bottom": r };
|
|
413
|
-
}
|
|
414
|
-
if (e = t.match(/^pt-(.+)$/)) {
|
|
415
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
416
|
-
if (r) return { "padding-top": r };
|
|
417
|
-
}
|
|
418
|
-
if (e = t.match(/^pr-(.+)$/)) {
|
|
419
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
420
|
-
if (r) return { "padding-right": r };
|
|
421
|
-
}
|
|
422
|
-
if (e = t.match(/^pb-(.+)$/)) {
|
|
423
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
424
|
-
if (r) return { "padding-bottom": r };
|
|
425
|
-
}
|
|
426
|
-
if (e = t.match(/^pl-(.+)$/)) {
|
|
427
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
428
|
-
if (r) return { "padding-left": r };
|
|
429
|
-
}
|
|
430
|
-
if (e = t.match(/^-?m-(.+)$/)) {
|
|
431
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
432
|
-
if (n) return { margin: r && n !== "0" ? `-${n}` : n };
|
|
433
|
-
}
|
|
434
|
-
if (e = t.match(/^-?mx-(.+)$/)) {
|
|
435
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
436
|
-
if (n) {
|
|
437
|
-
const p = r && n !== "0" ? `-${n}` : n;
|
|
438
|
-
return { "margin-left": p, "margin-right": p };
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
if (e = t.match(/^-?my-(.+)$/)) {
|
|
442
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
443
|
-
if (n) {
|
|
444
|
-
const p = r && n !== "0" ? `-${n}` : n;
|
|
445
|
-
return { "margin-top": p, "margin-bottom": p };
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
if (e = t.match(/^-?mt-(.+)$/)) {
|
|
449
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
450
|
-
if (n) return { "margin-top": r && n !== "0" ? `-${n}` : n };
|
|
451
|
-
}
|
|
452
|
-
if (e = t.match(/^-?mr-(.+)$/)) {
|
|
453
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
454
|
-
if (n) return { "margin-right": r && n !== "0" ? `-${n}` : n };
|
|
455
|
-
}
|
|
456
|
-
if (e = t.match(/^-?mb-(.+)$/)) {
|
|
457
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
458
|
-
if (n) return { "margin-bottom": r && n !== "0" ? `-${n}` : n };
|
|
459
|
-
}
|
|
460
|
-
if (e = t.match(/^-?ml-(.+)$/)) {
|
|
461
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? i(e[1]);
|
|
462
|
-
if (n) return { "margin-left": r && n !== "0" ? `-${n}` : n };
|
|
463
|
-
}
|
|
464
|
-
if (t === "mx-auto") return { "margin-left": "auto", "margin-right": "auto" };
|
|
465
|
-
if (t === "my-auto") return { "margin-top": "auto", "margin-bottom": "auto" };
|
|
466
|
-
if (e = t.match(/^gap-(.+)$/)) {
|
|
467
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
468
|
-
if (r) return { gap: r };
|
|
469
|
-
}
|
|
470
|
-
if (e = t.match(/^gap-x-(.+)$/)) {
|
|
471
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
472
|
-
if (r) return { "column-gap": r };
|
|
473
|
-
}
|
|
474
|
-
if (e = t.match(/^gap-y-(.+)$/)) {
|
|
475
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
476
|
-
if (r) return { "row-gap": r };
|
|
477
|
-
}
|
|
478
|
-
if (e = t.match(/^w-(.+)$/)) {
|
|
479
|
-
const r = e[1], n = l[r] ?? x[r] ?? i(r);
|
|
480
|
-
if (n) return { width: n };
|
|
481
|
-
}
|
|
482
|
-
if (e = t.match(/^min-w-(.+)$/)) {
|
|
483
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
484
|
-
if (r) return { "min-width": r };
|
|
485
|
-
}
|
|
486
|
-
if (e = t.match(/^max-w-(.+)$/)) {
|
|
487
|
-
const n = {
|
|
488
|
-
none: "none",
|
|
489
|
-
xs: "20rem",
|
|
490
|
-
sm: "24rem",
|
|
491
|
-
md: "28rem",
|
|
492
|
-
lg: "32rem",
|
|
493
|
-
xl: "36rem",
|
|
494
|
-
"2xl": "42rem",
|
|
495
|
-
"3xl": "48rem",
|
|
496
|
-
"4xl": "56rem",
|
|
497
|
-
"5xl": "64rem",
|
|
498
|
-
"6xl": "72rem",
|
|
499
|
-
"7xl": "80rem",
|
|
500
|
-
full: "100%",
|
|
501
|
-
screen: "100vw",
|
|
502
|
-
min: "min-content",
|
|
503
|
-
max: "max-content",
|
|
504
|
-
fit: "fit-content"
|
|
505
|
-
}[e[1]] ?? l[e[1]] ?? i(e[1]);
|
|
506
|
-
if (n) return { "max-width": n };
|
|
507
|
-
}
|
|
508
|
-
if (e = t.match(/^h-(.+)$/)) {
|
|
509
|
-
const r = e[1], n = H[r] ?? x[r] ?? i(r);
|
|
510
|
-
if (n) return { height: n };
|
|
511
|
-
}
|
|
512
|
-
if (e = t.match(/^min-h-(.+)$/)) {
|
|
513
|
-
const n = { 0: "0", full: "100%", screen: "100vh", svh: "100svh", dvh: "100dvh" }[e[1]] ?? l[e[1]] ?? i(e[1]);
|
|
514
|
-
if (n) return { "min-height": n };
|
|
515
|
-
}
|
|
516
|
-
if (e = t.match(/^max-h-(.+)$/)) {
|
|
517
|
-
const r = H[e[1]] ?? i(e[1]);
|
|
518
|
-
if (r) return { "max-height": r };
|
|
519
|
-
}
|
|
520
|
-
if (e = t.match(/^size-(.+)$/)) {
|
|
521
|
-
const r = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
522
|
-
if (r) return { width: r, height: r };
|
|
523
|
-
}
|
|
524
|
-
if (e = t.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)) {
|
|
525
|
-
const [r, n] = J[e[1]] ?? ["1rem", "1.5rem"];
|
|
526
|
-
return { "font-size": r, "line-height": n };
|
|
527
|
-
}
|
|
528
|
-
if (e = t.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/))
|
|
529
|
-
return { "font-weight": Q[e[1]] ?? e[1] };
|
|
530
|
-
if (e = t.match(/^leading-(.+)$/)) {
|
|
531
|
-
const r = tt[e[1]] ?? i(e[1]);
|
|
532
|
-
if (r) return { "line-height": r };
|
|
533
|
-
}
|
|
534
|
-
if (e = t.match(/^tracking-(.+)$/)) {
|
|
535
|
-
const r = et[e[1]] ?? i(e[1]);
|
|
536
|
-
if (r) return { "letter-spacing": r };
|
|
537
|
-
}
|
|
538
|
-
const u = {
|
|
539
|
-
"text-left": "left",
|
|
540
|
-
"text-center": "center",
|
|
541
|
-
"text-right": "right",
|
|
542
|
-
"text-justify": "justify",
|
|
543
|
-
"text-start": "start",
|
|
544
|
-
"text-end": "end"
|
|
545
|
-
};
|
|
546
|
-
if (u[t]) return { "text-align": u[t] };
|
|
547
|
-
if (t === "italic") return { "font-style": "italic" };
|
|
548
|
-
if (t === "not-italic") return { "font-style": "normal" };
|
|
549
|
-
if (t === "uppercase") return { "text-transform": "uppercase" };
|
|
550
|
-
if (t === "lowercase") return { "text-transform": "lowercase" };
|
|
551
|
-
if (t === "capitalize") return { "text-transform": "capitalize" };
|
|
552
|
-
if (t === "normal-case") return { "text-transform": "none" };
|
|
553
|
-
if (t === "underline") return { "text-decoration-line": "underline" };
|
|
554
|
-
if (t === "overline") return { "text-decoration-line": "overline" };
|
|
555
|
-
if (t === "line-through") return { "text-decoration-line": "line-through" };
|
|
556
|
-
if (t === "no-underline") return { "text-decoration-line": "none" };
|
|
557
|
-
if (t === "truncate") return { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" };
|
|
558
|
-
if (t === "text-ellipsis") return { "text-overflow": "ellipsis" };
|
|
559
|
-
if (t === "text-clip") return { "text-overflow": "clip" };
|
|
560
|
-
if (t === "whitespace-normal") return { "white-space": "normal" };
|
|
561
|
-
if (t === "whitespace-nowrap") return { "white-space": "nowrap" };
|
|
562
|
-
if (t === "whitespace-pre") return { "white-space": "pre" };
|
|
563
|
-
if (t === "whitespace-pre-wrap") return { "white-space": "pre-wrap" };
|
|
564
|
-
if (t === "whitespace-pre-line") return { "white-space": "pre-line" };
|
|
565
|
-
if (t === "break-words") return { "overflow-wrap": "break-word" };
|
|
566
|
-
if (t === "break-all") return { "word-break": "break-all" };
|
|
567
|
-
if (t === "break-keep") return { "word-break": "keep-all" };
|
|
568
|
-
if (t === "font-mono") return { "font-family": "var(--tkx-font-mono,monospace)" };
|
|
569
|
-
if (t === "font-sans") return { "font-family": "var(--tkx-font-family,system-ui,sans-serif)" };
|
|
570
|
-
if (t === "font-serif") return { "font-family": "ui-serif,Georgia,serif" };
|
|
571
|
-
if (t === "antialiased") return { "-webkit-font-smoothing": "antialiased", "-moz-osx-font-smoothing": "grayscale" };
|
|
572
|
-
if (e = t.match(/^indent-(.+)$/)) {
|
|
573
|
-
const r = l[e[1]] ?? i(e[1]);
|
|
574
|
-
if (r) return { "text-indent": r };
|
|
575
|
-
}
|
|
576
|
-
if (e = t.match(/^line-clamp-(\d+)$/))
|
|
577
|
-
return { overflow: "hidden", display: "-webkit-box", "-webkit-line-clamp": e[1], "-webkit-box-orient": "vertical" };
|
|
578
|
-
if (e = t.match(/^text-(.+)$/)) {
|
|
579
|
-
const [r, n] = e[1].split("/"), p = h(r);
|
|
580
|
-
if (![
|
|
581
|
-
"left",
|
|
582
|
-
"center",
|
|
583
|
-
"right",
|
|
584
|
-
"justify",
|
|
585
|
-
"start",
|
|
586
|
-
"end",
|
|
587
|
-
"xs",
|
|
588
|
-
"sm",
|
|
589
|
-
"base",
|
|
590
|
-
"lg",
|
|
591
|
-
"xl",
|
|
592
|
-
"2xl",
|
|
593
|
-
"3xl",
|
|
594
|
-
"4xl",
|
|
595
|
-
"5xl",
|
|
596
|
-
"6xl",
|
|
597
|
-
"7xl",
|
|
598
|
-
"8xl",
|
|
599
|
-
"9xl"
|
|
600
|
-
].includes(r)) {
|
|
601
|
-
if (n) {
|
|
602
|
-
const K = parseInt(n) / 100;
|
|
603
|
-
return { color: p, opacity: String(K) };
|
|
604
|
-
}
|
|
605
|
-
return { color: p };
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
if (e = t.match(/^bg-(.+)$/)) {
|
|
609
|
-
const [r, n] = e[1].split("/"), p = h(r);
|
|
610
|
-
return n ? { "background-color": p, opacity: String(parseInt(n) / 100) } : r === "none" ? { background: "none" } : { "background-color": p };
|
|
611
|
-
}
|
|
612
|
-
if (e = t.match(/^border-color-(.+)$/))
|
|
613
|
-
return { "border-color": h(e[1]) };
|
|
614
|
-
if (e = t.match(/^fill-(.+)$/))
|
|
615
|
-
return { fill: h(e[1]) };
|
|
616
|
-
if (e = t.match(/^stroke-(.+)$/))
|
|
617
|
-
return { stroke: h(e[1]) };
|
|
618
|
-
if (e = t.match(/^shadow-color-(.+)$/))
|
|
619
|
-
return { "--tkx-shadow-color": h(e[1]) };
|
|
620
|
-
if (e = t.match(/^ring-color-(.+)$/))
|
|
621
|
-
return { "--tkx-ring-color": h(e[1]) };
|
|
622
|
-
if (e = t.match(/^accent-(.+)$/))
|
|
623
|
-
return { "accent-color": h(e[1]) };
|
|
624
|
-
if (e = t.match(/^caret-(.+)$/))
|
|
625
|
-
return { "caret-color": h(e[1]) };
|
|
626
|
-
if (e = t.match(/^outline-color-(.+)$/))
|
|
627
|
-
return { "outline-color": h(e[1]) };
|
|
628
|
-
if (t === "border") return { "border-width": "1px" };
|
|
629
|
-
if (e = t.match(/^border-(\d+)$/)) return { "border-width": `${e[1]}px` };
|
|
630
|
-
if (t === "border-t") return { "border-top-width": "1px" };
|
|
631
|
-
if (e = t.match(/^border-t-(\d+)$/)) return { "border-top-width": `${e[1]}px` };
|
|
632
|
-
if (t === "border-r") return { "border-right-width": "1px" };
|
|
633
|
-
if (e = t.match(/^border-r-(\d+)$/)) return { "border-right-width": `${e[1]}px` };
|
|
634
|
-
if (t === "border-b") return { "border-bottom-width": "1px" };
|
|
635
|
-
if (e = t.match(/^border-b-(\d+)$/)) return { "border-bottom-width": `${e[1]}px` };
|
|
636
|
-
if (t === "border-l") return { "border-left-width": "1px" };
|
|
637
|
-
if (e = t.match(/^border-l-(\d+)$/)) return { "border-left-width": `${e[1]}px` };
|
|
638
|
-
if (t === "border-x") return { "border-left-width": "1px", "border-right-width": "1px" };
|
|
639
|
-
if (t === "border-y") return { "border-top-width": "1px", "border-bottom-width": "1px" };
|
|
640
|
-
if (t === "border-none") return { "border-style": "none" };
|
|
641
|
-
if (t === "border-solid") return { "border-style": "solid" };
|
|
642
|
-
if (t === "border-dashed") return { "border-style": "dashed" };
|
|
643
|
-
if (t === "border-dotted") return { "border-style": "dotted" };
|
|
644
|
-
if (t === "border-double") return { "border-style": "double" };
|
|
645
|
-
if ((e = t.match(/^border-([a-zA-Z].*)$/)) && Y.has(e[1]))
|
|
646
|
-
return { "border-color": `var(--tkx-${e[1]})` };
|
|
647
|
-
if (e = t.match(/^border-\[(.+)]$/))
|
|
648
|
-
return { "border-color": e[1] };
|
|
649
|
-
if (t === "border-0") return { "border-width": "0" };
|
|
650
|
-
if (t === "rounded") return { "border-radius": y[""] };
|
|
651
|
-
if (e = t.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/))
|
|
652
|
-
return { "border-radius": y[e[1]] ?? i(e[1]) ?? e[1] };
|
|
653
|
-
if (e = t.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)) {
|
|
654
|
-
const r = e[1], n = y[e[2] ?? ""] ?? y[""];
|
|
655
|
-
return {
|
|
656
|
-
t: { "border-top-left-radius": n, "border-top-right-radius": n },
|
|
657
|
-
r: { "border-top-right-radius": n, "border-bottom-right-radius": n },
|
|
658
|
-
b: { "border-bottom-left-radius": n, "border-bottom-right-radius": n },
|
|
659
|
-
l: { "border-top-left-radius": n, "border-bottom-left-radius": n },
|
|
660
|
-
tl: { "border-top-left-radius": n },
|
|
661
|
-
tr: { "border-top-right-radius": n },
|
|
662
|
-
br: { "border-bottom-right-radius": n },
|
|
663
|
-
bl: { "border-bottom-left-radius": n }
|
|
664
|
-
}[r] ?? {};
|
|
665
|
-
}
|
|
666
|
-
const w = { 0: "0", 1: "1px", 2: "2px", ring: "3px", 4: "4px", 8: "8px" };
|
|
667
|
-
if (t === "ring") return { "box-shadow": "0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))" };
|
|
668
|
-
if ((e = t.match(/^ring-(\d+)$/)) && w[e[1]])
|
|
669
|
-
return { "box-shadow": `0 0 0 ${w[e[1]]} var(--tkx-ring-color,var(--tkx-primary))` };
|
|
670
|
-
if (t === "ring-inset") return { "--tkx-ring-offset": "inset" };
|
|
671
|
-
if (e = t.match(/^ring-offset-(\d+)$/))
|
|
672
|
-
return { "--tkx-ring-offset-width": `${e[1]}px`, "box-shadow": `0 0 0 ${e[1]}px var(--tkx-bg)` };
|
|
673
|
-
if (t === "shadow") return { "box-shadow": U[""] };
|
|
674
|
-
if (e = t.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/)) return { "box-shadow": U[e[1]] };
|
|
675
|
-
if (e = t.match(/^opacity-(\d+)$/)) {
|
|
676
|
-
const r = rt[e[1]];
|
|
677
|
-
if (r !== void 0) return { opacity: r };
|
|
678
|
-
}
|
|
679
|
-
if (t === "bg-none") return { background: "none" };
|
|
680
|
-
const A = { "bg-auto": "auto", "bg-cover": "cover", "bg-contain": "contain" };
|
|
681
|
-
if (A[t]) return { "background-size": A[t] };
|
|
682
|
-
const C = {
|
|
683
|
-
"bg-center": "center",
|
|
684
|
-
"bg-top": "top",
|
|
685
|
-
"bg-bottom": "bottom",
|
|
686
|
-
"bg-left": "left",
|
|
687
|
-
"bg-right": "right"
|
|
688
|
-
};
|
|
689
|
-
if (C[t]) return { "background-position": C[t] };
|
|
690
|
-
const W = {
|
|
691
|
-
"bg-repeat": "repeat",
|
|
692
|
-
"bg-no-repeat": "no-repeat",
|
|
693
|
-
"bg-repeat-x": "repeat-x",
|
|
694
|
-
"bg-repeat-y": "repeat-y"
|
|
695
|
-
};
|
|
696
|
-
if (W[t]) return { "background-repeat": W[t] };
|
|
697
|
-
if (t === "backdrop-blur") return { "backdrop-filter": `blur(${k[""]})` };
|
|
698
|
-
if (e = t.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/))
|
|
699
|
-
return { "backdrop-filter": `blur(${k[e[1]]})` };
|
|
700
|
-
if (t === "blur") return { filter: `blur(${k[""]})` };
|
|
701
|
-
if (e = t.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/))
|
|
702
|
-
return { filter: `blur(${k[e[1]]})` };
|
|
703
|
-
if (t === "grayscale") return { filter: "grayscale(100%)" };
|
|
704
|
-
if (t === "grayscale-0") return { filter: "grayscale(0)" };
|
|
705
|
-
if (t === "invert") return { filter: "invert(100%)" };
|
|
706
|
-
if (t === "invert-0") return { filter: "invert(0)" };
|
|
707
|
-
const E = {
|
|
708
|
-
static: "static",
|
|
709
|
-
relative: "relative",
|
|
710
|
-
absolute: "absolute",
|
|
711
|
-
fixed: "fixed",
|
|
712
|
-
sticky: "sticky"
|
|
713
|
-
};
|
|
714
|
-
if (E[t]) return { position: E[t] };
|
|
715
|
-
if (t === "inset-0") return { top: "0", right: "0", bottom: "0", left: "0" };
|
|
716
|
-
if (t === "inset-auto") return { top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
717
|
-
if (t === "inset-full") return { top: "100%", right: "100%", bottom: "100%", left: "100%" };
|
|
718
|
-
if (t === "inset-x-0") return { left: "0", right: "0" };
|
|
719
|
-
if (t === "inset-y-0") return { top: "0", bottom: "0" };
|
|
720
|
-
if (e = t.match(/^-?top-(.+)$/)) {
|
|
721
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
722
|
-
if (n) return { top: r && n !== "0" ? `-${n}` : n };
|
|
723
|
-
}
|
|
724
|
-
if (e = t.match(/^-?right-(.+)$/)) {
|
|
725
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
726
|
-
if (n) return { right: r && n !== "0" ? `-${n}` : n };
|
|
727
|
-
}
|
|
728
|
-
if (e = t.match(/^-?bottom-(.+)$/)) {
|
|
729
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
730
|
-
if (n) return { bottom: r && n !== "0" ? `-${n}` : n };
|
|
731
|
-
}
|
|
732
|
-
if (e = t.match(/^-?left-(.+)$/)) {
|
|
733
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
734
|
-
if (n) return { left: r && n !== "0" ? `-${n}` : n };
|
|
735
|
-
}
|
|
736
|
-
const Z = { 0: "0", 10: "10", 20: "20", 30: "30", 40: "40", 50: "50", 100: "100", 1e3: "1000", 9e3: "9000", auto: "auto" };
|
|
737
|
-
if (e = t.match(/^z-(.+)$/)) {
|
|
738
|
-
const r = Z[e[1]] ?? i(e[1]);
|
|
739
|
-
if (r) return { "z-index": r };
|
|
740
|
-
}
|
|
741
|
-
const O = {
|
|
742
|
-
"overflow-auto": "auto",
|
|
743
|
-
"overflow-hidden": "hidden",
|
|
744
|
-
"overflow-visible": "visible",
|
|
745
|
-
"overflow-scroll": "scroll",
|
|
746
|
-
"overflow-clip": "clip"
|
|
747
|
-
};
|
|
748
|
-
if (O[t]) return { overflow: O[t] };
|
|
749
|
-
if (e = t.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/))
|
|
750
|
-
return { [`overflow-${e[1]}`]: e[2] };
|
|
751
|
-
if (t === "scrollbar-hide") return { "-ms-overflow-style": "none", "scrollbar-width": "none" };
|
|
752
|
-
if (t === "visible") return { visibility: "visible" };
|
|
753
|
-
if (t === "invisible") return { visibility: "hidden" };
|
|
754
|
-
if (t === "collapse") return { visibility: "collapse" };
|
|
755
|
-
const R = {
|
|
756
|
-
"cursor-auto": "auto",
|
|
757
|
-
"cursor-default": "default",
|
|
758
|
-
"cursor-pointer": "pointer",
|
|
759
|
-
"cursor-wait": "wait",
|
|
760
|
-
"cursor-text": "text",
|
|
761
|
-
"cursor-move": "move",
|
|
762
|
-
"cursor-help": "help",
|
|
763
|
-
"cursor-not-allowed": "not-allowed",
|
|
764
|
-
"cursor-none": "none",
|
|
765
|
-
"cursor-grab": "grab",
|
|
766
|
-
"cursor-grabbing": "grabbing",
|
|
767
|
-
"cursor-zoom-in": "zoom-in",
|
|
768
|
-
"cursor-zoom-out": "zoom-out",
|
|
769
|
-
"cursor-crosshair": "crosshair"
|
|
770
|
-
};
|
|
771
|
-
if (R[t]) return { cursor: R[t] };
|
|
772
|
-
if (t === "select-none") return { "user-select": "none" };
|
|
773
|
-
if (t === "select-text") return { "user-select": "text" };
|
|
774
|
-
if (t === "select-all") return { "user-select": "all" };
|
|
775
|
-
if (t === "select-auto") return { "user-select": "auto" };
|
|
776
|
-
if (t === "pointer-events-none") return { "pointer-events": "none" };
|
|
777
|
-
if (t === "pointer-events-auto") return { "pointer-events": "auto" };
|
|
778
|
-
const j = { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5" };
|
|
779
|
-
if (e = t.match(/^scale-(.+)$/)) {
|
|
780
|
-
const r = j[e[1]] ?? i(e[1]);
|
|
781
|
-
if (r) return { transform: `scale(${r})` };
|
|
782
|
-
}
|
|
783
|
-
if (e = t.match(/^scale-x-(.+)$/)) {
|
|
784
|
-
const r = j[e[1]] ?? i(e[1]);
|
|
785
|
-
if (r) return { transform: `scaleX(${r})` };
|
|
786
|
-
}
|
|
787
|
-
if (e = t.match(/^scale-y-(.+)$/)) {
|
|
788
|
-
const r = j[e[1]] ?? i(e[1]);
|
|
789
|
-
if (r) return { transform: `scaleY(${r})` };
|
|
790
|
-
}
|
|
791
|
-
const q = { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg", 45: "45deg", 90: "90deg", 180: "180deg" };
|
|
792
|
-
if (e = t.match(/^-?rotate-(.+)$/)) {
|
|
793
|
-
const r = t.startsWith("-"), n = q[e[1]] ?? i(e[1]);
|
|
794
|
-
if (n) return { transform: r ? `rotate(-${n})` : `rotate(${n})` };
|
|
795
|
-
}
|
|
796
|
-
if (e = t.match(/^-?translate-x-(.+)$/)) {
|
|
797
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
798
|
-
if (n) return { transform: `translateX(${r && n !== "0" ? `-${n}` : n})` };
|
|
799
|
-
}
|
|
800
|
-
if (e = t.match(/^-?translate-y-(.+)$/)) {
|
|
801
|
-
const r = t.startsWith("-"), n = l[e[1]] ?? x[e[1]] ?? i(e[1]);
|
|
802
|
-
if (n) return { transform: `translateY(${r && n !== "0" ? `-${n}` : n})` };
|
|
803
|
-
}
|
|
804
|
-
if (e = t.match(/^-?skew-x-(.+)$/)) {
|
|
805
|
-
const r = t.startsWith("-"), n = i(e[1]) ?? `${e[1]}deg`;
|
|
806
|
-
return { transform: r ? `skewX(-${n})` : `skewX(${n})` };
|
|
807
|
-
}
|
|
808
|
-
if (e = t.match(/^-?skew-y-(.+)$/)) {
|
|
809
|
-
const r = t.startsWith("-"), n = i(e[1]) ?? `${e[1]}deg`;
|
|
810
|
-
return { transform: r ? `skewY(-${n})` : `skewY(${n})` };
|
|
811
|
-
}
|
|
812
|
-
const P = {
|
|
813
|
-
"origin-center": "center",
|
|
814
|
-
"origin-top": "top",
|
|
815
|
-
"origin-top-right": "top right",
|
|
816
|
-
"origin-right": "right",
|
|
817
|
-
"origin-bottom-right": "bottom right",
|
|
818
|
-
"origin-bottom": "bottom",
|
|
819
|
-
"origin-bottom-left": "bottom left",
|
|
820
|
-
"origin-left": "left",
|
|
821
|
-
"origin-top-left": "top left"
|
|
822
|
-
};
|
|
823
|
-
if (P[t]) return { "transform-origin": P[t] };
|
|
824
|
-
const I = {
|
|
825
|
-
transition: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
826
|
-
"transition-all": "all",
|
|
827
|
-
"transition-colors": "color,background-color,border-color,text-decoration-color,fill,stroke",
|
|
828
|
-
"transition-opacity": "opacity",
|
|
829
|
-
"transition-shadow": "box-shadow",
|
|
830
|
-
"transition-transform": "transform",
|
|
831
|
-
"transition-none": "none"
|
|
832
|
-
};
|
|
833
|
-
if (I[t]) return { "transition-property": I[t], "transition-timing-function": "cubic-bezier(0.4,0,0.2,1)", "transition-duration": "150ms" };
|
|
834
|
-
const T = { 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" };
|
|
835
|
-
if (e = t.match(/^duration-(.+)$/)) {
|
|
836
|
-
const r = T[e[1]] ?? i(e[1]);
|
|
837
|
-
if (r) return { "transition-duration": r };
|
|
838
|
-
}
|
|
839
|
-
if (e = t.match(/^delay-(.+)$/)) {
|
|
840
|
-
const r = T[e[1]] ?? i(e[1]);
|
|
841
|
-
if (r) return { "transition-delay": r };
|
|
842
|
-
}
|
|
843
|
-
const N = {
|
|
844
|
-
"ease-linear": "linear",
|
|
845
|
-
"ease-in": "cubic-bezier(0.4,0,1,1)",
|
|
846
|
-
"ease-out": "cubic-bezier(0,0,0.2,1)",
|
|
847
|
-
"ease-in-out": "cubic-bezier(0.4,0,0.2,1)"
|
|
848
|
-
};
|
|
849
|
-
if (N[t]) return { "transition-timing-function": N[t] };
|
|
850
|
-
const _ = {
|
|
851
|
-
"animate-none": "none",
|
|
852
|
-
"animate-spin": "tkx-spin 1s linear infinite",
|
|
853
|
-
"animate-ping": "tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite",
|
|
854
|
-
"animate-pulse": "tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",
|
|
855
|
-
"animate-bounce": "tkx-bounce 1s infinite",
|
|
856
|
-
"animate-fade-in": "tkx-fade-in 200ms ease both",
|
|
857
|
-
"animate-slide-up": "tkx-slide-up 200ms ease both",
|
|
858
|
-
"animate-shimmer": "tkx-shimmer 1.5s infinite"
|
|
859
|
-
};
|
|
860
|
-
if (_[t]) return { animation: _[t] };
|
|
861
|
-
const F = {
|
|
862
|
-
"object-contain": "contain",
|
|
863
|
-
"object-cover": "cover",
|
|
864
|
-
"object-fill": "fill",
|
|
865
|
-
"object-none": "none",
|
|
866
|
-
"object-scale-down": "scale-down"
|
|
867
|
-
};
|
|
868
|
-
if (F[t]) return { "object-fit": F[t] };
|
|
869
|
-
if (t === "aspect-square") return { "aspect-ratio": "1 / 1" };
|
|
870
|
-
if (t === "aspect-video") return { "aspect-ratio": "16 / 9" };
|
|
871
|
-
if (t === "aspect-auto") return { "aspect-ratio": "auto" };
|
|
872
|
-
if (e = t.match(/^aspect-\[(.+)]$/))
|
|
873
|
-
return { "aspect-ratio": e[1] };
|
|
874
|
-
if (t === "list-none") return { "list-style-type": "none" };
|
|
875
|
-
if (t === "list-disc") return { "list-style-type": "disc" };
|
|
876
|
-
if (t === "list-decimal") return { "list-style-type": "decimal" };
|
|
877
|
-
if (t === "list-inside") return { "list-style-position": "inside" };
|
|
878
|
-
if (t === "list-outside") return { "list-style-position": "outside" };
|
|
879
|
-
if (e = t.match(/^columns-(\d+)$/)) return { columns: e[1] };
|
|
880
|
-
if (t === "resize") return { resize: "both" };
|
|
881
|
-
if (t === "resize-none") return { resize: "none" };
|
|
882
|
-
if (t === "resize-x") return { resize: "horizontal" };
|
|
883
|
-
if (t === "resize-y") return { resize: "vertical" };
|
|
884
|
-
if (t === "sr-only") return {
|
|
885
|
-
position: "absolute",
|
|
886
|
-
width: "1px",
|
|
887
|
-
height: "1px",
|
|
888
|
-
padding: "0",
|
|
889
|
-
margin: "-1px",
|
|
890
|
-
overflow: "hidden",
|
|
891
|
-
clip: "rect(0,0,0,0)",
|
|
892
|
-
"white-space": "nowrap",
|
|
893
|
-
border: "0"
|
|
894
|
-
};
|
|
895
|
-
if (t === "not-sr-only") return {
|
|
896
|
-
position: "static",
|
|
897
|
-
width: "auto",
|
|
898
|
-
height: "auto",
|
|
899
|
-
padding: "0",
|
|
900
|
-
margin: "0",
|
|
901
|
-
overflow: "visible",
|
|
902
|
-
clip: "auto",
|
|
903
|
-
"white-space": "normal"
|
|
904
|
-
};
|
|
905
|
-
if (t === "focus-ring") return {
|
|
906
|
-
outline: "2px solid var(--tkx-primary)",
|
|
907
|
-
"outline-offset": "2px",
|
|
908
|
-
"border-radius": "2px"
|
|
909
|
-
};
|
|
910
|
-
if (t === "appearance-none") return { appearance: "none" };
|
|
911
|
-
if (t === "outline-none") return { outline: "none" };
|
|
912
|
-
if (t === "outline") return { outline: "2px solid currentColor", "outline-offset": "2px" };
|
|
913
|
-
if (t === "float-left") return { float: "left" };
|
|
914
|
-
if (t === "float-right") return { float: "right" };
|
|
915
|
-
if (t === "float-none") return { float: "none" };
|
|
916
|
-
if (t === "clear-both") return { clear: "both" };
|
|
917
|
-
if (t === "isolate") return { isolation: "isolate" };
|
|
918
|
-
if (t === "isolation-auto") return { isolation: "auto" };
|
|
919
|
-
if (e = t.match(/^will-change-(.+)$/))
|
|
920
|
-
return { "will-change": e[1] };
|
|
921
|
-
if (t === "touch-manipulation") return { "touch-action": "manipulation" };
|
|
922
|
-
if (t === "touch-none") return { "touch-action": "none" };
|
|
923
|
-
if (t === "touch-pan-x") return { "touch-action": "pan-x" };
|
|
924
|
-
if (t === "touch-pan-y") return { "touch-action": "pan-y" };
|
|
925
|
-
if (t === "scroll-smooth") return { "scroll-behavior": "smooth" };
|
|
926
|
-
if (t === "scroll-auto") return { "scroll-behavior": "auto" };
|
|
927
|
-
if (e = t.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/))
|
|
928
|
-
return { [e[1]]: e[2] };
|
|
929
|
-
const D = ht(t);
|
|
930
|
-
return D || null;
|
|
931
|
-
}
|
|
932
|
-
function ct(t) {
|
|
933
|
-
let o = 0, s = -1;
|
|
934
|
-
for (let a = 0; a < t.length; a++)
|
|
935
|
-
if (t[a] === "[") o++;
|
|
936
|
-
else if (t[a] === "]") o--;
|
|
937
|
-
else if (t[a] === ":" && o === 0) {
|
|
938
|
-
s = a;
|
|
939
|
-
break;
|
|
940
|
-
}
|
|
941
|
-
return s === -1 ? { variant: null, utility: t } : { variant: t.slice(0, s), utility: t.slice(s + 1) };
|
|
942
|
-
}
|
|
943
|
-
function G(t, o) {
|
|
944
|
-
for (const [s, a] of Object.entries(o))
|
|
945
|
-
t[s] = a;
|
|
946
|
-
}
|
|
947
|
-
function M(t) {
|
|
948
|
-
return Object.entries(t).map(([o, s]) => `${o}:${s}`).join(";");
|
|
949
|
-
}
|
|
950
|
-
const S = /* @__PURE__ */ new Map();
|
|
951
|
-
let g = null, v = null;
|
|
952
|
-
function L() {
|
|
953
|
-
return (!g || !g.isConnected) && (g = document.getElementById("tkx-atomic"), g || (g = document.createElement("style"), g.id = "tkx-atomic", document.head.appendChild(g))), g;
|
|
954
|
-
}
|
|
955
|
-
function ft() {
|
|
956
|
-
if (v) return v;
|
|
957
|
-
try {
|
|
958
|
-
const t = new CSSStyleSheet();
|
|
959
|
-
return document.adoptedStyleSheets = [...document.adoptedStyleSheets, t], v = t, t;
|
|
960
|
-
} catch {
|
|
961
|
-
return null;
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
function dt(t, o) {
|
|
965
|
-
if (S.has(t) || (S.set(t, o), typeof document > "u")) return;
|
|
966
|
-
const s = ft();
|
|
967
|
-
if (s) {
|
|
968
|
-
const a = pt(o);
|
|
969
|
-
for (const f of a)
|
|
970
|
-
try {
|
|
971
|
-
s.insertRule(f, s.cssRules.length);
|
|
972
|
-
} catch {
|
|
973
|
-
L().textContent += f + `
|
|
974
|
-
`;
|
|
975
|
-
}
|
|
976
|
-
} else
|
|
977
|
-
L().textContent += o + `
|
|
978
|
-
`;
|
|
979
|
-
}
|
|
980
|
-
function pt(t) {
|
|
981
|
-
const o = [];
|
|
982
|
-
let s = 0, a = 0;
|
|
983
|
-
for (let f = 0; f < t.length; f++)
|
|
984
|
-
if (t[f] === "{") s++;
|
|
985
|
-
else if (t[f] === "}" && (s--, s === 0)) {
|
|
986
|
-
const b = t.slice(a, f + 1).trim();
|
|
987
|
-
b && o.push(b), a = f + 1;
|
|
988
|
-
}
|
|
989
|
-
return o;
|
|
990
|
-
}
|
|
991
|
-
function X(t) {
|
|
992
|
-
const o = [];
|
|
993
|
-
for (const s of t)
|
|
994
|
-
if (s) {
|
|
995
|
-
if (typeof s == "string")
|
|
996
|
-
o.push(...s.split(/\s+/).filter(Boolean));
|
|
997
|
-
else if (Array.isArray(s))
|
|
998
|
-
o.push(...X(s));
|
|
999
|
-
else if (typeof s == "object")
|
|
1000
|
-
for (const [a, f] of Object.entries(s))
|
|
1001
|
-
f && o.push(a);
|
|
1002
|
-
}
|
|
1003
|
-
return o;
|
|
1004
|
-
}
|
|
1005
|
-
function mt(...t) {
|
|
1006
|
-
const o = X(t);
|
|
1007
|
-
if (o.length === 0) return "";
|
|
1008
|
-
const s = { base: {}, variants: {} };
|
|
1009
|
-
for (const c of o) {
|
|
1010
|
-
const { variant: m, utility: e } = ct(c), u = lt(e);
|
|
1011
|
-
u && (m ? (s.variants[m] || (s.variants[m] = {}), G(s.variants[m], u)) : G(s.base, u));
|
|
1012
|
-
}
|
|
1013
|
-
const a = [], f = M(s.base), b = [f, ...Object.entries(s.variants).map(([c, m]) => `${c}{${M(m)}}`)].join("|"), $ = V(b), d = `tkx-${$}`;
|
|
1014
|
-
f && a.push(`.${d}{${f}}`);
|
|
1015
|
-
for (const [c, m] of Object.entries(s.variants)) {
|
|
1016
|
-
const e = M(m);
|
|
1017
|
-
if (e)
|
|
1018
|
-
if (c.startsWith("@")) {
|
|
1019
|
-
const u = c.slice(1), w = nt[u];
|
|
1020
|
-
w && a.push(`@media(min-width:${w}){.${d}{${e}}}`);
|
|
1021
|
-
} else if (c === "motion-safe")
|
|
1022
|
-
a.push(`@media(prefers-reduced-motion:no-preference){.${d}{${e}}}`);
|
|
1023
|
-
else if (c === "motion-reduce")
|
|
1024
|
-
a.push(`@media(prefers-reduced-motion:reduce){.${d}{${e}}}`);
|
|
1025
|
-
else if (c === "contrast-more")
|
|
1026
|
-
a.push(`@media(prefers-contrast:more){.${d}{${e}}}`);
|
|
1027
|
-
else if (c === "forced-colors")
|
|
1028
|
-
a.push(`@media(forced-colors:active){.${d}{${e}}}`);
|
|
1029
|
-
else if (c === "dark")
|
|
1030
|
-
a.push(`@media(prefers-color-scheme:dark){.${d}{${e}}}`);
|
|
1031
|
-
else if (c === "print")
|
|
1032
|
-
a.push(`@media print{.${d}{${e}}}`);
|
|
1033
|
-
else if (c === "group-hover")
|
|
1034
|
-
a.push(`.group:hover .${d}{${e}}`);
|
|
1035
|
-
else if (c === "group-focus")
|
|
1036
|
-
a.push(`.group:focus-within .${d}{${e}}`);
|
|
1037
|
-
else if (c === "peer-hover")
|
|
1038
|
-
a.push(`.peer:hover~.${d}{${e}}`);
|
|
1039
|
-
else {
|
|
1040
|
-
const w = {
|
|
1041
|
-
hover: ":hover",
|
|
1042
|
-
focus: ":focus",
|
|
1043
|
-
"focus-visible": ":focus-visible",
|
|
1044
|
-
"focus-within": ":focus-within",
|
|
1045
|
-
active: ":active",
|
|
1046
|
-
disabled: ":disabled",
|
|
1047
|
-
checked: ":checked",
|
|
1048
|
-
required: ":required",
|
|
1049
|
-
valid: ":valid",
|
|
1050
|
-
invalid: ":invalid",
|
|
1051
|
-
first: ":first-child",
|
|
1052
|
-
last: ":last-child",
|
|
1053
|
-
odd: ":nth-child(odd)",
|
|
1054
|
-
even: ":nth-child(even)",
|
|
1055
|
-
"first-of-type": ":first-of-type",
|
|
1056
|
-
"last-of-type": ":last-of-type",
|
|
1057
|
-
"only-child": ":only-child",
|
|
1058
|
-
"only-of-type": ":only-of-type",
|
|
1059
|
-
empty: ":empty",
|
|
1060
|
-
visited: ":visited",
|
|
1061
|
-
target: ":target",
|
|
1062
|
-
"placeholder-shown": ":placeholder-shown",
|
|
1063
|
-
"read-only": ":read-only",
|
|
1064
|
-
before: "::before",
|
|
1065
|
-
after: "::after",
|
|
1066
|
-
placeholder: "::placeholder",
|
|
1067
|
-
selection: "::selection",
|
|
1068
|
-
"file-selector": "::file-selector-button",
|
|
1069
|
-
marker: "::marker"
|
|
1070
|
-
}[c] ?? `:${c}`;
|
|
1071
|
-
a.push(`.${d}${w}{${e}}`);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return a.length > 0 && dt($, a.join("")), d;
|
|
1075
|
-
}
|
|
1076
|
-
const xt = mt;
|
|
1077
|
-
function gt() {
|
|
1078
|
-
return Array.from(S.values()).join(`
|
|
1079
|
-
`);
|
|
1080
|
-
}
|
|
1081
|
-
function bt() {
|
|
1082
|
-
S.clear(), g = null, v && typeof document < "u" && (document.adoptedStyleSheets = document.adoptedStyleSheets.filter((t) => t !== v), v = null);
|
|
1083
|
-
}
|
|
1084
|
-
function wt(...t) {
|
|
1085
|
-
return t.filter(Boolean).join(" ");
|
|
1086
|
-
}
|
|
1087
|
-
const z = /* @__PURE__ */ new Map();
|
|
1088
|
-
function vt(t) {
|
|
1089
|
-
z.set(t.name, t.utilities);
|
|
1090
|
-
}
|
|
1091
|
-
function $t(t) {
|
|
1092
|
-
z.delete(t);
|
|
1093
|
-
}
|
|
1094
|
-
function yt() {
|
|
1095
|
-
return Array.from(z.keys());
|
|
1096
|
-
}
|
|
1097
|
-
function ht(t) {
|
|
1098
|
-
for (const o of z.values())
|
|
1099
|
-
if (o[t]) return o[t];
|
|
1100
|
-
return null;
|
|
1101
|
-
}
|
|
1102
|
-
export {
|
|
1103
|
-
ht as a,
|
|
1104
|
-
yt as b,
|
|
1105
|
-
wt as c,
|
|
1106
|
-
vt as d,
|
|
1107
|
-
gt as e,
|
|
1108
|
-
$t as f,
|
|
1109
|
-
xt as g,
|
|
1110
|
-
bt as r,
|
|
1111
|
-
mt as t
|
|
1112
|
-
};
|