@chaibuilder/sdk 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddBlocks-Rd2EpNMr.js → AddBlocks-A7WofxHV.js} +29 -37
- package/dist/AddBlocks-Yuc4t0Z_.cjs +1 -0
- package/dist/{BrandingOptions-rTaSfm0M.cjs → BrandingOptions-KkPF1OGn.cjs} +1 -1
- package/dist/{BrandingOptions-OVjd8R6I.js → BrandingOptions-wkFrLFI_.js} +2 -2
- package/dist/{CanvasArea-zAT94LPr.js → CanvasArea-chEYQhH8.js} +52 -53
- package/dist/{CanvasArea-_eT3OREW.cjs → CanvasArea-kF46NWZK.cjs} +3 -3
- package/dist/{CurrentPage-awyWzrD1.js → CurrentPage-Wd7F9Egg.js} +15 -23
- package/dist/CurrentPage-p9MaXTOB.cjs +1 -0
- package/dist/{Layers-Iu48BWko.js → Layers-qMOMP2Mi.js} +9 -17
- package/dist/Layers-wQ0Fv9Xc.cjs +1 -0
- package/dist/{MarkAsGlobalBlock--GjBOKA4.js → MarkAsGlobalBlock-Czq45Amf.js} +2 -2
- package/dist/{MarkAsGlobalBlock-GV1kflbN.cjs → MarkAsGlobalBlock-sb3hMXLq.cjs} +1 -1
- package/dist/PagesPanel--maZxwX5.cjs +1 -0
- package/dist/{PagesPanel-FiGBY1m8.js → PagesPanel-ay4uk4mg.js} +7 -15
- package/dist/ProjectPanel-KhIpO7m3.cjs +1 -0
- package/dist/{ProjectPanel-c5QlZgrp.js → ProjectPanel-eLlbfAtj.js} +19 -27
- package/dist/{Settings-FuvoLEbx.js → Settings-lpoxaMDu.js} +8 -16
- package/dist/Settings-n2DpS5Ta.cjs +1 -0
- package/dist/SidePanels-Dud5Xh9L.cjs +1 -0
- package/dist/{SidePanels-2FjCLw9X.js → SidePanels-iRXV69vh.js} +10 -18
- package/dist/{Topbar-qloDpVn7.js → Topbar-dQYhW4iv.js} +2 -2
- package/dist/{Topbar-P3sqe-wG.cjs → Topbar-vqzjB75a.cjs} +1 -1
- package/dist/{UnsplashImages-8p0Vu9j_.cjs → UnsplashImages-3Sh4UZ-7.cjs} +1 -1
- package/dist/{UnsplashImages-aVlfl8Rj.js → UnsplashImages-AL1ASAoD.js} +2 -2
- package/dist/{UploadImages-7xgCWSqx.js → UploadImages-09wuhk2O.js} +2 -2
- package/dist/{UploadImages-PjW68B7L.cjs → UploadImages-mPzLhMiH.cjs} +1 -1
- package/dist/add-page-modal-FPnIWwqA.cjs +1 -0
- package/dist/{add-page-modal-o4WyfyUe.js → add-page-modal-TXREEFPZ.js} +20 -28
- package/dist/{confirm-alert-OQrR9mLj.js → confirm-alert-GkfW9chS.js} +2 -2
- package/dist/{confirm-alert-Wvv7pPyF.cjs → confirm-alert-YNyc3WEo.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +55 -63
- package/dist/{delete-page-modal-pWTbYmMV.js → delete-page-modal-LNME2FwD.js} +20 -28
- package/dist/delete-page-modal-sTbqZPvk.cjs +1 -0
- package/dist/{form-W_17vJvn.js → form-Fk4CaX1A.js} +1 -1
- package/dist/{form-1HQKf4Lc.cjs → form-OhgCJlVA.cjs} +1 -1
- package/dist/functions-ZWGlwlQY.cjs +1 -0
- package/dist/functions-slns6ONz.js +23 -0
- package/dist/html-to-json-kGgp07Hv.js +177 -0
- package/dist/html-to-json-po8on2ju.cjs +1 -0
- package/dist/{index-kVugkp77.cjs → index-61c5wSJn.cjs} +2 -2
- package/dist/{index-D15K4BZT.js → index-89A3jPHh.js} +2 -2
- package/dist/{index-MIe2pKhn.cjs → index-GNmGzavZ.cjs} +1 -1
- package/dist/{index-RYlMCgpN.js → index-Q5q5Y_8a.js} +16 -16
- package/dist/lib.cjs +2 -1
- package/dist/lib.d.ts +2 -65
- package/dist/lib.js +1140 -230
- package/dist/page-viewer-LPx-OTCC.js +110 -0
- package/dist/page-viewer-wQO9oV9h.cjs +1 -0
- package/dist/project-general-setting-8EwuN5lN.cjs +1 -0
- package/dist/{project-general-setting-rHyDn0aW.js → project-general-setting-sSpFUD_Y.js} +8 -16
- package/dist/{project-seo-setting-bW4cNODi.js → project-seo-setting-CGVegBtM.js} +3 -3
- package/dist/{project-seo-setting-uEYqfVt6.cjs → project-seo-setting-R77SKM1I.cjs} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.js +44 -50
- package/dist/{single-page-detail-UUVe4WYc.js → single-page-detail-32H1_IG4.js} +54 -62
- package/dist/single-page-detail-nyBEHLtT.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +6 -14
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +65 -7
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/{useAddBlockByDrop-8i3iNtPF.cjs → useAddBlockByDrop-4VH-SMj7.cjs} +1 -1
- package/dist/{useAddBlockByDrop-wiagwec5.js → useAddBlockByDrop-_kyR0iI4.js} +1 -1
- package/dist/utils-tx6hqsHY.cjs +1 -0
- package/dist/{utils-PPBbw5bk.js → utils-zWMk4dB2.js} +18 -17
- package/package.json +1 -1
- package/dist/AddBlocks-YS5XlqpG.cjs +0 -1
- package/dist/CurrentPage-J3WuljO3.cjs +0 -1
- package/dist/Layers-SkyPSf1R.cjs +0 -1
- package/dist/PagesPanel-dzL5sq6p.cjs +0 -1
- package/dist/ProjectPanel-uOP0fGfw.cjs +0 -1
- package/dist/Settings-QxjYc9wt.cjs +0 -1
- package/dist/SidePanels-9tKSnDxd.cjs +0 -1
- package/dist/add-page-modal-1ied5RTu.cjs +0 -1
- package/dist/delete-page-modal-fKBafNSA.cjs +0 -1
- package/dist/functions-JFP-oMsY.js +0 -1109
- package/dist/functions-KMQYiBHf.cjs +0 -2
- package/dist/page-viewer-CijLLu6R.js +0 -118
- package/dist/page-viewer-_mpbB5Lr.cjs +0 -1
- package/dist/project-general-setting-gwcHJ-ow.cjs +0 -1
- package/dist/single-page-detail-aNLmbldV.cjs +0 -1
- package/dist/tailwind-config-OxLD7oFU.cjs +0 -1
- package/dist/tailwind-config-d1VL1lzE.js +0 -62
- package/dist/utils-It2K33fU.cjs +0 -1
package/dist/lib.js
CHANGED
|
@@ -1,188 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { c as F } from "./utils-zWMk4dB2.js";
|
|
2
|
+
import { b as de, g as ge, a as ue } from "./utils-zWMk4dB2.js";
|
|
3
|
+
import { g as be } from "./html-to-json-kGgp07Hv.js";
|
|
4
|
+
import { first as _, includes as m, keys as d, map as y, parseInt as E, get as c, set as w, startsWith as O, replace as v } from "lodash";
|
|
5
|
+
import { a as A, g as D } from "./functions-slns6ONz.js";
|
|
6
|
+
import { tailwindcssPaletteGenerator as L } from "@bobthered/tailwindcss-palette-generator";
|
|
7
|
+
import { createTailwindcss as U } from "@mhsdesign/jit-browser-tailwindcss";
|
|
8
|
+
import { g as R, a as H } from "./MODIFIERS-MLfpKQY1.js";
|
|
9
|
+
import $ from "@tailwindcss/forms";
|
|
10
|
+
import I from "@tailwindcss/typography";
|
|
11
|
+
import P from "@tailwindcss/aspect-ratio";
|
|
12
|
+
import W from "@tailwindcss/line-clamp";
|
|
8
13
|
import "clsx";
|
|
9
14
|
import "tailwind-merge";
|
|
10
|
-
import "
|
|
11
|
-
|
|
12
|
-
import "@tailwindcss/forms";
|
|
13
|
-
import "@tailwindcss/typography";
|
|
14
|
-
import "@tailwindcss/aspect-ratio";
|
|
15
|
-
import "@tailwindcss/line-clamp";
|
|
16
|
-
const M = {
|
|
17
|
-
img: { alt: "alt", width: "width", height: "height", src: "image" },
|
|
18
|
-
video: {
|
|
19
|
-
src: "url",
|
|
20
|
-
autoplay: "controls.autoPlay",
|
|
21
|
-
muted: "controls.muted",
|
|
22
|
-
loop: "controls.loop",
|
|
23
|
-
controls: "controls.widgets"
|
|
24
|
-
},
|
|
25
|
-
a: {
|
|
26
|
-
href: "link.href",
|
|
27
|
-
target: "link.target",
|
|
28
|
-
type: ""
|
|
29
|
-
// @TODO: Detect here what to url, email, phone, elementId
|
|
30
|
-
},
|
|
31
|
-
input: {
|
|
32
|
-
placeholder: "placeholder",
|
|
33
|
-
required: "required",
|
|
34
|
-
type: "inputType",
|
|
35
|
-
name: "fieldName"
|
|
36
|
-
},
|
|
37
|
-
textarea: {
|
|
38
|
-
placeholder: "placeholder",
|
|
39
|
-
required: "required",
|
|
40
|
-
type: "inputType",
|
|
41
|
-
name: "fieldName"
|
|
42
|
-
},
|
|
43
|
-
select: {
|
|
44
|
-
placeholder: "placeholder",
|
|
45
|
-
required: "required",
|
|
46
|
-
multiple: "multiple",
|
|
47
|
-
name: "fieldName"
|
|
48
|
-
}
|
|
49
|
-
}, D = (e, a) => e.children.length === 1 && p(["Heading", "Paragraph", "Span", "ListItem", "Button", "Label", "TableCell", "Link"], a._type), L = (e) => e.map((a) => a.type === "text" ? l(a, "content", "") : _(a.children) ? "" : L(a.children)).join(""), v = (e) => e === null ? !0 : e, w = (e) => {
|
|
50
|
-
const a = {}, s = M[e.tagName] || {}, c = e.attributes;
|
|
51
|
-
return N(c, ({ key: t, value: i }) => {
|
|
52
|
-
if (s[t]) {
|
|
53
|
-
if (e.tagName === "img" && t === "src" && !i.startsWith("http")) {
|
|
54
|
-
const r = x(e.attributes, { key: "width" }), n = x(e.attributes, { key: "height" });
|
|
55
|
-
r && n ? i = `https://via.placeholder.com/${r == null ? void 0 : r.value}x${n == null ? void 0 : n.value}` : i = "https://via.placeholder.com/150x150";
|
|
56
|
-
}
|
|
57
|
-
m(a, s[t], v(i));
|
|
58
|
-
} else
|
|
59
|
-
p(["style", "class", "srcset"], t) || m(a, `styles_attrs.${t}`, v(i));
|
|
60
|
-
}), delete a.class, a;
|
|
61
|
-
}, X = (e, a = "styles") => {
|
|
62
|
-
if (!e.attributes)
|
|
63
|
-
return { [a]: `${d},` };
|
|
64
|
-
const s = x(e.attributes, { key: "class" });
|
|
65
|
-
if (s) {
|
|
66
|
-
const c = s.value;
|
|
67
|
-
return { [a]: `${d},${c}` };
|
|
68
|
-
}
|
|
69
|
-
return { [a]: `${d},` };
|
|
70
|
-
}, z = (e) => {
|
|
71
|
-
switch (e.tagName) {
|
|
72
|
-
case "img":
|
|
73
|
-
return { _type: "Image" };
|
|
74
|
-
case "input":
|
|
75
|
-
return { _type: "Input", showLabel: !1 };
|
|
76
|
-
case "hr":
|
|
77
|
-
return { _type: "Divider" };
|
|
78
|
-
case "br":
|
|
79
|
-
return { _type: "LineBreak" };
|
|
80
|
-
case "textarea":
|
|
81
|
-
return { _type: "TextArea", showLabel: !1 };
|
|
82
|
-
case "audio":
|
|
83
|
-
return { _type: "Audio" };
|
|
84
|
-
case "iframe":
|
|
85
|
-
return { _type: "Iframe" };
|
|
86
|
-
case "canvas":
|
|
87
|
-
return { _type: "Canvas" };
|
|
88
|
-
case "video":
|
|
89
|
-
return { _type: "CustomHTML" };
|
|
90
|
-
case "svg":
|
|
91
|
-
return { _type: "Icon" };
|
|
92
|
-
case "select":
|
|
93
|
-
return { _type: "Select", options: [] };
|
|
94
|
-
case "option":
|
|
95
|
-
return { _type: "Option" };
|
|
96
|
-
case "ul":
|
|
97
|
-
case "ol":
|
|
98
|
-
case "dl":
|
|
99
|
-
return {
|
|
100
|
-
_type: "List",
|
|
101
|
-
tag: e.tagName,
|
|
102
|
-
_listType: e.tagName === "ol" ? "list-decimal" : "list-none"
|
|
103
|
-
};
|
|
104
|
-
case "li":
|
|
105
|
-
case "dt":
|
|
106
|
-
return { _type: "ListItem", tag: e.tagName };
|
|
107
|
-
case "span":
|
|
108
|
-
case "figcaption":
|
|
109
|
-
case "legend":
|
|
110
|
-
return { _type: "Span", tag: e.tagName };
|
|
111
|
-
case "p":
|
|
112
|
-
return { _type: "Paragraph", content: "" };
|
|
113
|
-
case "a":
|
|
114
|
-
return { _type: "Link" };
|
|
115
|
-
case "form":
|
|
116
|
-
return { _type: "Form" };
|
|
117
|
-
case "label":
|
|
118
|
-
return { _type: "Label" };
|
|
119
|
-
case "button":
|
|
120
|
-
return { _type: "Button" };
|
|
121
|
-
case "code":
|
|
122
|
-
return { _type: "Code" };
|
|
123
|
-
case "h1":
|
|
124
|
-
case "h2":
|
|
125
|
-
case "h3":
|
|
126
|
-
case "h4":
|
|
127
|
-
case "h5":
|
|
128
|
-
case "h6":
|
|
129
|
-
return { _type: "Heading", tag: e.tagName };
|
|
130
|
-
case "table":
|
|
131
|
-
return { _type: "Table" };
|
|
132
|
-
case "tr":
|
|
133
|
-
return { _type: "TableRow" };
|
|
134
|
-
case "td":
|
|
135
|
-
case "th":
|
|
136
|
-
return { _type: "TableCell", tag: e.tagName };
|
|
137
|
-
case "thead":
|
|
138
|
-
return { _type: "TableHead" };
|
|
139
|
-
case "tbody":
|
|
140
|
-
return { _type: "TableBody" };
|
|
141
|
-
case "tfoot":
|
|
142
|
-
return { _type: "TableFooter" };
|
|
143
|
-
default:
|
|
144
|
-
return {
|
|
145
|
-
_type: "Box",
|
|
146
|
-
tag: e.tagName,
|
|
147
|
-
name: e.tagName === "div" ? "Box" : P(e.tagName)
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
}, C = (e, a = null) => V(e, (s) => {
|
|
151
|
-
var i;
|
|
152
|
-
if (s.type === "comment")
|
|
153
|
-
return [];
|
|
154
|
-
let c = { _id: I() };
|
|
155
|
-
if (a && (c._parent = a.block._id), s.type === "text")
|
|
156
|
-
return _(l(s, "content", "")) ? [] : a && D(a.node, a.block) ? (m(a, "block.content", l(s, "content", "")), []) : { ...c, _type: "Text", content: l(s, "content", "") };
|
|
157
|
-
if (c = {
|
|
158
|
-
...c,
|
|
159
|
-
...z(s),
|
|
160
|
-
...w(s),
|
|
161
|
-
...X(s)
|
|
162
|
-
}, c._type === "Input") {
|
|
163
|
-
const r = c.inputType || "text";
|
|
164
|
-
r === "checkbox" ? m(c, "_type", "Checkbox") : r === "radio" && m(c, "_type", "Radio");
|
|
165
|
-
} else {
|
|
166
|
-
if (s.tagName === "video")
|
|
167
|
-
return c.content = k([s]), [c];
|
|
168
|
-
if (s.tagName === "svg") {
|
|
169
|
-
const r = x(s.attributes, { key: "height" }), n = x(s.attributes, { key: "width" }), f = l(r, "value") ? `[${l(r, "value")}px]` : "full", h = l(n, "value") ? `[${l(n, "value")}px]` : "full", b = l(x(s.attributes, { key: "class" }), "value");
|
|
170
|
-
return c.styles = `${d}, ${A(`w-${h} h-${f}`, b)}`.trim(), s.attributes = E(s.attributes, (y) => !p(["style", "width", "height", "class"], y.key)), c.icon = k([s]), m(c, "styles_attrs", H(l(c, "styles_attrs") || {}, ["height", "width", "style", "class"])), [c];
|
|
171
|
-
} else if (s.tagName == "option" && a && ((i = a.block) == null ? void 0 : i._type) === "Select")
|
|
172
|
-
return a.block.options.push({
|
|
173
|
-
label: L(s.children),
|
|
174
|
-
...w(s)
|
|
175
|
-
}), [];
|
|
176
|
-
}
|
|
177
|
-
const t = C(s.children, { block: c, node: s });
|
|
178
|
-
return [c, ...t];
|
|
179
|
-
}), U = (e) => {
|
|
180
|
-
const a = e.match(/<body[^>]*>[\s\S]*?<\/body>/);
|
|
181
|
-
return (a && a.length > 0 ? a[0].replace(/<body/, "<div").replace(/<\/body>/, "</div>") : e).replace(/\s+/g, " ").replaceAll("> <", "><").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").trim();
|
|
182
|
-
}, ne = (e) => {
|
|
183
|
-
const a = O(U(e));
|
|
184
|
-
return _(e) ? [] : R(C(a));
|
|
185
|
-
}, $ = {
|
|
15
|
+
import "himalaya";
|
|
16
|
+
const T = {
|
|
186
17
|
25: "1/4",
|
|
187
18
|
"33.33": "1/3",
|
|
188
19
|
50: "1/2",
|
|
@@ -199,7 +30,7 @@ const M = {
|
|
|
199
30
|
"58.33": "7/12",
|
|
200
31
|
"91.67": "11/12",
|
|
201
32
|
100: "full"
|
|
202
|
-
},
|
|
33
|
+
}, M = {
|
|
203
34
|
0: "0",
|
|
204
35
|
1: "px",
|
|
205
36
|
2: "0.5",
|
|
@@ -236,23 +67,23 @@ const M = {
|
|
|
236
67
|
320: "80",
|
|
237
68
|
384: "96"
|
|
238
69
|
};
|
|
239
|
-
const
|
|
240
|
-
function
|
|
241
|
-
return e.indexOf("rem") !== -1 && (e = `${parseFloat(e.replace("rem", "")) *
|
|
70
|
+
const B = 16, V = 4;
|
|
71
|
+
function j(e) {
|
|
72
|
+
return e.indexOf("rem") !== -1 && (e = `${parseFloat(e.replace("rem", "")) * B}px`), e;
|
|
242
73
|
}
|
|
243
74
|
const pe = (e) => {
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
75
|
+
const n = e.match(/\[.*\]/);
|
|
76
|
+
if (n === null)
|
|
246
77
|
return e;
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
78
|
+
const r = F(e);
|
|
79
|
+
if (r === null)
|
|
249
80
|
return e;
|
|
250
|
-
const { property:
|
|
251
|
-
let t =
|
|
252
|
-
const
|
|
253
|
-
t =
|
|
254
|
-
let
|
|
255
|
-
switch (
|
|
81
|
+
const { property: i } = r;
|
|
82
|
+
let t = _(n).replace(/\]/i, "").replace(/\[/i, "");
|
|
83
|
+
const a = e.replace(/\[.*\]/i, "");
|
|
84
|
+
t = j(t);
|
|
85
|
+
let o = e;
|
|
86
|
+
switch (i) {
|
|
256
87
|
case "top":
|
|
257
88
|
case "right":
|
|
258
89
|
case "left":
|
|
@@ -285,27 +116,27 @@ const pe = (e) => {
|
|
|
285
116
|
case "spaceX":
|
|
286
117
|
case "spaceY":
|
|
287
118
|
if (t.indexOf("px") !== -1) {
|
|
288
|
-
const
|
|
289
|
-
if (p
|
|
290
|
-
const
|
|
291
|
-
|
|
119
|
+
const p = y(d(M), (s) => `${s}px`);
|
|
120
|
+
if (m(p, t)) {
|
|
121
|
+
const s = E(t.replace("px", ""), 10);
|
|
122
|
+
s === 1 ? o = `${a}px` : o = a + s / V;
|
|
292
123
|
}
|
|
293
124
|
}
|
|
294
125
|
if (t.indexOf("%") !== -1) {
|
|
295
|
-
const
|
|
296
|
-
if (p
|
|
297
|
-
const
|
|
298
|
-
|
|
126
|
+
const p = y(d(T), (s) => `${s}%`);
|
|
127
|
+
if (m(p, t)) {
|
|
128
|
+
const s = parseFloat(t.replace("%", ""));
|
|
129
|
+
o = a + c(T, s);
|
|
299
130
|
}
|
|
300
131
|
}
|
|
301
|
-
t.indexOf("vw") !== -1 && parseFloat(t.replace("vw", "")) === 100 && (
|
|
132
|
+
t.indexOf("vw") !== -1 && parseFloat(t.replace("vw", "")) === 100 && (o = `${a}screen`), t.indexOf("vh") !== -1 && parseFloat(t.replace("vh", "")) === 100 && (o = `${a}screen`);
|
|
302
133
|
break;
|
|
303
134
|
case "minWidth":
|
|
304
|
-
t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (
|
|
135
|
+
t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (o = `${a}full`), t === "0px" && (o = "min-w-0");
|
|
305
136
|
break;
|
|
306
137
|
case "maxWidth":
|
|
307
|
-
t === "0px" && (
|
|
308
|
-
const
|
|
138
|
+
t === "0px" && (o = "max-w-0");
|
|
139
|
+
const g = {
|
|
309
140
|
"320px": "xs",
|
|
310
141
|
"384px": "sm",
|
|
311
142
|
"448px": "md",
|
|
@@ -322,13 +153,13 @@ const pe = (e) => {
|
|
|
322
153
|
"640px": "screen-sm",
|
|
323
154
|
"1536px": "screen-2xl"
|
|
324
155
|
};
|
|
325
|
-
|
|
156
|
+
m(d(g), t) && (o = `max-w-${g[t]}`);
|
|
326
157
|
break;
|
|
327
158
|
case "minHeight":
|
|
328
|
-
t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (
|
|
159
|
+
t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (o = `${a}full`), t === "0px" && (o = "min-h-0"), t === "100vh" && (o = "min-h-screen");
|
|
329
160
|
break;
|
|
330
161
|
case "fontSize":
|
|
331
|
-
const
|
|
162
|
+
const x = {
|
|
332
163
|
"12px": "xs",
|
|
333
164
|
"14px": "sm",
|
|
334
165
|
"16px": "base",
|
|
@@ -343,10 +174,10 @@ const pe = (e) => {
|
|
|
343
174
|
"96px": "8xl",
|
|
344
175
|
"128px": "9xl"
|
|
345
176
|
};
|
|
346
|
-
|
|
177
|
+
m(d(x), t) && (o = a + x[t]);
|
|
347
178
|
break;
|
|
348
179
|
case "lineHeight":
|
|
349
|
-
const
|
|
180
|
+
const l = {
|
|
350
181
|
"12px": "3",
|
|
351
182
|
"16px": "4",
|
|
352
183
|
"20px": "5",
|
|
@@ -362,13 +193,13 @@ const pe = (e) => {
|
|
|
362
193
|
"1.625": "relaxed",
|
|
363
194
|
2: "loose"
|
|
364
195
|
};
|
|
365
|
-
|
|
196
|
+
m(d(l), t) && (o = a + l[t]);
|
|
366
197
|
break;
|
|
367
198
|
case "zIndex":
|
|
368
|
-
|
|
199
|
+
o = ["0", "10", "20", "30", "40", "50"].indexOf(t) !== -1 ? `${a}${t}` : e;
|
|
369
200
|
break;
|
|
370
201
|
case "opacity":
|
|
371
|
-
const
|
|
202
|
+
const b = [
|
|
372
203
|
"0",
|
|
373
204
|
"5",
|
|
374
205
|
"10",
|
|
@@ -384,24 +215,1103 @@ const pe = (e) => {
|
|
|
384
215
|
"90",
|
|
385
216
|
"95",
|
|
386
217
|
"100"
|
|
387
|
-
],
|
|
388
|
-
|
|
218
|
+
], h = parseFloat(t) * 100;
|
|
219
|
+
m(b, h.toString()) && (o = `opacity-${h}`);
|
|
389
220
|
break;
|
|
390
221
|
default:
|
|
391
222
|
break;
|
|
392
223
|
}
|
|
393
|
-
return
|
|
224
|
+
return o;
|
|
394
225
|
};
|
|
226
|
+
var k = {}, S = {};
|
|
227
|
+
(function(e) {
|
|
228
|
+
"use strict";
|
|
229
|
+
Object.defineProperty(e, "__esModule", {
|
|
230
|
+
value: !0
|
|
231
|
+
}), Object.defineProperty(e, "cloneDeep", {
|
|
232
|
+
enumerable: !0,
|
|
233
|
+
get: function() {
|
|
234
|
+
return n;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
function n(r) {
|
|
238
|
+
return Array.isArray(r) ? r.map((i) => n(i)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([i, t]) => [
|
|
239
|
+
i,
|
|
240
|
+
n(t)
|
|
241
|
+
])) : r;
|
|
242
|
+
}
|
|
243
|
+
})(S);
|
|
244
|
+
var X = {
|
|
245
|
+
content: [],
|
|
246
|
+
presets: [],
|
|
247
|
+
darkMode: "media",
|
|
248
|
+
// or 'class'
|
|
249
|
+
theme: {
|
|
250
|
+
accentColor: ({ theme: e }) => ({
|
|
251
|
+
...e("colors"),
|
|
252
|
+
auto: "auto"
|
|
253
|
+
}),
|
|
254
|
+
animation: {
|
|
255
|
+
none: "none",
|
|
256
|
+
spin: "spin 1s linear infinite",
|
|
257
|
+
ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
|
|
258
|
+
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
|
|
259
|
+
bounce: "bounce 1s infinite"
|
|
260
|
+
},
|
|
261
|
+
aria: {
|
|
262
|
+
busy: 'busy="true"',
|
|
263
|
+
checked: 'checked="true"',
|
|
264
|
+
disabled: 'disabled="true"',
|
|
265
|
+
expanded: 'expanded="true"',
|
|
266
|
+
hidden: 'hidden="true"',
|
|
267
|
+
pressed: 'pressed="true"',
|
|
268
|
+
readonly: 'readonly="true"',
|
|
269
|
+
required: 'required="true"',
|
|
270
|
+
selected: 'selected="true"'
|
|
271
|
+
},
|
|
272
|
+
aspectRatio: {
|
|
273
|
+
auto: "auto",
|
|
274
|
+
square: "1 / 1",
|
|
275
|
+
video: "16 / 9"
|
|
276
|
+
},
|
|
277
|
+
backdropBlur: ({ theme: e }) => e("blur"),
|
|
278
|
+
backdropBrightness: ({ theme: e }) => e("brightness"),
|
|
279
|
+
backdropContrast: ({ theme: e }) => e("contrast"),
|
|
280
|
+
backdropGrayscale: ({ theme: e }) => e("grayscale"),
|
|
281
|
+
backdropHueRotate: ({ theme: e }) => e("hueRotate"),
|
|
282
|
+
backdropInvert: ({ theme: e }) => e("invert"),
|
|
283
|
+
backdropOpacity: ({ theme: e }) => e("opacity"),
|
|
284
|
+
backdropSaturate: ({ theme: e }) => e("saturate"),
|
|
285
|
+
backdropSepia: ({ theme: e }) => e("sepia"),
|
|
286
|
+
backgroundColor: ({ theme: e }) => e("colors"),
|
|
287
|
+
backgroundImage: {
|
|
288
|
+
none: "none",
|
|
289
|
+
"gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
|
|
290
|
+
"gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
|
|
291
|
+
"gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
|
|
292
|
+
"gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
|
|
293
|
+
"gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
|
|
294
|
+
"gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
|
|
295
|
+
"gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
|
|
296
|
+
"gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
|
|
297
|
+
},
|
|
298
|
+
backgroundOpacity: ({ theme: e }) => e("opacity"),
|
|
299
|
+
backgroundPosition: {
|
|
300
|
+
bottom: "bottom",
|
|
301
|
+
center: "center",
|
|
302
|
+
left: "left",
|
|
303
|
+
"left-bottom": "left bottom",
|
|
304
|
+
"left-top": "left top",
|
|
305
|
+
right: "right",
|
|
306
|
+
"right-bottom": "right bottom",
|
|
307
|
+
"right-top": "right top",
|
|
308
|
+
top: "top"
|
|
309
|
+
},
|
|
310
|
+
backgroundSize: {
|
|
311
|
+
auto: "auto",
|
|
312
|
+
cover: "cover",
|
|
313
|
+
contain: "contain"
|
|
314
|
+
},
|
|
315
|
+
blur: {
|
|
316
|
+
0: "0",
|
|
317
|
+
none: "0",
|
|
318
|
+
sm: "4px",
|
|
319
|
+
DEFAULT: "8px",
|
|
320
|
+
md: "12px",
|
|
321
|
+
lg: "16px",
|
|
322
|
+
xl: "24px",
|
|
323
|
+
"2xl": "40px",
|
|
324
|
+
"3xl": "64px"
|
|
325
|
+
},
|
|
326
|
+
borderColor: ({ theme: e }) => ({
|
|
327
|
+
...e("colors"),
|
|
328
|
+
DEFAULT: e("colors.gray.200", "currentColor")
|
|
329
|
+
}),
|
|
330
|
+
borderOpacity: ({ theme: e }) => e("opacity"),
|
|
331
|
+
borderRadius: {
|
|
332
|
+
none: "0px",
|
|
333
|
+
sm: "0.125rem",
|
|
334
|
+
DEFAULT: "0.25rem",
|
|
335
|
+
md: "0.375rem",
|
|
336
|
+
lg: "0.5rem",
|
|
337
|
+
xl: "0.75rem",
|
|
338
|
+
"2xl": "1rem",
|
|
339
|
+
"3xl": "1.5rem",
|
|
340
|
+
full: "9999px"
|
|
341
|
+
},
|
|
342
|
+
borderSpacing: ({ theme: e }) => ({
|
|
343
|
+
...e("spacing")
|
|
344
|
+
}),
|
|
345
|
+
borderWidth: {
|
|
346
|
+
DEFAULT: "1px",
|
|
347
|
+
0: "0px",
|
|
348
|
+
2: "2px",
|
|
349
|
+
4: "4px",
|
|
350
|
+
8: "8px"
|
|
351
|
+
},
|
|
352
|
+
boxShadow: {
|
|
353
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
354
|
+
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
355
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
356
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
357
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
358
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
359
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
360
|
+
none: "none"
|
|
361
|
+
},
|
|
362
|
+
boxShadowColor: ({ theme: e }) => e("colors"),
|
|
363
|
+
brightness: {
|
|
364
|
+
0: "0",
|
|
365
|
+
50: ".5",
|
|
366
|
+
75: ".75",
|
|
367
|
+
90: ".9",
|
|
368
|
+
95: ".95",
|
|
369
|
+
100: "1",
|
|
370
|
+
105: "1.05",
|
|
371
|
+
110: "1.1",
|
|
372
|
+
125: "1.25",
|
|
373
|
+
150: "1.5",
|
|
374
|
+
200: "2"
|
|
375
|
+
},
|
|
376
|
+
caretColor: ({ theme: e }) => e("colors"),
|
|
377
|
+
colors: ({ colors: e }) => ({
|
|
378
|
+
inherit: e.inherit,
|
|
379
|
+
current: e.current,
|
|
380
|
+
transparent: e.transparent,
|
|
381
|
+
black: e.black,
|
|
382
|
+
white: e.white,
|
|
383
|
+
slate: e.slate,
|
|
384
|
+
gray: e.gray,
|
|
385
|
+
zinc: e.zinc,
|
|
386
|
+
neutral: e.neutral,
|
|
387
|
+
stone: e.stone,
|
|
388
|
+
red: e.red,
|
|
389
|
+
orange: e.orange,
|
|
390
|
+
amber: e.amber,
|
|
391
|
+
yellow: e.yellow,
|
|
392
|
+
lime: e.lime,
|
|
393
|
+
green: e.green,
|
|
394
|
+
emerald: e.emerald,
|
|
395
|
+
teal: e.teal,
|
|
396
|
+
cyan: e.cyan,
|
|
397
|
+
sky: e.sky,
|
|
398
|
+
blue: e.blue,
|
|
399
|
+
indigo: e.indigo,
|
|
400
|
+
violet: e.violet,
|
|
401
|
+
purple: e.purple,
|
|
402
|
+
fuchsia: e.fuchsia,
|
|
403
|
+
pink: e.pink,
|
|
404
|
+
rose: e.rose
|
|
405
|
+
}),
|
|
406
|
+
columns: {
|
|
407
|
+
auto: "auto",
|
|
408
|
+
1: "1",
|
|
409
|
+
2: "2",
|
|
410
|
+
3: "3",
|
|
411
|
+
4: "4",
|
|
412
|
+
5: "5",
|
|
413
|
+
6: "6",
|
|
414
|
+
7: "7",
|
|
415
|
+
8: "8",
|
|
416
|
+
9: "9",
|
|
417
|
+
10: "10",
|
|
418
|
+
11: "11",
|
|
419
|
+
12: "12",
|
|
420
|
+
"3xs": "16rem",
|
|
421
|
+
"2xs": "18rem",
|
|
422
|
+
xs: "20rem",
|
|
423
|
+
sm: "24rem",
|
|
424
|
+
md: "28rem",
|
|
425
|
+
lg: "32rem",
|
|
426
|
+
xl: "36rem",
|
|
427
|
+
"2xl": "42rem",
|
|
428
|
+
"3xl": "48rem",
|
|
429
|
+
"4xl": "56rem",
|
|
430
|
+
"5xl": "64rem",
|
|
431
|
+
"6xl": "72rem",
|
|
432
|
+
"7xl": "80rem"
|
|
433
|
+
},
|
|
434
|
+
container: {},
|
|
435
|
+
content: {
|
|
436
|
+
none: "none"
|
|
437
|
+
},
|
|
438
|
+
contrast: {
|
|
439
|
+
0: "0",
|
|
440
|
+
50: ".5",
|
|
441
|
+
75: ".75",
|
|
442
|
+
100: "1",
|
|
443
|
+
125: "1.25",
|
|
444
|
+
150: "1.5",
|
|
445
|
+
200: "2"
|
|
446
|
+
},
|
|
447
|
+
cursor: {
|
|
448
|
+
auto: "auto",
|
|
449
|
+
default: "default",
|
|
450
|
+
pointer: "pointer",
|
|
451
|
+
wait: "wait",
|
|
452
|
+
text: "text",
|
|
453
|
+
move: "move",
|
|
454
|
+
help: "help",
|
|
455
|
+
"not-allowed": "not-allowed",
|
|
456
|
+
none: "none",
|
|
457
|
+
"context-menu": "context-menu",
|
|
458
|
+
progress: "progress",
|
|
459
|
+
cell: "cell",
|
|
460
|
+
crosshair: "crosshair",
|
|
461
|
+
"vertical-text": "vertical-text",
|
|
462
|
+
alias: "alias",
|
|
463
|
+
copy: "copy",
|
|
464
|
+
"no-drop": "no-drop",
|
|
465
|
+
grab: "grab",
|
|
466
|
+
grabbing: "grabbing",
|
|
467
|
+
"all-scroll": "all-scroll",
|
|
468
|
+
"col-resize": "col-resize",
|
|
469
|
+
"row-resize": "row-resize",
|
|
470
|
+
"n-resize": "n-resize",
|
|
471
|
+
"e-resize": "e-resize",
|
|
472
|
+
"s-resize": "s-resize",
|
|
473
|
+
"w-resize": "w-resize",
|
|
474
|
+
"ne-resize": "ne-resize",
|
|
475
|
+
"nw-resize": "nw-resize",
|
|
476
|
+
"se-resize": "se-resize",
|
|
477
|
+
"sw-resize": "sw-resize",
|
|
478
|
+
"ew-resize": "ew-resize",
|
|
479
|
+
"ns-resize": "ns-resize",
|
|
480
|
+
"nesw-resize": "nesw-resize",
|
|
481
|
+
"nwse-resize": "nwse-resize",
|
|
482
|
+
"zoom-in": "zoom-in",
|
|
483
|
+
"zoom-out": "zoom-out"
|
|
484
|
+
},
|
|
485
|
+
divideColor: ({ theme: e }) => e("borderColor"),
|
|
486
|
+
divideOpacity: ({ theme: e }) => e("borderOpacity"),
|
|
487
|
+
divideWidth: ({ theme: e }) => e("borderWidth"),
|
|
488
|
+
dropShadow: {
|
|
489
|
+
sm: "0 1px 1px rgb(0 0 0 / 0.05)",
|
|
490
|
+
DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
|
|
491
|
+
md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
|
|
492
|
+
lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
|
|
493
|
+
xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
|
|
494
|
+
"2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
|
|
495
|
+
none: "0 0 #0000"
|
|
496
|
+
},
|
|
497
|
+
fill: ({ theme: e }) => ({
|
|
498
|
+
none: "none",
|
|
499
|
+
...e("colors")
|
|
500
|
+
}),
|
|
501
|
+
flex: {
|
|
502
|
+
1: "1 1 0%",
|
|
503
|
+
auto: "1 1 auto",
|
|
504
|
+
initial: "0 1 auto",
|
|
505
|
+
none: "none"
|
|
506
|
+
},
|
|
507
|
+
flexBasis: ({ theme: e }) => ({
|
|
508
|
+
auto: "auto",
|
|
509
|
+
...e("spacing"),
|
|
510
|
+
"1/2": "50%",
|
|
511
|
+
"1/3": "33.333333%",
|
|
512
|
+
"2/3": "66.666667%",
|
|
513
|
+
"1/4": "25%",
|
|
514
|
+
"2/4": "50%",
|
|
515
|
+
"3/4": "75%",
|
|
516
|
+
"1/5": "20%",
|
|
517
|
+
"2/5": "40%",
|
|
518
|
+
"3/5": "60%",
|
|
519
|
+
"4/5": "80%",
|
|
520
|
+
"1/6": "16.666667%",
|
|
521
|
+
"2/6": "33.333333%",
|
|
522
|
+
"3/6": "50%",
|
|
523
|
+
"4/6": "66.666667%",
|
|
524
|
+
"5/6": "83.333333%",
|
|
525
|
+
"1/12": "8.333333%",
|
|
526
|
+
"2/12": "16.666667%",
|
|
527
|
+
"3/12": "25%",
|
|
528
|
+
"4/12": "33.333333%",
|
|
529
|
+
"5/12": "41.666667%",
|
|
530
|
+
"6/12": "50%",
|
|
531
|
+
"7/12": "58.333333%",
|
|
532
|
+
"8/12": "66.666667%",
|
|
533
|
+
"9/12": "75%",
|
|
534
|
+
"10/12": "83.333333%",
|
|
535
|
+
"11/12": "91.666667%",
|
|
536
|
+
full: "100%"
|
|
537
|
+
}),
|
|
538
|
+
flexGrow: {
|
|
539
|
+
0: "0",
|
|
540
|
+
DEFAULT: "1"
|
|
541
|
+
},
|
|
542
|
+
flexShrink: {
|
|
543
|
+
0: "0",
|
|
544
|
+
DEFAULT: "1"
|
|
545
|
+
},
|
|
546
|
+
fontFamily: {
|
|
547
|
+
sans: [
|
|
548
|
+
"ui-sans-serif",
|
|
549
|
+
"system-ui",
|
|
550
|
+
"-apple-system",
|
|
551
|
+
"BlinkMacSystemFont",
|
|
552
|
+
'"Segoe UI"',
|
|
553
|
+
"Roboto",
|
|
554
|
+
'"Helvetica Neue"',
|
|
555
|
+
"Arial",
|
|
556
|
+
'"Noto Sans"',
|
|
557
|
+
"sans-serif",
|
|
558
|
+
'"Apple Color Emoji"',
|
|
559
|
+
'"Segoe UI Emoji"',
|
|
560
|
+
'"Segoe UI Symbol"',
|
|
561
|
+
'"Noto Color Emoji"'
|
|
562
|
+
],
|
|
563
|
+
serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
|
|
564
|
+
mono: [
|
|
565
|
+
"ui-monospace",
|
|
566
|
+
"SFMono-Regular",
|
|
567
|
+
"Menlo",
|
|
568
|
+
"Monaco",
|
|
569
|
+
"Consolas",
|
|
570
|
+
'"Liberation Mono"',
|
|
571
|
+
'"Courier New"',
|
|
572
|
+
"monospace"
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
fontSize: {
|
|
576
|
+
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
577
|
+
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
|
578
|
+
base: ["1rem", { lineHeight: "1.5rem" }],
|
|
579
|
+
lg: ["1.125rem", { lineHeight: "1.75rem" }],
|
|
580
|
+
xl: ["1.25rem", { lineHeight: "1.75rem" }],
|
|
581
|
+
"2xl": ["1.5rem", { lineHeight: "2rem" }],
|
|
582
|
+
"3xl": ["1.875rem", { lineHeight: "2.25rem" }],
|
|
583
|
+
"4xl": ["2.25rem", { lineHeight: "2.5rem" }],
|
|
584
|
+
"5xl": ["3rem", { lineHeight: "1" }],
|
|
585
|
+
"6xl": ["3.75rem", { lineHeight: "1" }],
|
|
586
|
+
"7xl": ["4.5rem", { lineHeight: "1" }],
|
|
587
|
+
"8xl": ["6rem", { lineHeight: "1" }],
|
|
588
|
+
"9xl": ["8rem", { lineHeight: "1" }]
|
|
589
|
+
},
|
|
590
|
+
fontWeight: {
|
|
591
|
+
thin: "100",
|
|
592
|
+
extralight: "200",
|
|
593
|
+
light: "300",
|
|
594
|
+
normal: "400",
|
|
595
|
+
medium: "500",
|
|
596
|
+
semibold: "600",
|
|
597
|
+
bold: "700",
|
|
598
|
+
extrabold: "800",
|
|
599
|
+
black: "900"
|
|
600
|
+
},
|
|
601
|
+
gap: ({ theme: e }) => e("spacing"),
|
|
602
|
+
gradientColorStops: ({ theme: e }) => e("colors"),
|
|
603
|
+
gradientColorStopPositions: {
|
|
604
|
+
"0%": "0%",
|
|
605
|
+
"5%": "5%",
|
|
606
|
+
"10%": "10%",
|
|
607
|
+
"15%": "15%",
|
|
608
|
+
"20%": "20%",
|
|
609
|
+
"25%": "25%",
|
|
610
|
+
"30%": "30%",
|
|
611
|
+
"35%": "35%",
|
|
612
|
+
"40%": "40%",
|
|
613
|
+
"45%": "45%",
|
|
614
|
+
"50%": "50%",
|
|
615
|
+
"55%": "55%",
|
|
616
|
+
"60%": "60%",
|
|
617
|
+
"65%": "65%",
|
|
618
|
+
"70%": "70%",
|
|
619
|
+
"75%": "75%",
|
|
620
|
+
"80%": "80%",
|
|
621
|
+
"85%": "85%",
|
|
622
|
+
"90%": "90%",
|
|
623
|
+
"95%": "95%",
|
|
624
|
+
"100%": "100%"
|
|
625
|
+
},
|
|
626
|
+
grayscale: {
|
|
627
|
+
0: "0",
|
|
628
|
+
DEFAULT: "100%"
|
|
629
|
+
},
|
|
630
|
+
gridAutoColumns: {
|
|
631
|
+
auto: "auto",
|
|
632
|
+
min: "min-content",
|
|
633
|
+
max: "max-content",
|
|
634
|
+
fr: "minmax(0, 1fr)"
|
|
635
|
+
},
|
|
636
|
+
gridAutoRows: {
|
|
637
|
+
auto: "auto",
|
|
638
|
+
min: "min-content",
|
|
639
|
+
max: "max-content",
|
|
640
|
+
fr: "minmax(0, 1fr)"
|
|
641
|
+
},
|
|
642
|
+
gridColumn: {
|
|
643
|
+
auto: "auto",
|
|
644
|
+
"span-1": "span 1 / span 1",
|
|
645
|
+
"span-2": "span 2 / span 2",
|
|
646
|
+
"span-3": "span 3 / span 3",
|
|
647
|
+
"span-4": "span 4 / span 4",
|
|
648
|
+
"span-5": "span 5 / span 5",
|
|
649
|
+
"span-6": "span 6 / span 6",
|
|
650
|
+
"span-7": "span 7 / span 7",
|
|
651
|
+
"span-8": "span 8 / span 8",
|
|
652
|
+
"span-9": "span 9 / span 9",
|
|
653
|
+
"span-10": "span 10 / span 10",
|
|
654
|
+
"span-11": "span 11 / span 11",
|
|
655
|
+
"span-12": "span 12 / span 12",
|
|
656
|
+
"span-full": "1 / -1"
|
|
657
|
+
},
|
|
658
|
+
gridColumnEnd: {
|
|
659
|
+
auto: "auto",
|
|
660
|
+
1: "1",
|
|
661
|
+
2: "2",
|
|
662
|
+
3: "3",
|
|
663
|
+
4: "4",
|
|
664
|
+
5: "5",
|
|
665
|
+
6: "6",
|
|
666
|
+
7: "7",
|
|
667
|
+
8: "8",
|
|
668
|
+
9: "9",
|
|
669
|
+
10: "10",
|
|
670
|
+
11: "11",
|
|
671
|
+
12: "12",
|
|
672
|
+
13: "13"
|
|
673
|
+
},
|
|
674
|
+
gridColumnStart: {
|
|
675
|
+
auto: "auto",
|
|
676
|
+
1: "1",
|
|
677
|
+
2: "2",
|
|
678
|
+
3: "3",
|
|
679
|
+
4: "4",
|
|
680
|
+
5: "5",
|
|
681
|
+
6: "6",
|
|
682
|
+
7: "7",
|
|
683
|
+
8: "8",
|
|
684
|
+
9: "9",
|
|
685
|
+
10: "10",
|
|
686
|
+
11: "11",
|
|
687
|
+
12: "12",
|
|
688
|
+
13: "13"
|
|
689
|
+
},
|
|
690
|
+
gridRow: {
|
|
691
|
+
auto: "auto",
|
|
692
|
+
"span-1": "span 1 / span 1",
|
|
693
|
+
"span-2": "span 2 / span 2",
|
|
694
|
+
"span-3": "span 3 / span 3",
|
|
695
|
+
"span-4": "span 4 / span 4",
|
|
696
|
+
"span-5": "span 5 / span 5",
|
|
697
|
+
"span-6": "span 6 / span 6",
|
|
698
|
+
"span-full": "1 / -1"
|
|
699
|
+
},
|
|
700
|
+
gridRowEnd: {
|
|
701
|
+
auto: "auto",
|
|
702
|
+
1: "1",
|
|
703
|
+
2: "2",
|
|
704
|
+
3: "3",
|
|
705
|
+
4: "4",
|
|
706
|
+
5: "5",
|
|
707
|
+
6: "6",
|
|
708
|
+
7: "7"
|
|
709
|
+
},
|
|
710
|
+
gridRowStart: {
|
|
711
|
+
auto: "auto",
|
|
712
|
+
1: "1",
|
|
713
|
+
2: "2",
|
|
714
|
+
3: "3",
|
|
715
|
+
4: "4",
|
|
716
|
+
5: "5",
|
|
717
|
+
6: "6",
|
|
718
|
+
7: "7"
|
|
719
|
+
},
|
|
720
|
+
gridTemplateColumns: {
|
|
721
|
+
none: "none",
|
|
722
|
+
1: "repeat(1, minmax(0, 1fr))",
|
|
723
|
+
2: "repeat(2, minmax(0, 1fr))",
|
|
724
|
+
3: "repeat(3, minmax(0, 1fr))",
|
|
725
|
+
4: "repeat(4, minmax(0, 1fr))",
|
|
726
|
+
5: "repeat(5, minmax(0, 1fr))",
|
|
727
|
+
6: "repeat(6, minmax(0, 1fr))",
|
|
728
|
+
7: "repeat(7, minmax(0, 1fr))",
|
|
729
|
+
8: "repeat(8, minmax(0, 1fr))",
|
|
730
|
+
9: "repeat(9, minmax(0, 1fr))",
|
|
731
|
+
10: "repeat(10, minmax(0, 1fr))",
|
|
732
|
+
11: "repeat(11, minmax(0, 1fr))",
|
|
733
|
+
12: "repeat(12, minmax(0, 1fr))"
|
|
734
|
+
},
|
|
735
|
+
gridTemplateRows: {
|
|
736
|
+
none: "none",
|
|
737
|
+
1: "repeat(1, minmax(0, 1fr))",
|
|
738
|
+
2: "repeat(2, minmax(0, 1fr))",
|
|
739
|
+
3: "repeat(3, minmax(0, 1fr))",
|
|
740
|
+
4: "repeat(4, minmax(0, 1fr))",
|
|
741
|
+
5: "repeat(5, minmax(0, 1fr))",
|
|
742
|
+
6: "repeat(6, minmax(0, 1fr))"
|
|
743
|
+
},
|
|
744
|
+
height: ({ theme: e }) => ({
|
|
745
|
+
auto: "auto",
|
|
746
|
+
...e("spacing"),
|
|
747
|
+
"1/2": "50%",
|
|
748
|
+
"1/3": "33.333333%",
|
|
749
|
+
"2/3": "66.666667%",
|
|
750
|
+
"1/4": "25%",
|
|
751
|
+
"2/4": "50%",
|
|
752
|
+
"3/4": "75%",
|
|
753
|
+
"1/5": "20%",
|
|
754
|
+
"2/5": "40%",
|
|
755
|
+
"3/5": "60%",
|
|
756
|
+
"4/5": "80%",
|
|
757
|
+
"1/6": "16.666667%",
|
|
758
|
+
"2/6": "33.333333%",
|
|
759
|
+
"3/6": "50%",
|
|
760
|
+
"4/6": "66.666667%",
|
|
761
|
+
"5/6": "83.333333%",
|
|
762
|
+
full: "100%",
|
|
763
|
+
screen: "100vh",
|
|
764
|
+
min: "min-content",
|
|
765
|
+
max: "max-content",
|
|
766
|
+
fit: "fit-content"
|
|
767
|
+
}),
|
|
768
|
+
hueRotate: {
|
|
769
|
+
0: "0deg",
|
|
770
|
+
15: "15deg",
|
|
771
|
+
30: "30deg",
|
|
772
|
+
60: "60deg",
|
|
773
|
+
90: "90deg",
|
|
774
|
+
180: "180deg"
|
|
775
|
+
},
|
|
776
|
+
inset: ({ theme: e }) => ({
|
|
777
|
+
auto: "auto",
|
|
778
|
+
...e("spacing"),
|
|
779
|
+
"1/2": "50%",
|
|
780
|
+
"1/3": "33.333333%",
|
|
781
|
+
"2/3": "66.666667%",
|
|
782
|
+
"1/4": "25%",
|
|
783
|
+
"2/4": "50%",
|
|
784
|
+
"3/4": "75%",
|
|
785
|
+
full: "100%"
|
|
786
|
+
}),
|
|
787
|
+
invert: {
|
|
788
|
+
0: "0",
|
|
789
|
+
DEFAULT: "100%"
|
|
790
|
+
},
|
|
791
|
+
keyframes: {
|
|
792
|
+
spin: {
|
|
793
|
+
to: {
|
|
794
|
+
transform: "rotate(360deg)"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
ping: {
|
|
798
|
+
"75%, 100%": {
|
|
799
|
+
transform: "scale(2)",
|
|
800
|
+
opacity: "0"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
pulse: {
|
|
804
|
+
"50%": {
|
|
805
|
+
opacity: ".5"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
bounce: {
|
|
809
|
+
"0%, 100%": {
|
|
810
|
+
transform: "translateY(-25%)",
|
|
811
|
+
animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
|
|
812
|
+
},
|
|
813
|
+
"50%": {
|
|
814
|
+
transform: "none",
|
|
815
|
+
animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
letterSpacing: {
|
|
820
|
+
tighter: "-0.05em",
|
|
821
|
+
tight: "-0.025em",
|
|
822
|
+
normal: "0em",
|
|
823
|
+
wide: "0.025em",
|
|
824
|
+
wider: "0.05em",
|
|
825
|
+
widest: "0.1em"
|
|
826
|
+
},
|
|
827
|
+
lineHeight: {
|
|
828
|
+
none: "1",
|
|
829
|
+
tight: "1.25",
|
|
830
|
+
snug: "1.375",
|
|
831
|
+
normal: "1.5",
|
|
832
|
+
relaxed: "1.625",
|
|
833
|
+
loose: "2",
|
|
834
|
+
3: ".75rem",
|
|
835
|
+
4: "1rem",
|
|
836
|
+
5: "1.25rem",
|
|
837
|
+
6: "1.5rem",
|
|
838
|
+
7: "1.75rem",
|
|
839
|
+
8: "2rem",
|
|
840
|
+
9: "2.25rem",
|
|
841
|
+
10: "2.5rem"
|
|
842
|
+
},
|
|
843
|
+
listStyleType: {
|
|
844
|
+
none: "none",
|
|
845
|
+
disc: "disc",
|
|
846
|
+
decimal: "decimal"
|
|
847
|
+
},
|
|
848
|
+
listStyleImage: {
|
|
849
|
+
none: "none"
|
|
850
|
+
},
|
|
851
|
+
margin: ({ theme: e }) => ({
|
|
852
|
+
auto: "auto",
|
|
853
|
+
...e("spacing")
|
|
854
|
+
}),
|
|
855
|
+
lineClamp: {
|
|
856
|
+
1: "1",
|
|
857
|
+
2: "2",
|
|
858
|
+
3: "3",
|
|
859
|
+
4: "4",
|
|
860
|
+
5: "5",
|
|
861
|
+
6: "6"
|
|
862
|
+
},
|
|
863
|
+
maxHeight: ({ theme: e }) => ({
|
|
864
|
+
...e("spacing"),
|
|
865
|
+
none: "none",
|
|
866
|
+
full: "100%",
|
|
867
|
+
screen: "100vh",
|
|
868
|
+
min: "min-content",
|
|
869
|
+
max: "max-content",
|
|
870
|
+
fit: "fit-content"
|
|
871
|
+
}),
|
|
872
|
+
maxWidth: ({ theme: e, breakpoints: n }) => ({
|
|
873
|
+
none: "none",
|
|
874
|
+
0: "0rem",
|
|
875
|
+
xs: "20rem",
|
|
876
|
+
sm: "24rem",
|
|
877
|
+
md: "28rem",
|
|
878
|
+
lg: "32rem",
|
|
879
|
+
xl: "36rem",
|
|
880
|
+
"2xl": "42rem",
|
|
881
|
+
"3xl": "48rem",
|
|
882
|
+
"4xl": "56rem",
|
|
883
|
+
"5xl": "64rem",
|
|
884
|
+
"6xl": "72rem",
|
|
885
|
+
"7xl": "80rem",
|
|
886
|
+
full: "100%",
|
|
887
|
+
min: "min-content",
|
|
888
|
+
max: "max-content",
|
|
889
|
+
fit: "fit-content",
|
|
890
|
+
prose: "65ch",
|
|
891
|
+
...n(e("screens"))
|
|
892
|
+
}),
|
|
893
|
+
minHeight: {
|
|
894
|
+
0: "0px",
|
|
895
|
+
full: "100%",
|
|
896
|
+
screen: "100vh",
|
|
897
|
+
min: "min-content",
|
|
898
|
+
max: "max-content",
|
|
899
|
+
fit: "fit-content"
|
|
900
|
+
},
|
|
901
|
+
minWidth: {
|
|
902
|
+
0: "0px",
|
|
903
|
+
full: "100%",
|
|
904
|
+
min: "min-content",
|
|
905
|
+
max: "max-content",
|
|
906
|
+
fit: "fit-content"
|
|
907
|
+
},
|
|
908
|
+
objectPosition: {
|
|
909
|
+
bottom: "bottom",
|
|
910
|
+
center: "center",
|
|
911
|
+
left: "left",
|
|
912
|
+
"left-bottom": "left bottom",
|
|
913
|
+
"left-top": "left top",
|
|
914
|
+
right: "right",
|
|
915
|
+
"right-bottom": "right bottom",
|
|
916
|
+
"right-top": "right top",
|
|
917
|
+
top: "top"
|
|
918
|
+
},
|
|
919
|
+
opacity: {
|
|
920
|
+
0: "0",
|
|
921
|
+
5: "0.05",
|
|
922
|
+
10: "0.1",
|
|
923
|
+
20: "0.2",
|
|
924
|
+
25: "0.25",
|
|
925
|
+
30: "0.3",
|
|
926
|
+
40: "0.4",
|
|
927
|
+
50: "0.5",
|
|
928
|
+
60: "0.6",
|
|
929
|
+
70: "0.7",
|
|
930
|
+
75: "0.75",
|
|
931
|
+
80: "0.8",
|
|
932
|
+
90: "0.9",
|
|
933
|
+
95: "0.95",
|
|
934
|
+
100: "1"
|
|
935
|
+
},
|
|
936
|
+
order: {
|
|
937
|
+
first: "-9999",
|
|
938
|
+
last: "9999",
|
|
939
|
+
none: "0",
|
|
940
|
+
1: "1",
|
|
941
|
+
2: "2",
|
|
942
|
+
3: "3",
|
|
943
|
+
4: "4",
|
|
944
|
+
5: "5",
|
|
945
|
+
6: "6",
|
|
946
|
+
7: "7",
|
|
947
|
+
8: "8",
|
|
948
|
+
9: "9",
|
|
949
|
+
10: "10",
|
|
950
|
+
11: "11",
|
|
951
|
+
12: "12"
|
|
952
|
+
},
|
|
953
|
+
outlineColor: ({ theme: e }) => e("colors"),
|
|
954
|
+
outlineOffset: {
|
|
955
|
+
0: "0px",
|
|
956
|
+
1: "1px",
|
|
957
|
+
2: "2px",
|
|
958
|
+
4: "4px",
|
|
959
|
+
8: "8px"
|
|
960
|
+
},
|
|
961
|
+
outlineWidth: {
|
|
962
|
+
0: "0px",
|
|
963
|
+
1: "1px",
|
|
964
|
+
2: "2px",
|
|
965
|
+
4: "4px",
|
|
966
|
+
8: "8px"
|
|
967
|
+
},
|
|
968
|
+
padding: ({ theme: e }) => e("spacing"),
|
|
969
|
+
placeholderColor: ({ theme: e }) => e("colors"),
|
|
970
|
+
placeholderOpacity: ({ theme: e }) => e("opacity"),
|
|
971
|
+
ringColor: ({ theme: e }) => ({
|
|
972
|
+
DEFAULT: e("colors.blue.500", "#3b82f6"),
|
|
973
|
+
...e("colors")
|
|
974
|
+
}),
|
|
975
|
+
ringOffsetColor: ({ theme: e }) => e("colors"),
|
|
976
|
+
ringOffsetWidth: {
|
|
977
|
+
0: "0px",
|
|
978
|
+
1: "1px",
|
|
979
|
+
2: "2px",
|
|
980
|
+
4: "4px",
|
|
981
|
+
8: "8px"
|
|
982
|
+
},
|
|
983
|
+
ringOpacity: ({ theme: e }) => ({
|
|
984
|
+
DEFAULT: "0.5",
|
|
985
|
+
...e("opacity")
|
|
986
|
+
}),
|
|
987
|
+
ringWidth: {
|
|
988
|
+
DEFAULT: "3px",
|
|
989
|
+
0: "0px",
|
|
990
|
+
1: "1px",
|
|
991
|
+
2: "2px",
|
|
992
|
+
4: "4px",
|
|
993
|
+
8: "8px"
|
|
994
|
+
},
|
|
995
|
+
rotate: {
|
|
996
|
+
0: "0deg",
|
|
997
|
+
1: "1deg",
|
|
998
|
+
2: "2deg",
|
|
999
|
+
3: "3deg",
|
|
1000
|
+
6: "6deg",
|
|
1001
|
+
12: "12deg",
|
|
1002
|
+
45: "45deg",
|
|
1003
|
+
90: "90deg",
|
|
1004
|
+
180: "180deg"
|
|
1005
|
+
},
|
|
1006
|
+
saturate: {
|
|
1007
|
+
0: "0",
|
|
1008
|
+
50: ".5",
|
|
1009
|
+
100: "1",
|
|
1010
|
+
150: "1.5",
|
|
1011
|
+
200: "2"
|
|
1012
|
+
},
|
|
1013
|
+
scale: {
|
|
1014
|
+
0: "0",
|
|
1015
|
+
50: ".5",
|
|
1016
|
+
75: ".75",
|
|
1017
|
+
90: ".9",
|
|
1018
|
+
95: ".95",
|
|
1019
|
+
100: "1",
|
|
1020
|
+
105: "1.05",
|
|
1021
|
+
110: "1.1",
|
|
1022
|
+
125: "1.25",
|
|
1023
|
+
150: "1.5"
|
|
1024
|
+
},
|
|
1025
|
+
screens: {
|
|
1026
|
+
sm: "640px",
|
|
1027
|
+
md: "768px",
|
|
1028
|
+
lg: "1024px",
|
|
1029
|
+
xl: "1280px",
|
|
1030
|
+
"2xl": "1536px"
|
|
1031
|
+
},
|
|
1032
|
+
scrollMargin: ({ theme: e }) => ({
|
|
1033
|
+
...e("spacing")
|
|
1034
|
+
}),
|
|
1035
|
+
scrollPadding: ({ theme: e }) => e("spacing"),
|
|
1036
|
+
sepia: {
|
|
1037
|
+
0: "0",
|
|
1038
|
+
DEFAULT: "100%"
|
|
1039
|
+
},
|
|
1040
|
+
skew: {
|
|
1041
|
+
0: "0deg",
|
|
1042
|
+
1: "1deg",
|
|
1043
|
+
2: "2deg",
|
|
1044
|
+
3: "3deg",
|
|
1045
|
+
6: "6deg",
|
|
1046
|
+
12: "12deg"
|
|
1047
|
+
},
|
|
1048
|
+
space: ({ theme: e }) => ({
|
|
1049
|
+
...e("spacing")
|
|
1050
|
+
}),
|
|
1051
|
+
spacing: {
|
|
1052
|
+
px: "1px",
|
|
1053
|
+
0: "0px",
|
|
1054
|
+
0.5: "0.125rem",
|
|
1055
|
+
1: "0.25rem",
|
|
1056
|
+
1.5: "0.375rem",
|
|
1057
|
+
2: "0.5rem",
|
|
1058
|
+
2.5: "0.625rem",
|
|
1059
|
+
3: "0.75rem",
|
|
1060
|
+
3.5: "0.875rem",
|
|
1061
|
+
4: "1rem",
|
|
1062
|
+
5: "1.25rem",
|
|
1063
|
+
6: "1.5rem",
|
|
1064
|
+
7: "1.75rem",
|
|
1065
|
+
8: "2rem",
|
|
1066
|
+
9: "2.25rem",
|
|
1067
|
+
10: "2.5rem",
|
|
1068
|
+
11: "2.75rem",
|
|
1069
|
+
12: "3rem",
|
|
1070
|
+
14: "3.5rem",
|
|
1071
|
+
16: "4rem",
|
|
1072
|
+
20: "5rem",
|
|
1073
|
+
24: "6rem",
|
|
1074
|
+
28: "7rem",
|
|
1075
|
+
32: "8rem",
|
|
1076
|
+
36: "9rem",
|
|
1077
|
+
40: "10rem",
|
|
1078
|
+
44: "11rem",
|
|
1079
|
+
48: "12rem",
|
|
1080
|
+
52: "13rem",
|
|
1081
|
+
56: "14rem",
|
|
1082
|
+
60: "15rem",
|
|
1083
|
+
64: "16rem",
|
|
1084
|
+
72: "18rem",
|
|
1085
|
+
80: "20rem",
|
|
1086
|
+
96: "24rem"
|
|
1087
|
+
},
|
|
1088
|
+
stroke: ({ theme: e }) => ({
|
|
1089
|
+
none: "none",
|
|
1090
|
+
...e("colors")
|
|
1091
|
+
}),
|
|
1092
|
+
strokeWidth: {
|
|
1093
|
+
0: "0",
|
|
1094
|
+
1: "1",
|
|
1095
|
+
2: "2"
|
|
1096
|
+
},
|
|
1097
|
+
supports: {},
|
|
1098
|
+
data: {},
|
|
1099
|
+
textColor: ({ theme: e }) => e("colors"),
|
|
1100
|
+
textDecorationColor: ({ theme: e }) => e("colors"),
|
|
1101
|
+
textDecorationThickness: {
|
|
1102
|
+
auto: "auto",
|
|
1103
|
+
"from-font": "from-font",
|
|
1104
|
+
0: "0px",
|
|
1105
|
+
1: "1px",
|
|
1106
|
+
2: "2px",
|
|
1107
|
+
4: "4px",
|
|
1108
|
+
8: "8px"
|
|
1109
|
+
},
|
|
1110
|
+
textIndent: ({ theme: e }) => ({
|
|
1111
|
+
...e("spacing")
|
|
1112
|
+
}),
|
|
1113
|
+
textOpacity: ({ theme: e }) => e("opacity"),
|
|
1114
|
+
textUnderlineOffset: {
|
|
1115
|
+
auto: "auto",
|
|
1116
|
+
0: "0px",
|
|
1117
|
+
1: "1px",
|
|
1118
|
+
2: "2px",
|
|
1119
|
+
4: "4px",
|
|
1120
|
+
8: "8px"
|
|
1121
|
+
},
|
|
1122
|
+
transformOrigin: {
|
|
1123
|
+
center: "center",
|
|
1124
|
+
top: "top",
|
|
1125
|
+
"top-right": "top right",
|
|
1126
|
+
right: "right",
|
|
1127
|
+
"bottom-right": "bottom right",
|
|
1128
|
+
bottom: "bottom",
|
|
1129
|
+
"bottom-left": "bottom left",
|
|
1130
|
+
left: "left",
|
|
1131
|
+
"top-left": "top left"
|
|
1132
|
+
},
|
|
1133
|
+
transitionDelay: {
|
|
1134
|
+
0: "0s",
|
|
1135
|
+
75: "75ms",
|
|
1136
|
+
100: "100ms",
|
|
1137
|
+
150: "150ms",
|
|
1138
|
+
200: "200ms",
|
|
1139
|
+
300: "300ms",
|
|
1140
|
+
500: "500ms",
|
|
1141
|
+
700: "700ms",
|
|
1142
|
+
1e3: "1000ms"
|
|
1143
|
+
},
|
|
1144
|
+
transitionDuration: {
|
|
1145
|
+
DEFAULT: "150ms",
|
|
1146
|
+
0: "0s",
|
|
1147
|
+
75: "75ms",
|
|
1148
|
+
100: "100ms",
|
|
1149
|
+
150: "150ms",
|
|
1150
|
+
200: "200ms",
|
|
1151
|
+
300: "300ms",
|
|
1152
|
+
500: "500ms",
|
|
1153
|
+
700: "700ms",
|
|
1154
|
+
1e3: "1000ms"
|
|
1155
|
+
},
|
|
1156
|
+
transitionProperty: {
|
|
1157
|
+
none: "none",
|
|
1158
|
+
all: "all",
|
|
1159
|
+
DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
1160
|
+
colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
1161
|
+
opacity: "opacity",
|
|
1162
|
+
shadow: "box-shadow",
|
|
1163
|
+
transform: "transform"
|
|
1164
|
+
},
|
|
1165
|
+
transitionTimingFunction: {
|
|
1166
|
+
DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1167
|
+
linear: "linear",
|
|
1168
|
+
in: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1169
|
+
out: "cubic-bezier(0, 0, 0.2, 1)",
|
|
1170
|
+
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
1171
|
+
},
|
|
1172
|
+
translate: ({ theme: e }) => ({
|
|
1173
|
+
...e("spacing"),
|
|
1174
|
+
"1/2": "50%",
|
|
1175
|
+
"1/3": "33.333333%",
|
|
1176
|
+
"2/3": "66.666667%",
|
|
1177
|
+
"1/4": "25%",
|
|
1178
|
+
"2/4": "50%",
|
|
1179
|
+
"3/4": "75%",
|
|
1180
|
+
full: "100%"
|
|
1181
|
+
}),
|
|
1182
|
+
width: ({ theme: e }) => ({
|
|
1183
|
+
auto: "auto",
|
|
1184
|
+
...e("spacing"),
|
|
1185
|
+
"1/2": "50%",
|
|
1186
|
+
"1/3": "33.333333%",
|
|
1187
|
+
"2/3": "66.666667%",
|
|
1188
|
+
"1/4": "25%",
|
|
1189
|
+
"2/4": "50%",
|
|
1190
|
+
"3/4": "75%",
|
|
1191
|
+
"1/5": "20%",
|
|
1192
|
+
"2/5": "40%",
|
|
1193
|
+
"3/5": "60%",
|
|
1194
|
+
"4/5": "80%",
|
|
1195
|
+
"1/6": "16.666667%",
|
|
1196
|
+
"2/6": "33.333333%",
|
|
1197
|
+
"3/6": "50%",
|
|
1198
|
+
"4/6": "66.666667%",
|
|
1199
|
+
"5/6": "83.333333%",
|
|
1200
|
+
"1/12": "8.333333%",
|
|
1201
|
+
"2/12": "16.666667%",
|
|
1202
|
+
"3/12": "25%",
|
|
1203
|
+
"4/12": "33.333333%",
|
|
1204
|
+
"5/12": "41.666667%",
|
|
1205
|
+
"6/12": "50%",
|
|
1206
|
+
"7/12": "58.333333%",
|
|
1207
|
+
"8/12": "66.666667%",
|
|
1208
|
+
"9/12": "75%",
|
|
1209
|
+
"10/12": "83.333333%",
|
|
1210
|
+
"11/12": "91.666667%",
|
|
1211
|
+
full: "100%",
|
|
1212
|
+
screen: "100vw",
|
|
1213
|
+
min: "min-content",
|
|
1214
|
+
max: "max-content",
|
|
1215
|
+
fit: "fit-content"
|
|
1216
|
+
}),
|
|
1217
|
+
willChange: {
|
|
1218
|
+
auto: "auto",
|
|
1219
|
+
scroll: "scroll-position",
|
|
1220
|
+
contents: "contents",
|
|
1221
|
+
transform: "transform"
|
|
1222
|
+
},
|
|
1223
|
+
zIndex: {
|
|
1224
|
+
auto: "auto",
|
|
1225
|
+
0: "0",
|
|
1226
|
+
10: "10",
|
|
1227
|
+
20: "20",
|
|
1228
|
+
30: "30",
|
|
1229
|
+
40: "40",
|
|
1230
|
+
50: "50"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
plugins: []
|
|
1234
|
+
};
|
|
1235
|
+
(function(e) {
|
|
1236
|
+
"use strict";
|
|
1237
|
+
Object.defineProperty(e, "__esModule", {
|
|
1238
|
+
value: !0
|
|
1239
|
+
}), Object.defineProperty(e, "default", {
|
|
1240
|
+
enumerable: !0,
|
|
1241
|
+
get: function() {
|
|
1242
|
+
return t;
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
const n = S, r = /* @__PURE__ */ i(X);
|
|
1246
|
+
function i(a) {
|
|
1247
|
+
return a && a.__esModule ? a : {
|
|
1248
|
+
default: a
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
const t = (0, n.cloneDeep)(r.default.theme);
|
|
1252
|
+
})(k);
|
|
1253
|
+
let u = k;
|
|
1254
|
+
var Y = (u.__esModule ? u : { default: u }).default;
|
|
1255
|
+
const f = /* @__PURE__ */ R(Y);
|
|
1256
|
+
async function q(e, n, r = [], i = "c-") {
|
|
1257
|
+
const t = c(e, "primaryColor", "#000"), a = c(e, "secondaryColor", "#ccc"), o = c(e, "headingFont", "Inter"), g = c(e, "bodyFont", "Inter"), x = c(e, "roundedCorners", "0"), l = L({
|
|
1258
|
+
colors: [t, a],
|
|
1259
|
+
names: ["primary", "secondary"]
|
|
1260
|
+
});
|
|
1261
|
+
return w(l, "primary.DEFAULT", t), w(l, "secondary.DEFAULT", a), `${await U({
|
|
1262
|
+
tailwindConfig: {
|
|
1263
|
+
prefix: i,
|
|
1264
|
+
darkMode: "class",
|
|
1265
|
+
safelist: r,
|
|
1266
|
+
theme: {
|
|
1267
|
+
fontFamily: {
|
|
1268
|
+
heading: [o, ...f.fontFamily.sans],
|
|
1269
|
+
body: [g, ...f.fontFamily.sans]
|
|
1270
|
+
},
|
|
1271
|
+
extend: {
|
|
1272
|
+
borderRadius: {
|
|
1273
|
+
global: `${x || "0"}px`
|
|
1274
|
+
},
|
|
1275
|
+
colors: l
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
plugins: [$, I, P, W],
|
|
1279
|
+
corePlugins: { preflight: !1 }
|
|
1280
|
+
}
|
|
1281
|
+
}).generateStylesFromContent(
|
|
1282
|
+
` @tailwind components;
|
|
1283
|
+
@tailwind utilities;`,
|
|
1284
|
+
n
|
|
1285
|
+
)} .${i}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${o}",${f.fontFamily.sans.join(
|
|
1286
|
+
", "
|
|
1287
|
+
)};}`;
|
|
1288
|
+
}
|
|
1289
|
+
const G = (e, n) => e.map((r) => {
|
|
1290
|
+
const i = {};
|
|
1291
|
+
return Object.keys(r).forEach((t) => {
|
|
1292
|
+
O(r[t], H) && (i[t] = A(r[t], n));
|
|
1293
|
+
}), i;
|
|
1294
|
+
}), z = (e, n, r = "c-") => {
|
|
1295
|
+
const i = D(n, r);
|
|
1296
|
+
return q(
|
|
1297
|
+
n,
|
|
1298
|
+
[v(JSON.stringify(G(e, r)), /#styles:/g, "")],
|
|
1299
|
+
i.split(" ").concat(`${r}inline-block`, `${r}w-full`, `${r}h-full`)
|
|
1300
|
+
);
|
|
1301
|
+
}, le = async (e, n = "c-") => {
|
|
1302
|
+
const r = e.page.blocks;
|
|
1303
|
+
return await z(r, e.project.brandingOptions, n);
|
|
1304
|
+
}, me = async (e, n, r = "c-") => await z(e, n, r);
|
|
395
1305
|
export {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
A as cn,
|
|
1306
|
+
A as addPrefixToClasses,
|
|
1307
|
+
de as cn,
|
|
399
1308
|
pe as convertArbitraryToTailwindClass,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
1309
|
+
ge as generateUUID,
|
|
1310
|
+
be as getBlocksFromHTML,
|
|
1311
|
+
z as getBlocksTailwindCSS,
|
|
1312
|
+
D as getBrandingClasses,
|
|
1313
|
+
ue as getBreakpointValue,
|
|
1314
|
+
me as getStylesForBlocks,
|
|
1315
|
+
le as getStylesForPageData,
|
|
1316
|
+
q as getTailwindCSS
|
|
407
1317
|
};
|