@plyaz/ui 0.7.9 → 0.7.11

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.
Files changed (114) hide show
  1. package/dist/Button-BBFJyA3y.js +89 -0
  2. package/dist/Button-oW9LiTe6.cjs +39 -0
  3. package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
  4. package/dist/Skeleton-Cj9Od_Nd.js +37 -0
  5. package/dist/Textarea-CLBbcfr_.cjs +24 -0
  6. package/dist/Textarea-nx_ki3Gv.js +837 -0
  7. package/dist/client/accordion.cjs.js +1 -0
  8. package/dist/client/accordion.es.js +62 -0
  9. package/dist/client/alert-dialog.cjs.js +1 -0
  10. package/dist/client/alert-dialog.es.js +127 -0
  11. package/dist/client/avatar.cjs.js +1 -0
  12. package/dist/client/avatar.es.js +41 -0
  13. package/dist/client/calendar.cjs.js +1 -0
  14. package/dist/client/calendar.es.js +160 -0
  15. package/dist/client/carousel.cjs.js +1 -0
  16. package/dist/client/carousel.es.js +170 -0
  17. package/dist/client/checkbox.cjs.js +1 -0
  18. package/dist/client/checkbox.es.js +28 -0
  19. package/dist/client/combobox.cjs.js +1 -0
  20. package/dist/client/combobox.es.js +77 -0
  21. package/dist/client/command.cjs.js +1 -0
  22. package/dist/client/command.es.js +143 -0
  23. package/dist/client/context-menu.cjs.js +1 -0
  24. package/dist/client/context-menu.es.js +200 -0
  25. package/dist/client/dialog.cjs.js +1 -0
  26. package/dist/client/dialog.es.js +122 -0
  27. package/dist/client/drawer.cjs.js +1 -0
  28. package/dist/client/drawer.es.js +117 -0
  29. package/dist/client/dropdown-menu.cjs.js +1 -0
  30. package/dist/client/dropdown-menu.es.js +204 -0
  31. package/dist/client/hover-card.cjs.js +1 -0
  32. package/dist/client/hover-card.es.js +34 -0
  33. package/dist/client/input-otp.cjs.js +1 -0
  34. package/dist/client/input-otp.es.js +55 -0
  35. package/dist/client/label.cjs.js +1 -0
  36. package/dist/client/label.es.js +19 -0
  37. package/dist/client/menu-bar.cjs.js +1 -0
  38. package/dist/client/menu-bar.es.js +229 -0
  39. package/dist/client/popover.cjs.js +1 -0
  40. package/dist/client/popover.es.js +38 -0
  41. package/dist/client/progress.cjs.js +1 -0
  42. package/dist/client/progress.es.js +29 -0
  43. package/dist/client/radio-group.cjs.js +1 -0
  44. package/dist/client/radio-group.es.js +45 -0
  45. package/dist/client/reveal-text.cjs.js +1 -0
  46. package/dist/client/reveal-text.es.js +5066 -0
  47. package/dist/client/scroll-area.cjs.js +1 -0
  48. package/dist/client/scroll-area.es.js +60 -0
  49. package/dist/client/sheet.cjs.js +1 -0
  50. package/dist/client/sheet.es.js +117 -0
  51. package/dist/client/slider.cjs.js +1 -0
  52. package/dist/client/slider.es.js +63 -0
  53. package/dist/client/switch.cjs.js +1 -0
  54. package/dist/client/switch.es.js +28 -0
  55. package/dist/client/tabs.cjs.js +1 -0
  56. package/dist/client/tabs.es.js +55 -0
  57. package/dist/client/toaster.cjs.js +1 -0
  58. package/dist/client/toaster.es.js +22 -0
  59. package/dist/client/toggle.cjs.js +1 -0
  60. package/dist/client/toggle.es.js +43 -0
  61. package/dist/client/tooltip.cjs.js +1 -0
  62. package/dist/client/tooltip.es.js +51 -0
  63. package/dist/client.cjs.js +1 -93
  64. package/dist/client.es.js +495 -21191
  65. package/dist/index.cjs.js +15 -16
  66. package/dist/index.es.js +312 -558
  67. package/dist/types/client/accordion.d.ts +2 -0
  68. package/dist/types/client/alert-dialog.d.ts +2 -0
  69. package/dist/types/client/avatar.d.ts +2 -0
  70. package/dist/types/client/calendar.d.ts +2 -0
  71. package/dist/types/client/carousel.d.ts +2 -0
  72. package/dist/types/client/checkbox.d.ts +2 -0
  73. package/dist/types/client/combobox.d.ts +2 -0
  74. package/dist/types/client/command.d.ts +2 -0
  75. package/dist/types/client/context-menu.d.ts +2 -0
  76. package/dist/types/client/dialog.d.ts +2 -0
  77. package/dist/types/client/drawer.d.ts +2 -0
  78. package/dist/types/client/dropdown-menu.d.ts +2 -0
  79. package/dist/types/client/hover-card.d.ts +2 -0
  80. package/dist/types/client/input-otp.d.ts +2 -0
  81. package/dist/types/client/label.d.ts +2 -0
  82. package/dist/types/client/menu-bar.d.ts +2 -0
  83. package/dist/types/client/popover.d.ts +2 -0
  84. package/dist/types/client/progress.d.ts +2 -0
  85. package/dist/types/client/radio-group.d.ts +2 -0
  86. package/dist/types/client/reveal-text.d.ts +2 -0
  87. package/dist/types/client/scroll-area.d.ts +2 -0
  88. package/dist/types/client/sheet.d.ts +2 -0
  89. package/dist/types/client/slider.d.ts +2 -0
  90. package/dist/types/client/switch.d.ts +2 -0
  91. package/dist/types/client/tabs.d.ts +2 -0
  92. package/dist/types/client/toaster.d.ts +2 -0
  93. package/dist/types/client/toggle.d.ts +2 -0
  94. package/dist/types/client/tooltip.d.ts +2 -0
  95. package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  96. package/dist/types/components/Label/Label.stories.d.ts +1 -1
  97. package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
  98. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
  99. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  100. package/dist/types/components/Select/Select.d.ts.map +1 -1
  101. package/dist/types/components/Select/Select.stories.d.ts +0 -3
  102. package/dist/types/components/Select/Select.stories.d.ts.map +1 -1
  103. package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
  104. package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
  105. package/dist/types/components/client.d.ts +1 -0
  106. package/dist/types/components/client.d.ts.map +1 -1
  107. package/dist/types/components/index.d.ts +0 -1
  108. package/dist/types/components/index.d.ts.map +1 -1
  109. package/dist/ui.css +1 -1
  110. package/dist/utils-B6yFEsav.js +8 -0
  111. package/dist/utils-IjLH3w2e.cjs +1 -0
  112. package/package.json +186 -1
  113. package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
  114. package/dist/Skeleton-CnBXKh2c.js +0 -3511
@@ -1,3511 +0,0 @@
1
- var Et = Object.defineProperty;
2
- var St = (e, t, r) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var E = (e, t, r) => St(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as L, jsxs as Nt } from "react/jsx-runtime";
5
- import { Slot as It, createSlot as Ot } from "@radix-ui/react-slot";
6
- import { clsx as at } from "clsx";
7
- import * as nt from "react";
8
- import { memo as Ct } from "react";
9
- import * as Tt from "react-dom";
10
- const Ne = "-", Lt = (e) => {
11
- const t = Mt(e), {
12
- conflictingClassGroups: r,
13
- conflictingClassGroupModifiers: o
14
- } = e;
15
- return {
16
- getClassGroupId: (l) => {
17
- const m = l.split(Ne);
18
- return m[0] === "" && m.length !== 1 && m.shift(), st(m, t) || zt(l);
19
- },
20
- getConflictingClassGroupIds: (l, m) => {
21
- const d = r[l] || [];
22
- return m && o[l] ? [...d, ...o[l]] : d;
23
- }
24
- };
25
- }, st = (e, t) => {
26
- var l;
27
- if (e.length === 0)
28
- return t.classGroupId;
29
- const r = e[0], o = t.nextPart.get(r), a = o ? st(e.slice(1), o) : void 0;
30
- if (a)
31
- return a;
32
- if (t.validators.length === 0)
33
- return;
34
- const n = e.join(Ne);
35
- return (l = t.validators.find(({
36
- validator: m
37
- }) => m(n))) == null ? void 0 : l.classGroupId;
38
- }, Ue = /^\[(.+)\]$/, zt = (e) => {
39
- if (Ue.test(e)) {
40
- const t = Ue.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
41
- if (r)
42
- return "arbitrary.." + r;
43
- }
44
- }, Mt = (e) => {
45
- const {
46
- theme: t,
47
- classGroups: r
48
- } = e, o = {
49
- nextPart: /* @__PURE__ */ new Map(),
50
- validators: []
51
- };
52
- for (const a in r)
53
- we(r[a], o, a, t);
54
- return o;
55
- }, we = (e, t, r, o) => {
56
- e.forEach((a) => {
57
- if (typeof a == "string") {
58
- const n = a === "" ? t : Ge(t, a);
59
- n.classGroupId = r;
60
- return;
61
- }
62
- if (typeof a == "function") {
63
- if (Pt(a)) {
64
- we(a(o), t, r, o);
65
- return;
66
- }
67
- t.validators.push({
68
- validator: a,
69
- classGroupId: r
70
- });
71
- return;
72
- }
73
- Object.entries(a).forEach(([n, l]) => {
74
- we(l, Ge(t, n), r, o);
75
- });
76
- });
77
- }, Ge = (e, t) => {
78
- let r = e;
79
- return t.split(Ne).forEach((o) => {
80
- r.nextPart.has(o) || r.nextPart.set(o, {
81
- nextPart: /* @__PURE__ */ new Map(),
82
- validators: []
83
- }), r = r.nextPart.get(o);
84
- }), r;
85
- }, Pt = (e) => e.isThemeGetter, Dt = (e) => {
86
- if (e < 1)
87
- return {
88
- get: () => {
89
- },
90
- set: () => {
91
- }
92
- };
93
- let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
94
- const a = (n, l) => {
95
- r.set(n, l), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
96
- };
97
- return {
98
- get(n) {
99
- let l = r.get(n);
100
- if (l !== void 0)
101
- return l;
102
- if ((l = o.get(n)) !== void 0)
103
- return a(n, l), l;
104
- },
105
- set(n, l) {
106
- r.has(n) ? r.set(n, l) : a(n, l);
107
- }
108
- };
109
- }, ye = "!", Re = ":", Vt = Re.length, Ft = (e) => {
110
- const {
111
- prefix: t,
112
- experimentalParseClassName: r
113
- } = e;
114
- let o = (a) => {
115
- const n = [];
116
- let l = 0, m = 0, d = 0, g;
117
- for (let x = 0; x < a.length; x++) {
118
- let w = a[x];
119
- if (l === 0 && m === 0) {
120
- if (w === Re) {
121
- n.push(a.slice(d, x)), d = x + Vt;
122
- continue;
123
- }
124
- if (w === "/") {
125
- g = x;
126
- continue;
127
- }
128
- }
129
- w === "[" ? l++ : w === "]" ? l-- : w === "(" ? m++ : w === ")" && m--;
130
- }
131
- const b = n.length === 0 ? a : a.substring(d), k = Ut(b), A = k !== b, z = g && g > d ? g - d : void 0;
132
- return {
133
- modifiers: n,
134
- hasImportantModifier: A,
135
- baseClassName: k,
136
- maybePostfixModifierPosition: z
137
- };
138
- };
139
- if (t) {
140
- const a = t + Re, n = o;
141
- o = (l) => l.startsWith(a) ? n(l.substring(a.length)) : {
142
- isExternal: !0,
143
- modifiers: [],
144
- hasImportantModifier: !1,
145
- baseClassName: l,
146
- maybePostfixModifierPosition: void 0
147
- };
148
- }
149
- if (r) {
150
- const a = o;
151
- o = (n) => r({
152
- className: n,
153
- parseClassName: a
154
- });
155
- }
156
- return o;
157
- }, Ut = (e) => e.endsWith(ye) ? e.substring(0, e.length - 1) : e.startsWith(ye) ? e.substring(1) : e, Gt = (e) => {
158
- const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
159
- return (o) => {
160
- if (o.length <= 1)
161
- return o;
162
- const a = [];
163
- let n = [];
164
- return o.forEach((l) => {
165
- l[0] === "[" || t[l] ? (a.push(...n.sort(), l), n = []) : n.push(l);
166
- }), a.push(...n.sort()), a;
167
- };
168
- }, Bt = (e) => ({
169
- cache: Dt(e.cacheSize),
170
- parseClassName: Ft(e),
171
- sortModifiers: Gt(e),
172
- ...Lt(e)
173
- }), jt = /\s+/, Kt = (e, t) => {
174
- const {
175
- parseClassName: r,
176
- getClassGroupId: o,
177
- getConflictingClassGroupIds: a,
178
- sortModifiers: n
179
- } = t, l = [], m = e.trim().split(jt);
180
- let d = "";
181
- for (let g = m.length - 1; g >= 0; g -= 1) {
182
- const b = m[g], {
183
- isExternal: k,
184
- modifiers: A,
185
- hasImportantModifier: z,
186
- baseClassName: x,
187
- maybePostfixModifierPosition: w
188
- } = r(b);
189
- if (k) {
190
- d = b + (d.length > 0 ? " " + d : d);
191
- continue;
192
- }
193
- let N = !!w, M = o(N ? x.substring(0, w) : x);
194
- if (!M) {
195
- if (!N) {
196
- d = b + (d.length > 0 ? " " + d : d);
197
- continue;
198
- }
199
- if (M = o(x), !M) {
200
- d = b + (d.length > 0 ? " " + d : d);
201
- continue;
202
- }
203
- N = !1;
204
- }
205
- const oe = n(A).join(":"), ee = z ? oe + ye : oe, G = ee + M;
206
- if (l.includes(G))
207
- continue;
208
- l.push(G);
209
- const B = a(M, N);
210
- for (let P = 0; P < B.length; ++P) {
211
- const te = B[P];
212
- l.push(ee + te);
213
- }
214
- d = b + (d.length > 0 ? " " + d : d);
215
- }
216
- return d;
217
- };
218
- function $t() {
219
- let e = 0, t, r, o = "";
220
- for (; e < arguments.length; )
221
- (t = arguments[e++]) && (r = it(t)) && (o && (o += " "), o += r);
222
- return o;
223
- }
224
- const it = (e) => {
225
- if (typeof e == "string")
226
- return e;
227
- let t, r = "";
228
- for (let o = 0; o < e.length; o++)
229
- e[o] && (t = it(e[o])) && (r && (r += " "), r += t);
230
- return r;
231
- };
232
- function Ht(e, ...t) {
233
- let r, o, a, n = l;
234
- function l(d) {
235
- const g = t.reduce((b, k) => k(b), e());
236
- return r = Bt(g), o = r.cache.get, a = r.cache.set, n = m, m(d);
237
- }
238
- function m(d) {
239
- const g = o(d);
240
- if (g)
241
- return g;
242
- const b = Kt(d, r);
243
- return a(d, b), b;
244
- }
245
- return function() {
246
- return n($t.apply(null, arguments));
247
- };
248
- }
249
- const h = (e) => {
250
- const t = (r) => r[e] || [];
251
- return t.isThemeGetter = !0, t;
252
- }, lt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ct = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wt = /^\d+\/\d+$/, Yt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qt = /\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$/, Jt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Wt.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), T = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && p(e.slice(0, -1)), C = (e) => Yt.test(e), Zt = () => !0, er = (e) => (
253
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
254
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
255
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
256
- qt.test(e) && !Jt.test(e)
257
- ), dt = () => !1, tr = (e) => Xt.test(e), rr = (e) => Qt.test(e), or = (e) => !s(e) && !i(e), ar = (e) => Q(e, ft, dt), s = (e) => lt.test(e), V = (e) => Q(e, pt, er), ve = (e) => Q(e, cr, p), Be = (e) => Q(e, ut, dt), nr = (e) => Q(e, mt, rr), ce = (e) => Q(e, gt, tr), i = (e) => ct.test(e), re = (e) => Z(e, pt), sr = (e) => Z(e, dr), je = (e) => Z(e, ut), ir = (e) => Z(e, ft), lr = (e) => Z(e, mt), de = (e) => Z(e, gt, !0), Q = (e, t, r) => {
258
- const o = lt.exec(e);
259
- return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
260
- }, Z = (e, t, r = !1) => {
261
- const o = ct.exec(e);
262
- return o ? o[1] ? t(o[1]) : r : !1;
263
- }, ut = (e) => e === "position" || e === "percentage", mt = (e) => e === "image" || e === "url", ft = (e) => e === "length" || e === "size" || e === "bg-size", pt = (e) => e === "length", cr = (e) => e === "number", dr = (e) => e === "family-name", gt = (e) => e === "shadow", ur = () => {
264
- const e = h("color"), t = h("font"), r = h("text"), o = h("font-weight"), a = h("tracking"), n = h("leading"), l = h("breakpoint"), m = h("container"), d = h("spacing"), g = h("radius"), b = h("shadow"), k = h("inset-shadow"), A = h("text-shadow"), z = h("drop-shadow"), x = h("blur"), w = h("perspective"), N = h("aspect"), M = h("ease"), oe = h("animate"), ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
265
- "center",
266
- "top",
267
- "bottom",
268
- "left",
269
- "right",
270
- "top-left",
271
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
272
- "left-top",
273
- "top-right",
274
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
275
- "right-top",
276
- "bottom-right",
277
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
278
- "right-bottom",
279
- "bottom-left",
280
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
281
- "left-bottom"
282
- ], B = () => [...G(), i, s], P = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", "contain", "none"], u = () => [i, s, d], I = () => [K, "full", "auto", ...u()], Te = () => [T, "none", "subgrid", i, s], Le = () => ["auto", {
283
- span: ["full", T, i, s]
284
- }, T, i, s], ae = () => [T, "auto", i, s], ze = () => ["auto", "min", "max", "fr", i, s], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...u()], D = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], c = () => [e, i, s], Me = () => [...G(), je, Be, {
285
- position: [i, s]
286
- }], Pe = () => ["no-repeat", {
287
- repeat: ["", "x", "y", "space", "round"]
288
- }], De = () => ["auto", "cover", "contain", ir, ar, {
289
- size: [i, s]
290
- }], ge = () => [he, re, V], _ = () => [
291
- // Deprecated since Tailwind CSS v4.0.0
292
- "",
293
- "none",
294
- "full",
295
- g,
296
- i,
297
- s
298
- ], y = () => ["", p, re, V], ne = () => ["solid", "dashed", "dotted", "double"], Ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], v = () => [p, he, je, Be], Fe = () => [
299
- // Deprecated since Tailwind CSS v4.0.0
300
- "",
301
- "none",
302
- x,
303
- i,
304
- s
305
- ], se = () => ["none", p, i, s], ie = () => ["none", p, i, s], be = () => [p, i, s], le = () => [K, "full", ...u()];
306
- return {
307
- cacheSize: 500,
308
- theme: {
309
- animate: ["spin", "ping", "pulse", "bounce"],
310
- aspect: ["video"],
311
- blur: [C],
312
- breakpoint: [C],
313
- color: [Zt],
314
- container: [C],
315
- "drop-shadow": [C],
316
- ease: ["in", "out", "in-out"],
317
- font: [or],
318
- "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
319
- "inset-shadow": [C],
320
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
321
- perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
322
- radius: [C],
323
- shadow: [C],
324
- spacing: ["px", p],
325
- text: [C],
326
- "text-shadow": [C],
327
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
328
- },
329
- classGroups: {
330
- // --------------
331
- // --- Layout ---
332
- // --------------
333
- /**
334
- * Aspect Ratio
335
- * @see https://tailwindcss.com/docs/aspect-ratio
336
- */
337
- aspect: [{
338
- aspect: ["auto", "square", K, s, i, N]
339
- }],
340
- /**
341
- * Container
342
- * @see https://tailwindcss.com/docs/container
343
- * @deprecated since Tailwind CSS v4.0.0
344
- */
345
- container: ["container"],
346
- /**
347
- * Columns
348
- * @see https://tailwindcss.com/docs/columns
349
- */
350
- columns: [{
351
- columns: [p, s, i, m]
352
- }],
353
- /**
354
- * Break After
355
- * @see https://tailwindcss.com/docs/break-after
356
- */
357
- "break-after": [{
358
- "break-after": ee()
359
- }],
360
- /**
361
- * Break Before
362
- * @see https://tailwindcss.com/docs/break-before
363
- */
364
- "break-before": [{
365
- "break-before": ee()
366
- }],
367
- /**
368
- * Break Inside
369
- * @see https://tailwindcss.com/docs/break-inside
370
- */
371
- "break-inside": [{
372
- "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
373
- }],
374
- /**
375
- * Box Decoration Break
376
- * @see https://tailwindcss.com/docs/box-decoration-break
377
- */
378
- "box-decoration": [{
379
- "box-decoration": ["slice", "clone"]
380
- }],
381
- /**
382
- * Box Sizing
383
- * @see https://tailwindcss.com/docs/box-sizing
384
- */
385
- box: [{
386
- box: ["border", "content"]
387
- }],
388
- /**
389
- * Display
390
- * @see https://tailwindcss.com/docs/display
391
- */
392
- display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
393
- /**
394
- * Screen Reader Only
395
- * @see https://tailwindcss.com/docs/display#screen-reader-only
396
- */
397
- sr: ["sr-only", "not-sr-only"],
398
- /**
399
- * Floats
400
- * @see https://tailwindcss.com/docs/float
401
- */
402
- float: [{
403
- float: ["right", "left", "none", "start", "end"]
404
- }],
405
- /**
406
- * Clear
407
- * @see https://tailwindcss.com/docs/clear
408
- */
409
- clear: [{
410
- clear: ["left", "right", "both", "none", "start", "end"]
411
- }],
412
- /**
413
- * Isolation
414
- * @see https://tailwindcss.com/docs/isolation
415
- */
416
- isolation: ["isolate", "isolation-auto"],
417
- /**
418
- * Object Fit
419
- * @see https://tailwindcss.com/docs/object-fit
420
- */
421
- "object-fit": [{
422
- object: ["contain", "cover", "fill", "none", "scale-down"]
423
- }],
424
- /**
425
- * Object Position
426
- * @see https://tailwindcss.com/docs/object-position
427
- */
428
- "object-position": [{
429
- object: B()
430
- }],
431
- /**
432
- * Overflow
433
- * @see https://tailwindcss.com/docs/overflow
434
- */
435
- overflow: [{
436
- overflow: P()
437
- }],
438
- /**
439
- * Overflow X
440
- * @see https://tailwindcss.com/docs/overflow
441
- */
442
- "overflow-x": [{
443
- "overflow-x": P()
444
- }],
445
- /**
446
- * Overflow Y
447
- * @see https://tailwindcss.com/docs/overflow
448
- */
449
- "overflow-y": [{
450
- "overflow-y": P()
451
- }],
452
- /**
453
- * Overscroll Behavior
454
- * @see https://tailwindcss.com/docs/overscroll-behavior
455
- */
456
- overscroll: [{
457
- overscroll: te()
458
- }],
459
- /**
460
- * Overscroll Behavior X
461
- * @see https://tailwindcss.com/docs/overscroll-behavior
462
- */
463
- "overscroll-x": [{
464
- "overscroll-x": te()
465
- }],
466
- /**
467
- * Overscroll Behavior Y
468
- * @see https://tailwindcss.com/docs/overscroll-behavior
469
- */
470
- "overscroll-y": [{
471
- "overscroll-y": te()
472
- }],
473
- /**
474
- * Position
475
- * @see https://tailwindcss.com/docs/position
476
- */
477
- position: ["static", "fixed", "absolute", "relative", "sticky"],
478
- /**
479
- * Top / Right / Bottom / Left
480
- * @see https://tailwindcss.com/docs/top-right-bottom-left
481
- */
482
- inset: [{
483
- inset: I()
484
- }],
485
- /**
486
- * Right / Left
487
- * @see https://tailwindcss.com/docs/top-right-bottom-left
488
- */
489
- "inset-x": [{
490
- "inset-x": I()
491
- }],
492
- /**
493
- * Top / Bottom
494
- * @see https://tailwindcss.com/docs/top-right-bottom-left
495
- */
496
- "inset-y": [{
497
- "inset-y": I()
498
- }],
499
- /**
500
- * Start
501
- * @see https://tailwindcss.com/docs/top-right-bottom-left
502
- */
503
- start: [{
504
- start: I()
505
- }],
506
- /**
507
- * End
508
- * @see https://tailwindcss.com/docs/top-right-bottom-left
509
- */
510
- end: [{
511
- end: I()
512
- }],
513
- /**
514
- * Top
515
- * @see https://tailwindcss.com/docs/top-right-bottom-left
516
- */
517
- top: [{
518
- top: I()
519
- }],
520
- /**
521
- * Right
522
- * @see https://tailwindcss.com/docs/top-right-bottom-left
523
- */
524
- right: [{
525
- right: I()
526
- }],
527
- /**
528
- * Bottom
529
- * @see https://tailwindcss.com/docs/top-right-bottom-left
530
- */
531
- bottom: [{
532
- bottom: I()
533
- }],
534
- /**
535
- * Left
536
- * @see https://tailwindcss.com/docs/top-right-bottom-left
537
- */
538
- left: [{
539
- left: I()
540
- }],
541
- /**
542
- * Visibility
543
- * @see https://tailwindcss.com/docs/visibility
544
- */
545
- visibility: ["visible", "invisible", "collapse"],
546
- /**
547
- * Z-Index
548
- * @see https://tailwindcss.com/docs/z-index
549
- */
550
- z: [{
551
- z: [T, "auto", i, s]
552
- }],
553
- // ------------------------
554
- // --- Flexbox and Grid ---
555
- // ------------------------
556
- /**
557
- * Flex Basis
558
- * @see https://tailwindcss.com/docs/flex-basis
559
- */
560
- basis: [{
561
- basis: [K, "full", "auto", m, ...u()]
562
- }],
563
- /**
564
- * Flex Direction
565
- * @see https://tailwindcss.com/docs/flex-direction
566
- */
567
- "flex-direction": [{
568
- flex: ["row", "row-reverse", "col", "col-reverse"]
569
- }],
570
- /**
571
- * Flex Wrap
572
- * @see https://tailwindcss.com/docs/flex-wrap
573
- */
574
- "flex-wrap": [{
575
- flex: ["nowrap", "wrap", "wrap-reverse"]
576
- }],
577
- /**
578
- * Flex
579
- * @see https://tailwindcss.com/docs/flex
580
- */
581
- flex: [{
582
- flex: [p, K, "auto", "initial", "none", s]
583
- }],
584
- /**
585
- * Flex Grow
586
- * @see https://tailwindcss.com/docs/flex-grow
587
- */
588
- grow: [{
589
- grow: ["", p, i, s]
590
- }],
591
- /**
592
- * Flex Shrink
593
- * @see https://tailwindcss.com/docs/flex-shrink
594
- */
595
- shrink: [{
596
- shrink: ["", p, i, s]
597
- }],
598
- /**
599
- * Order
600
- * @see https://tailwindcss.com/docs/order
601
- */
602
- order: [{
603
- order: [T, "first", "last", "none", i, s]
604
- }],
605
- /**
606
- * Grid Template Columns
607
- * @see https://tailwindcss.com/docs/grid-template-columns
608
- */
609
- "grid-cols": [{
610
- "grid-cols": Te()
611
- }],
612
- /**
613
- * Grid Column Start / End
614
- * @see https://tailwindcss.com/docs/grid-column
615
- */
616
- "col-start-end": [{
617
- col: Le()
618
- }],
619
- /**
620
- * Grid Column Start
621
- * @see https://tailwindcss.com/docs/grid-column
622
- */
623
- "col-start": [{
624
- "col-start": ae()
625
- }],
626
- /**
627
- * Grid Column End
628
- * @see https://tailwindcss.com/docs/grid-column
629
- */
630
- "col-end": [{
631
- "col-end": ae()
632
- }],
633
- /**
634
- * Grid Template Rows
635
- * @see https://tailwindcss.com/docs/grid-template-rows
636
- */
637
- "grid-rows": [{
638
- "grid-rows": Te()
639
- }],
640
- /**
641
- * Grid Row Start / End
642
- * @see https://tailwindcss.com/docs/grid-row
643
- */
644
- "row-start-end": [{
645
- row: Le()
646
- }],
647
- /**
648
- * Grid Row Start
649
- * @see https://tailwindcss.com/docs/grid-row
650
- */
651
- "row-start": [{
652
- "row-start": ae()
653
- }],
654
- /**
655
- * Grid Row End
656
- * @see https://tailwindcss.com/docs/grid-row
657
- */
658
- "row-end": [{
659
- "row-end": ae()
660
- }],
661
- /**
662
- * Grid Auto Flow
663
- * @see https://tailwindcss.com/docs/grid-auto-flow
664
- */
665
- "grid-flow": [{
666
- "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
667
- }],
668
- /**
669
- * Grid Auto Columns
670
- * @see https://tailwindcss.com/docs/grid-auto-columns
671
- */
672
- "auto-cols": [{
673
- "auto-cols": ze()
674
- }],
675
- /**
676
- * Grid Auto Rows
677
- * @see https://tailwindcss.com/docs/grid-auto-rows
678
- */
679
- "auto-rows": [{
680
- "auto-rows": ze()
681
- }],
682
- /**
683
- * Gap
684
- * @see https://tailwindcss.com/docs/gap
685
- */
686
- gap: [{
687
- gap: u()
688
- }],
689
- /**
690
- * Gap X
691
- * @see https://tailwindcss.com/docs/gap
692
- */
693
- "gap-x": [{
694
- "gap-x": u()
695
- }],
696
- /**
697
- * Gap Y
698
- * @see https://tailwindcss.com/docs/gap
699
- */
700
- "gap-y": [{
701
- "gap-y": u()
702
- }],
703
- /**
704
- * Justify Content
705
- * @see https://tailwindcss.com/docs/justify-content
706
- */
707
- "justify-content": [{
708
- justify: [...pe(), "normal"]
709
- }],
710
- /**
711
- * Justify Items
712
- * @see https://tailwindcss.com/docs/justify-items
713
- */
714
- "justify-items": [{
715
- "justify-items": [...j(), "normal"]
716
- }],
717
- /**
718
- * Justify Self
719
- * @see https://tailwindcss.com/docs/justify-self
720
- */
721
- "justify-self": [{
722
- "justify-self": ["auto", ...j()]
723
- }],
724
- /**
725
- * Align Content
726
- * @see https://tailwindcss.com/docs/align-content
727
- */
728
- "align-content": [{
729
- content: ["normal", ...pe()]
730
- }],
731
- /**
732
- * Align Items
733
- * @see https://tailwindcss.com/docs/align-items
734
- */
735
- "align-items": [{
736
- items: [...j(), {
737
- baseline: ["", "last"]
738
- }]
739
- }],
740
- /**
741
- * Align Self
742
- * @see https://tailwindcss.com/docs/align-self
743
- */
744
- "align-self": [{
745
- self: ["auto", ...j(), {
746
- baseline: ["", "last"]
747
- }]
748
- }],
749
- /**
750
- * Place Content
751
- * @see https://tailwindcss.com/docs/place-content
752
- */
753
- "place-content": [{
754
- "place-content": pe()
755
- }],
756
- /**
757
- * Place Items
758
- * @see https://tailwindcss.com/docs/place-items
759
- */
760
- "place-items": [{
761
- "place-items": [...j(), "baseline"]
762
- }],
763
- /**
764
- * Place Self
765
- * @see https://tailwindcss.com/docs/place-self
766
- */
767
- "place-self": [{
768
- "place-self": ["auto", ...j()]
769
- }],
770
- // Spacing
771
- /**
772
- * Padding
773
- * @see https://tailwindcss.com/docs/padding
774
- */
775
- p: [{
776
- p: u()
777
- }],
778
- /**
779
- * Padding X
780
- * @see https://tailwindcss.com/docs/padding
781
- */
782
- px: [{
783
- px: u()
784
- }],
785
- /**
786
- * Padding Y
787
- * @see https://tailwindcss.com/docs/padding
788
- */
789
- py: [{
790
- py: u()
791
- }],
792
- /**
793
- * Padding Start
794
- * @see https://tailwindcss.com/docs/padding
795
- */
796
- ps: [{
797
- ps: u()
798
- }],
799
- /**
800
- * Padding End
801
- * @see https://tailwindcss.com/docs/padding
802
- */
803
- pe: [{
804
- pe: u()
805
- }],
806
- /**
807
- * Padding Top
808
- * @see https://tailwindcss.com/docs/padding
809
- */
810
- pt: [{
811
- pt: u()
812
- }],
813
- /**
814
- * Padding Right
815
- * @see https://tailwindcss.com/docs/padding
816
- */
817
- pr: [{
818
- pr: u()
819
- }],
820
- /**
821
- * Padding Bottom
822
- * @see https://tailwindcss.com/docs/padding
823
- */
824
- pb: [{
825
- pb: u()
826
- }],
827
- /**
828
- * Padding Left
829
- * @see https://tailwindcss.com/docs/padding
830
- */
831
- pl: [{
832
- pl: u()
833
- }],
834
- /**
835
- * Margin
836
- * @see https://tailwindcss.com/docs/margin
837
- */
838
- m: [{
839
- m: O()
840
- }],
841
- /**
842
- * Margin X
843
- * @see https://tailwindcss.com/docs/margin
844
- */
845
- mx: [{
846
- mx: O()
847
- }],
848
- /**
849
- * Margin Y
850
- * @see https://tailwindcss.com/docs/margin
851
- */
852
- my: [{
853
- my: O()
854
- }],
855
- /**
856
- * Margin Start
857
- * @see https://tailwindcss.com/docs/margin
858
- */
859
- ms: [{
860
- ms: O()
861
- }],
862
- /**
863
- * Margin End
864
- * @see https://tailwindcss.com/docs/margin
865
- */
866
- me: [{
867
- me: O()
868
- }],
869
- /**
870
- * Margin Top
871
- * @see https://tailwindcss.com/docs/margin
872
- */
873
- mt: [{
874
- mt: O()
875
- }],
876
- /**
877
- * Margin Right
878
- * @see https://tailwindcss.com/docs/margin
879
- */
880
- mr: [{
881
- mr: O()
882
- }],
883
- /**
884
- * Margin Bottom
885
- * @see https://tailwindcss.com/docs/margin
886
- */
887
- mb: [{
888
- mb: O()
889
- }],
890
- /**
891
- * Margin Left
892
- * @see https://tailwindcss.com/docs/margin
893
- */
894
- ml: [{
895
- ml: O()
896
- }],
897
- /**
898
- * Space Between X
899
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
900
- */
901
- "space-x": [{
902
- "space-x": u()
903
- }],
904
- /**
905
- * Space Between X Reverse
906
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
907
- */
908
- "space-x-reverse": ["space-x-reverse"],
909
- /**
910
- * Space Between Y
911
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
912
- */
913
- "space-y": [{
914
- "space-y": u()
915
- }],
916
- /**
917
- * Space Between Y Reverse
918
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
919
- */
920
- "space-y-reverse": ["space-y-reverse"],
921
- // --------------
922
- // --- Sizing ---
923
- // --------------
924
- /**
925
- * Size
926
- * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
927
- */
928
- size: [{
929
- size: D()
930
- }],
931
- /**
932
- * Width
933
- * @see https://tailwindcss.com/docs/width
934
- */
935
- w: [{
936
- w: [m, "screen", ...D()]
937
- }],
938
- /**
939
- * Min-Width
940
- * @see https://tailwindcss.com/docs/min-width
941
- */
942
- "min-w": [{
943
- "min-w": [
944
- m,
945
- "screen",
946
- /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
947
- "none",
948
- ...D()
949
- ]
950
- }],
951
- /**
952
- * Max-Width
953
- * @see https://tailwindcss.com/docs/max-width
954
- */
955
- "max-w": [{
956
- "max-w": [
957
- m,
958
- "screen",
959
- "none",
960
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
961
- "prose",
962
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
963
- {
964
- screen: [l]
965
- },
966
- ...D()
967
- ]
968
- }],
969
- /**
970
- * Height
971
- * @see https://tailwindcss.com/docs/height
972
- */
973
- h: [{
974
- h: ["screen", "lh", ...D()]
975
- }],
976
- /**
977
- * Min-Height
978
- * @see https://tailwindcss.com/docs/min-height
979
- */
980
- "min-h": [{
981
- "min-h": ["screen", "lh", "none", ...D()]
982
- }],
983
- /**
984
- * Max-Height
985
- * @see https://tailwindcss.com/docs/max-height
986
- */
987
- "max-h": [{
988
- "max-h": ["screen", "lh", ...D()]
989
- }],
990
- // ------------------
991
- // --- Typography ---
992
- // ------------------
993
- /**
994
- * Font Size
995
- * @see https://tailwindcss.com/docs/font-size
996
- */
997
- "font-size": [{
998
- text: ["base", r, re, V]
999
- }],
1000
- /**
1001
- * Font Smoothing
1002
- * @see https://tailwindcss.com/docs/font-smoothing
1003
- */
1004
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1005
- /**
1006
- * Font Style
1007
- * @see https://tailwindcss.com/docs/font-style
1008
- */
1009
- "font-style": ["italic", "not-italic"],
1010
- /**
1011
- * Font Weight
1012
- * @see https://tailwindcss.com/docs/font-weight
1013
- */
1014
- "font-weight": [{
1015
- font: [o, i, ve]
1016
- }],
1017
- /**
1018
- * Font Stretch
1019
- * @see https://tailwindcss.com/docs/font-stretch
1020
- */
1021
- "font-stretch": [{
1022
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", he, s]
1023
- }],
1024
- /**
1025
- * Font Family
1026
- * @see https://tailwindcss.com/docs/font-family
1027
- */
1028
- "font-family": [{
1029
- font: [sr, s, t]
1030
- }],
1031
- /**
1032
- * Font Variant Numeric
1033
- * @see https://tailwindcss.com/docs/font-variant-numeric
1034
- */
1035
- "fvn-normal": ["normal-nums"],
1036
- /**
1037
- * Font Variant Numeric
1038
- * @see https://tailwindcss.com/docs/font-variant-numeric
1039
- */
1040
- "fvn-ordinal": ["ordinal"],
1041
- /**
1042
- * Font Variant Numeric
1043
- * @see https://tailwindcss.com/docs/font-variant-numeric
1044
- */
1045
- "fvn-slashed-zero": ["slashed-zero"],
1046
- /**
1047
- * Font Variant Numeric
1048
- * @see https://tailwindcss.com/docs/font-variant-numeric
1049
- */
1050
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1051
- /**
1052
- * Font Variant Numeric
1053
- * @see https://tailwindcss.com/docs/font-variant-numeric
1054
- */
1055
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1056
- /**
1057
- * Font Variant Numeric
1058
- * @see https://tailwindcss.com/docs/font-variant-numeric
1059
- */
1060
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1061
- /**
1062
- * Letter Spacing
1063
- * @see https://tailwindcss.com/docs/letter-spacing
1064
- */
1065
- tracking: [{
1066
- tracking: [a, i, s]
1067
- }],
1068
- /**
1069
- * Line Clamp
1070
- * @see https://tailwindcss.com/docs/line-clamp
1071
- */
1072
- "line-clamp": [{
1073
- "line-clamp": [p, "none", i, ve]
1074
- }],
1075
- /**
1076
- * Line Height
1077
- * @see https://tailwindcss.com/docs/line-height
1078
- */
1079
- leading: [{
1080
- leading: [
1081
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1082
- n,
1083
- ...u()
1084
- ]
1085
- }],
1086
- /**
1087
- * List Style Image
1088
- * @see https://tailwindcss.com/docs/list-style-image
1089
- */
1090
- "list-image": [{
1091
- "list-image": ["none", i, s]
1092
- }],
1093
- /**
1094
- * List Style Position
1095
- * @see https://tailwindcss.com/docs/list-style-position
1096
- */
1097
- "list-style-position": [{
1098
- list: ["inside", "outside"]
1099
- }],
1100
- /**
1101
- * List Style Type
1102
- * @see https://tailwindcss.com/docs/list-style-type
1103
- */
1104
- "list-style-type": [{
1105
- list: ["disc", "decimal", "none", i, s]
1106
- }],
1107
- /**
1108
- * Text Alignment
1109
- * @see https://tailwindcss.com/docs/text-align
1110
- */
1111
- "text-alignment": [{
1112
- text: ["left", "center", "right", "justify", "start", "end"]
1113
- }],
1114
- /**
1115
- * Placeholder Color
1116
- * @deprecated since Tailwind CSS v3.0.0
1117
- * @see https://v3.tailwindcss.com/docs/placeholder-color
1118
- */
1119
- "placeholder-color": [{
1120
- placeholder: c()
1121
- }],
1122
- /**
1123
- * Text Color
1124
- * @see https://tailwindcss.com/docs/text-color
1125
- */
1126
- "text-color": [{
1127
- text: c()
1128
- }],
1129
- /**
1130
- * Text Decoration
1131
- * @see https://tailwindcss.com/docs/text-decoration
1132
- */
1133
- "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1134
- /**
1135
- * Text Decoration Style
1136
- * @see https://tailwindcss.com/docs/text-decoration-style
1137
- */
1138
- "text-decoration-style": [{
1139
- decoration: [...ne(), "wavy"]
1140
- }],
1141
- /**
1142
- * Text Decoration Thickness
1143
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1144
- */
1145
- "text-decoration-thickness": [{
1146
- decoration: [p, "from-font", "auto", i, V]
1147
- }],
1148
- /**
1149
- * Text Decoration Color
1150
- * @see https://tailwindcss.com/docs/text-decoration-color
1151
- */
1152
- "text-decoration-color": [{
1153
- decoration: c()
1154
- }],
1155
- /**
1156
- * Text Underline Offset
1157
- * @see https://tailwindcss.com/docs/text-underline-offset
1158
- */
1159
- "underline-offset": [{
1160
- "underline-offset": [p, "auto", i, s]
1161
- }],
1162
- /**
1163
- * Text Transform
1164
- * @see https://tailwindcss.com/docs/text-transform
1165
- */
1166
- "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1167
- /**
1168
- * Text Overflow
1169
- * @see https://tailwindcss.com/docs/text-overflow
1170
- */
1171
- "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1172
- /**
1173
- * Text Wrap
1174
- * @see https://tailwindcss.com/docs/text-wrap
1175
- */
1176
- "text-wrap": [{
1177
- text: ["wrap", "nowrap", "balance", "pretty"]
1178
- }],
1179
- /**
1180
- * Text Indent
1181
- * @see https://tailwindcss.com/docs/text-indent
1182
- */
1183
- indent: [{
1184
- indent: u()
1185
- }],
1186
- /**
1187
- * Vertical Alignment
1188
- * @see https://tailwindcss.com/docs/vertical-align
1189
- */
1190
- "vertical-align": [{
1191
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", i, s]
1192
- }],
1193
- /**
1194
- * Whitespace
1195
- * @see https://tailwindcss.com/docs/whitespace
1196
- */
1197
- whitespace: [{
1198
- whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1199
- }],
1200
- /**
1201
- * Word Break
1202
- * @see https://tailwindcss.com/docs/word-break
1203
- */
1204
- break: [{
1205
- break: ["normal", "words", "all", "keep"]
1206
- }],
1207
- /**
1208
- * Overflow Wrap
1209
- * @see https://tailwindcss.com/docs/overflow-wrap
1210
- */
1211
- wrap: [{
1212
- wrap: ["break-word", "anywhere", "normal"]
1213
- }],
1214
- /**
1215
- * Hyphens
1216
- * @see https://tailwindcss.com/docs/hyphens
1217
- */
1218
- hyphens: [{
1219
- hyphens: ["none", "manual", "auto"]
1220
- }],
1221
- /**
1222
- * Content
1223
- * @see https://tailwindcss.com/docs/content
1224
- */
1225
- content: [{
1226
- content: ["none", i, s]
1227
- }],
1228
- // -------------------
1229
- // --- Backgrounds ---
1230
- // -------------------
1231
- /**
1232
- * Background Attachment
1233
- * @see https://tailwindcss.com/docs/background-attachment
1234
- */
1235
- "bg-attachment": [{
1236
- bg: ["fixed", "local", "scroll"]
1237
- }],
1238
- /**
1239
- * Background Clip
1240
- * @see https://tailwindcss.com/docs/background-clip
1241
- */
1242
- "bg-clip": [{
1243
- "bg-clip": ["border", "padding", "content", "text"]
1244
- }],
1245
- /**
1246
- * Background Origin
1247
- * @see https://tailwindcss.com/docs/background-origin
1248
- */
1249
- "bg-origin": [{
1250
- "bg-origin": ["border", "padding", "content"]
1251
- }],
1252
- /**
1253
- * Background Position
1254
- * @see https://tailwindcss.com/docs/background-position
1255
- */
1256
- "bg-position": [{
1257
- bg: Me()
1258
- }],
1259
- /**
1260
- * Background Repeat
1261
- * @see https://tailwindcss.com/docs/background-repeat
1262
- */
1263
- "bg-repeat": [{
1264
- bg: Pe()
1265
- }],
1266
- /**
1267
- * Background Size
1268
- * @see https://tailwindcss.com/docs/background-size
1269
- */
1270
- "bg-size": [{
1271
- bg: De()
1272
- }],
1273
- /**
1274
- * Background Image
1275
- * @see https://tailwindcss.com/docs/background-image
1276
- */
1277
- "bg-image": [{
1278
- bg: ["none", {
1279
- linear: [{
1280
- to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1281
- }, T, i, s],
1282
- radial: ["", i, s],
1283
- conic: [T, i, s]
1284
- }, lr, nr]
1285
- }],
1286
- /**
1287
- * Background Color
1288
- * @see https://tailwindcss.com/docs/background-color
1289
- */
1290
- "bg-color": [{
1291
- bg: c()
1292
- }],
1293
- /**
1294
- * Gradient Color Stops From Position
1295
- * @see https://tailwindcss.com/docs/gradient-color-stops
1296
- */
1297
- "gradient-from-pos": [{
1298
- from: ge()
1299
- }],
1300
- /**
1301
- * Gradient Color Stops Via Position
1302
- * @see https://tailwindcss.com/docs/gradient-color-stops
1303
- */
1304
- "gradient-via-pos": [{
1305
- via: ge()
1306
- }],
1307
- /**
1308
- * Gradient Color Stops To Position
1309
- * @see https://tailwindcss.com/docs/gradient-color-stops
1310
- */
1311
- "gradient-to-pos": [{
1312
- to: ge()
1313
- }],
1314
- /**
1315
- * Gradient Color Stops From
1316
- * @see https://tailwindcss.com/docs/gradient-color-stops
1317
- */
1318
- "gradient-from": [{
1319
- from: c()
1320
- }],
1321
- /**
1322
- * Gradient Color Stops Via
1323
- * @see https://tailwindcss.com/docs/gradient-color-stops
1324
- */
1325
- "gradient-via": [{
1326
- via: c()
1327
- }],
1328
- /**
1329
- * Gradient Color Stops To
1330
- * @see https://tailwindcss.com/docs/gradient-color-stops
1331
- */
1332
- "gradient-to": [{
1333
- to: c()
1334
- }],
1335
- // ---------------
1336
- // --- Borders ---
1337
- // ---------------
1338
- /**
1339
- * Border Radius
1340
- * @see https://tailwindcss.com/docs/border-radius
1341
- */
1342
- rounded: [{
1343
- rounded: _()
1344
- }],
1345
- /**
1346
- * Border Radius Start
1347
- * @see https://tailwindcss.com/docs/border-radius
1348
- */
1349
- "rounded-s": [{
1350
- "rounded-s": _()
1351
- }],
1352
- /**
1353
- * Border Radius End
1354
- * @see https://tailwindcss.com/docs/border-radius
1355
- */
1356
- "rounded-e": [{
1357
- "rounded-e": _()
1358
- }],
1359
- /**
1360
- * Border Radius Top
1361
- * @see https://tailwindcss.com/docs/border-radius
1362
- */
1363
- "rounded-t": [{
1364
- "rounded-t": _()
1365
- }],
1366
- /**
1367
- * Border Radius Right
1368
- * @see https://tailwindcss.com/docs/border-radius
1369
- */
1370
- "rounded-r": [{
1371
- "rounded-r": _()
1372
- }],
1373
- /**
1374
- * Border Radius Bottom
1375
- * @see https://tailwindcss.com/docs/border-radius
1376
- */
1377
- "rounded-b": [{
1378
- "rounded-b": _()
1379
- }],
1380
- /**
1381
- * Border Radius Left
1382
- * @see https://tailwindcss.com/docs/border-radius
1383
- */
1384
- "rounded-l": [{
1385
- "rounded-l": _()
1386
- }],
1387
- /**
1388
- * Border Radius Start Start
1389
- * @see https://tailwindcss.com/docs/border-radius
1390
- */
1391
- "rounded-ss": [{
1392
- "rounded-ss": _()
1393
- }],
1394
- /**
1395
- * Border Radius Start End
1396
- * @see https://tailwindcss.com/docs/border-radius
1397
- */
1398
- "rounded-se": [{
1399
- "rounded-se": _()
1400
- }],
1401
- /**
1402
- * Border Radius End End
1403
- * @see https://tailwindcss.com/docs/border-radius
1404
- */
1405
- "rounded-ee": [{
1406
- "rounded-ee": _()
1407
- }],
1408
- /**
1409
- * Border Radius End Start
1410
- * @see https://tailwindcss.com/docs/border-radius
1411
- */
1412
- "rounded-es": [{
1413
- "rounded-es": _()
1414
- }],
1415
- /**
1416
- * Border Radius Top Left
1417
- * @see https://tailwindcss.com/docs/border-radius
1418
- */
1419
- "rounded-tl": [{
1420
- "rounded-tl": _()
1421
- }],
1422
- /**
1423
- * Border Radius Top Right
1424
- * @see https://tailwindcss.com/docs/border-radius
1425
- */
1426
- "rounded-tr": [{
1427
- "rounded-tr": _()
1428
- }],
1429
- /**
1430
- * Border Radius Bottom Right
1431
- * @see https://tailwindcss.com/docs/border-radius
1432
- */
1433
- "rounded-br": [{
1434
- "rounded-br": _()
1435
- }],
1436
- /**
1437
- * Border Radius Bottom Left
1438
- * @see https://tailwindcss.com/docs/border-radius
1439
- */
1440
- "rounded-bl": [{
1441
- "rounded-bl": _()
1442
- }],
1443
- /**
1444
- * Border Width
1445
- * @see https://tailwindcss.com/docs/border-width
1446
- */
1447
- "border-w": [{
1448
- border: y()
1449
- }],
1450
- /**
1451
- * Border Width X
1452
- * @see https://tailwindcss.com/docs/border-width
1453
- */
1454
- "border-w-x": [{
1455
- "border-x": y()
1456
- }],
1457
- /**
1458
- * Border Width Y
1459
- * @see https://tailwindcss.com/docs/border-width
1460
- */
1461
- "border-w-y": [{
1462
- "border-y": y()
1463
- }],
1464
- /**
1465
- * Border Width Start
1466
- * @see https://tailwindcss.com/docs/border-width
1467
- */
1468
- "border-w-s": [{
1469
- "border-s": y()
1470
- }],
1471
- /**
1472
- * Border Width End
1473
- * @see https://tailwindcss.com/docs/border-width
1474
- */
1475
- "border-w-e": [{
1476
- "border-e": y()
1477
- }],
1478
- /**
1479
- * Border Width Top
1480
- * @see https://tailwindcss.com/docs/border-width
1481
- */
1482
- "border-w-t": [{
1483
- "border-t": y()
1484
- }],
1485
- /**
1486
- * Border Width Right
1487
- * @see https://tailwindcss.com/docs/border-width
1488
- */
1489
- "border-w-r": [{
1490
- "border-r": y()
1491
- }],
1492
- /**
1493
- * Border Width Bottom
1494
- * @see https://tailwindcss.com/docs/border-width
1495
- */
1496
- "border-w-b": [{
1497
- "border-b": y()
1498
- }],
1499
- /**
1500
- * Border Width Left
1501
- * @see https://tailwindcss.com/docs/border-width
1502
- */
1503
- "border-w-l": [{
1504
- "border-l": y()
1505
- }],
1506
- /**
1507
- * Divide Width X
1508
- * @see https://tailwindcss.com/docs/border-width#between-children
1509
- */
1510
- "divide-x": [{
1511
- "divide-x": y()
1512
- }],
1513
- /**
1514
- * Divide Width X Reverse
1515
- * @see https://tailwindcss.com/docs/border-width#between-children
1516
- */
1517
- "divide-x-reverse": ["divide-x-reverse"],
1518
- /**
1519
- * Divide Width Y
1520
- * @see https://tailwindcss.com/docs/border-width#between-children
1521
- */
1522
- "divide-y": [{
1523
- "divide-y": y()
1524
- }],
1525
- /**
1526
- * Divide Width Y Reverse
1527
- * @see https://tailwindcss.com/docs/border-width#between-children
1528
- */
1529
- "divide-y-reverse": ["divide-y-reverse"],
1530
- /**
1531
- * Border Style
1532
- * @see https://tailwindcss.com/docs/border-style
1533
- */
1534
- "border-style": [{
1535
- border: [...ne(), "hidden", "none"]
1536
- }],
1537
- /**
1538
- * Divide Style
1539
- * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1540
- */
1541
- "divide-style": [{
1542
- divide: [...ne(), "hidden", "none"]
1543
- }],
1544
- /**
1545
- * Border Color
1546
- * @see https://tailwindcss.com/docs/border-color
1547
- */
1548
- "border-color": [{
1549
- border: c()
1550
- }],
1551
- /**
1552
- * Border Color X
1553
- * @see https://tailwindcss.com/docs/border-color
1554
- */
1555
- "border-color-x": [{
1556
- "border-x": c()
1557
- }],
1558
- /**
1559
- * Border Color Y
1560
- * @see https://tailwindcss.com/docs/border-color
1561
- */
1562
- "border-color-y": [{
1563
- "border-y": c()
1564
- }],
1565
- /**
1566
- * Border Color S
1567
- * @see https://tailwindcss.com/docs/border-color
1568
- */
1569
- "border-color-s": [{
1570
- "border-s": c()
1571
- }],
1572
- /**
1573
- * Border Color E
1574
- * @see https://tailwindcss.com/docs/border-color
1575
- */
1576
- "border-color-e": [{
1577
- "border-e": c()
1578
- }],
1579
- /**
1580
- * Border Color Top
1581
- * @see https://tailwindcss.com/docs/border-color
1582
- */
1583
- "border-color-t": [{
1584
- "border-t": c()
1585
- }],
1586
- /**
1587
- * Border Color Right
1588
- * @see https://tailwindcss.com/docs/border-color
1589
- */
1590
- "border-color-r": [{
1591
- "border-r": c()
1592
- }],
1593
- /**
1594
- * Border Color Bottom
1595
- * @see https://tailwindcss.com/docs/border-color
1596
- */
1597
- "border-color-b": [{
1598
- "border-b": c()
1599
- }],
1600
- /**
1601
- * Border Color Left
1602
- * @see https://tailwindcss.com/docs/border-color
1603
- */
1604
- "border-color-l": [{
1605
- "border-l": c()
1606
- }],
1607
- /**
1608
- * Divide Color
1609
- * @see https://tailwindcss.com/docs/divide-color
1610
- */
1611
- "divide-color": [{
1612
- divide: c()
1613
- }],
1614
- /**
1615
- * Outline Style
1616
- * @see https://tailwindcss.com/docs/outline-style
1617
- */
1618
- "outline-style": [{
1619
- outline: [...ne(), "none", "hidden"]
1620
- }],
1621
- /**
1622
- * Outline Offset
1623
- * @see https://tailwindcss.com/docs/outline-offset
1624
- */
1625
- "outline-offset": [{
1626
- "outline-offset": [p, i, s]
1627
- }],
1628
- /**
1629
- * Outline Width
1630
- * @see https://tailwindcss.com/docs/outline-width
1631
- */
1632
- "outline-w": [{
1633
- outline: ["", p, re, V]
1634
- }],
1635
- /**
1636
- * Outline Color
1637
- * @see https://tailwindcss.com/docs/outline-color
1638
- */
1639
- "outline-color": [{
1640
- outline: c()
1641
- }],
1642
- // ---------------
1643
- // --- Effects ---
1644
- // ---------------
1645
- /**
1646
- * Box Shadow
1647
- * @see https://tailwindcss.com/docs/box-shadow
1648
- */
1649
- shadow: [{
1650
- shadow: [
1651
- // Deprecated since Tailwind CSS v4.0.0
1652
- "",
1653
- "none",
1654
- b,
1655
- de,
1656
- ce
1657
- ]
1658
- }],
1659
- /**
1660
- * Box Shadow Color
1661
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1662
- */
1663
- "shadow-color": [{
1664
- shadow: c()
1665
- }],
1666
- /**
1667
- * Inset Box Shadow
1668
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1669
- */
1670
- "inset-shadow": [{
1671
- "inset-shadow": ["none", k, de, ce]
1672
- }],
1673
- /**
1674
- * Inset Box Shadow Color
1675
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1676
- */
1677
- "inset-shadow-color": [{
1678
- "inset-shadow": c()
1679
- }],
1680
- /**
1681
- * Ring Width
1682
- * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1683
- */
1684
- "ring-w": [{
1685
- ring: y()
1686
- }],
1687
- /**
1688
- * Ring Width Inset
1689
- * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
1690
- * @deprecated since Tailwind CSS v4.0.0
1691
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1692
- */
1693
- "ring-w-inset": ["ring-inset"],
1694
- /**
1695
- * Ring Color
1696
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1697
- */
1698
- "ring-color": [{
1699
- ring: c()
1700
- }],
1701
- /**
1702
- * Ring Offset Width
1703
- * @see https://v3.tailwindcss.com/docs/ring-offset-width
1704
- * @deprecated since Tailwind CSS v4.0.0
1705
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1706
- */
1707
- "ring-offset-w": [{
1708
- "ring-offset": [p, V]
1709
- }],
1710
- /**
1711
- * Ring Offset Color
1712
- * @see https://v3.tailwindcss.com/docs/ring-offset-color
1713
- * @deprecated since Tailwind CSS v4.0.0
1714
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1715
- */
1716
- "ring-offset-color": [{
1717
- "ring-offset": c()
1718
- }],
1719
- /**
1720
- * Inset Ring Width
1721
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
1722
- */
1723
- "inset-ring-w": [{
1724
- "inset-ring": y()
1725
- }],
1726
- /**
1727
- * Inset Ring Color
1728
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1729
- */
1730
- "inset-ring-color": [{
1731
- "inset-ring": c()
1732
- }],
1733
- /**
1734
- * Text Shadow
1735
- * @see https://tailwindcss.com/docs/text-shadow
1736
- */
1737
- "text-shadow": [{
1738
- "text-shadow": ["none", A, de, ce]
1739
- }],
1740
- /**
1741
- * Text Shadow Color
1742
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1743
- */
1744
- "text-shadow-color": [{
1745
- "text-shadow": c()
1746
- }],
1747
- /**
1748
- * Opacity
1749
- * @see https://tailwindcss.com/docs/opacity
1750
- */
1751
- opacity: [{
1752
- opacity: [p, i, s]
1753
- }],
1754
- /**
1755
- * Mix Blend Mode
1756
- * @see https://tailwindcss.com/docs/mix-blend-mode
1757
- */
1758
- "mix-blend": [{
1759
- "mix-blend": [...Ve(), "plus-darker", "plus-lighter"]
1760
- }],
1761
- /**
1762
- * Background Blend Mode
1763
- * @see https://tailwindcss.com/docs/background-blend-mode
1764
- */
1765
- "bg-blend": [{
1766
- "bg-blend": Ve()
1767
- }],
1768
- /**
1769
- * Mask Clip
1770
- * @see https://tailwindcss.com/docs/mask-clip
1771
- */
1772
- "mask-clip": [{
1773
- "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
1774
- }, "mask-no-clip"],
1775
- /**
1776
- * Mask Composite
1777
- * @see https://tailwindcss.com/docs/mask-composite
1778
- */
1779
- "mask-composite": [{
1780
- mask: ["add", "subtract", "intersect", "exclude"]
1781
- }],
1782
- /**
1783
- * Mask Image
1784
- * @see https://tailwindcss.com/docs/mask-image
1785
- */
1786
- "mask-image-linear-pos": [{
1787
- "mask-linear": [p]
1788
- }],
1789
- "mask-image-linear-from-pos": [{
1790
- "mask-linear-from": v()
1791
- }],
1792
- "mask-image-linear-to-pos": [{
1793
- "mask-linear-to": v()
1794
- }],
1795
- "mask-image-linear-from-color": [{
1796
- "mask-linear-from": c()
1797
- }],
1798
- "mask-image-linear-to-color": [{
1799
- "mask-linear-to": c()
1800
- }],
1801
- "mask-image-t-from-pos": [{
1802
- "mask-t-from": v()
1803
- }],
1804
- "mask-image-t-to-pos": [{
1805
- "mask-t-to": v()
1806
- }],
1807
- "mask-image-t-from-color": [{
1808
- "mask-t-from": c()
1809
- }],
1810
- "mask-image-t-to-color": [{
1811
- "mask-t-to": c()
1812
- }],
1813
- "mask-image-r-from-pos": [{
1814
- "mask-r-from": v()
1815
- }],
1816
- "mask-image-r-to-pos": [{
1817
- "mask-r-to": v()
1818
- }],
1819
- "mask-image-r-from-color": [{
1820
- "mask-r-from": c()
1821
- }],
1822
- "mask-image-r-to-color": [{
1823
- "mask-r-to": c()
1824
- }],
1825
- "mask-image-b-from-pos": [{
1826
- "mask-b-from": v()
1827
- }],
1828
- "mask-image-b-to-pos": [{
1829
- "mask-b-to": v()
1830
- }],
1831
- "mask-image-b-from-color": [{
1832
- "mask-b-from": c()
1833
- }],
1834
- "mask-image-b-to-color": [{
1835
- "mask-b-to": c()
1836
- }],
1837
- "mask-image-l-from-pos": [{
1838
- "mask-l-from": v()
1839
- }],
1840
- "mask-image-l-to-pos": [{
1841
- "mask-l-to": v()
1842
- }],
1843
- "mask-image-l-from-color": [{
1844
- "mask-l-from": c()
1845
- }],
1846
- "mask-image-l-to-color": [{
1847
- "mask-l-to": c()
1848
- }],
1849
- "mask-image-x-from-pos": [{
1850
- "mask-x-from": v()
1851
- }],
1852
- "mask-image-x-to-pos": [{
1853
- "mask-x-to": v()
1854
- }],
1855
- "mask-image-x-from-color": [{
1856
- "mask-x-from": c()
1857
- }],
1858
- "mask-image-x-to-color": [{
1859
- "mask-x-to": c()
1860
- }],
1861
- "mask-image-y-from-pos": [{
1862
- "mask-y-from": v()
1863
- }],
1864
- "mask-image-y-to-pos": [{
1865
- "mask-y-to": v()
1866
- }],
1867
- "mask-image-y-from-color": [{
1868
- "mask-y-from": c()
1869
- }],
1870
- "mask-image-y-to-color": [{
1871
- "mask-y-to": c()
1872
- }],
1873
- "mask-image-radial": [{
1874
- "mask-radial": [i, s]
1875
- }],
1876
- "mask-image-radial-from-pos": [{
1877
- "mask-radial-from": v()
1878
- }],
1879
- "mask-image-radial-to-pos": [{
1880
- "mask-radial-to": v()
1881
- }],
1882
- "mask-image-radial-from-color": [{
1883
- "mask-radial-from": c()
1884
- }],
1885
- "mask-image-radial-to-color": [{
1886
- "mask-radial-to": c()
1887
- }],
1888
- "mask-image-radial-shape": [{
1889
- "mask-radial": ["circle", "ellipse"]
1890
- }],
1891
- "mask-image-radial-size": [{
1892
- "mask-radial": [{
1893
- closest: ["side", "corner"],
1894
- farthest: ["side", "corner"]
1895
- }]
1896
- }],
1897
- "mask-image-radial-pos": [{
1898
- "mask-radial-at": G()
1899
- }],
1900
- "mask-image-conic-pos": [{
1901
- "mask-conic": [p]
1902
- }],
1903
- "mask-image-conic-from-pos": [{
1904
- "mask-conic-from": v()
1905
- }],
1906
- "mask-image-conic-to-pos": [{
1907
- "mask-conic-to": v()
1908
- }],
1909
- "mask-image-conic-from-color": [{
1910
- "mask-conic-from": c()
1911
- }],
1912
- "mask-image-conic-to-color": [{
1913
- "mask-conic-to": c()
1914
- }],
1915
- /**
1916
- * Mask Mode
1917
- * @see https://tailwindcss.com/docs/mask-mode
1918
- */
1919
- "mask-mode": [{
1920
- mask: ["alpha", "luminance", "match"]
1921
- }],
1922
- /**
1923
- * Mask Origin
1924
- * @see https://tailwindcss.com/docs/mask-origin
1925
- */
1926
- "mask-origin": [{
1927
- "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
1928
- }],
1929
- /**
1930
- * Mask Position
1931
- * @see https://tailwindcss.com/docs/mask-position
1932
- */
1933
- "mask-position": [{
1934
- mask: Me()
1935
- }],
1936
- /**
1937
- * Mask Repeat
1938
- * @see https://tailwindcss.com/docs/mask-repeat
1939
- */
1940
- "mask-repeat": [{
1941
- mask: Pe()
1942
- }],
1943
- /**
1944
- * Mask Size
1945
- * @see https://tailwindcss.com/docs/mask-size
1946
- */
1947
- "mask-size": [{
1948
- mask: De()
1949
- }],
1950
- /**
1951
- * Mask Type
1952
- * @see https://tailwindcss.com/docs/mask-type
1953
- */
1954
- "mask-type": [{
1955
- "mask-type": ["alpha", "luminance"]
1956
- }],
1957
- /**
1958
- * Mask Image
1959
- * @see https://tailwindcss.com/docs/mask-image
1960
- */
1961
- "mask-image": [{
1962
- mask: ["none", i, s]
1963
- }],
1964
- // ---------------
1965
- // --- Filters ---
1966
- // ---------------
1967
- /**
1968
- * Filter
1969
- * @see https://tailwindcss.com/docs/filter
1970
- */
1971
- filter: [{
1972
- filter: [
1973
- // Deprecated since Tailwind CSS v3.0.0
1974
- "",
1975
- "none",
1976
- i,
1977
- s
1978
- ]
1979
- }],
1980
- /**
1981
- * Blur
1982
- * @see https://tailwindcss.com/docs/blur
1983
- */
1984
- blur: [{
1985
- blur: Fe()
1986
- }],
1987
- /**
1988
- * Brightness
1989
- * @see https://tailwindcss.com/docs/brightness
1990
- */
1991
- brightness: [{
1992
- brightness: [p, i, s]
1993
- }],
1994
- /**
1995
- * Contrast
1996
- * @see https://tailwindcss.com/docs/contrast
1997
- */
1998
- contrast: [{
1999
- contrast: [p, i, s]
2000
- }],
2001
- /**
2002
- * Drop Shadow
2003
- * @see https://tailwindcss.com/docs/drop-shadow
2004
- */
2005
- "drop-shadow": [{
2006
- "drop-shadow": [
2007
- // Deprecated since Tailwind CSS v4.0.0
2008
- "",
2009
- "none",
2010
- z,
2011
- de,
2012
- ce
2013
- ]
2014
- }],
2015
- /**
2016
- * Drop Shadow Color
2017
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2018
- */
2019
- "drop-shadow-color": [{
2020
- "drop-shadow": c()
2021
- }],
2022
- /**
2023
- * Grayscale
2024
- * @see https://tailwindcss.com/docs/grayscale
2025
- */
2026
- grayscale: [{
2027
- grayscale: ["", p, i, s]
2028
- }],
2029
- /**
2030
- * Hue Rotate
2031
- * @see https://tailwindcss.com/docs/hue-rotate
2032
- */
2033
- "hue-rotate": [{
2034
- "hue-rotate": [p, i, s]
2035
- }],
2036
- /**
2037
- * Invert
2038
- * @see https://tailwindcss.com/docs/invert
2039
- */
2040
- invert: [{
2041
- invert: ["", p, i, s]
2042
- }],
2043
- /**
2044
- * Saturate
2045
- * @see https://tailwindcss.com/docs/saturate
2046
- */
2047
- saturate: [{
2048
- saturate: [p, i, s]
2049
- }],
2050
- /**
2051
- * Sepia
2052
- * @see https://tailwindcss.com/docs/sepia
2053
- */
2054
- sepia: [{
2055
- sepia: ["", p, i, s]
2056
- }],
2057
- /**
2058
- * Backdrop Filter
2059
- * @see https://tailwindcss.com/docs/backdrop-filter
2060
- */
2061
- "backdrop-filter": [{
2062
- "backdrop-filter": [
2063
- // Deprecated since Tailwind CSS v3.0.0
2064
- "",
2065
- "none",
2066
- i,
2067
- s
2068
- ]
2069
- }],
2070
- /**
2071
- * Backdrop Blur
2072
- * @see https://tailwindcss.com/docs/backdrop-blur
2073
- */
2074
- "backdrop-blur": [{
2075
- "backdrop-blur": Fe()
2076
- }],
2077
- /**
2078
- * Backdrop Brightness
2079
- * @see https://tailwindcss.com/docs/backdrop-brightness
2080
- */
2081
- "backdrop-brightness": [{
2082
- "backdrop-brightness": [p, i, s]
2083
- }],
2084
- /**
2085
- * Backdrop Contrast
2086
- * @see https://tailwindcss.com/docs/backdrop-contrast
2087
- */
2088
- "backdrop-contrast": [{
2089
- "backdrop-contrast": [p, i, s]
2090
- }],
2091
- /**
2092
- * Backdrop Grayscale
2093
- * @see https://tailwindcss.com/docs/backdrop-grayscale
2094
- */
2095
- "backdrop-grayscale": [{
2096
- "backdrop-grayscale": ["", p, i, s]
2097
- }],
2098
- /**
2099
- * Backdrop Hue Rotate
2100
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2101
- */
2102
- "backdrop-hue-rotate": [{
2103
- "backdrop-hue-rotate": [p, i, s]
2104
- }],
2105
- /**
2106
- * Backdrop Invert
2107
- * @see https://tailwindcss.com/docs/backdrop-invert
2108
- */
2109
- "backdrop-invert": [{
2110
- "backdrop-invert": ["", p, i, s]
2111
- }],
2112
- /**
2113
- * Backdrop Opacity
2114
- * @see https://tailwindcss.com/docs/backdrop-opacity
2115
- */
2116
- "backdrop-opacity": [{
2117
- "backdrop-opacity": [p, i, s]
2118
- }],
2119
- /**
2120
- * Backdrop Saturate
2121
- * @see https://tailwindcss.com/docs/backdrop-saturate
2122
- */
2123
- "backdrop-saturate": [{
2124
- "backdrop-saturate": [p, i, s]
2125
- }],
2126
- /**
2127
- * Backdrop Sepia
2128
- * @see https://tailwindcss.com/docs/backdrop-sepia
2129
- */
2130
- "backdrop-sepia": [{
2131
- "backdrop-sepia": ["", p, i, s]
2132
- }],
2133
- // --------------
2134
- // --- Tables ---
2135
- // --------------
2136
- /**
2137
- * Border Collapse
2138
- * @see https://tailwindcss.com/docs/border-collapse
2139
- */
2140
- "border-collapse": [{
2141
- border: ["collapse", "separate"]
2142
- }],
2143
- /**
2144
- * Border Spacing
2145
- * @see https://tailwindcss.com/docs/border-spacing
2146
- */
2147
- "border-spacing": [{
2148
- "border-spacing": u()
2149
- }],
2150
- /**
2151
- * Border Spacing X
2152
- * @see https://tailwindcss.com/docs/border-spacing
2153
- */
2154
- "border-spacing-x": [{
2155
- "border-spacing-x": u()
2156
- }],
2157
- /**
2158
- * Border Spacing Y
2159
- * @see https://tailwindcss.com/docs/border-spacing
2160
- */
2161
- "border-spacing-y": [{
2162
- "border-spacing-y": u()
2163
- }],
2164
- /**
2165
- * Table Layout
2166
- * @see https://tailwindcss.com/docs/table-layout
2167
- */
2168
- "table-layout": [{
2169
- table: ["auto", "fixed"]
2170
- }],
2171
- /**
2172
- * Caption Side
2173
- * @see https://tailwindcss.com/docs/caption-side
2174
- */
2175
- caption: [{
2176
- caption: ["top", "bottom"]
2177
- }],
2178
- // ---------------------------------
2179
- // --- Transitions and Animation ---
2180
- // ---------------------------------
2181
- /**
2182
- * Transition Property
2183
- * @see https://tailwindcss.com/docs/transition-property
2184
- */
2185
- transition: [{
2186
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", i, s]
2187
- }],
2188
- /**
2189
- * Transition Behavior
2190
- * @see https://tailwindcss.com/docs/transition-behavior
2191
- */
2192
- "transition-behavior": [{
2193
- transition: ["normal", "discrete"]
2194
- }],
2195
- /**
2196
- * Transition Duration
2197
- * @see https://tailwindcss.com/docs/transition-duration
2198
- */
2199
- duration: [{
2200
- duration: [p, "initial", i, s]
2201
- }],
2202
- /**
2203
- * Transition Timing Function
2204
- * @see https://tailwindcss.com/docs/transition-timing-function
2205
- */
2206
- ease: [{
2207
- ease: ["linear", "initial", M, i, s]
2208
- }],
2209
- /**
2210
- * Transition Delay
2211
- * @see https://tailwindcss.com/docs/transition-delay
2212
- */
2213
- delay: [{
2214
- delay: [p, i, s]
2215
- }],
2216
- /**
2217
- * Animation
2218
- * @see https://tailwindcss.com/docs/animation
2219
- */
2220
- animate: [{
2221
- animate: ["none", oe, i, s]
2222
- }],
2223
- // ------------------
2224
- // --- Transforms ---
2225
- // ------------------
2226
- /**
2227
- * Backface Visibility
2228
- * @see https://tailwindcss.com/docs/backface-visibility
2229
- */
2230
- backface: [{
2231
- backface: ["hidden", "visible"]
2232
- }],
2233
- /**
2234
- * Perspective
2235
- * @see https://tailwindcss.com/docs/perspective
2236
- */
2237
- perspective: [{
2238
- perspective: [w, i, s]
2239
- }],
2240
- /**
2241
- * Perspective Origin
2242
- * @see https://tailwindcss.com/docs/perspective-origin
2243
- */
2244
- "perspective-origin": [{
2245
- "perspective-origin": B()
2246
- }],
2247
- /**
2248
- * Rotate
2249
- * @see https://tailwindcss.com/docs/rotate
2250
- */
2251
- rotate: [{
2252
- rotate: se()
2253
- }],
2254
- /**
2255
- * Rotate X
2256
- * @see https://tailwindcss.com/docs/rotate
2257
- */
2258
- "rotate-x": [{
2259
- "rotate-x": se()
2260
- }],
2261
- /**
2262
- * Rotate Y
2263
- * @see https://tailwindcss.com/docs/rotate
2264
- */
2265
- "rotate-y": [{
2266
- "rotate-y": se()
2267
- }],
2268
- /**
2269
- * Rotate Z
2270
- * @see https://tailwindcss.com/docs/rotate
2271
- */
2272
- "rotate-z": [{
2273
- "rotate-z": se()
2274
- }],
2275
- /**
2276
- * Scale
2277
- * @see https://tailwindcss.com/docs/scale
2278
- */
2279
- scale: [{
2280
- scale: ie()
2281
- }],
2282
- /**
2283
- * Scale X
2284
- * @see https://tailwindcss.com/docs/scale
2285
- */
2286
- "scale-x": [{
2287
- "scale-x": ie()
2288
- }],
2289
- /**
2290
- * Scale Y
2291
- * @see https://tailwindcss.com/docs/scale
2292
- */
2293
- "scale-y": [{
2294
- "scale-y": ie()
2295
- }],
2296
- /**
2297
- * Scale Z
2298
- * @see https://tailwindcss.com/docs/scale
2299
- */
2300
- "scale-z": [{
2301
- "scale-z": ie()
2302
- }],
2303
- /**
2304
- * Scale 3D
2305
- * @see https://tailwindcss.com/docs/scale
2306
- */
2307
- "scale-3d": ["scale-3d"],
2308
- /**
2309
- * Skew
2310
- * @see https://tailwindcss.com/docs/skew
2311
- */
2312
- skew: [{
2313
- skew: be()
2314
- }],
2315
- /**
2316
- * Skew X
2317
- * @see https://tailwindcss.com/docs/skew
2318
- */
2319
- "skew-x": [{
2320
- "skew-x": be()
2321
- }],
2322
- /**
2323
- * Skew Y
2324
- * @see https://tailwindcss.com/docs/skew
2325
- */
2326
- "skew-y": [{
2327
- "skew-y": be()
2328
- }],
2329
- /**
2330
- * Transform
2331
- * @see https://tailwindcss.com/docs/transform
2332
- */
2333
- transform: [{
2334
- transform: [i, s, "", "none", "gpu", "cpu"]
2335
- }],
2336
- /**
2337
- * Transform Origin
2338
- * @see https://tailwindcss.com/docs/transform-origin
2339
- */
2340
- "transform-origin": [{
2341
- origin: B()
2342
- }],
2343
- /**
2344
- * Transform Style
2345
- * @see https://tailwindcss.com/docs/transform-style
2346
- */
2347
- "transform-style": [{
2348
- transform: ["3d", "flat"]
2349
- }],
2350
- /**
2351
- * Translate
2352
- * @see https://tailwindcss.com/docs/translate
2353
- */
2354
- translate: [{
2355
- translate: le()
2356
- }],
2357
- /**
2358
- * Translate X
2359
- * @see https://tailwindcss.com/docs/translate
2360
- */
2361
- "translate-x": [{
2362
- "translate-x": le()
2363
- }],
2364
- /**
2365
- * Translate Y
2366
- * @see https://tailwindcss.com/docs/translate
2367
- */
2368
- "translate-y": [{
2369
- "translate-y": le()
2370
- }],
2371
- /**
2372
- * Translate Z
2373
- * @see https://tailwindcss.com/docs/translate
2374
- */
2375
- "translate-z": [{
2376
- "translate-z": le()
2377
- }],
2378
- /**
2379
- * Translate None
2380
- * @see https://tailwindcss.com/docs/translate
2381
- */
2382
- "translate-none": ["translate-none"],
2383
- // ---------------------
2384
- // --- Interactivity ---
2385
- // ---------------------
2386
- /**
2387
- * Accent Color
2388
- * @see https://tailwindcss.com/docs/accent-color
2389
- */
2390
- accent: [{
2391
- accent: c()
2392
- }],
2393
- /**
2394
- * Appearance
2395
- * @see https://tailwindcss.com/docs/appearance
2396
- */
2397
- appearance: [{
2398
- appearance: ["none", "auto"]
2399
- }],
2400
- /**
2401
- * Caret Color
2402
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2403
- */
2404
- "caret-color": [{
2405
- caret: c()
2406
- }],
2407
- /**
2408
- * Color Scheme
2409
- * @see https://tailwindcss.com/docs/color-scheme
2410
- */
2411
- "color-scheme": [{
2412
- scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
2413
- }],
2414
- /**
2415
- * Cursor
2416
- * @see https://tailwindcss.com/docs/cursor
2417
- */
2418
- cursor: [{
2419
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", i, s]
2420
- }],
2421
- /**
2422
- * Field Sizing
2423
- * @see https://tailwindcss.com/docs/field-sizing
2424
- */
2425
- "field-sizing": [{
2426
- "field-sizing": ["fixed", "content"]
2427
- }],
2428
- /**
2429
- * Pointer Events
2430
- * @see https://tailwindcss.com/docs/pointer-events
2431
- */
2432
- "pointer-events": [{
2433
- "pointer-events": ["auto", "none"]
2434
- }],
2435
- /**
2436
- * Resize
2437
- * @see https://tailwindcss.com/docs/resize
2438
- */
2439
- resize: [{
2440
- resize: ["none", "", "y", "x"]
2441
- }],
2442
- /**
2443
- * Scroll Behavior
2444
- * @see https://tailwindcss.com/docs/scroll-behavior
2445
- */
2446
- "scroll-behavior": [{
2447
- scroll: ["auto", "smooth"]
2448
- }],
2449
- /**
2450
- * Scroll Margin
2451
- * @see https://tailwindcss.com/docs/scroll-margin
2452
- */
2453
- "scroll-m": [{
2454
- "scroll-m": u()
2455
- }],
2456
- /**
2457
- * Scroll Margin X
2458
- * @see https://tailwindcss.com/docs/scroll-margin
2459
- */
2460
- "scroll-mx": [{
2461
- "scroll-mx": u()
2462
- }],
2463
- /**
2464
- * Scroll Margin Y
2465
- * @see https://tailwindcss.com/docs/scroll-margin
2466
- */
2467
- "scroll-my": [{
2468
- "scroll-my": u()
2469
- }],
2470
- /**
2471
- * Scroll Margin Start
2472
- * @see https://tailwindcss.com/docs/scroll-margin
2473
- */
2474
- "scroll-ms": [{
2475
- "scroll-ms": u()
2476
- }],
2477
- /**
2478
- * Scroll Margin End
2479
- * @see https://tailwindcss.com/docs/scroll-margin
2480
- */
2481
- "scroll-me": [{
2482
- "scroll-me": u()
2483
- }],
2484
- /**
2485
- * Scroll Margin Top
2486
- * @see https://tailwindcss.com/docs/scroll-margin
2487
- */
2488
- "scroll-mt": [{
2489
- "scroll-mt": u()
2490
- }],
2491
- /**
2492
- * Scroll Margin Right
2493
- * @see https://tailwindcss.com/docs/scroll-margin
2494
- */
2495
- "scroll-mr": [{
2496
- "scroll-mr": u()
2497
- }],
2498
- /**
2499
- * Scroll Margin Bottom
2500
- * @see https://tailwindcss.com/docs/scroll-margin
2501
- */
2502
- "scroll-mb": [{
2503
- "scroll-mb": u()
2504
- }],
2505
- /**
2506
- * Scroll Margin Left
2507
- * @see https://tailwindcss.com/docs/scroll-margin
2508
- */
2509
- "scroll-ml": [{
2510
- "scroll-ml": u()
2511
- }],
2512
- /**
2513
- * Scroll Padding
2514
- * @see https://tailwindcss.com/docs/scroll-padding
2515
- */
2516
- "scroll-p": [{
2517
- "scroll-p": u()
2518
- }],
2519
- /**
2520
- * Scroll Padding X
2521
- * @see https://tailwindcss.com/docs/scroll-padding
2522
- */
2523
- "scroll-px": [{
2524
- "scroll-px": u()
2525
- }],
2526
- /**
2527
- * Scroll Padding Y
2528
- * @see https://tailwindcss.com/docs/scroll-padding
2529
- */
2530
- "scroll-py": [{
2531
- "scroll-py": u()
2532
- }],
2533
- /**
2534
- * Scroll Padding Start
2535
- * @see https://tailwindcss.com/docs/scroll-padding
2536
- */
2537
- "scroll-ps": [{
2538
- "scroll-ps": u()
2539
- }],
2540
- /**
2541
- * Scroll Padding End
2542
- * @see https://tailwindcss.com/docs/scroll-padding
2543
- */
2544
- "scroll-pe": [{
2545
- "scroll-pe": u()
2546
- }],
2547
- /**
2548
- * Scroll Padding Top
2549
- * @see https://tailwindcss.com/docs/scroll-padding
2550
- */
2551
- "scroll-pt": [{
2552
- "scroll-pt": u()
2553
- }],
2554
- /**
2555
- * Scroll Padding Right
2556
- * @see https://tailwindcss.com/docs/scroll-padding
2557
- */
2558
- "scroll-pr": [{
2559
- "scroll-pr": u()
2560
- }],
2561
- /**
2562
- * Scroll Padding Bottom
2563
- * @see https://tailwindcss.com/docs/scroll-padding
2564
- */
2565
- "scroll-pb": [{
2566
- "scroll-pb": u()
2567
- }],
2568
- /**
2569
- * Scroll Padding Left
2570
- * @see https://tailwindcss.com/docs/scroll-padding
2571
- */
2572
- "scroll-pl": [{
2573
- "scroll-pl": u()
2574
- }],
2575
- /**
2576
- * Scroll Snap Align
2577
- * @see https://tailwindcss.com/docs/scroll-snap-align
2578
- */
2579
- "snap-align": [{
2580
- snap: ["start", "end", "center", "align-none"]
2581
- }],
2582
- /**
2583
- * Scroll Snap Stop
2584
- * @see https://tailwindcss.com/docs/scroll-snap-stop
2585
- */
2586
- "snap-stop": [{
2587
- snap: ["normal", "always"]
2588
- }],
2589
- /**
2590
- * Scroll Snap Type
2591
- * @see https://tailwindcss.com/docs/scroll-snap-type
2592
- */
2593
- "snap-type": [{
2594
- snap: ["none", "x", "y", "both"]
2595
- }],
2596
- /**
2597
- * Scroll Snap Type Strictness
2598
- * @see https://tailwindcss.com/docs/scroll-snap-type
2599
- */
2600
- "snap-strictness": [{
2601
- snap: ["mandatory", "proximity"]
2602
- }],
2603
- /**
2604
- * Touch Action
2605
- * @see https://tailwindcss.com/docs/touch-action
2606
- */
2607
- touch: [{
2608
- touch: ["auto", "none", "manipulation"]
2609
- }],
2610
- /**
2611
- * Touch Action X
2612
- * @see https://tailwindcss.com/docs/touch-action
2613
- */
2614
- "touch-x": [{
2615
- "touch-pan": ["x", "left", "right"]
2616
- }],
2617
- /**
2618
- * Touch Action Y
2619
- * @see https://tailwindcss.com/docs/touch-action
2620
- */
2621
- "touch-y": [{
2622
- "touch-pan": ["y", "up", "down"]
2623
- }],
2624
- /**
2625
- * Touch Action Pinch Zoom
2626
- * @see https://tailwindcss.com/docs/touch-action
2627
- */
2628
- "touch-pz": ["touch-pinch-zoom"],
2629
- /**
2630
- * User Select
2631
- * @see https://tailwindcss.com/docs/user-select
2632
- */
2633
- select: [{
2634
- select: ["none", "text", "all", "auto"]
2635
- }],
2636
- /**
2637
- * Will Change
2638
- * @see https://tailwindcss.com/docs/will-change
2639
- */
2640
- "will-change": [{
2641
- "will-change": ["auto", "scroll", "contents", "transform", i, s]
2642
- }],
2643
- // -----------
2644
- // --- SVG ---
2645
- // -----------
2646
- /**
2647
- * Fill
2648
- * @see https://tailwindcss.com/docs/fill
2649
- */
2650
- fill: [{
2651
- fill: ["none", ...c()]
2652
- }],
2653
- /**
2654
- * Stroke Width
2655
- * @see https://tailwindcss.com/docs/stroke-width
2656
- */
2657
- "stroke-w": [{
2658
- stroke: [p, re, V, ve]
2659
- }],
2660
- /**
2661
- * Stroke
2662
- * @see https://tailwindcss.com/docs/stroke
2663
- */
2664
- stroke: [{
2665
- stroke: ["none", ...c()]
2666
- }],
2667
- // ---------------------
2668
- // --- Accessibility ---
2669
- // ---------------------
2670
- /**
2671
- * Forced Color Adjust
2672
- * @see https://tailwindcss.com/docs/forced-color-adjust
2673
- */
2674
- "forced-color-adjust": [{
2675
- "forced-color-adjust": ["auto", "none"]
2676
- }]
2677
- },
2678
- conflictingClassGroups: {
2679
- overflow: ["overflow-x", "overflow-y"],
2680
- overscroll: ["overscroll-x", "overscroll-y"],
2681
- inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2682
- "inset-x": ["right", "left"],
2683
- "inset-y": ["top", "bottom"],
2684
- flex: ["basis", "grow", "shrink"],
2685
- gap: ["gap-x", "gap-y"],
2686
- p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2687
- px: ["pr", "pl"],
2688
- py: ["pt", "pb"],
2689
- m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2690
- mx: ["mr", "ml"],
2691
- my: ["mt", "mb"],
2692
- size: ["w", "h"],
2693
- "font-size": ["leading"],
2694
- "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2695
- "fvn-ordinal": ["fvn-normal"],
2696
- "fvn-slashed-zero": ["fvn-normal"],
2697
- "fvn-figure": ["fvn-normal"],
2698
- "fvn-spacing": ["fvn-normal"],
2699
- "fvn-fraction": ["fvn-normal"],
2700
- "line-clamp": ["display", "overflow"],
2701
- rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
2702
- "rounded-s": ["rounded-ss", "rounded-es"],
2703
- "rounded-e": ["rounded-se", "rounded-ee"],
2704
- "rounded-t": ["rounded-tl", "rounded-tr"],
2705
- "rounded-r": ["rounded-tr", "rounded-br"],
2706
- "rounded-b": ["rounded-br", "rounded-bl"],
2707
- "rounded-l": ["rounded-tl", "rounded-bl"],
2708
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
2709
- "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2710
- "border-w-x": ["border-w-r", "border-w-l"],
2711
- "border-w-y": ["border-w-t", "border-w-b"],
2712
- "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2713
- "border-color-x": ["border-color-r", "border-color-l"],
2714
- "border-color-y": ["border-color-t", "border-color-b"],
2715
- translate: ["translate-x", "translate-y", "translate-none"],
2716
- "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
2717
- "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2718
- "scroll-mx": ["scroll-mr", "scroll-ml"],
2719
- "scroll-my": ["scroll-mt", "scroll-mb"],
2720
- "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2721
- "scroll-px": ["scroll-pr", "scroll-pl"],
2722
- "scroll-py": ["scroll-pt", "scroll-pb"],
2723
- touch: ["touch-x", "touch-y", "touch-pz"],
2724
- "touch-x": ["touch"],
2725
- "touch-y": ["touch"],
2726
- "touch-pz": ["touch"]
2727
- },
2728
- conflictingClassGroupModifiers: {
2729
- "font-size": ["leading"]
2730
- },
2731
- orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2732
- };
2733
- }, mr = /* @__PURE__ */ Ht(ur);
2734
- function me(...e) {
2735
- return mr(at(e));
2736
- }
2737
- const Ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = at, fr = (e, t) => (r) => {
2738
- var o;
2739
- if ((t == null ? void 0 : t.variants) == null) return $e(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2740
- const { variants: a, defaultVariants: n } = t, l = Object.keys(a).map((g) => {
2741
- const b = r == null ? void 0 : r[g], k = n == null ? void 0 : n[g];
2742
- if (b === null) return null;
2743
- const A = Ke(b) || Ke(k);
2744
- return a[g][A];
2745
- }), m = r && Object.entries(r).reduce((g, b) => {
2746
- let [k, A] = b;
2747
- return A === void 0 || (g[k] = A), g;
2748
- }, {}), d = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((g, b) => {
2749
- let { class: k, className: A, ...z } = b;
2750
- return Object.entries(z).every((x) => {
2751
- let [w, N] = x;
2752
- return Array.isArray(N) ? N.includes({
2753
- ...n,
2754
- ...m
2755
- }[w]) : {
2756
- ...n,
2757
- ...m
2758
- }[w] === N;
2759
- }) ? [
2760
- ...g,
2761
- k,
2762
- A
2763
- ] : g;
2764
- }, []);
2765
- return $e(e, l, d, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2766
- }, pr = fr(
2767
- "inline-flex justify-center cursor-pointer items-center gap-1.5 aria-invalid:border-destructive focus-visible:border-ring rounded-full outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
2768
- {
2769
- variants: {
2770
- variant: {
2771
- default: `
2772
- bg-primary-foreground text-background
2773
- cta-hover hover:opacity-90
2774
- disabled:bg-secondary disabled:opacity-50
2775
- `,
2776
- outline: `
2777
- text-secondary shadow-xs
2778
- border border-muted-foreground bg-background
2779
- hover:bg-primary
2780
- disabled:opacity-50
2781
- `,
2782
- secondary: `
2783
- text-secondary
2784
- cta-hover transition-all duration-300
2785
- disabled:text-secondary disabled:opacity-50
2786
- `,
2787
- destructive: `
2788
- bg-destructive text-white
2789
- hover:opacity-70
2790
- focus-visible:ring-destructive/20
2791
- disabled:bg-destructive disabled:opacity-40
2792
- `,
2793
- ghost: `
2794
- text-secondary
2795
- hover:shadow-sm
2796
- disabled:opacity-50
2797
- `,
2798
- link: `
2799
- text-tertiary-foreground underline-offset-4
2800
- disabled:opacity-50
2801
- `
2802
- },
2803
- size: {
2804
- default: `
2805
- h-9 px-4 py-2
2806
- has-[>svg]:px-3
2807
- `,
2808
- sm: `
2809
- h-7 gap-0.5 px-3
2810
- has-[>svg]:px-2.5
2811
- `,
2812
- lg: `
2813
- h-10 px-6
2814
- has-[>svg]:px-4
2815
- `,
2816
- xl: `
2817
- h-14 px-6
2818
- text-base
2819
- has-[>svg]:px-4
2820
- `,
2821
- icon: "size-9"
2822
- }
2823
- },
2824
- defaultVariants: {
2825
- variant: "default",
2826
- size: "default"
2827
- }
2828
- }
2829
- );
2830
- function Jr({
2831
- className: e,
2832
- variant: t,
2833
- size: r,
2834
- asChild: o = !1,
2835
- ...a
2836
- }) {
2837
- return /* @__PURE__ */ L(
2838
- o ? It : "button",
2839
- {
2840
- "data-slot": "button",
2841
- className: me(pr({ variant: t, size: r, className: e })),
2842
- ...a,
2843
- "data-testid": "button"
2844
- }
2845
- );
2846
- }
2847
- function Xr({ className: e, type: t, ...r }) {
2848
- return /* @__PURE__ */ L(
2849
- "input",
2850
- {
2851
- type: t,
2852
- "data-slot": "input",
2853
- className: me(
2854
- `
2855
- flex h-10 w-full min-w-0 rounded-sm border border-subtle bg-transparent
2856
- px-3 py-2 text-base transition-[color,box-shadow]
2857
- outline-none
2858
- selection:bg-primary selection:text-primary-foreground
2859
- file:inline-flex file:h-10 file:border-0 file:bg-transparent
2860
- file:text-sm file:font-medium file:text-foreground
2861
- text-secondary
2862
- placeholder:text-accent-foreground
2863
- disabled:pointer-events-none disabled:cursor-not-allowed
2864
- disabled:opacity-50 disabled:placeholder:text-secondary-foreground
2865
- md:text-sm
2866
- `,
2867
- `
2868
- focus-visible:border-ring focus-visible:ring-[3px]
2869
- focus-visible:ring-ring/50
2870
- `,
2871
- `
2872
- aria-invalid:border-destructive aria-invalid:ring-destructive/20
2873
- `,
2874
- e
2875
- ),
2876
- ...r,
2877
- "data-testid": "input"
2878
- }
2879
- );
2880
- }
2881
- const gr = 10, br = Ct(
2882
- ({
2883
- children: e,
2884
- className: t = "",
2885
- colors: r = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],
2886
- speed: o = 1
2887
- }) => {
2888
- const a = {
2889
- backgroundImage: `linear-gradient(135deg, ${r.join(", ")}, ${r[0]})`,
2890
- WebkitBackgroundClip: "text",
2891
- WebkitTextFillColor: "transparent",
2892
- animationDuration: `${gr / o}s`
2893
- };
2894
- return /* @__PURE__ */ Nt(
2895
- "span",
2896
- {
2897
- className: `
2898
- relative inline-block
2899
- ${t}
2900
- `,
2901
- "data-testid": "auroraText",
2902
- children: [
2903
- /* @__PURE__ */ L("span", { className: "sr-only", children: e }),
2904
- /* @__PURE__ */ L(
2905
- "span",
2906
- {
2907
- className: `
2908
- relative animate-aurora bg-clip-text text-transparent
2909
- bg-[length:200%_auto]
2910
- `,
2911
- style: a,
2912
- "aria-hidden": "true",
2913
- children: e
2914
- }
2915
- )
2916
- ]
2917
- }
2918
- );
2919
- }
2920
- );
2921
- br.displayName = "AuroraText";
2922
- var hr = Object.defineProperty, f = (e, t) => hr(e, "name", { value: t, configurable: !0 }), _e = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Map();
2923
- function Ie(e, t) {
2924
- return `${e}:${JSON.stringify(t ?? {})}`;
2925
- }
2926
- f(Ie, "getFormatterKey");
2927
- function bt(e) {
2928
- const t = typeof e == "string" || typeof e == "number" ? new Date(e) : e;
2929
- return t instanceof Date && !Number.isNaN(t.getTime()) ? t : null;
2930
- }
2931
- f(bt, "parseDate");
2932
- function vr(e, t = "en", r) {
2933
- var n;
2934
- const o = bt(e);
2935
- if (!o)
2936
- return "";
2937
- const a = Ie(t, r);
2938
- return _e.has(a) || _e.set(a, new Intl.DateTimeFormat(t, r)), ((n = _e.get(a)) == null ? void 0 : n.format(o)) ?? "";
2939
- }
2940
- f(vr, "formatDate");
2941
- function _r(e, t = "en", r) {
2942
- var a;
2943
- if (typeof e != "number" || Number.isNaN(e))
2944
- return "";
2945
- const o = Ie(t, r);
2946
- return ke.has(o) || ke.set(o, new Intl.NumberFormat(t, r)), ((a = ke.get(o)) == null ? void 0 : a.format(e)) ?? "";
2947
- }
2948
- f(_r, "formatNumber");
2949
- var fe = {
2950
- defaultLocale: "en",
2951
- supportedLocales: ["en", "es", "fr", "it", "pt-BR", "pt-PT"],
2952
- fallbackLocale: "en"
2953
- };
2954
- function kr() {
2955
- return fe.supportedLocales;
2956
- }
2957
- f(kr, "getSupportedLanguages");
2958
- function xr() {
2959
- return fe.defaultLocale;
2960
- }
2961
- f(xr, "getDefaultLanguage");
2962
- function wr() {
2963
- return fe.fallbackLocale;
2964
- }
2965
- f(wr, "getFallbackLanguage");
2966
- function yr(e) {
2967
- return fe.supportedLocales.includes(e);
2968
- }
2969
- f(yr, "isSupportedLanguage");
2970
- var F = /* @__PURE__ */ new Map();
2971
- function Rr({
2972
- value: e,
2973
- forms: t,
2974
- lang: r,
2975
- type: o = "cardinal"
2976
- }) {
2977
- if (!vt(e, t))
2978
- return "";
2979
- if (e === 0 && t.zero)
2980
- return Ae(t.zero, e);
2981
- const n = _t(r, o).select(e), l = ht(t, n) ?? t.other ?? Object.values(t)[0];
2982
- return l ? Ae(l, e) : "";
2983
- }
2984
- f(Rr, "pluralize");
2985
- function Oe(e, t) {
2986
- return `${e}:${t}`;
2987
- }
2988
- f(Oe, "getPluralRulesKey");
2989
- var Ar = /{count}|#/g;
2990
- function ht(e, t) {
2991
- switch (t) {
2992
- case "zero":
2993
- return e.zero;
2994
- case "one":
2995
- return e.one;
2996
- case "two":
2997
- return e.two;
2998
- case "few":
2999
- return e.few;
3000
- case "many":
3001
- return e.many;
3002
- case "other":
3003
- return e.other;
3004
- default:
3005
- return;
3006
- }
3007
- }
3008
- f(ht, "selectTemplate");
3009
- function vt(e, t) {
3010
- return typeof e == "number" && t && typeof t == "object";
3011
- }
3012
- f(vt, "isValidInput");
3013
- function Ae(e, t) {
3014
- return e.replaceAll(Ar, t.toString());
3015
- }
3016
- f(Ae, "replacePlaceholders");
3017
- function _t(e, t) {
3018
- const r = Oe(e, t);
3019
- if (!F.has(r))
3020
- try {
3021
- F.set(r, new Intl.PluralRules(e, { type: t }));
3022
- } catch {
3023
- return ue(r, t);
3024
- }
3025
- return F.get(r) ?? ue(r, t);
3026
- }
3027
- f(_t, "getPluralRules");
3028
- function ue(e, t) {
3029
- const r = Oe("en", t);
3030
- F.has(r) || F.set(r, new Intl.PluralRules("en", { type: t }));
3031
- const o = F.get(r) ?? ue(r, t);
3032
- return F.set(e, o), o;
3033
- }
3034
- f(ue, "getFallbackPluralRules");
3035
- var Ee = null;
3036
- function Er(e) {
3037
- Ee = e;
3038
- }
3039
- f(Er, "setTranslationService");
3040
- function Se() {
3041
- if (!Ee)
3042
- throw new Error(
3043
- "Translation service not initialized. Make sure to call setTranslationService() first."
3044
- );
3045
- return Ee;
3046
- }
3047
- f(Se, "getTranslationService");
3048
- function kt(e, t) {
3049
- return t ? e.replace(/\{(\w+)\}/g, (r, o) => t[o] !== void 0 ? String(t[o]) : r) : e;
3050
- }
3051
- f(kt, "format");
3052
- var xt = /* @__PURE__ */ ((e) => (e.AUTH_INVALID_CREDENTIALS = "auth.invalid_credentials", e.AUTH_ACCOUNT_LOCKED = "auth.account_locked", e.AUTH_EMAIL_NOT_VERIFIED = "auth.email_not_verified", e.AUTH_TOKEN_EXPIRED = "auth.token_expired", e.AUTH_TOKEN_INVALID = "auth.token_invalid", e.AUTH_INSUFFICIENT_PERMISSIONS = "auth.insufficient_permissions", e.AUTH_EMAIL_TAKEN = "auth.email_taken", e.AUTH_USERNAME_TAKEN = "auth.username_taken", e.AUTH_WALLET_SIGNATURE_INVALID = "auth.wallet_signature_invalid", e.VALIDATION_ERROR = "validation.error", e.REQUIRED_FIELD_MISSING = "validation.required_field_missing", e.INVALID_FORMAT = "validation.invalid_format", e.INVALID_ENUM_VALUE = "validation.invalid_enum_value", e.STRING_TOO_SHORT = "validation.string_too_short", e.STRING_TOO_LONG = "validation.string_too_long", e.NUMBER_TOO_SMALL = "validation.number_too_small", e.NUMBER_TOO_LARGE = "validation.number_too_large", e.ARRAY_TOO_SHORT = "validation.array_too_short", e.ARRAY_TOO_LONG = "validation.array_too_long", e.FILE_TOO_LARGE = "validation.file_too_large", e.UNSUPPORTED_FILE_TYPE = "validation.unsupported_file_type", e.DB_ENTITY_NOT_FOUND = "database.entity_not_found", e.DB_DUPLICATE_ENTRY = "database.duplicate_entry", e.DB_RELATION_VIOLATION = "database.relation_violation", e.DB_CONNECTION_ERROR = "database.connection_error", e.DB_TRANSACTION_FAILED = "database.transaction_failed", e.BLOCKCHAIN_CONNECTION_ERROR = "blockchain.connection_error", e.TRANSACTION_FAILED = "blockchain.transaction_failed", e.WALLET_CONNECTION_ERROR = "blockchain.wallet_connection_error", e.CONTRACT_INTERACTION_ERROR = "blockchain.contract_interaction_error", e.INSUFFICIENT_FUNDS = "blockchain.insufficient_funds", e.INTERNAL_SERVER_ERROR = "system.internal_server_error", e.SERVICE_UNAVAILABLE = "system.service_unavailable", e.EXTERNAL_SERVICE_ERROR = "system.external_service_error", e.RATE_LIMIT_EXCEEDED = "system.rate_limit_exceeded", e.FEATURE_DISABLED = "system.feature_disabled", e.GENERIC_ERROR = "generic.error", e.NOT_FOUND = "generic.not_found", e.CONFLICT = "generic.conflict", e.TIMEOUT = "generic.timeout", e))(xt || {}), He = {
3053
- "auth.invalid_credentials": "errors.auth.invalid_credentials",
3054
- "auth.account_locked": "errors.auth.account_locked",
3055
- "auth.email_not_verified": "errors.auth.email_not_verified",
3056
- "auth.token_expired": "errors.auth.token_expired",
3057
- "auth.token_invalid": "errors.auth.token_invalid",
3058
- "auth.insufficient_permissions": "errors.auth.insufficient_permissions",
3059
- "auth.email_taken": "errors.auth.email_taken",
3060
- "auth.username_taken": "errors.auth.username_taken",
3061
- "auth.wallet_signature_invalid": "errors.auth.wallet_signature_invalid"
3062
- }, We = {
3063
- "validation.error": "errors.validation.error",
3064
- "validation.required_field_missing": "errors.validation.required_field_missing",
3065
- "validation.invalid_format": "errors.validation.invalid_format",
3066
- "validation.invalid_enum_value": "errors.validation.invalid_enum_value",
3067
- "validation.string_too_short": "errors.validation.string_too_short",
3068
- "validation.string_too_long": "errors.validation.string_too_long",
3069
- "validation.number_too_small": "errors.validation.number_too_small",
3070
- "validation.number_too_large": "errors.validation.number_too_large",
3071
- "validation.array_too_short": "errors.validation.array_too_short",
3072
- "validation.array_too_long": "errors.validation.array_too_long",
3073
- "validation.file_too_large": "errors.validation.file_too_large",
3074
- "validation.unsupported_file_type": "errors.validation.unsupported_file_type"
3075
- }, Ye = {
3076
- "database.entity_not_found": "errors.database.entity_not_found",
3077
- "database.duplicate_entry": "errors.database.duplicate_entry",
3078
- "database.relation_violation": "errors.database.relation_violation",
3079
- "database.connection_error": "errors.database.connection_error",
3080
- "database.transaction_failed": "errors.database.transaction_failed"
3081
- }, qe = {
3082
- "blockchain.connection_error": "errors.blockchain.connection_error",
3083
- "blockchain.transaction_failed": "errors.blockchain.transaction_failed",
3084
- "blockchain.wallet_connection_error": "errors.blockchain.wallet_connection_error",
3085
- "blockchain.contract_interaction_error": "errors.blockchain.contract_interaction_error",
3086
- "blockchain.insufficient_funds": "errors.blockchain.insufficient_funds"
3087
- }, Je = {
3088
- "system.internal_server_error": "errors.system.internal_server_error",
3089
- "system.service_unavailable": "errors.system.service_unavailable",
3090
- "system.external_service_error": "errors.system.external_service_error",
3091
- "system.rate_limit_exceeded": "errors.system.rate_limit_exceeded",
3092
- "system.feature_disabled": "errors.system.feature_disabled"
3093
- }, Xe = {
3094
- "generic.error": "errors.general.internal_error",
3095
- "generic.not_found": "errors.general.not_found",
3096
- "generic.conflict": "errors.general.conflict",
3097
- "generic.timeout": "errors.general.timeout"
3098
- }, Qe = {
3099
- "auth.invalid_credentials": 401,
3100
- "auth.account_locked": 423,
3101
- "auth.email_not_verified": 403,
3102
- "auth.token_expired": 401,
3103
- "auth.token_invalid": 401,
3104
- "auth.insufficient_permissions": 403,
3105
- "auth.email_taken": 409,
3106
- "auth.username_taken": 409,
3107
- "auth.wallet_signature_invalid": 401
3108
- }, Ze = {
3109
- "validation.error": 400,
3110
- "validation.required_field_missing": 400,
3111
- "validation.invalid_format": 400,
3112
- "validation.invalid_enum_value": 400,
3113
- "validation.string_too_short": 400,
3114
- "validation.string_too_long": 400,
3115
- "validation.number_too_small": 400,
3116
- "validation.number_too_large": 400,
3117
- "validation.array_too_short": 400,
3118
- "validation.array_too_long": 400,
3119
- "validation.file_too_large": 400,
3120
- "validation.unsupported_file_type": 400
3121
- }, et = {
3122
- "database.entity_not_found": 404,
3123
- "database.duplicate_entry": 409,
3124
- "database.relation_violation": 400,
3125
- "database.connection_error": 503,
3126
- "database.transaction_failed": 500
3127
- }, tt = {
3128
- "blockchain.connection_error": 503,
3129
- "blockchain.transaction_failed": 400,
3130
- "blockchain.wallet_connection_error": 503,
3131
- "blockchain.contract_interaction_error": 400,
3132
- "blockchain.insufficient_funds": 400
3133
- }, rt = {
3134
- "system.internal_server_error": 500,
3135
- "system.service_unavailable": 503,
3136
- "system.external_service_error": 502,
3137
- "system.rate_limit_exceeded": 429,
3138
- "system.feature_disabled": 503
3139
- }, xe = {
3140
- "generic.error": 500,
3141
- "generic.not_found": 404,
3142
- "generic.conflict": 409,
3143
- "generic.timeout": 408
3144
- }, U, R = (U = class extends Error {
3145
- constructor(r, o = {}) {
3146
- const { locale: a = "en", params: n, details: l, cause: m } = o, d = Ce(r, a, n);
3147
- super(d);
3148
- E(this, "name");
3149
- E(this, "type");
3150
- E(this, "code");
3151
- E(this, "statusCode");
3152
- E(this, "timestamp");
3153
- E(this, "details");
3154
- E(this, "cause");
3155
- E(this, "correlationId");
3156
- this.name = this.constructor.name, this.type = r, this.message = d, this.code = r.replace(/\./g, "_").toUpperCase(), this.statusCode = yt(r), this.timestamp = (/* @__PURE__ */ new Date()).toISOString(), this.details = l, this.cause = m, Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
3157
- }
3158
- // Serialization methods
3159
- toJSON() {
3160
- return {
3161
- name: this.name,
3162
- message: this.message,
3163
- type: this.type,
3164
- code: this.code,
3165
- statusCode: this.statusCode,
3166
- timestamp: this.timestamp,
3167
- details: this.details,
3168
- correlationId: this.correlationId
3169
- };
3170
- }
3171
- // Factory method for creating error from plain object
3172
- static fromJSON(r) {
3173
- const o = new U(r.type);
3174
- return Object.assign(o, r), o;
3175
- }
3176
- }, f(U, "BaseError"), U), $, Sr = ($ = class extends R {
3177
- constructor(t, r = {}) {
3178
- super(t, r);
3179
- }
3180
- }, f($, "ValidationError"), $), H, Nr = (H = class extends R {
3181
- constructor(t, r = {}) {
3182
- super(t, r);
3183
- }
3184
- }, f(H, "AuthError"), H), W;
3185
- W = class extends R {
3186
- constructor(t, r = {}) {
3187
- super(t, r);
3188
- }
3189
- }, f(W, "ApiError");
3190
- var Y;
3191
- Y = class extends R {
3192
- constructor(t, r = {}) {
3193
- super(t, r);
3194
- }
3195
- }, f(Y, "BusinessError");
3196
- var q, Ir = (q = class extends R {
3197
- constructor(t, r = {}) {
3198
- super(t, r);
3199
- }
3200
- }, f(q, "BlockchainError"), q), J;
3201
- J = class extends R {
3202
- constructor(t = "generic.error", r = {}) {
3203
- super(t, r);
3204
- }
3205
- }, f(J, "GenericError");
3206
- function Ce(e, t = "en", r) {
3207
- try {
3208
- const o = wt(e);
3209
- return Se().t(o, {
3210
- lang: t,
3211
- interpolation: r,
3212
- defaultValue: `Error: ${e}`
3213
- });
3214
- } catch {
3215
- return Se().t("errors.general.internal_error", {
3216
- lang: t,
3217
- interpolation: r,
3218
- defaultValue: "An internal server error occurred"
3219
- });
3220
- }
3221
- }
3222
- f(Ce, "translateError");
3223
- function wt(e) {
3224
- return e in He ? He[e] : e in We ? We[e] : e in Ye ? Ye[e] : e in qe ? qe[e] : e in Je ? Je[e] : e in Xe ? Xe[e] : "errors.general.internal_error";
3225
- }
3226
- f(wt, "getTranslationKeyForErrorType");
3227
- function yt(e) {
3228
- return e in Qe ? Qe[e] : e in Ze ? Ze[e] : e in et ? et[e] : e in tt ? tt[e] : e in rt ? rt[e] : e in xe ? xe[e] : xe[
3229
- "system.internal_server_error"
3230
- /* INTERNAL_SERVER_ERROR */
3231
- ];
3232
- }
3233
- f(yt, "getStatusCodeForType");
3234
- function Or(e, t = "en", r) {
3235
- if (typeof e == "string")
3236
- return kt(e, r);
3237
- if (e instanceof R)
3238
- return e.message;
3239
- const o = e;
3240
- return o.type && Object.values(xt).includes(o.type) ? Ce(o.type, t, r) : e.message || "An unknown error occurred";
3241
- }
3242
- f(Or, "formatErrorMessage");
3243
- function Cr(e, t) {
3244
- const r = (/* @__PURE__ */ new Date()).toISOString();
3245
- return e instanceof R ? {
3246
- statusCode: e.statusCode,
3247
- errorCode: e.code,
3248
- message: e.message,
3249
- correlationId: t ?? e.correlationId,
3250
- timestamp: e.timestamp || r
3251
- } : {
3252
- statusCode: 500,
3253
- errorCode: "INTERNAL_SERVER_ERROR",
3254
- message: e.message || "An internal server error occurred",
3255
- correlationId: t,
3256
- timestamp: r
3257
- };
3258
- }
3259
- f(Cr, "createErrorResponse");
3260
- function Tr(e, t) {
3261
- return e instanceof R && e.type === t;
3262
- }
3263
- f(Tr, "isErrorType");
3264
- function Lr(e) {
3265
- return e instanceof Sr || e instanceof R && e.type.startsWith("validation.");
3266
- }
3267
- f(Lr, "isValidationError");
3268
- function zr(e) {
3269
- return e instanceof Nr || e instanceof R && e.type.startsWith("auth.");
3270
- }
3271
- f(zr, "isAuthError");
3272
- function Mr(e) {
3273
- return e instanceof Ir || e instanceof R && e.type.startsWith("blockchain.");
3274
- }
3275
- f(Mr, "isBlockchainError");
3276
- function Pr(e) {
3277
- return e.toJSON();
3278
- }
3279
- f(Pr, "serializeError");
3280
- function Dr(e) {
3281
- return R.fromJSON(e);
3282
- }
3283
- f(Dr, "deserializeError");
3284
- function Vr(e) {
3285
- return e.map((t) => ({
3286
- field: t.field,
3287
- message: t.message,
3288
- errorCode: "VALIDATION_ERROR",
3289
- context: {
3290
- valueGiven: t.value,
3291
- constraints: t.constraints
3292
- }
3293
- }));
3294
- }
3295
- f(Vr, "createValidationErrorDetails");
3296
- var S;
3297
- S = class {
3298
- constructor() {
3299
- E(this, "fallbackLocale");
3300
- this.fallbackLocale = "en";
3301
- }
3302
- /**
3303
- * Get the singleton instance of LocaleDetector.
3304
- * @returns {LocaleDetector} The singleton instance.
3305
- */
3306
- static getInstance() {
3307
- return S.instance || (S.instance = new S()), S.instance;
3308
- }
3309
- /**
3310
- * Detect locale using server-side request or client-side settings.
3311
- * @param {any} [request] - Optional server request object.
3312
- * @returns {string} Detected locale string.
3313
- */
3314
- detectLocale(t) {
3315
- return t ? this.detectFromRequest(t) : this.fallbackLocale;
3316
- }
3317
- /**
3318
- * Detect locale from a server request (query, headers, cookies).
3319
- * @param {any} request - Server request object.
3320
- * @returns {string} Detected locale string.
3321
- * @private
3322
- */
3323
- detectFromRequest(t) {
3324
- var n, l, m;
3325
- const r = (n = t.url.split("?")[1]) == null ? void 0 : n.split("=")[1], o = t.headers.get("accept-language"), a = (m = (l = t.headers.get("cookie")) == null ? void 0 : l.split("; ").find((d) => d.startsWith("locale="))) == null ? void 0 : m.split("=")[1];
3326
- return r ?? a ?? this.parseAcceptLanguage(o ?? "") ?? this.fallbackLocale;
3327
- }
3328
- /**
3329
- * Parse Accept-Language header and return the highest priority language.
3330
- * @param {string} header - Accept-Language header value.
3331
- * @returns {string|null} Best language or null.
3332
- * @private
3333
- */
3334
- parseAcceptLanguage(t) {
3335
- if (!t)
3336
- return null;
3337
- let r = null, o = 0;
3338
- for (const a of t.split(",")) {
3339
- const { lang: n, q: l } = this.parseLangAndQ(a.trim());
3340
- if (l > o && (o = l, r = n, l === 1))
3341
- break;
3342
- }
3343
- return r;
3344
- }
3345
- parseLangAndQ(t) {
3346
- const r = t.indexOf(";"), o = r === -1 ? t : t.slice(0, Math.max(0, r));
3347
- let a = 1;
3348
- if (r !== -1) {
3349
- const n = /q=(?<q>[\d.]+)/.exec(t.slice(r + 1));
3350
- a = n != null && n.groups ? Number.parseFloat(n.groups.q) || 0 : 1;
3351
- }
3352
- return { lang: o, q: a };
3353
- }
3354
- /**
3355
- * Set the fallback locale.
3356
- * @param {string} locale - Fallback locale string.
3357
- * @internal
3358
- */
3359
- setFallbackLocale(t) {
3360
- this.fallbackLocale = t;
3361
- }
3362
- }, f(S, "LocaleDetector"), E(S, "instance");
3363
- var X;
3364
- X = class {
3365
- constructor(t) {
3366
- E(this, "namespaces");
3367
- this.namespaces = t ? new Map(t) : /* @__PURE__ */ new Map();
3368
- }
3369
- /**
3370
- * Add a namespace with its translations.
3371
- * @param {string} name - Namespace name.
3372
- * @param {Record<string, string>} translations - Translation key-value pairs.
3373
- * @throws {Error} If the namespace name is invalid.
3374
- */
3375
- addNamespace(t, r) {
3376
- if (!Rt(t))
3377
- throw new Error("Invalid namespace name");
3378
- this.namespaces.set(t, r);
3379
- }
3380
- /**
3381
- * Get a namespace by name.
3382
- * @param {string} name - Namespace name.
3383
- * @returns {Record<string, string> | undefined} Namespace translations or undefined.
3384
- */
3385
- getNamespace(t) {
3386
- return this.namespaces.get(t);
3387
- }
3388
- /**
3389
- * Get all namespace names.
3390
- * @returns {string[]} Array of namespace names.
3391
- */
3392
- getAllNamespaces() {
3393
- return [...this.namespaces.keys()];
3394
- }
3395
- /**
3396
- * Merge two namespaces into the target.
3397
- * @param {string} target - Target namespace name.
3398
- * @param {string} source - Source namespace name.
3399
- */
3400
- mergeNamespaces(t, r) {
3401
- const o = this.namespaces.get(t) ?? {}, a = this.namespaces.get(r) ?? {};
3402
- this.namespaces.set(t, { ...o, ...a });
3403
- }
3404
- /**
3405
- * Validate a namespace against a schema.
3406
- * @param {string} name - Namespace name.
3407
- * @param {Record<string, string>} [schema] - Optional schema to validate against.
3408
- * @returns {boolean} True if valid, false otherwise.
3409
- */
3410
- validateNamespace(t, r) {
3411
- const o = this.namespaces.get(t);
3412
- return o ? r ? Object.entries(r).every(([a, n]) => {
3413
- var m;
3414
- const l = (m = Object.getOwnPropertyDescriptor(o, a)) == null ? void 0 : m.value;
3415
- return l !== void 0 && typeof l === n;
3416
- }) : !0 : !1;
3417
- }
3418
- }, f(X, "NamespaceManager");
3419
- function Rt(e) {
3420
- return /^\w+$/.test(e);
3421
- }
3422
- f(Rt, "isSafeKey");
3423
- var Fr = [
3424
- "a",
3425
- "button",
3426
- "div",
3427
- "form",
3428
- "h2",
3429
- "h3",
3430
- "img",
3431
- "input",
3432
- "label",
3433
- "li",
3434
- "nav",
3435
- "ol",
3436
- "p",
3437
- "select",
3438
- "span",
3439
- "svg",
3440
- "ul"
3441
- ], Ur = Fr.reduce((e, t) => {
3442
- const r = Ot(`Primitive.${t}`), o = nt.forwardRef((a, n) => {
3443
- const { asChild: l, ...m } = a, d = l ? r : t;
3444
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ L(d, { ...m, ref: n });
3445
- });
3446
- return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
3447
- }, {});
3448
- function Qr(e, t) {
3449
- e && Tt.flushSync(() => e.dispatchEvent(t));
3450
- }
3451
- var Gr = "Separator", ot = "horizontal", Br = ["horizontal", "vertical"], At = nt.forwardRef((e, t) => {
3452
- const { decorative: r, orientation: o = ot, ...a } = e, n = jr(o) ? o : ot, m = r ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
3453
- return /* @__PURE__ */ L(
3454
- Ur.div,
3455
- {
3456
- "data-orientation": n,
3457
- ...m,
3458
- ...a,
3459
- ref: t
3460
- }
3461
- );
3462
- });
3463
- At.displayName = Gr;
3464
- function jr(e) {
3465
- return Br.includes(e);
3466
- }
3467
- var Kr = At;
3468
- function Zr({
3469
- className: e,
3470
- orientation: t = "horizontal",
3471
- decorative: r = !0,
3472
- ...o
3473
- }) {
3474
- return /* @__PURE__ */ L(
3475
- Kr,
3476
- {
3477
- "data-slot": "separator",
3478
- decorative: r,
3479
- orientation: t,
3480
- className: me(
3481
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
3482
- e
3483
- ),
3484
- ...o
3485
- }
3486
- );
3487
- }
3488
- function eo({ className: e, ...t }) {
3489
- return /* @__PURE__ */ L(
3490
- "div",
3491
- {
3492
- "data-slot": "skeleton",
3493
- className: me("bg-primary animate-pulse rounded-md", e),
3494
- ...t
3495
- }
3496
- );
3497
- }
3498
- export {
3499
- br as A,
3500
- Jr as B,
3501
- Xr as I,
3502
- Ur as P,
3503
- Zr as S,
3504
- fr as a,
3505
- _r as b,
3506
- me as c,
3507
- pr as d,
3508
- eo as e,
3509
- vr as f,
3510
- Qr as g
3511
- };