@chaibuilder/sdk 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/{AddBlocks-H7BZYHUC.js → AddBlocks-eoo1CzaK.js} +114 -111
  2. package/dist/AddBlocks-jU0NwP_s.cjs +3 -0
  3. package/dist/BrandingOptions-WSCFnWAf.cjs +1 -0
  4. package/dist/{BrandingOptions-PAgY-kvj.js → BrandingOptions-_Og7VUHA.js} +57 -41
  5. package/dist/{CanvasArea-zn2ox-5h.js → CanvasArea-cky_d2Lu.js} +517 -519
  6. package/dist/CanvasArea-hT9uHhkz.cjs +46 -0
  7. package/dist/Class-RZuPYbUS.cjs +1 -0
  8. package/dist/{Class-l7qYbuoN.js → Class-nQk08vqd.js} +204 -124
  9. package/dist/{CurrentPage-6Jp4xAWK.js → CurrentPage--OlBwyNE.js} +58 -40
  10. package/dist/CurrentPage-x6Ez11gP.cjs +1 -0
  11. package/dist/Layers-gEA0qWYP.cjs +1 -0
  12. package/dist/{Layers-WkZ48AUm.js → Layers-uzA3QA-4.js} +158 -141
  13. package/dist/MarkAsGlobalBlock-lYL8cO9x.cjs +1 -0
  14. package/dist/MarkAsGlobalBlock-ySc-D4SB.js +84 -0
  15. package/dist/PagesPanel-5t0bV9T2.cjs +1 -0
  16. package/dist/PagesPanel-tH6c9Mnv.js +70 -0
  17. package/dist/ProjectPanel-NdrR6a8t.cjs +1 -0
  18. package/dist/ProjectPanel-Q2-15-In.js +91 -0
  19. package/dist/Settings-DBiwm1hY.cjs +1 -0
  20. package/dist/{Settings-fH8fZKpm.js → Settings-LOqpvQ_1.js} +411 -408
  21. package/dist/SidePanels-8JWYXGqN.cjs +1 -0
  22. package/dist/{SidePanels-w8ZHKJaR.js → SidePanels-F7ccs2Xf.js} +106 -88
  23. package/dist/{Topbar-hm1D_5sb.js → Topbar-lX9OMPwj.js} +47 -45
  24. package/dist/Topbar-qi5ab8rR.cjs +1 -0
  25. package/dist/UnsplashImages-a2r7b3kB.cjs +1 -0
  26. package/dist/{UnsplashImages-gPcBLjgB.js → UnsplashImages-u_QTABzi.js} +56 -44
  27. package/dist/{UploadImages-_ZyUU66E.js → UploadImages-gV5xDHIu.js} +55 -34
  28. package/dist/UploadImages-jLQgLujd.cjs +1 -0
  29. package/dist/add-page-modal-U5ramelz.js +110 -0
  30. package/dist/add-page-modal-tIt3N8jH.cjs +1 -0
  31. package/dist/confirm-alert-ZQ-sxX0X.js +58 -0
  32. package/dist/confirm-alert-z74-fGOT.cjs +1 -0
  33. package/dist/core.cjs +1 -1
  34. package/dist/core.js +99 -124
  35. package/dist/delete-page-modal-5XuSfQT0.cjs +1 -0
  36. package/dist/delete-page-modal-_E87bVUZ.js +89 -0
  37. package/dist/form-Osm1AmO5.cjs +1 -0
  38. package/dist/{form-dVpOAyRl.js → form-zZJyZuNH.js} +12 -12
  39. package/dist/index-2EHcmZqL.js +2947 -0
  40. package/dist/index-RVm8Txnj.js +1149 -0
  41. package/dist/index-_jFEo7h5.cjs +206 -0
  42. package/dist/index-c8zW_D2V.cjs +1 -0
  43. package/dist/index-cU5eyVRU.js +40872 -0
  44. package/dist/index-fwo4wa7u.cjs +1 -0
  45. package/dist/index-gmZcUXyn.js +25 -0
  46. package/dist/index-m2muA80V.cjs +9 -0
  47. package/dist/{jsx-runtime-JYMCiFoE.cjs → jsx-runtime-WKRPbKtm.cjs} +7 -7
  48. package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-qAwJ85SY.js} +109 -106
  49. package/dist/lib.cjs +2 -1
  50. package/dist/lib.js +1333 -71
  51. package/dist/page-viewer-BSc-5M4B.cjs +1 -0
  52. package/dist/{page-viewer-Y4YiaZ_m.js → page-viewer-nLqIs_9w.js} +62 -44
  53. package/dist/project-general-setting-14MA_cX5.cjs +1 -0
  54. package/dist/{project-general-setting-U4S_KlhU.js → project-general-setting-kXh5myAr.js} +46 -36
  55. package/dist/project-seo-setting-POGPEJZ8.cjs +1 -0
  56. package/dist/project-seo-setting-nT1qo1Bb.js +89 -0
  57. package/dist/render.cjs +1 -1
  58. package/dist/render.js +23 -19
  59. package/dist/server.cjs +1 -1
  60. package/dist/server.js +1 -1
  61. package/dist/single-page-detail-EgQd9TSA.cjs +1 -0
  62. package/dist/{single-page-detail-pAxCy_Pe.js → single-page-detail-fV-A6vJR.js} +90 -80
  63. package/dist/studio.cjs +1 -1
  64. package/dist/studio.js +45 -25
  65. package/dist/ui.cjs +1 -1
  66. package/dist/ui.js +156 -357
  67. package/package.json +1 -1
  68. package/dist/AddBlocks-7ACJv8LW.cjs +0 -3
  69. package/dist/BrandingOptions-5j-XszLM.cjs +0 -1
  70. package/dist/CanvasArea-Dnm-yeus.cjs +0 -46
  71. package/dist/ChaiBuilderEditor-BoE-sArB.cjs +0 -163
  72. package/dist/ChaiBuilderEditor-hEuUONQ3.js +0 -27094
  73. package/dist/Class-_uCzl5v1.cjs +0 -1
  74. package/dist/CurrentPage-YMpqOqx7.cjs +0 -1
  75. package/dist/ImagesPanel-6us7hiLN.cjs +0 -1
  76. package/dist/ImagesPanel-oaHOD-Ex.js +0 -27
  77. package/dist/Layers-EzOZdWvd.cjs +0 -1
  78. package/dist/MODIFIERS-DsEzQ3aH.js +0 -73
  79. package/dist/MODIFIERS-Fx6WAZcw.cjs +0 -1
  80. package/dist/MarkAsGlobalBlock-0HubcRkY.js +0 -77
  81. package/dist/MarkAsGlobalBlock-HmeIyLCP.cjs +0 -1
  82. package/dist/PagesPanel-6JuwBLFQ.js +0 -50
  83. package/dist/PagesPanel-zJq8p1ja.cjs +0 -1
  84. package/dist/ProjectPanel-Zml2F8b9.cjs +0 -1
  85. package/dist/ProjectPanel-cu2QSDW9.js +0 -73
  86. package/dist/Settings-lc9PfnmG.cjs +0 -1
  87. package/dist/SidePanels-VH72zFE2.cjs +0 -1
  88. package/dist/Topbar-vQPo9xSY.cjs +0 -1
  89. package/dist/UnsplashImages-BoBBSi1a.cjs +0 -1
  90. package/dist/UploadImages-T6kW0s3G.cjs +0 -1
  91. package/dist/accordion-oPUeqPCZ.js +0 -42
  92. package/dist/accordion-ynvFtV_p.cjs +0 -1
  93. package/dist/add-page-modal--qZSwJuB.cjs +0 -1
  94. package/dist/add-page-modal-bj7qbZuK.js +0 -99
  95. package/dist/alert-dialog-GNfnpqFB.js +0 -64
  96. package/dist/alert-dialog-Mv0-wAvS.cjs +0 -1
  97. package/dist/command-ThdTuUxt.cjs +0 -1
  98. package/dist/command-VHca6CcN.js +0 -97
  99. package/dist/confirm-alert-8EHe0OOd.cjs +0 -1
  100. package/dist/confirm-alert-b0e_BLhF.js +0 -36
  101. package/dist/context-menu-8dC9uGXj.js +0 -122
  102. package/dist/context-menu-IgLbIuth.cjs +0 -1
  103. package/dist/controls-Ni5kEzLz.js +0 -103
  104. package/dist/controls-W97-POR_.cjs +0 -1
  105. package/dist/controls-enQY7NI8.js +0 -118
  106. package/dist/controls-xUKa23ic.cjs +0 -1
  107. package/dist/delete-page-modal-2LuDLEiP.cjs +0 -1
  108. package/dist/delete-page-modal-cnrR8tWH.js +0 -69
  109. package/dist/dialog-S_QbL1iq.cjs +0 -1
  110. package/dist/dialog-jrw9DF1f.js +0 -65
  111. package/dist/dropdown-menu-S03K_fNs.js +0 -164
  112. package/dist/dropdown-menu-sMXR59cB.cjs +0 -1
  113. package/dist/form-nRAvKPQj.cjs +0 -1
  114. package/dist/functions-nNTuSTsR.js +0 -1106
  115. package/dist/functions-pcUZhFJM.js +0 -12
  116. package/dist/functions-sCuB7nvZ.cjs +0 -2
  117. package/dist/functions-uw7QP2kT.cjs +0 -1
  118. package/dist/html-to-json-P6GpbcQX.cjs +0 -1
  119. package/dist/html-to-json-pdHQfRkN.js +0 -178
  120. package/dist/index-HAue58ea.cjs +0 -1
  121. package/dist/index-T4_wfKl5.js +0 -2256
  122. package/dist/index-X9ZgD09V.cjs +0 -1
  123. package/dist/index-ehKdBRUK.js +0 -18
  124. package/dist/label-KaP7MRrs.js +0 -10
  125. package/dist/label-tFm8HZdb.cjs +0 -1
  126. package/dist/link-6o6n2Tnd.js +0 -204
  127. package/dist/link-ece8dZGH.cjs +0 -1
  128. package/dist/page-viewer-IARz6OSp.cjs +0 -1
  129. package/dist/popover-a84pbVhQ.js +0 -23
  130. package/dist/popover-fKjgcRUx.cjs +0 -1
  131. package/dist/project-general-setting-eSl3t-VH.cjs +0 -1
  132. package/dist/project-seo-setting-Ga9v_ECU.js +0 -67
  133. package/dist/project-seo-setting-rankm1z3.cjs +0 -1
  134. package/dist/scroll-area-FiHvy-TZ.cjs +0 -1
  135. package/dist/scroll-area-ewXbxc3n.js +0 -30
  136. package/dist/select-7bjg-rr9.cjs +0 -1
  137. package/dist/select-POGdEDHT.js +0 -75
  138. package/dist/separator-3Civ-6hb.cjs +0 -1
  139. package/dist/separator-SctTn0Qi.js +0 -18
  140. package/dist/single-page-detail-yPgnu2AI.cjs +0 -1
  141. package/dist/skeleton-CU_FIbg3.js +0 -239
  142. package/dist/skeleton-JHP9zwL2.cjs +0 -1
  143. package/dist/tabs-Gb9v5dVb.js +0 -46
  144. package/dist/tabs-iWeaaVrg.cjs +0 -1
  145. package/dist/textarea-1kZEh7ki.cjs +0 -1
  146. package/dist/textarea-b2QvVhrK.js +0 -73
  147. package/dist/toggle-ASJRAaGP.js +0 -30
  148. package/dist/toggle-ehNIPmme.cjs +0 -1
  149. package/dist/useAddBlock-WJc3OgG8.js +0 -86
  150. package/dist/useAddBlock-dCKRFPRU.cjs +0 -1
  151. package/dist/useAllBlocks-6hvuNuyw.cjs +0 -1
  152. package/dist/useAllBlocks-PQKYvs-e.js +0 -20
  153. package/dist/useChaiExternalData-4K9WxANa.js +0 -6
  154. package/dist/useChaiExternalData-DkyBJ81C.cjs +0 -1
  155. package/dist/useDarkMode-ZKCO_gkt.js +0 -23
  156. package/dist/useDarkMode-dV6FM6l-.cjs +0 -1
  157. package/dist/useFeatureSupport-OLwNgEZb.js +0 -16
  158. package/dist/useFeatureSupport-c9IgPW2t.cjs +0 -1
  159. package/dist/useHiddenBlocks-3MsGOJ1s.js +0 -15
  160. package/dist/useHiddenBlocks-oJuQDmTy.cjs +0 -1
  161. package/dist/useLanguage-NKKKaxVM.cjs +0 -1
  162. package/dist/useLanguage-gVC5rxO5.js +0 -216
  163. package/dist/useMarkAsGlobalBlock-X73Vny8u.js +0 -25
  164. package/dist/useMarkAsGlobalBlock-ebBVGHg4.cjs +0 -1
  165. package/dist/useUiLibraries-4hPOi8DI.js +0 -12
  166. package/dist/useUiLibraries-9FhQCpKo.cjs +0 -1
  167. package/dist/utils-dze1SGvB.js +0 -6
  168. package/dist/utils-qK_SjzzV.cjs +0 -1
package/dist/lib.js CHANGED
@@ -1,20 +1,185 @@
1
- import { c as Y } from "./utils-dze1SGvB.js";
2
- import { g as K, a as q } from "./functions-pcUZhFJM.js";
3
- import { g as J } from "./html-to-json-pdHQfRkN.js";
4
- import { first as v, includes as c, keys as t, map as f, parseInt as T, get as b } from "lodash";
5
- import { c as F } from "./Class-l7qYbuoN.js";
6
- import { a as Z, b as N, g as ee, c as re } from "./functions-nNTuSTsR.js";
1
+ import { a as x, d as E, b as U, e as O, g as I } from "./Class-nQk08vqd.js";
2
+ import { f as Ie } from "./Class-nQk08vqd.js";
3
+ import { stringify as k, parse as H } from "himalaya";
4
+ import { includes as p, get as l, isEmpty as v, forEach as R, find as f, set as d, capitalize as P, flatMapDeep as B, filter as M, omit as W, flatten as N, first as j, keys as h, map as C, parseInt as V, last as q, startsWith as X, replace as Y } from "lodash";
5
+ import { createTailwindcss as G } from "@mhsdesign/jit-browser-tailwindcss";
6
+ import { tailwindcssPaletteGenerator as J } from "@bobthered/tailwindcss-palette-generator";
7
+ import K from "@tailwindcss/forms";
8
+ import Q from "@tailwindcss/typography";
9
+ import Z from "@tailwindcss/aspect-ratio";
10
+ import ee from "@tailwindcss/line-clamp";
7
11
  import "clsx";
8
12
  import "tailwind-merge";
9
- import "himalaya";
10
- import "./MODIFIERS-DsEzQ3aH.js";
11
- import "@mhsdesign/jit-browser-tailwindcss";
12
- import "@bobthered/tailwindcss-palette-generator";
13
- import "@tailwindcss/forms";
14
- import "@tailwindcss/typography";
15
- import "@tailwindcss/aspect-ratio";
16
- import "@tailwindcss/line-clamp";
17
- const g = {
13
+ const te = {
14
+ img: { alt: "alt", width: "width", height: "height", src: "image" },
15
+ video: {
16
+ src: "url",
17
+ autoplay: "controls.autoPlay",
18
+ muted: "controls.muted",
19
+ loop: "controls.loop",
20
+ controls: "controls.widgets"
21
+ },
22
+ a: {
23
+ href: "link.href",
24
+ target: "link.target",
25
+ type: ""
26
+ // @TODO: Detect here what to url, email, phone, elementId
27
+ },
28
+ input: {
29
+ placeholder: "placeholder",
30
+ required: "required",
31
+ type: "inputType",
32
+ name: "fieldName"
33
+ },
34
+ textarea: {
35
+ placeholder: "placeholder",
36
+ required: "required",
37
+ type: "inputType",
38
+ name: "fieldName"
39
+ },
40
+ select: {
41
+ placeholder: "placeholder",
42
+ required: "required",
43
+ multiple: "multiple",
44
+ name: "fieldName"
45
+ }
46
+ }, re = (e, t) => e.children.length === 1 && p(["Heading", "Paragraph", "Span", "ListItem", "Button", "Label", "TableCell", "Link"], t._type), A = (e) => e.map((t) => t.type === "text" ? l(t, "content", "") : v(t.children) ? "" : A(t.children)).join(""), F = (e) => e === null ? !0 : e, S = (e) => {
47
+ const t = {}, r = te[e.tagName] || {}, n = e.attributes;
48
+ return R(n, ({ key: a, value: i }) => {
49
+ if (r[a]) {
50
+ if (e.tagName === "img" && a === "src" && !i.startsWith("http")) {
51
+ const o = f(e.attributes, { key: "width" }), s = f(e.attributes, { key: "height" });
52
+ o && s ? i = `https://via.placeholder.com/${o == null ? void 0 : o.value}x${s == null ? void 0 : s.value}` : i = "https://via.placeholder.com/150x150";
53
+ }
54
+ d(t, r[a], F(i));
55
+ } else
56
+ p(["style", "class", "srcset"], a) || d(t, `styles_attrs.${a}`, F(i));
57
+ }), delete t.class, t;
58
+ }, ae = (e, t = "styles") => {
59
+ if (!e.attributes)
60
+ return { [t]: `${x},` };
61
+ const r = f(e.attributes, { key: "class" });
62
+ if (r) {
63
+ const n = r.value;
64
+ return { [t]: `${x},${n}` };
65
+ }
66
+ return { [t]: `${x},` };
67
+ }, ne = (e) => {
68
+ switch (e.tagName) {
69
+ case "img":
70
+ return { _type: "Image" };
71
+ case "input":
72
+ return { _type: "Input", showLabel: !1 };
73
+ case "hr":
74
+ return { _type: "Divider" };
75
+ case "br":
76
+ return { _type: "LineBreak" };
77
+ case "textarea":
78
+ return { _type: "TextArea", showLabel: !1 };
79
+ case "audio":
80
+ return { _type: "Audio" };
81
+ case "iframe":
82
+ return { _type: "Iframe" };
83
+ case "canvas":
84
+ return { _type: "Canvas" };
85
+ case "video":
86
+ return { _type: "CustomHTML" };
87
+ case "svg":
88
+ return { _type: "Icon" };
89
+ case "select":
90
+ return { _type: "Select", options: [] };
91
+ case "option":
92
+ return { _type: "Option" };
93
+ case "ul":
94
+ case "ol":
95
+ case "dl":
96
+ return {
97
+ _type: "List",
98
+ tag: e.tagName,
99
+ _listType: e.tagName === "ol" ? "list-decimal" : "list-none"
100
+ };
101
+ case "li":
102
+ case "dt":
103
+ return { _type: "ListItem", tag: e.tagName };
104
+ case "span":
105
+ case "figcaption":
106
+ case "legend":
107
+ return { _type: "Span", tag: e.tagName };
108
+ case "p":
109
+ return { _type: "Paragraph", content: "" };
110
+ case "a":
111
+ return { _type: "Link" };
112
+ case "form":
113
+ return { _type: "Form" };
114
+ case "label":
115
+ return { _type: "Label" };
116
+ case "button":
117
+ return { _type: "Button" };
118
+ case "code":
119
+ return { _type: "Code" };
120
+ case "h1":
121
+ case "h2":
122
+ case "h3":
123
+ case "h4":
124
+ case "h5":
125
+ case "h6":
126
+ return { _type: "Heading", tag: e.tagName };
127
+ case "table":
128
+ return { _type: "Table" };
129
+ case "tr":
130
+ return { _type: "TableRow" };
131
+ case "td":
132
+ case "th":
133
+ return { _type: "TableCell", tag: e.tagName };
134
+ case "thead":
135
+ return { _type: "TableHead" };
136
+ case "tbody":
137
+ return { _type: "TableBody" };
138
+ case "tfoot":
139
+ return { _type: "TableFooter" };
140
+ default:
141
+ return {
142
+ _type: "Box",
143
+ tag: e.tagName,
144
+ name: e.tagName === "div" ? "Box" : P(e.tagName)
145
+ };
146
+ }
147
+ }, z = (e, t = null) => B(e, (r) => {
148
+ var i;
149
+ if (r.type === "comment")
150
+ return [];
151
+ let n = { _id: E() };
152
+ if (t && (n._parent = t.block._id), r.type === "text")
153
+ return v(l(r, "content", "")) ? [] : t && re(t.node, t.block) ? (d(t, "block.content", l(r, "content", "")), []) : { ...n, _type: "Text", content: l(r, "content", "") };
154
+ if (n = {
155
+ ...n,
156
+ ...ne(r),
157
+ ...S(r),
158
+ ...ae(r)
159
+ }, n._type === "Input") {
160
+ const o = n.inputType || "text";
161
+ o === "checkbox" ? d(n, "_type", "Checkbox") : o === "radio" && d(n, "_type", "Radio");
162
+ } else {
163
+ if (r.tagName === "video")
164
+ return n.content = k([r]), [n];
165
+ if (r.tagName === "svg") {
166
+ const o = f(r.attributes, { key: "height" }), s = f(r.attributes, { key: "width" }), c = l(o, "value") ? `[${l(o, "value")}px]` : "full", m = l(s, "value") ? `[${l(s, "value")}px]` : "full", y = l(f(r.attributes, { key: "class" }), "value");
167
+ return n.styles = `${x}, ${U(`w-${m} h-${c}`, y)}`.trim(), r.attributes = M(r.attributes, (b) => !p(["style", "width", "height", "class"], b.key)), n.icon = k([r]), d(n, "styles_attrs", W(l(n, "styles_attrs") || {}, ["height", "width", "style", "class"])), [n];
168
+ } else if (r.tagName == "option" && t && ((i = t.block) == null ? void 0 : i._type) === "Select")
169
+ return t.block.options.push({
170
+ label: A(r.children),
171
+ ...S(r)
172
+ }), [];
173
+ }
174
+ const a = z(r.children, { block: n, node: r });
175
+ return [n, ...a];
176
+ }), oe = (e) => {
177
+ const t = e.match(/<body[^>]*>[\s\S]*?<\/body>/);
178
+ return (t && t.length > 0 ? t[0].replace(/<body/, "<div").replace(/<\/body>/, "</div>") : e).replace(/\s+/g, " ").replaceAll("> <", "><").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").trim();
179
+ }, Le = (e) => {
180
+ const t = H(oe(e));
181
+ return v(e) ? [] : N(z(t));
182
+ }, L = {
18
183
  25: "1/4",
19
184
  "33.33": "1/3",
20
185
  50: "1/2",
@@ -31,7 +196,7 @@ const g = {
31
196
  "58.33": "7/12",
32
197
  "91.67": "11/12",
33
198
  100: "full"
34
- }, k = {
199
+ }, ie = {
35
200
  0: "0",
36
201
  1: "px",
37
202
  2: "0.5",
@@ -67,23 +232,24 @@ const g = {
67
232
  288: "72",
68
233
  320: "80",
69
234
  384: "96"
70
- }, w = 16, y = 4;
71
- function L(a) {
72
- return a.indexOf("rem") !== -1 && (a = `${parseFloat(a.replace("rem", "")) * w}px`), a;
235
+ };
236
+ const se = 16, le = 4;
237
+ function ce(e) {
238
+ return e.indexOf("rem") !== -1 && (e = `${parseFloat(e.replace("rem", "")) * se}px`), e;
73
239
  }
74
- const X = (a) => {
75
- const i = a.match(/\[.*\]/);
76
- if (i === null)
77
- return a;
78
- const p = F(a);
79
- if (p === null)
80
- return a;
81
- const { property: m } = p;
82
- let e = v(i).replace(/\]/i, "").replace(/\[/i, "");
83
- const o = a.replace(/\[.*\]/i, "");
84
- e = L(e);
85
- let r = a;
86
- switch (m) {
240
+ const Ae = (e) => {
241
+ const t = e.match(/\[.*\]/);
242
+ if (t === null)
243
+ return e;
244
+ const r = O(e);
245
+ if (r === null)
246
+ return e;
247
+ const { property: n } = r;
248
+ let a = j(t).replace(/\]/i, "").replace(/\[/i, "");
249
+ const i = e.replace(/\[.*\]/i, "");
250
+ a = ce(a);
251
+ let o = e;
252
+ switch (n) {
87
253
  case "top":
88
254
  case "right":
89
255
  case "left":
@@ -115,28 +281,28 @@ const X = (a) => {
115
281
  case "textIndent":
116
282
  case "spaceX":
117
283
  case "spaceY":
118
- if (e.indexOf("px") !== -1) {
119
- const s = f(t(k), (n) => `${n}px`);
120
- if (c(s, e)) {
121
- const n = T(e.replace("px", ""), 10);
122
- n === 1 ? r = `${o}px` : r = o + n / y;
284
+ if (a.indexOf("px") !== -1) {
285
+ const g = C(h(ie), (u) => `${u}px`);
286
+ if (p(g, a)) {
287
+ const u = V(a.replace("px", ""), 10);
288
+ u === 1 ? o = `${i}px` : o = i + u / le;
123
289
  }
124
290
  }
125
- if (e.indexOf("%") !== -1) {
126
- const s = f(t(g), (n) => `${n}%`);
127
- if (c(s, e)) {
128
- const n = parseFloat(e.replace("%", ""));
129
- r = o + b(g, n);
291
+ if (a.indexOf("%") !== -1) {
292
+ const g = C(h(L), (u) => `${u}%`);
293
+ if (p(g, a)) {
294
+ const u = parseFloat(a.replace("%", ""));
295
+ o = i + l(L, u);
130
296
  }
131
297
  }
132
- e.indexOf("vw") !== -1 && parseFloat(e.replace("vw", "")) === 100 && (r = `${o}screen`), e.indexOf("vh") !== -1 && parseFloat(e.replace("vh", "")) === 100 && (r = `${o}screen`);
298
+ a.indexOf("vw") !== -1 && parseFloat(a.replace("vw", "")) === 100 && (o = `${i}screen`), a.indexOf("vh") !== -1 && parseFloat(a.replace("vh", "")) === 100 && (o = `${i}screen`);
133
299
  break;
134
300
  case "minWidth":
135
- e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (r = `${o}full`), e === "0px" && (r = "min-w-0");
301
+ a.indexOf("%") !== -1 && parseFloat(a.replace("%", "")) === 100 && (o = `${i}full`), a === "0px" && (o = "min-w-0");
136
302
  break;
137
303
  case "maxWidth":
138
- e === "0px" && (r = "max-w-0");
139
- const l = {
304
+ a === "0px" && (o = "max-w-0");
305
+ const s = {
140
306
  "320px": "xs",
141
307
  "384px": "sm",
142
308
  "448px": "md",
@@ -153,13 +319,13 @@ const X = (a) => {
153
319
  "640px": "screen-sm",
154
320
  "1536px": "screen-2xl"
155
321
  };
156
- c(t(l), e) && (r = `max-w-${l[e]}`);
322
+ p(h(s), a) && (o = `max-w-${s[a]}`);
157
323
  break;
158
324
  case "minHeight":
159
- e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (r = `${o}full`), e === "0px" && (r = "min-h-0"), e === "100vh" && (r = "min-h-screen");
325
+ a.indexOf("%") !== -1 && parseFloat(a.replace("%", "")) === 100 && (o = `${i}full`), a === "0px" && (o = "min-h-0"), a === "100vh" && (o = "min-h-screen");
160
326
  break;
161
327
  case "fontSize":
162
- const x = {
328
+ const c = {
163
329
  "12px": "xs",
164
330
  "14px": "sm",
165
331
  "16px": "base",
@@ -174,10 +340,10 @@ const X = (a) => {
174
340
  "96px": "8xl",
175
341
  "128px": "9xl"
176
342
  };
177
- c(t(x), e) && (r = o + x[e]);
343
+ p(h(c), a) && (o = i + c[a]);
178
344
  break;
179
345
  case "lineHeight":
180
- const d = {
346
+ const m = {
181
347
  "12px": "3",
182
348
  "16px": "4",
183
349
  "20px": "5",
@@ -193,13 +359,13 @@ const X = (a) => {
193
359
  "1.625": "relaxed",
194
360
  2: "loose"
195
361
  };
196
- c(t(d), e) && (r = o + d[e]);
362
+ p(h(m), a) && (o = i + m[a]);
197
363
  break;
198
364
  case "zIndex":
199
- r = ["0", "10", "20", "30", "40", "50"].indexOf(e) !== -1 ? `${o}${e}` : a;
365
+ o = ["0", "10", "20", "30", "40", "50"].indexOf(a) !== -1 ? `${i}${a}` : e;
200
366
  break;
201
367
  case "opacity":
202
- const h = [
368
+ const b = [
203
369
  "0",
204
370
  "5",
205
371
  "10",
@@ -215,13 +381,1109 @@ const X = (a) => {
215
381
  "90",
216
382
  "95",
217
383
  "100"
218
- ], u = parseFloat(e) * 100;
219
- c(h, u.toString()) && (r = `opacity-${u}`);
384
+ ], _ = parseFloat(a) * 100;
385
+ p(b, _.toString()) && (o = `opacity-${_}`);
386
+ break;
387
+ default:
220
388
  break;
221
389
  }
222
- return r;
390
+ return o;
223
391
  };
224
- function R() {
392
+ var D = {}, $ = {};
393
+ (function(e) {
394
+ "use strict";
395
+ Object.defineProperty(e, "__esModule", {
396
+ value: !0
397
+ }), Object.defineProperty(e, "cloneDeep", {
398
+ enumerable: !0,
399
+ get: function() {
400
+ return t;
401
+ }
402
+ });
403
+ function t(r) {
404
+ return Array.isArray(r) ? r.map((n) => t(n)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([n, a]) => [
405
+ n,
406
+ t(a)
407
+ ])) : r;
408
+ }
409
+ })($);
410
+ var pe = {
411
+ content: [],
412
+ presets: [],
413
+ darkMode: "media",
414
+ // or 'class'
415
+ theme: {
416
+ accentColor: ({ theme: e }) => ({
417
+ ...e("colors"),
418
+ auto: "auto"
419
+ }),
420
+ animation: {
421
+ none: "none",
422
+ spin: "spin 1s linear infinite",
423
+ ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
424
+ pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
425
+ bounce: "bounce 1s infinite"
426
+ },
427
+ aria: {
428
+ busy: 'busy="true"',
429
+ checked: 'checked="true"',
430
+ disabled: 'disabled="true"',
431
+ expanded: 'expanded="true"',
432
+ hidden: 'hidden="true"',
433
+ pressed: 'pressed="true"',
434
+ readonly: 'readonly="true"',
435
+ required: 'required="true"',
436
+ selected: 'selected="true"'
437
+ },
438
+ aspectRatio: {
439
+ auto: "auto",
440
+ square: "1 / 1",
441
+ video: "16 / 9"
442
+ },
443
+ backdropBlur: ({ theme: e }) => e("blur"),
444
+ backdropBrightness: ({ theme: e }) => e("brightness"),
445
+ backdropContrast: ({ theme: e }) => e("contrast"),
446
+ backdropGrayscale: ({ theme: e }) => e("grayscale"),
447
+ backdropHueRotate: ({ theme: e }) => e("hueRotate"),
448
+ backdropInvert: ({ theme: e }) => e("invert"),
449
+ backdropOpacity: ({ theme: e }) => e("opacity"),
450
+ backdropSaturate: ({ theme: e }) => e("saturate"),
451
+ backdropSepia: ({ theme: e }) => e("sepia"),
452
+ backgroundColor: ({ theme: e }) => e("colors"),
453
+ backgroundImage: {
454
+ none: "none",
455
+ "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
456
+ "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
457
+ "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
458
+ "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
459
+ "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
460
+ "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
461
+ "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
462
+ "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
463
+ },
464
+ backgroundOpacity: ({ theme: e }) => e("opacity"),
465
+ backgroundPosition: {
466
+ bottom: "bottom",
467
+ center: "center",
468
+ left: "left",
469
+ "left-bottom": "left bottom",
470
+ "left-top": "left top",
471
+ right: "right",
472
+ "right-bottom": "right bottom",
473
+ "right-top": "right top",
474
+ top: "top"
475
+ },
476
+ backgroundSize: {
477
+ auto: "auto",
478
+ cover: "cover",
479
+ contain: "contain"
480
+ },
481
+ blur: {
482
+ 0: "0",
483
+ none: "0",
484
+ sm: "4px",
485
+ DEFAULT: "8px",
486
+ md: "12px",
487
+ lg: "16px",
488
+ xl: "24px",
489
+ "2xl": "40px",
490
+ "3xl": "64px"
491
+ },
492
+ borderColor: ({ theme: e }) => ({
493
+ ...e("colors"),
494
+ DEFAULT: e("colors.gray.200", "currentColor")
495
+ }),
496
+ borderOpacity: ({ theme: e }) => e("opacity"),
497
+ borderRadius: {
498
+ none: "0px",
499
+ sm: "0.125rem",
500
+ DEFAULT: "0.25rem",
501
+ md: "0.375rem",
502
+ lg: "0.5rem",
503
+ xl: "0.75rem",
504
+ "2xl": "1rem",
505
+ "3xl": "1.5rem",
506
+ full: "9999px"
507
+ },
508
+ borderSpacing: ({ theme: e }) => ({
509
+ ...e("spacing")
510
+ }),
511
+ borderWidth: {
512
+ DEFAULT: "1px",
513
+ 0: "0px",
514
+ 2: "2px",
515
+ 4: "4px",
516
+ 8: "8px"
517
+ },
518
+ boxShadow: {
519
+ sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
520
+ DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
521
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
522
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
523
+ xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
524
+ "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
525
+ inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
526
+ none: "none"
527
+ },
528
+ boxShadowColor: ({ theme: e }) => e("colors"),
529
+ brightness: {
530
+ 0: "0",
531
+ 50: ".5",
532
+ 75: ".75",
533
+ 90: ".9",
534
+ 95: ".95",
535
+ 100: "1",
536
+ 105: "1.05",
537
+ 110: "1.1",
538
+ 125: "1.25",
539
+ 150: "1.5",
540
+ 200: "2"
541
+ },
542
+ caretColor: ({ theme: e }) => e("colors"),
543
+ colors: ({ colors: e }) => ({
544
+ inherit: e.inherit,
545
+ current: e.current,
546
+ transparent: e.transparent,
547
+ black: e.black,
548
+ white: e.white,
549
+ slate: e.slate,
550
+ gray: e.gray,
551
+ zinc: e.zinc,
552
+ neutral: e.neutral,
553
+ stone: e.stone,
554
+ red: e.red,
555
+ orange: e.orange,
556
+ amber: e.amber,
557
+ yellow: e.yellow,
558
+ lime: e.lime,
559
+ green: e.green,
560
+ emerald: e.emerald,
561
+ teal: e.teal,
562
+ cyan: e.cyan,
563
+ sky: e.sky,
564
+ blue: e.blue,
565
+ indigo: e.indigo,
566
+ violet: e.violet,
567
+ purple: e.purple,
568
+ fuchsia: e.fuchsia,
569
+ pink: e.pink,
570
+ rose: e.rose
571
+ }),
572
+ columns: {
573
+ auto: "auto",
574
+ 1: "1",
575
+ 2: "2",
576
+ 3: "3",
577
+ 4: "4",
578
+ 5: "5",
579
+ 6: "6",
580
+ 7: "7",
581
+ 8: "8",
582
+ 9: "9",
583
+ 10: "10",
584
+ 11: "11",
585
+ 12: "12",
586
+ "3xs": "16rem",
587
+ "2xs": "18rem",
588
+ xs: "20rem",
589
+ sm: "24rem",
590
+ md: "28rem",
591
+ lg: "32rem",
592
+ xl: "36rem",
593
+ "2xl": "42rem",
594
+ "3xl": "48rem",
595
+ "4xl": "56rem",
596
+ "5xl": "64rem",
597
+ "6xl": "72rem",
598
+ "7xl": "80rem"
599
+ },
600
+ container: {},
601
+ content: {
602
+ none: "none"
603
+ },
604
+ contrast: {
605
+ 0: "0",
606
+ 50: ".5",
607
+ 75: ".75",
608
+ 100: "1",
609
+ 125: "1.25",
610
+ 150: "1.5",
611
+ 200: "2"
612
+ },
613
+ cursor: {
614
+ auto: "auto",
615
+ default: "default",
616
+ pointer: "pointer",
617
+ wait: "wait",
618
+ text: "text",
619
+ move: "move",
620
+ help: "help",
621
+ "not-allowed": "not-allowed",
622
+ none: "none",
623
+ "context-menu": "context-menu",
624
+ progress: "progress",
625
+ cell: "cell",
626
+ crosshair: "crosshair",
627
+ "vertical-text": "vertical-text",
628
+ alias: "alias",
629
+ copy: "copy",
630
+ "no-drop": "no-drop",
631
+ grab: "grab",
632
+ grabbing: "grabbing",
633
+ "all-scroll": "all-scroll",
634
+ "col-resize": "col-resize",
635
+ "row-resize": "row-resize",
636
+ "n-resize": "n-resize",
637
+ "e-resize": "e-resize",
638
+ "s-resize": "s-resize",
639
+ "w-resize": "w-resize",
640
+ "ne-resize": "ne-resize",
641
+ "nw-resize": "nw-resize",
642
+ "se-resize": "se-resize",
643
+ "sw-resize": "sw-resize",
644
+ "ew-resize": "ew-resize",
645
+ "ns-resize": "ns-resize",
646
+ "nesw-resize": "nesw-resize",
647
+ "nwse-resize": "nwse-resize",
648
+ "zoom-in": "zoom-in",
649
+ "zoom-out": "zoom-out"
650
+ },
651
+ divideColor: ({ theme: e }) => e("borderColor"),
652
+ divideOpacity: ({ theme: e }) => e("borderOpacity"),
653
+ divideWidth: ({ theme: e }) => e("borderWidth"),
654
+ dropShadow: {
655
+ sm: "0 1px 1px rgb(0 0 0 / 0.05)",
656
+ DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
657
+ md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
658
+ lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
659
+ xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
660
+ "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
661
+ none: "0 0 #0000"
662
+ },
663
+ fill: ({ theme: e }) => ({
664
+ none: "none",
665
+ ...e("colors")
666
+ }),
667
+ flex: {
668
+ 1: "1 1 0%",
669
+ auto: "1 1 auto",
670
+ initial: "0 1 auto",
671
+ none: "none"
672
+ },
673
+ flexBasis: ({ theme: e }) => ({
674
+ auto: "auto",
675
+ ...e("spacing"),
676
+ "1/2": "50%",
677
+ "1/3": "33.333333%",
678
+ "2/3": "66.666667%",
679
+ "1/4": "25%",
680
+ "2/4": "50%",
681
+ "3/4": "75%",
682
+ "1/5": "20%",
683
+ "2/5": "40%",
684
+ "3/5": "60%",
685
+ "4/5": "80%",
686
+ "1/6": "16.666667%",
687
+ "2/6": "33.333333%",
688
+ "3/6": "50%",
689
+ "4/6": "66.666667%",
690
+ "5/6": "83.333333%",
691
+ "1/12": "8.333333%",
692
+ "2/12": "16.666667%",
693
+ "3/12": "25%",
694
+ "4/12": "33.333333%",
695
+ "5/12": "41.666667%",
696
+ "6/12": "50%",
697
+ "7/12": "58.333333%",
698
+ "8/12": "66.666667%",
699
+ "9/12": "75%",
700
+ "10/12": "83.333333%",
701
+ "11/12": "91.666667%",
702
+ full: "100%"
703
+ }),
704
+ flexGrow: {
705
+ 0: "0",
706
+ DEFAULT: "1"
707
+ },
708
+ flexShrink: {
709
+ 0: "0",
710
+ DEFAULT: "1"
711
+ },
712
+ fontFamily: {
713
+ sans: [
714
+ "ui-sans-serif",
715
+ "system-ui",
716
+ "-apple-system",
717
+ "BlinkMacSystemFont",
718
+ '"Segoe UI"',
719
+ "Roboto",
720
+ '"Helvetica Neue"',
721
+ "Arial",
722
+ '"Noto Sans"',
723
+ "sans-serif",
724
+ '"Apple Color Emoji"',
725
+ '"Segoe UI Emoji"',
726
+ '"Segoe UI Symbol"',
727
+ '"Noto Color Emoji"'
728
+ ],
729
+ serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
730
+ mono: [
731
+ "ui-monospace",
732
+ "SFMono-Regular",
733
+ "Menlo",
734
+ "Monaco",
735
+ "Consolas",
736
+ '"Liberation Mono"',
737
+ '"Courier New"',
738
+ "monospace"
739
+ ]
740
+ },
741
+ fontSize: {
742
+ xs: ["0.75rem", { lineHeight: "1rem" }],
743
+ sm: ["0.875rem", { lineHeight: "1.25rem" }],
744
+ base: ["1rem", { lineHeight: "1.5rem" }],
745
+ lg: ["1.125rem", { lineHeight: "1.75rem" }],
746
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
747
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
748
+ "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
749
+ "4xl": ["2.25rem", { lineHeight: "2.5rem" }],
750
+ "5xl": ["3rem", { lineHeight: "1" }],
751
+ "6xl": ["3.75rem", { lineHeight: "1" }],
752
+ "7xl": ["4.5rem", { lineHeight: "1" }],
753
+ "8xl": ["6rem", { lineHeight: "1" }],
754
+ "9xl": ["8rem", { lineHeight: "1" }]
755
+ },
756
+ fontWeight: {
757
+ thin: "100",
758
+ extralight: "200",
759
+ light: "300",
760
+ normal: "400",
761
+ medium: "500",
762
+ semibold: "600",
763
+ bold: "700",
764
+ extrabold: "800",
765
+ black: "900"
766
+ },
767
+ gap: ({ theme: e }) => e("spacing"),
768
+ gradientColorStops: ({ theme: e }) => e("colors"),
769
+ gradientColorStopPositions: {
770
+ "0%": "0%",
771
+ "5%": "5%",
772
+ "10%": "10%",
773
+ "15%": "15%",
774
+ "20%": "20%",
775
+ "25%": "25%",
776
+ "30%": "30%",
777
+ "35%": "35%",
778
+ "40%": "40%",
779
+ "45%": "45%",
780
+ "50%": "50%",
781
+ "55%": "55%",
782
+ "60%": "60%",
783
+ "65%": "65%",
784
+ "70%": "70%",
785
+ "75%": "75%",
786
+ "80%": "80%",
787
+ "85%": "85%",
788
+ "90%": "90%",
789
+ "95%": "95%",
790
+ "100%": "100%"
791
+ },
792
+ grayscale: {
793
+ 0: "0",
794
+ DEFAULT: "100%"
795
+ },
796
+ gridAutoColumns: {
797
+ auto: "auto",
798
+ min: "min-content",
799
+ max: "max-content",
800
+ fr: "minmax(0, 1fr)"
801
+ },
802
+ gridAutoRows: {
803
+ auto: "auto",
804
+ min: "min-content",
805
+ max: "max-content",
806
+ fr: "minmax(0, 1fr)"
807
+ },
808
+ gridColumn: {
809
+ auto: "auto",
810
+ "span-1": "span 1 / span 1",
811
+ "span-2": "span 2 / span 2",
812
+ "span-3": "span 3 / span 3",
813
+ "span-4": "span 4 / span 4",
814
+ "span-5": "span 5 / span 5",
815
+ "span-6": "span 6 / span 6",
816
+ "span-7": "span 7 / span 7",
817
+ "span-8": "span 8 / span 8",
818
+ "span-9": "span 9 / span 9",
819
+ "span-10": "span 10 / span 10",
820
+ "span-11": "span 11 / span 11",
821
+ "span-12": "span 12 / span 12",
822
+ "span-full": "1 / -1"
823
+ },
824
+ gridColumnEnd: {
825
+ auto: "auto",
826
+ 1: "1",
827
+ 2: "2",
828
+ 3: "3",
829
+ 4: "4",
830
+ 5: "5",
831
+ 6: "6",
832
+ 7: "7",
833
+ 8: "8",
834
+ 9: "9",
835
+ 10: "10",
836
+ 11: "11",
837
+ 12: "12",
838
+ 13: "13"
839
+ },
840
+ gridColumnStart: {
841
+ auto: "auto",
842
+ 1: "1",
843
+ 2: "2",
844
+ 3: "3",
845
+ 4: "4",
846
+ 5: "5",
847
+ 6: "6",
848
+ 7: "7",
849
+ 8: "8",
850
+ 9: "9",
851
+ 10: "10",
852
+ 11: "11",
853
+ 12: "12",
854
+ 13: "13"
855
+ },
856
+ gridRow: {
857
+ auto: "auto",
858
+ "span-1": "span 1 / span 1",
859
+ "span-2": "span 2 / span 2",
860
+ "span-3": "span 3 / span 3",
861
+ "span-4": "span 4 / span 4",
862
+ "span-5": "span 5 / span 5",
863
+ "span-6": "span 6 / span 6",
864
+ "span-full": "1 / -1"
865
+ },
866
+ gridRowEnd: {
867
+ auto: "auto",
868
+ 1: "1",
869
+ 2: "2",
870
+ 3: "3",
871
+ 4: "4",
872
+ 5: "5",
873
+ 6: "6",
874
+ 7: "7"
875
+ },
876
+ gridRowStart: {
877
+ auto: "auto",
878
+ 1: "1",
879
+ 2: "2",
880
+ 3: "3",
881
+ 4: "4",
882
+ 5: "5",
883
+ 6: "6",
884
+ 7: "7"
885
+ },
886
+ gridTemplateColumns: {
887
+ none: "none",
888
+ 1: "repeat(1, minmax(0, 1fr))",
889
+ 2: "repeat(2, minmax(0, 1fr))",
890
+ 3: "repeat(3, minmax(0, 1fr))",
891
+ 4: "repeat(4, minmax(0, 1fr))",
892
+ 5: "repeat(5, minmax(0, 1fr))",
893
+ 6: "repeat(6, minmax(0, 1fr))",
894
+ 7: "repeat(7, minmax(0, 1fr))",
895
+ 8: "repeat(8, minmax(0, 1fr))",
896
+ 9: "repeat(9, minmax(0, 1fr))",
897
+ 10: "repeat(10, minmax(0, 1fr))",
898
+ 11: "repeat(11, minmax(0, 1fr))",
899
+ 12: "repeat(12, minmax(0, 1fr))"
900
+ },
901
+ gridTemplateRows: {
902
+ none: "none",
903
+ 1: "repeat(1, minmax(0, 1fr))",
904
+ 2: "repeat(2, minmax(0, 1fr))",
905
+ 3: "repeat(3, minmax(0, 1fr))",
906
+ 4: "repeat(4, minmax(0, 1fr))",
907
+ 5: "repeat(5, minmax(0, 1fr))",
908
+ 6: "repeat(6, minmax(0, 1fr))"
909
+ },
910
+ height: ({ theme: e }) => ({
911
+ auto: "auto",
912
+ ...e("spacing"),
913
+ "1/2": "50%",
914
+ "1/3": "33.333333%",
915
+ "2/3": "66.666667%",
916
+ "1/4": "25%",
917
+ "2/4": "50%",
918
+ "3/4": "75%",
919
+ "1/5": "20%",
920
+ "2/5": "40%",
921
+ "3/5": "60%",
922
+ "4/5": "80%",
923
+ "1/6": "16.666667%",
924
+ "2/6": "33.333333%",
925
+ "3/6": "50%",
926
+ "4/6": "66.666667%",
927
+ "5/6": "83.333333%",
928
+ full: "100%",
929
+ screen: "100vh",
930
+ min: "min-content",
931
+ max: "max-content",
932
+ fit: "fit-content"
933
+ }),
934
+ hueRotate: {
935
+ 0: "0deg",
936
+ 15: "15deg",
937
+ 30: "30deg",
938
+ 60: "60deg",
939
+ 90: "90deg",
940
+ 180: "180deg"
941
+ },
942
+ inset: ({ theme: e }) => ({
943
+ auto: "auto",
944
+ ...e("spacing"),
945
+ "1/2": "50%",
946
+ "1/3": "33.333333%",
947
+ "2/3": "66.666667%",
948
+ "1/4": "25%",
949
+ "2/4": "50%",
950
+ "3/4": "75%",
951
+ full: "100%"
952
+ }),
953
+ invert: {
954
+ 0: "0",
955
+ DEFAULT: "100%"
956
+ },
957
+ keyframes: {
958
+ spin: {
959
+ to: {
960
+ transform: "rotate(360deg)"
961
+ }
962
+ },
963
+ ping: {
964
+ "75%, 100%": {
965
+ transform: "scale(2)",
966
+ opacity: "0"
967
+ }
968
+ },
969
+ pulse: {
970
+ "50%": {
971
+ opacity: ".5"
972
+ }
973
+ },
974
+ bounce: {
975
+ "0%, 100%": {
976
+ transform: "translateY(-25%)",
977
+ animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
978
+ },
979
+ "50%": {
980
+ transform: "none",
981
+ animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
982
+ }
983
+ }
984
+ },
985
+ letterSpacing: {
986
+ tighter: "-0.05em",
987
+ tight: "-0.025em",
988
+ normal: "0em",
989
+ wide: "0.025em",
990
+ wider: "0.05em",
991
+ widest: "0.1em"
992
+ },
993
+ lineHeight: {
994
+ none: "1",
995
+ tight: "1.25",
996
+ snug: "1.375",
997
+ normal: "1.5",
998
+ relaxed: "1.625",
999
+ loose: "2",
1000
+ 3: ".75rem",
1001
+ 4: "1rem",
1002
+ 5: "1.25rem",
1003
+ 6: "1.5rem",
1004
+ 7: "1.75rem",
1005
+ 8: "2rem",
1006
+ 9: "2.25rem",
1007
+ 10: "2.5rem"
1008
+ },
1009
+ listStyleType: {
1010
+ none: "none",
1011
+ disc: "disc",
1012
+ decimal: "decimal"
1013
+ },
1014
+ listStyleImage: {
1015
+ none: "none"
1016
+ },
1017
+ margin: ({ theme: e }) => ({
1018
+ auto: "auto",
1019
+ ...e("spacing")
1020
+ }),
1021
+ lineClamp: {
1022
+ 1: "1",
1023
+ 2: "2",
1024
+ 3: "3",
1025
+ 4: "4",
1026
+ 5: "5",
1027
+ 6: "6"
1028
+ },
1029
+ maxHeight: ({ theme: e }) => ({
1030
+ ...e("spacing"),
1031
+ none: "none",
1032
+ full: "100%",
1033
+ screen: "100vh",
1034
+ min: "min-content",
1035
+ max: "max-content",
1036
+ fit: "fit-content"
1037
+ }),
1038
+ maxWidth: ({ theme: e, breakpoints: t }) => ({
1039
+ none: "none",
1040
+ 0: "0rem",
1041
+ xs: "20rem",
1042
+ sm: "24rem",
1043
+ md: "28rem",
1044
+ lg: "32rem",
1045
+ xl: "36rem",
1046
+ "2xl": "42rem",
1047
+ "3xl": "48rem",
1048
+ "4xl": "56rem",
1049
+ "5xl": "64rem",
1050
+ "6xl": "72rem",
1051
+ "7xl": "80rem",
1052
+ full: "100%",
1053
+ min: "min-content",
1054
+ max: "max-content",
1055
+ fit: "fit-content",
1056
+ prose: "65ch",
1057
+ ...t(e("screens"))
1058
+ }),
1059
+ minHeight: {
1060
+ 0: "0px",
1061
+ full: "100%",
1062
+ screen: "100vh",
1063
+ min: "min-content",
1064
+ max: "max-content",
1065
+ fit: "fit-content"
1066
+ },
1067
+ minWidth: {
1068
+ 0: "0px",
1069
+ full: "100%",
1070
+ min: "min-content",
1071
+ max: "max-content",
1072
+ fit: "fit-content"
1073
+ },
1074
+ objectPosition: {
1075
+ bottom: "bottom",
1076
+ center: "center",
1077
+ left: "left",
1078
+ "left-bottom": "left bottom",
1079
+ "left-top": "left top",
1080
+ right: "right",
1081
+ "right-bottom": "right bottom",
1082
+ "right-top": "right top",
1083
+ top: "top"
1084
+ },
1085
+ opacity: {
1086
+ 0: "0",
1087
+ 5: "0.05",
1088
+ 10: "0.1",
1089
+ 20: "0.2",
1090
+ 25: "0.25",
1091
+ 30: "0.3",
1092
+ 40: "0.4",
1093
+ 50: "0.5",
1094
+ 60: "0.6",
1095
+ 70: "0.7",
1096
+ 75: "0.75",
1097
+ 80: "0.8",
1098
+ 90: "0.9",
1099
+ 95: "0.95",
1100
+ 100: "1"
1101
+ },
1102
+ order: {
1103
+ first: "-9999",
1104
+ last: "9999",
1105
+ none: "0",
1106
+ 1: "1",
1107
+ 2: "2",
1108
+ 3: "3",
1109
+ 4: "4",
1110
+ 5: "5",
1111
+ 6: "6",
1112
+ 7: "7",
1113
+ 8: "8",
1114
+ 9: "9",
1115
+ 10: "10",
1116
+ 11: "11",
1117
+ 12: "12"
1118
+ },
1119
+ outlineColor: ({ theme: e }) => e("colors"),
1120
+ outlineOffset: {
1121
+ 0: "0px",
1122
+ 1: "1px",
1123
+ 2: "2px",
1124
+ 4: "4px",
1125
+ 8: "8px"
1126
+ },
1127
+ outlineWidth: {
1128
+ 0: "0px",
1129
+ 1: "1px",
1130
+ 2: "2px",
1131
+ 4: "4px",
1132
+ 8: "8px"
1133
+ },
1134
+ padding: ({ theme: e }) => e("spacing"),
1135
+ placeholderColor: ({ theme: e }) => e("colors"),
1136
+ placeholderOpacity: ({ theme: e }) => e("opacity"),
1137
+ ringColor: ({ theme: e }) => ({
1138
+ DEFAULT: e("colors.blue.500", "#3b82f6"),
1139
+ ...e("colors")
1140
+ }),
1141
+ ringOffsetColor: ({ theme: e }) => e("colors"),
1142
+ ringOffsetWidth: {
1143
+ 0: "0px",
1144
+ 1: "1px",
1145
+ 2: "2px",
1146
+ 4: "4px",
1147
+ 8: "8px"
1148
+ },
1149
+ ringOpacity: ({ theme: e }) => ({
1150
+ DEFAULT: "0.5",
1151
+ ...e("opacity")
1152
+ }),
1153
+ ringWidth: {
1154
+ DEFAULT: "3px",
1155
+ 0: "0px",
1156
+ 1: "1px",
1157
+ 2: "2px",
1158
+ 4: "4px",
1159
+ 8: "8px"
1160
+ },
1161
+ rotate: {
1162
+ 0: "0deg",
1163
+ 1: "1deg",
1164
+ 2: "2deg",
1165
+ 3: "3deg",
1166
+ 6: "6deg",
1167
+ 12: "12deg",
1168
+ 45: "45deg",
1169
+ 90: "90deg",
1170
+ 180: "180deg"
1171
+ },
1172
+ saturate: {
1173
+ 0: "0",
1174
+ 50: ".5",
1175
+ 100: "1",
1176
+ 150: "1.5",
1177
+ 200: "2"
1178
+ },
1179
+ scale: {
1180
+ 0: "0",
1181
+ 50: ".5",
1182
+ 75: ".75",
1183
+ 90: ".9",
1184
+ 95: ".95",
1185
+ 100: "1",
1186
+ 105: "1.05",
1187
+ 110: "1.1",
1188
+ 125: "1.25",
1189
+ 150: "1.5"
1190
+ },
1191
+ screens: {
1192
+ sm: "640px",
1193
+ md: "768px",
1194
+ lg: "1024px",
1195
+ xl: "1280px",
1196
+ "2xl": "1536px"
1197
+ },
1198
+ scrollMargin: ({ theme: e }) => ({
1199
+ ...e("spacing")
1200
+ }),
1201
+ scrollPadding: ({ theme: e }) => e("spacing"),
1202
+ sepia: {
1203
+ 0: "0",
1204
+ DEFAULT: "100%"
1205
+ },
1206
+ skew: {
1207
+ 0: "0deg",
1208
+ 1: "1deg",
1209
+ 2: "2deg",
1210
+ 3: "3deg",
1211
+ 6: "6deg",
1212
+ 12: "12deg"
1213
+ },
1214
+ space: ({ theme: e }) => ({
1215
+ ...e("spacing")
1216
+ }),
1217
+ spacing: {
1218
+ px: "1px",
1219
+ 0: "0px",
1220
+ 0.5: "0.125rem",
1221
+ 1: "0.25rem",
1222
+ 1.5: "0.375rem",
1223
+ 2: "0.5rem",
1224
+ 2.5: "0.625rem",
1225
+ 3: "0.75rem",
1226
+ 3.5: "0.875rem",
1227
+ 4: "1rem",
1228
+ 5: "1.25rem",
1229
+ 6: "1.5rem",
1230
+ 7: "1.75rem",
1231
+ 8: "2rem",
1232
+ 9: "2.25rem",
1233
+ 10: "2.5rem",
1234
+ 11: "2.75rem",
1235
+ 12: "3rem",
1236
+ 14: "3.5rem",
1237
+ 16: "4rem",
1238
+ 20: "5rem",
1239
+ 24: "6rem",
1240
+ 28: "7rem",
1241
+ 32: "8rem",
1242
+ 36: "9rem",
1243
+ 40: "10rem",
1244
+ 44: "11rem",
1245
+ 48: "12rem",
1246
+ 52: "13rem",
1247
+ 56: "14rem",
1248
+ 60: "15rem",
1249
+ 64: "16rem",
1250
+ 72: "18rem",
1251
+ 80: "20rem",
1252
+ 96: "24rem"
1253
+ },
1254
+ stroke: ({ theme: e }) => ({
1255
+ none: "none",
1256
+ ...e("colors")
1257
+ }),
1258
+ strokeWidth: {
1259
+ 0: "0",
1260
+ 1: "1",
1261
+ 2: "2"
1262
+ },
1263
+ supports: {},
1264
+ data: {},
1265
+ textColor: ({ theme: e }) => e("colors"),
1266
+ textDecorationColor: ({ theme: e }) => e("colors"),
1267
+ textDecorationThickness: {
1268
+ auto: "auto",
1269
+ "from-font": "from-font",
1270
+ 0: "0px",
1271
+ 1: "1px",
1272
+ 2: "2px",
1273
+ 4: "4px",
1274
+ 8: "8px"
1275
+ },
1276
+ textIndent: ({ theme: e }) => ({
1277
+ ...e("spacing")
1278
+ }),
1279
+ textOpacity: ({ theme: e }) => e("opacity"),
1280
+ textUnderlineOffset: {
1281
+ auto: "auto",
1282
+ 0: "0px",
1283
+ 1: "1px",
1284
+ 2: "2px",
1285
+ 4: "4px",
1286
+ 8: "8px"
1287
+ },
1288
+ transformOrigin: {
1289
+ center: "center",
1290
+ top: "top",
1291
+ "top-right": "top right",
1292
+ right: "right",
1293
+ "bottom-right": "bottom right",
1294
+ bottom: "bottom",
1295
+ "bottom-left": "bottom left",
1296
+ left: "left",
1297
+ "top-left": "top left"
1298
+ },
1299
+ transitionDelay: {
1300
+ 0: "0s",
1301
+ 75: "75ms",
1302
+ 100: "100ms",
1303
+ 150: "150ms",
1304
+ 200: "200ms",
1305
+ 300: "300ms",
1306
+ 500: "500ms",
1307
+ 700: "700ms",
1308
+ 1e3: "1000ms"
1309
+ },
1310
+ transitionDuration: {
1311
+ DEFAULT: "150ms",
1312
+ 0: "0s",
1313
+ 75: "75ms",
1314
+ 100: "100ms",
1315
+ 150: "150ms",
1316
+ 200: "200ms",
1317
+ 300: "300ms",
1318
+ 500: "500ms",
1319
+ 700: "700ms",
1320
+ 1e3: "1000ms"
1321
+ },
1322
+ transitionProperty: {
1323
+ none: "none",
1324
+ all: "all",
1325
+ DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
1326
+ colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
1327
+ opacity: "opacity",
1328
+ shadow: "box-shadow",
1329
+ transform: "transform"
1330
+ },
1331
+ transitionTimingFunction: {
1332
+ DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
1333
+ linear: "linear",
1334
+ in: "cubic-bezier(0.4, 0, 1, 1)",
1335
+ out: "cubic-bezier(0, 0, 0.2, 1)",
1336
+ "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
1337
+ },
1338
+ translate: ({ theme: e }) => ({
1339
+ ...e("spacing"),
1340
+ "1/2": "50%",
1341
+ "1/3": "33.333333%",
1342
+ "2/3": "66.666667%",
1343
+ "1/4": "25%",
1344
+ "2/4": "50%",
1345
+ "3/4": "75%",
1346
+ full: "100%"
1347
+ }),
1348
+ width: ({ theme: e }) => ({
1349
+ auto: "auto",
1350
+ ...e("spacing"),
1351
+ "1/2": "50%",
1352
+ "1/3": "33.333333%",
1353
+ "2/3": "66.666667%",
1354
+ "1/4": "25%",
1355
+ "2/4": "50%",
1356
+ "3/4": "75%",
1357
+ "1/5": "20%",
1358
+ "2/5": "40%",
1359
+ "3/5": "60%",
1360
+ "4/5": "80%",
1361
+ "1/6": "16.666667%",
1362
+ "2/6": "33.333333%",
1363
+ "3/6": "50%",
1364
+ "4/6": "66.666667%",
1365
+ "5/6": "83.333333%",
1366
+ "1/12": "8.333333%",
1367
+ "2/12": "16.666667%",
1368
+ "3/12": "25%",
1369
+ "4/12": "33.333333%",
1370
+ "5/12": "41.666667%",
1371
+ "6/12": "50%",
1372
+ "7/12": "58.333333%",
1373
+ "8/12": "66.666667%",
1374
+ "9/12": "75%",
1375
+ "10/12": "83.333333%",
1376
+ "11/12": "91.666667%",
1377
+ full: "100%",
1378
+ screen: "100vw",
1379
+ min: "min-content",
1380
+ max: "max-content",
1381
+ fit: "fit-content"
1382
+ }),
1383
+ willChange: {
1384
+ auto: "auto",
1385
+ scroll: "scroll-position",
1386
+ contents: "contents",
1387
+ transform: "transform"
1388
+ },
1389
+ zIndex: {
1390
+ auto: "auto",
1391
+ 0: "0",
1392
+ 10: "10",
1393
+ 20: "20",
1394
+ 30: "30",
1395
+ 40: "40",
1396
+ 50: "50"
1397
+ }
1398
+ },
1399
+ plugins: []
1400
+ };
1401
+ (function(e) {
1402
+ "use strict";
1403
+ Object.defineProperty(e, "__esModule", {
1404
+ value: !0
1405
+ }), Object.defineProperty(e, "default", {
1406
+ enumerable: !0,
1407
+ get: function() {
1408
+ return a;
1409
+ }
1410
+ });
1411
+ const t = $, r = /* @__PURE__ */ n(pe);
1412
+ function n(i) {
1413
+ return i && i.__esModule ? i : {
1414
+ default: i
1415
+ };
1416
+ }
1417
+ const a = (0, t.cloneDeep)(r.default.theme);
1418
+ })(D);
1419
+ let w = D;
1420
+ var me = (w.__esModule ? w : { default: w }).default;
1421
+ const T = /* @__PURE__ */ I(me), ue = (e, t = "c-") => {
1422
+ const r = l(e, "bodyTextLightColor", "#64748b"), n = l(e, "bodyTextDarkColor", "#94a3b8"), a = l(e, "bodyBgLightColor", "#FFFFFF"), i = l(e, "bodyBgDarkColor", "#0f172a");
1423
+ return `${t}font-body ${t}antialiased ${t}text-[${r}] ${t}bg-[${a}] dark:${t}text-[${n}] dark:${t}bg-[${i}]`;
1424
+ }, de = (e, t = "c-") => {
1425
+ const n = e.replace(x, "").split(",").map((a) => a.split(" ").map((s) => {
1426
+ if (s === "")
1427
+ return "";
1428
+ if (p(s, "hs-") || p(s, "[--") || p(s, "paddle"))
1429
+ return s;
1430
+ if (s.includes(":")) {
1431
+ const c = s.split(":");
1432
+ return c[c.length - 1] = t + q(c), c.join(":");
1433
+ }
1434
+ return `${t}${s}`;
1435
+ }).join(" "));
1436
+ return `${x}${n.join(" , ")}`;
1437
+ }, ge = (e, t) => e.map((r) => {
1438
+ const n = {};
1439
+ return Object.keys(r).forEach((a) => {
1440
+ X(r[a], x) && (n[a] = de(r[a], t));
1441
+ }), n;
1442
+ }), xe = (e, t, r = "c-") => {
1443
+ const n = ue(t, r);
1444
+ return fe(
1445
+ t,
1446
+ [Y(JSON.stringify(ge(e, r)), /#styles:/g, "")],
1447
+ n.split(" ").concat(`${r}inline-block`, `${r}w-full`, `${r}h-full`)
1448
+ );
1449
+ }, ze = async (e, t = "c-") => {
1450
+ const r = e.page.blocks;
1451
+ return await xe(r, e.project.brandingOptions, t);
1452
+ };
1453
+ async function fe(e, t, r = [], n = "c-") {
1454
+ const a = l(e, "primaryColor", "#000"), i = l(e, "secondaryColor", "#ccc"), o = l(e, "headingFont", "Inter"), s = l(e, "bodyFont", "Inter"), c = l(e, "roundedCorners", "0"), m = J({
1455
+ colors: [a, i],
1456
+ names: ["primary", "secondary"]
1457
+ });
1458
+ return d(m, "primary.DEFAULT", a), d(m, "secondary.DEFAULT", i), `${await G({
1459
+ tailwindConfig: {
1460
+ prefix: n,
1461
+ darkMode: "class",
1462
+ safelist: r,
1463
+ theme: {
1464
+ fontFamily: {
1465
+ heading: [o, ...T.fontFamily.sans],
1466
+ body: [s, ...T.fontFamily.sans]
1467
+ },
1468
+ extend: {
1469
+ borderRadius: {
1470
+ global: `${c || "0"}px`
1471
+ },
1472
+ colors: m
1473
+ }
1474
+ },
1475
+ plugins: [K, Q, Z, ee],
1476
+ corePlugins: { preflight: !1 }
1477
+ }
1478
+ }).generateStylesFromContent(
1479
+ ` @tailwind components;
1480
+ @tailwind utilities;`,
1481
+ t
1482
+ )} .${n}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${o}",${T.fontFamily.sans.join(
1483
+ ", "
1484
+ )};}`;
1485
+ }
1486
+ function De() {
225
1487
  return {
226
1488
  colors: {
227
1489
  border: "hsl(var(--border))",
@@ -279,18 +1541,18 @@ function R() {
279
1541
  }
280
1542
  };
281
1543
  }
282
- const z = (a) => ({ ...a }), H = (a) => ({ ...a });
1544
+ const $e = (e) => ({ ...e }), Ee = (e) => ({ ...e });
283
1545
  export {
284
- Z as addPrefixToClasses,
285
- R as chaiBuilderTheme,
286
- Y as cn,
287
- X as convertArbitraryToTailwindClass,
288
- K as generateUUID,
289
- J as getBlocksFromHTML,
290
- N as getBlocksTailwindCSS,
291
- ee as getBrandingClasses,
292
- q as getBreakpointValue,
293
- re as getStylesForPageData,
294
- z as selectable,
295
- H as styling
1546
+ de as addPrefixToClasses,
1547
+ De as chaiBuilderTheme,
1548
+ U as cn,
1549
+ Ae as convertArbitraryToTailwindClass,
1550
+ E as generateUUID,
1551
+ Le as getBlocksFromHTML,
1552
+ xe as getBlocksTailwindCSS,
1553
+ ue as getBrandingClasses,
1554
+ Ie as getBreakpointValue,
1555
+ ze as getStylesForPageData,
1556
+ $e as selectable,
1557
+ Ee as styling
296
1558
  };