reactjs-tiptap-editor 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{ActionMenuButton-BFepb5pA.js → ActionMenuButton-71gCEVbv.js} +11 -11
- package/lib/{ActionMenuButton-BjQpCWBy.cjs → ActionMenuButton-Bzr6ICxv.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +3 -3
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +3 -3
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +3 -3
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +3 -3
- package/lib/CodeBlock.cjs +39 -39
- package/lib/CodeBlock.js +949 -841
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +3 -3
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +5 -5
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +3 -3
- package/lib/{Drawer-CSueBqcB.cjs → Drawer-DlX87Cl4.cjs} +1 -1
- package/lib/{Drawer-CJju6ecy.js → Drawer-GRyIh2y1.js} +13 -13
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +12 -12
- package/lib/{Excalidraw-sf65kOJo.cjs → Excalidraw-Bkq1fXLL.cjs} +1 -1
- package/lib/{Excalidraw-C6LNBBPI.js → Excalidraw-BmyhdJCU.js} +19 -19
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +3 -3
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +3 -3
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +12 -12
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +5 -5
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +3 -3
- package/lib/{Icon-CNyAQ70L.js → Icon-1z7VnLgz.js} +1 -1
- package/lib/{Icon-CJomacaQ.cjs → Icon-ztD4g9N4.cjs} +1 -1
- package/lib/{Iframe-DjIPMesT.js → Iframe-AiP8qPGF.js} +11 -11
- package/lib/{Iframe-CkoadzVT.cjs → Iframe-DhUlC9-Y.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +44 -44
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +7 -7
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.js +8 -8
- package/lib/{Indent-UDnZAurv.js → Indent-CBoQDISv.js} +3 -3
- package/lib/{Indent-08e09DMj.cjs → Indent-fphgO8Eo.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +3 -3
- package/lib/{Katex-zmcrp9k1.cjs → Katex-AfmTUUNS.cjs} +2 -2
- package/lib/{Katex-CXa45tyK.js → Katex-n2PVzaMd.js} +19 -19
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +1 -1
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +12 -12
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-CB8dAmrf.js → LinkEditBlock-CoXwYHlj.js} +68 -68
- package/lib/{LinkEditBlock-Dif8KmZQ.cjs → LinkEditBlock-sADc32hF.cjs} +2 -2
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +20 -21
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +12 -12
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +3 -3
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +16 -16
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +11 -11
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +3 -3
- package/lib/{Table-BahHb0Ru.cjs → Table-BLb5576a.cjs} +1 -1
- package/lib/{Table-BnhgS_-w.js → Table-BshvoFRh.js} +4 -4
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +3 -3
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +15 -15
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +15 -15
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +3 -3
- package/lib/{Twitter-Cb2gasLV.js → Twitter-CLVet4OM.js} +17 -17
- package/lib/{Twitter-BWmvba2p.cjs → Twitter-DEKTLWO5.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +22 -22
- package/lib/bubble.cjs +1 -1
- package/lib/bubble.js +36 -36
- package/lib/{button-CG4usMxR.js → button-BnN1L5_T.js} +1 -1
- package/lib/{button-CIneI3CY.cjs → button-CjAogRMZ.cjs} +1 -1
- package/lib/{checkbox-D71Mb18N.cjs → checkbox-BFgaCetY.cjs} +1 -1
- package/lib/{checkbox-C_n_ksgm.js → checkbox-sSQSzjls.js} +1 -1
- package/lib/{dialog-DOqHbj83.cjs → dialog-CUP7QBaG.cjs} +1 -1
- package/lib/{dialog-NJmA61GX.js → dialog-CzZSyyxS.js} +1 -1
- package/lib/{dropdown-menu-C6sUfvGJ.cjs → dropdown-menu-CwHOwzLr.cjs} +1 -1
- package/lib/{dropdown-menu-Lfbfr4dW.js → dropdown-menu-y1rPk4dr.js} +1 -1
- package/lib/{index-BY7ivGJJ.js → index--XZPCi0O.js} +370 -483
- package/lib/index-CnbtiTqP.cjs +7 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/{input-BP2Gxw3D.js → input-Byg4PPou.js} +1 -1
- package/lib/{input-gHDudt4e.cjs → input-Dikmsjjj.cjs} +1 -1
- package/lib/{label-DJJuWtqE.js → label-BX7OqM6p.js} +1 -1
- package/lib/{label-CVPLC4Zx.cjs → label-ChxDmW-K.cjs} +1 -1
- package/lib/{popover-BvQjtkQM.js → popover-CheVmqgb.js} +1 -1
- package/lib/{popover-MfEQQFJ7.cjs → popover-DVD1y8Z_.cjs} +1 -1
- package/lib/{separator-BJzi4Ghx.cjs → separator-CSuS-D6T.cjs} +1 -1
- package/lib/{separator-D_v6CJRt.js → separator-Y_Pbpi-5.js} +18 -18
- package/lib/{store-DXwTyDFS.js → store-BVm_SgvL.js} +1 -1
- package/lib/{store-D0HwYEZ6.cjs → store-DznMm4Ug.cjs} +1 -1
- package/lib/{tabs-CSLPqYK2.cjs → tabs-B9ooipwg.cjs} +1 -1
- package/lib/{tabs-C0zcytw3.js → tabs-p4pJGb6o.js} +1 -1
- package/lib/{textarea-Du5WiLd3.js → textarea-Byts1Pn0.js} +1 -1
- package/lib/{textarea-CoUGzfC4.cjs → textarea-L53EceuF.cjs} +1 -1
- package/lib/theme/theme.d.ts +1 -1
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +1 -1
- package/lib/{toggle-Bdrb8AZg.cjs → toggle-DUPu3nnZ.cjs} +1 -1
- package/lib/{toggle-DifEFalS.js → toggle-WBgzE8Jm.js} +10 -10
- package/lib/{tooltip-CY18LQet.js → tooltip-BOMwAoO1.js} +1 -1
- package/lib/{tooltip-nFyTogij.cjs → tooltip-DD5Ii8qI.cjs} +1 -1
- package/lib/{useButtonProps-DEuoHLy_.js → useButtonProps-BIOoOg6h.js} +1 -1
- package/lib/{useButtonProps-5aSfh81v.cjs → useButtonProps-C4SCmCVo.cjs} +1 -1
- package/package.json +1 -1
- package/lib/index-B7WkxZXU.cjs +0 -7
|
@@ -1,47 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { l as W, E as F } from "./events.constant-CBPIqO_g.js";
|
|
10
|
-
const re = "-", Ue = (e) => {
|
|
11
|
-
const r = Fe(e), {
|
|
1
|
+
import { C as Ee } from "./index-nFjllrEl.js";
|
|
2
|
+
import { jsx as M, Fragment as X, jsxs as ze } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as E, useState as Ae, useEffect as k, useRef as Q, createContext as ke, useContext as Re, useSyncExternalStore as Me, memo as Pe } from "react";
|
|
4
|
+
import { x as Ne, a as Ge } from "./index-DGihe-wH.js";
|
|
5
|
+
import { THEME as le } from "./theme.js";
|
|
6
|
+
import { l as _, E as W } from "./events.constant-CBPIqO_g.js";
|
|
7
|
+
const Z = "-", Te = (e) => {
|
|
8
|
+
const r = Le(e), {
|
|
12
9
|
conflictingClassGroups: t,
|
|
13
10
|
conflictingClassGroupModifiers: o
|
|
14
11
|
} = e;
|
|
15
12
|
return {
|
|
16
13
|
getClassGroupId: (a) => {
|
|
17
|
-
const s = a.split(
|
|
18
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
14
|
+
const s = a.split(Z);
|
|
15
|
+
return s[0] === "" && s.length !== 1 && s.shift(), ge(s, r) || Ie(a);
|
|
19
16
|
},
|
|
20
17
|
getConflictingClassGroupIds: (a, s) => {
|
|
21
|
-
const
|
|
22
|
-
return s && o[a] ? [...
|
|
18
|
+
const c = t[a] || [];
|
|
19
|
+
return s && o[a] ? [...c, ...o[a]] : c;
|
|
23
20
|
}
|
|
24
21
|
};
|
|
25
|
-
},
|
|
22
|
+
}, ge = (e, r) => {
|
|
26
23
|
var a;
|
|
27
24
|
if (e.length === 0)
|
|
28
25
|
return r.classGroupId;
|
|
29
|
-
const t = e[0], o = r.nextPart.get(t), i = o ?
|
|
26
|
+
const t = e[0], o = r.nextPart.get(t), i = o ? ge(e.slice(1), o) : void 0;
|
|
30
27
|
if (i)
|
|
31
28
|
return i;
|
|
32
29
|
if (r.validators.length === 0)
|
|
33
30
|
return;
|
|
34
|
-
const n = e.join(
|
|
31
|
+
const n = e.join(Z);
|
|
35
32
|
return (a = r.validators.find(({
|
|
36
33
|
validator: s
|
|
37
34
|
}) => s(n))) == null ? void 0 : a.classGroupId;
|
|
38
|
-
},
|
|
39
|
-
if (
|
|
40
|
-
const r =
|
|
35
|
+
}, ce = /^\[(.+)\]$/, Ie = (e) => {
|
|
36
|
+
if (ce.test(e)) {
|
|
37
|
+
const r = ce.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
41
38
|
if (t)
|
|
42
39
|
return "arbitrary.." + t;
|
|
43
40
|
}
|
|
44
|
-
},
|
|
41
|
+
}, Le = (e) => {
|
|
45
42
|
const {
|
|
46
43
|
theme: r,
|
|
47
44
|
prefix: t
|
|
@@ -49,19 +46,19 @@ const re = "-", Ue = (e) => {
|
|
|
49
46
|
nextPart: /* @__PURE__ */ new Map(),
|
|
50
47
|
validators: []
|
|
51
48
|
};
|
|
52
|
-
return
|
|
53
|
-
|
|
49
|
+
return Oe(Object.entries(e.classGroups), t).forEach(([n, a]) => {
|
|
50
|
+
Y(a, o, n, r);
|
|
54
51
|
}), o;
|
|
55
|
-
},
|
|
52
|
+
}, Y = (e, r, t, o) => {
|
|
56
53
|
e.forEach((i) => {
|
|
57
54
|
if (typeof i == "string") {
|
|
58
|
-
const n = i === "" ? r :
|
|
55
|
+
const n = i === "" ? r : de(r, i);
|
|
59
56
|
n.classGroupId = t;
|
|
60
57
|
return;
|
|
61
58
|
}
|
|
62
59
|
if (typeof i == "function") {
|
|
63
|
-
if (
|
|
64
|
-
|
|
60
|
+
if (je(i)) {
|
|
61
|
+
Y(i(o), r, t, o);
|
|
65
62
|
return;
|
|
66
63
|
}
|
|
67
64
|
r.validators.push({
|
|
@@ -71,21 +68,21 @@ const re = "-", Ue = (e) => {
|
|
|
71
68
|
return;
|
|
72
69
|
}
|
|
73
70
|
Object.entries(i).forEach(([n, a]) => {
|
|
74
|
-
|
|
71
|
+
Y(a, de(r, n), t, o);
|
|
75
72
|
});
|
|
76
73
|
});
|
|
77
|
-
},
|
|
74
|
+
}, de = (e, r) => {
|
|
78
75
|
let t = e;
|
|
79
|
-
return r.split(
|
|
76
|
+
return r.split(Z).forEach((o) => {
|
|
80
77
|
t.nextPart.has(o) || t.nextPart.set(o, {
|
|
81
78
|
nextPart: /* @__PURE__ */ new Map(),
|
|
82
79
|
validators: []
|
|
83
80
|
}), t = t.nextPart.get(o);
|
|
84
81
|
}), t;
|
|
85
|
-
},
|
|
82
|
+
}, je = (e) => e.isThemeGetter, Oe = (e, r) => r ? e.map(([t, o]) => {
|
|
86
83
|
const i = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, s]) => [r + a, s])) : n);
|
|
87
84
|
return [t, i];
|
|
88
|
-
}) : e,
|
|
85
|
+
}) : e, $e = (e) => {
|
|
89
86
|
if (e < 1)
|
|
90
87
|
return {
|
|
91
88
|
get: () => {
|
|
@@ -109,40 +106,40 @@ const re = "-", Ue = (e) => {
|
|
|
109
106
|
t.has(n) ? t.set(n, a) : i(n, a);
|
|
110
107
|
}
|
|
111
108
|
};
|
|
112
|
-
},
|
|
109
|
+
}, be = "!", _e = (e) => {
|
|
113
110
|
const {
|
|
114
111
|
separator: r,
|
|
115
112
|
experimentalParseClassName: t
|
|
116
113
|
} = e, o = r.length === 1, i = r[0], n = r.length, a = (s) => {
|
|
117
|
-
const
|
|
114
|
+
const c = [];
|
|
118
115
|
let u = 0, p = 0, f;
|
|
119
|
-
for (let
|
|
120
|
-
let
|
|
116
|
+
for (let h = 0; h < s.length; h++) {
|
|
117
|
+
let w = s[h];
|
|
121
118
|
if (u === 0) {
|
|
122
|
-
if (
|
|
123
|
-
|
|
119
|
+
if (w === i && (o || s.slice(h, h + n) === r)) {
|
|
120
|
+
c.push(s.slice(p, h)), p = h + n;
|
|
124
121
|
continue;
|
|
125
122
|
}
|
|
126
|
-
if (
|
|
127
|
-
f =
|
|
123
|
+
if (w === "/") {
|
|
124
|
+
f = h;
|
|
128
125
|
continue;
|
|
129
126
|
}
|
|
130
127
|
}
|
|
131
|
-
|
|
128
|
+
w === "[" ? u++ : w === "]" && u--;
|
|
132
129
|
}
|
|
133
|
-
const d =
|
|
130
|
+
const d = c.length === 0 ? s : s.substring(p), m = d.startsWith(be), y = m ? d.substring(1) : d, x = f && f > p ? f - p : void 0;
|
|
134
131
|
return {
|
|
135
|
-
modifiers:
|
|
136
|
-
hasImportantModifier:
|
|
137
|
-
baseClassName:
|
|
138
|
-
maybePostfixModifierPosition:
|
|
132
|
+
modifiers: c,
|
|
133
|
+
hasImportantModifier: m,
|
|
134
|
+
baseClassName: y,
|
|
135
|
+
maybePostfixModifierPosition: x
|
|
139
136
|
};
|
|
140
137
|
};
|
|
141
138
|
return t ? (s) => t({
|
|
142
139
|
className: s,
|
|
143
140
|
parseClassName: a
|
|
144
141
|
}) : a;
|
|
145
|
-
},
|
|
142
|
+
}, We = (e) => {
|
|
146
143
|
if (e.length <= 1)
|
|
147
144
|
return e;
|
|
148
145
|
const r = [];
|
|
@@ -150,122 +147,122 @@ const re = "-", Ue = (e) => {
|
|
|
150
147
|
return e.forEach((o) => {
|
|
151
148
|
o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
|
|
152
149
|
}), r.push(...t.sort()), r;
|
|
153
|
-
},
|
|
154
|
-
cache:
|
|
155
|
-
parseClassName:
|
|
156
|
-
...
|
|
157
|
-
}),
|
|
150
|
+
}, Fe = (e) => ({
|
|
151
|
+
cache: $e(e.cacheSize),
|
|
152
|
+
parseClassName: _e(e),
|
|
153
|
+
...Te(e)
|
|
154
|
+
}), He = /\s+/, Be = (e, r) => {
|
|
158
155
|
const {
|
|
159
156
|
parseClassName: t,
|
|
160
157
|
getClassGroupId: o,
|
|
161
158
|
getConflictingClassGroupIds: i
|
|
162
|
-
} = r, n = [], a = e.trim().split(
|
|
159
|
+
} = r, n = [], a = e.trim().split(He);
|
|
163
160
|
let s = "";
|
|
164
|
-
for (let
|
|
165
|
-
const u = a[
|
|
161
|
+
for (let c = a.length - 1; c >= 0; c -= 1) {
|
|
162
|
+
const u = a[c], {
|
|
166
163
|
modifiers: p,
|
|
167
164
|
hasImportantModifier: f,
|
|
168
165
|
baseClassName: d,
|
|
169
|
-
maybePostfixModifierPosition:
|
|
166
|
+
maybePostfixModifierPosition: m
|
|
170
167
|
} = t(u);
|
|
171
|
-
let
|
|
172
|
-
if (!
|
|
173
|
-
if (!
|
|
168
|
+
let y = !!m, x = o(y ? d.substring(0, m) : d);
|
|
169
|
+
if (!x) {
|
|
170
|
+
if (!y) {
|
|
174
171
|
s = u + (s.length > 0 ? " " + s : s);
|
|
175
172
|
continue;
|
|
176
173
|
}
|
|
177
|
-
if (
|
|
174
|
+
if (x = o(d), !x) {
|
|
178
175
|
s = u + (s.length > 0 ? " " + s : s);
|
|
179
176
|
continue;
|
|
180
177
|
}
|
|
181
|
-
|
|
178
|
+
y = !1;
|
|
182
179
|
}
|
|
183
|
-
const
|
|
184
|
-
if (n.includes(
|
|
180
|
+
const h = We(p).join(":"), w = f ? h + be : h, v = w + x;
|
|
181
|
+
if (n.includes(v))
|
|
185
182
|
continue;
|
|
186
|
-
n.push(
|
|
187
|
-
const
|
|
188
|
-
for (let
|
|
189
|
-
const
|
|
190
|
-
n.push(
|
|
183
|
+
n.push(v);
|
|
184
|
+
const G = i(x, y);
|
|
185
|
+
for (let R = 0; R < G.length; ++R) {
|
|
186
|
+
const j = G[R];
|
|
187
|
+
n.push(w + j);
|
|
191
188
|
}
|
|
192
189
|
s = u + (s.length > 0 ? " " + s : s);
|
|
193
190
|
}
|
|
194
191
|
return s;
|
|
195
192
|
};
|
|
196
|
-
function
|
|
193
|
+
function Ue() {
|
|
197
194
|
let e = 0, r, t, o = "";
|
|
198
195
|
for (; e < arguments.length; )
|
|
199
|
-
(r = arguments[e++]) && (t =
|
|
196
|
+
(r = arguments[e++]) && (t = me(r)) && (o && (o += " "), o += t);
|
|
200
197
|
return o;
|
|
201
198
|
}
|
|
202
|
-
const
|
|
199
|
+
const me = (e) => {
|
|
203
200
|
if (typeof e == "string")
|
|
204
201
|
return e;
|
|
205
202
|
let r, t = "";
|
|
206
203
|
for (let o = 0; o < e.length; o++)
|
|
207
|
-
e[o] && (r =
|
|
204
|
+
e[o] && (r = me(e[o])) && (t && (t += " "), t += r);
|
|
208
205
|
return t;
|
|
209
206
|
};
|
|
210
|
-
function
|
|
207
|
+
function Ve(e, ...r) {
|
|
211
208
|
let t, o, i, n = a;
|
|
212
|
-
function a(
|
|
209
|
+
function a(c) {
|
|
213
210
|
const u = r.reduce((p, f) => f(p), e());
|
|
214
|
-
return t =
|
|
211
|
+
return t = Fe(u), o = t.cache.get, i = t.cache.set, n = s, s(c);
|
|
215
212
|
}
|
|
216
|
-
function s(
|
|
217
|
-
const u = o(
|
|
213
|
+
function s(c) {
|
|
214
|
+
const u = o(c);
|
|
218
215
|
if (u)
|
|
219
216
|
return u;
|
|
220
|
-
const p =
|
|
221
|
-
return i(
|
|
217
|
+
const p = Be(c, t);
|
|
218
|
+
return i(c, p), p;
|
|
222
219
|
}
|
|
223
220
|
return function() {
|
|
224
|
-
return n(
|
|
221
|
+
return n(Ue.apply(null, arguments));
|
|
225
222
|
};
|
|
226
223
|
}
|
|
227
|
-
const
|
|
224
|
+
const g = (e) => {
|
|
228
225
|
const r = (t) => t[e] || [];
|
|
229
226
|
return r.isThemeGetter = !0, r;
|
|
230
|
-
},
|
|
231
|
-
const o =
|
|
227
|
+
}, he = /^\[(?:([a-z-]+):)?(.+)\]$/i, qe = /^\d+\/\d+$/, Je = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\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$/, Ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Xe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => P(e) || Je.has(e) || qe.test(e), z = (e) => N(e, "length", ir), P = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => N(e, "number", P), I = (e) => !!e && Number.isInteger(Number(e)), De = (e) => e.endsWith("%") && P(e.slice(0, -1)), l = (e) => he.test(e), A = (e) => Qe.test(e), er = /* @__PURE__ */ new Set(["length", "size", "percentage"]), rr = (e) => N(e, er, xe), tr = (e) => N(e, "position", xe), or = /* @__PURE__ */ new Set(["image", "url"]), nr = (e) => N(e, or, lr), sr = (e) => N(e, "", ar), L = () => !0, N = (e, r, t) => {
|
|
228
|
+
const o = he.exec(e);
|
|
232
229
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
233
|
-
},
|
|
230
|
+
}, ir = (e) => (
|
|
234
231
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
235
232
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
236
233
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
237
|
-
|
|
238
|
-
),
|
|
239
|
-
const e =
|
|
234
|
+
Ye.test(e) && !Ke.test(e)
|
|
235
|
+
), xe = () => !1, ar = (e) => Xe.test(e), lr = (e) => Ze.test(e), cr = () => {
|
|
236
|
+
const e = g("colors"), r = g("spacing"), t = g("blur"), o = g("brightness"), i = g("borderColor"), n = g("borderRadius"), a = g("borderSpacing"), s = g("borderWidth"), c = g("contrast"), u = g("grayscale"), p = g("hueRotate"), f = g("invert"), d = g("gap"), m = g("gradientColorStops"), y = g("gradientColorStopPositions"), x = g("inset"), h = g("margin"), w = g("opacity"), v = g("padding"), G = g("saturate"), R = g("scale"), j = g("sepia"), re = g("skew"), te = g("space"), oe = g("translate"), F = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", l, r], b = () => [l, r], ne = () => ["", S, z], O = () => ["auto", P, l], se = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], T = () => ["", "0", l], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [P, l];
|
|
240
237
|
return {
|
|
241
238
|
cacheSize: 500,
|
|
242
239
|
separator: ":",
|
|
243
240
|
theme: {
|
|
244
|
-
colors: [
|
|
245
|
-
spacing: [
|
|
246
|
-
blur: ["none", "", A,
|
|
247
|
-
brightness:
|
|
241
|
+
colors: [L],
|
|
242
|
+
spacing: [S, z],
|
|
243
|
+
blur: ["none", "", A, l],
|
|
244
|
+
brightness: C(),
|
|
248
245
|
borderColor: [e],
|
|
249
|
-
borderRadius: ["none", "", "full", A,
|
|
250
|
-
borderSpacing:
|
|
251
|
-
borderWidth:
|
|
252
|
-
contrast:
|
|
253
|
-
grayscale:
|
|
254
|
-
hueRotate:
|
|
255
|
-
invert:
|
|
256
|
-
gap:
|
|
246
|
+
borderRadius: ["none", "", "full", A, l],
|
|
247
|
+
borderSpacing: b(),
|
|
248
|
+
borderWidth: ne(),
|
|
249
|
+
contrast: C(),
|
|
250
|
+
grayscale: T(),
|
|
251
|
+
hueRotate: C(),
|
|
252
|
+
invert: T(),
|
|
253
|
+
gap: b(),
|
|
257
254
|
gradientColorStops: [e],
|
|
258
|
-
gradientColorStopPositions: [
|
|
259
|
-
inset:
|
|
260
|
-
margin:
|
|
261
|
-
opacity:
|
|
262
|
-
padding:
|
|
263
|
-
saturate:
|
|
264
|
-
scale:
|
|
265
|
-
sepia:
|
|
266
|
-
skew:
|
|
267
|
-
space:
|
|
268
|
-
translate:
|
|
255
|
+
gradientColorStopPositions: [De, z],
|
|
256
|
+
inset: B(),
|
|
257
|
+
margin: B(),
|
|
258
|
+
opacity: C(),
|
|
259
|
+
padding: b(),
|
|
260
|
+
saturate: C(),
|
|
261
|
+
scale: C(),
|
|
262
|
+
sepia: T(),
|
|
263
|
+
skew: C(),
|
|
264
|
+
space: b(),
|
|
265
|
+
translate: b()
|
|
269
266
|
},
|
|
270
267
|
classGroups: {
|
|
271
268
|
// Layout
|
|
@@ -274,7 +271,7 @@ const h = (e) => {
|
|
|
274
271
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
275
272
|
*/
|
|
276
273
|
aspect: [{
|
|
277
|
-
aspect: ["auto", "square", "video",
|
|
274
|
+
aspect: ["auto", "square", "video", l]
|
|
278
275
|
}],
|
|
279
276
|
/**
|
|
280
277
|
* Container
|
|
@@ -293,14 +290,14 @@ const h = (e) => {
|
|
|
293
290
|
* @see https://tailwindcss.com/docs/break-after
|
|
294
291
|
*/
|
|
295
292
|
"break-after": [{
|
|
296
|
-
"break-after":
|
|
293
|
+
"break-after": ae()
|
|
297
294
|
}],
|
|
298
295
|
/**
|
|
299
296
|
* Break Before
|
|
300
297
|
* @see https://tailwindcss.com/docs/break-before
|
|
301
298
|
*/
|
|
302
299
|
"break-before": [{
|
|
303
|
-
"break-before":
|
|
300
|
+
"break-before": ae()
|
|
304
301
|
}],
|
|
305
302
|
/**
|
|
306
303
|
* Break Inside
|
|
@@ -359,49 +356,49 @@ const h = (e) => {
|
|
|
359
356
|
* @see https://tailwindcss.com/docs/object-position
|
|
360
357
|
*/
|
|
361
358
|
"object-position": [{
|
|
362
|
-
object: [...
|
|
359
|
+
object: [...se(), l]
|
|
363
360
|
}],
|
|
364
361
|
/**
|
|
365
362
|
* Overflow
|
|
366
363
|
* @see https://tailwindcss.com/docs/overflow
|
|
367
364
|
*/
|
|
368
365
|
overflow: [{
|
|
369
|
-
overflow:
|
|
366
|
+
overflow: H()
|
|
370
367
|
}],
|
|
371
368
|
/**
|
|
372
369
|
* Overflow X
|
|
373
370
|
* @see https://tailwindcss.com/docs/overflow
|
|
374
371
|
*/
|
|
375
372
|
"overflow-x": [{
|
|
376
|
-
"overflow-x":
|
|
373
|
+
"overflow-x": H()
|
|
377
374
|
}],
|
|
378
375
|
/**
|
|
379
376
|
* Overflow Y
|
|
380
377
|
* @see https://tailwindcss.com/docs/overflow
|
|
381
378
|
*/
|
|
382
379
|
"overflow-y": [{
|
|
383
|
-
"overflow-y":
|
|
380
|
+
"overflow-y": H()
|
|
384
381
|
}],
|
|
385
382
|
/**
|
|
386
383
|
* Overscroll Behavior
|
|
387
384
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
388
385
|
*/
|
|
389
386
|
overscroll: [{
|
|
390
|
-
overscroll:
|
|
387
|
+
overscroll: F()
|
|
391
388
|
}],
|
|
392
389
|
/**
|
|
393
390
|
* Overscroll Behavior X
|
|
394
391
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
395
392
|
*/
|
|
396
393
|
"overscroll-x": [{
|
|
397
|
-
"overscroll-x":
|
|
394
|
+
"overscroll-x": F()
|
|
398
395
|
}],
|
|
399
396
|
/**
|
|
400
397
|
* Overscroll Behavior Y
|
|
401
398
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
402
399
|
*/
|
|
403
400
|
"overscroll-y": [{
|
|
404
|
-
"overscroll-y":
|
|
401
|
+
"overscroll-y": F()
|
|
405
402
|
}],
|
|
406
403
|
/**
|
|
407
404
|
* Position
|
|
@@ -413,63 +410,63 @@ const h = (e) => {
|
|
|
413
410
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
414
411
|
*/
|
|
415
412
|
inset: [{
|
|
416
|
-
inset: [
|
|
413
|
+
inset: [x]
|
|
417
414
|
}],
|
|
418
415
|
/**
|
|
419
416
|
* Right / Left
|
|
420
417
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
421
418
|
*/
|
|
422
419
|
"inset-x": [{
|
|
423
|
-
"inset-x": [
|
|
420
|
+
"inset-x": [x]
|
|
424
421
|
}],
|
|
425
422
|
/**
|
|
426
423
|
* Top / Bottom
|
|
427
424
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
428
425
|
*/
|
|
429
426
|
"inset-y": [{
|
|
430
|
-
"inset-y": [
|
|
427
|
+
"inset-y": [x]
|
|
431
428
|
}],
|
|
432
429
|
/**
|
|
433
430
|
* Start
|
|
434
431
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
435
432
|
*/
|
|
436
433
|
start: [{
|
|
437
|
-
start: [
|
|
434
|
+
start: [x]
|
|
438
435
|
}],
|
|
439
436
|
/**
|
|
440
437
|
* End
|
|
441
438
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
442
439
|
*/
|
|
443
440
|
end: [{
|
|
444
|
-
end: [
|
|
441
|
+
end: [x]
|
|
445
442
|
}],
|
|
446
443
|
/**
|
|
447
444
|
* Top
|
|
448
445
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
449
446
|
*/
|
|
450
447
|
top: [{
|
|
451
|
-
top: [
|
|
448
|
+
top: [x]
|
|
452
449
|
}],
|
|
453
450
|
/**
|
|
454
451
|
* Right
|
|
455
452
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
456
453
|
*/
|
|
457
454
|
right: [{
|
|
458
|
-
right: [
|
|
455
|
+
right: [x]
|
|
459
456
|
}],
|
|
460
457
|
/**
|
|
461
458
|
* Bottom
|
|
462
459
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
463
460
|
*/
|
|
464
461
|
bottom: [{
|
|
465
|
-
bottom: [
|
|
462
|
+
bottom: [x]
|
|
466
463
|
}],
|
|
467
464
|
/**
|
|
468
465
|
* Left
|
|
469
466
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
470
467
|
*/
|
|
471
468
|
left: [{
|
|
472
|
-
left: [
|
|
469
|
+
left: [x]
|
|
473
470
|
}],
|
|
474
471
|
/**
|
|
475
472
|
* Visibility
|
|
@@ -481,7 +478,7 @@ const h = (e) => {
|
|
|
481
478
|
* @see https://tailwindcss.com/docs/z-index
|
|
482
479
|
*/
|
|
483
480
|
z: [{
|
|
484
|
-
z: ["auto",
|
|
481
|
+
z: ["auto", I, l]
|
|
485
482
|
}],
|
|
486
483
|
// Flexbox and Grid
|
|
487
484
|
/**
|
|
@@ -489,7 +486,7 @@ const h = (e) => {
|
|
|
489
486
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
490
487
|
*/
|
|
491
488
|
basis: [{
|
|
492
|
-
basis:
|
|
489
|
+
basis: B()
|
|
493
490
|
}],
|
|
494
491
|
/**
|
|
495
492
|
* Flex Direction
|
|
@@ -510,35 +507,35 @@ const h = (e) => {
|
|
|
510
507
|
* @see https://tailwindcss.com/docs/flex
|
|
511
508
|
*/
|
|
512
509
|
flex: [{
|
|
513
|
-
flex: ["1", "auto", "initial", "none",
|
|
510
|
+
flex: ["1", "auto", "initial", "none", l]
|
|
514
511
|
}],
|
|
515
512
|
/**
|
|
516
513
|
* Flex Grow
|
|
517
514
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
518
515
|
*/
|
|
519
516
|
grow: [{
|
|
520
|
-
grow:
|
|
517
|
+
grow: T()
|
|
521
518
|
}],
|
|
522
519
|
/**
|
|
523
520
|
* Flex Shrink
|
|
524
521
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
525
522
|
*/
|
|
526
523
|
shrink: [{
|
|
527
|
-
shrink:
|
|
524
|
+
shrink: T()
|
|
528
525
|
}],
|
|
529
526
|
/**
|
|
530
527
|
* Order
|
|
531
528
|
* @see https://tailwindcss.com/docs/order
|
|
532
529
|
*/
|
|
533
530
|
order: [{
|
|
534
|
-
order: ["first", "last", "none",
|
|
531
|
+
order: ["first", "last", "none", I, l]
|
|
535
532
|
}],
|
|
536
533
|
/**
|
|
537
534
|
* Grid Template Columns
|
|
538
535
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
539
536
|
*/
|
|
540
537
|
"grid-cols": [{
|
|
541
|
-
"grid-cols": [
|
|
538
|
+
"grid-cols": [L]
|
|
542
539
|
}],
|
|
543
540
|
/**
|
|
544
541
|
* Grid Column Start / End
|
|
@@ -546,29 +543,29 @@ const h = (e) => {
|
|
|
546
543
|
*/
|
|
547
544
|
"col-start-end": [{
|
|
548
545
|
col: ["auto", {
|
|
549
|
-
span: ["full",
|
|
550
|
-
},
|
|
546
|
+
span: ["full", I, l]
|
|
547
|
+
}, l]
|
|
551
548
|
}],
|
|
552
549
|
/**
|
|
553
550
|
* Grid Column Start
|
|
554
551
|
* @see https://tailwindcss.com/docs/grid-column
|
|
555
552
|
*/
|
|
556
553
|
"col-start": [{
|
|
557
|
-
"col-start":
|
|
554
|
+
"col-start": O()
|
|
558
555
|
}],
|
|
559
556
|
/**
|
|
560
557
|
* Grid Column End
|
|
561
558
|
* @see https://tailwindcss.com/docs/grid-column
|
|
562
559
|
*/
|
|
563
560
|
"col-end": [{
|
|
564
|
-
"col-end":
|
|
561
|
+
"col-end": O()
|
|
565
562
|
}],
|
|
566
563
|
/**
|
|
567
564
|
* Grid Template Rows
|
|
568
565
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
569
566
|
*/
|
|
570
567
|
"grid-rows": [{
|
|
571
|
-
"grid-rows": [
|
|
568
|
+
"grid-rows": [L]
|
|
572
569
|
}],
|
|
573
570
|
/**
|
|
574
571
|
* Grid Row Start / End
|
|
@@ -576,22 +573,22 @@ const h = (e) => {
|
|
|
576
573
|
*/
|
|
577
574
|
"row-start-end": [{
|
|
578
575
|
row: ["auto", {
|
|
579
|
-
span: [
|
|
580
|
-
},
|
|
576
|
+
span: [I, l]
|
|
577
|
+
}, l]
|
|
581
578
|
}],
|
|
582
579
|
/**
|
|
583
580
|
* Grid Row Start
|
|
584
581
|
* @see https://tailwindcss.com/docs/grid-row
|
|
585
582
|
*/
|
|
586
583
|
"row-start": [{
|
|
587
|
-
"row-start":
|
|
584
|
+
"row-start": O()
|
|
588
585
|
}],
|
|
589
586
|
/**
|
|
590
587
|
* Grid Row End
|
|
591
588
|
* @see https://tailwindcss.com/docs/grid-row
|
|
592
589
|
*/
|
|
593
590
|
"row-end": [{
|
|
594
|
-
"row-end":
|
|
591
|
+
"row-end": O()
|
|
595
592
|
}],
|
|
596
593
|
/**
|
|
597
594
|
* Grid Auto Flow
|
|
@@ -605,14 +602,14 @@ const h = (e) => {
|
|
|
605
602
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
606
603
|
*/
|
|
607
604
|
"auto-cols": [{
|
|
608
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
605
|
+
"auto-cols": ["auto", "min", "max", "fr", l]
|
|
609
606
|
}],
|
|
610
607
|
/**
|
|
611
608
|
* Grid Auto Rows
|
|
612
609
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
613
610
|
*/
|
|
614
611
|
"auto-rows": [{
|
|
615
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
612
|
+
"auto-rows": ["auto", "min", "max", "fr", l]
|
|
616
613
|
}],
|
|
617
614
|
/**
|
|
618
615
|
* Gap
|
|
@@ -640,7 +637,7 @@ const h = (e) => {
|
|
|
640
637
|
* @see https://tailwindcss.com/docs/justify-content
|
|
641
638
|
*/
|
|
642
639
|
"justify-content": [{
|
|
643
|
-
justify: ["normal", ...
|
|
640
|
+
justify: ["normal", ...U()]
|
|
644
641
|
}],
|
|
645
642
|
/**
|
|
646
643
|
* Justify Items
|
|
@@ -661,7 +658,7 @@ const h = (e) => {
|
|
|
661
658
|
* @see https://tailwindcss.com/docs/align-content
|
|
662
659
|
*/
|
|
663
660
|
"align-content": [{
|
|
664
|
-
content: ["normal", ...
|
|
661
|
+
content: ["normal", ...U(), "baseline"]
|
|
665
662
|
}],
|
|
666
663
|
/**
|
|
667
664
|
* Align Items
|
|
@@ -682,7 +679,7 @@ const h = (e) => {
|
|
|
682
679
|
* @see https://tailwindcss.com/docs/place-content
|
|
683
680
|
*/
|
|
684
681
|
"place-content": [{
|
|
685
|
-
"place-content": [...
|
|
682
|
+
"place-content": [...U(), "baseline"]
|
|
686
683
|
}],
|
|
687
684
|
/**
|
|
688
685
|
* Place Items
|
|
@@ -704,133 +701,133 @@ const h = (e) => {
|
|
|
704
701
|
* @see https://tailwindcss.com/docs/padding
|
|
705
702
|
*/
|
|
706
703
|
p: [{
|
|
707
|
-
p: [
|
|
704
|
+
p: [v]
|
|
708
705
|
}],
|
|
709
706
|
/**
|
|
710
707
|
* Padding X
|
|
711
708
|
* @see https://tailwindcss.com/docs/padding
|
|
712
709
|
*/
|
|
713
710
|
px: [{
|
|
714
|
-
px: [
|
|
711
|
+
px: [v]
|
|
715
712
|
}],
|
|
716
713
|
/**
|
|
717
714
|
* Padding Y
|
|
718
715
|
* @see https://tailwindcss.com/docs/padding
|
|
719
716
|
*/
|
|
720
717
|
py: [{
|
|
721
|
-
py: [
|
|
718
|
+
py: [v]
|
|
722
719
|
}],
|
|
723
720
|
/**
|
|
724
721
|
* Padding Start
|
|
725
722
|
* @see https://tailwindcss.com/docs/padding
|
|
726
723
|
*/
|
|
727
724
|
ps: [{
|
|
728
|
-
ps: [
|
|
725
|
+
ps: [v]
|
|
729
726
|
}],
|
|
730
727
|
/**
|
|
731
728
|
* Padding End
|
|
732
729
|
* @see https://tailwindcss.com/docs/padding
|
|
733
730
|
*/
|
|
734
731
|
pe: [{
|
|
735
|
-
pe: [
|
|
732
|
+
pe: [v]
|
|
736
733
|
}],
|
|
737
734
|
/**
|
|
738
735
|
* Padding Top
|
|
739
736
|
* @see https://tailwindcss.com/docs/padding
|
|
740
737
|
*/
|
|
741
738
|
pt: [{
|
|
742
|
-
pt: [
|
|
739
|
+
pt: [v]
|
|
743
740
|
}],
|
|
744
741
|
/**
|
|
745
742
|
* Padding Right
|
|
746
743
|
* @see https://tailwindcss.com/docs/padding
|
|
747
744
|
*/
|
|
748
745
|
pr: [{
|
|
749
|
-
pr: [
|
|
746
|
+
pr: [v]
|
|
750
747
|
}],
|
|
751
748
|
/**
|
|
752
749
|
* Padding Bottom
|
|
753
750
|
* @see https://tailwindcss.com/docs/padding
|
|
754
751
|
*/
|
|
755
752
|
pb: [{
|
|
756
|
-
pb: [
|
|
753
|
+
pb: [v]
|
|
757
754
|
}],
|
|
758
755
|
/**
|
|
759
756
|
* Padding Left
|
|
760
757
|
* @see https://tailwindcss.com/docs/padding
|
|
761
758
|
*/
|
|
762
759
|
pl: [{
|
|
763
|
-
pl: [
|
|
760
|
+
pl: [v]
|
|
764
761
|
}],
|
|
765
762
|
/**
|
|
766
763
|
* Margin
|
|
767
764
|
* @see https://tailwindcss.com/docs/margin
|
|
768
765
|
*/
|
|
769
766
|
m: [{
|
|
770
|
-
m: [
|
|
767
|
+
m: [h]
|
|
771
768
|
}],
|
|
772
769
|
/**
|
|
773
770
|
* Margin X
|
|
774
771
|
* @see https://tailwindcss.com/docs/margin
|
|
775
772
|
*/
|
|
776
773
|
mx: [{
|
|
777
|
-
mx: [
|
|
774
|
+
mx: [h]
|
|
778
775
|
}],
|
|
779
776
|
/**
|
|
780
777
|
* Margin Y
|
|
781
778
|
* @see https://tailwindcss.com/docs/margin
|
|
782
779
|
*/
|
|
783
780
|
my: [{
|
|
784
|
-
my: [
|
|
781
|
+
my: [h]
|
|
785
782
|
}],
|
|
786
783
|
/**
|
|
787
784
|
* Margin Start
|
|
788
785
|
* @see https://tailwindcss.com/docs/margin
|
|
789
786
|
*/
|
|
790
787
|
ms: [{
|
|
791
|
-
ms: [
|
|
788
|
+
ms: [h]
|
|
792
789
|
}],
|
|
793
790
|
/**
|
|
794
791
|
* Margin End
|
|
795
792
|
* @see https://tailwindcss.com/docs/margin
|
|
796
793
|
*/
|
|
797
794
|
me: [{
|
|
798
|
-
me: [
|
|
795
|
+
me: [h]
|
|
799
796
|
}],
|
|
800
797
|
/**
|
|
801
798
|
* Margin Top
|
|
802
799
|
* @see https://tailwindcss.com/docs/margin
|
|
803
800
|
*/
|
|
804
801
|
mt: [{
|
|
805
|
-
mt: [
|
|
802
|
+
mt: [h]
|
|
806
803
|
}],
|
|
807
804
|
/**
|
|
808
805
|
* Margin Right
|
|
809
806
|
* @see https://tailwindcss.com/docs/margin
|
|
810
807
|
*/
|
|
811
808
|
mr: [{
|
|
812
|
-
mr: [
|
|
809
|
+
mr: [h]
|
|
813
810
|
}],
|
|
814
811
|
/**
|
|
815
812
|
* Margin Bottom
|
|
816
813
|
* @see https://tailwindcss.com/docs/margin
|
|
817
814
|
*/
|
|
818
815
|
mb: [{
|
|
819
|
-
mb: [
|
|
816
|
+
mb: [h]
|
|
820
817
|
}],
|
|
821
818
|
/**
|
|
822
819
|
* Margin Left
|
|
823
820
|
* @see https://tailwindcss.com/docs/margin
|
|
824
821
|
*/
|
|
825
822
|
ml: [{
|
|
826
|
-
ml: [
|
|
823
|
+
ml: [h]
|
|
827
824
|
}],
|
|
828
825
|
/**
|
|
829
826
|
* Space Between X
|
|
830
827
|
* @see https://tailwindcss.com/docs/space
|
|
831
828
|
*/
|
|
832
829
|
"space-x": [{
|
|
833
|
-
"space-x": [
|
|
830
|
+
"space-x": [te]
|
|
834
831
|
}],
|
|
835
832
|
/**
|
|
836
833
|
* Space Between X Reverse
|
|
@@ -842,7 +839,7 @@ const h = (e) => {
|
|
|
842
839
|
* @see https://tailwindcss.com/docs/space
|
|
843
840
|
*/
|
|
844
841
|
"space-y": [{
|
|
845
|
-
"space-y": [
|
|
842
|
+
"space-y": [te]
|
|
846
843
|
}],
|
|
847
844
|
/**
|
|
848
845
|
* Space Between Y Reverse
|
|
@@ -855,21 +852,21 @@ const h = (e) => {
|
|
|
855
852
|
* @see https://tailwindcss.com/docs/width
|
|
856
853
|
*/
|
|
857
854
|
w: [{
|
|
858
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
855
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, r]
|
|
859
856
|
}],
|
|
860
857
|
/**
|
|
861
858
|
* Min-Width
|
|
862
859
|
* @see https://tailwindcss.com/docs/min-width
|
|
863
860
|
*/
|
|
864
861
|
"min-w": [{
|
|
865
|
-
"min-w": [
|
|
862
|
+
"min-w": [l, r, "min", "max", "fit"]
|
|
866
863
|
}],
|
|
867
864
|
/**
|
|
868
865
|
* Max-Width
|
|
869
866
|
* @see https://tailwindcss.com/docs/max-width
|
|
870
867
|
*/
|
|
871
868
|
"max-w": [{
|
|
872
|
-
"max-w": [
|
|
869
|
+
"max-w": [l, r, "none", "full", "min", "max", "fit", "prose", {
|
|
873
870
|
screen: [A]
|
|
874
871
|
}, A]
|
|
875
872
|
}],
|
|
@@ -878,28 +875,28 @@ const h = (e) => {
|
|
|
878
875
|
* @see https://tailwindcss.com/docs/height
|
|
879
876
|
*/
|
|
880
877
|
h: [{
|
|
881
|
-
h: [
|
|
878
|
+
h: [l, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
882
879
|
}],
|
|
883
880
|
/**
|
|
884
881
|
* Min-Height
|
|
885
882
|
* @see https://tailwindcss.com/docs/min-height
|
|
886
883
|
*/
|
|
887
884
|
"min-h": [{
|
|
888
|
-
"min-h": [
|
|
885
|
+
"min-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
889
886
|
}],
|
|
890
887
|
/**
|
|
891
888
|
* Max-Height
|
|
892
889
|
* @see https://tailwindcss.com/docs/max-height
|
|
893
890
|
*/
|
|
894
891
|
"max-h": [{
|
|
895
|
-
"max-h": [
|
|
892
|
+
"max-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
896
893
|
}],
|
|
897
894
|
/**
|
|
898
895
|
* Size
|
|
899
896
|
* @see https://tailwindcss.com/docs/size
|
|
900
897
|
*/
|
|
901
898
|
size: [{
|
|
902
|
-
size: [
|
|
899
|
+
size: [l, r, "auto", "min", "max", "fit"]
|
|
903
900
|
}],
|
|
904
901
|
// Typography
|
|
905
902
|
/**
|
|
@@ -907,7 +904,7 @@ const h = (e) => {
|
|
|
907
904
|
* @see https://tailwindcss.com/docs/font-size
|
|
908
905
|
*/
|
|
909
906
|
"font-size": [{
|
|
910
|
-
text: ["base", A,
|
|
907
|
+
text: ["base", A, z]
|
|
911
908
|
}],
|
|
912
909
|
/**
|
|
913
910
|
* Font Smoothing
|
|
@@ -924,14 +921,14 @@ const h = (e) => {
|
|
|
924
921
|
* @see https://tailwindcss.com/docs/font-weight
|
|
925
922
|
*/
|
|
926
923
|
"font-weight": [{
|
|
927
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
924
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", V]
|
|
928
925
|
}],
|
|
929
926
|
/**
|
|
930
927
|
* Font Family
|
|
931
928
|
* @see https://tailwindcss.com/docs/font-family
|
|
932
929
|
*/
|
|
933
930
|
"font-family": [{
|
|
934
|
-
font: [
|
|
931
|
+
font: [L]
|
|
935
932
|
}],
|
|
936
933
|
/**
|
|
937
934
|
* Font Variant Numeric
|
|
@@ -968,35 +965,35 @@ const h = (e) => {
|
|
|
968
965
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
969
966
|
*/
|
|
970
967
|
tracking: [{
|
|
971
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
968
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l]
|
|
972
969
|
}],
|
|
973
970
|
/**
|
|
974
971
|
* Line Clamp
|
|
975
972
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
976
973
|
*/
|
|
977
974
|
"line-clamp": [{
|
|
978
|
-
"line-clamp": ["none",
|
|
975
|
+
"line-clamp": ["none", P, V]
|
|
979
976
|
}],
|
|
980
977
|
/**
|
|
981
978
|
* Line Height
|
|
982
979
|
* @see https://tailwindcss.com/docs/line-height
|
|
983
980
|
*/
|
|
984
981
|
leading: [{
|
|
985
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
982
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", S, l]
|
|
986
983
|
}],
|
|
987
984
|
/**
|
|
988
985
|
* List Style Image
|
|
989
986
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
990
987
|
*/
|
|
991
988
|
"list-image": [{
|
|
992
|
-
"list-image": ["none",
|
|
989
|
+
"list-image": ["none", l]
|
|
993
990
|
}],
|
|
994
991
|
/**
|
|
995
992
|
* List Style Type
|
|
996
993
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
997
994
|
*/
|
|
998
995
|
"list-style-type": [{
|
|
999
|
-
list: ["none", "disc", "decimal",
|
|
996
|
+
list: ["none", "disc", "decimal", l]
|
|
1000
997
|
}],
|
|
1001
998
|
/**
|
|
1002
999
|
* List Style Position
|
|
@@ -1018,7 +1015,7 @@ const h = (e) => {
|
|
|
1018
1015
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1019
1016
|
*/
|
|
1020
1017
|
"placeholder-opacity": [{
|
|
1021
|
-
"placeholder-opacity": [
|
|
1018
|
+
"placeholder-opacity": [w]
|
|
1022
1019
|
}],
|
|
1023
1020
|
/**
|
|
1024
1021
|
* Text Alignment
|
|
@@ -1039,7 +1036,7 @@ const h = (e) => {
|
|
|
1039
1036
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1040
1037
|
*/
|
|
1041
1038
|
"text-opacity": [{
|
|
1042
|
-
"text-opacity": [
|
|
1039
|
+
"text-opacity": [w]
|
|
1043
1040
|
}],
|
|
1044
1041
|
/**
|
|
1045
1042
|
* Text Decoration
|
|
@@ -1051,21 +1048,21 @@ const h = (e) => {
|
|
|
1051
1048
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1052
1049
|
*/
|
|
1053
1050
|
"text-decoration-style": [{
|
|
1054
|
-
decoration: [
|
|
1051
|
+
decoration: [...$(), "wavy"]
|
|
1055
1052
|
}],
|
|
1056
1053
|
/**
|
|
1057
1054
|
* Text Decoration Thickness
|
|
1058
1055
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1059
1056
|
*/
|
|
1060
1057
|
"text-decoration-thickness": [{
|
|
1061
|
-
decoration: ["auto", "from-font",
|
|
1058
|
+
decoration: ["auto", "from-font", S, z]
|
|
1062
1059
|
}],
|
|
1063
1060
|
/**
|
|
1064
1061
|
* Text Underline Offset
|
|
1065
1062
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1066
1063
|
*/
|
|
1067
1064
|
"underline-offset": [{
|
|
1068
|
-
"underline-offset": ["auto",
|
|
1065
|
+
"underline-offset": ["auto", S, l]
|
|
1069
1066
|
}],
|
|
1070
1067
|
/**
|
|
1071
1068
|
* Text Decoration Color
|
|
@@ -1096,14 +1093,14 @@ const h = (e) => {
|
|
|
1096
1093
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1097
1094
|
*/
|
|
1098
1095
|
indent: [{
|
|
1099
|
-
indent:
|
|
1096
|
+
indent: b()
|
|
1100
1097
|
}],
|
|
1101
1098
|
/**
|
|
1102
1099
|
* Vertical Alignment
|
|
1103
1100
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1104
1101
|
*/
|
|
1105
1102
|
"vertical-align": [{
|
|
1106
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1103
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l]
|
|
1107
1104
|
}],
|
|
1108
1105
|
/**
|
|
1109
1106
|
* Whitespace
|
|
@@ -1131,7 +1128,7 @@ const h = (e) => {
|
|
|
1131
1128
|
* @see https://tailwindcss.com/docs/content
|
|
1132
1129
|
*/
|
|
1133
1130
|
content: [{
|
|
1134
|
-
content: ["none",
|
|
1131
|
+
content: ["none", l]
|
|
1135
1132
|
}],
|
|
1136
1133
|
// Backgrounds
|
|
1137
1134
|
/**
|
|
@@ -1154,7 +1151,7 @@ const h = (e) => {
|
|
|
1154
1151
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1155
1152
|
*/
|
|
1156
1153
|
"bg-opacity": [{
|
|
1157
|
-
"bg-opacity": [
|
|
1154
|
+
"bg-opacity": [w]
|
|
1158
1155
|
}],
|
|
1159
1156
|
/**
|
|
1160
1157
|
* Background Origin
|
|
@@ -1168,7 +1165,7 @@ const h = (e) => {
|
|
|
1168
1165
|
* @see https://tailwindcss.com/docs/background-position
|
|
1169
1166
|
*/
|
|
1170
1167
|
"bg-position": [{
|
|
1171
|
-
bg: [...
|
|
1168
|
+
bg: [...se(), tr]
|
|
1172
1169
|
}],
|
|
1173
1170
|
/**
|
|
1174
1171
|
* Background Repeat
|
|
@@ -1184,7 +1181,7 @@ const h = (e) => {
|
|
|
1184
1181
|
* @see https://tailwindcss.com/docs/background-size
|
|
1185
1182
|
*/
|
|
1186
1183
|
"bg-size": [{
|
|
1187
|
-
bg: ["auto", "cover", "contain",
|
|
1184
|
+
bg: ["auto", "cover", "contain", rr]
|
|
1188
1185
|
}],
|
|
1189
1186
|
/**
|
|
1190
1187
|
* Background Image
|
|
@@ -1193,7 +1190,7 @@ const h = (e) => {
|
|
|
1193
1190
|
"bg-image": [{
|
|
1194
1191
|
bg: ["none", {
|
|
1195
1192
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1196
|
-
},
|
|
1193
|
+
}, nr]
|
|
1197
1194
|
}],
|
|
1198
1195
|
/**
|
|
1199
1196
|
* Background Color
|
|
@@ -1207,42 +1204,42 @@ const h = (e) => {
|
|
|
1207
1204
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1208
1205
|
*/
|
|
1209
1206
|
"gradient-from-pos": [{
|
|
1210
|
-
from: [
|
|
1207
|
+
from: [y]
|
|
1211
1208
|
}],
|
|
1212
1209
|
/**
|
|
1213
1210
|
* Gradient Color Stops Via Position
|
|
1214
1211
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1215
1212
|
*/
|
|
1216
1213
|
"gradient-via-pos": [{
|
|
1217
|
-
via: [
|
|
1214
|
+
via: [y]
|
|
1218
1215
|
}],
|
|
1219
1216
|
/**
|
|
1220
1217
|
* Gradient Color Stops To Position
|
|
1221
1218
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1222
1219
|
*/
|
|
1223
1220
|
"gradient-to-pos": [{
|
|
1224
|
-
to: [
|
|
1221
|
+
to: [y]
|
|
1225
1222
|
}],
|
|
1226
1223
|
/**
|
|
1227
1224
|
* Gradient Color Stops From
|
|
1228
1225
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1229
1226
|
*/
|
|
1230
1227
|
"gradient-from": [{
|
|
1231
|
-
from: [
|
|
1228
|
+
from: [m]
|
|
1232
1229
|
}],
|
|
1233
1230
|
/**
|
|
1234
1231
|
* Gradient Color Stops Via
|
|
1235
1232
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1236
1233
|
*/
|
|
1237
1234
|
"gradient-via": [{
|
|
1238
|
-
via: [
|
|
1235
|
+
via: [m]
|
|
1239
1236
|
}],
|
|
1240
1237
|
/**
|
|
1241
1238
|
* Gradient Color Stops To
|
|
1242
1239
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1243
1240
|
*/
|
|
1244
1241
|
"gradient-to": [{
|
|
1245
|
-
to: [
|
|
1242
|
+
to: [m]
|
|
1246
1243
|
}],
|
|
1247
1244
|
// Borders
|
|
1248
1245
|
/**
|
|
@@ -1418,14 +1415,14 @@ const h = (e) => {
|
|
|
1418
1415
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1419
1416
|
*/
|
|
1420
1417
|
"border-opacity": [{
|
|
1421
|
-
"border-opacity": [
|
|
1418
|
+
"border-opacity": [w]
|
|
1422
1419
|
}],
|
|
1423
1420
|
/**
|
|
1424
1421
|
* Border Style
|
|
1425
1422
|
* @see https://tailwindcss.com/docs/border-style
|
|
1426
1423
|
*/
|
|
1427
1424
|
"border-style": [{
|
|
1428
|
-
border: [
|
|
1425
|
+
border: [...$(), "hidden"]
|
|
1429
1426
|
}],
|
|
1430
1427
|
/**
|
|
1431
1428
|
* Divide Width X
|
|
@@ -1456,14 +1453,14 @@ const h = (e) => {
|
|
|
1456
1453
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1457
1454
|
*/
|
|
1458
1455
|
"divide-opacity": [{
|
|
1459
|
-
"divide-opacity": [
|
|
1456
|
+
"divide-opacity": [w]
|
|
1460
1457
|
}],
|
|
1461
1458
|
/**
|
|
1462
1459
|
* Divide Style
|
|
1463
1460
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1464
1461
|
*/
|
|
1465
1462
|
"divide-style": [{
|
|
1466
|
-
divide:
|
|
1463
|
+
divide: $()
|
|
1467
1464
|
}],
|
|
1468
1465
|
/**
|
|
1469
1466
|
* Border Color
|
|
@@ -1540,21 +1537,21 @@ const h = (e) => {
|
|
|
1540
1537
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1541
1538
|
*/
|
|
1542
1539
|
"outline-style": [{
|
|
1543
|
-
outline: ["",
|
|
1540
|
+
outline: ["", ...$()]
|
|
1544
1541
|
}],
|
|
1545
1542
|
/**
|
|
1546
1543
|
* Outline Offset
|
|
1547
1544
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1548
1545
|
*/
|
|
1549
1546
|
"outline-offset": [{
|
|
1550
|
-
"outline-offset": [
|
|
1547
|
+
"outline-offset": [S, l]
|
|
1551
1548
|
}],
|
|
1552
1549
|
/**
|
|
1553
1550
|
* Outline Width
|
|
1554
1551
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1555
1552
|
*/
|
|
1556
1553
|
"outline-w": [{
|
|
1557
|
-
outline: [
|
|
1554
|
+
outline: [S, z]
|
|
1558
1555
|
}],
|
|
1559
1556
|
/**
|
|
1560
1557
|
* Outline Color
|
|
@@ -1568,7 +1565,7 @@ const h = (e) => {
|
|
|
1568
1565
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1569
1566
|
*/
|
|
1570
1567
|
"ring-w": [{
|
|
1571
|
-
ring:
|
|
1568
|
+
ring: ne()
|
|
1572
1569
|
}],
|
|
1573
1570
|
/**
|
|
1574
1571
|
* Ring Width Inset
|
|
@@ -1587,14 +1584,14 @@ const h = (e) => {
|
|
|
1587
1584
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1588
1585
|
*/
|
|
1589
1586
|
"ring-opacity": [{
|
|
1590
|
-
"ring-opacity": [
|
|
1587
|
+
"ring-opacity": [w]
|
|
1591
1588
|
}],
|
|
1592
1589
|
/**
|
|
1593
1590
|
* Ring Offset Width
|
|
1594
1591
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1595
1592
|
*/
|
|
1596
1593
|
"ring-offset-w": [{
|
|
1597
|
-
"ring-offset": [
|
|
1594
|
+
"ring-offset": [S, z]
|
|
1598
1595
|
}],
|
|
1599
1596
|
/**
|
|
1600
1597
|
* Ring Offset Color
|
|
@@ -1609,35 +1606,35 @@ const h = (e) => {
|
|
|
1609
1606
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1610
1607
|
*/
|
|
1611
1608
|
shadow: [{
|
|
1612
|
-
shadow: ["", "inner", "none", A,
|
|
1609
|
+
shadow: ["", "inner", "none", A, sr]
|
|
1613
1610
|
}],
|
|
1614
1611
|
/**
|
|
1615
1612
|
* Box Shadow Color
|
|
1616
1613
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1617
1614
|
*/
|
|
1618
1615
|
"shadow-color": [{
|
|
1619
|
-
shadow: [
|
|
1616
|
+
shadow: [L]
|
|
1620
1617
|
}],
|
|
1621
1618
|
/**
|
|
1622
1619
|
* Opacity
|
|
1623
1620
|
* @see https://tailwindcss.com/docs/opacity
|
|
1624
1621
|
*/
|
|
1625
1622
|
opacity: [{
|
|
1626
|
-
opacity: [
|
|
1623
|
+
opacity: [w]
|
|
1627
1624
|
}],
|
|
1628
1625
|
/**
|
|
1629
1626
|
* Mix Blend Mode
|
|
1630
1627
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1631
1628
|
*/
|
|
1632
1629
|
"mix-blend": [{
|
|
1633
|
-
"mix-blend": [...
|
|
1630
|
+
"mix-blend": [...ie(), "plus-lighter", "plus-darker"]
|
|
1634
1631
|
}],
|
|
1635
1632
|
/**
|
|
1636
1633
|
* Background Blend Mode
|
|
1637
1634
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1638
1635
|
*/
|
|
1639
1636
|
"bg-blend": [{
|
|
1640
|
-
"bg-blend":
|
|
1637
|
+
"bg-blend": ie()
|
|
1641
1638
|
}],
|
|
1642
1639
|
// Filters
|
|
1643
1640
|
/**
|
|
@@ -1667,14 +1664,14 @@ const h = (e) => {
|
|
|
1667
1664
|
* @see https://tailwindcss.com/docs/contrast
|
|
1668
1665
|
*/
|
|
1669
1666
|
contrast: [{
|
|
1670
|
-
contrast: [
|
|
1667
|
+
contrast: [c]
|
|
1671
1668
|
}],
|
|
1672
1669
|
/**
|
|
1673
1670
|
* Drop Shadow
|
|
1674
1671
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1675
1672
|
*/
|
|
1676
1673
|
"drop-shadow": [{
|
|
1677
|
-
"drop-shadow": ["", "none", A,
|
|
1674
|
+
"drop-shadow": ["", "none", A, l]
|
|
1678
1675
|
}],
|
|
1679
1676
|
/**
|
|
1680
1677
|
* Grayscale
|
|
@@ -1702,14 +1699,14 @@ const h = (e) => {
|
|
|
1702
1699
|
* @see https://tailwindcss.com/docs/saturate
|
|
1703
1700
|
*/
|
|
1704
1701
|
saturate: [{
|
|
1705
|
-
saturate: [
|
|
1702
|
+
saturate: [G]
|
|
1706
1703
|
}],
|
|
1707
1704
|
/**
|
|
1708
1705
|
* Sepia
|
|
1709
1706
|
* @see https://tailwindcss.com/docs/sepia
|
|
1710
1707
|
*/
|
|
1711
1708
|
sepia: [{
|
|
1712
|
-
sepia: [
|
|
1709
|
+
sepia: [j]
|
|
1713
1710
|
}],
|
|
1714
1711
|
/**
|
|
1715
1712
|
* Backdrop Filter
|
|
@@ -1738,7 +1735,7 @@ const h = (e) => {
|
|
|
1738
1735
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
1739
1736
|
*/
|
|
1740
1737
|
"backdrop-contrast": [{
|
|
1741
|
-
"backdrop-contrast": [
|
|
1738
|
+
"backdrop-contrast": [c]
|
|
1742
1739
|
}],
|
|
1743
1740
|
/**
|
|
1744
1741
|
* Backdrop Grayscale
|
|
@@ -1766,21 +1763,21 @@ const h = (e) => {
|
|
|
1766
1763
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1767
1764
|
*/
|
|
1768
1765
|
"backdrop-opacity": [{
|
|
1769
|
-
"backdrop-opacity": [
|
|
1766
|
+
"backdrop-opacity": [w]
|
|
1770
1767
|
}],
|
|
1771
1768
|
/**
|
|
1772
1769
|
* Backdrop Saturate
|
|
1773
1770
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1774
1771
|
*/
|
|
1775
1772
|
"backdrop-saturate": [{
|
|
1776
|
-
"backdrop-saturate": [
|
|
1773
|
+
"backdrop-saturate": [G]
|
|
1777
1774
|
}],
|
|
1778
1775
|
/**
|
|
1779
1776
|
* Backdrop Sepia
|
|
1780
1777
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1781
1778
|
*/
|
|
1782
1779
|
"backdrop-sepia": [{
|
|
1783
|
-
"backdrop-sepia": [
|
|
1780
|
+
"backdrop-sepia": [j]
|
|
1784
1781
|
}],
|
|
1785
1782
|
// Tables
|
|
1786
1783
|
/**
|
|
@@ -1831,35 +1828,35 @@ const h = (e) => {
|
|
|
1831
1828
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1832
1829
|
*/
|
|
1833
1830
|
transition: [{
|
|
1834
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1831
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l]
|
|
1835
1832
|
}],
|
|
1836
1833
|
/**
|
|
1837
1834
|
* Transition Duration
|
|
1838
1835
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1839
1836
|
*/
|
|
1840
1837
|
duration: [{
|
|
1841
|
-
duration:
|
|
1838
|
+
duration: C()
|
|
1842
1839
|
}],
|
|
1843
1840
|
/**
|
|
1844
1841
|
* Transition Timing Function
|
|
1845
1842
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1846
1843
|
*/
|
|
1847
1844
|
ease: [{
|
|
1848
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1845
|
+
ease: ["linear", "in", "out", "in-out", l]
|
|
1849
1846
|
}],
|
|
1850
1847
|
/**
|
|
1851
1848
|
* Transition Delay
|
|
1852
1849
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1853
1850
|
*/
|
|
1854
1851
|
delay: [{
|
|
1855
|
-
delay:
|
|
1852
|
+
delay: C()
|
|
1856
1853
|
}],
|
|
1857
1854
|
/**
|
|
1858
1855
|
* Animation
|
|
1859
1856
|
* @see https://tailwindcss.com/docs/animation
|
|
1860
1857
|
*/
|
|
1861
1858
|
animate: [{
|
|
1862
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1859
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", l]
|
|
1863
1860
|
}],
|
|
1864
1861
|
// Transforms
|
|
1865
1862
|
/**
|
|
@@ -1874,63 +1871,63 @@ const h = (e) => {
|
|
|
1874
1871
|
* @see https://tailwindcss.com/docs/scale
|
|
1875
1872
|
*/
|
|
1876
1873
|
scale: [{
|
|
1877
|
-
scale: [
|
|
1874
|
+
scale: [R]
|
|
1878
1875
|
}],
|
|
1879
1876
|
/**
|
|
1880
1877
|
* Scale X
|
|
1881
1878
|
* @see https://tailwindcss.com/docs/scale
|
|
1882
1879
|
*/
|
|
1883
1880
|
"scale-x": [{
|
|
1884
|
-
"scale-x": [
|
|
1881
|
+
"scale-x": [R]
|
|
1885
1882
|
}],
|
|
1886
1883
|
/**
|
|
1887
1884
|
* Scale Y
|
|
1888
1885
|
* @see https://tailwindcss.com/docs/scale
|
|
1889
1886
|
*/
|
|
1890
1887
|
"scale-y": [{
|
|
1891
|
-
"scale-y": [
|
|
1888
|
+
"scale-y": [R]
|
|
1892
1889
|
}],
|
|
1893
1890
|
/**
|
|
1894
1891
|
* Rotate
|
|
1895
1892
|
* @see https://tailwindcss.com/docs/rotate
|
|
1896
1893
|
*/
|
|
1897
1894
|
rotate: [{
|
|
1898
|
-
rotate: [
|
|
1895
|
+
rotate: [I, l]
|
|
1899
1896
|
}],
|
|
1900
1897
|
/**
|
|
1901
1898
|
* Translate X
|
|
1902
1899
|
* @see https://tailwindcss.com/docs/translate
|
|
1903
1900
|
*/
|
|
1904
1901
|
"translate-x": [{
|
|
1905
|
-
"translate-x": [
|
|
1902
|
+
"translate-x": [oe]
|
|
1906
1903
|
}],
|
|
1907
1904
|
/**
|
|
1908
1905
|
* Translate Y
|
|
1909
1906
|
* @see https://tailwindcss.com/docs/translate
|
|
1910
1907
|
*/
|
|
1911
1908
|
"translate-y": [{
|
|
1912
|
-
"translate-y": [
|
|
1909
|
+
"translate-y": [oe]
|
|
1913
1910
|
}],
|
|
1914
1911
|
/**
|
|
1915
1912
|
* Skew X
|
|
1916
1913
|
* @see https://tailwindcss.com/docs/skew
|
|
1917
1914
|
*/
|
|
1918
1915
|
"skew-x": [{
|
|
1919
|
-
"skew-x": [
|
|
1916
|
+
"skew-x": [re]
|
|
1920
1917
|
}],
|
|
1921
1918
|
/**
|
|
1922
1919
|
* Skew Y
|
|
1923
1920
|
* @see https://tailwindcss.com/docs/skew
|
|
1924
1921
|
*/
|
|
1925
1922
|
"skew-y": [{
|
|
1926
|
-
"skew-y": [
|
|
1923
|
+
"skew-y": [re]
|
|
1927
1924
|
}],
|
|
1928
1925
|
/**
|
|
1929
1926
|
* Transform Origin
|
|
1930
1927
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1931
1928
|
*/
|
|
1932
1929
|
"transform-origin": [{
|
|
1933
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1930
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l]
|
|
1934
1931
|
}],
|
|
1935
1932
|
// Interactivity
|
|
1936
1933
|
/**
|
|
@@ -1952,7 +1949,7 @@ const h = (e) => {
|
|
|
1952
1949
|
* @see https://tailwindcss.com/docs/cursor
|
|
1953
1950
|
*/
|
|
1954
1951
|
cursor: [{
|
|
1955
|
-
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",
|
|
1952
|
+
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", l]
|
|
1956
1953
|
}],
|
|
1957
1954
|
/**
|
|
1958
1955
|
* Caret Color
|
|
@@ -1987,126 +1984,126 @@ const h = (e) => {
|
|
|
1987
1984
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1988
1985
|
*/
|
|
1989
1986
|
"scroll-m": [{
|
|
1990
|
-
"scroll-m":
|
|
1987
|
+
"scroll-m": b()
|
|
1991
1988
|
}],
|
|
1992
1989
|
/**
|
|
1993
1990
|
* Scroll Margin X
|
|
1994
1991
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1995
1992
|
*/
|
|
1996
1993
|
"scroll-mx": [{
|
|
1997
|
-
"scroll-mx":
|
|
1994
|
+
"scroll-mx": b()
|
|
1998
1995
|
}],
|
|
1999
1996
|
/**
|
|
2000
1997
|
* Scroll Margin Y
|
|
2001
1998
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2002
1999
|
*/
|
|
2003
2000
|
"scroll-my": [{
|
|
2004
|
-
"scroll-my":
|
|
2001
|
+
"scroll-my": b()
|
|
2005
2002
|
}],
|
|
2006
2003
|
/**
|
|
2007
2004
|
* Scroll Margin Start
|
|
2008
2005
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2009
2006
|
*/
|
|
2010
2007
|
"scroll-ms": [{
|
|
2011
|
-
"scroll-ms":
|
|
2008
|
+
"scroll-ms": b()
|
|
2012
2009
|
}],
|
|
2013
2010
|
/**
|
|
2014
2011
|
* Scroll Margin End
|
|
2015
2012
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2016
2013
|
*/
|
|
2017
2014
|
"scroll-me": [{
|
|
2018
|
-
"scroll-me":
|
|
2015
|
+
"scroll-me": b()
|
|
2019
2016
|
}],
|
|
2020
2017
|
/**
|
|
2021
2018
|
* Scroll Margin Top
|
|
2022
2019
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2023
2020
|
*/
|
|
2024
2021
|
"scroll-mt": [{
|
|
2025
|
-
"scroll-mt":
|
|
2022
|
+
"scroll-mt": b()
|
|
2026
2023
|
}],
|
|
2027
2024
|
/**
|
|
2028
2025
|
* Scroll Margin Right
|
|
2029
2026
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2030
2027
|
*/
|
|
2031
2028
|
"scroll-mr": [{
|
|
2032
|
-
"scroll-mr":
|
|
2029
|
+
"scroll-mr": b()
|
|
2033
2030
|
}],
|
|
2034
2031
|
/**
|
|
2035
2032
|
* Scroll Margin Bottom
|
|
2036
2033
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2037
2034
|
*/
|
|
2038
2035
|
"scroll-mb": [{
|
|
2039
|
-
"scroll-mb":
|
|
2036
|
+
"scroll-mb": b()
|
|
2040
2037
|
}],
|
|
2041
2038
|
/**
|
|
2042
2039
|
* Scroll Margin Left
|
|
2043
2040
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2044
2041
|
*/
|
|
2045
2042
|
"scroll-ml": [{
|
|
2046
|
-
"scroll-ml":
|
|
2043
|
+
"scroll-ml": b()
|
|
2047
2044
|
}],
|
|
2048
2045
|
/**
|
|
2049
2046
|
* Scroll Padding
|
|
2050
2047
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2051
2048
|
*/
|
|
2052
2049
|
"scroll-p": [{
|
|
2053
|
-
"scroll-p":
|
|
2050
|
+
"scroll-p": b()
|
|
2054
2051
|
}],
|
|
2055
2052
|
/**
|
|
2056
2053
|
* Scroll Padding X
|
|
2057
2054
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2058
2055
|
*/
|
|
2059
2056
|
"scroll-px": [{
|
|
2060
|
-
"scroll-px":
|
|
2057
|
+
"scroll-px": b()
|
|
2061
2058
|
}],
|
|
2062
2059
|
/**
|
|
2063
2060
|
* Scroll Padding Y
|
|
2064
2061
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2065
2062
|
*/
|
|
2066
2063
|
"scroll-py": [{
|
|
2067
|
-
"scroll-py":
|
|
2064
|
+
"scroll-py": b()
|
|
2068
2065
|
}],
|
|
2069
2066
|
/**
|
|
2070
2067
|
* Scroll Padding Start
|
|
2071
2068
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2072
2069
|
*/
|
|
2073
2070
|
"scroll-ps": [{
|
|
2074
|
-
"scroll-ps":
|
|
2071
|
+
"scroll-ps": b()
|
|
2075
2072
|
}],
|
|
2076
2073
|
/**
|
|
2077
2074
|
* Scroll Padding End
|
|
2078
2075
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2079
2076
|
*/
|
|
2080
2077
|
"scroll-pe": [{
|
|
2081
|
-
"scroll-pe":
|
|
2078
|
+
"scroll-pe": b()
|
|
2082
2079
|
}],
|
|
2083
2080
|
/**
|
|
2084
2081
|
* Scroll Padding Top
|
|
2085
2082
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2086
2083
|
*/
|
|
2087
2084
|
"scroll-pt": [{
|
|
2088
|
-
"scroll-pt":
|
|
2085
|
+
"scroll-pt": b()
|
|
2089
2086
|
}],
|
|
2090
2087
|
/**
|
|
2091
2088
|
* Scroll Padding Right
|
|
2092
2089
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2093
2090
|
*/
|
|
2094
2091
|
"scroll-pr": [{
|
|
2095
|
-
"scroll-pr":
|
|
2092
|
+
"scroll-pr": b()
|
|
2096
2093
|
}],
|
|
2097
2094
|
/**
|
|
2098
2095
|
* Scroll Padding Bottom
|
|
2099
2096
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2100
2097
|
*/
|
|
2101
2098
|
"scroll-pb": [{
|
|
2102
|
-
"scroll-pb":
|
|
2099
|
+
"scroll-pb": b()
|
|
2103
2100
|
}],
|
|
2104
2101
|
/**
|
|
2105
2102
|
* Scroll Padding Left
|
|
2106
2103
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2107
2104
|
*/
|
|
2108
2105
|
"scroll-pl": [{
|
|
2109
|
-
"scroll-pl":
|
|
2106
|
+
"scroll-pl": b()
|
|
2110
2107
|
}],
|
|
2111
2108
|
/**
|
|
2112
2109
|
* Scroll Snap Align
|
|
@@ -2174,7 +2171,7 @@ const h = (e) => {
|
|
|
2174
2171
|
* @see https://tailwindcss.com/docs/will-change
|
|
2175
2172
|
*/
|
|
2176
2173
|
"will-change": [{
|
|
2177
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2174
|
+
"will-change": ["auto", "scroll", "contents", "transform", l]
|
|
2178
2175
|
}],
|
|
2179
2176
|
// SVG
|
|
2180
2177
|
/**
|
|
@@ -2189,7 +2186,7 @@ const h = (e) => {
|
|
|
2189
2186
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2190
2187
|
*/
|
|
2191
2188
|
"stroke-w": [{
|
|
2192
|
-
stroke: [
|
|
2189
|
+
stroke: [S, z, V]
|
|
2193
2190
|
}],
|
|
2194
2191
|
/**
|
|
2195
2192
|
* Stroke
|
|
@@ -2264,13 +2261,13 @@ const h = (e) => {
|
|
|
2264
2261
|
"font-size": ["leading"]
|
|
2265
2262
|
}
|
|
2266
2263
|
};
|
|
2267
|
-
},
|
|
2268
|
-
function
|
|
2269
|
-
return
|
|
2264
|
+
}, dr = /* @__PURE__ */ Ve(cr);
|
|
2265
|
+
function kr(...e) {
|
|
2266
|
+
return dr(Ee(e));
|
|
2270
2267
|
}
|
|
2271
|
-
const
|
|
2272
|
-
function
|
|
2273
|
-
const o =
|
|
2268
|
+
const q = typeof window > "u";
|
|
2269
|
+
function ue(e, r, t = window) {
|
|
2270
|
+
const o = Q(void 0);
|
|
2274
2271
|
k(() => {
|
|
2275
2272
|
o.current = r;
|
|
2276
2273
|
}, [r]), k(() => {
|
|
@@ -2283,203 +2280,98 @@ function ge(e, r, t = window) {
|
|
|
2283
2280
|
};
|
|
2284
2281
|
}, [e, t]);
|
|
2285
2282
|
}
|
|
2286
|
-
function
|
|
2287
|
-
const { initializeWithValue: o = !0 } = t, i =
|
|
2283
|
+
function J(e, r, t = {}) {
|
|
2284
|
+
const { initializeWithValue: o = !0 } = t, i = E(
|
|
2288
2285
|
(d) => t.serializer ? t.serializer(d) : JSON.stringify(d),
|
|
2289
2286
|
[t]
|
|
2290
|
-
), n =
|
|
2287
|
+
), n = E(
|
|
2291
2288
|
(d) => {
|
|
2292
2289
|
if (t.deserializer)
|
|
2293
2290
|
return t.deserializer(d);
|
|
2294
2291
|
if (d === "undefined")
|
|
2295
2292
|
return;
|
|
2296
|
-
const
|
|
2297
|
-
let
|
|
2293
|
+
const m = r instanceof Function ? r() : r;
|
|
2294
|
+
let y;
|
|
2298
2295
|
try {
|
|
2299
|
-
|
|
2300
|
-
} catch (
|
|
2301
|
-
return console.error("Error parsing JSON:",
|
|
2296
|
+
y = JSON.parse(d);
|
|
2297
|
+
} catch (x) {
|
|
2298
|
+
return console.error("Error parsing JSON:", x), m;
|
|
2302
2299
|
}
|
|
2303
|
-
return
|
|
2300
|
+
return y;
|
|
2304
2301
|
},
|
|
2305
2302
|
[t, r]
|
|
2306
|
-
), a =
|
|
2303
|
+
), a = E(() => {
|
|
2307
2304
|
const d = r instanceof Function ? r() : r;
|
|
2308
|
-
if (
|
|
2305
|
+
if (q)
|
|
2309
2306
|
return d;
|
|
2310
2307
|
try {
|
|
2311
|
-
const
|
|
2312
|
-
return
|
|
2313
|
-
} catch (
|
|
2308
|
+
const m = window.localStorage.getItem(e);
|
|
2309
|
+
return m ? n(m) : d;
|
|
2310
|
+
} catch (m) {
|
|
2314
2311
|
return console.warn(
|
|
2315
2312
|
`Error reading localStorage key “${e}”:`,
|
|
2316
|
-
|
|
2313
|
+
m
|
|
2317
2314
|
), d;
|
|
2318
2315
|
}
|
|
2319
|
-
}, [r, e, n]), [s,
|
|
2320
|
-
|
|
2316
|
+
}, [r, e, n]), [s, c] = Ae(() => o ? a() : r instanceof Function ? r() : r), u = E((d) => {
|
|
2317
|
+
q && console.warn(
|
|
2321
2318
|
`Tried setting localStorage key “${e}” even though environment is not a client`
|
|
2322
2319
|
);
|
|
2323
2320
|
try {
|
|
2324
|
-
const
|
|
2325
|
-
window.localStorage.setItem(e, i(
|
|
2321
|
+
const m = d instanceof Function ? d(a()) : d;
|
|
2322
|
+
window.localStorage.setItem(e, i(m)), c(m), window.dispatchEvent(
|
|
2326
2323
|
new StorageEvent("local-storage", {
|
|
2327
2324
|
key: e
|
|
2328
2325
|
})
|
|
2329
2326
|
);
|
|
2330
|
-
} catch (
|
|
2327
|
+
} catch (m) {
|
|
2331
2328
|
console.warn(
|
|
2332
2329
|
`Error setting localStorage key “${e}”:`,
|
|
2333
|
-
|
|
2330
|
+
m
|
|
2334
2331
|
);
|
|
2335
2332
|
}
|
|
2336
|
-
}, [e, i, a]), p =
|
|
2337
|
-
|
|
2333
|
+
}, [e, i, a]), p = E(() => {
|
|
2334
|
+
q && console.warn(
|
|
2338
2335
|
`Tried removing localStorage key “${e}” even though environment is not a client`
|
|
2339
2336
|
);
|
|
2340
2337
|
const d = r instanceof Function ? r() : r;
|
|
2341
|
-
window.localStorage.removeItem(e),
|
|
2338
|
+
window.localStorage.removeItem(e), c(d), window.dispatchEvent(
|
|
2342
2339
|
new StorageEvent("local-storage", {
|
|
2343
2340
|
key: e
|
|
2344
2341
|
})
|
|
2345
2342
|
);
|
|
2346
2343
|
}, [e, r]);
|
|
2347
2344
|
k(() => {
|
|
2348
|
-
|
|
2345
|
+
c(a());
|
|
2349
2346
|
}, [e]);
|
|
2350
|
-
const f =
|
|
2347
|
+
const f = E(
|
|
2351
2348
|
(d) => {
|
|
2352
|
-
d.key && d.key !== e ||
|
|
2349
|
+
d.key && d.key !== e || c(a());
|
|
2353
2350
|
},
|
|
2354
2351
|
[e, a]
|
|
2355
2352
|
);
|
|
2356
|
-
return
|
|
2353
|
+
return ue("storage", f), ue("local-storage", f), [s, u, p];
|
|
2357
2354
|
}
|
|
2358
|
-
|
|
2359
|
-
y.Trigger,
|
|
2360
|
-
{
|
|
2361
|
-
ref: o,
|
|
2362
|
-
className: I(
|
|
2363
|
-
"richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
|
|
2364
|
-
e
|
|
2365
|
-
),
|
|
2366
|
-
...t,
|
|
2367
|
-
children: [
|
|
2368
|
-
r,
|
|
2369
|
-
/* @__PURE__ */ m(y.Icon, { asChild: !0, children: /* @__PURE__ */ m(xe, { className: "richtext-size-4 richtext-opacity-50" }) })
|
|
2370
|
-
]
|
|
2371
|
-
}
|
|
2372
|
-
));
|
|
2373
|
-
yt.displayName = y.Trigger.displayName;
|
|
2374
|
-
const Ee = P.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
2375
|
-
y.ScrollUpButton,
|
|
2376
|
-
{
|
|
2377
|
-
ref: t,
|
|
2378
|
-
className: I(
|
|
2379
|
-
"richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
|
|
2380
|
-
e
|
|
2381
|
-
),
|
|
2382
|
-
...r,
|
|
2383
|
-
children: /* @__PURE__ */ m(je, { className: "richtext-size-4" })
|
|
2384
|
-
}
|
|
2385
|
-
));
|
|
2386
|
-
Ee.displayName = y.ScrollUpButton.displayName;
|
|
2387
|
-
const ze = P.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
2388
|
-
y.ScrollDownButton,
|
|
2389
|
-
{
|
|
2390
|
-
ref: t,
|
|
2391
|
-
className: I(
|
|
2392
|
-
"richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
|
|
2393
|
-
e
|
|
2394
|
-
),
|
|
2395
|
-
...r,
|
|
2396
|
-
children: /* @__PURE__ */ m(xe, { className: "richtext-size-4" })
|
|
2397
|
-
}
|
|
2398
|
-
));
|
|
2399
|
-
ze.displayName = y.ScrollDownButton.displayName;
|
|
2400
|
-
const wt = P.forwardRef(({ className: e, children: r, position: t = "popper", ...o }, i) => /* @__PURE__ */ m(y.Portal, { children: /* @__PURE__ */ V(
|
|
2401
|
-
y.Content,
|
|
2402
|
-
{
|
|
2403
|
-
"data-richtext-portal": !0,
|
|
2404
|
-
position: t,
|
|
2405
|
-
ref: i,
|
|
2406
|
-
className: I(
|
|
2407
|
-
"richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
|
|
2408
|
-
t === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
|
|
2409
|
-
e
|
|
2410
|
-
),
|
|
2411
|
-
...o,
|
|
2412
|
-
children: [
|
|
2413
|
-
/* @__PURE__ */ m(Ee, {}),
|
|
2414
|
-
/* @__PURE__ */ m(
|
|
2415
|
-
y.Viewport,
|
|
2416
|
-
{
|
|
2417
|
-
className: I(
|
|
2418
|
-
"richtext-p-1",
|
|
2419
|
-
t === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
|
|
2420
|
-
),
|
|
2421
|
-
children: r
|
|
2422
|
-
}
|
|
2423
|
-
),
|
|
2424
|
-
/* @__PURE__ */ m(ze, {})
|
|
2425
|
-
]
|
|
2426
|
-
}
|
|
2427
|
-
) }));
|
|
2428
|
-
wt.displayName = y.Content.displayName;
|
|
2429
|
-
const vt = P.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
2430
|
-
y.Label,
|
|
2431
|
-
{
|
|
2432
|
-
className: I("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
|
|
2433
|
-
ref: t,
|
|
2434
|
-
...r
|
|
2435
|
-
}
|
|
2436
|
-
));
|
|
2437
|
-
vt.displayName = y.Label.displayName;
|
|
2438
|
-
const St = P.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ V(
|
|
2439
|
-
y.Item,
|
|
2440
|
-
{
|
|
2441
|
-
ref: o,
|
|
2442
|
-
className: I(
|
|
2443
|
-
"richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
|
|
2444
|
-
e
|
|
2445
|
-
),
|
|
2446
|
-
...t,
|
|
2447
|
-
children: [
|
|
2448
|
-
/* @__PURE__ */ m("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ m(y.ItemIndicator, { children: /* @__PURE__ */ m(Oe, { className: "richtext-size-4" }) }) }),
|
|
2449
|
-
/* @__PURE__ */ m(y.ItemText, { children: r })
|
|
2450
|
-
]
|
|
2451
|
-
}
|
|
2452
|
-
));
|
|
2453
|
-
St.displayName = y.Item.displayName;
|
|
2454
|
-
const Ct = P.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
2455
|
-
y.Separator,
|
|
2456
|
-
{
|
|
2457
|
-
className: I("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
|
|
2458
|
-
ref: t,
|
|
2459
|
-
...r
|
|
2460
|
-
}
|
|
2461
|
-
));
|
|
2462
|
-
Ct.displayName = y.Separator.displayName;
|
|
2463
|
-
function oe(e) {
|
|
2355
|
+
function D(e) {
|
|
2464
2356
|
function r() {
|
|
2465
|
-
const n =
|
|
2357
|
+
const n = Q(e), a = E(() => n.current, []), s = Q(/* @__PURE__ */ new Set()), c = E((p) => {
|
|
2466
2358
|
n.current = { ...n.current, ...p }, s.current.forEach((f) => f());
|
|
2467
|
-
}, []), u =
|
|
2359
|
+
}, []), u = E((p) => (s.current.add(p), () => s.current.delete(p)), []);
|
|
2468
2360
|
return {
|
|
2469
2361
|
get: a,
|
|
2470
|
-
set:
|
|
2362
|
+
set: c,
|
|
2471
2363
|
subscribe: u
|
|
2472
2364
|
};
|
|
2473
2365
|
}
|
|
2474
|
-
const t =
|
|
2366
|
+
const t = ke(null);
|
|
2475
2367
|
function o({ children: n }) {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ M(t.Provider, { value: r(), children: n });
|
|
2477
2369
|
}
|
|
2478
2370
|
function i(n) {
|
|
2479
|
-
const a =
|
|
2371
|
+
const a = Re(t);
|
|
2480
2372
|
if (!a)
|
|
2481
2373
|
throw new Error("Store not found");
|
|
2482
|
-
return [
|
|
2374
|
+
return [Me(
|
|
2483
2375
|
a.subscribe,
|
|
2484
2376
|
() => n(a.get()),
|
|
2485
2377
|
() => n(e)
|
|
@@ -2490,21 +2382,21 @@ function oe(e) {
|
|
|
2490
2382
|
useStore: i
|
|
2491
2383
|
};
|
|
2492
2384
|
}
|
|
2493
|
-
|
|
2385
|
+
D({
|
|
2494
2386
|
value: !1
|
|
2495
2387
|
});
|
|
2496
|
-
|
|
2388
|
+
D({
|
|
2497
2389
|
value: !1
|
|
2498
2390
|
});
|
|
2499
|
-
const { Provider:
|
|
2391
|
+
const { Provider: ur, useStore: we } = D({
|
|
2500
2392
|
value: !1
|
|
2501
2393
|
});
|
|
2502
|
-
function
|
|
2503
|
-
const [e] =
|
|
2394
|
+
function Rr() {
|
|
2395
|
+
const [e] = we((r) => r.value);
|
|
2504
2396
|
return e;
|
|
2505
2397
|
}
|
|
2506
|
-
const
|
|
2507
|
-
function
|
|
2398
|
+
const pe = "data-rc-order", fe = "data-rc-priority", pr = "rc-util-key", K = /* @__PURE__ */ new Map();
|
|
2399
|
+
function fr(e, r) {
|
|
2508
2400
|
if (!e)
|
|
2509
2401
|
return !1;
|
|
2510
2402
|
if (e.contains)
|
|
@@ -2517,67 +2409,67 @@ function Nt(e, r) {
|
|
|
2517
2409
|
}
|
|
2518
2410
|
return !1;
|
|
2519
2411
|
}
|
|
2520
|
-
function
|
|
2521
|
-
return e ? e.startsWith("data-") ? e : `data-${e}` :
|
|
2412
|
+
function ye({ mark: e } = {}) {
|
|
2413
|
+
return e ? e.startsWith("data-") ? e : `data-${e}` : pr;
|
|
2522
2414
|
}
|
|
2523
|
-
function
|
|
2415
|
+
function ee(e) {
|
|
2524
2416
|
return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
|
|
2525
2417
|
}
|
|
2526
|
-
function
|
|
2418
|
+
function gr(e) {
|
|
2527
2419
|
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
2528
2420
|
}
|
|
2529
|
-
function
|
|
2530
|
-
return [...(
|
|
2421
|
+
function ve(e) {
|
|
2422
|
+
return [...(K.get(e) || e).children].filter(
|
|
2531
2423
|
(r) => r.tagName === "STYLE"
|
|
2532
2424
|
);
|
|
2533
2425
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const { csp: t, prepend: o, priority: i = 0 } = r, n =
|
|
2536
|
-
s.setAttribute(
|
|
2537
|
-
const
|
|
2426
|
+
function Ce(e, r = {}) {
|
|
2427
|
+
const { csp: t, prepend: o, priority: i = 0 } = r, n = gr(o), a = n === "prependQueue", s = document.createElement("style");
|
|
2428
|
+
s.setAttribute(pe, n), a && i && s.setAttribute(fe, `${i}`), t != null && t.nonce && (s.nonce = t == null ? void 0 : t.nonce), s.innerHTML = e;
|
|
2429
|
+
const c = ee(r), { firstChild: u } = c;
|
|
2538
2430
|
if (o) {
|
|
2539
2431
|
if (a) {
|
|
2540
|
-
const p =
|
|
2541
|
-
if (!["prepend", "prependQueue"].includes(f.getAttribute(
|
|
2432
|
+
const p = ve(c).filter((f) => {
|
|
2433
|
+
if (!["prepend", "prependQueue"].includes(f.getAttribute(pe)))
|
|
2542
2434
|
return !1;
|
|
2543
|
-
const d = Number(f.getAttribute(
|
|
2435
|
+
const d = Number(f.getAttribute(fe) || 0);
|
|
2544
2436
|
return i >= d;
|
|
2545
2437
|
});
|
|
2546
2438
|
if (p.length > 0)
|
|
2547
|
-
return
|
|
2439
|
+
return c.insertBefore(s, p.at(-1).nextSibling), s;
|
|
2548
2440
|
}
|
|
2549
2441
|
u.before(s);
|
|
2550
2442
|
} else
|
|
2551
|
-
|
|
2443
|
+
c.append(s);
|
|
2552
2444
|
return s;
|
|
2553
2445
|
}
|
|
2554
|
-
function
|
|
2555
|
-
const t =
|
|
2556
|
-
return
|
|
2446
|
+
function Se(e, r = {}) {
|
|
2447
|
+
const t = ee(r);
|
|
2448
|
+
return ve(t).find((o) => o.getAttribute(ye(r)) === e);
|
|
2557
2449
|
}
|
|
2558
|
-
function
|
|
2559
|
-
const t =
|
|
2450
|
+
function br(e, r = {}) {
|
|
2451
|
+
const t = Se(e, r);
|
|
2560
2452
|
t && t.remove();
|
|
2561
2453
|
}
|
|
2562
|
-
function
|
|
2563
|
-
const t =
|
|
2564
|
-
if (!t || !
|
|
2565
|
-
const o =
|
|
2566
|
-
|
|
2454
|
+
function mr(e, r) {
|
|
2455
|
+
const t = K.get(e);
|
|
2456
|
+
if (!t || !fr(document, t)) {
|
|
2457
|
+
const o = Ce("", r), { parentNode: i } = o;
|
|
2458
|
+
K.set(e, i), o.remove();
|
|
2567
2459
|
}
|
|
2568
2460
|
}
|
|
2569
|
-
function
|
|
2570
|
-
var a, s,
|
|
2571
|
-
const o =
|
|
2572
|
-
|
|
2573
|
-
const i =
|
|
2461
|
+
function hr(e, r, t = {}) {
|
|
2462
|
+
var a, s, c;
|
|
2463
|
+
const o = ee(t);
|
|
2464
|
+
mr(o, t);
|
|
2465
|
+
const i = Se(r, t);
|
|
2574
2466
|
if (i)
|
|
2575
|
-
return (a = t.csp) != null && a.nonce && i.nonce !== ((s = t.csp) == null ? void 0 : s.nonce) && (i.nonce = (
|
|
2576
|
-
const n =
|
|
2577
|
-
return n.setAttribute(
|
|
2467
|
+
return (a = t.csp) != null && a.nonce && i.nonce !== ((s = t.csp) == null ? void 0 : s.nonce) && (i.nonce = (c = t.csp) == null ? void 0 : c.nonce), i.innerHTML !== e && (i.innerHTML = e), i;
|
|
2468
|
+
const n = Ce(e, t);
|
|
2469
|
+
return n.setAttribute(ye(t), r), n;
|
|
2578
2470
|
}
|
|
2579
|
-
const
|
|
2580
|
-
const [, t] =
|
|
2471
|
+
const xr = Pe(({ editor: e, children: r }) => {
|
|
2472
|
+
const [, t] = we((i) => i.value);
|
|
2581
2473
|
k(() => {
|
|
2582
2474
|
t({
|
|
2583
2475
|
value: e == null ? void 0 : e.isEditable
|
|
@@ -2590,81 +2482,76 @@ const Mt = Le(({ editor: e, children: r }) => {
|
|
|
2590
2482
|
};
|
|
2591
2483
|
return k(() => (e && e.on("update", o), () => {
|
|
2592
2484
|
e && e.off("update", o);
|
|
2593
|
-
}), [e]), /* @__PURE__ */
|
|
2485
|
+
}), [e]), /* @__PURE__ */ M(X, { children: r });
|
|
2594
2486
|
});
|
|
2595
|
-
function
|
|
2596
|
-
const [e, r] =
|
|
2487
|
+
function wr() {
|
|
2488
|
+
const [e, r] = Ne(Ge), t = (o) => {
|
|
2597
2489
|
r({
|
|
2598
2490
|
...e,
|
|
2599
2491
|
currentLang: o.detail
|
|
2600
2492
|
});
|
|
2601
2493
|
};
|
|
2602
2494
|
return k(() => {
|
|
2603
|
-
const o = W
|
|
2495
|
+
const o = _(W.CHANGE_LANGUAGE, t);
|
|
2604
2496
|
return () => {
|
|
2605
2497
|
o();
|
|
2606
2498
|
};
|
|
2607
|
-
}, []), /* @__PURE__ */
|
|
2499
|
+
}, []), /* @__PURE__ */ M(X, {});
|
|
2608
2500
|
}
|
|
2609
|
-
function
|
|
2610
|
-
const [e, r] =
|
|
2501
|
+
function yr() {
|
|
2502
|
+
const [e, r] = J("richtext-theme", "light"), [t, o] = J("richtext-color", "default"), [i, n] = J("richtext-border-radius", "0.65rem");
|
|
2611
2503
|
k(() => {
|
|
2612
2504
|
const u = e || "light", p = t || "default";
|
|
2613
|
-
let f =
|
|
2505
|
+
let f = le[u][p];
|
|
2614
2506
|
if (!f) {
|
|
2615
|
-
f =
|
|
2507
|
+
f = le.light.default;
|
|
2616
2508
|
return;
|
|
2617
2509
|
}
|
|
2618
|
-
return
|
|
2510
|
+
return hr(`
|
|
2619
2511
|
.reactjs-tiptap-editor, .reactjs-tiptap-editor *,
|
|
2620
2512
|
div[data-richtext-portal], div[data-richtext-portal] * {
|
|
2621
|
-
${Object.entries(f).map(([d,
|
|
2513
|
+
${Object.entries(f).map(([d, m]) => typeof i == "string" && d === "radius" ? `--${d}: ${i};` : `--${d}: ${m};`).join(`
|
|
2622
2514
|
`)}
|
|
2623
2515
|
}
|
|
2624
2516
|
`, "richtext-theme", {
|
|
2625
2517
|
priority: 50
|
|
2626
2518
|
}), () => {
|
|
2627
|
-
|
|
2519
|
+
br("richtext-theme");
|
|
2628
2520
|
};
|
|
2629
2521
|
}, [e, t, i]);
|
|
2630
2522
|
const a = (u) => {
|
|
2631
2523
|
r(u.detail);
|
|
2632
2524
|
}, s = (u) => {
|
|
2633
2525
|
o(u.detail);
|
|
2634
|
-
},
|
|
2526
|
+
}, c = (u) => {
|
|
2635
2527
|
n(u.detail);
|
|
2636
2528
|
};
|
|
2637
2529
|
return k(() => {
|
|
2638
|
-
const u = W
|
|
2530
|
+
const u = _(W.CHANGE_THEME, a), p = _(W.CHANGE_COLOR, s), f = _(W.CHANGE_BORDER_RADIUS, c);
|
|
2639
2531
|
return () => {
|
|
2640
2532
|
u(), p(), f();
|
|
2641
2533
|
};
|
|
2642
|
-
}, []), /* @__PURE__ */
|
|
2534
|
+
}, []), /* @__PURE__ */ M(X, {});
|
|
2643
2535
|
}
|
|
2644
|
-
function
|
|
2645
|
-
return /* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2647
|
-
|
|
2536
|
+
function Mr({ editor: e, children: r, id: t }) {
|
|
2537
|
+
return /* @__PURE__ */ ze(ur, { children: [
|
|
2538
|
+
/* @__PURE__ */ M(
|
|
2539
|
+
xr,
|
|
2648
2540
|
{
|
|
2649
2541
|
editor: e,
|
|
2650
2542
|
id: t,
|
|
2651
2543
|
children: r
|
|
2652
2544
|
}
|
|
2653
2545
|
),
|
|
2654
|
-
/* @__PURE__ */
|
|
2655
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ M(wr, {}),
|
|
2547
|
+
/* @__PURE__ */ M(yr, {})
|
|
2656
2548
|
] });
|
|
2657
2549
|
}
|
|
2658
2550
|
export {
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
Wt as e,
|
|
2666
|
-
wt as f,
|
|
2667
|
-
St as g,
|
|
2668
|
-
At as r,
|
|
2669
|
-
It as u
|
|
2551
|
+
Mr as P,
|
|
2552
|
+
J as a,
|
|
2553
|
+
Rr as b,
|
|
2554
|
+
kr as c,
|
|
2555
|
+
br as r,
|
|
2556
|
+
hr as u
|
|
2670
2557
|
};
|