@billgangcom/theme-lib 1.2.0 → 1.3.0
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/align-bottom-B6qXcF_P.js +5 -0
- package/dist/align-bottom-BNcdAnw9.cjs +1 -0
- package/dist/align-top-BGk9vlUd.cjs +1 -0
- package/dist/align-top-CMearyFH.js +5 -0
- package/dist/builder.cjs.js +2 -2
- package/dist/builder.es.js +2 -2
- package/dist/index-YVaQxWXR.cjs +34 -0
- package/dist/{index-SOBckDON.js → index-dSkEANl1.js} +468 -465
- package/dist/shared/ui/Input/index.d.ts +1 -0
- package/dist/text-align-left-BBdqQ7N2.js +5 -0
- package/dist/text-align-left-BLq4Pvg1.cjs +1 -0
- package/dist/text-bold-BqCslwM8.cjs +1 -0
- package/dist/text-bold-CkfsPLSD.js +5 -0
- package/dist/text-code-CdpLXZEo.cjs +1 -0
- package/dist/text-code-Omig8KTZ.js +5 -0
- package/dist/text-italic-B6DlWITY.js +5 -0
- package/dist/text-italic-DgM86CDI.cjs +1 -0
- package/dist/text-strike-through-BPd9vRCE.js +5 -0
- package/dist/text-strike-through-DUrcRZUF.cjs +1 -0
- package/dist/text-underline-BMJdubuO.js +5 -0
- package/dist/text-underline-CwR9adlS.cjs +1 -0
- package/dist/ui/LayoutSettings/index.d.ts +10 -0
- package/dist/ui/TextSettings/index.d.ts +14 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +154 -13
- package/package.json +2 -2
- package/dist/index-3IJeySWj.cjs +0 -34
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M3 6C3 5.80109 3.07902 5.61032 3.21967 5.46967C3.36032 5.32902 3.55109 5.25 3.75 5.25H20.25C20.4489 5.25 20.6397 5.32902 20.7803 5.46967C20.921 5.61032 21 5.80109 21 6C21 6.19891 20.921 6.38968 20.7803 6.53033C20.6397 6.67098 20.4489 6.75 20.25 6.75H3.75C3.55109 6.75 3.36032 6.67098 3.21967 6.53033C3.07902 6.38968 3 6.19891 3 6ZM3.75 10.5H15.75C15.9489 10.5 16.1397 10.421 16.2803 10.2803C16.421 10.1397 16.5 9.94891 16.5 9.75C16.5 9.55109 16.421 9.36032 16.2803 9.21967C16.1397 9.07902 15.9489 9 15.75 9H3.75C3.55109 9 3.36032 9.07902 3.21967 9.21967C3.07902 9.36032 3 9.55109 3 9.75C3 9.94891 3.07902 10.1397 3.21967 10.2803C3.36032 10.421 3.55109 10.5 3.75 10.5ZM20.25 12.75H3.75C3.55109 12.75 3.36032 12.829 3.21967 12.9697C3.07902 13.1103 3 13.3011 3 13.5C3 13.6989 3.07902 13.8897 3.21967 14.0303C3.36032 14.171 3.55109 14.25 3.75 14.25H20.25C20.4489 14.25 20.6397 14.171 20.7803 14.0303C20.921 13.8897 21 13.6989 21 13.5C21 13.3011 20.921 13.1103 20.7803 12.9697C20.6397 12.829 20.4489 12.75 20.25 12.75ZM15.75 16.5H3.75C3.55109 16.5 3.36032 16.579 3.21967 16.7197C3.07902 16.8603 3 17.0511 3 17.25C3 17.4489 3.07902 17.6397 3.21967 17.7803C3.36032 17.921 3.55109 18 3.75 18H15.75C15.9489 18 16.1397 17.921 16.2803 17.7803C16.421 17.6397 16.5 17.4489 16.5 17.25C16.5 17.0511 16.421 16.8603 16.2803 16.7197C16.1397 16.579 15.9489 16.5 15.75 16.5Z", fill: "currentColor" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(C,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return C.default=e,Object.freeze(C)}const r=c(o),l=e=>r.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M3 6C3 5.80109 3.07902 5.61032 3.21967 5.46967C3.36032 5.32902 3.55109 5.25 3.75 5.25H20.25C20.4489 5.25 20.6397 5.32902 20.7803 5.46967C20.921 5.61032 21 5.80109 21 6C21 6.19891 20.921 6.38968 20.7803 6.53033C20.6397 6.67098 20.4489 6.75 20.25 6.75H3.75C3.55109 6.75 3.36032 6.67098 3.21967 6.53033C3.07902 6.38968 3 6.19891 3 6ZM3.75 10.5H15.75C15.9489 10.5 16.1397 10.421 16.2803 10.2803C16.421 10.1397 16.5 9.94891 16.5 9.75C16.5 9.55109 16.421 9.36032 16.2803 9.21967C16.1397 9.07902 15.9489 9 15.75 9H3.75C3.55109 9 3.36032 9.07902 3.21967 9.21967C3.07902 9.36032 3 9.55109 3 9.75C3 9.94891 3.07902 10.1397 3.21967 10.2803C3.36032 10.421 3.55109 10.5 3.75 10.5ZM20.25 12.75H3.75C3.55109 12.75 3.36032 12.829 3.21967 12.9697C3.07902 13.1103 3 13.3011 3 13.5C3 13.6989 3.07902 13.8897 3.21967 14.0303C3.36032 14.171 3.55109 14.25 3.75 14.25H20.25C20.4489 14.25 20.6397 14.171 20.7803 14.0303C20.921 13.8897 21 13.6989 21 13.5C21 13.3011 20.921 13.1103 20.7803 12.9697C20.6397 12.829 20.4489 12.75 20.25 12.75ZM15.75 16.5H3.75C3.55109 16.5 3.36032 16.579 3.21967 16.7197C3.07902 16.8603 3 17.0511 3 17.25C3 17.4489 3.07902 17.6397 3.21967 17.7803C3.36032 17.921 3.55109 18 3.75 18H15.75C15.9489 18 16.1397 17.921 16.2803 17.7803C16.421 17.6397 16.5 17.4489 16.5 17.25C16.5 17.0511 16.421 16.8603 16.2803 16.7197C16.1397 16.579 15.9489 16.5 15.75 16.5Z",fill:"currentColor"}));exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=l(c),C=e=>o.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M13.3188 9.03906C13.8124 8.56386 14.1528 7.95195 14.2962 7.2819C14.4396 6.61184 14.3795 5.91422 14.1236 5.27858C13.8676 4.64295 13.4276 4.0983 12.8599 3.71457C12.2922 3.33084 11.6227 3.12553 10.9375 3.125H5.625C5.45924 3.125 5.30027 3.19085 5.18306 3.30806C5.06585 3.42527 5 3.58424 5 3.75V15.625C5 15.7908 5.06585 15.9497 5.18306 16.0669C5.30027 16.1842 5.45924 16.25 5.625 16.25H11.875C12.7418 16.25 13.5818 15.9497 14.2522 15.4003C14.9225 14.8508 15.3819 14.0861 15.552 13.2362C15.7222 12.3863 15.5927 11.5037 15.1855 10.7385C14.7784 9.97329 14.1187 9.37277 13.3188 9.03906ZM6.25 4.375H10.9375C11.5177 4.375 12.0741 4.60547 12.4843 5.0157C12.8945 5.42594 13.125 5.98234 13.125 6.5625C13.125 7.14266 12.8945 7.69906 12.4843 8.1093C12.0741 8.51953 11.5177 8.75 10.9375 8.75H6.25V4.375ZM11.875 15H6.25V10H11.875C12.538 10 13.1739 10.2634 13.6428 10.7322C14.1116 11.2011 14.375 11.837 14.375 12.5C14.375 13.163 14.1116 13.7989 13.6428 14.2678C13.1739 14.7366 12.538 15 11.875 15Z",fill:"#252525"}));exports.default=C;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M13.3188 9.03906C13.8124 8.56386 14.1528 7.95195 14.2962 7.2819C14.4396 6.61184 14.3795 5.91422 14.1236 5.27858C13.8676 4.64295 13.4276 4.0983 12.8599 3.71457C12.2922 3.33084 11.6227 3.12553 10.9375 3.125H5.625C5.45924 3.125 5.30027 3.19085 5.18306 3.30806C5.06585 3.42527 5 3.58424 5 3.75V15.625C5 15.7908 5.06585 15.9497 5.18306 16.0669C5.30027 16.1842 5.45924 16.25 5.625 16.25H11.875C12.7418 16.25 13.5818 15.9497 14.2522 15.4003C14.9225 14.8508 15.3819 14.0861 15.552 13.2362C15.7222 12.3863 15.5927 11.5037 15.1855 10.7385C14.7784 9.97329 14.1187 9.37277 13.3188 9.03906ZM6.25 4.375H10.9375C11.5177 4.375 12.0741 4.60547 12.4843 5.0157C12.8945 5.42594 13.125 5.98234 13.125 6.5625C13.125 7.14266 12.8945 7.69906 12.4843 8.1093C12.0741 8.51953 11.5177 8.75 10.9375 8.75H6.25V4.375ZM11.875 15H6.25V10H11.875C12.538 10 13.1739 10.2634 13.6428 10.7322C14.1116 11.2011 14.375 11.837 14.375 12.5C14.375 13.163 14.1116 13.7989 13.6428 14.2678C13.1739 14.7366 12.538 15 11.875 15Z", fill: "#252525" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(C,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return C.default=e,Object.freeze(C)}const r=c(o),l=e=>r.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M7.29051 5.46879L2.18816 10L7.28738 14.5313C7.34894 14.5858 7.39916 14.6518 7.43519 14.7257C7.47121 14.7996 7.49233 14.8799 7.49733 14.9619C7.50234 15.044 7.49113 15.1262 7.46436 15.2039C7.43759 15.2816 7.39577 15.3533 7.34129 15.4149C7.28681 15.4764 7.22074 15.5267 7.14685 15.5627C7.07296 15.5987 6.9927 15.6198 6.91066 15.6248C6.82861 15.6298 6.74637 15.6186 6.66866 15.5919C6.59094 15.5651 6.51925 15.5233 6.45769 15.4688L0.832695 10.4688C0.766191 10.4101 0.712928 10.338 0.676445 10.2572C0.639962 10.1764 0.621094 10.0887 0.621094 10C0.621094 9.91137 0.639962 9.82371 0.676445 9.74289C0.712928 9.66207 0.766191 9.58994 0.832695 9.53129L6.45769 4.53129C6.51925 4.47661 6.59098 4.43458 6.66877 4.40762C6.74657 4.38066 6.82892 4.36928 6.91111 4.37414C6.99331 4.379 7.07374 4.4 7.14782 4.43595C7.22189 4.47189 7.28817 4.52208 7.34285 4.58363C7.39753 4.64519 7.43956 4.71692 7.46652 4.79471C7.49348 4.87251 7.50486 4.95486 7.5 5.03705C7.49514 5.11925 7.47414 5.19968 7.43819 5.27376C7.40225 5.34784 7.35206 5.41411 7.29051 5.46879ZM19.1655 9.53129L13.5405 4.53129C13.4162 4.42127 13.2533 4.36514 13.0875 4.37525C12.9218 4.38535 12.7669 4.46088 12.6569 4.5852C12.5469 4.70952 12.4908 4.87245 12.5009 5.03816C12.511 5.20386 12.5865 5.35877 12.7108 5.46879L17.8132 10L12.7139 14.5313C12.6524 14.5858 12.6022 14.6518 12.5661 14.7257C12.5301 14.7996 12.509 14.8799 12.504 14.9619C12.499 15.044 12.5102 15.1262 12.537 15.2039C12.5637 15.2816 12.6056 15.3533 12.66 15.4149C12.7145 15.4764 12.7806 15.5267 12.8545 15.5627C12.9284 15.5987 13.0086 15.6198 13.0907 15.6248C13.1727 15.6298 13.255 15.6186 13.3327 15.5919C13.4104 15.5651 13.4821 15.5233 13.5436 15.4688L19.1686 10.4688C19.2351 10.4101 19.2884 10.338 19.3249 10.2572C19.3614 10.1764 19.3802 10.0887 19.3802 10C19.3802 9.91137 19.3614 9.82371 19.3249 9.74289C19.2884 9.66207 19.2351 9.58994 19.1686 9.53129H19.1655Z",fill:"#757575"}));exports.default=l;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M7.29051 5.46879L2.18816 10L7.28738 14.5313C7.34894 14.5858 7.39916 14.6518 7.43519 14.7257C7.47121 14.7996 7.49233 14.8799 7.49733 14.9619C7.50234 15.044 7.49113 15.1262 7.46436 15.2039C7.43759 15.2816 7.39577 15.3533 7.34129 15.4149C7.28681 15.4764 7.22074 15.5267 7.14685 15.5627C7.07296 15.5987 6.9927 15.6198 6.91066 15.6248C6.82861 15.6298 6.74637 15.6186 6.66866 15.5919C6.59094 15.5651 6.51925 15.5233 6.45769 15.4688L0.832695 10.4688C0.766191 10.4101 0.712928 10.338 0.676445 10.2572C0.639962 10.1764 0.621094 10.0887 0.621094 10C0.621094 9.91137 0.639962 9.82371 0.676445 9.74289C0.712928 9.66207 0.766191 9.58994 0.832695 9.53129L6.45769 4.53129C6.51925 4.47661 6.59098 4.43458 6.66877 4.40762C6.74657 4.38066 6.82892 4.36928 6.91111 4.37414C6.99331 4.379 7.07374 4.4 7.14782 4.43595C7.22189 4.47189 7.28817 4.52208 7.34285 4.58363C7.39753 4.64519 7.43956 4.71692 7.46652 4.79471C7.49348 4.87251 7.50486 4.95486 7.5 5.03705C7.49514 5.11925 7.47414 5.19968 7.43819 5.27376C7.40225 5.34784 7.35206 5.41411 7.29051 5.46879ZM19.1655 9.53129L13.5405 4.53129C13.4162 4.42127 13.2533 4.36514 13.0875 4.37525C12.9218 4.38535 12.7669 4.46088 12.6569 4.5852C12.5469 4.70952 12.4908 4.87245 12.5009 5.03816C12.511 5.20386 12.5865 5.35877 12.7108 5.46879L17.8132 10L12.7139 14.5313C12.6524 14.5858 12.6022 14.6518 12.5661 14.7257C12.5301 14.7996 12.509 14.8799 12.504 14.9619C12.499 15.044 12.5102 15.1262 12.537 15.2039C12.5637 15.2816 12.6056 15.3533 12.66 15.4149C12.7145 15.4764 12.7806 15.5267 12.8545 15.5627C12.9284 15.5987 13.0086 15.6198 13.0907 15.6248C13.1727 15.6298 13.255 15.6186 13.3327 15.5919C13.4104 15.5651 13.4821 15.5233 13.5436 15.4688L19.1686 10.4688C19.2351 10.4101 19.2884 10.338 19.3249 10.2572C19.3614 10.1764 19.3802 10.0887 19.3802 10C19.3802 9.91137 19.3614 9.82371 19.3249 9.74289C19.2884 9.66207 19.2351 9.58994 19.1686 9.53129H19.1655Z", fill: "#757575" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = (C) => /* @__PURE__ */ t.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ t.createElement("path", { d: "M15.625 4.375C15.625 4.54076 15.5592 4.69973 15.4419 4.81694C15.3247 4.93415 15.1658 5 15 5H12.3258L8.99219 15H11.25C11.4158 15 11.5747 15.0658 11.6919 15.1831C11.8092 15.3003 11.875 15.4592 11.875 15.625C11.875 15.7908 11.8092 15.9497 11.6919 16.0669C11.5747 16.1842 11.4158 16.25 11.25 16.25H5C4.83424 16.25 4.67527 16.1842 4.55806 16.0669C4.44085 15.9497 4.375 15.7908 4.375 15.625C4.375 15.4592 4.44085 15.3003 4.55806 15.1831C4.67527 15.0658 4.83424 15 5 15H7.67422L11.0078 5H8.75C8.58424 5 8.42527 4.93415 8.30806 4.81694C8.19085 4.69973 8.125 4.54076 8.125 4.375C8.125 4.20924 8.19085 4.05027 8.30806 3.93306C8.42527 3.81585 8.58424 3.75 8.75 3.75H15C15.1658 3.75 15.3247 3.81585 15.4419 3.93306C15.5592 4.05027 15.625 4.20924 15.625 4.375Z", fill: "#757575" }));
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=l(o),a=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.625 4.375C15.625 4.54076 15.5592 4.69973 15.4419 4.81694C15.3247 4.93415 15.1658 5 15 5H12.3258L8.99219 15H11.25C11.4158 15 11.5747 15.0658 11.6919 15.1831C11.8092 15.3003 11.875 15.4592 11.875 15.625C11.875 15.7908 11.8092 15.9497 11.6919 16.0669C11.5747 16.1842 11.4158 16.25 11.25 16.25H5C4.83424 16.25 4.67527 16.1842 4.55806 16.0669C4.44085 15.9497 4.375 15.7908 4.375 15.625C4.375 15.4592 4.44085 15.3003 4.55806 15.1831C4.67527 15.0658 4.83424 15 5 15H7.67422L11.0078 5H8.75C8.58424 5 8.42527 4.93415 8.30806 4.81694C8.19085 4.69973 8.125 4.54076 8.125 4.375C8.125 4.20924 8.19085 4.05027 8.30806 3.93306C8.42527 3.81585 8.58424 3.75 8.75 3.75H15C15.1658 3.75 15.3247 3.81585 15.4419 3.93306C15.5592 4.05027 15.625 4.20924 15.625 4.375Z",fill:"#757575"}));exports.default=a;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M17.5 10C17.5 10.1658 17.4342 10.3247 17.3169 10.4419C17.1997 10.5592 17.0408 10.625 16.875 10.625H13.7445C14.4625 11.1805 15 11.9688 15 13.125C15 14.1672 14.4531 15.1328 13.457 15.843C12.5258 16.5086 11.2977 16.875 10 16.875C8.70234 16.875 7.47422 16.5086 6.54297 15.843C5.54688 15.1328 5 14.1672 5 13.125C5 12.9592 5.06585 12.8003 5.18306 12.6831C5.30027 12.5658 5.45924 12.5 5.625 12.5C5.79076 12.5 5.94973 12.5658 6.06694 12.6831C6.18415 12.8003 6.25 12.9592 6.25 13.125C6.25 14.4805 7.96875 15.625 10 15.625C12.0312 15.625 13.75 14.4805 13.75 13.125C13.75 11.9648 12.9266 11.2828 10.7211 10.625H3.125C2.95924 10.625 2.80027 10.5592 2.68306 10.4419C2.56585 10.3247 2.5 10.1658 2.5 10C2.5 9.83424 2.56585 9.67527 2.68306 9.55806C2.80027 9.44085 2.95924 9.375 3.125 9.375H16.875C17.0408 9.375 17.1997 9.44085 17.3169 9.55806C17.4342 9.67527 17.5 9.83424 17.5 10ZM5.96328 8.125C6.06209 8.12509 6.1595 8.10176 6.24754 8.05691C6.33558 8.01206 6.41174 7.94698 6.46976 7.867C6.52777 7.78703 6.566 7.69444 6.58131 7.59683C6.59662 7.49922 6.58857 7.39937 6.55781 7.30547C6.51308 7.16643 6.49118 7.02105 6.49297 6.875C6.49297 5.45 8.00078 4.375 10 4.375C11.4719 4.375 12.6687 4.95469 13.2031 5.92578C13.2875 6.06177 13.4209 6.1602 13.5758 6.20076C13.7306 6.24132 13.8951 6.22093 14.0353 6.14379C14.1756 6.06666 14.2809 5.93865 14.3296 5.78617C14.3782 5.63368 14.3665 5.46834 14.2969 5.32422C13.5414 3.94688 11.9352 3.125 10 3.125C7.28828 3.125 5.24297 4.73672 5.24297 6.875C5.24164 7.15314 5.28436 7.42975 5.36953 7.69453C5.41052 7.81969 5.49001 7.9287 5.59663 8.00601C5.70326 8.08331 5.83158 8.12496 5.96328 8.125Z", fill: "#757575" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(C,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return C.default=e,Object.freeze(C)}const n=c(o),l=e=>n.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M17.5 10C17.5 10.1658 17.4342 10.3247 17.3169 10.4419C17.1997 10.5592 17.0408 10.625 16.875 10.625H13.7445C14.4625 11.1805 15 11.9688 15 13.125C15 14.1672 14.4531 15.1328 13.457 15.843C12.5258 16.5086 11.2977 16.875 10 16.875C8.70234 16.875 7.47422 16.5086 6.54297 15.843C5.54688 15.1328 5 14.1672 5 13.125C5 12.9592 5.06585 12.8003 5.18306 12.6831C5.30027 12.5658 5.45924 12.5 5.625 12.5C5.79076 12.5 5.94973 12.5658 6.06694 12.6831C6.18415 12.8003 6.25 12.9592 6.25 13.125C6.25 14.4805 7.96875 15.625 10 15.625C12.0312 15.625 13.75 14.4805 13.75 13.125C13.75 11.9648 12.9266 11.2828 10.7211 10.625H3.125C2.95924 10.625 2.80027 10.5592 2.68306 10.4419C2.56585 10.3247 2.5 10.1658 2.5 10C2.5 9.83424 2.56585 9.67527 2.68306 9.55806C2.80027 9.44085 2.95924 9.375 3.125 9.375H16.875C17.0408 9.375 17.1997 9.44085 17.3169 9.55806C17.4342 9.67527 17.5 9.83424 17.5 10ZM5.96328 8.125C6.06209 8.12509 6.1595 8.10176 6.24754 8.05691C6.33558 8.01206 6.41174 7.94698 6.46976 7.867C6.52777 7.78703 6.566 7.69444 6.58131 7.59683C6.59662 7.49922 6.58857 7.39937 6.55781 7.30547C6.51308 7.16643 6.49118 7.02105 6.49297 6.875C6.49297 5.45 8.00078 4.375 10 4.375C11.4719 4.375 12.6687 4.95469 13.2031 5.92578C13.2875 6.06177 13.4209 6.1602 13.5758 6.20076C13.7306 6.24132 13.8951 6.22093 14.0353 6.14379C14.1756 6.06666 14.2809 5.93865 14.3296 5.78617C14.3782 5.63368 14.3665 5.46834 14.2969 5.32422C13.5414 3.94688 11.9352 3.125 10 3.125C7.28828 3.125 5.24297 4.73672 5.24297 6.875C5.24164 7.15314 5.28436 7.42975 5.36953 7.69453C5.41052 7.81969 5.49001 7.9287 5.59663 8.00601C5.70326 8.08331 5.83158 8.12496 5.96328 8.125Z",fill:"#757575"}));exports.default=l;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M15.625 17.5C15.625 17.6658 15.5592 17.8247 15.4419 17.9419C15.3247 18.0592 15.1658 18.125 15 18.125H5C4.83424 18.125 4.67527 18.0592 4.55806 17.9419C4.44085 17.8247 4.375 17.6658 4.375 17.5C4.375 17.3342 4.44085 17.1753 4.55806 17.0581C4.67527 16.9408 4.83424 16.875 5 16.875H15C15.1658 16.875 15.3247 16.9408 15.4419 17.0581C15.5592 17.1753 15.625 17.3342 15.625 17.5ZM10 15.625C11.3256 15.6236 12.5966 15.0963 13.5339 14.1589C14.4713 13.2216 14.9986 11.9506 15 10.625V4.375C15 4.20924 14.9342 4.05027 14.8169 3.93306C14.6997 3.81585 14.5408 3.75 14.375 3.75C14.2092 3.75 14.0503 3.81585 13.9331 3.93306C13.8158 4.05027 13.75 4.20924 13.75 4.375V10.625C13.75 11.6196 13.3549 12.5734 12.6517 13.2767C11.9484 13.9799 10.9946 14.375 10 14.375C9.00544 14.375 8.05161 13.9799 7.34835 13.2767C6.64509 12.5734 6.25 11.6196 6.25 10.625V4.375C6.25 4.20924 6.18415 4.05027 6.06694 3.93306C5.94973 3.81585 5.79076 3.75 5.625 3.75C5.45924 3.75 5.30027 3.81585 5.18306 3.93306C5.06585 4.05027 5 4.20924 5 4.375V10.625C5.00145 11.9506 5.5287 13.2216 6.46606 14.1589C7.40343 15.0963 8.67436 15.6236 10 15.625Z", fill: "#757575" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const C=c(o),l=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15.625 17.5C15.625 17.6658 15.5592 17.8247 15.4419 17.9419C15.3247 18.0592 15.1658 18.125 15 18.125H5C4.83424 18.125 4.67527 18.0592 4.55806 17.9419C4.44085 17.8247 4.375 17.6658 4.375 17.5C4.375 17.3342 4.44085 17.1753 4.55806 17.0581C4.67527 16.9408 4.83424 16.875 5 16.875H15C15.1658 16.875 15.3247 16.9408 15.4419 17.0581C15.5592 17.1753 15.625 17.3342 15.625 17.5ZM10 15.625C11.3256 15.6236 12.5966 15.0963 13.5339 14.1589C14.4713 13.2216 14.9986 11.9506 15 10.625V4.375C15 4.20924 14.9342 4.05027 14.8169 3.93306C14.6997 3.81585 14.5408 3.75 14.375 3.75C14.2092 3.75 14.0503 3.81585 13.9331 3.93306C13.8158 4.05027 13.75 4.20924 13.75 4.375V10.625C13.75 11.6196 13.3549 12.5734 12.6517 13.2767C11.9484 13.9799 10.9946 14.375 10 14.375C9.00544 14.375 8.05161 13.9799 7.34835 13.2767C6.64509 12.5734 6.25 11.6196 6.25 10.625V4.375C6.25 4.20924 6.18415 4.05027 6.06694 3.93306C5.94973 3.81585 5.79076 3.75 5.625 3.75C5.45924 3.75 5.30027 3.81585 5.18306 3.93306C5.06585 4.05027 5 4.20924 5 4.375V10.625C5.00145 11.9506 5.5287 13.2216 6.46606 14.1589C7.40343 15.0963 8.67436 15.6236 10 15.625Z",fill:"#757575"}));exports.default=l;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Alignment = 'left' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'center' | 'bottomLeft' | 'bottomRight';
|
|
2
|
+
export type Padding = 'left' | 'top' | 'right' | 'bottom';
|
|
3
|
+
interface Props {
|
|
4
|
+
alignment: string;
|
|
5
|
+
padding: Record<Padding, number>;
|
|
6
|
+
setAlignment: React.Dispatch<React.SetStateAction<Alignment>>;
|
|
7
|
+
setPadding: React.Dispatch<React.SetStateAction<Record<Padding, number>>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutSettings: React.FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TextType = 'bold' | 'italic' | 'underline' | 'strike-through' | 'code';
|
|
3
|
+
interface Props {
|
|
4
|
+
typeText: TextType;
|
|
5
|
+
setTypeText: React.Dispatch<React.SetStateAction<TextType>>;
|
|
6
|
+
isActiveText: boolean;
|
|
7
|
+
setIsActiveText: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
text: string;
|
|
9
|
+
setText: React.Dispatch<React.SetStateAction<string>>;
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const TextSettings: React.FC<Props>;
|
|
14
|
+
export {};
|
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-YVaQxWXR.cjs");require("react");const u="_wrapper_o1bnv_2",_="_alignmentBlock_o1bnv_8",h="_title_o1bnv_16",g="_subtitle_o1bnv_23",j="_alignmentContent_o1bnv_30",b="_alignments_o1bnv_37",v="_alignment_o1bnv_8",R="_circle_o1bnv_56",E="_paddings_o1bnv_63",k="_padding_o1bnv_63",T="_input_o1bnv_81",s={wrapper:u,alignmentBlock:_,title:h,subtitle:g,alignmentContent:j,alignments:b,alignment:v,circle:R,paddings:E,padding:k,input:T},N=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],y=["left","top","right","bottom"],S=c=>{const{alignment:o,padding:a,setPadding:x,setAlignment:r}=c;return t.jsxRuntimeExports.jsxs("div",{className:s.layout,children:[t.jsxRuntimeExports.jsx("h3",{className:s.title,children:"Layout"}),t.jsxRuntimeExports.jsxs("div",{className:s.alignmentBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:s.subtitle,children:"Alignment"}),t.jsxRuntimeExports.jsxs("div",{className:s.alignmentContent,children:[t.jsxRuntimeExports.jsx("div",{className:s.alignments,children:N.map(e=>t.jsxRuntimeExports.jsxs("div",{onClick:()=>{console.log(e,o),r(l=>(console.log(l,e),e))},className:s.alignment,children:[e!==o&&t.jsxRuntimeExports.jsx("div",{className:s.circle}),e===o&&t.jsxRuntimeExports.jsx(t.Icon,{name:"text-align-left",fill:"#FF3F19"})]},e))}),t.jsxRuntimeExports.jsx("div",{className:s.paddings,children:y.map(e=>t.jsxRuntimeExports.jsxs("label",{className:s.padding,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:`align-${e}`,width:20,height:20})}),t.jsxRuntimeExports.jsx(t.Input,{type:"text",value:String(a[e]),onChange:l=>x(m=>({...m,[e]:Number(l)})),paddingless:!0})]}))})]})]})]})},C="_subtitle_1hhz4_1",B="_header_1hhz4_8",I="_text_1hhz4_9",f="_top_1hhz4_16",w="_itemsBlock_1hhz4_23",z="_typeTexts_1hhz4_29",P="_block_1hhz4_35",L="_active_1hhz4_46",i={subtitle:C,header:B,text:I,top:f,itemsBlock:w,typeTexts:z,block:P,active:L},$=["bold","italic","underline","strike-through","code"],A=c=>{const{typeText:o,isActiveText:a,setIsActiveText:x,text:r,setText:e,setTypeText:l,title:m,subtitle:p="Items"}=c;return t.jsxRuntimeExports.jsxs("div",{className:i.text,children:[t.jsxRuntimeExports.jsxs("div",{className:i.top,children:[t.jsxRuntimeExports.jsx("h3",{className:i.title,children:m}),t.jsxRuntimeExports.jsx(t.Switch,{current:a,onChange:n=>x(d=>n)})]}),t.jsxRuntimeExports.jsxs("div",{className:i.itemsBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:i.subtitle,children:p}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:n=>e(d=>n),value:r,maxLength:150}),t.jsxRuntimeExports.jsx("div",{className:i.typeTexts,children:$.map(n=>t.jsxRuntimeExports.jsx("div",{className:t.clx(i.block,{[i.active]:o===n}),onClick:()=>l(d=>n),children:t.jsxRuntimeExports.jsx(t.Icon,{name:`text-${n}`,fill:o===n?"#252525":"#757575",width:20,height:20})},String(n)))})]})]})};exports.Button=t.Button;exports.ColorPicker=t.ColorPicker;exports.Icon=t.Icon;exports.Input=t.Input;exports.Modal=t.Modal;exports.Picker=t.Picker;exports.Radio=t.Radio;exports.Select=t.Select;exports.Submodal=t.Submodal;exports.Switch=t.Switch;exports.Textarea=t.Textarea;exports.Tip=t.Tip;exports.LayoutSettings=S;exports.TextSettings=A;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,15 +1,156 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as t, I as h, a as x, S as p, T as b, c as v } from "./index-dSkEANl1.js";
|
|
2
|
+
import { B as Q, C as U, M as V, P as W, R as X, b as Y, d as Z, e as tt } from "./index-dSkEANl1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
const u = "_wrapper_o1bnv_2", j = "_alignmentBlock_o1bnv_8", N = "_title_o1bnv_16", k = "_subtitle_o1bnv_23", T = "_alignmentContent_o1bnv_30", y = "_alignments_o1bnv_37", C = "_alignment_o1bnv_8", B = "_circle_o1bnv_56", f = "_paddings_o1bnv_63", z = "_padding_o1bnv_63", S = "_input_o1bnv_81", s = {
|
|
5
|
+
wrapper: u,
|
|
6
|
+
alignmentBlock: j,
|
|
7
|
+
title: N,
|
|
8
|
+
subtitle: k,
|
|
9
|
+
alignmentContent: T,
|
|
10
|
+
alignments: y,
|
|
11
|
+
alignment: C,
|
|
12
|
+
circle: B,
|
|
13
|
+
paddings: f,
|
|
14
|
+
padding: z,
|
|
15
|
+
input: S
|
|
16
|
+
}, w = [
|
|
17
|
+
"topLeft",
|
|
18
|
+
"top",
|
|
19
|
+
"topRight",
|
|
20
|
+
"left",
|
|
21
|
+
"center",
|
|
22
|
+
"right",
|
|
23
|
+
"bottomLeft",
|
|
24
|
+
"bottom",
|
|
25
|
+
"bottomRight"
|
|
26
|
+
], $ = ["left", "top", "right", "bottom"], G = (c) => {
|
|
27
|
+
const { alignment: i, padding: o, setPadding: d, setAlignment: r } = c;
|
|
28
|
+
return /* @__PURE__ */ t.jsxs("div", { className: s.layout, children: [
|
|
29
|
+
/* @__PURE__ */ t.jsx("h3", { className: s.title, children: "Layout" }),
|
|
30
|
+
/* @__PURE__ */ t.jsxs("div", { className: s.alignmentBlock, children: [
|
|
31
|
+
/* @__PURE__ */ t.jsx("h5", { className: s.subtitle, children: "Alignment" }),
|
|
32
|
+
/* @__PURE__ */ t.jsxs("div", { className: s.alignmentContent, children: [
|
|
33
|
+
/* @__PURE__ */ t.jsx("div", { className: s.alignments, children: w.map((e) => /* @__PURE__ */ t.jsxs(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
onClick: () => {
|
|
37
|
+
console.log(e, i), r((l) => (console.log(l, e), e));
|
|
38
|
+
},
|
|
39
|
+
className: s.alignment,
|
|
40
|
+
children: [
|
|
41
|
+
e !== i && /* @__PURE__ */ t.jsx("div", { className: s.circle }),
|
|
42
|
+
e === i && /* @__PURE__ */ t.jsx(
|
|
43
|
+
h,
|
|
44
|
+
{
|
|
45
|
+
name: "text-align-left",
|
|
46
|
+
fill: "#FF3F19"
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
e
|
|
52
|
+
)) }),
|
|
53
|
+
/* @__PURE__ */ t.jsx("div", { className: s.paddings, children: $.map((e) => /* @__PURE__ */ t.jsxs("label", { className: s.padding, children: [
|
|
54
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
55
|
+
h,
|
|
56
|
+
{
|
|
57
|
+
name: `align-${e}`,
|
|
58
|
+
width: 20,
|
|
59
|
+
height: 20
|
|
60
|
+
}
|
|
61
|
+
) }),
|
|
62
|
+
/* @__PURE__ */ t.jsx(
|
|
63
|
+
x,
|
|
64
|
+
{
|
|
65
|
+
type: "text",
|
|
66
|
+
value: String(o[e]),
|
|
67
|
+
onChange: (l) => d((_) => ({
|
|
68
|
+
..._,
|
|
69
|
+
[e]: Number(l)
|
|
70
|
+
})),
|
|
71
|
+
paddingless: !0
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })) })
|
|
75
|
+
] })
|
|
76
|
+
] })
|
|
77
|
+
] });
|
|
78
|
+
}, I = "_subtitle_1hhz4_1", L = "_header_1hhz4_8", P = "_text_1hhz4_9", R = "_top_1hhz4_16", A = "_itemsBlock_1hhz4_23", F = "_typeTexts_1hhz4_29", M = "_block_1hhz4_35", O = "_active_1hhz4_46", a = {
|
|
79
|
+
subtitle: I,
|
|
80
|
+
header: L,
|
|
81
|
+
text: P,
|
|
82
|
+
top: R,
|
|
83
|
+
itemsBlock: A,
|
|
84
|
+
typeTexts: F,
|
|
85
|
+
block: M,
|
|
86
|
+
active: O
|
|
87
|
+
}, E = ["bold", "italic", "underline", "strike-through", "code"], H = (c) => {
|
|
88
|
+
const {
|
|
89
|
+
typeText: i,
|
|
90
|
+
isActiveText: o,
|
|
91
|
+
setIsActiveText: d,
|
|
92
|
+
text: r,
|
|
93
|
+
setText: e,
|
|
94
|
+
setTypeText: l,
|
|
95
|
+
title: _,
|
|
96
|
+
subtitle: m = "Items"
|
|
97
|
+
} = c;
|
|
98
|
+
return /* @__PURE__ */ t.jsxs("div", { className: a.text, children: [
|
|
99
|
+
/* @__PURE__ */ t.jsxs("div", { className: a.top, children: [
|
|
100
|
+
/* @__PURE__ */ t.jsx("h3", { className: a.title, children: _ }),
|
|
101
|
+
/* @__PURE__ */ t.jsx(
|
|
102
|
+
p,
|
|
103
|
+
{
|
|
104
|
+
current: o,
|
|
105
|
+
onChange: (n) => d((g) => n)
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ t.jsxs("div", { className: a.itemsBlock, children: [
|
|
110
|
+
/* @__PURE__ */ t.jsx("h5", { className: a.subtitle, children: m }),
|
|
111
|
+
/* @__PURE__ */ t.jsx(
|
|
112
|
+
b,
|
|
113
|
+
{
|
|
114
|
+
onChange: (n) => e((g) => n),
|
|
115
|
+
value: r,
|
|
116
|
+
maxLength: 150
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ t.jsx("div", { className: a.typeTexts, children: E.map((n) => /* @__PURE__ */ t.jsx(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: v(a.block, {
|
|
123
|
+
[a.active]: i === n
|
|
124
|
+
}),
|
|
125
|
+
onClick: () => l((g) => n),
|
|
126
|
+
children: /* @__PURE__ */ t.jsx(
|
|
127
|
+
h,
|
|
128
|
+
{
|
|
129
|
+
name: `text-${n}`,
|
|
130
|
+
fill: i === n ? "#252525" : "#757575",
|
|
131
|
+
width: 20,
|
|
132
|
+
height: 20
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
},
|
|
136
|
+
String(n)
|
|
137
|
+
)) })
|
|
138
|
+
] })
|
|
139
|
+
] });
|
|
140
|
+
};
|
|
2
141
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
p as
|
|
14
|
-
|
|
142
|
+
Q as Button,
|
|
143
|
+
U as ColorPicker,
|
|
144
|
+
h as Icon,
|
|
145
|
+
x as Input,
|
|
146
|
+
G as LayoutSettings,
|
|
147
|
+
V as Modal,
|
|
148
|
+
W as Picker,
|
|
149
|
+
X as Radio,
|
|
150
|
+
Y as Select,
|
|
151
|
+
Z as Submodal,
|
|
152
|
+
p as Switch,
|
|
153
|
+
H as TextSettings,
|
|
154
|
+
b as Textarea,
|
|
155
|
+
tt as Tip
|
|
15
156
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@billgangcom/theme-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"./ui": {
|
|
20
20
|
"import": "./dist/ui.es.js",
|
|
21
21
|
"require": "./dist/ui.umd.js",
|
|
22
|
-
"types": "./dist/
|
|
22
|
+
"types": "./dist/ui/index.d.ts"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
package/dist/index-3IJeySWj.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";const T=require("react");function ot(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ce={exports:{}},ee={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Qe;function Ft(){if(Qe)return ee;Qe=1;var r=T,t=Symbol.for("react.element"),s=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(f,u,p){var d,y={},E=null,x=null;p!==void 0&&(E=""+p),u.key!==void 0&&(E=""+u.key),u.ref!==void 0&&(x=u.ref);for(d in u)n.call(u,d)&&!o.hasOwnProperty(d)&&(y[d]=u[d]);if(f&&f.defaultProps)for(d in u=f.defaultProps,u)y[d]===void 0&&(y[d]=u[d]);return{$$typeof:t,type:f,key:E,ref:x,props:y,_owner:a.current}}return ee.Fragment=s,ee.jsx=c,ee.jsxs=c,ee}var te={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var et;function Dt(){return et||(et=1,process.env.NODE_ENV!=="production"&&function(){var r=T,t=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),S=Symbol.iterator,g="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var i=S&&e[S]||e[g];return typeof i=="function"?i:null}var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var i=arguments.length,l=new Array(i>1?i-1:0),v=1;v<i;v++)l[v-1]=arguments[v];q("error",e,l)}}function q(e,i,l){{var v=w.ReactDebugCurrentFrame,k=v.getStackAddendum();k!==""&&(i+="%s",l=l.concat([k]));var P=l.map(function(_){return String(_)});P.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,P)}}var L=!1,K=!1,G=!1,pe=!1,ne=!1,oe;oe=Symbol.for("react.module.reference");function F(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===o||ne||e===a||e===p||e===d||pe||e===x||L||K||G||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===y||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===oe||e.getModuleId!==void 0))}function D(e,i,l){var v=e.displayName;if(v)return v;var k=i.displayName||i.name||"";return k!==""?l+"("+k+")":l}function he(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case s:return"Portal";case o:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var i=e;return he(i)+".Consumer";case c:var l=e;return he(l._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case y:var v=e.displayName||null;return v!==null?v:$(e.type)||"Memo";case E:{var k=e,P=k._payload,_=k._init;try{return $(_(P))}catch{return null}}}return null}var U=Object.assign,X=0,Te,qe,Ie,Be,Ne,Ae,Fe;function De(){}De.__reactDisabledLog=!0;function ut(){{if(X===0){Te=console.log,qe=console.info,Ie=console.warn,Be=console.error,Ne=console.group,Ae=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}X++}}function dt(){{if(X--,X===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},e,{value:Te}),info:U({},e,{value:qe}),warn:U({},e,{value:Ie}),error:U({},e,{value:Be}),group:U({},e,{value:Ne}),groupCollapsed:U({},e,{value:Ae}),groupEnd:U({},e,{value:Fe})})}X<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=w.ReactCurrentDispatcher,ge;function ie(e,i,l){{if(ge===void 0)try{throw Error()}catch(k){var v=k.stack.trim().match(/\n( *(at )?)/);ge=v&&v[1]||""}return`
|
|
18
|
-
`+ge+e}}var be=!1,ae;{var ft=typeof WeakMap=="function"?WeakMap:Map;ae=new ft}function $e(e,i){if(!e||be)return"";{var l=ae.get(e);if(l!==void 0)return l}var v;be=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=me.current,me.current=null,ut();try{if(i){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(B){v=B}Reflect.construct(e,[],_)}else{try{_.call()}catch(B){v=B}e.call(_.prototype)}}else{try{throw Error()}catch(B){v=B}e()}}catch(B){if(B&&v&&typeof B.stack=="string"){for(var b=B.stack.split(`
|
|
19
|
-
`),I=v.stack.split(`
|
|
20
|
-
`),R=b.length-1,C=I.length-1;R>=1&&C>=0&&b[R]!==I[C];)C--;for(;R>=1&&C>=0;R--,C--)if(b[R]!==I[C]){if(R!==1||C!==1)do if(R--,C--,C<0||b[R]!==I[C]){var N=`
|
|
21
|
-
`+b[R].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,N),N}while(R>=1&&C>=0);break}}}finally{be=!1,me.current=P,dt(),Error.prepareStackTrace=k}var J=e?e.displayName||e.name:"",W=J?ie(J):"";return typeof e=="function"&&ae.set(e,W),W}function vt(e,i,l){return $e(e,!1)}function pt(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function le(e,i,l){if(e==null)return"";if(typeof e=="function")return $e(e,pt(e));if(typeof e=="string")return ie(e);switch(e){case p:return ie("Suspense");case d:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return vt(e.render);case y:return le(e.type,i,l);case E:{var v=e,k=v._payload,P=v._init;try{return le(P(k),i,l)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,Me={},Le=w.ReactDebugCurrentFrame;function ce(e){if(e){var i=e._owner,l=le(e.type,e._source,i?i.type:null);Le.setExtraStackFrame(l)}else Le.setExtraStackFrame(null)}function ht(e,i,l,v,k){{var P=Function.call.bind(Z);for(var _ in e)if(P(e,_)){var b=void 0;try{if(typeof e[_]!="function"){var I=Error((v||"React class")+": "+l+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}b=e[_](i,_,v,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){b=R}b&&!(b instanceof Error)&&(ce(k),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",l,_,typeof b),ce(null)),b instanceof Error&&!(b.message in Me)&&(Me[b.message]=!0,ce(k),m("Failed %s type: %s",l,b.message),ce(null))}}}var mt=Array.isArray;function _e(e){return mt(e)}function gt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,l=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function bt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function Ue(e){if(bt(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gt(e)),Ve(e)}var Q=w.ReactCurrentOwner,_t={key:!0,ref:!0,__self:!0,__source:!0},We,ze,ye;ye={};function yt(e){if(Z.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(Z.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function kt(e,i){if(typeof e.ref=="string"&&Q.current&&i&&Q.current.stateNode!==i){var l=$(Q.current.type);ye[l]||(m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(Q.current.type),e.ref),ye[l]=!0)}}function St(e,i){{var l=function(){We||(We=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function Pt(e,i){{var l=function(){ze||(ze=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var xt=function(e,i,l,v,k,P,_){var b={$$typeof:t,type:e,key:i,ref:l,props:_,_owner:P};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Et(e,i,l,v,k){{var P,_={},b=null,I=null;l!==void 0&&(Ue(l),b=""+l),wt(i)&&(Ue(i.key),b=""+i.key),yt(i)&&(I=i.ref,kt(i,k));for(P in i)Z.call(i,P)&&!_t.hasOwnProperty(P)&&(_[P]=i[P]);if(e&&e.defaultProps){var R=e.defaultProps;for(P in R)_[P]===void 0&&(_[P]=R[P])}if(b||I){var C=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&St(_,C),I&&Pt(_,C)}return xt(e,b,I,k,v,Q.current,_)}}var we=w.ReactCurrentOwner,Ye=w.ReactDebugCurrentFrame;function H(e){if(e){var i=e._owner,l=le(e.type,e._source,i?i.type:null);Ye.setExtraStackFrame(l)}else Ye.setExtraStackFrame(null)}var ke;ke=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function He(){{if(we.current){var e=$(we.current.type);if(e)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function Rt(e){return""}var Je={};function Ct(e){{var i=He();if(!i){var l=typeof e=="string"?e:e.displayName||e.name;l&&(i=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+l+">.")}return i}}function Ke(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=Ct(i);if(Je[l])return;Je[l]=!0;var v="";e&&e._owner&&e._owner!==we.current&&(v=" It was passed a child from "+$(e._owner.type)+"."),H(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,v),H(null)}}function Ge(e,i){{if(typeof e!="object")return;if(_e(e))for(var l=0;l<e.length;l++){var v=e[l];Se(v)&&Ke(v,i)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var k=O(e);if(typeof k=="function"&&k!==e.entries)for(var P=k.call(e),_;!(_=P.next()).done;)Se(_.value)&&Ke(_.value,i)}}}function jt(e){{var i=e.type;if(i==null||typeof i=="string")return;var l;if(typeof i=="function")l=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===u||i.$$typeof===y))l=i.propTypes;else return;if(l){var v=$(i);ht(l,e.props,"prop",v,e)}else if(i.PropTypes!==void 0&&!ke){ke=!0;var k=$(i);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var i=Object.keys(e.props),l=0;l<i.length;l++){var v=i[l];if(v!=="children"&&v!=="key"){H(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),H(null);break}}e.ref!==null&&(H(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}var Xe={};function Ze(e,i,l,v,k,P){{var _=F(e);if(!_){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var I=Rt();I?b+=I:b+=He();var R;e===null?R="null":_e(e)?R="array":e!==void 0&&e.$$typeof===t?(R="<"+($(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,b)}var C=Et(e,i,l,k,P);if(C==null)return C;if(_){var N=i.children;if(N!==void 0)if(v)if(_e(N)){for(var J=0;J<N.length;J++)Ge(N[J],e);Object.freeze&&Object.freeze(N)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(N,e)}if(Z.call(i,"key")){var W=$(e),B=Object.keys(i).filter(function(At){return At!=="key"}),Pe=B.length>0?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}";if(!Xe[W+Pe]){var Nt=B.length>0?"{"+B.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Pe,W,Nt,W),Xe[W+Pe]=!0}}return e===n?Ot(C):jt(C),C}}function Tt(e,i,l){return Ze(e,i,l,!0)}function qt(e,i,l){return Ze(e,i,l,!1)}var It=qt,Bt=Tt;te.Fragment=n,te.jsx=It,te.jsxs=Bt}()),te}process.env.NODE_ENV==="production"?Ce.exports=Ft():Ce.exports=Dt();var h=Ce.exports;const tt=r=>{let t;const s=new Set,n=(p,d)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const E=t;t=d??(typeof y!="object"||y===null)?y:Object.assign({},t,y),s.forEach(x=>x(t,E))}},a=()=>t,f={setState:n,getState:a,getInitialState:()=>u,subscribe:p=>(s.add(p),()=>s.delete(p))},u=t=r(n,a,f);return f},$t=r=>r?tt(r):tt,Mt=r=>r;function Lt(r,t=Mt){const s=T.useSyncExternalStore(r.subscribe,()=>t(r.getState()),()=>t(r.getInitialState()));return T.useDebugValue(s),s}const rt=r=>{const t=$t(r),s=n=>Lt(t,n);return Object.assign(s,t),s},A=r=>r?rt(r):rt,Vt=A(r=>({blocks:{},setBlocks:t=>r(()=>({blocks:t})),activeBlock:null,setActiveBlock:t=>r(()=>({activeBlock:t})),sourceBlocks:{},setSourceBlocks:t=>r(()=>({sourceBlocks:t}))})),Ut=A(r=>({currentDevice:"desktop",setCurrentDevice:t=>r(()=>({currentDevice:t}))}));A(r=>({pageData:null,setPageData:t=>r(()=>({pageData:t}))}));const it=[{icon:"layers",name:"Layers"},{icon:"plus",name:"Add"},{icon:"palette",name:"Theme"},{icon:"settings",name:"Settings"}],Wt=Array.from({length:122/2+1},(r,t)=>String(6+t*2)),zt=["100","200","300","400","500","600","700","800","900"],Yt=["home","reviews","faqs","contact","product","ticket","login"],Ht={home:{path:"/",name:"home",icon:"house",seo:{description:"",title:""},visibility:"public"},product:{path:"/product",name:"product",icon:"squares",seo:{description:"",title:""},visibility:"public"},faqs:{path:"/faqs",name:"faqs",icon:"faqs",seo:{description:"",title:""},visibility:"public"},reviews:{path:"/reviews",name:"reviews",icon:"star",seo:{description:"",title:""},visibility:"public"},contact:{path:"/contact",name:"contact",icon:"chat",seo:{description:"",title:""},visibility:"public"},ticket:{path:"/ticket",name:"ticket",icon:"ticket",seo:{description:"",title:""},visibility:"public"},login:{path:"/login",name:"login",icon:"user-circle-gear",seo:{description:"",title:""},visibility:"public"}},Jt=A(r=>({activeBlock:it[0],setActiveBlock:t=>r(()=>({activeBlock:t}))}));function Kt(r,t){let s;try{s=r()}catch{return}return{getItem:a=>{var o;const c=u=>u===null?null:JSON.parse(u,void 0),f=(o=s.getItem(a))!=null?o:null;return f instanceof Promise?f.then(c):c(f)},setItem:(a,o)=>s.setItem(a,JSON.stringify(o,void 0)),removeItem:a=>s.removeItem(a)}}const je=r=>t=>{try{const s=r(t);return s instanceof Promise?s:{then(n){return je(n)(s)},catch(n){return this}}}catch(s){return{then(n){return this},catch(n){return je(n)(s)}}}},Gt=(r,t)=>(s,n,a)=>{let o={storage:Kt(()=>localStorage),partialize:g=>g,version:0,merge:(g,O)=>({...O,...g}),...t},c=!1;const f=new Set,u=new Set;let p=o.storage;if(!p)return r((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),s(...g)},n,a);const d=()=>{const g=o.partialize({...n()});return p.setItem(o.name,{state:g,version:o.version})},y=a.setState;a.setState=(g,O)=>{y(g,O),d()};const E=r((...g)=>{s(...g),d()},n,a);a.getInitialState=()=>E;let x;const S=()=>{var g,O;if(!p)return;c=!1,f.forEach(m=>{var q;return m((q=n())!=null?q:E)});const w=((O=o.onRehydrateStorage)==null?void 0:O.call(o,(g=n())!=null?g:E))||void 0;return je(p.getItem.bind(p))(o.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==o.version){if(o.migrate)return[!0,o.migrate(m.state,m.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,m.state];return[!1,void 0]}).then(m=>{var q;const[L,K]=m;if(x=o.merge(K,(q=n())!=null?q:E),s(x,!0),L)return d()}).then(()=>{w==null||w(x,void 0),x=n(),c=!0,u.forEach(m=>m(x))}).catch(m=>{w==null||w(void 0,m)})};return a.persist={setOptions:g=>{o={...o,...g},g.storage&&(p=g.storage)},clearStorage:()=>{p==null||p.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>S(),hasHydrated:()=>c,onHydrate:g=>(f.add(g),()=>{f.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},o.skipHydration||S(),x||E},ve=Gt,Xt=A(ve(r=>({onPreview:!1,setOnPreview:t=>r(()=>({onPreview:t})),activeBlock:null,setActiveBlock:t=>r(()=>({activeBlock:t}))}),{name:"preview-storage",partialize:r=>{const{onPreview:t}=r;return{onPreview:t}}}));var j=[];for(var xe=0;xe<256;++xe)j.push((xe+256).toString(16).slice(1));function Zt(r,t=0){return(j[r[t+0]]+j[r[t+1]]+j[r[t+2]]+j[r[t+3]]+"-"+j[r[t+4]]+j[r[t+5]]+"-"+j[r[t+6]]+j[r[t+7]]+"-"+j[r[t+8]]+j[r[t+9]]+"-"+j[r[t+10]]+j[r[t+11]]+j[r[t+12]]+j[r[t+13]]+j[r[t+14]]+j[r[t+15]]).toLowerCase()}var ue,Qt=new Uint8Array(16);function er(){if(!ue&&(ue=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ue))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ue(Qt)}var tr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const st={randomUUID:tr};function Oe(r,t,s){if(st.randomUUID&&!t&&!r)return st.randomUUID();r=r||{};var n=r.random||(r.rng||er)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Zt(n)}const rr=A(ve((r,t)=>({blocks:{home:{},contact:{},product:{},faqs:{},reviews:{},ticket:{},login:{}},currentBlock:null,positionBlock:null,createPage:s=>{const n=t().blocks;n[s]={},r({blocks:n})},deletePage:s=>{const n=t().blocks;delete n[s],r({blocks:n})},updatePage:(s,n)=>{const a=t().blocks;if(a[n])return;const o=a[s];delete a[s],a[n]=o,r({blocks:a})},setCurrentBlock:s=>{r({currentBlock:s})},setPositionBlock:s=>{r({positionBlock:s})},addBlock:(s,n)=>{const a=t().blocks,o=a[s]||{},c=t().positionBlock,f=Oe(),u=Object.keys(o);if(c===null||c>=u.length)o[f]={name:n.name,value:{...n.value}},r({blocks:{...a,[s]:o}});else{const p={name:n.name,value:{...n.value}},d=u.slice(0,c),y=u.slice(c),E={...d.reduce((x,S)=>(x[S]=o[S],x),{}),[f]:p,...y.reduce((x,S)=>(x[S]=o[S],x),{})};r({blocks:{...a,[s]:E}})}},editBlock:(s,n,a)=>{const o=t().blocks,c=o[s]||{};c[n]={name:a.name,value:{...a.value}},r({blocks:{...o,[s]:c}})},removeBlock:(s,n)=>{const a=t().blocks,o=a[s]||{};delete o[n],r({blocks:{...a,[s]:o}})},moveBlock:(s,n,a)=>r(o=>{const c={...o.blocks[s]},f=Object.keys(c),[u]=f.splice(n,1);f.splice(a,0,u);const p=f.reduce((d,y)=>(d[y]=c[y],d),{});return{blocks:{...o.blocks,[s]:p}}}),duplicateBlock:(s,n)=>{const{blocks:a}=t(),o=a[s],c=o[n],f=Oe(),u={name:c.name,value:{...c.value}},p=Object.keys(o),d=p.indexOf(n),y=p.slice(0,d+1),E=p.slice(d+1),x={...y.reduce((S,g)=>(S[g]=o[g],S),{}),[f]:u,...E.reduce((S,g)=>(S[g]=o[g],S),{})};r({blocks:{...a,[s]:x}})}}),{name:"layers-storage",partialize:r=>{const{blocks:t}=r;return{blocks:t}}})),at=A((r,t)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,showModal:s=>{t().hideTimeout&&clearTimeout(t().hideTimeout),r({isModalVisible:!0,hoverBlockId:s})},hideModal:()=>{r({isModalVisible:!1,hoverBlockId:null})},startHideTimeout:()=>{if(!t().isMouseOverModal){const s=setTimeout(()=>{r({isModalVisible:!1,hoverBlockId:null})},500);r({hideTimeout:s})}},clearHideTimeout:()=>{t().hideTimeout&&(clearTimeout(t().hideTimeout),r({hideTimeout:null}))},setMouseOverModal:s=>{r({isMouseOverModal:s})},isPreviewVisible:!1,showPreview:s=>{r({isPreviewVisible:!0,hoverBlockId:s})},hidePreview:()=>{r({isPreviewVisible:!1,hoverBlockId:null})}})),sr=A(r=>({activeBlock:null,setActiveBlock:t=>r(()=>({activeBlock:t})),activeFont:null,setActiveFont:t=>r(()=>({activeFont:t})),themeSettings:{colors:{brand:{primary:"#fefefe",secondary:"#fefefe",toner:"#ffffff"},background:{primary:"#fefefe",secondary:"#000000"},text_icons:{primary:"#000000",secondary:"#fefefe",tertiary:"#fefefe",disabled:"#ffffff"},lines:{divider:"#000000",border:"#fefefe"},others:{link:"#000000"}},fonts:{heading:{h1:{font:"Archivo",weight:"900",size:48},h2:{font:"Archivo",weight:"700",size:32},h3:{font:"Archivo",weight:"600",size:24},h4:{font:"Archivo",weight:"500",size:16},h5:{font:"Archivo",weight:"400",size:16},h6:{font:"Archivo",weight:"400",size:16}},paragraph:{text:{font:"Archivo",size:48,weight:"400"}}},borders:{radius:52,thickness:52},buttons:{size:26,alignment:"left",radius:32,height:40},inputs:{general:{height:48,name:"Style Name",size:48,color:"black"},field:{active:!0,color:"black",opacity:40},border:{active:!0,style:"solid",radius:0,thickness:0,color:"black"},label:{height:48,size:48,color:"black",alignment:"left"}}},updateColor:(t,s,n)=>r(a=>{const o={...a.themeSettings.colors,[t]:{...a.themeSettings.colors[t],[s]:n}};return{themeSettings:{...a.themeSettings,colors:o}}}),updateFont:(t,s,n,a)=>r(o=>{const c={...o.themeSettings.fonts,[t]:{...o.themeSettings.fonts[t],[s]:{...o.themeSettings.fonts[t][s],[n]:a}}};return{themeSettings:{...o.themeSettings,fonts:c}}}),updateBorder:(t,s)=>r(n=>{const a={...n.themeSettings.borders,[t]:s};return{themeSettings:{...n.themeSettings,borders:a}}}),updateButton:(t,s)=>r(n=>{const a={...n.themeSettings.buttons,[t]:s};return{themeSettings:{...n.themeSettings,buttons:a}}}),updateInput:(t,s,n)=>r(a=>({themeSettings:{...a.themeSettings,inputs:{...a.themeSettings.inputs,[t]:{...a.themeSettings.inputs[t],[n]:s}}}}))})),nr=A(ve(r=>({fonts:[],setFonts:t=>r(()=>({fonts:t}))}),{name:"fonts-storage"})),or=A(r=>({settings:null,setSettings:t=>r(()=>({settings:t}))})),lt=A()(r=>({color:"default",initialColor:"",setInitialColor:t=>r(()=>({initialColor:t})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,setModalPosition:t=>r(()=>({modalPosition:t})),setHue:t=>r(()=>({hue:t})),setSaturation:t=>r(()=>({saturation:t})),setBrightness:t=>r(()=>({brightness:t})),setShowModal:t=>r(()=>({showModal:t})),setDragging:t=>r(()=>({dragging:t})),setActiveLabel:t=>r(()=>({activeLabel:t})),setColor:t=>r(()=>({color:t})),setUpdate:t=>r(()=>({update:t})),setColorChange:t=>r(()=>({colorChange:t}))})),ir=A(ve((r,t)=>({pages:Ht,currentPage:"home",pageContext:{listings:void 0,products:void 0,reviews:void 0,categories:void 0,faqs:void 0,general:void 0},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:s=>r(()=>({editedPage:s})),setCurrentPage:s=>r(()=>({currentPage:s})),setPageContext:s=>r(()=>({pageContext:s})),setIsOpenModal:s=>r(()=>({isOpenModal:s})),setIsOpenSelectModal:s=>r(()=>({isOpenSelectModal:s})),setIsEdit:s=>r(()=>({isEdit:s})),createPage:s=>{const n=t().pages,a=Oe();n[a]=s,r({pages:n})},updatePage:(s,n)=>{const a=t().pages;a[s]={...n},r({pages:a})},deletePage:s=>{const n=t().pages;delete n[s],r({pages:n})}}),{name:"pages-storage",partialize:r=>{const{pages:t}=r;return{pages:t}}})),ar=(r,t,s)=>{const n=r[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((a,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==s?". Note that variables only represent file names one level deep.":""))))})},lr="_icon_21b8w_1",cr="_hoverable_21b8w_5",nt={icon:lr,hoverable:cr};var ct={exports:{}};/*!
|
|
31
|
-
Copyright (c) 2018 Jed Watson.
|
|
32
|
-
Licensed under the MIT License (MIT), see
|
|
33
|
-
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(r){(function(){var t={}.hasOwnProperty;function s(){for(var o="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(o=a(o,n(f)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return s.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var f in o)t.call(o,f)&&o[f]&&(c=a(c,f));return c}function a(o,c){return c?o?o+" "+c:o+c:o}r.exports?(s.default=s,r.exports=s):window.classNames=s})()})(ct);var ur=ct.exports;const M=ot(ur),se=r=>{const{name:t,fill:s="currentColor",hoverable:n=!1,onClick:a,className:o,width:c,height:f}=r,[u,p]=T.useState(null);return T.useEffect(()=>{(async()=>{try{const{default:y}=await ar(Object.assign({"../../../assets/icons/align-center.svg":()=>Promise.resolve().then(()=>require("./align-center-DEANXdAS.cjs")),"../../../assets/icons/align-left.svg":()=>Promise.resolve().then(()=>require("./align-left-Cm-uab8B.cjs")),"../../../assets/icons/align-right.svg":()=>Promise.resolve().then(()=>require("./align-right-3l34PJVv.cjs")),"../../../assets/icons/arrow-down.svg":()=>Promise.resolve().then(()=>require("./arrow-down-BVZ1P_L9.cjs")),"../../../assets/icons/arrow-left.svg":()=>Promise.resolve().then(()=>require("./arrow-left-CXb5pfjn.cjs")),"../../../assets/icons/arrow-preview-down.svg":()=>Promise.resolve().then(()=>require("./arrow-preview-down-DaEiSgZ5.cjs")),"../../../assets/icons/arrow-preview-up.svg":()=>Promise.resolve().then(()=>require("./arrow-preview-up-DaNjYolK.cjs")),"../../../assets/icons/arrow-right.svg":()=>Promise.resolve().then(()=>require("./arrow-right-QxBPnNiY.cjs")),"../../../assets/icons/arrow-square.svg":()=>Promise.resolve().then(()=>require("./arrow-square-BQEpI5Xn.cjs")),"../../../assets/icons/arrow-up-right.svg":()=>Promise.resolve().then(()=>require("./arrow-up-right-BAHL0rjI.cjs")),"../../../assets/icons/border-dashed.svg":()=>Promise.resolve().then(()=>require("./border-dashed-hzn9HgjT.cjs")),"../../../assets/icons/border-solid.svg":()=>Promise.resolve().then(()=>require("./border-solid-7GLUyhD0.cjs")),"../../../assets/icons/cards.svg":()=>Promise.resolve().then(()=>require("./cards-DsOTH3J4.cjs")),"../../../assets/icons/chat.svg":()=>Promise.resolve().then(()=>require("./chat-B_av70HO.cjs")),"../../../assets/icons/check.svg":()=>Promise.resolve().then(()=>require("./check-b4m73KG0.cjs")),"../../../assets/icons/copy.svg":()=>Promise.resolve().then(()=>require("./copy-D4o494-8.cjs")),"../../../assets/icons/corners-out.svg":()=>Promise.resolve().then(()=>require("./corners-out-4-FEW-w_.cjs")),"../../../assets/icons/desktop.svg":()=>Promise.resolve().then(()=>require("./desktop-BaS7MtSb.cjs")),"../../../assets/icons/faqs.svg":()=>Promise.resolve().then(()=>require("./faqs-BqOuvjUH.cjs")),"../../../assets/icons/file.svg":()=>Promise.resolve().then(()=>require("./file-8wBLPxbL.cjs")),"../../../assets/icons/font.svg":()=>Promise.resolve().then(()=>require("./font-DkMBoXe1.cjs")),"../../../assets/icons/globe.svg":()=>Promise.resolve().then(()=>require("./globe-Dc76Xp4l.cjs")),"../../../assets/icons/heading.svg":()=>Promise.resolve().then(()=>require("./heading-CPq36T7M.cjs")),"../../../assets/icons/house.svg":()=>Promise.resolve().then(()=>require("./house-CZ2u4ZpK.cjs")),"../../../assets/icons/info-circle.svg":()=>Promise.resolve().then(()=>require("./info-circle-DxyEtmA8.cjs")),"../../../assets/icons/layers.svg":()=>Promise.resolve().then(()=>require("./layers-D-nS2yjm.cjs")),"../../../assets/icons/lock.svg":()=>Promise.resolve().then(()=>require("./lock-BmgYa3ZA.cjs")),"../../../assets/icons/mobile.svg":()=>Promise.resolve().then(()=>require("./mobile-jT12AeF2.cjs")),"../../../assets/icons/paint.svg":()=>Promise.resolve().then(()=>require("./paint-onR-PyLb.cjs")),"../../../assets/icons/palette.svg":()=>Promise.resolve().then(()=>require("./palette-BOR3Eq6r.cjs")),"../../../assets/icons/paragraph.svg":()=>Promise.resolve().then(()=>require("./paragraph-BYRArpHX.cjs")),"../../../assets/icons/plus.svg":()=>Promise.resolve().then(()=>require("./plus-7zIw2qu6.cjs")),"../../../assets/icons/radius.svg":()=>Promise.resolve().then(()=>require("./radius-CRLmETG0.cjs")),"../../../assets/icons/redo.svg":()=>Promise.resolve().then(()=>require("./redo-C-M_xJyP.cjs")),"../../../assets/icons/search.svg":()=>Promise.resolve().then(()=>require("./search-kPFRd0TJ.cjs")),"../../../assets/icons/settings.svg":()=>Promise.resolve().then(()=>require("./settings-BqG-9m9d.cjs")),"../../../assets/icons/sign-out.svg":()=>Promise.resolve().then(()=>require("./sign-out-vR-y-Fk7.cjs")),"../../../assets/icons/squares.svg":()=>Promise.resolve().then(()=>require("./squares-BaUyzSBO.cjs")),"../../../assets/icons/star.svg":()=>Promise.resolve().then(()=>require("./star-DX6bHsl_.cjs")),"../../../assets/icons/tablet.svg":()=>Promise.resolve().then(()=>require("./tablet-BvEDp-eu.cjs")),"../../../assets/icons/textbox.svg":()=>Promise.resolve().then(()=>require("./textbox-CeYJQP_1.cjs")),"../../../assets/icons/thickness.svg":()=>Promise.resolve().then(()=>require("./thickness-DSnQHY5N.cjs")),"../../../assets/icons/ticket.svg":()=>Promise.resolve().then(()=>require("./ticket-BFI6P_1c.cjs")),"../../../assets/icons/trash.svg":()=>Promise.resolve().then(()=>require("./trash-Cy0hsvys.cjs")),"../../../assets/icons/undo.svg":()=>Promise.resolve().then(()=>require("./undo-D2eH1UgJ.cjs")),"../../../assets/icons/user-circle-gear.svg":()=>Promise.resolve().then(()=>require("./user-circle-gear-DeMV7Apx.cjs")),"../../../assets/icons/x.svg":()=>Promise.resolve().then(()=>require("./x-DW1UBLIF.cjs")),"../../../assets/icons/zoom-minus.svg":()=>Promise.resolve().then(()=>require("./zoom-minus-TiFzxDhk.cjs"))}),`../../../assets/icons/${t}.svg`,6);p(()=>y)}catch{console.error(`Icon "${t}" not found in assets.`),p(null)}})()},[t]),u?h.jsx(u,{fill:s,style:{"--icon-fill":s},className:M(nt.icon,o,{[nt.hoverable]:n}),onClick:a,width:c||"24",height:f||"24"}):null},dr="_button_rcjso_1",fr={button:dr},vr=r=>{const{children:t,onClick:s,style:n,className:a,disabled:o=!1,size:c="m"}=r;return h.jsx("button",{className:M(fr.button,a),onClick:s,style:{...n,fontSize:c==="m"?14:16},disabled:o,children:t})},pr="_wrapper_x5ap4_1",hr="_label_x5ap4_9",mr="_input_x5ap4_17",gr="_required_x5ap4_36",de={wrapper:pr,label:hr,input:mr,required:gr},br=r=>{const{onChange:t,label:s,value:n,type:a,min:o,placeholder:c,disabled:f=!1,required:u=!1,regex:p}=r,[d,y]=T.useState(!1);function E(S){return Number(S)<0?"0":S}function x(S){return!u||!p?!0:new RegExp(p).test(S)}return h.jsxs("div",{className:de.wrapper,children:[s&&h.jsx("label",{className:de.label,htmlFor:s,children:s}),h.jsx("input",{id:s,type:a||"text",defaultValue:n,onChange:S=>{if(a==="text")t(S.target.value);else{const g=E(S.target.value);t(g)}},autoComplete:"off",placeholder:c,className:M(de.input,{[de.required]:d&&u&&!x(n)}),min:a==="number"?o:void 0,disabled:f,onFocus:()=>y(!0)})]})},_r="_wrapper_dmzhr_1",yr="_label_dmzhr_9",wr="_select_dmzhr_17",kr="_icon_dmzhr_30",Sr="_rotate_dmzhr_34",Pr="_content_dmzhr_38",xr="_options_dmzhr_42",Er="_option_dmzhr_42",V={wrapper:_r,label:yr,select:wr,icon:kr,rotate:Sr,content:Pr,options:xr,option:Er},Rr=r=>{const{leftAddon:t,onChange:s,label:n,value:a,options:o,style:c}=r,[f,u]=T.useState(!1);function p(d){s(d),u(!1)}return T.useEffect(()=>{const d=()=>{u(!1)};return d(),document.body.addEventListener("click",d),()=>{document.body.removeEventListener("click",d)}},[]),h.jsxs("div",{className:V.wrapper,style:{...c},children:[n&&h.jsx("label",{className:V.label,htmlFor:n,children:n}),h.jsxs("div",{className:V.content,onClick:d=>d.stopPropagation(),children:[h.jsxs("div",{className:V.select,onClick:()=>u(d=>!d),children:[t,h.jsx("span",{children:a}),h.jsx(se,{name:"arrow-down",className:M(V.icon,{[V.rotate]:f})})]}),f&&h.jsx("div",{className:V.options,onClick:()=>u(!1),children:o.filter(d=>d!==a).map(d=>h.jsx("div",{className:V.option,onClick:()=>p(d),children:d},d))})]})]})},Cr="_active_1gvxu_12",jr="_toggle_1gvxu_15",Ee={switch:"_switch_1gvxu_1",active:Cr,toggle:jr},Or=({onChange:r,style:t,current:s})=>{const[n,a]=T.useState(s),o=()=>{a(c=>!c),r==null||r(!n)};return h.jsx("div",{className:M(Ee.switch,{[Ee.active]:n}),onClick:o,style:t,children:h.jsx("div",{className:Ee.toggle})})},Tr="_wrapper_1inu5_1",qr={wrapper:Tr},Ir=({children:r})=>{const{hoverBlockId:t,startHideTimeout:s,clearHideTimeout:n,setMouseOverModal:a}=at();return t?h.jsx("div",{className:qr.wrapper,onMouseEnter:()=>{n(),a(!0)},onMouseLeave:()=>{a(!1),s()},children:r}):null},Br="_blocks_1op3c_1",Nr="_block_1op3c_1",Ar="_active_1op3c_18",Re={blocks:Br,block:Nr,active:Ar},Fr=r=>{const{items:t,selectedItem:s,onSelect:n,getIconName:a}=r;return h.jsx("div",{className:Re.blocks,children:t.map(o=>h.jsx("div",{className:M(Re.block,{[Re.active]:s===o}),onClick:()=>n(o),children:h.jsx(se,{name:a(o),fill:s===o?"#252525":"#757575"})},String(o)))})},Dr="_applyButton_1cqw4_2",$r="_cancelButton_1cqw4_7",Mr="_content_1cqw4_12",Lr="_label_1cqw4_18",Vr="_colorValue_1cqw4_30",Ur="_modal_1cqw4_37",Wr="_colorMap_1cqw4_56",zr="_indicator_1cqw4_64",Yr="_hueSlider_1cqw4_73",Hr="_slider_1cqw4_102",Jr="_buttons_1cqw4_107",Kr="_name_1cqw4_113",Gr="_secondary_1cqw4_118",Xr="_input_1cqw4_126",Y={applyButton:Dr,cancelButton:$r,content:Mr,label:Lr,colorValue:Vr,modal:Ur,colorMap:Wr,indicator:zr,hueSlider:Yr,slider:Hr,buttons:Jr,name:Kr,secondary:Gr,input:Xr},Zr=r=>{const{initialColor:t,onChange:s,title:n,labelStyle:a="primary"}=r,[o,c]=T.useState(t),{setActiveLabel:f,setModalPosition:u,setInitialColor:p,setShowModal:d,setUpdate:y,setColor:E,setColorChange:x,colorChange:S}=lt();T.useEffect(()=>{const O=()=>{d(!1),f(null),p(t),y(()=>{}),E(t),x(()=>{})};return document.body.addEventListener("click",O),()=>{document.body.removeEventListener("click",O)}},[]);const g=O=>{O.stopPropagation(),d(!0),x(c),y(s),p(t),E(o);const w=O.currentTarget.getBoundingClientRect(),m=400,q=288,L=10,K=20,G=window.innerHeight-w.bottom,pe=w.top,ne=window.innerWidth-w.right,oe=w.left;let F,D;F=w.bottom+L+window.scrollY,D=w.left,(G<m||G<K)&&(pe>=m?F=w.top-m-L+window.scrollY:F=window.scrollY+(window.innerHeight-m)/2),ne<q&&(oe>=q?D=w.right-q:D=(window.innerWidth-q)/2),D<w.right&&D+q>w.left&&F<w.bottom&&F+m>w.top&&(ne>=q?D=w.right+L+100:G>=m?F=w.bottom+L+window.scrollY:(F=window.scrollY+(window.innerHeight-m)/2,D=(window.innerWidth-q)/2)),u({top:F,left:D})};return h.jsxs("div",{className:Y.content,children:[h.jsx("span",{className:M(Y.name,{[Y.secondary]:a==="secondary"}),children:n}),h.jsxs("label",{htmlFor:"color",className:Y.label,children:[h.jsx("div",{className:Y.colorValue,style:{background:o},onClick:g}),h.jsx("input",{type:"text",defaultValue:o,value:o,onChange:O=>{const w=O.target.value;s(w),E(w),c(w),S(w)},className:Y.input})]})]})},Qr="_modal_1t5at_1",es={modal:Qr},ts=r=>{const{close:t,children:s}=r;return T.useEffect(()=>{const n=()=>{t(!1)};return document.body.addEventListener("click",n),()=>{document.body.removeEventListener("click",n)}},[]),h.jsx("div",{className:es.modal,children:s})},rs="_wrapper_1qvfi_1",ss="_label_1qvfi_10",ns="_textarea_1qvfi_18",os="_length_1qvfi_33",fe={wrapper:rs,label:ss,textarea:ns,length:os},is=r=>{const{onChange:t,label:s,value:n,maxLength:a,placeholder:o}=r,[c,f]=T.useState(0);return h.jsxs("div",{className:fe.wrapper,children:[s&&h.jsx("label",{className:fe.label,htmlFor:s,children:s}),h.jsx("textarea",{id:s,defaultValue:n,onChange:u=>{f(u.target.value.length),t(u.target.value)},placeholder:o,className:fe.textarea,maxLength:a}),a&&h.jsxs("div",{className:fe.length,children:[c,"/",a]})]})},as="_wrapper_1fcne_2",ls="_label_1fcne_10",cs="_options_1fcne_18",us="_radioLabel_1fcne_23",ds="_radio_1fcne_23",fs="_custom_1fcne_36",vs="_option_1fcne_18",z={wrapper:as,label:ls,options:cs,radioLabel:us,radio:ds,custom:fs,option:vs},ps=r=>{const{defaultValue:t,options:s,onChange:n,label:a}=r,[o,c]=T.useState(t),f=u=>{const p=u.target.value;c(p),n(p)};return h.jsxs("div",{className:z.wrapper,children:[h.jsx("span",{className:z.label,children:a}),h.jsx("div",{className:z.options,children:s.map(u=>h.jsxs("label",{className:z.radioLabel,children:[h.jsx("input",{type:"radio",value:u.value,checked:o===u.value,onChange:f,className:z.radio}),h.jsx("span",{className:z.custom}),h.jsx("span",{className:z.option,children:u.label})]},u.value))})]})},hs="_tip_pl6k0_1",ms="_text_pl6k0_9",gs="_warning_pl6k0_15",bs="_error_pl6k0_20",_s="_hide_pl6k0_25",re={tip:hs,text:ms,warning:gs,error:bs,hide:_s},ys=r=>{const{type:t,message:s,style:n}=r,[a,o]=T.useState(!1);return h.jsxs("div",{className:M(re.tip,{[re.warning]:t==="warning",[re.error]:t==="error",[re.hide]:a}),style:n,children:[h.jsx("div",{children:h.jsx(se,{name:"info-circle",fill:t==="warning"?"#C1972A":"#FF3F19",width:20,height:20})}),h.jsx("div",{className:re.text,children:s}),h.jsx("div",{children:h.jsx(se,{name:"x",fill:t==="warning"?"#C1972A":"#FF3F19",width:20,height:20,hoverable:!0,onClick:()=>o(!0)})})]})};exports.Button=vr;exports.ColorPicker=Zr;exports.Icon=se;exports.Input=br;exports.Modal=ts;exports.Picker=Fr;exports.Radio=ps;exports.Select=Rr;exports.Submodal=Ir;exports.Switch=Or;exports.Textarea=is;exports.Tip=ys;exports.clx=M;exports.defaultPageNames=Yt;exports.getDefaultExportFromCjs=ot;exports.jsxRuntimeExports=h;exports.navbarBlocks=it;exports.sizeOptions=Wt;exports.styles=Y;exports.useBlocksStore=Vt;exports.useColorPickerStore=lt;exports.useDeviceStore=Ut;exports.useFontsStore=nr;exports.useLayersStore=rr;exports.useNavbarStore=Jt;exports.usePagesStore=ir;exports.usePreviewStore=Xt;exports.useSettingsStore=or;exports.useSubmodalStore=at;exports.useThemeSettingsStore=sr;exports.weightOptions=zt;
|