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