@gravitee/graphene-core 2.56.0 → 2.57.0

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.
@@ -1,2010 +0,0 @@
1
- import * as e from "react";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Editor as n, loader as r } from "@monaco-editor/react";
4
- //#region ../../node_modules/clsx/dist/clsx.mjs
5
- function i(e) {
6
- var t, n, r = "";
7
- if (typeof e == "string" || typeof e == "number") r += e;
8
- else if (typeof e == "object") if (Array.isArray(e)) {
9
- var a = e.length;
10
- for (t = 0; t < a; t++) e[t] && (n = i(e[t])) && (r && (r += " "), r += n);
11
- } else for (n in e) e[n] && (r && (r += " "), r += n);
12
- return r;
13
- }
14
- function a() {
15
- for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = i(e)) && (r && (r += " "), r += t);
16
- return r;
17
- }
18
- //#endregion
19
- //#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
20
- var o = (e, t) => {
21
- let n = Array(e.length + t.length);
22
- for (let t = 0; t < e.length; t++) n[t] = e[t];
23
- for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
24
- return n;
25
- }, s = (e, t) => ({
26
- classGroupId: e,
27
- validator: t
28
- }), c = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
29
- nextPart: e,
30
- validators: t,
31
- classGroupId: n
32
- }), l = "-", u = [], d = "arbitrary..", f = (e) => {
33
- let t = h(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
34
- return {
35
- getClassGroupId: (e) => {
36
- if (e.startsWith("[") && e.endsWith("]")) return m(e);
37
- let n = e.split(l);
38
- return p(n, +(n[0] === "" && n.length > 1), t);
39
- },
40
- getConflictingClassGroupIds: (e, t) => {
41
- if (t) {
42
- let t = r[e], i = n[e];
43
- return t ? i ? o(i, t) : t : i || u;
44
- }
45
- return n[e] || u;
46
- }
47
- };
48
- }, p = (e, t, n) => {
49
- if (e.length - t === 0) return n.classGroupId;
50
- let r = e[t], i = n.nextPart.get(r);
51
- if (i) {
52
- let n = p(e, t + 1, i);
53
- if (n) return n;
54
- }
55
- let a = n.validators;
56
- if (a === null) return;
57
- let o = t === 0 ? e.join(l) : e.slice(t).join(l), s = a.length;
58
- for (let e = 0; e < s; e++) {
59
- let t = a[e];
60
- if (t.validator(o)) return t.classGroupId;
61
- }
62
- }, m = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
63
- let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
64
- return r ? d + r : void 0;
65
- })(), h = (e) => {
66
- let { theme: t, classGroups: n } = e;
67
- return g(n, t);
68
- }, g = (e, t) => {
69
- let n = c();
70
- for (let r in e) {
71
- let i = e[r];
72
- _(i, n, r, t);
73
- }
74
- return n;
75
- }, _ = (e, t, n, r) => {
76
- let i = e.length;
77
- for (let a = 0; a < i; a++) {
78
- let i = e[a];
79
- v(i, t, n, r);
80
- }
81
- }, v = (e, t, n, r) => {
82
- if (typeof e == "string") {
83
- y(e, t, n);
84
- return;
85
- }
86
- if (typeof e == "function") {
87
- b(e, t, n, r);
88
- return;
89
- }
90
- ee(e, t, n, r);
91
- }, y = (e, t, n) => {
92
- let r = e === "" ? t : x(t, e);
93
- r.classGroupId = n;
94
- }, b = (e, t, n, r) => {
95
- if (te(e)) {
96
- _(e(r), t, n, r);
97
- return;
98
- }
99
- t.validators === null && (t.validators = []), t.validators.push(s(n, e));
100
- }, ee = (e, t, n, r) => {
101
- let i = Object.entries(e), a = i.length;
102
- for (let e = 0; e < a; e++) {
103
- let [a, o] = i[e];
104
- _(o, x(t, a), n, r);
105
- }
106
- }, x = (e, t) => {
107
- let n = e, r = t.split(l), i = r.length;
108
- for (let e = 0; e < i; e++) {
109
- let t = r[e], i = n.nextPart.get(t);
110
- i || (i = c(), n.nextPart.set(t, i)), n = i;
111
- }
112
- return n;
113
- }, te = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, S = (e) => {
114
- if (e < 1) return {
115
- get: () => void 0,
116
- set: () => {}
117
- };
118
- let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
119
- n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
120
- };
121
- return {
122
- get(e) {
123
- let t = n[e];
124
- if (t !== void 0) return t;
125
- if ((t = r[e]) !== void 0) return i(e, t), t;
126
- },
127
- set(e, t) {
128
- e in n ? n[e] = t : i(e, t);
129
- }
130
- };
131
- }, C = "!", ne = ":", re = [], w = (e, t, n, r, i) => ({
132
- modifiers: e,
133
- hasImportantModifier: t,
134
- baseClassName: n,
135
- maybePostfixModifierPosition: r,
136
- isExternal: i
137
- }), ie = (e) => {
138
- let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
139
- let t = [], n = 0, r = 0, i = 0, a, o = e.length;
140
- for (let s = 0; s < o; s++) {
141
- let o = e[s];
142
- if (n === 0 && r === 0) {
143
- if (o === ne) {
144
- t.push(e.slice(i, s)), i = s + 1;
145
- continue;
146
- }
147
- if (o === "/") {
148
- a = s;
149
- continue;
150
- }
151
- }
152
- o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
153
- }
154
- let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
155
- s.endsWith(C) ? (c = s.slice(0, -1), l = !0) : s.startsWith(C) && (c = s.slice(1), l = !0);
156
- let u = a && a > i ? a - i : void 0;
157
- return w(t, l, c, u);
158
- };
159
- if (t) {
160
- let e = t + ne, n = r;
161
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : w(re, !1, t, void 0, !0);
162
- }
163
- if (n) {
164
- let e = r;
165
- r = (t) => n({
166
- className: t,
167
- parseClassName: e
168
- });
169
- }
170
- return r;
171
- }, T = (e) => {
172
- let t = /* @__PURE__ */ new Map();
173
- return e.orderSensitiveModifiers.forEach((e, n) => {
174
- t.set(e, 1e6 + n);
175
- }), (e) => {
176
- let n = [], r = [];
177
- for (let i = 0; i < e.length; i++) {
178
- let a = e[i], o = a[0] === "[", s = t.has(a);
179
- o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
180
- }
181
- return r.length > 0 && (r.sort(), n.push(...r)), n;
182
- };
183
- }, E = (e) => ({
184
- cache: S(e.cacheSize),
185
- parseClassName: ie(e),
186
- sortModifiers: T(e),
187
- postfixLookupClassGroupIds: D(e),
188
- ...f(e)
189
- }), D = (e) => {
190
- let t = Object.create(null), n = e.postfixLookupClassGroups;
191
- if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
192
- return t;
193
- }, O = /\s+/, k = (e, t) => {
194
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(O), l = "";
195
- for (let e = c.length - 1; e >= 0; --e) {
196
- let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
197
- if (u) {
198
- l = t + (l.length > 0 ? " " + l : l);
199
- continue;
200
- }
201
- let h = !!m, g;
202
- if (h) {
203
- g = r(p.substring(0, m));
204
- let e = g && o[g] ? r(p) : void 0;
205
- e && e !== g && (g = e, h = !1);
206
- } else g = r(p);
207
- if (!g) {
208
- if (!h) {
209
- l = t + (l.length > 0 ? " " + l : l);
210
- continue;
211
- }
212
- if (g = r(p), !g) {
213
- l = t + (l.length > 0 ? " " + l : l);
214
- continue;
215
- }
216
- h = !1;
217
- }
218
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + C : _, y = v + g;
219
- if (s.indexOf(y) > -1) continue;
220
- s.push(y);
221
- let b = i(g, h);
222
- for (let e = 0; e < b.length; ++e) {
223
- let t = b[e];
224
- s.push(v + t);
225
- }
226
- l = t + (l.length > 0 ? " " + l : l);
227
- }
228
- return l;
229
- }, A = (...e) => {
230
- let t = 0, n, r, i = "";
231
- for (; t < e.length;) (n = e[t++]) && (r = j(n)) && (i && (i += " "), i += r);
232
- return i;
233
- }, j = (e) => {
234
- if (typeof e == "string") return e;
235
- let t, n = "";
236
- for (let r = 0; r < e.length; r++) e[r] && (t = j(e[r])) && (n && (n += " "), n += t);
237
- return n;
238
- }, ae = (e, ...t) => {
239
- let n, r, i, a, o = (o) => (n = E(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
240
- let t = r(e);
241
- if (t) return t;
242
- let a = k(e, n);
243
- return i(e, a), a;
244
- };
245
- return a = o, (...e) => a(A(...e));
246
- }, oe = [], M = (e) => {
247
- let t = (t) => t[e] || oe;
248
- return t.isThemeGetter = !0, t;
249
- }, se = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, N = /^\((?:(\w[\w-]*):)?(.+)\)$/i, P = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, F = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, I = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, L = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, le = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, R = (e) => P.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), B = (e) => !!e && Number.isInteger(Number(e)), ue = (e) => e.endsWith("%") && z(e.slice(0, -1)), V = (e) => F.test(e), de = () => !0, H = (e) => I.test(e) && !ce.test(e), U = () => !1, W = (e) => L.test(e), G = (e) => le.test(e), fe = (e) => !K(e) && !J(e), pe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), me = (e) => Z(e, Oe, U), K = (e) => se.test(e), q = (e) => Z(e, ke, H), he = (e) => Z(e, Ae, z), ge = (e) => Z(e, Me, de), _e = (e) => Z(e, je, U), ve = (e) => Z(e, Ee, U), ye = (e) => Z(e, De, G), be = (e) => Z(e, Ne, W), J = (e) => N.test(e), Y = (e) => Q(e, ke), xe = (e) => Q(e, je), Se = (e) => Q(e, Ee), Ce = (e) => Q(e, Oe), we = (e) => Q(e, De), X = (e) => Q(e, Ne, !0), Te = (e) => Q(e, Me, !0), Z = (e, t, n) => {
250
- let r = se.exec(e);
251
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
252
- }, Q = (e, t, n = !1) => {
253
- let r = N.exec(e);
254
- return r ? r[1] ? t(r[1]) : n : !1;
255
- }, Ee = (e) => e === "position" || e === "percentage", De = (e) => e === "image" || e === "url", Oe = (e) => e === "length" || e === "size" || e === "bg-size", ke = (e) => e === "length", Ae = (e) => e === "number", je = (e) => e === "family-name", Me = (e) => e === "number" || e === "weight", Ne = (e) => e === "shadow", Pe = /*#__PURE__*/ ae(() => {
256
- let e = M("color"), t = M("font"), n = M("text"), r = M("font-weight"), i = M("tracking"), a = M("leading"), o = M("breakpoint"), s = M("container"), c = M("spacing"), l = M("radius"), u = M("shadow"), d = M("inset-shadow"), f = M("text-shadow"), p = M("drop-shadow"), m = M("blur"), h = M("perspective"), g = M("aspect"), _ = M("ease"), v = M("animate"), y = () => [
257
- "auto",
258
- "avoid",
259
- "all",
260
- "avoid-page",
261
- "page",
262
- "left",
263
- "right",
264
- "column"
265
- ], b = () => [
266
- "center",
267
- "top",
268
- "bottom",
269
- "left",
270
- "right",
271
- "top-left",
272
- "left-top",
273
- "top-right",
274
- "right-top",
275
- "bottom-right",
276
- "right-bottom",
277
- "bottom-left",
278
- "left-bottom"
279
- ], ee = () => [
280
- ...b(),
281
- J,
282
- K
283
- ], x = () => [
284
- "auto",
285
- "hidden",
286
- "clip",
287
- "visible",
288
- "scroll"
289
- ], te = () => [
290
- "auto",
291
- "contain",
292
- "none"
293
- ], S = () => [
294
- J,
295
- K,
296
- c
297
- ], C = () => [
298
- R,
299
- "full",
300
- "auto",
301
- ...S()
302
- ], ne = () => [
303
- B,
304
- "none",
305
- "subgrid",
306
- J,
307
- K
308
- ], re = () => [
309
- "auto",
310
- { span: [
311
- "full",
312
- B,
313
- J,
314
- K
315
- ] },
316
- B,
317
- J,
318
- K
319
- ], w = () => [
320
- B,
321
- "auto",
322
- J,
323
- K
324
- ], ie = () => [
325
- "auto",
326
- "min",
327
- "max",
328
- "fr",
329
- J,
330
- K
331
- ], T = () => [
332
- "start",
333
- "end",
334
- "center",
335
- "between",
336
- "around",
337
- "evenly",
338
- "stretch",
339
- "baseline",
340
- "center-safe",
341
- "end-safe"
342
- ], E = () => [
343
- "start",
344
- "end",
345
- "center",
346
- "stretch",
347
- "center-safe",
348
- "end-safe"
349
- ], D = () => ["auto", ...S()], O = () => [
350
- R,
351
- "auto",
352
- "full",
353
- "dvw",
354
- "dvh",
355
- "lvw",
356
- "lvh",
357
- "svw",
358
- "svh",
359
- "min",
360
- "max",
361
- "fit",
362
- ...S()
363
- ], k = () => [
364
- R,
365
- "screen",
366
- "full",
367
- "dvw",
368
- "lvw",
369
- "svw",
370
- "min",
371
- "max",
372
- "fit",
373
- ...S()
374
- ], A = () => [
375
- R,
376
- "screen",
377
- "full",
378
- "lh",
379
- "dvh",
380
- "lvh",
381
- "svh",
382
- "min",
383
- "max",
384
- "fit",
385
- ...S()
386
- ], j = () => [
387
- e,
388
- J,
389
- K
390
- ], ae = () => [
391
- ...b(),
392
- Se,
393
- ve,
394
- { position: [J, K] }
395
- ], oe = () => ["no-repeat", { repeat: [
396
- "",
397
- "x",
398
- "y",
399
- "space",
400
- "round"
401
- ] }], se = () => [
402
- "auto",
403
- "cover",
404
- "contain",
405
- Ce,
406
- me,
407
- { size: [J, K] }
408
- ], N = () => [
409
- ue,
410
- Y,
411
- q
412
- ], P = () => [
413
- "",
414
- "none",
415
- "full",
416
- l,
417
- J,
418
- K
419
- ], F = () => [
420
- "",
421
- z,
422
- Y,
423
- q
424
- ], I = () => [
425
- "solid",
426
- "dashed",
427
- "dotted",
428
- "double"
429
- ], ce = () => [
430
- "normal",
431
- "multiply",
432
- "screen",
433
- "overlay",
434
- "darken",
435
- "lighten",
436
- "color-dodge",
437
- "color-burn",
438
- "hard-light",
439
- "soft-light",
440
- "difference",
441
- "exclusion",
442
- "hue",
443
- "saturation",
444
- "color",
445
- "luminosity"
446
- ], L = () => [
447
- z,
448
- ue,
449
- Se,
450
- ve
451
- ], le = () => [
452
- "",
453
- "none",
454
- m,
455
- J,
456
- K
457
- ], H = () => [
458
- "none",
459
- z,
460
- J,
461
- K
462
- ], U = () => [
463
- "none",
464
- z,
465
- J,
466
- K
467
- ], W = () => [
468
- z,
469
- J,
470
- K
471
- ], G = () => [
472
- R,
473
- "full",
474
- ...S()
475
- ];
476
- return {
477
- cacheSize: 500,
478
- theme: {
479
- animate: [
480
- "spin",
481
- "ping",
482
- "pulse",
483
- "bounce"
484
- ],
485
- aspect: ["video"],
486
- blur: [V],
487
- breakpoint: [V],
488
- color: [de],
489
- container: [V],
490
- "drop-shadow": [V],
491
- ease: [
492
- "in",
493
- "out",
494
- "in-out"
495
- ],
496
- font: [fe],
497
- "font-weight": [
498
- "thin",
499
- "extralight",
500
- "light",
501
- "normal",
502
- "medium",
503
- "semibold",
504
- "bold",
505
- "extrabold",
506
- "black"
507
- ],
508
- "inset-shadow": [V],
509
- leading: [
510
- "none",
511
- "tight",
512
- "snug",
513
- "normal",
514
- "relaxed",
515
- "loose"
516
- ],
517
- perspective: [
518
- "dramatic",
519
- "near",
520
- "normal",
521
- "midrange",
522
- "distant",
523
- "none"
524
- ],
525
- radius: [V],
526
- shadow: [V],
527
- spacing: ["px", z],
528
- text: [V],
529
- "text-shadow": [V],
530
- tracking: [
531
- "tighter",
532
- "tight",
533
- "normal",
534
- "wide",
535
- "wider",
536
- "widest"
537
- ]
538
- },
539
- classGroups: {
540
- aspect: [{ aspect: [
541
- "auto",
542
- "square",
543
- R,
544
- K,
545
- J,
546
- g
547
- ] }],
548
- container: ["container"],
549
- "container-type": [{ "@container": [
550
- "",
551
- "normal",
552
- "size",
553
- J,
554
- K
555
- ] }],
556
- "container-named": [pe],
557
- columns: [{ columns: [
558
- z,
559
- K,
560
- J,
561
- s
562
- ] }],
563
- "break-after": [{ "break-after": y() }],
564
- "break-before": [{ "break-before": y() }],
565
- "break-inside": [{ "break-inside": [
566
- "auto",
567
- "avoid",
568
- "avoid-page",
569
- "avoid-column"
570
- ] }],
571
- "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
572
- box: [{ box: ["border", "content"] }],
573
- display: [
574
- "block",
575
- "inline-block",
576
- "inline",
577
- "flex",
578
- "inline-flex",
579
- "table",
580
- "inline-table",
581
- "table-caption",
582
- "table-cell",
583
- "table-column",
584
- "table-column-group",
585
- "table-footer-group",
586
- "table-header-group",
587
- "table-row-group",
588
- "table-row",
589
- "flow-root",
590
- "grid",
591
- "inline-grid",
592
- "contents",
593
- "list-item",
594
- "hidden"
595
- ],
596
- sr: ["sr-only", "not-sr-only"],
597
- float: [{ float: [
598
- "right",
599
- "left",
600
- "none",
601
- "start",
602
- "end"
603
- ] }],
604
- clear: [{ clear: [
605
- "left",
606
- "right",
607
- "both",
608
- "none",
609
- "start",
610
- "end"
611
- ] }],
612
- isolation: ["isolate", "isolation-auto"],
613
- "object-fit": [{ object: [
614
- "contain",
615
- "cover",
616
- "fill",
617
- "none",
618
- "scale-down"
619
- ] }],
620
- "object-position": [{ object: ee() }],
621
- overflow: [{ overflow: x() }],
622
- "overflow-x": [{ "overflow-x": x() }],
623
- "overflow-y": [{ "overflow-y": x() }],
624
- overscroll: [{ overscroll: te() }],
625
- "overscroll-x": [{ "overscroll-x": te() }],
626
- "overscroll-y": [{ "overscroll-y": te() }],
627
- position: [
628
- "static",
629
- "fixed",
630
- "absolute",
631
- "relative",
632
- "sticky"
633
- ],
634
- inset: [{ inset: C() }],
635
- "inset-x": [{ "inset-x": C() }],
636
- "inset-y": [{ "inset-y": C() }],
637
- start: [{
638
- "inset-s": C(),
639
- start: C()
640
- }],
641
- end: [{
642
- "inset-e": C(),
643
- end: C()
644
- }],
645
- "inset-bs": [{ "inset-bs": C() }],
646
- "inset-be": [{ "inset-be": C() }],
647
- top: [{ top: C() }],
648
- right: [{ right: C() }],
649
- bottom: [{ bottom: C() }],
650
- left: [{ left: C() }],
651
- visibility: [
652
- "visible",
653
- "invisible",
654
- "collapse"
655
- ],
656
- z: [{ z: [
657
- B,
658
- "auto",
659
- J,
660
- K
661
- ] }],
662
- basis: [{ basis: [
663
- R,
664
- "full",
665
- "auto",
666
- s,
667
- ...S()
668
- ] }],
669
- "flex-direction": [{ flex: [
670
- "row",
671
- "row-reverse",
672
- "col",
673
- "col-reverse"
674
- ] }],
675
- "flex-wrap": [{ flex: [
676
- "nowrap",
677
- "wrap",
678
- "wrap-reverse"
679
- ] }],
680
- flex: [{ flex: [
681
- z,
682
- R,
683
- "auto",
684
- "initial",
685
- "none",
686
- K
687
- ] }],
688
- grow: [{ grow: [
689
- "",
690
- z,
691
- J,
692
- K
693
- ] }],
694
- shrink: [{ shrink: [
695
- "",
696
- z,
697
- J,
698
- K
699
- ] }],
700
- order: [{ order: [
701
- B,
702
- "first",
703
- "last",
704
- "none",
705
- J,
706
- K
707
- ] }],
708
- "grid-cols": [{ "grid-cols": ne() }],
709
- "col-start-end": [{ col: re() }],
710
- "col-start": [{ "col-start": w() }],
711
- "col-end": [{ "col-end": w() }],
712
- "grid-rows": [{ "grid-rows": ne() }],
713
- "row-start-end": [{ row: re() }],
714
- "row-start": [{ "row-start": w() }],
715
- "row-end": [{ "row-end": w() }],
716
- "grid-flow": [{ "grid-flow": [
717
- "row",
718
- "col",
719
- "dense",
720
- "row-dense",
721
- "col-dense"
722
- ] }],
723
- "auto-cols": [{ "auto-cols": ie() }],
724
- "auto-rows": [{ "auto-rows": ie() }],
725
- gap: [{ gap: S() }],
726
- "gap-x": [{ "gap-x": S() }],
727
- "gap-y": [{ "gap-y": S() }],
728
- "justify-content": [{ justify: [...T(), "normal"] }],
729
- "justify-items": [{ "justify-items": [...E(), "normal"] }],
730
- "justify-self": [{ "justify-self": ["auto", ...E()] }],
731
- "align-content": [{ content: ["normal", ...T()] }],
732
- "align-items": [{ items: [...E(), { baseline: ["", "last"] }] }],
733
- "align-self": [{ self: [
734
- "auto",
735
- ...E(),
736
- { baseline: ["", "last"] }
737
- ] }],
738
- "place-content": [{ "place-content": T() }],
739
- "place-items": [{ "place-items": [...E(), "baseline"] }],
740
- "place-self": [{ "place-self": ["auto", ...E()] }],
741
- p: [{ p: S() }],
742
- px: [{ px: S() }],
743
- py: [{ py: S() }],
744
- ps: [{ ps: S() }],
745
- pe: [{ pe: S() }],
746
- pbs: [{ pbs: S() }],
747
- pbe: [{ pbe: S() }],
748
- pt: [{ pt: S() }],
749
- pr: [{ pr: S() }],
750
- pb: [{ pb: S() }],
751
- pl: [{ pl: S() }],
752
- m: [{ m: D() }],
753
- mx: [{ mx: D() }],
754
- my: [{ my: D() }],
755
- ms: [{ ms: D() }],
756
- me: [{ me: D() }],
757
- mbs: [{ mbs: D() }],
758
- mbe: [{ mbe: D() }],
759
- mt: [{ mt: D() }],
760
- mr: [{ mr: D() }],
761
- mb: [{ mb: D() }],
762
- ml: [{ ml: D() }],
763
- "space-x": [{ "space-x": S() }],
764
- "space-x-reverse": ["space-x-reverse"],
765
- "space-y": [{ "space-y": S() }],
766
- "space-y-reverse": ["space-y-reverse"],
767
- size: [{ size: O() }],
768
- "inline-size": [{ inline: ["auto", ...k()] }],
769
- "min-inline-size": [{ "min-inline": ["auto", ...k()] }],
770
- "max-inline-size": [{ "max-inline": ["none", ...k()] }],
771
- "block-size": [{ block: ["auto", ...A()] }],
772
- "min-block-size": [{ "min-block": ["auto", ...A()] }],
773
- "max-block-size": [{ "max-block": ["none", ...A()] }],
774
- w: [{ w: [
775
- s,
776
- "screen",
777
- ...O()
778
- ] }],
779
- "min-w": [{ "min-w": [
780
- s,
781
- "screen",
782
- "none",
783
- ...O()
784
- ] }],
785
- "max-w": [{ "max-w": [
786
- s,
787
- "screen",
788
- "none",
789
- "prose",
790
- { screen: [o] },
791
- ...O()
792
- ] }],
793
- h: [{ h: [
794
- "screen",
795
- "lh",
796
- ...O()
797
- ] }],
798
- "min-h": [{ "min-h": [
799
- "screen",
800
- "lh",
801
- "none",
802
- ...O()
803
- ] }],
804
- "max-h": [{ "max-h": [
805
- "screen",
806
- "lh",
807
- ...O()
808
- ] }],
809
- "font-size": [{ text: [
810
- "base",
811
- n,
812
- Y,
813
- q
814
- ] }],
815
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
816
- "font-style": ["italic", "not-italic"],
817
- "font-weight": [{ font: [
818
- r,
819
- Te,
820
- ge
821
- ] }],
822
- "font-stretch": [{ "font-stretch": [
823
- "ultra-condensed",
824
- "extra-condensed",
825
- "condensed",
826
- "semi-condensed",
827
- "normal",
828
- "semi-expanded",
829
- "expanded",
830
- "extra-expanded",
831
- "ultra-expanded",
832
- ue,
833
- K
834
- ] }],
835
- "font-family": [{ font: [
836
- xe,
837
- _e,
838
- t
839
- ] }],
840
- "font-features": [{ "font-features": [K] }],
841
- "fvn-normal": ["normal-nums"],
842
- "fvn-ordinal": ["ordinal"],
843
- "fvn-slashed-zero": ["slashed-zero"],
844
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
845
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
846
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
847
- tracking: [{ tracking: [
848
- i,
849
- J,
850
- K
851
- ] }],
852
- "line-clamp": [{ "line-clamp": [
853
- z,
854
- "none",
855
- J,
856
- he
857
- ] }],
858
- leading: [{ leading: [a, ...S()] }],
859
- "list-image": [{ "list-image": [
860
- "none",
861
- J,
862
- K
863
- ] }],
864
- "list-style-position": [{ list: ["inside", "outside"] }],
865
- "list-style-type": [{ list: [
866
- "disc",
867
- "decimal",
868
- "none",
869
- J,
870
- K
871
- ] }],
872
- "text-alignment": [{ text: [
873
- "left",
874
- "center",
875
- "right",
876
- "justify",
877
- "start",
878
- "end"
879
- ] }],
880
- "placeholder-color": [{ placeholder: j() }],
881
- "text-color": [{ text: j() }],
882
- "text-decoration": [
883
- "underline",
884
- "overline",
885
- "line-through",
886
- "no-underline"
887
- ],
888
- "text-decoration-style": [{ decoration: [...I(), "wavy"] }],
889
- "text-decoration-thickness": [{ decoration: [
890
- z,
891
- "from-font",
892
- "auto",
893
- J,
894
- q
895
- ] }],
896
- "text-decoration-color": [{ decoration: j() }],
897
- "underline-offset": [{ "underline-offset": [
898
- z,
899
- "auto",
900
- J,
901
- K
902
- ] }],
903
- "text-transform": [
904
- "uppercase",
905
- "lowercase",
906
- "capitalize",
907
- "normal-case"
908
- ],
909
- "text-overflow": [
910
- "truncate",
911
- "text-ellipsis",
912
- "text-clip"
913
- ],
914
- "text-wrap": [{ text: [
915
- "wrap",
916
- "nowrap",
917
- "balance",
918
- "pretty"
919
- ] }],
920
- indent: [{ indent: S() }],
921
- "tab-size": [{ tab: [
922
- B,
923
- J,
924
- K
925
- ] }],
926
- "vertical-align": [{ align: [
927
- "baseline",
928
- "top",
929
- "middle",
930
- "bottom",
931
- "text-top",
932
- "text-bottom",
933
- "sub",
934
- "super",
935
- J,
936
- K
937
- ] }],
938
- whitespace: [{ whitespace: [
939
- "normal",
940
- "nowrap",
941
- "pre",
942
- "pre-line",
943
- "pre-wrap",
944
- "break-spaces"
945
- ] }],
946
- break: [{ break: [
947
- "normal",
948
- "words",
949
- "all",
950
- "keep"
951
- ] }],
952
- wrap: [{ wrap: [
953
- "break-word",
954
- "anywhere",
955
- "normal"
956
- ] }],
957
- hyphens: [{ hyphens: [
958
- "none",
959
- "manual",
960
- "auto"
961
- ] }],
962
- content: [{ content: [
963
- "none",
964
- J,
965
- K
966
- ] }],
967
- "bg-attachment": [{ bg: [
968
- "fixed",
969
- "local",
970
- "scroll"
971
- ] }],
972
- "bg-clip": [{ "bg-clip": [
973
- "border",
974
- "padding",
975
- "content",
976
- "text"
977
- ] }],
978
- "bg-origin": [{ "bg-origin": [
979
- "border",
980
- "padding",
981
- "content"
982
- ] }],
983
- "bg-position": [{ bg: ae() }],
984
- "bg-repeat": [{ bg: oe() }],
985
- "bg-size": [{ bg: se() }],
986
- "bg-image": [{ bg: [
987
- "none",
988
- {
989
- linear: [
990
- { to: [
991
- "t",
992
- "tr",
993
- "r",
994
- "br",
995
- "b",
996
- "bl",
997
- "l",
998
- "tl"
999
- ] },
1000
- B,
1001
- J,
1002
- K
1003
- ],
1004
- radial: [
1005
- "",
1006
- J,
1007
- K
1008
- ],
1009
- conic: [
1010
- B,
1011
- J,
1012
- K
1013
- ]
1014
- },
1015
- we,
1016
- ye
1017
- ] }],
1018
- "bg-color": [{ bg: j() }],
1019
- "gradient-from-pos": [{ from: N() }],
1020
- "gradient-via-pos": [{ via: N() }],
1021
- "gradient-to-pos": [{ to: N() }],
1022
- "gradient-from": [{ from: j() }],
1023
- "gradient-via": [{ via: j() }],
1024
- "gradient-to": [{ to: j() }],
1025
- rounded: [{ rounded: P() }],
1026
- "rounded-s": [{ "rounded-s": P() }],
1027
- "rounded-e": [{ "rounded-e": P() }],
1028
- "rounded-t": [{ "rounded-t": P() }],
1029
- "rounded-r": [{ "rounded-r": P() }],
1030
- "rounded-b": [{ "rounded-b": P() }],
1031
- "rounded-l": [{ "rounded-l": P() }],
1032
- "rounded-ss": [{ "rounded-ss": P() }],
1033
- "rounded-se": [{ "rounded-se": P() }],
1034
- "rounded-ee": [{ "rounded-ee": P() }],
1035
- "rounded-es": [{ "rounded-es": P() }],
1036
- "rounded-tl": [{ "rounded-tl": P() }],
1037
- "rounded-tr": [{ "rounded-tr": P() }],
1038
- "rounded-br": [{ "rounded-br": P() }],
1039
- "rounded-bl": [{ "rounded-bl": P() }],
1040
- "border-w": [{ border: F() }],
1041
- "border-w-x": [{ "border-x": F() }],
1042
- "border-w-y": [{ "border-y": F() }],
1043
- "border-w-s": [{ "border-s": F() }],
1044
- "border-w-e": [{ "border-e": F() }],
1045
- "border-w-bs": [{ "border-bs": F() }],
1046
- "border-w-be": [{ "border-be": F() }],
1047
- "border-w-t": [{ "border-t": F() }],
1048
- "border-w-r": [{ "border-r": F() }],
1049
- "border-w-b": [{ "border-b": F() }],
1050
- "border-w-l": [{ "border-l": F() }],
1051
- "divide-x": [{ "divide-x": F() }],
1052
- "divide-x-reverse": ["divide-x-reverse"],
1053
- "divide-y": [{ "divide-y": F() }],
1054
- "divide-y-reverse": ["divide-y-reverse"],
1055
- "border-style": [{ border: [
1056
- ...I(),
1057
- "hidden",
1058
- "none"
1059
- ] }],
1060
- "divide-style": [{ divide: [
1061
- ...I(),
1062
- "hidden",
1063
- "none"
1064
- ] }],
1065
- "border-color": [{ border: j() }],
1066
- "border-color-x": [{ "border-x": j() }],
1067
- "border-color-y": [{ "border-y": j() }],
1068
- "border-color-s": [{ "border-s": j() }],
1069
- "border-color-e": [{ "border-e": j() }],
1070
- "border-color-bs": [{ "border-bs": j() }],
1071
- "border-color-be": [{ "border-be": j() }],
1072
- "border-color-t": [{ "border-t": j() }],
1073
- "border-color-r": [{ "border-r": j() }],
1074
- "border-color-b": [{ "border-b": j() }],
1075
- "border-color-l": [{ "border-l": j() }],
1076
- "divide-color": [{ divide: j() }],
1077
- "outline-style": [{ outline: [
1078
- ...I(),
1079
- "none",
1080
- "hidden"
1081
- ] }],
1082
- "outline-offset": [{ "outline-offset": [
1083
- z,
1084
- J,
1085
- K
1086
- ] }],
1087
- "outline-w": [{ outline: [
1088
- "",
1089
- z,
1090
- Y,
1091
- q
1092
- ] }],
1093
- "outline-color": [{ outline: j() }],
1094
- shadow: [{ shadow: [
1095
- "",
1096
- "none",
1097
- u,
1098
- X,
1099
- be
1100
- ] }],
1101
- "shadow-color": [{ shadow: j() }],
1102
- "inset-shadow": [{ "inset-shadow": [
1103
- "none",
1104
- d,
1105
- X,
1106
- be
1107
- ] }],
1108
- "inset-shadow-color": [{ "inset-shadow": j() }],
1109
- "ring-w": [{ ring: F() }],
1110
- "ring-w-inset": ["ring-inset"],
1111
- "ring-color": [{ ring: j() }],
1112
- "ring-offset-w": [{ "ring-offset": [z, q] }],
1113
- "ring-offset-color": [{ "ring-offset": j() }],
1114
- "inset-ring-w": [{ "inset-ring": F() }],
1115
- "inset-ring-color": [{ "inset-ring": j() }],
1116
- "text-shadow": [{ "text-shadow": [
1117
- "none",
1118
- f,
1119
- X,
1120
- be
1121
- ] }],
1122
- "text-shadow-color": [{ "text-shadow": j() }],
1123
- opacity: [{ opacity: [
1124
- z,
1125
- J,
1126
- K
1127
- ] }],
1128
- "mix-blend": [{ "mix-blend": [
1129
- ...ce(),
1130
- "plus-darker",
1131
- "plus-lighter"
1132
- ] }],
1133
- "bg-blend": [{ "bg-blend": ce() }],
1134
- "mask-clip": [{ "mask-clip": [
1135
- "border",
1136
- "padding",
1137
- "content",
1138
- "fill",
1139
- "stroke",
1140
- "view"
1141
- ] }, "mask-no-clip"],
1142
- "mask-composite": [{ mask: [
1143
- "add",
1144
- "subtract",
1145
- "intersect",
1146
- "exclude"
1147
- ] }],
1148
- "mask-image-linear-pos": [{ "mask-linear": [z] }],
1149
- "mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
1150
- "mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
1151
- "mask-image-linear-from-color": [{ "mask-linear-from": j() }],
1152
- "mask-image-linear-to-color": [{ "mask-linear-to": j() }],
1153
- "mask-image-t-from-pos": [{ "mask-t-from": L() }],
1154
- "mask-image-t-to-pos": [{ "mask-t-to": L() }],
1155
- "mask-image-t-from-color": [{ "mask-t-from": j() }],
1156
- "mask-image-t-to-color": [{ "mask-t-to": j() }],
1157
- "mask-image-r-from-pos": [{ "mask-r-from": L() }],
1158
- "mask-image-r-to-pos": [{ "mask-r-to": L() }],
1159
- "mask-image-r-from-color": [{ "mask-r-from": j() }],
1160
- "mask-image-r-to-color": [{ "mask-r-to": j() }],
1161
- "mask-image-b-from-pos": [{ "mask-b-from": L() }],
1162
- "mask-image-b-to-pos": [{ "mask-b-to": L() }],
1163
- "mask-image-b-from-color": [{ "mask-b-from": j() }],
1164
- "mask-image-b-to-color": [{ "mask-b-to": j() }],
1165
- "mask-image-l-from-pos": [{ "mask-l-from": L() }],
1166
- "mask-image-l-to-pos": [{ "mask-l-to": L() }],
1167
- "mask-image-l-from-color": [{ "mask-l-from": j() }],
1168
- "mask-image-l-to-color": [{ "mask-l-to": j() }],
1169
- "mask-image-x-from-pos": [{ "mask-x-from": L() }],
1170
- "mask-image-x-to-pos": [{ "mask-x-to": L() }],
1171
- "mask-image-x-from-color": [{ "mask-x-from": j() }],
1172
- "mask-image-x-to-color": [{ "mask-x-to": j() }],
1173
- "mask-image-y-from-pos": [{ "mask-y-from": L() }],
1174
- "mask-image-y-to-pos": [{ "mask-y-to": L() }],
1175
- "mask-image-y-from-color": [{ "mask-y-from": j() }],
1176
- "mask-image-y-to-color": [{ "mask-y-to": j() }],
1177
- "mask-image-radial": [{ "mask-radial": [J, K] }],
1178
- "mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
1179
- "mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
1180
- "mask-image-radial-from-color": [{ "mask-radial-from": j() }],
1181
- "mask-image-radial-to-color": [{ "mask-radial-to": j() }],
1182
- "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1183
- "mask-image-radial-size": [{ "mask-radial": [{
1184
- closest: ["side", "corner"],
1185
- farthest: ["side", "corner"]
1186
- }] }],
1187
- "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1188
- "mask-image-conic-pos": [{ "mask-conic": [z] }],
1189
- "mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
1190
- "mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
1191
- "mask-image-conic-from-color": [{ "mask-conic-from": j() }],
1192
- "mask-image-conic-to-color": [{ "mask-conic-to": j() }],
1193
- "mask-mode": [{ mask: [
1194
- "alpha",
1195
- "luminance",
1196
- "match"
1197
- ] }],
1198
- "mask-origin": [{ "mask-origin": [
1199
- "border",
1200
- "padding",
1201
- "content",
1202
- "fill",
1203
- "stroke",
1204
- "view"
1205
- ] }],
1206
- "mask-position": [{ mask: ae() }],
1207
- "mask-repeat": [{ mask: oe() }],
1208
- "mask-size": [{ mask: se() }],
1209
- "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1210
- "mask-image": [{ mask: [
1211
- "none",
1212
- J,
1213
- K
1214
- ] }],
1215
- filter: [{ filter: [
1216
- "",
1217
- "none",
1218
- J,
1219
- K
1220
- ] }],
1221
- blur: [{ blur: le() }],
1222
- brightness: [{ brightness: [
1223
- z,
1224
- J,
1225
- K
1226
- ] }],
1227
- contrast: [{ contrast: [
1228
- z,
1229
- J,
1230
- K
1231
- ] }],
1232
- "drop-shadow": [{ "drop-shadow": [
1233
- "",
1234
- "none",
1235
- p,
1236
- X,
1237
- be
1238
- ] }],
1239
- "drop-shadow-color": [{ "drop-shadow": j() }],
1240
- grayscale: [{ grayscale: [
1241
- "",
1242
- z,
1243
- J,
1244
- K
1245
- ] }],
1246
- "hue-rotate": [{ "hue-rotate": [
1247
- z,
1248
- J,
1249
- K
1250
- ] }],
1251
- invert: [{ invert: [
1252
- "",
1253
- z,
1254
- J,
1255
- K
1256
- ] }],
1257
- saturate: [{ saturate: [
1258
- z,
1259
- J,
1260
- K
1261
- ] }],
1262
- sepia: [{ sepia: [
1263
- "",
1264
- z,
1265
- J,
1266
- K
1267
- ] }],
1268
- "backdrop-filter": [{ "backdrop-filter": [
1269
- "",
1270
- "none",
1271
- J,
1272
- K
1273
- ] }],
1274
- "backdrop-blur": [{ "backdrop-blur": le() }],
1275
- "backdrop-brightness": [{ "backdrop-brightness": [
1276
- z,
1277
- J,
1278
- K
1279
- ] }],
1280
- "backdrop-contrast": [{ "backdrop-contrast": [
1281
- z,
1282
- J,
1283
- K
1284
- ] }],
1285
- "backdrop-grayscale": [{ "backdrop-grayscale": [
1286
- "",
1287
- z,
1288
- J,
1289
- K
1290
- ] }],
1291
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1292
- z,
1293
- J,
1294
- K
1295
- ] }],
1296
- "backdrop-invert": [{ "backdrop-invert": [
1297
- "",
1298
- z,
1299
- J,
1300
- K
1301
- ] }],
1302
- "backdrop-opacity": [{ "backdrop-opacity": [
1303
- z,
1304
- J,
1305
- K
1306
- ] }],
1307
- "backdrop-saturate": [{ "backdrop-saturate": [
1308
- z,
1309
- J,
1310
- K
1311
- ] }],
1312
- "backdrop-sepia": [{ "backdrop-sepia": [
1313
- "",
1314
- z,
1315
- J,
1316
- K
1317
- ] }],
1318
- "border-collapse": [{ border: ["collapse", "separate"] }],
1319
- "border-spacing": [{ "border-spacing": S() }],
1320
- "border-spacing-x": [{ "border-spacing-x": S() }],
1321
- "border-spacing-y": [{ "border-spacing-y": S() }],
1322
- "table-layout": [{ table: ["auto", "fixed"] }],
1323
- caption: [{ caption: ["top", "bottom"] }],
1324
- transition: [{ transition: [
1325
- "",
1326
- "all",
1327
- "colors",
1328
- "opacity",
1329
- "shadow",
1330
- "transform",
1331
- "none",
1332
- J,
1333
- K
1334
- ] }],
1335
- "transition-behavior": [{ transition: ["normal", "discrete"] }],
1336
- duration: [{ duration: [
1337
- z,
1338
- "initial",
1339
- J,
1340
- K
1341
- ] }],
1342
- ease: [{ ease: [
1343
- "linear",
1344
- "initial",
1345
- _,
1346
- J,
1347
- K
1348
- ] }],
1349
- delay: [{ delay: [
1350
- z,
1351
- J,
1352
- K
1353
- ] }],
1354
- animate: [{ animate: [
1355
- "none",
1356
- v,
1357
- J,
1358
- K
1359
- ] }],
1360
- backface: [{ backface: ["hidden", "visible"] }],
1361
- perspective: [{ perspective: [
1362
- h,
1363
- J,
1364
- K
1365
- ] }],
1366
- "perspective-origin": [{ "perspective-origin": ee() }],
1367
- rotate: [{ rotate: H() }],
1368
- "rotate-x": [{ "rotate-x": H() }],
1369
- "rotate-y": [{ "rotate-y": H() }],
1370
- "rotate-z": [{ "rotate-z": H() }],
1371
- scale: [{ scale: U() }],
1372
- "scale-x": [{ "scale-x": U() }],
1373
- "scale-y": [{ "scale-y": U() }],
1374
- "scale-z": [{ "scale-z": U() }],
1375
- "scale-3d": ["scale-3d"],
1376
- skew: [{ skew: W() }],
1377
- "skew-x": [{ "skew-x": W() }],
1378
- "skew-y": [{ "skew-y": W() }],
1379
- transform: [{ transform: [
1380
- J,
1381
- K,
1382
- "",
1383
- "none",
1384
- "gpu",
1385
- "cpu"
1386
- ] }],
1387
- "transform-origin": [{ origin: ee() }],
1388
- "transform-style": [{ transform: ["3d", "flat"] }],
1389
- translate: [{ translate: G() }],
1390
- "translate-x": [{ "translate-x": G() }],
1391
- "translate-y": [{ "translate-y": G() }],
1392
- "translate-z": [{ "translate-z": G() }],
1393
- "translate-none": ["translate-none"],
1394
- zoom: [{ zoom: [
1395
- B,
1396
- J,
1397
- K
1398
- ] }],
1399
- accent: [{ accent: j() }],
1400
- appearance: [{ appearance: ["none", "auto"] }],
1401
- "caret-color": [{ caret: j() }],
1402
- "color-scheme": [{ scheme: [
1403
- "normal",
1404
- "dark",
1405
- "light",
1406
- "light-dark",
1407
- "only-dark",
1408
- "only-light"
1409
- ] }],
1410
- cursor: [{ cursor: [
1411
- "auto",
1412
- "default",
1413
- "pointer",
1414
- "wait",
1415
- "text",
1416
- "move",
1417
- "help",
1418
- "not-allowed",
1419
- "none",
1420
- "context-menu",
1421
- "progress",
1422
- "cell",
1423
- "crosshair",
1424
- "vertical-text",
1425
- "alias",
1426
- "copy",
1427
- "no-drop",
1428
- "grab",
1429
- "grabbing",
1430
- "all-scroll",
1431
- "col-resize",
1432
- "row-resize",
1433
- "n-resize",
1434
- "e-resize",
1435
- "s-resize",
1436
- "w-resize",
1437
- "ne-resize",
1438
- "nw-resize",
1439
- "se-resize",
1440
- "sw-resize",
1441
- "ew-resize",
1442
- "ns-resize",
1443
- "nesw-resize",
1444
- "nwse-resize",
1445
- "zoom-in",
1446
- "zoom-out",
1447
- J,
1448
- K
1449
- ] }],
1450
- "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1451
- "pointer-events": [{ "pointer-events": ["auto", "none"] }],
1452
- resize: [{ resize: [
1453
- "none",
1454
- "",
1455
- "y",
1456
- "x"
1457
- ] }],
1458
- "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1459
- "scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
1460
- "scrollbar-track-color": [{ "scrollbar-track": j() }],
1461
- "scrollbar-gutter": [{ "scrollbar-gutter": [
1462
- "auto",
1463
- "stable",
1464
- "both"
1465
- ] }],
1466
- "scrollbar-w": [{ scrollbar: [
1467
- "auto",
1468
- "thin",
1469
- "none"
1470
- ] }],
1471
- "scroll-m": [{ "scroll-m": S() }],
1472
- "scroll-mx": [{ "scroll-mx": S() }],
1473
- "scroll-my": [{ "scroll-my": S() }],
1474
- "scroll-ms": [{ "scroll-ms": S() }],
1475
- "scroll-me": [{ "scroll-me": S() }],
1476
- "scroll-mbs": [{ "scroll-mbs": S() }],
1477
- "scroll-mbe": [{ "scroll-mbe": S() }],
1478
- "scroll-mt": [{ "scroll-mt": S() }],
1479
- "scroll-mr": [{ "scroll-mr": S() }],
1480
- "scroll-mb": [{ "scroll-mb": S() }],
1481
- "scroll-ml": [{ "scroll-ml": S() }],
1482
- "scroll-p": [{ "scroll-p": S() }],
1483
- "scroll-px": [{ "scroll-px": S() }],
1484
- "scroll-py": [{ "scroll-py": S() }],
1485
- "scroll-ps": [{ "scroll-ps": S() }],
1486
- "scroll-pe": [{ "scroll-pe": S() }],
1487
- "scroll-pbs": [{ "scroll-pbs": S() }],
1488
- "scroll-pbe": [{ "scroll-pbe": S() }],
1489
- "scroll-pt": [{ "scroll-pt": S() }],
1490
- "scroll-pr": [{ "scroll-pr": S() }],
1491
- "scroll-pb": [{ "scroll-pb": S() }],
1492
- "scroll-pl": [{ "scroll-pl": S() }],
1493
- "snap-align": [{ snap: [
1494
- "start",
1495
- "end",
1496
- "center",
1497
- "align-none"
1498
- ] }],
1499
- "snap-stop": [{ snap: ["normal", "always"] }],
1500
- "snap-type": [{ snap: [
1501
- "none",
1502
- "x",
1503
- "y",
1504
- "both"
1505
- ] }],
1506
- "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1507
- touch: [{ touch: [
1508
- "auto",
1509
- "none",
1510
- "manipulation"
1511
- ] }],
1512
- "touch-x": [{ "touch-pan": [
1513
- "x",
1514
- "left",
1515
- "right"
1516
- ] }],
1517
- "touch-y": [{ "touch-pan": [
1518
- "y",
1519
- "up",
1520
- "down"
1521
- ] }],
1522
- "touch-pz": ["touch-pinch-zoom"],
1523
- select: [{ select: [
1524
- "none",
1525
- "text",
1526
- "all",
1527
- "auto"
1528
- ] }],
1529
- "will-change": [{ "will-change": [
1530
- "auto",
1531
- "scroll",
1532
- "contents",
1533
- "transform",
1534
- J,
1535
- K
1536
- ] }],
1537
- fill: [{ fill: ["none", ...j()] }],
1538
- "stroke-w": [{ stroke: [
1539
- z,
1540
- Y,
1541
- q,
1542
- he
1543
- ] }],
1544
- stroke: [{ stroke: ["none", ...j()] }],
1545
- "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1546
- },
1547
- conflictingClassGroups: {
1548
- "container-named": ["container-type"],
1549
- overflow: ["overflow-x", "overflow-y"],
1550
- overscroll: ["overscroll-x", "overscroll-y"],
1551
- inset: [
1552
- "inset-x",
1553
- "inset-y",
1554
- "inset-bs",
1555
- "inset-be",
1556
- "start",
1557
- "end",
1558
- "top",
1559
- "right",
1560
- "bottom",
1561
- "left"
1562
- ],
1563
- "inset-x": ["right", "left"],
1564
- "inset-y": ["top", "bottom"],
1565
- flex: [
1566
- "basis",
1567
- "grow",
1568
- "shrink"
1569
- ],
1570
- gap: ["gap-x", "gap-y"],
1571
- p: [
1572
- "px",
1573
- "py",
1574
- "ps",
1575
- "pe",
1576
- "pbs",
1577
- "pbe",
1578
- "pt",
1579
- "pr",
1580
- "pb",
1581
- "pl"
1582
- ],
1583
- px: ["pr", "pl"],
1584
- py: ["pt", "pb"],
1585
- m: [
1586
- "mx",
1587
- "my",
1588
- "ms",
1589
- "me",
1590
- "mbs",
1591
- "mbe",
1592
- "mt",
1593
- "mr",
1594
- "mb",
1595
- "ml"
1596
- ],
1597
- mx: ["mr", "ml"],
1598
- my: ["mt", "mb"],
1599
- size: ["w", "h"],
1600
- "font-size": ["leading"],
1601
- "fvn-normal": [
1602
- "fvn-ordinal",
1603
- "fvn-slashed-zero",
1604
- "fvn-figure",
1605
- "fvn-spacing",
1606
- "fvn-fraction"
1607
- ],
1608
- "fvn-ordinal": ["fvn-normal"],
1609
- "fvn-slashed-zero": ["fvn-normal"],
1610
- "fvn-figure": ["fvn-normal"],
1611
- "fvn-spacing": ["fvn-normal"],
1612
- "fvn-fraction": ["fvn-normal"],
1613
- "line-clamp": ["display", "overflow"],
1614
- rounded: [
1615
- "rounded-s",
1616
- "rounded-e",
1617
- "rounded-t",
1618
- "rounded-r",
1619
- "rounded-b",
1620
- "rounded-l",
1621
- "rounded-ss",
1622
- "rounded-se",
1623
- "rounded-ee",
1624
- "rounded-es",
1625
- "rounded-tl",
1626
- "rounded-tr",
1627
- "rounded-br",
1628
- "rounded-bl"
1629
- ],
1630
- "rounded-s": ["rounded-ss", "rounded-es"],
1631
- "rounded-e": ["rounded-se", "rounded-ee"],
1632
- "rounded-t": ["rounded-tl", "rounded-tr"],
1633
- "rounded-r": ["rounded-tr", "rounded-br"],
1634
- "rounded-b": ["rounded-br", "rounded-bl"],
1635
- "rounded-l": ["rounded-tl", "rounded-bl"],
1636
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
1637
- "border-w": [
1638
- "border-w-x",
1639
- "border-w-y",
1640
- "border-w-s",
1641
- "border-w-e",
1642
- "border-w-bs",
1643
- "border-w-be",
1644
- "border-w-t",
1645
- "border-w-r",
1646
- "border-w-b",
1647
- "border-w-l"
1648
- ],
1649
- "border-w-x": ["border-w-r", "border-w-l"],
1650
- "border-w-y": ["border-w-t", "border-w-b"],
1651
- "border-color": [
1652
- "border-color-x",
1653
- "border-color-y",
1654
- "border-color-s",
1655
- "border-color-e",
1656
- "border-color-bs",
1657
- "border-color-be",
1658
- "border-color-t",
1659
- "border-color-r",
1660
- "border-color-b",
1661
- "border-color-l"
1662
- ],
1663
- "border-color-x": ["border-color-r", "border-color-l"],
1664
- "border-color-y": ["border-color-t", "border-color-b"],
1665
- translate: [
1666
- "translate-x",
1667
- "translate-y",
1668
- "translate-none"
1669
- ],
1670
- "translate-none": [
1671
- "translate",
1672
- "translate-x",
1673
- "translate-y",
1674
- "translate-z"
1675
- ],
1676
- "scroll-m": [
1677
- "scroll-mx",
1678
- "scroll-my",
1679
- "scroll-ms",
1680
- "scroll-me",
1681
- "scroll-mbs",
1682
- "scroll-mbe",
1683
- "scroll-mt",
1684
- "scroll-mr",
1685
- "scroll-mb",
1686
- "scroll-ml"
1687
- ],
1688
- "scroll-mx": ["scroll-mr", "scroll-ml"],
1689
- "scroll-my": ["scroll-mt", "scroll-mb"],
1690
- "scroll-p": [
1691
- "scroll-px",
1692
- "scroll-py",
1693
- "scroll-ps",
1694
- "scroll-pe",
1695
- "scroll-pbs",
1696
- "scroll-pbe",
1697
- "scroll-pt",
1698
- "scroll-pr",
1699
- "scroll-pb",
1700
- "scroll-pl"
1701
- ],
1702
- "scroll-px": ["scroll-pr", "scroll-pl"],
1703
- "scroll-py": ["scroll-pt", "scroll-pb"],
1704
- touch: [
1705
- "touch-x",
1706
- "touch-y",
1707
- "touch-pz"
1708
- ],
1709
- "touch-x": ["touch"],
1710
- "touch-y": ["touch"],
1711
- "touch-pz": ["touch"]
1712
- },
1713
- conflictingClassGroupModifiers: { "font-size": ["leading"] },
1714
- postfixLookupClassGroups: ["container-type"],
1715
- orderSensitiveModifiers: [
1716
- "*",
1717
- "**",
1718
- "after",
1719
- "backdrop",
1720
- "before",
1721
- "details-content",
1722
- "file",
1723
- "first-letter",
1724
- "first-line",
1725
- "marker",
1726
- "placeholder",
1727
- "selection"
1728
- ]
1729
- };
1730
- });
1731
- //#endregion
1732
- //#region src/lib/utils.ts
1733
- function Fe(...e) {
1734
- return Pe(a(e));
1735
- }
1736
- //#endregion
1737
- //#region src/base/Textarea/Textarea.tsx
1738
- function Ie({ className: e, ...n }) {
1739
- return /* @__PURE__ */ t("textarea", {
1740
- "data-slot": "textarea",
1741
- className: Fe("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground placeholder:italic focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
1742
- ...n
1743
- });
1744
- }
1745
- //#endregion
1746
- //#region src/base/Skeleton/Skeleton.tsx
1747
- function Le({ className: e, ...n }) {
1748
- return /* @__PURE__ */ t("div", {
1749
- "data-slot": "skeleton",
1750
- className: Fe("animate-pulse rounded-md bg-muted", e),
1751
- ...n
1752
- });
1753
- }
1754
- //#endregion
1755
- //#region src/composed/CodeEditor/setupCodeEditor.ts
1756
- var $ = !1;
1757
- function Re({ baseUrl: e, monaco: t } = {}) {
1758
- if (!$) {
1759
- if (t !== void 0) {
1760
- r.config({ monaco: t }), $ = !0;
1761
- return;
1762
- }
1763
- e !== void 0 && (r.config({ paths: { vs: e.replace(/\/+$/, "") } }), $ = !0);
1764
- }
1765
- }
1766
- async function ze() {
1767
- if ($) return;
1768
- let e = await import("monaco-editor");
1769
- $ ||= (r.config({ monaco: e }), !0);
1770
- }
1771
- function Be() {
1772
- return $;
1773
- }
1774
- //#endregion
1775
- //#region src/composed/CodeEditor/theme/buildTheme.ts
1776
- var Ve = "graphene";
1777
- function He(e) {
1778
- let t = {}, n = [], r = document.createElement("div");
1779
- document.body.appendChild(r);
1780
- let i = getComputedStyle(r), a = document.createElement("canvas");
1781
- a.width = 1, a.height = 1;
1782
- let o = a.getContext("2d");
1783
- for (let a of e) {
1784
- if (!o) {
1785
- t[a] = "#000000";
1786
- continue;
1787
- }
1788
- r.style.backgroundColor = `var(${a})`;
1789
- let e = i.backgroundColor;
1790
- (e === "" || e === "rgba(0, 0, 0, 0)") && n.push(a), o.clearRect(0, 0, 1, 1), o.fillStyle = e, o.fillRect(0, 0, 1, 1);
1791
- let [s, c, l] = o.getImageData(0, 0, 1, 1).data;
1792
- t[a] = "#" + [
1793
- s,
1794
- c,
1795
- l
1796
- ].map((e) => e.toString(16).padStart(2, "0")).join("");
1797
- }
1798
- return document.body.removeChild(r), t;
1799
- }
1800
- function Ue() {
1801
- let e = document.documentElement.classList.contains("dark"), t = He([
1802
- "--background",
1803
- "--foreground",
1804
- "--border",
1805
- "--muted",
1806
- "--muted-foreground",
1807
- "--primary",
1808
- "--code-editor-string",
1809
- "--code-editor-keyword",
1810
- "--code-editor-number",
1811
- "--code-editor-type",
1812
- "--code-editor-special"
1813
- ]), n = t["--background"], r = t["--foreground"], i = t["--border"], a = t["--muted"], o = t["--muted-foreground"], s = t["--primary"], c = t["--code-editor-string"], l = t["--code-editor-keyword"], u = t["--code-editor-number"], d = t["--code-editor-type"], f = t["--code-editor-special"], p = (e) => e.slice(1);
1814
- return {
1815
- base: e ? "vs-dark" : "vs",
1816
- inherit: !0,
1817
- rules: [
1818
- {
1819
- token: "string",
1820
- foreground: p(c)
1821
- },
1822
- {
1823
- token: "string.key.json",
1824
- foreground: p(d)
1825
- },
1826
- {
1827
- token: "keyword",
1828
- foreground: p(l)
1829
- },
1830
- {
1831
- token: "keyword.json",
1832
- foreground: p(f)
1833
- },
1834
- {
1835
- token: "number",
1836
- foreground: p(u)
1837
- },
1838
- {
1839
- token: "type",
1840
- foreground: p(d)
1841
- },
1842
- {
1843
- token: "tag",
1844
- foreground: p(l)
1845
- },
1846
- {
1847
- token: "attribute.name",
1848
- foreground: p(d)
1849
- },
1850
- {
1851
- token: "attribute.value",
1852
- foreground: p(c)
1853
- },
1854
- {
1855
- token: "comment",
1856
- foreground: p(o),
1857
- fontStyle: "italic"
1858
- },
1859
- {
1860
- token: "comment.line",
1861
- foreground: p(o),
1862
- fontStyle: "italic"
1863
- },
1864
- {
1865
- token: "comment.block",
1866
- foreground: p(o),
1867
- fontStyle: "italic"
1868
- },
1869
- {
1870
- token: "identifier",
1871
- foreground: p(r)
1872
- },
1873
- {
1874
- token: "variable",
1875
- foreground: p(r)
1876
- },
1877
- {
1878
- token: "delimiter",
1879
- foreground: p(r)
1880
- }
1881
- ],
1882
- colors: {
1883
- "editor.background": n,
1884
- "editor.foreground": r,
1885
- "editor.lineHighlightBackground": r + "08",
1886
- "editor.lineHighlightBorder": "#00000000",
1887
- "editor.selectionBackground": s + "4d",
1888
- "editor.inactiveSelectionBackground": s + "26",
1889
- "editorCursor.foreground": s,
1890
- "editorLineNumber.foreground": o,
1891
- "editorLineNumber.activeForeground": r,
1892
- "editorGutter.background": n,
1893
- "editorIndentGuide.background1": i,
1894
- "editorIndentGuide.activeBackground1": o,
1895
- "editorWidget.background": a,
1896
- "editorWidget.foreground": r,
1897
- "editorWidget.border": i,
1898
- "editorWidget.resizeBorder": i,
1899
- "widget.shadow": r + "1a",
1900
- "input.background": n,
1901
- "input.border": i,
1902
- "input.foreground": r,
1903
- "input.placeholderForeground": o,
1904
- "inputOption.activeBorder": s,
1905
- "inputOption.activeBackground": s + "26",
1906
- "inputOption.activeForeground": s,
1907
- "button.background": s,
1908
- "button.foreground": "#ffffff",
1909
- "editorSuggestWidget.background": n,
1910
- "editorSuggestWidget.border": i,
1911
- "editorSuggestWidget.selectedBackground": s + "26",
1912
- "scrollbarSlider.background": i + "80",
1913
- "scrollbarSlider.hoverBackground": i,
1914
- "scrollbarSlider.activeBackground": o + "80"
1915
- }
1916
- };
1917
- }
1918
- //#endregion
1919
- //#region src/composed/CodeEditor/CodeEditor.tsx
1920
- function We(e) {
1921
- e.editor.defineTheme(Ve, Ue()), e.editor.setTheme(Ve);
1922
- }
1923
- var Ge = (e) => {
1924
- We(e);
1925
- };
1926
- function Ke() {
1927
- let [t, n] = e.useState(typeof document < "u" && document.documentElement.classList.contains("dark"));
1928
- return e.useEffect(() => {
1929
- let e = new MutationObserver(() => {
1930
- n(document.documentElement.classList.contains("dark"));
1931
- });
1932
- return e.observe(document.documentElement, {
1933
- attributes: !0,
1934
- attributeFilter: ["class"]
1935
- }), () => e.disconnect();
1936
- }, []), t;
1937
- }
1938
- function qe({ value: r, defaultValue: i, onChange: a, language: o = "plaintext", readOnly: s = !1, disabled: c = !1, height: l, className: u, options: d, onMount: f }) {
1939
- let [p, m] = e.useState(() => Be() ? { status: "ready" } : { status: "loading" });
1940
- e.useEffect(() => {
1941
- if (p.status !== "loading") return;
1942
- let e = !1;
1943
- return ze().then(() => {
1944
- e || m({ status: "ready" });
1945
- }, (t) => {
1946
- if (e) return;
1947
- let n = t instanceof Error ? t.message : "Unknown error";
1948
- console.error("[CodeEditor] Failed to configure Monaco loader:", t), m({
1949
- status: "error",
1950
- message: n
1951
- });
1952
- }), () => {
1953
- e = !0;
1954
- };
1955
- }, [p.status]);
1956
- let h = Ke(), g = e.useRef(null), _ = e.useRef(null);
1957
- e.useEffect(() => {
1958
- g.current && We(g.current);
1959
- }, [h]);
1960
- let v = e.useCallback((e, t) => {
1961
- g.current = t, _.current = e, f?.(e, t);
1962
- }, [f]), y = typeof l == "number" ? `${l}px` : l ?? "300px", b = /* @__PURE__ */ t(Le, { className: "size-full" });
1963
- return /* @__PURE__ */ t("div", {
1964
- "data-slot": "code-editor",
1965
- "data-disabled": c ? "" : void 0,
1966
- "data-readonly": s && !c ? "" : void 0,
1967
- className: Fe("overflow-hidden rounded-lg border border-input bg-background", "data-disabled:pointer-events-none data-disabled:opacity-50", "data-readonly:bg-muted/30", u),
1968
- style: { height: y },
1969
- children: p.status === "error" ? /* @__PURE__ */ t(Ie, {
1970
- value: r ?? "",
1971
- onChange: (e) => a?.(e.target.value),
1972
- readOnly: s || c,
1973
- spellCheck: !1,
1974
- className: "size-full resize-none rounded-none border-0 p-3 font-mono text-xs focus-visible:ring-0"
1975
- }) : p.status === "ready" ? /* @__PURE__ */ t(n, {
1976
- height: "100%",
1977
- language: o,
1978
- value: r,
1979
- defaultValue: i,
1980
- theme: Ve,
1981
- onChange: a,
1982
- onMount: v,
1983
- beforeMount: Ge,
1984
- loading: b,
1985
- options: {
1986
- readOnly: s || c,
1987
- minimap: { enabled: !1 },
1988
- scrollBeyondLastLine: !1,
1989
- automaticLayout: !0,
1990
- fontFamily: "ui-monospace, Menlo, Consolas, \"Cascadia Code\", \"Liberation Mono\", monospace",
1991
- fontSize: 13,
1992
- lineHeight: 20,
1993
- padding: {
1994
- top: 8,
1995
- bottom: 8
1996
- },
1997
- glyphMargin: !1,
1998
- renderLineHighlight: "line",
1999
- scrollbar: {
2000
- verticalScrollbarSize: 6,
2001
- horizontalScrollbarSize: 6
2002
- },
2003
- overviewRulerLanes: 0,
2004
- ...d
2005
- }
2006
- }) : b
2007
- });
2008
- }
2009
- //#endregion
2010
- export { Fe as a, Ie as i, Re as n, a as o, Le as r, qe as t };