@janbox/storefront-builder 1.0.5 → 1.0.6
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/README.md +47 -44
- package/dist/editor/hooks/use-editor-state.d.ts +13 -1
- package/dist/editor/lib/index.d.ts +4 -1
- package/dist/editor.js +356 -351
- package/dist/{index-DrJkOkbq.js → index-BU9pvpw_.js} +250 -243
- package/dist/index.js +428 -419
- package/package.json +2 -4
- package/dist/editor/lib/events.d.ts +0 -5
- package/lib/accordion/README.md +0 -39
- package/lib/accordion-content/README.md +0 -36
- package/lib/accordion-group/README.md +0 -106
- package/lib/accordion-summary/README.md +0 -37
- package/lib/box/README.md +0 -107
- package/lib/button/README.md +0 -94
- package/lib/cell/README.md +0 -119
- package/lib/countdown-timer/README.md +0 -157
- package/lib/flex-item/README.md +0 -111
- package/lib/flexbox/README.md +0 -120
- package/lib/grid/README.md +0 -133
- package/lib/heading/README.md +0 -53
- package/lib/icon/README.md +0 -98
- package/lib/image/README.md +0 -107
- package/lib/link/README.md +0 -111
- package/lib/list-item/README.md +0 -31
- package/lib/marquee/README.md +0 -111
- package/lib/marquee-item/README.md +0 -31
- package/lib/paragraph/README.md +0 -82
- package/lib/root/README.md +0 -33
- package/lib/swiper/README.md +0 -108
- package/lib/swiper-slide/README.md +0 -32
- package/lib/tab/README.md +0 -35
- package/lib/tab-content/README.md +0 -35
- package/lib/tab-list/README.md +0 -35
- package/lib/tab-panel/README.md +0 -35
- package/lib/tabs/README.md +0 -90
- package/lib/text/README.md +0 -90
- package/lib/unknown/README.md +0 -48
- package/lib/unordered-list/README.md +0 -82
- package/lib/video/README.md +0 -91
package/dist/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { A as Ga, d as _a, o as Ua, E as qa, t as $a, F as Ja, G as Xa, H as Ka,
|
|
|
3
3
|
import { jsx as e, Fragment as le, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { useRef as te, useContext as no, createContext as oo, useMemo as sn, forwardRef as tt, isValidElement as an, cloneElement as ro, useEffect as fe, useCallback as Kt, Fragment as ne, useState as A } from "react";
|
|
5
5
|
import { M as ln, R as K } from "./minus-C82LyzQP.js";
|
|
6
|
-
import { Draggable as
|
|
7
|
-
import { getGridProps as so, getCellProps as ao, GRID_MINIMUM_COLS as Yt, GRID_MAXIMUM_COLS as io, getLinkProps as lo, getButtonProps as co, getFlexboxProps as uo, getFlexItemProps as ho, getTextProps as go, getImageProps as po, getMarqueeProps as wo, MarqueeDataAttributes as
|
|
8
|
-
import { isNumber as nt, isNil as z, isFunction as To, assign as So, isUndefined as
|
|
6
|
+
import { Draggable as bt, DragDropContext as Nt, Droppable as kt } from "@hello-pangea/dnd";
|
|
7
|
+
import { getGridProps as so, getCellProps as ao, GRID_MINIMUM_COLS as Yt, GRID_MAXIMUM_COLS as io, getLinkProps as lo, getButtonProps as co, getFlexboxProps as uo, getFlexItemProps as ho, getTextProps as go, getImageProps as po, getMarqueeProps as wo, MarqueeDataAttributes as mt, getTabsProps as mo, getTabPanelProps as Co, getSwiperProps as xo, getUnorderedListProps as fo, getListItemProps as vo, getIconProps as bo, getAccordionProps as No, getAccordionGroupProps as ko, getAccordionDataAttributes as $e, AccordionDataAttributes as Ct, getVideoProps as Ro, getBoxProps as Lo } from "@janbox/storefront-ui";
|
|
8
|
+
import { isNumber as nt, isNil as z, isFunction as To, assign as So, isUndefined as Rt, get as ze, parseInt as yo, trimStart as Lt, isString as me, set as Bo } from "lodash-es";
|
|
9
9
|
import { useDebounceCallback as dn, useToggle as cn } from "usehooks-ts";
|
|
10
|
-
import { v as W, h as Y, W as T, d as f, n as Po, q as Io, A as ve, L as Mo, b as
|
|
11
|
-
import { p as pi, C as wi, R as mi, U as Ci, H as xi } from "./index-
|
|
10
|
+
import { v as W, h as Y, W as T, d as f, n as Po, q as Io, A as ve, L as Mo, b as Tt, w as Se, x as ye, f as xt, y as Be, z as Pe, a as ot, B as Ao, e as U, r as ee, g as Q, o as Re, i as j, j as F, k as S, l as Z, m as y, E as St, T as yt, F as Wo, t as I, D as un, c as hn, G as Vo } from "./index-BU9pvpw_.js";
|
|
11
|
+
import { p as pi, C as wi, R as mi, U as Ci, H as xi } from "./index-BU9pvpw_.js";
|
|
12
12
|
import { useNode as re } from "@craftjs/core";
|
|
13
13
|
import { useNode as vi } from "@craftjs/core";
|
|
14
14
|
import { W as Ho } from "./tooltip-CqfT80iK.js";
|
|
@@ -39,12 +39,12 @@ const nr = () => W({
|
|
|
39
39
|
defaultValue: o,
|
|
40
40
|
step: a = 0,
|
|
41
41
|
ref: l,
|
|
42
|
-
...
|
|
42
|
+
...d
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
44
|
+
const c = te(null), [u, h] = Le({
|
|
45
45
|
value: n?.toString(),
|
|
46
46
|
defaultValue: o?.toString() ?? ""
|
|
47
|
-
}), g = parseFloat(u), p = Fe([l,
|
|
47
|
+
}), g = parseFloat(u), p = Fe([l, c]), w = typeof s == "number" ? s : Qt, m = (N) => {
|
|
48
48
|
if (N = N.replace(/e|E/g, ""), t >= 0 && (N = N.replace(/^-/, "")), s === 0)
|
|
49
49
|
N = N.replace(/\.\d+$/, "");
|
|
50
50
|
else {
|
|
@@ -54,23 +54,23 @@ const nr = () => W({
|
|
|
54
54
|
N = `${B.at(0)}.${P}`;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return d.transform?.(N) ?? N;
|
|
58
58
|
}, b = (N) => {
|
|
59
|
-
|
|
59
|
+
d.mode === "onBlur" && N.target.valueAsNumber < t && (N.target.value = t.toString()), h(N.target.value), d.onChange?.(N);
|
|
60
60
|
}, C = (N) => {
|
|
61
|
-
(N.key === "e" || N.key === "E") && N.preventDefault(),
|
|
61
|
+
(N.key === "e" || N.key === "E") && N.preventDefault(), d.onKeyDown?.(N);
|
|
62
62
|
}, k = (N) => {
|
|
63
|
-
if (!
|
|
64
|
-
Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(
|
|
63
|
+
if (!c.current) return;
|
|
64
|
+
Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(c.current, N);
|
|
65
65
|
const P = new Event("input", { bubbles: !0 });
|
|
66
|
-
|
|
66
|
+
c.current.dispatchEvent(P);
|
|
67
67
|
}, R = (N) => {
|
|
68
|
-
const B =
|
|
68
|
+
const B = c.current;
|
|
69
69
|
if (z(B)) return;
|
|
70
70
|
const P = B.valueAsNumber, J = Math.min(isNaN(P) ? t + a : P + a, r);
|
|
71
71
|
P !== J && k(J.toString());
|
|
72
72
|
}, V = (N) => {
|
|
73
|
-
const B =
|
|
73
|
+
const B = c.current;
|
|
74
74
|
if (z(B)) return;
|
|
75
75
|
const P = B.valueAsNumber, J = Math.max(isNaN(P) ? t : P - a, t);
|
|
76
76
|
P !== J && k(J.toString());
|
|
@@ -78,7 +78,7 @@ const nr = () => W({
|
|
|
78
78
|
return /* @__PURE__ */ e(
|
|
79
79
|
Y,
|
|
80
80
|
{
|
|
81
|
-
...
|
|
81
|
+
...d,
|
|
82
82
|
css: {
|
|
83
83
|
"::-webkit-outer-spin-button": {
|
|
84
84
|
margin: 0,
|
|
@@ -89,7 +89,7 @@ const nr = () => W({
|
|
|
89
89
|
margin: 0
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
prefix:
|
|
92
|
+
prefix: d.prefix ?? (a > 0 ? /* @__PURE__ */ e(
|
|
93
93
|
T,
|
|
94
94
|
{
|
|
95
95
|
disabled: nt(n) && n <= t,
|
|
@@ -98,7 +98,7 @@ const nr = () => W({
|
|
|
98
98
|
children: /* @__PURE__ */ e(f, { source: ln })
|
|
99
99
|
}
|
|
100
100
|
) : null),
|
|
101
|
-
suffix:
|
|
101
|
+
suffix: d.suffix ?? (a > 0 ? /* @__PURE__ */ e(T, { onClick: R, "aria-disabled": isNaN(g) ? !1 : g <= t, children: /* @__PURE__ */ e(f, { source: je }) }) : null),
|
|
102
102
|
type: "number",
|
|
103
103
|
value: u,
|
|
104
104
|
onChange: b,
|
|
@@ -115,13 +115,13 @@ const nr = () => W({
|
|
|
115
115
|
children: o,
|
|
116
116
|
contentStyle: a = {},
|
|
117
117
|
reference: l,
|
|
118
|
-
triggers:
|
|
118
|
+
triggers: d = ["click"]
|
|
119
119
|
}) => {
|
|
120
|
-
const [
|
|
120
|
+
const [c, u] = Le({
|
|
121
121
|
defaultValue: !1,
|
|
122
122
|
value: t
|
|
123
123
|
}), g = Bt({
|
|
124
|
-
open:
|
|
124
|
+
open: c,
|
|
125
125
|
onOpenChange: (N, B, P) => {
|
|
126
126
|
u(N), s?.(N, B, P);
|
|
127
127
|
},
|
|
@@ -140,9 +140,9 @@ const nr = () => W({
|
|
|
140
140
|
],
|
|
141
141
|
whileElementsMounted: Pt
|
|
142
142
|
}), { context: p, refs: w } = g, m = Wt(p, {
|
|
143
|
-
enabled:
|
|
143
|
+
enabled: d.includes("click")
|
|
144
144
|
}), b = Oo(p, {
|
|
145
|
-
enabled:
|
|
145
|
+
enabled: d.includes("hover")
|
|
146
146
|
}), C = Vt(p, n), k = Ht(p), R = zt([m, C, k, b]), V = sn(
|
|
147
147
|
() => ({
|
|
148
148
|
...g,
|
|
@@ -151,7 +151,7 @@ const nr = () => W({
|
|
|
151
151
|
[g, R]
|
|
152
152
|
);
|
|
153
153
|
return jt(() => {
|
|
154
|
-
|
|
154
|
+
Rt(l) || (w.setReference?.(l), p.onOpenChange(!z(l)));
|
|
155
155
|
}, [l]), /* @__PURE__ */ e(mn.Provider, { value: V, children: o });
|
|
156
156
|
}, de = (t) => jo() ? /* @__PURE__ */ e(en, { ...t }) : /* @__PURE__ */ e(Fo, { children: /* @__PURE__ */ e(en, { ...t }) }), ce = tt(({ children: t, ...r }, s) => {
|
|
157
157
|
const { getReferenceProps: n, context: o } = Ft(), a = Fe([o.refs.setReference, ze(t, "ref"), s]);
|
|
@@ -166,14 +166,14 @@ const nr = () => W({
|
|
|
166
166
|
({ style: t, className: r, ...s }, n) => {
|
|
167
167
|
const { getFloatingProps: o, context: a } = Ft(), l = Fe([a.refs.setFloating, n]);
|
|
168
168
|
if (!a.open) return /* @__PURE__ */ e(le, {});
|
|
169
|
-
const
|
|
169
|
+
const d = o(s);
|
|
170
170
|
return /* @__PURE__ */ e(Ot, { root: document.body, children: /* @__PURE__ */ e(
|
|
171
171
|
"div",
|
|
172
172
|
{
|
|
173
173
|
style: { ...a.floatingStyles, ...t },
|
|
174
174
|
...o(s),
|
|
175
175
|
className: L(
|
|
176
|
-
|
|
176
|
+
d.className,
|
|
177
177
|
"tw:focus-visible:outline-none tw:rounded-lg tw:p-3 tw:shadow tw:animate-fade tw:animate-duration-300 tw:bg-ic-ink-6s tw:border tw:border-ic-white-1s tw:text-ic-white-6s tw:text-sm",
|
|
178
178
|
r
|
|
179
179
|
),
|
|
@@ -185,17 +185,17 @@ const nr = () => W({
|
|
|
185
185
|
), be = ({ event: t = "click", reason: r, className: s, ref: n, ...o }) => {
|
|
186
186
|
const a = te(null), {
|
|
187
187
|
context: { onOpenChange: l }
|
|
188
|
-
} = Ft(),
|
|
188
|
+
} = Ft(), d = Fe([n, a]);
|
|
189
189
|
return fe(() => {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
190
|
+
const c = a.current;
|
|
191
|
+
if (!c) return;
|
|
192
192
|
const u = function(h) {
|
|
193
193
|
l?.(!1, h, r);
|
|
194
194
|
};
|
|
195
|
-
return
|
|
196
|
-
|
|
195
|
+
return c.addEventListener(t, u), () => {
|
|
196
|
+
c.removeEventListener(t, u);
|
|
197
197
|
};
|
|
198
|
-
}, [t, l, r]), /* @__PURE__ */ e("div", { className: L("tw:contents", s), ...o, ref:
|
|
198
|
+
}, [t, l, r]), /* @__PURE__ */ e("div", { className: L("tw:contents", s), ...o, ref: d });
|
|
199
199
|
}, or = ({ className: t, ...r }) => /* @__PURE__ */ e("div", { className: L("es-color-picker", t), children: /* @__PURE__ */ e(Eo, { ...r }) }), rr = `<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
200
200
|
<path d="M10,18a1,1,0,0,1-.71-.29l-5-5a1,1,0,0,1,1.42-1.42L10,15.59l8.29-8.3a1,1,0,1,1,1.42,1.42l-9,9A1,1,0,0,1,10,18Z"></path>
|
|
201
201
|
</svg>`, sr = ({ RowComponent: t, options: r, ref: s, ...n }) => {
|
|
@@ -205,22 +205,22 @@ const nr = () => W({
|
|
|
205
205
|
const u = o.current?.getElement()?.firstElementChild;
|
|
206
206
|
return u instanceof HTMLDivElement ? u : null;
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), d = l.getVirtualItems(), c = l.getTotalSize();
|
|
209
209
|
return /* @__PURE__ */ e(Po, { ...n, ref: a, children: /* @__PURE__ */ e(
|
|
210
210
|
Io.div,
|
|
211
211
|
{
|
|
212
212
|
initial: { opacity: 0 },
|
|
213
213
|
animate: { opacity: 1 },
|
|
214
214
|
style: {
|
|
215
|
-
height:
|
|
215
|
+
height: c
|
|
216
216
|
},
|
|
217
217
|
children: /* @__PURE__ */ e(
|
|
218
218
|
"div",
|
|
219
219
|
{
|
|
220
220
|
style: {
|
|
221
|
-
transform: `translateY(${
|
|
221
|
+
transform: `translateY(${d.at(0)?.start ?? 0}px)`
|
|
222
222
|
},
|
|
223
|
-
children:
|
|
223
|
+
children: d.map((u) => /* @__PURE__ */ e("div", { "data-index": u.index, ref: l.measureElement, children: /* @__PURE__ */ e(t, { row: u }) }, u.key))
|
|
224
224
|
}
|
|
225
225
|
)
|
|
226
226
|
}
|
|
@@ -233,8 +233,8 @@ const nr = () => W({
|
|
|
233
233
|
onOpenChange: o,
|
|
234
234
|
dissmiss: a,
|
|
235
235
|
searchable: l,
|
|
236
|
-
value:
|
|
237
|
-
optionValue:
|
|
236
|
+
value: d,
|
|
237
|
+
optionValue: c,
|
|
238
238
|
optionLabel: u,
|
|
239
239
|
defaultValue: h,
|
|
240
240
|
options: g,
|
|
@@ -251,14 +251,14 @@ const nr = () => W({
|
|
|
251
251
|
} = t, [P, J] = Le({
|
|
252
252
|
defaultValue: !1,
|
|
253
253
|
value: n
|
|
254
|
-
}), [Ne,
|
|
254
|
+
}), [Ne, ct] = Le({
|
|
255
255
|
defaultValue: h,
|
|
256
|
-
value:
|
|
257
|
-
}),
|
|
256
|
+
value: d
|
|
257
|
+
}), ut = (O, _, ae) => {
|
|
258
258
|
!O && !ae || (J(O), o?.(O, _, ae));
|
|
259
|
-
}, { refs: _e, floatingStyles:
|
|
259
|
+
}, { refs: _e, floatingStyles: ht, context: We } = Bt({
|
|
260
260
|
open: P,
|
|
261
|
-
onOpenChange:
|
|
261
|
+
onOpenChange: ut,
|
|
262
262
|
placement: r,
|
|
263
263
|
middleware: [
|
|
264
264
|
It(),
|
|
@@ -267,7 +267,7 @@ const nr = () => W({
|
|
|
267
267
|
apply({ elements: O }) {
|
|
268
268
|
const { width: _ } = O.reference.getBoundingClientRect(), ae = s === "fit-parent" ? _ : s, qe = {
|
|
269
269
|
minWidth: `${ae ?? _}px`,
|
|
270
|
-
width:
|
|
270
|
+
width: Rt(ae) ? ae : `${ae}px`,
|
|
271
271
|
zIndex: Oe
|
|
272
272
|
};
|
|
273
273
|
Object.assign(O.floating.style, qe);
|
|
@@ -275,16 +275,16 @@ const nr = () => W({
|
|
|
275
275
|
})
|
|
276
276
|
],
|
|
277
277
|
whileElementsMounted: Pt
|
|
278
|
-
}),
|
|
279
|
-
(O) => typeof
|
|
280
|
-
[
|
|
278
|
+
}), gt = Wt(We), X = Vt(We, a), ke = Ht(We), { getReferenceProps: se, getFloatingProps: pt } = zt([gt, X, ke]), Ue = Kt(
|
|
279
|
+
(O) => typeof c == "function" ? c(O) : ze(O, c ?? "value"),
|
|
280
|
+
[c]
|
|
281
281
|
), Jt = Kt(
|
|
282
282
|
(O) => typeof u == "function" ? u(O) : ze(O, u ?? "label"),
|
|
283
283
|
[u]
|
|
284
284
|
), Zn = (O) => {
|
|
285
285
|
const _ = Ue(O);
|
|
286
|
-
_ !== Ne && (
|
|
287
|
-
},
|
|
286
|
+
_ !== Ne && (ct(_), p?.(_, O), J(!1));
|
|
287
|
+
}, wt = sn(
|
|
288
288
|
() => g.find((O) => Ne === Ue(O)),
|
|
289
289
|
[Ue, g, Ne]
|
|
290
290
|
), En = ({ row: O }) => {
|
|
@@ -331,7 +331,7 @@ const nr = () => W({
|
|
|
331
331
|
ref: _e.setReference,
|
|
332
332
|
children: [
|
|
333
333
|
m,
|
|
334
|
-
/* @__PURE__ */ e("div", { className: "tw:flex-1 tw:text-left tw:truncate", children:
|
|
334
|
+
/* @__PURE__ */ e("div", { className: "tw:flex-1 tw:text-left tw:truncate", children: wt ? V?.(wt) ?? Jt(wt) : /* @__PURE__ */ e("span", { className: "tw:text-ic-white-3s", children: w }) }),
|
|
335
335
|
b ?? /* @__PURE__ */ e(
|
|
336
336
|
f,
|
|
337
337
|
{
|
|
@@ -351,10 +351,10 @@ const nr = () => W({
|
|
|
351
351
|
ref: _e.setFloating,
|
|
352
352
|
className: "tw:bg-ic-ink-6s tw:rounded-lg",
|
|
353
353
|
style: {
|
|
354
|
-
...
|
|
354
|
+
...ht,
|
|
355
355
|
zIndex: Oe
|
|
356
356
|
},
|
|
357
|
-
...
|
|
357
|
+
...pt(),
|
|
358
358
|
children: /* @__PURE__ */ i("div", { className: "tw:focus-visible:outline-none tw:rounded-lg tw:py-1 tw:shadow tw:animate-fade tw:animate-duration-300 tw:bg-ic-white-1s tw:text-ic-white-6s tw:text-xs", children: [
|
|
359
359
|
l && /* @__PURE__ */ e("div", { className: "tw:px-2 tw:mb-2", children: /* @__PURE__ */ e(Y, { fullWidth: !0, autoFocus: !0 }) }),
|
|
360
360
|
/* @__PURE__ */ e(
|
|
@@ -458,8 +458,8 @@ const nr = () => W({
|
|
|
458
458
|
onOpenChange: o,
|
|
459
459
|
dissmiss: a,
|
|
460
460
|
value: l,
|
|
461
|
-
defaultValue:
|
|
462
|
-
onChange:
|
|
461
|
+
defaultValue: d,
|
|
462
|
+
onChange: c,
|
|
463
463
|
placeholder: u,
|
|
464
464
|
referenceProps: h,
|
|
465
465
|
prefix: g,
|
|
@@ -468,7 +468,7 @@ const nr = () => W({
|
|
|
468
468
|
showTimeInput: m = !0,
|
|
469
469
|
...b
|
|
470
470
|
} = t, [C, k] = Le({
|
|
471
|
-
defaultValue:
|
|
471
|
+
defaultValue: d,
|
|
472
472
|
value: l
|
|
473
473
|
}), [R, V] = Le({
|
|
474
474
|
defaultValue: !1,
|
|
@@ -484,20 +484,20 @@ const nr = () => W({
|
|
|
484
484
|
Mt(4),
|
|
485
485
|
At({
|
|
486
486
|
apply({ elements: X }) {
|
|
487
|
-
const { width: ke } = X.reference.getBoundingClientRect(), se = s === "fit-parent" ? ke : s,
|
|
487
|
+
const { width: ke } = X.reference.getBoundingClientRect(), se = s === "fit-parent" ? ke : s, pt = {
|
|
488
488
|
minWidth: `${se ?? ke}px`,
|
|
489
|
-
width:
|
|
489
|
+
width: Rt(se) ? se : `${se}px`,
|
|
490
490
|
zIndex: Oe
|
|
491
491
|
};
|
|
492
|
-
Object.assign(X.floating.style,
|
|
492
|
+
Object.assign(X.floating.style, pt);
|
|
493
493
|
}
|
|
494
494
|
})
|
|
495
495
|
],
|
|
496
496
|
whileElementsMounted: Pt
|
|
497
|
-
}), Ne = Wt(J),
|
|
497
|
+
}), Ne = Wt(J), ct = Vt(J, a), ut = Ht(J), { getReferenceProps: _e, getFloatingProps: ht } = zt([Ne, ct, ut]), We = {
|
|
498
498
|
height: Number(w)
|
|
499
|
-
},
|
|
500
|
-
X && (k(X),
|
|
499
|
+
}, gt = (X) => {
|
|
500
|
+
X && (k(X), c?.(X));
|
|
501
501
|
};
|
|
502
502
|
return /* @__PURE__ */ i(ne, { children: [
|
|
503
503
|
/* @__PURE__ */ i(
|
|
@@ -536,8 +536,8 @@ const nr = () => W({
|
|
|
536
536
|
...P,
|
|
537
537
|
zIndex: Oe
|
|
538
538
|
},
|
|
539
|
-
...
|
|
540
|
-
children: /* @__PURE__ */ e("div", { className: "tw:focus-visible:outline-none tw:rounded-lg tw:animate-fade tw:animate-duration-300 tw:text-xs", children: /* @__PURE__ */ e($o, { showTimeInput: m, selected: C, onChange:
|
|
539
|
+
...ht(),
|
|
540
|
+
children: /* @__PURE__ */ e("div", { className: "tw:focus-visible:outline-none tw:rounded-lg tw:animate-fade tw:animate-duration-300 tw:text-xs", children: /* @__PURE__ */ e($o, { showTimeInput: m, selected: C, onChange: gt, inline: !0 }) })
|
|
541
541
|
}
|
|
542
542
|
) })
|
|
543
543
|
] });
|
|
@@ -545,7 +545,7 @@ const nr = () => W({
|
|
|
545
545
|
const {
|
|
546
546
|
queryParams: { screen: t },
|
|
547
547
|
setQueryParams: r
|
|
548
|
-
} =
|
|
548
|
+
} = Tt(), s = (n) => {
|
|
549
549
|
r({
|
|
550
550
|
screen: n.currentTarget.getAttribute("value")
|
|
551
551
|
});
|
|
@@ -553,12 +553,12 @@ const nr = () => W({
|
|
|
553
553
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(Se, { children: [
|
|
554
554
|
/* @__PURE__ */ i(ye, { children: [
|
|
555
555
|
/* @__PURE__ */ e("div", { className: "tw:text-shadow-red-50" }),
|
|
556
|
-
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(f, { source:
|
|
556
|
+
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(f, { source: xt.find((n) => n.size === t)?.icon ?? "" }) })
|
|
557
557
|
] }),
|
|
558
|
-
/* @__PURE__ */ e(Be, { children:
|
|
558
|
+
/* @__PURE__ */ e(Be, { children: xt.map((n) => /* @__PURE__ */ e(Pe, { isActive: n.size === t, value: n.size, onClick: s, children: /* @__PURE__ */ e(f, { source: n.icon }) }, n.size)) })
|
|
559
559
|
] }) });
|
|
560
560
|
}, tn = ({ color: t, size: r = 24 }) => {
|
|
561
|
-
const
|
|
561
|
+
const s = ot(), n = gn(t, s.theme.palette);
|
|
562
562
|
return /* @__PURE__ */ i(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
@@ -595,7 +595,7 @@ const nr = () => W({
|
|
|
595
595
|
}) => {
|
|
596
596
|
const a = (h) => {
|
|
597
597
|
r?.(nn[h.currentTarget.value]);
|
|
598
|
-
},
|
|
598
|
+
}, l = ot(), d = gn(t, l.theme.palette)?.hex(), c = (h) => {
|
|
599
599
|
h.target.select();
|
|
600
600
|
}, u = (h) => {
|
|
601
601
|
r?.(h.target.value);
|
|
@@ -611,19 +611,19 @@ const nr = () => W({
|
|
|
611
611
|
f,
|
|
612
612
|
{
|
|
613
613
|
className: L({
|
|
614
|
-
hidden: t ===
|
|
614
|
+
hidden: t === d
|
|
615
615
|
}),
|
|
616
616
|
size: 16,
|
|
617
617
|
source: xn
|
|
618
618
|
}
|
|
619
619
|
),
|
|
620
620
|
onChange: u,
|
|
621
|
-
onFocus:
|
|
622
|
-
value:
|
|
621
|
+
onFocus: c,
|
|
622
|
+
value: d,
|
|
623
623
|
size: "32"
|
|
624
624
|
}
|
|
625
625
|
) }) }),
|
|
626
|
-
/* @__PURE__ */ e(or, { className: "tw:min-w-72", color:
|
|
626
|
+
/* @__PURE__ */ e(or, { className: "tw:min-w-72", color: d, onChange: r }),
|
|
627
627
|
/* @__PURE__ */ e(
|
|
628
628
|
"div",
|
|
629
629
|
{
|
|
@@ -650,9 +650,9 @@ const nr = () => W({
|
|
|
650
650
|
defaultValue: o = {},
|
|
651
651
|
...a
|
|
652
652
|
}) => {
|
|
653
|
-
const l = t.find((m) => s?.toString().trim().endsWith(m)) ?? t.at(0), [
|
|
653
|
+
const l = t.find((m) => s?.toString().trim().endsWith(m)) ?? t.at(0), [d, c] = A(l);
|
|
654
654
|
jt(() => {
|
|
655
|
-
|
|
655
|
+
c(l);
|
|
656
656
|
}, [l]);
|
|
657
657
|
const u = ({ value: m, unit: b }) => {
|
|
658
658
|
if (z(m) || z(b) || b === Ao) {
|
|
@@ -663,13 +663,13 @@ const nr = () => W({
|
|
|
663
663
|
}, h = ur(s?.toString()), g = (m) => {
|
|
664
664
|
m.stopPropagation();
|
|
665
665
|
const b = m.currentTarget.value;
|
|
666
|
-
b !==
|
|
666
|
+
b !== d && (c(m.currentTarget.value), u({ value: o[b], unit: b }));
|
|
667
667
|
}, p = (m) => {
|
|
668
668
|
m.target.select(), a.onFocus?.(m);
|
|
669
669
|
}, w = (m) => {
|
|
670
670
|
const b = isNaN(m.target.valueAsNumber) ? void 0 : m.target.valueAsNumber;
|
|
671
671
|
u({
|
|
672
|
-
unit:
|
|
672
|
+
unit: d,
|
|
673
673
|
value: b
|
|
674
674
|
});
|
|
675
675
|
};
|
|
@@ -683,7 +683,7 @@ const nr = () => W({
|
|
|
683
683
|
onClick: g,
|
|
684
684
|
value: m,
|
|
685
685
|
className: L("tw:text-ic-white-3s tw:hover:text-ic-white-4s", {
|
|
686
|
-
"tw:text-ic-white-6s tw:hover:text-ic-white-6s":
|
|
686
|
+
"tw:text-ic-white-6s tw:hover:text-ic-white-6s": d === m
|
|
687
687
|
}),
|
|
688
688
|
size: "20",
|
|
689
689
|
children: /* @__PURE__ */ e("span", { className: "tw:text-xs", children: m }, m)
|
|
@@ -704,11 +704,11 @@ const nr = () => W({
|
|
|
704
704
|
<path d="M20 12V5C20 3.89543 19.1046 3 18 3H6C4.89543 3 4 3.89543 4 5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
705
705
|
</svg>
|
|
706
706
|
`, bn = ({ source: t, onChange: r, previewStyle: s }) => {
|
|
707
|
-
const [n, o] = A(t ?? "");
|
|
707
|
+
const [n, o] = A(t ?? ""), [a, l] = A(!1), { handlers: d } = ot(), { upload: c } = d;
|
|
708
708
|
return jt(() => {
|
|
709
709
|
o(t ?? "");
|
|
710
710
|
}, [t]), /* @__PURE__ */ i("div", { className: "tw:rounded-lg tw:p-4 tw:bg-ic-white-1s tw:flex tw:flex-col tw:gap-2", children: [
|
|
711
|
-
/* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(
|
|
711
|
+
/* @__PURE__ */ e(ar, { isLoading: a, children: /* @__PURE__ */ e(
|
|
712
712
|
Do,
|
|
713
713
|
{
|
|
714
714
|
accept: {
|
|
@@ -717,19 +717,29 @@ const nr = () => W({
|
|
|
717
717
|
"image/webp": [".webp"]
|
|
718
718
|
},
|
|
719
719
|
multiple: !1,
|
|
720
|
-
onDrop: (
|
|
721
|
-
|
|
720
|
+
onDrop: async (p) => {
|
|
721
|
+
const w = p.at(0);
|
|
722
|
+
if (w) {
|
|
723
|
+
l(!0);
|
|
724
|
+
try {
|
|
725
|
+
const m = await c(w);
|
|
726
|
+
r?.(m);
|
|
727
|
+
} finally {
|
|
728
|
+
l(!1);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
722
731
|
},
|
|
723
|
-
children: ({ getInputProps:
|
|
732
|
+
children: ({ getInputProps: p, getRootProps: w }) => /* @__PURE__ */ i(
|
|
724
733
|
"div",
|
|
725
734
|
{
|
|
726
735
|
className: L(
|
|
727
|
-
"tw:aspect-video tw:bg-ic-white-1s tw:rounded-lg tw:overflow-hidden tw:
|
|
736
|
+
"tw:aspect-video tw:bg-ic-white-1s tw:rounded-lg tw:overflow-hidden tw:flex tw:items-center tw:justify-center tw:relative",
|
|
728
737
|
{
|
|
729
|
-
group: !!t
|
|
738
|
+
group: !!t,
|
|
739
|
+
"tw:cursor-pointer": !0
|
|
730
740
|
}
|
|
731
741
|
),
|
|
732
|
-
...
|
|
742
|
+
...w(),
|
|
733
743
|
children: [
|
|
734
744
|
/* @__PURE__ */ e(
|
|
735
745
|
"div",
|
|
@@ -751,7 +761,6 @@ const nr = () => W({
|
|
|
751
761
|
"tw:flex tw:flex-col tw:items-center tw:justify-center tw:gap-2 tw:absolute tw:inset-0 tw:bg-black tw:bg-opacity-0 tw:transition-all",
|
|
752
762
|
"tw:group-hover:bg-opacity-40 tw:group-hover:opacity-100",
|
|
753
763
|
{
|
|
754
|
-
// hidden: uploadMutation.isPending,
|
|
755
764
|
"tw:opacity-0": !!t
|
|
756
765
|
}
|
|
757
766
|
),
|
|
@@ -761,7 +770,7 @@ const nr = () => W({
|
|
|
761
770
|
]
|
|
762
771
|
}
|
|
763
772
|
),
|
|
764
|
-
/* @__PURE__ */ e("input", { ...
|
|
773
|
+
/* @__PURE__ */ e("input", { ...p() })
|
|
765
774
|
]
|
|
766
775
|
}
|
|
767
776
|
)
|
|
@@ -770,14 +779,14 @@ const nr = () => W({
|
|
|
770
779
|
/* @__PURE__ */ e(
|
|
771
780
|
Y,
|
|
772
781
|
{
|
|
773
|
-
onChange: (
|
|
774
|
-
|
|
782
|
+
onChange: (p) => {
|
|
783
|
+
p.target.value = Lt(p.target.value), o(p.target.value);
|
|
775
784
|
},
|
|
776
785
|
title: n,
|
|
777
786
|
value: n,
|
|
778
787
|
size: "32",
|
|
779
|
-
onBlur: (
|
|
780
|
-
|
|
788
|
+
onBlur: (p) => {
|
|
789
|
+
p.currentTarget.value !== (t ?? "") && r?.(n);
|
|
781
790
|
},
|
|
782
791
|
placeholder: "https://example.com/image.jpg"
|
|
783
792
|
}
|
|
@@ -861,9 +870,9 @@ const nr = () => W({
|
|
|
861
870
|
}), a = (() => {
|
|
862
871
|
if (o.textStyle.fontSize && me(o.textStyle.fontSize))
|
|
863
872
|
return xe(o.textStyle.fontSize);
|
|
864
|
-
})(), l = o.textStyle.color && me(o.textStyle.color) ? o.textStyle.color : n?.computedStyleMap().get("color")?.toString(),
|
|
873
|
+
})(), l = o.textStyle.color && me(o.textStyle.color) ? o.textStyle.color : n?.computedStyleMap().get("color")?.toString(), d = (u) => {
|
|
865
874
|
t.chain().focus().setColor(u).run(), s(!1);
|
|
866
|
-
},
|
|
875
|
+
}, c = (u) => {
|
|
867
876
|
if (isNaN(u.target.valueAsNumber)) {
|
|
868
877
|
t.chain().focus().unsetFontSize().run();
|
|
869
878
|
return;
|
|
@@ -876,7 +885,7 @@ const nr = () => W({
|
|
|
876
885
|
{
|
|
877
886
|
value: a ?? "",
|
|
878
887
|
placeholder: xe(n?.computedStyleMap().get("font-size")?.toString())?.toString(),
|
|
879
|
-
onChange:
|
|
888
|
+
onChange: c,
|
|
880
889
|
debounce: 400,
|
|
881
890
|
min: 10,
|
|
882
891
|
className: "tw:text-center",
|
|
@@ -925,7 +934,7 @@ const nr = () => W({
|
|
|
925
934
|
onOpenChange: s,
|
|
926
935
|
placement: "bottom",
|
|
927
936
|
color: l,
|
|
928
|
-
onChange:
|
|
937
|
+
onChange: d,
|
|
929
938
|
children: /* @__PURE__ */ e(T, { size: "28", title: "Underline", children: /* @__PURE__ */ i("div", { className: "tw:relative tw:size-5 tw:flex tw:flex-col tw:items-center tw:justify-center", children: [
|
|
930
939
|
/* @__PURE__ */ e(f, { size: 18, source: gr }),
|
|
931
940
|
/* @__PURE__ */ e(
|
|
@@ -987,7 +996,7 @@ const nr = () => W({
|
|
|
987
996
|
icon: mr,
|
|
988
997
|
value: "justify"
|
|
989
998
|
}
|
|
990
|
-
].map((o) => /* @__PURE__ */ e(T, { value: o.value, children: /* @__PURE__ */ e(f, { source: o.icon }) }, o.value)) }) }),
|
|
999
|
+
].map((o) => /* @__PURE__ */ e(T, { value: o.value, children: /* @__PURE__ */ e(f, { source: o.icon }) }, o.value)) }) }), rt = ({ value: t, onChange: r, name: s, responsive: n }) => {
|
|
991
1000
|
const o = () => {
|
|
992
1001
|
r?.({
|
|
993
1002
|
...t,
|
|
@@ -1064,15 +1073,15 @@ const nr = () => W({
|
|
|
1064
1073
|
});
|
|
1065
1074
|
}, value: t?.textTransform, children: o.map((l) => /* @__PURE__ */ e(T, { value: l.value, children: l.icon ? /* @__PURE__ */ e(f, { source: l.icon }) : /* @__PURE__ */ e("span", { className: "tw:text-sm tw:leading-none", children: l.example }) }, l.value)) }) });
|
|
1066
1075
|
}, $ = ({ name: t, value: r, onChange: s, responsive: n = !0, menu: o }) => {
|
|
1067
|
-
const a = te(null), [l,
|
|
1076
|
+
const a = te(null), [l, d] = A(!1), c = (C) => {
|
|
1068
1077
|
s?.({
|
|
1069
1078
|
width: C
|
|
1070
1079
|
});
|
|
1071
1080
|
}, u = (C) => {
|
|
1072
|
-
|
|
1081
|
+
d(!0);
|
|
1073
1082
|
}, h = () => {
|
|
1074
1083
|
setTimeout(() => {
|
|
1075
|
-
|
|
1084
|
+
d(!1);
|
|
1076
1085
|
}, 100);
|
|
1077
1086
|
}, g = [
|
|
1078
1087
|
{
|
|
@@ -1089,9 +1098,9 @@ const nr = () => W({
|
|
|
1089
1098
|
}
|
|
1090
1099
|
], p = g.filter((C) => C.visible), w = g.find((C) => C.value === r?.width)?.label?.toString(), m = (C) => {
|
|
1091
1100
|
const k = C.currentTarget.getAttribute("value");
|
|
1092
|
-
z(k) ||
|
|
1101
|
+
z(k) || c(k);
|
|
1093
1102
|
}, b = (C) => {
|
|
1094
|
-
C.stopPropagation(),
|
|
1103
|
+
C.stopPropagation(), c(void 0);
|
|
1095
1104
|
};
|
|
1096
1105
|
return /* @__PURE__ */ e(v, { name: t ?? "Width", responsive: n, children: /* @__PURE__ */ i("div", { className: "tw:relative tw:w-1/2", children: [
|
|
1097
1106
|
/* @__PURE__ */ e(
|
|
@@ -1101,7 +1110,7 @@ const nr = () => W({
|
|
|
1101
1110
|
wrapRef: a,
|
|
1102
1111
|
placeholder: w,
|
|
1103
1112
|
value: r?.width,
|
|
1104
|
-
onChange:
|
|
1113
|
+
onChange: c,
|
|
1105
1114
|
defaultValue: {
|
|
1106
1115
|
"%": 100
|
|
1107
1116
|
},
|
|
@@ -1135,7 +1144,7 @@ const nr = () => W({
|
|
|
1135
1144
|
units: o = ["px", "%"],
|
|
1136
1145
|
menu: a
|
|
1137
1146
|
}) => {
|
|
1138
|
-
const [l,
|
|
1147
|
+
const [l, d] = A(!1), c = [
|
|
1139
1148
|
{
|
|
1140
1149
|
value: "auto",
|
|
1141
1150
|
label: "Auto",
|
|
@@ -1148,17 +1157,17 @@ const nr = () => W({
|
|
|
1148
1157
|
visible: a?.fitContentOption?.visible ?? !1,
|
|
1149
1158
|
clearable: a?.fitContentOption?.clearable ?? !1
|
|
1150
1159
|
}
|
|
1151
|
-
], u =
|
|
1160
|
+
], u = c.filter((C) => C.visible), h = (C) => {
|
|
1152
1161
|
s?.({
|
|
1153
1162
|
height: C
|
|
1154
1163
|
});
|
|
1155
1164
|
}, g = (C) => {
|
|
1156
|
-
|
|
1165
|
+
d(!0);
|
|
1157
1166
|
}, p = () => {
|
|
1158
1167
|
setTimeout(() => {
|
|
1159
|
-
|
|
1168
|
+
d(!1);
|
|
1160
1169
|
}, 100);
|
|
1161
|
-
}, w =
|
|
1170
|
+
}, w = c.find((C) => C.value === r?.height)?.label, m = (C) => {
|
|
1162
1171
|
const k = C.currentTarget.getAttribute("value");
|
|
1163
1172
|
z(k) || h(k);
|
|
1164
1173
|
}, b = (C) => {
|
|
@@ -1203,8 +1212,8 @@ const nr = () => W({
|
|
|
1203
1212
|
};
|
|
1204
1213
|
return /* @__PURE__ */ e(v, { name: t ?? "Color", responsive: r, children: /* @__PURE__ */ e(Ie, { color: s?.color, onChange: o }) });
|
|
1205
1214
|
}, fr = ({ value: t, onChange: r }) => {
|
|
1206
|
-
const
|
|
1207
|
-
const l = Object.keys(n).find((
|
|
1215
|
+
const s = ot(), n = wn(pn), o = (() => {
|
|
1216
|
+
const l = Object.keys(n).find((d) => n[d] === t?.backgroundColor);
|
|
1208
1217
|
return l ? ze(s.theme.palette, l) : t?.backgroundColor;
|
|
1209
1218
|
})();
|
|
1210
1219
|
return /* @__PURE__ */ e(v, { name: "Color", children: /* @__PURE__ */ e(Ie, { color: o, onChange: (l) => {
|
|
@@ -1267,7 +1276,7 @@ const nr = () => W({
|
|
|
1267
1276
|
<path d="M9.95966 15.4228L8.378 12.5214C8.20283 12.2 7.86604 12 7.5 12C7.13396 12 6.79717 12.2 6.622 12.5214L2 21.0001" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1268
1277
|
</svg>
|
|
1269
1278
|
`, yr = (t) => t?.match(/url\((['"]?)(https?:\/\/[^'")]+)\1\)/)?.at(2), Br = ({ onChange: t, value: r }) => {
|
|
1270
|
-
const [s, n] = Zo(!1), o = r?.backgroundPosition ?? "center", a = r?.backgroundRepeat ?? "no-repeat", l = r?.backgroundSize ?? "cover",
|
|
1279
|
+
const [s, n] = Zo(!1), o = r?.backgroundPosition ?? "center", a = r?.backgroundRepeat ?? "no-repeat", l = r?.backgroundSize ?? "cover", d = r?.backgroundAttachment ?? "scroll", c = (w) => {
|
|
1271
1280
|
t?.({
|
|
1272
1281
|
backgroundImage: w ? `url(${w})` : void 0,
|
|
1273
1282
|
backgroundPosition: o,
|
|
@@ -1303,10 +1312,10 @@ const nr = () => W({
|
|
|
1303
1312
|
backgroundPosition: o,
|
|
1304
1313
|
backgroundRepeat: a,
|
|
1305
1314
|
backgroundSize: l,
|
|
1306
|
-
backgroundAttachment:
|
|
1315
|
+
backgroundAttachment: d
|
|
1307
1316
|
},
|
|
1308
1317
|
source: yr(r?.backgroundImage),
|
|
1309
|
-
onChange:
|
|
1318
|
+
onChange: c
|
|
1310
1319
|
}
|
|
1311
1320
|
),
|
|
1312
1321
|
/* @__PURE__ */ e(
|
|
@@ -1389,7 +1398,7 @@ const nr = () => W({
|
|
|
1389
1398
|
{
|
|
1390
1399
|
onChange: p,
|
|
1391
1400
|
className: "tw:w-1/2",
|
|
1392
|
-
value:
|
|
1401
|
+
value: d,
|
|
1393
1402
|
options: Tr
|
|
1394
1403
|
}
|
|
1395
1404
|
) })
|
|
@@ -1410,11 +1419,11 @@ const nr = () => W({
|
|
|
1410
1419
|
label: "Auto",
|
|
1411
1420
|
value: a
|
|
1412
1421
|
}
|
|
1413
|
-
],
|
|
1422
|
+
], d = () => {
|
|
1414
1423
|
setTimeout(() => {
|
|
1415
1424
|
o(!1);
|
|
1416
1425
|
}, 100);
|
|
1417
|
-
},
|
|
1426
|
+
}, c = (p) => {
|
|
1418
1427
|
o(!0), p.target.select();
|
|
1419
1428
|
}, u = (p) => {
|
|
1420
1429
|
const w = isNaN(p.target.valueAsNumber) ? void 0 : p.target.valueAsNumber;
|
|
@@ -1429,14 +1438,14 @@ const nr = () => W({
|
|
|
1429
1438
|
M,
|
|
1430
1439
|
{
|
|
1431
1440
|
mode: "onBlur",
|
|
1432
|
-
onFocus:
|
|
1441
|
+
onFocus: c,
|
|
1433
1442
|
className: "tw:text-center",
|
|
1434
1443
|
size: "28",
|
|
1435
1444
|
autoComplete: "off",
|
|
1436
1445
|
fullWidth: !0,
|
|
1437
1446
|
placeholder: r === a ? "Auto" : void 0,
|
|
1438
1447
|
value: r ?? 0,
|
|
1439
|
-
onBlur:
|
|
1448
|
+
onBlur: d,
|
|
1440
1449
|
name: t,
|
|
1441
1450
|
onChange: u
|
|
1442
1451
|
}
|
|
@@ -1463,7 +1472,7 @@ const nr = () => W({
|
|
|
1463
1472
|
] })
|
|
1464
1473
|
] });
|
|
1465
1474
|
}, E = ({ value: t, onChange: r }) => {
|
|
1466
|
-
const s = te(null), n = te(null), [o, a] = A(0), [l,
|
|
1475
|
+
const s = te(null), n = te(null), [o, a] = A(0), [l, d] = A(0);
|
|
1467
1476
|
fe(() => {
|
|
1468
1477
|
const u = new ResizeObserver((h) => {
|
|
1469
1478
|
const g = h.at(0)?.target;
|
|
@@ -1474,12 +1483,12 @@ const nr = () => W({
|
|
|
1474
1483
|
const p = h.at(1)?.target;
|
|
1475
1484
|
if (p) {
|
|
1476
1485
|
const { width: w } = p.getBoundingClientRect();
|
|
1477
|
-
|
|
1486
|
+
d(Math.floor(Math.sqrt(Math.pow(w, 2) / 2)));
|
|
1478
1487
|
}
|
|
1479
1488
|
});
|
|
1480
1489
|
return s.current && u.observe(s.current), n.current && u.observe(n.current), () => u.disconnect();
|
|
1481
1490
|
}, []);
|
|
1482
|
-
const
|
|
1491
|
+
const c = (u, h) => {
|
|
1483
1492
|
r?.({
|
|
1484
1493
|
...t,
|
|
1485
1494
|
[u]: h
|
|
@@ -1493,7 +1502,7 @@ const nr = () => W({
|
|
|
1493
1502
|
width: o
|
|
1494
1503
|
},
|
|
1495
1504
|
className: "tw:bg-ic-white-1s tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1496
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:items-end tw:pb-3", children: /* @__PURE__ */ e(we, { name: "marginBottom", value: t?.marginBottom, onChange:
|
|
1505
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:items-end tw:pb-3", children: /* @__PURE__ */ e(we, { name: "marginBottom", value: t?.marginBottom, onChange: c }) }) })
|
|
1497
1506
|
}
|
|
1498
1507
|
) }),
|
|
1499
1508
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:-translate-y-1/2 tw:grid tw:place-items-center tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1503,7 +1512,7 @@ const nr = () => W({
|
|
|
1503
1512
|
width: o
|
|
1504
1513
|
},
|
|
1505
1514
|
className: "tw:bg-ic-white-1s tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1506
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10 tw:items-end", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:pt-3", children: /* @__PURE__ */ e(we, { name: "marginTop", value: t?.marginTop, onChange:
|
|
1515
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10 tw:items-end", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:pt-3", children: /* @__PURE__ */ e(we, { name: "marginTop", value: t?.marginTop, onChange: c }) }) })
|
|
1507
1516
|
}
|
|
1508
1517
|
) }),
|
|
1509
1518
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:grid tw:place-items-center tw:translate-x-1/2 tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1513,7 +1522,7 @@ const nr = () => W({
|
|
|
1513
1522
|
width: o
|
|
1514
1523
|
},
|
|
1515
1524
|
className: "tw:bg-ic-white-1s tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1516
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:justify-end tw:pr-1.5", children: /* @__PURE__ */ e(we, { name: "marginRight", value: t?.marginRight, onChange:
|
|
1525
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:justify-end tw:pr-1.5", children: /* @__PURE__ */ e(we, { name: "marginRight", value: t?.marginRight, onChange: c }) }) })
|
|
1517
1526
|
}
|
|
1518
1527
|
) }),
|
|
1519
1528
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:grid tw:place-items-center tw:-translate-x-1/2 tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1523,7 +1532,7 @@ const nr = () => W({
|
|
|
1523
1532
|
width: o
|
|
1524
1533
|
},
|
|
1525
1534
|
className: "tw:bg-ic-white-1s tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1526
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center tw:justify-end", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:pl-1.5", children: /* @__PURE__ */ e("div", { className: "tw:w-10", children: /* @__PURE__ */ e(we, { name: "marginLeft", value: t?.marginLeft, onChange:
|
|
1535
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center tw:justify-end", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:pl-1.5", children: /* @__PURE__ */ e("div", { className: "tw:w-10", children: /* @__PURE__ */ e(we, { name: "marginLeft", value: t?.marginLeft, onChange: c }) }) }) })
|
|
1527
1536
|
}
|
|
1528
1537
|
) }),
|
|
1529
1538
|
/* @__PURE__ */ i("div", { className: "tw:absolute tw:w-3/5 tw:h-3/5 tw:left-1/2 tw:top-1/2 tw:-translate-x-1/2 tw:-translate-y-1/2 tw:bg-ic-white-1s tw:rounded tw:overflow-hidden", children: [
|
|
@@ -1534,7 +1543,7 @@ const nr = () => W({
|
|
|
1534
1543
|
width: l
|
|
1535
1544
|
},
|
|
1536
1545
|
className: "tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1537
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:w-10 tw:h-1/2 tw:relative tw:flex tw:items-end tw:pb-4", children: /* @__PURE__ */ e(we, { name: "paddingBottom", value: t?.paddingBottom, onChange:
|
|
1546
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:w-10 tw:h-1/2 tw:relative tw:flex tw:items-end tw:pb-4", children: /* @__PURE__ */ e(we, { name: "paddingBottom", value: t?.paddingBottom, onChange: c }) }) })
|
|
1538
1547
|
}
|
|
1539
1548
|
) }) }),
|
|
1540
1549
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:-translate-y-1/2 tw:grid tw:place-items-center tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1544,7 +1553,7 @@ const nr = () => W({
|
|
|
1544
1553
|
width: l
|
|
1545
1554
|
},
|
|
1546
1555
|
className: "tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1547
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10 tw:items-end", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:pt-4", children: /* @__PURE__ */ e(we, { name: "paddingTop", value: t?.paddingTop, onChange:
|
|
1556
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:w-full tw:h-full tw:flex tw:justify-center tw:-rotate-45 tw:z-10 tw:items-end", children: /* @__PURE__ */ e("div", { className: "tw:z-10 tw:h-1/2 tw:relative tw:flex tw:pt-4", children: /* @__PURE__ */ e(we, { name: "paddingTop", value: t?.paddingTop, onChange: c }) }) })
|
|
1548
1557
|
}
|
|
1549
1558
|
) }),
|
|
1550
1559
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:grid tw:place-items-center tw:translate-x-1/2 tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1554,7 +1563,7 @@ const nr = () => W({
|
|
|
1554
1563
|
width: l
|
|
1555
1564
|
},
|
|
1556
1565
|
className: "tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1557
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:justify-end tw:pr-3", children: /* @__PURE__ */ e(we, { name: "paddingRight", value: t?.paddingRight, onChange:
|
|
1566
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:justify-end tw:pr-3", children: /* @__PURE__ */ e(we, { name: "paddingRight", value: t?.paddingRight, onChange: c }) }) })
|
|
1558
1567
|
}
|
|
1559
1568
|
) }),
|
|
1560
1569
|
/* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:rotate-45 tw:grid tw:place-items-center tw:-translate-x-1/2 tw:pointer-events-none", children: /* @__PURE__ */ e(
|
|
@@ -1564,7 +1573,7 @@ const nr = () => W({
|
|
|
1564
1573
|
width: l
|
|
1565
1574
|
},
|
|
1566
1575
|
className: "tw:aspect-square tw:relative tw:pointer-events-auto",
|
|
1567
|
-
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center tw:justify-end", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:pl-3", children: /* @__PURE__ */ e(we, { name: "paddingLeft", value: t?.paddingLeft, onChange:
|
|
1576
|
+
children: /* @__PURE__ */ e("div", { className: "tw:absolute tw:inset-0 tw:flex tw:-rotate-45 tw:z-10 tw:items-center tw:justify-end", children: /* @__PURE__ */ e("div", { className: "tw:w-1/2 tw:flex tw:pl-3", children: /* @__PURE__ */ e(we, { name: "paddingLeft", value: t?.paddingLeft, onChange: c }) }) })
|
|
1568
1577
|
}
|
|
1569
1578
|
) })
|
|
1570
1579
|
] })
|
|
@@ -1581,14 +1590,14 @@ const nr = () => W({
|
|
|
1581
1590
|
h.stopPropagation();
|
|
1582
1591
|
const g = o.duplicate(t.id);
|
|
1583
1592
|
o.selectNode(g.id);
|
|
1584
|
-
}, c = () => {
|
|
1585
|
-
n(!0);
|
|
1586
1593
|
}, d = () => {
|
|
1594
|
+
n(!0);
|
|
1595
|
+
}, c = () => {
|
|
1587
1596
|
n(!1);
|
|
1588
1597
|
}, u = () => {
|
|
1589
1598
|
Gn(t) && o.selectNode(t.id);
|
|
1590
1599
|
};
|
|
1591
|
-
return /* @__PURE__ */ e(
|
|
1600
|
+
return /* @__PURE__ */ e(bt, { index: r, draggableId: t.id, children: (h, g) => /* @__PURE__ */ e(
|
|
1592
1601
|
"div",
|
|
1593
1602
|
{
|
|
1594
1603
|
ref: h.innerRef,
|
|
@@ -1603,8 +1612,8 @@ const nr = () => W({
|
|
|
1603
1612
|
"tw:bg-ic-white-3s": g.isDragging
|
|
1604
1613
|
}
|
|
1605
1614
|
),
|
|
1606
|
-
onMouseEnter:
|
|
1607
|
-
onMouseLeave:
|
|
1615
|
+
onMouseEnter: d,
|
|
1616
|
+
onMouseLeave: c,
|
|
1608
1617
|
"aria-hidden": !0,
|
|
1609
1618
|
onClick: u,
|
|
1610
1619
|
children: [
|
|
@@ -1629,20 +1638,20 @@ const nr = () => W({
|
|
|
1629
1638
|
}
|
|
1630
1639
|
) });
|
|
1631
1640
|
}, Ze = ({ getNewNodeElement: t }) => {
|
|
1632
|
-
const { query: r, actions: s } = oe(), { id: n } = re(), o = r.node(n).childNodes().map((
|
|
1641
|
+
const { query: r, actions: s } = oe(), { id: n } = re(), o = r.node(n).childNodes().map((d) => r.node(d).get());
|
|
1633
1642
|
return /* @__PURE__ */ i("div", { children: [
|
|
1634
|
-
/* @__PURE__ */ e(
|
|
1635
|
-
const { source:
|
|
1636
|
-
if (!u ||
|
|
1637
|
-
const h = o.at(
|
|
1638
|
-
h && s.move({ nodeId: h.id, sourceIndex:
|
|
1639
|
-
}, children: /* @__PURE__ */ e(
|
|
1640
|
-
o.map((
|
|
1641
|
-
|
|
1643
|
+
/* @__PURE__ */ e(Nt, { onDragEnd: (d) => {
|
|
1644
|
+
const { source: c, destination: u } = d;
|
|
1645
|
+
if (!u || c.index === u.index) return;
|
|
1646
|
+
const h = o.at(c.index);
|
|
1647
|
+
h && s.move({ nodeId: h.id, sourceIndex: c.index, destinationIndex: u.index });
|
|
1648
|
+
}, children: /* @__PURE__ */ e(kt, { droppableId: n, children: (d) => /* @__PURE__ */ i("div", { ref: d.innerRef, ...d.droppableProps, className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
1649
|
+
o.map((c, u) => /* @__PURE__ */ e(Ir, { node: c, nodeIndex: u }, c.id)),
|
|
1650
|
+
d.placeholder
|
|
1642
1651
|
] }) }) }),
|
|
1643
1652
|
/* @__PURE__ */ e(Q, { className: "tw:mt-2", onClick: () => {
|
|
1644
|
-
const
|
|
1645
|
-
s.addNodeTree(
|
|
1653
|
+
const d = r.parseReactElement(t()).toNodeTree();
|
|
1654
|
+
s.addNodeTree(d, n);
|
|
1646
1655
|
}, fullWidth: !0, prefix: /* @__PURE__ */ e(f, { size: 16, source: je }), children: "Add more" })
|
|
1647
1656
|
] });
|
|
1648
1657
|
}, Mr = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.25 8.96875C1.25 8.69261 1.47386 8.46875 1.75 8.46875H5.5C5.77614 8.46875 6 8.69261 6 8.96875V10.9688C6 11.2449 5.77614 11.4688 5.5 11.4688H1.75C1.47386 11.4688 1.25 11.2449 1.25 10.9688V8.96875Z" fill="currentColor"></path><path d="M7.62512 9.03125C7.62512 8.75511 7.84898 8.53125 8.12512 8.53125H11.8751C12.1513 8.53125 12.3751 8.75511 12.3751 9.03125V11.0312C12.3751 11.3074 12.1513 11.5312 11.8751 11.5312H8.12512C7.84898 11.5312 7.62512 11.3074 7.62512 11.0312V9.03125Z" fill="currentColor"></path><path d="M14 8.96875C14 8.69261 14.2239 8.46875 14.5 8.46875H18.25C18.5261 8.46875 18.75 8.69261 18.75 8.96875V10.9688C18.75 11.2449 18.5261 11.4688 18.25 11.4688H14.5C14.2239 11.4688 14 11.2449 14 10.9688V8.96875Z" fill="currentColor"></path></svg>', Ar = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.25 10C1.25 9.17157 1.92157 8.5 2.75 8.5C3.57843 8.5 4.25 9.17157 4.25 10C4.25 10.8284 3.57843 11.5 2.75 11.5C1.92157 11.5 1.25 10.8284 1.25 10Z" fill="currentColor"></path><path d="M6.08333 10C6.08333 9.17157 6.75491 8.5 7.58333 8.5C8.41176 8.5 9.08333 9.17157 9.08333 10C9.08333 10.8284 8.41176 11.5 7.58333 11.5C6.75491 11.5 6.08333 10.8284 6.08333 10Z" fill="currentColor"></path><path d="M10.9167 10C10.9167 9.17157 11.5883 8.5 12.4167 8.5C13.2451 8.5 13.9167 9.17157 13.9167 10C13.9167 10.8284 13.2451 11.5 12.4167 11.5C11.5883 11.5 10.9167 10.8284 10.9167 10Z" fill="currentColor"></path><path d="M15.75 10C15.75 9.17157 16.4216 8.5 17.25 8.5C18.0784 8.5 18.75 9.17157 18.75 10C18.75 10.8284 18.0784 11.5 17.25 11.5C16.4216 11.5 15.75 10.8284 15.75 10Z" fill="currentColor"></path></svg>', Wr = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M1.10547 9C1.10547 8.72386 1.32933 8.5 1.60547 8.5H18.1064C18.3826 8.5 18.6064 8.72386 18.6064 9V11C18.6064 11.2761 18.3826 11.5 18.1064 11.5H1.60547C1.32933 11.5 1.10547 11.2761 1.10547 11V9Z" fill="#currentColor"></path></svg>', Vr = [
|
|
@@ -1663,7 +1672,7 @@ const nr = () => W({
|
|
|
1663
1672
|
icon: Ar
|
|
1664
1673
|
}
|
|
1665
1674
|
], G = ({ responsive: t = !0, value: r, onChange: s }) => {
|
|
1666
|
-
const n = r?.borderBottomWidth ?? 0, o = r?.borderTopWidth ?? 0, a = r?.borderLeftWidth ?? 0, l = r?.borderRightWidth ?? 0,
|
|
1675
|
+
const n = r?.borderBottomWidth ?? 0, o = r?.borderTopWidth ?? 0, a = r?.borderLeftWidth ?? 0, l = r?.borderRightWidth ?? 0, d = (w = "none") => {
|
|
1667
1676
|
s?.(
|
|
1668
1677
|
w === "none" ? {
|
|
1669
1678
|
borderStyle: void 0,
|
|
@@ -1681,7 +1690,7 @@ const nr = () => W({
|
|
|
1681
1690
|
borderTopWidth: r?.borderTopWidth ?? 1
|
|
1682
1691
|
}
|
|
1683
1692
|
);
|
|
1684
|
-
},
|
|
1693
|
+
}, c = r?.borderStyle ?? "none", u = /* @__PURE__ */ e("span", { className: "tw:text-xs tw:text-ic-white-3s", children: "|" }), h = (w) => {
|
|
1685
1694
|
w.target.select();
|
|
1686
1695
|
}, g = (w) => {
|
|
1687
1696
|
const m = isNaN(w.target.valueAsNumber) ? void 0 : w.target.valueAsNumber;
|
|
@@ -1692,15 +1701,15 @@ const nr = () => W({
|
|
|
1692
1701
|
};
|
|
1693
1702
|
return /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
1694
1703
|
/* @__PURE__ */ e(v, { responsive: t, name: "Border", children: /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
|
|
1695
|
-
|
|
1704
|
+
c !== "none" && /* @__PURE__ */ e(Ie, { onChange: (w) => {
|
|
1696
1705
|
s?.({
|
|
1697
1706
|
...r,
|
|
1698
1707
|
borderColor: w
|
|
1699
1708
|
});
|
|
1700
1709
|
}, color: r?.borderColor }),
|
|
1701
|
-
/* @__PURE__ */ e(U, { value:
|
|
1710
|
+
/* @__PURE__ */ e(U, { value: c, onSelectionChange: d, children: Vr.map((w) => /* @__PURE__ */ e(T, { value: w.value, children: /* @__PURE__ */ e(f, { source: w.icon }) }, w.value)) })
|
|
1702
1711
|
] }) }),
|
|
1703
|
-
|
|
1712
|
+
c !== "none" && /* @__PURE__ */ e("div", { className: "tw:flex tw:justify-end", children: /* @__PURE__ */ e("div", { className: "tw:flex tw:items-center tw:gap-1", children: /* @__PURE__ */ i("div", { className: "tw:flex-1 tw:flex tw:items-center tw:gap-0.5 tw:py-0.5 tw:bg-ic-white-1s tw:rounded-lg tw:px-2", children: [
|
|
1704
1713
|
/* @__PURE__ */ e(
|
|
1705
1714
|
M,
|
|
1706
1715
|
{
|
|
@@ -1775,7 +1784,7 @@ const nr = () => W({
|
|
|
1775
1784
|
<path fill="currentColor" d="M36,416H476a20.023,20.023,0,0,0,20-20V116a20.023,20.023,0,0,0-20-20H36a20.023,20.023,0,0,0-20,20V396A20.023,20.023,0,0,0,36,416ZM48,128H464V384H48Z" />
|
|
1776
1785
|
</svg>
|
|
1777
1786
|
`, Or = '<svg width="22" height="14" viewBox="0 0 24 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3335 1.5H4.3335C2.95278 1.5 1.8335 2.61929 1.8335 4V10C1.8335 11.3807 2.95278 12.5 4.3335 12.5H18.3335C19.7142 12.5 20.8335 11.3807 20.8335 10V4C20.8335 2.61929 19.7142 1.5 18.3335 1.5ZM4.3335 0C2.12436 0 0.333496 1.79086 0.333496 4V10C0.333496 12.2091 2.12436 14 4.3335 14H18.3335C20.5426 14 22.3335 12.2091 22.3335 10V4C22.3335 1.79086 20.5426 0 18.3335 0H4.3335Z" fill="currentColor"></path></svg>', ie = 9999, D = ({ value: t, onChange: r, name: s, responsive: n = !0 }) => {
|
|
1778
|
-
const [o, a] = A(!1), l = Object.values(t ?? {}).every((g) => (g ?? 0) === 0),
|
|
1787
|
+
const [o, a] = A(!1), l = Object.values(t ?? {}).every((g) => (g ?? 0) === 0), d = Object.values(t ?? {}).every((g) => (g ?? 0) === ie), c = !l && !d, u = (g) => {
|
|
1779
1788
|
const p = isNaN(g.target.valueAsNumber) ? void 0 : g.target.valueAsNumber;
|
|
1780
1789
|
r?.({
|
|
1781
1790
|
...t,
|
|
@@ -1802,8 +1811,8 @@ const nr = () => W({
|
|
|
1802
1811
|
),
|
|
1803
1812
|
children: [
|
|
1804
1813
|
/* @__PURE__ */ i("span", { className: "tw:text-xs tw:flex-1 tw:truncate", children: [
|
|
1805
|
-
|
|
1806
|
-
|
|
1814
|
+
d && /* @__PURE__ */ e(le, { children: "Full" }),
|
|
1815
|
+
c && /* @__PURE__ */ e(le, { children: [
|
|
1807
1816
|
t?.borderTopLeftRadius ?? "-",
|
|
1808
1817
|
t?.borderTopRightRadius ?? "-",
|
|
1809
1818
|
t?.borderBottomLeftRadius ?? "-",
|
|
@@ -1935,7 +1944,7 @@ const nr = () => W({
|
|
|
1935
1944
|
T,
|
|
1936
1945
|
{
|
|
1937
1946
|
onClick: h,
|
|
1938
|
-
disabled:
|
|
1947
|
+
disabled: c,
|
|
1939
1948
|
value: JSON.stringify({
|
|
1940
1949
|
borderBottomLeftRadius: 8,
|
|
1941
1950
|
borderBottomRightRadius: 8,
|
|
@@ -1946,7 +1955,7 @@ const nr = () => W({
|
|
|
1946
1955
|
f,
|
|
1947
1956
|
{
|
|
1948
1957
|
className: L("tw:text-ic-white-3s", {
|
|
1949
|
-
"tw:text-ic-white-6s":
|
|
1958
|
+
"tw:text-ic-white-6s": c
|
|
1950
1959
|
}),
|
|
1951
1960
|
source: Or
|
|
1952
1961
|
}
|
|
@@ -1957,7 +1966,7 @@ const nr = () => W({
|
|
|
1957
1966
|
T,
|
|
1958
1967
|
{
|
|
1959
1968
|
onClick: h,
|
|
1960
|
-
disabled:
|
|
1969
|
+
disabled: d,
|
|
1961
1970
|
value: JSON.stringify({
|
|
1962
1971
|
borderBottomLeftRadius: ie,
|
|
1963
1972
|
borderBottomRightRadius: ie,
|
|
@@ -1968,7 +1977,7 @@ const nr = () => W({
|
|
|
1968
1977
|
f,
|
|
1969
1978
|
{
|
|
1970
1979
|
className: L("tw:text-ic-white-3s", {
|
|
1971
|
-
"tw:text-ic-white-6s":
|
|
1980
|
+
"tw:text-ic-white-6s": d
|
|
1972
1981
|
}),
|
|
1973
1982
|
source: Hr
|
|
1974
1983
|
}
|
|
@@ -2024,7 +2033,7 @@ const nr = () => W({
|
|
|
2024
2033
|
value: "auto",
|
|
2025
2034
|
label: "Auto"
|
|
2026
2035
|
}
|
|
2027
|
-
],
|
|
2036
|
+
], st = ({ value: t, onChange: r, responsive: s = !0 }) => /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(v, { responsive: s, name: "Variant", children: /* @__PURE__ */ e(
|
|
2028
2037
|
he,
|
|
2029
2038
|
{
|
|
2030
2039
|
placement: "bottom-end",
|
|
@@ -2073,7 +2082,7 @@ const nr = () => W({
|
|
|
2073
2082
|
label: "Auto",
|
|
2074
2083
|
value: "auto"
|
|
2075
2084
|
}
|
|
2076
|
-
],
|
|
2085
|
+
], at = ({ value: t, responsive: r, name: s, onChange: n }) => /* @__PURE__ */ e(v, { responsive: r, name: s ?? "Font weight", children: /* @__PURE__ */ e(
|
|
2077
2086
|
he,
|
|
2078
2087
|
{
|
|
2079
2088
|
onChange: (a) => {
|
|
@@ -2162,13 +2171,13 @@ const nr = () => W({
|
|
|
2162
2171
|
max: a = Number.MAX_SAFE_INTEGER,
|
|
2163
2172
|
adjustment: l
|
|
2164
2173
|
}) => {
|
|
2165
|
-
const
|
|
2174
|
+
const d = me(n) ? Number(n) : n, c = l?.minimumUnit ?? 1, u = l?.fallback ?? 0, h = (w) => {
|
|
2166
2175
|
const m = isNaN(w.target.valueAsNumber) ? void 0 : w.target.valueAsNumber;
|
|
2167
2176
|
s?.(m);
|
|
2168
2177
|
}, g = (w) => {
|
|
2169
|
-
w.stopPropagation(), s?.(Math.min((
|
|
2178
|
+
w.stopPropagation(), s?.(Math.min((d ?? u) + c, a));
|
|
2170
2179
|
}, p = (w) => {
|
|
2171
|
-
w.stopPropagation(), s?.(Math.max((
|
|
2180
|
+
w.stopPropagation(), s?.(Math.max((d ?? u) - c, o));
|
|
2172
2181
|
};
|
|
2173
2182
|
return /* @__PURE__ */ e(v, { responsive: r, name: t, children: /* @__PURE__ */ e(
|
|
2174
2183
|
M,
|
|
@@ -2276,10 +2285,10 @@ const nr = () => W({
|
|
|
2276
2285
|
flexDirection: a = "row"
|
|
2277
2286
|
}) => {
|
|
2278
2287
|
const l = (() => {
|
|
2279
|
-
let
|
|
2288
|
+
let c = [];
|
|
2280
2289
|
switch (a) {
|
|
2281
2290
|
case "row":
|
|
2282
|
-
|
|
2291
|
+
c = [
|
|
2283
2292
|
{
|
|
2284
2293
|
label: "Top",
|
|
2285
2294
|
value: "flex-start",
|
|
@@ -2303,7 +2312,7 @@ const nr = () => W({
|
|
|
2303
2312
|
];
|
|
2304
2313
|
break;
|
|
2305
2314
|
case "column":
|
|
2306
|
-
|
|
2315
|
+
c = [
|
|
2307
2316
|
{
|
|
2308
2317
|
label: "Left",
|
|
2309
2318
|
value: "flex-start",
|
|
@@ -2327,13 +2336,13 @@ const nr = () => W({
|
|
|
2327
2336
|
];
|
|
2328
2337
|
break;
|
|
2329
2338
|
}
|
|
2330
|
-
return o?.length && (
|
|
2331
|
-
})(),
|
|
2339
|
+
return o?.length && (c = c.filter((u) => !o.includes(u.value))), c;
|
|
2340
|
+
})(), d = (c) => {
|
|
2332
2341
|
n?.({
|
|
2333
|
-
alignItems:
|
|
2342
|
+
alignItems: c
|
|
2334
2343
|
});
|
|
2335
2344
|
};
|
|
2336
|
-
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Align items", children: /* @__PURE__ */ e(U, { value: s?.alignItems, onSelectionChange:
|
|
2345
|
+
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Align items", children: /* @__PURE__ */ e(U, { value: s?.alignItems, onSelectionChange: d, children: l.map((c) => /* @__PURE__ */ e(T, { value: c.value, children: /* @__PURE__ */ e(f, { source: c.icon }) }, c.value)) }) });
|
|
2337
2346
|
}, _r = ({
|
|
2338
2347
|
name: t,
|
|
2339
2348
|
responsive: r = !0,
|
|
@@ -2392,12 +2401,12 @@ const nr = () => W({
|
|
|
2392
2401
|
default:
|
|
2393
2402
|
return [];
|
|
2394
2403
|
}
|
|
2395
|
-
})(), l = (
|
|
2404
|
+
})(), l = (d) => {
|
|
2396
2405
|
n?.({
|
|
2397
|
-
justifyContent:
|
|
2406
|
+
justifyContent: d
|
|
2398
2407
|
});
|
|
2399
2408
|
};
|
|
2400
|
-
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Justify content", children: /* @__PURE__ */ e(U, { value: s?.justifyContent, onSelectionChange: l, children: a.map((
|
|
2409
|
+
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Justify content", children: /* @__PURE__ */ e(U, { value: s?.justifyContent, onSelectionChange: l, children: a.map((d) => /* @__PURE__ */ e(T, { value: d.value, children: /* @__PURE__ */ e(f, { source: d.icon }) }, d.value)) }) });
|
|
2401
2410
|
}, Ur = (t) => {
|
|
2402
2411
|
const { main: r } = qo(t.value);
|
|
2403
2412
|
return /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-2 tw:justify-between", children: [
|
|
@@ -2430,19 +2439,19 @@ const nr = () => W({
|
|
|
2430
2439
|
}) => {
|
|
2431
2440
|
const [o, a] = A(!1), l = (m) => {
|
|
2432
2441
|
a(!0);
|
|
2433
|
-
},
|
|
2442
|
+
}, d = () => {
|
|
2434
2443
|
setTimeout(() => {
|
|
2435
2444
|
a(!1);
|
|
2436
2445
|
}, 100);
|
|
2437
|
-
},
|
|
2446
|
+
}, c = (m) => {
|
|
2438
2447
|
s?.(m);
|
|
2439
2448
|
}, u = (m) => {
|
|
2440
2449
|
const b = isNaN(m.target.valueAsNumber) ? void 0 : m.target.valueAsNumber;
|
|
2441
|
-
|
|
2450
|
+
c(b);
|
|
2442
2451
|
}, h = (m) => {
|
|
2443
|
-
|
|
2452
|
+
c(m.currentTarget.getAttribute("value"));
|
|
2444
2453
|
}, g = (m) => {
|
|
2445
|
-
m.stopPropagation(),
|
|
2454
|
+
m.stopPropagation(), c(void 0);
|
|
2446
2455
|
}, p = nt(t) ? t : void 0, w = me(t) ? r?.find((m) => m.value === t)?.label ?? t : void 0;
|
|
2447
2456
|
return /* @__PURE__ */ i("div", { className: L("tw:relative", n), children: [
|
|
2448
2457
|
/* @__PURE__ */ e(
|
|
@@ -2452,7 +2461,7 @@ const nr = () => W({
|
|
|
2452
2461
|
input: "text-center"
|
|
2453
2462
|
},
|
|
2454
2463
|
onFocus: l,
|
|
2455
|
-
onBlur:
|
|
2464
|
+
onBlur: d,
|
|
2456
2465
|
mode: "onBlur",
|
|
2457
2466
|
placeholder: w,
|
|
2458
2467
|
value: p ?? "",
|
|
@@ -2490,10 +2499,10 @@ const nr = () => W({
|
|
|
2490
2499
|
s({});
|
|
2491
2500
|
return;
|
|
2492
2501
|
}
|
|
2493
|
-
const
|
|
2494
|
-
Bo(
|
|
2502
|
+
const d = {};
|
|
2503
|
+
Bo(d, t, l), s(d);
|
|
2495
2504
|
};
|
|
2496
|
-
return /* @__PURE__ */ e("div", { className: "tw:flex tw:flex-col tw:gap-3", children:
|
|
2505
|
+
return /* @__PURE__ */ e("div", { className: "tw:flex tw:flex-col tw:gap-3", children: xt.map((a) => /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:justify-between tw:gap-2", children: [
|
|
2497
2506
|
/* @__PURE__ */ e("p", { className: "tw:text-xs tw:text-ic-white-5s", children: a.name }),
|
|
2498
2507
|
/* @__PURE__ */ e(
|
|
2499
2508
|
q,
|
|
@@ -2579,7 +2588,7 @@ const nr = () => W({
|
|
|
2579
2588
|
value: "custom"
|
|
2580
2589
|
/* Custom */
|
|
2581
2590
|
}
|
|
2582
|
-
], l = z(n?.aspectRatio) ? "auto" : a.find((C) => C.value === n?.aspectRatio)?.value ?? "custom", [
|
|
2591
|
+
], l = z(n?.aspectRatio) ? "auto" : a.find((C) => C.value === n?.aspectRatio)?.value ?? "custom", [d, c] = A(
|
|
2583
2592
|
l === "custom"
|
|
2584
2593
|
/* Custom */
|
|
2585
2594
|
), u = (C) => {
|
|
@@ -2588,10 +2597,10 @@ const nr = () => W({
|
|
|
2588
2597
|
o?.({ aspectRatio: C === "auto" ? void 0 : C });
|
|
2589
2598
|
}, g = (C) => {
|
|
2590
2599
|
if (C === "custom") {
|
|
2591
|
-
|
|
2600
|
+
c(!0);
|
|
2592
2601
|
return;
|
|
2593
2602
|
}
|
|
2594
|
-
|
|
2603
|
+
c(!1), h(C);
|
|
2595
2604
|
}, p = n?.aspectRatio?.toString().split("/") ?? [], w = xe(p.at(0)), m = xe(p.at(1)), b = (C) => {
|
|
2596
2605
|
const k = isNaN(C.target.valueAsNumber) ? void 0 : C.target.valueAsNumber, R = {
|
|
2597
2606
|
x: w ?? k,
|
|
@@ -2604,13 +2613,13 @@ const nr = () => W({
|
|
|
2604
2613
|
/* @__PURE__ */ e(v, { responsive: r, name: s ?? "Proportion", children: /* @__PURE__ */ e(
|
|
2605
2614
|
he,
|
|
2606
2615
|
{
|
|
2607
|
-
value:
|
|
2616
|
+
value: d ? "custom" : l,
|
|
2608
2617
|
onChange: g,
|
|
2609
2618
|
options: a,
|
|
2610
2619
|
className: "tw:w-1/2"
|
|
2611
2620
|
}
|
|
2612
2621
|
) }),
|
|
2613
|
-
(l === "custom" ||
|
|
2622
|
+
(l === "custom" || d) && /* @__PURE__ */ e("div", { className: "tw:flex tw:justify-end", children: /* @__PURE__ */ i("div", { className: "tw:flex tw:items-center tw:gap-0.5 tw:py-0.5 tw:bg-ic-white-1s tw:rounded-lg tw:px-2 tw:w-1/2", children: [
|
|
2614
2623
|
/* @__PURE__ */ e(
|
|
2615
2624
|
M,
|
|
2616
2625
|
{
|
|
@@ -2646,16 +2655,16 @@ const nr = () => W({
|
|
|
2646
2655
|
)
|
|
2647
2656
|
] }) })
|
|
2648
2657
|
] });
|
|
2649
|
-
},
|
|
2658
|
+
}, ft = ({ name: t, responsive: r = !0, value: s, onChange: n }) => {
|
|
2650
2659
|
const [o, a] = A(!1), l = (p) => {
|
|
2651
2660
|
const w = isNaN(p.target.valueAsNumber) ? void 0 : p.target.valueAsNumber;
|
|
2652
2661
|
n?.({
|
|
2653
2662
|
...s,
|
|
2654
2663
|
[p.target.name]: w
|
|
2655
2664
|
});
|
|
2656
|
-
},
|
|
2665
|
+
}, d = (p) => {
|
|
2657
2666
|
p.target.select();
|
|
2658
|
-
},
|
|
2667
|
+
}, c = s?.paddingTop ?? 0, u = s?.paddingLeft ?? 0, h = s?.paddingRight ?? 0, g = s?.paddingBottom ?? 0;
|
|
2659
2668
|
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Padding (px)", children: /* @__PURE__ */ i(de, { open: o, onOpenChange: a, placement: "right-start", children: [
|
|
2660
2669
|
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ i(
|
|
2661
2670
|
"div",
|
|
@@ -2667,7 +2676,7 @@ const nr = () => W({
|
|
|
2667
2676
|
}
|
|
2668
2677
|
),
|
|
2669
2678
|
children: [
|
|
2670
|
-
/* @__PURE__ */ e("span", { className: "tw:text-xs tw:flex-1 tw:truncate", children: [
|
|
2679
|
+
/* @__PURE__ */ e("span", { className: "tw:text-xs tw:flex-1 tw:truncate", children: [c, u, h, g].join(", ") }),
|
|
2671
2680
|
/* @__PURE__ */ e(
|
|
2672
2681
|
f,
|
|
2673
2682
|
{
|
|
@@ -2690,12 +2699,12 @@ const nr = () => W({
|
|
|
2690
2699
|
/* @__PURE__ */ e("div", { className: "tw:col-start-2", children: /* @__PURE__ */ e(
|
|
2691
2700
|
M,
|
|
2692
2701
|
{
|
|
2693
|
-
onFocus:
|
|
2702
|
+
onFocus: d,
|
|
2694
2703
|
onChange: l,
|
|
2695
2704
|
mode: "onBlur",
|
|
2696
2705
|
autoComplete: "off",
|
|
2697
2706
|
name: "paddingTop",
|
|
2698
|
-
value:
|
|
2707
|
+
value: c,
|
|
2699
2708
|
placeholder: "Top",
|
|
2700
2709
|
className: "tw:text-center"
|
|
2701
2710
|
}
|
|
@@ -2703,7 +2712,7 @@ const nr = () => W({
|
|
|
2703
2712
|
/* @__PURE__ */ e("div", { className: "tw:col-start-1", children: /* @__PURE__ */ e(
|
|
2704
2713
|
M,
|
|
2705
2714
|
{
|
|
2706
|
-
onFocus:
|
|
2715
|
+
onFocus: d,
|
|
2707
2716
|
onChange: l,
|
|
2708
2717
|
mode: "onBlur",
|
|
2709
2718
|
autoComplete: "off",
|
|
@@ -2717,7 +2726,7 @@ const nr = () => W({
|
|
|
2717
2726
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
2718
2727
|
M,
|
|
2719
2728
|
{
|
|
2720
|
-
onFocus:
|
|
2729
|
+
onFocus: d,
|
|
2721
2730
|
onChange: l,
|
|
2722
2731
|
mode: "onBlur",
|
|
2723
2732
|
autoComplete: "off",
|
|
@@ -2730,7 +2739,7 @@ const nr = () => W({
|
|
|
2730
2739
|
/* @__PURE__ */ e("div", { className: "tw:col-start-2", children: /* @__PURE__ */ e(
|
|
2731
2740
|
M,
|
|
2732
2741
|
{
|
|
2733
|
-
onFocus:
|
|
2742
|
+
onFocus: d,
|
|
2734
2743
|
mode: "onBlur",
|
|
2735
2744
|
autoComplete: "off",
|
|
2736
2745
|
name: "paddingBottom",
|
|
@@ -2751,9 +2760,9 @@ const nr = () => W({
|
|
|
2751
2760
|
l.target.select();
|
|
2752
2761
|
},
|
|
2753
2762
|
onChange: (l) => {
|
|
2754
|
-
const
|
|
2763
|
+
const d = isNaN(l.target.valueAsNumber) ? void 0 : l.target.valueAsNumber;
|
|
2755
2764
|
n?.({
|
|
2756
|
-
order:
|
|
2765
|
+
order: d ?? 0
|
|
2757
2766
|
});
|
|
2758
2767
|
},
|
|
2759
2768
|
value: s?.order ?? 0,
|
|
@@ -2762,7 +2771,7 @@ const nr = () => W({
|
|
|
2762
2771
|
size: "32",
|
|
2763
2772
|
min: 0
|
|
2764
2773
|
}
|
|
2765
|
-
) }) }),
|
|
2774
|
+
) }) }), vt = "auto", Xe = ({
|
|
2766
2775
|
name: t,
|
|
2767
2776
|
value: r,
|
|
2768
2777
|
onChange: s
|
|
@@ -2770,15 +2779,15 @@ const nr = () => W({
|
|
|
2770
2779
|
const [n, o] = A(!1), a = [
|
|
2771
2780
|
{
|
|
2772
2781
|
label: "Auto",
|
|
2773
|
-
value:
|
|
2782
|
+
value: vt
|
|
2774
2783
|
}
|
|
2775
2784
|
], l = () => {
|
|
2776
2785
|
setTimeout(() => {
|
|
2777
2786
|
o(!1);
|
|
2778
2787
|
}, 100);
|
|
2779
|
-
}, c = (g) => {
|
|
2780
|
-
o(!0), g.target.select();
|
|
2781
2788
|
}, d = (g) => {
|
|
2789
|
+
o(!0), g.target.select();
|
|
2790
|
+
}, c = (g) => {
|
|
2782
2791
|
const p = isNaN(g.target.valueAsNumber) ? void 0 : g.target.valueAsNumber;
|
|
2783
2792
|
s?.(t, p);
|
|
2784
2793
|
}, u = (g) => {
|
|
@@ -2791,15 +2800,15 @@ const nr = () => W({
|
|
|
2791
2800
|
M,
|
|
2792
2801
|
{
|
|
2793
2802
|
mode: "onBlur",
|
|
2794
|
-
onFocus:
|
|
2803
|
+
onFocus: d,
|
|
2795
2804
|
className: "tw:text-center",
|
|
2796
2805
|
autoComplete: "off",
|
|
2797
2806
|
fullWidth: !0,
|
|
2798
|
-
placeholder: r ===
|
|
2807
|
+
placeholder: r === vt ? "Auto" : void 0,
|
|
2799
2808
|
value: r ?? 0,
|
|
2800
2809
|
onBlur: l,
|
|
2801
2810
|
name: t,
|
|
2802
|
-
onChange:
|
|
2811
|
+
onChange: c
|
|
2803
2812
|
}
|
|
2804
2813
|
),
|
|
2805
2814
|
/* @__PURE__ */ i(Se, { open: n, placement: "bottom-start", children: [
|
|
@@ -2829,7 +2838,7 @@ const nr = () => W({
|
|
|
2829
2838
|
...s,
|
|
2830
2839
|
[g]: p
|
|
2831
2840
|
});
|
|
2832
|
-
},
|
|
2841
|
+
}, d = s?.marginTop ?? 0, c = s?.marginLeft ?? 0, u = s?.marginRight ?? 0, h = s?.marginBottom ?? 0;
|
|
2833
2842
|
return /* @__PURE__ */ e(v, { responsive: r, name: t ?? "Margin (px)", children: /* @__PURE__ */ i(de, { open: o, onOpenChange: a, placement: "right-start", children: [
|
|
2834
2843
|
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ i(
|
|
2835
2844
|
"div",
|
|
@@ -2841,7 +2850,7 @@ const nr = () => W({
|
|
|
2841
2850
|
}
|
|
2842
2851
|
),
|
|
2843
2852
|
children: [
|
|
2844
|
-
/* @__PURE__ */ e("span", { className: "tw:text-xs tw:flex-1 tw:truncate", children: [
|
|
2853
|
+
/* @__PURE__ */ e("span", { className: "tw:text-xs tw:flex-1 tw:truncate", children: [d, c, u, h].map((g) => g === vt ? "Auto" : g).join(", ") }),
|
|
2845
2854
|
/* @__PURE__ */ e(
|
|
2846
2855
|
f,
|
|
2847
2856
|
{
|
|
@@ -2861,8 +2870,8 @@ const nr = () => W({
|
|
|
2861
2870
|
] }),
|
|
2862
2871
|
/* @__PURE__ */ e("hr", { className: "tw:border-ic-white-1s tw:my-3" }),
|
|
2863
2872
|
/* @__PURE__ */ i("div", { className: "tw:grid tw:grid-cols-3 tw:gap-2", style: { maxWidth: 256 }, children: [
|
|
2864
|
-
/* @__PURE__ */ e("div", { className: "tw:col-start-2", children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginTop", value:
|
|
2865
|
-
/* @__PURE__ */ e("div", { className: "tw:col-start-1", children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginLeft", value:
|
|
2873
|
+
/* @__PURE__ */ e("div", { className: "tw:col-start-2", children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginTop", value: d }) }),
|
|
2874
|
+
/* @__PURE__ */ e("div", { className: "tw:col-start-1", children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginLeft", value: c }) }),
|
|
2866
2875
|
/* @__PURE__ */ e("div", { className: "tw:flex tw:items-center tw:justify-center", children: /* @__PURE__ */ e(f, { source: Dt }) }),
|
|
2867
2876
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginRight", value: u }) }),
|
|
2868
2877
|
/* @__PURE__ */ e("div", { className: "tw:col-start-2", children: /* @__PURE__ */ e(Xe, { onChange: l, name: "marginBottom", value: h }) })
|
|
@@ -2902,7 +2911,7 @@ const nr = () => W({
|
|
|
2902
2911
|
marginLeft: n(t.sx ?? {}, "marginLeft"),
|
|
2903
2912
|
marginRight: n(t.sx ?? {}, "marginRight"),
|
|
2904
2913
|
marginTop: n(t.sx ?? {}, "marginTop")
|
|
2905
|
-
},
|
|
2914
|
+
}, d = {
|
|
2906
2915
|
backgroundColor: n(t.sx ?? {}, "backgroundColor"),
|
|
2907
2916
|
backgroundImage: n(t.sx ?? {}, "backgroundImage"),
|
|
2908
2917
|
backgroundPosition: n(t.sx ?? {}, "backgroundPosition"),
|
|
@@ -2910,7 +2919,7 @@ const nr = () => W({
|
|
|
2910
2919
|
background: n(t.sx ?? {}, "background"),
|
|
2911
2920
|
backgroundSize: n(t.sx ?? {}, "backgroundSize"),
|
|
2912
2921
|
backgroundAttachment: n(t.sx ?? {}, "backgroundAttachment")
|
|
2913
|
-
},
|
|
2922
|
+
}, c = () => /* @__PURE__ */ e(K, { canvas: !0, is: _n }), u = {
|
|
2914
2923
|
columnGap: n(t.sx ?? {}, "columnGap") ?? 0
|
|
2915
2924
|
}, h = {
|
|
2916
2925
|
rowGap: n(t.sx ?? {}, "rowGap") ?? 0
|
|
@@ -2949,7 +2958,7 @@ const nr = () => W({
|
|
|
2949
2958
|
] }),
|
|
2950
2959
|
/* @__PURE__ */ i(Z, { className: "tw:px-2", children: [
|
|
2951
2960
|
/* @__PURE__ */ i(y, { children: [
|
|
2952
|
-
/* @__PURE__ */ e(x, { name: "Cells", children: /* @__PURE__ */ e(Ze, { getNewNodeElement:
|
|
2961
|
+
/* @__PURE__ */ e(x, { name: "Cells", children: /* @__PURE__ */ e(Ze, { getNewNodeElement: c }) }),
|
|
2953
2962
|
/* @__PURE__ */ i(x, { name: "Layout", children: [
|
|
2954
2963
|
/* @__PURE__ */ e(v, { name: "Container", children: /* @__PURE__ */ e(q, { onChange: (N) => {
|
|
2955
2964
|
s({
|
|
@@ -2984,7 +2993,7 @@ const nr = () => W({
|
|
|
2984
2993
|
/* @__PURE__ */ e(G, { value: b, onChange: a }),
|
|
2985
2994
|
/* @__PURE__ */ e(D, { value: C, onChange: a })
|
|
2986
2995
|
] }),
|
|
2987
|
-
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value:
|
|
2996
|
+
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: d, onChange: a }) })
|
|
2988
2997
|
] })
|
|
2989
2998
|
] })
|
|
2990
2999
|
] });
|
|
@@ -2997,10 +3006,10 @@ const nr = () => W({
|
|
|
2997
3006
|
{
|
|
2998
3007
|
step: 1,
|
|
2999
3008
|
onChange: (l) => {
|
|
3000
|
-
const
|
|
3009
|
+
const d = isNaN(l.target.valueAsNumber) ? void 0 : l.target.valueAsNumber;
|
|
3001
3010
|
n(
|
|
3002
3011
|
{
|
|
3003
|
-
colSpan:
|
|
3012
|
+
colSpan: d ?? o
|
|
3004
3013
|
},
|
|
3005
3014
|
t
|
|
3006
3015
|
);
|
|
@@ -3033,14 +3042,14 @@ const nr = () => W({
|
|
|
3033
3042
|
marginLeft: n(t.sx ?? {}, "marginLeft"),
|
|
3034
3043
|
marginRight: n(t.sx ?? {}, "marginRight"),
|
|
3035
3044
|
marginTop: n(t.sx ?? {}, "marginTop")
|
|
3036
|
-
},
|
|
3045
|
+
}, d = {
|
|
3037
3046
|
borderStyle: n(t.sx ?? {}, "borderStyle"),
|
|
3038
3047
|
borderColor: n(t.sx ?? {}, "borderColor"),
|
|
3039
3048
|
borderTopWidth: n(t.sx ?? {}, "borderTopWidth"),
|
|
3040
3049
|
borderRightWidth: n(t.sx ?? {}, "borderRightWidth"),
|
|
3041
3050
|
borderBottomWidth: n(t.sx ?? {}, "borderBottomWidth"),
|
|
3042
3051
|
borderLeftWidth: n(t.sx ?? {}, "borderLeftWidth")
|
|
3043
|
-
},
|
|
3052
|
+
}, c = {
|
|
3044
3053
|
borderTopLeftRadius: n(t.sx ?? {}, "borderTopLeftRadius"),
|
|
3045
3054
|
borderTopRightRadius: n(t.sx ?? {}, "borderTopRightRadius"),
|
|
3046
3055
|
borderBottomRightRadius: n(t.sx ?? {}, "borderBottomRightRadius"),
|
|
@@ -3067,8 +3076,8 @@ const nr = () => W({
|
|
|
3067
3076
|
/* @__PURE__ */ e(x, { name: "Display on", children: /* @__PURE__ */ e(pe, {}) }),
|
|
3068
3077
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: l, onChange: o }) }),
|
|
3069
3078
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
3070
|
-
/* @__PURE__ */ e(G, { value:
|
|
3071
|
-
/* @__PURE__ */ e(D, { value:
|
|
3079
|
+
/* @__PURE__ */ e(G, { value: d, onChange: o }),
|
|
3080
|
+
/* @__PURE__ */ e(D, { value: c, onChange: o })
|
|
3072
3081
|
] }),
|
|
3073
3082
|
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: a, onChange: o }) })
|
|
3074
3083
|
] })
|
|
@@ -3119,14 +3128,14 @@ const nr = () => W({
|
|
|
3119
3128
|
marginLeft: o(t.sx ?? {}, "marginLeft"),
|
|
3120
3129
|
marginRight: o(t.sx ?? {}, "marginRight"),
|
|
3121
3130
|
marginTop: o(t.sx ?? {}, "marginTop")
|
|
3122
|
-
},
|
|
3131
|
+
}, d = {
|
|
3123
3132
|
borderStyle: o(t.sx ?? {}, "borderStyle"),
|
|
3124
3133
|
borderColor: o(t.sx ?? {}, "borderColor"),
|
|
3125
3134
|
borderTopWidth: o(t.sx ?? {}, "borderTopWidth"),
|
|
3126
3135
|
borderRightWidth: o(t.sx ?? {}, "borderRightWidth"),
|
|
3127
3136
|
borderBottomWidth: o(t.sx ?? {}, "borderBottomWidth"),
|
|
3128
3137
|
borderLeftWidth: o(t.sx ?? {}, "borderLeftWidth")
|
|
3129
|
-
},
|
|
3138
|
+
}, c = {
|
|
3130
3139
|
borderTopLeftRadius: o(t.sx ?? {}, "borderTopLeftRadius"),
|
|
3131
3140
|
borderTopRightRadius: o(t.sx ?? {}, "borderTopRightRadius"),
|
|
3132
3141
|
borderBottomRightRadius: o(t.sx ?? {}, "borderBottomRightRadius"),
|
|
@@ -3177,14 +3186,14 @@ const nr = () => W({
|
|
|
3177
3186
|
] }),
|
|
3178
3187
|
/* @__PURE__ */ i(x, { name: "Text", children: [
|
|
3179
3188
|
/* @__PURE__ */ e(
|
|
3180
|
-
|
|
3189
|
+
st,
|
|
3181
3190
|
{
|
|
3182
3191
|
onChange: u,
|
|
3183
3192
|
value: o(t, "textVariant")
|
|
3184
3193
|
}
|
|
3185
3194
|
),
|
|
3186
3195
|
/* @__PURE__ */ e(Ae, { value: h, onChange: g }),
|
|
3187
|
-
/* @__PURE__ */ e(
|
|
3196
|
+
/* @__PURE__ */ e(rt, { value: p, onChange: w }),
|
|
3188
3197
|
/* @__PURE__ */ e(Tn, { value: m, onChange: b }),
|
|
3189
3198
|
/* @__PURE__ */ e(
|
|
3190
3199
|
Et,
|
|
@@ -3196,7 +3205,7 @@ const nr = () => W({
|
|
|
3196
3205
|
}
|
|
3197
3206
|
),
|
|
3198
3207
|
/* @__PURE__ */ e(
|
|
3199
|
-
|
|
3208
|
+
at,
|
|
3200
3209
|
{
|
|
3201
3210
|
value: {
|
|
3202
3211
|
fontWeight: o(t.sx ?? {}, "fontWeight")
|
|
@@ -3210,16 +3219,16 @@ const nr = () => W({
|
|
|
3210
3219
|
/* @__PURE__ */ i(y, { children: [
|
|
3211
3220
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: l, onChange: a }) }),
|
|
3212
3221
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
3213
|
-
/* @__PURE__ */ e(G, { value:
|
|
3214
|
-
/* @__PURE__ */ e(D, { value:
|
|
3222
|
+
/* @__PURE__ */ e(G, { value: d, onChange: a }),
|
|
3223
|
+
/* @__PURE__ */ e(D, { value: c, onChange: a })
|
|
3215
3224
|
] })
|
|
3216
3225
|
] })
|
|
3217
3226
|
] })
|
|
3218
3227
|
] });
|
|
3219
|
-
},
|
|
3228
|
+
}, it = () => W({
|
|
3220
3229
|
transform: co
|
|
3221
3230
|
}), ns = ({ readonlyTo: t }) => {
|
|
3222
|
-
const { nodeProps: r, setNodeProps: s } =
|
|
3231
|
+
const { nodeProps: r, setNodeProps: s } = it(), n = t ?? r.anchor?.to, o = (() => {
|
|
3223
3232
|
if (!z(n))
|
|
3224
3233
|
return me(n) ? n : Uo(n);
|
|
3225
3234
|
})();
|
|
@@ -3249,7 +3258,7 @@ const nr = () => W({
|
|
|
3249
3258
|
}
|
|
3250
3259
|
) });
|
|
3251
3260
|
}, os = () => {
|
|
3252
|
-
const { nodeProps: t, setNodeResponsiveProps: r } =
|
|
3261
|
+
const { nodeProps: t, setNodeResponsiveProps: r } = it(), { getResponsiveProp: s, currentScreen: n } = I(), o = [
|
|
3253
3262
|
{
|
|
3254
3263
|
label: "Small",
|
|
3255
3264
|
value: "sm"
|
|
@@ -3293,7 +3302,7 @@ const nr = () => W({
|
|
|
3293
3302
|
label: "Text"
|
|
3294
3303
|
}
|
|
3295
3304
|
], ss = () => {
|
|
3296
|
-
const { nodeProps: t, setNodeProps: r } =
|
|
3305
|
+
const { nodeProps: t, setNodeProps: r } = it(), s = (n) => {
|
|
3297
3306
|
r({
|
|
3298
3307
|
variant: n.currentTarget.value
|
|
3299
3308
|
});
|
|
@@ -3326,17 +3335,17 @@ const nr = () => W({
|
|
|
3326
3335
|
);
|
|
3327
3336
|
}) }) });
|
|
3328
3337
|
}, ka = ({ readonlyTo: t }) => {
|
|
3329
|
-
const { nodeProps: r, setNodeProps: s } =
|
|
3338
|
+
const { nodeProps: r, setNodeProps: s } = it(), { currentScreen: n, getResponsiveProp: o } = I(), a = (h, g = n) => {
|
|
3330
3339
|
s({
|
|
3331
3340
|
sx: H(h, g)
|
|
3332
3341
|
});
|
|
3333
3342
|
}, l = {
|
|
3334
3343
|
width: o(r.sx ?? {}, "width")
|
|
3335
|
-
},
|
|
3344
|
+
}, d = (h) => {
|
|
3336
3345
|
s({
|
|
3337
3346
|
color: h
|
|
3338
3347
|
});
|
|
3339
|
-
},
|
|
3348
|
+
}, c = (h) => {
|
|
3340
3349
|
s({
|
|
3341
3350
|
anchor: {
|
|
3342
3351
|
target: h
|
|
@@ -3365,7 +3374,7 @@ const nr = () => W({
|
|
|
3365
3374
|
}
|
|
3366
3375
|
) }) }),
|
|
3367
3376
|
/* @__PURE__ */ i(x, { name: "Color & Variant", children: [
|
|
3368
|
-
/* @__PURE__ */ e(qr, { value: r.color, onChange:
|
|
3377
|
+
/* @__PURE__ */ e(qr, { value: r.color, onChange: d }),
|
|
3369
3378
|
/* @__PURE__ */ e(ss, {})
|
|
3370
3379
|
] }),
|
|
3371
3380
|
/* @__PURE__ */ i(x, { name: "Size", children: [
|
|
@@ -3374,7 +3383,7 @@ const nr = () => W({
|
|
|
3374
3383
|
] }),
|
|
3375
3384
|
/* @__PURE__ */ i(x, { name: "Link", children: [
|
|
3376
3385
|
/* @__PURE__ */ e(ns, { readonlyTo: t }),
|
|
3377
|
-
/* @__PURE__ */ e(Vn, { value: r.anchor?.target, onChange:
|
|
3386
|
+
/* @__PURE__ */ e(Vn, { value: r.anchor?.target, onChange: c })
|
|
3378
3387
|
] })
|
|
3379
3388
|
] }),
|
|
3380
3389
|
/* @__PURE__ */ i(y, { children: [
|
|
@@ -3457,12 +3466,12 @@ const nr = () => W({
|
|
|
3457
3466
|
borderRightWidth: n(t.sx ?? {}, "borderRightWidth"),
|
|
3458
3467
|
borderBottomWidth: n(t.sx ?? {}, "borderBottomWidth"),
|
|
3459
3468
|
borderLeftWidth: n(t.sx ?? {}, "borderLeftWidth")
|
|
3460
|
-
},
|
|
3469
|
+
}, d = {
|
|
3461
3470
|
borderTopLeftRadius: n(t.sx ?? {}, "borderTopLeftRadius"),
|
|
3462
3471
|
borderTopRightRadius: n(t.sx ?? {}, "borderTopRightRadius"),
|
|
3463
3472
|
borderBottomRightRadius: n(t.sx ?? {}, "borderBottomRightRadius"),
|
|
3464
3473
|
borderBottomLeftRadius: n(t.sx ?? {}, "borderBottomLeftRadius")
|
|
3465
|
-
},
|
|
3474
|
+
}, c = () => /* @__PURE__ */ e(K, { canvas: !0, is: Un }), u = {
|
|
3466
3475
|
rowGap: n(t.sx ?? {}, "rowGap") ?? 0
|
|
3467
3476
|
}, h = {
|
|
3468
3477
|
columnGap: n(t.sx ?? {}, "columnGap") ?? 0
|
|
@@ -3490,7 +3499,7 @@ const nr = () => W({
|
|
|
3490
3499
|
] }),
|
|
3491
3500
|
/* @__PURE__ */ i(Z, { className: "tw:px-2", children: [
|
|
3492
3501
|
/* @__PURE__ */ i(y, { children: [
|
|
3493
|
-
/* @__PURE__ */ e(x, { name: "Flex items", children: /* @__PURE__ */ e(Ze, { getNewNodeElement:
|
|
3502
|
+
/* @__PURE__ */ e(x, { name: "Flex items", children: /* @__PURE__ */ e(Ze, { getNewNodeElement: c }) }),
|
|
3494
3503
|
/* @__PURE__ */ i(x, { name: "Layout", children: [
|
|
3495
3504
|
/* @__PURE__ */ e(v, { name: "Container", children: /* @__PURE__ */ e(q, { onChange: (R) => {
|
|
3496
3505
|
r({
|
|
@@ -3539,7 +3548,7 @@ const nr = () => W({
|
|
|
3539
3548
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: a, onChange: o }) }),
|
|
3540
3549
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
3541
3550
|
/* @__PURE__ */ e(G, { value: l, onChange: o }),
|
|
3542
|
-
/* @__PURE__ */ e(D, { value:
|
|
3551
|
+
/* @__PURE__ */ e(D, { value: d, onChange: o })
|
|
3543
3552
|
] }),
|
|
3544
3553
|
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: C, onChange: o }) })
|
|
3545
3554
|
] })
|
|
@@ -3590,12 +3599,12 @@ const nr = () => W({
|
|
|
3590
3599
|
borderRightWidth: n(t.sx ?? {}, "borderRightWidth"),
|
|
3591
3600
|
borderBottomWidth: n(t.sx ?? {}, "borderBottomWidth"),
|
|
3592
3601
|
borderLeftWidth: n(t.sx ?? {}, "borderLeftWidth")
|
|
3593
|
-
},
|
|
3602
|
+
}, d = {
|
|
3594
3603
|
borderTopLeftRadius: n(t.sx ?? {}, "borderTopLeftRadius"),
|
|
3595
3604
|
borderTopRightRadius: n(t.sx ?? {}, "borderTopRightRadius"),
|
|
3596
3605
|
borderBottomRightRadius: n(t.sx ?? {}, "borderBottomRightRadius"),
|
|
3597
3606
|
borderBottomLeftRadius: n(t.sx ?? {}, "borderBottomLeftRadius")
|
|
3598
|
-
},
|
|
3607
|
+
}, c = {
|
|
3599
3608
|
width: n(t.sx ?? {}, "width")
|
|
3600
3609
|
}, u = {
|
|
3601
3610
|
backgroundColor: n(t.sx ?? {}, "backgroundColor"),
|
|
@@ -3625,7 +3634,7 @@ const nr = () => W({
|
|
|
3625
3634
|
fitContentOption: { visible: !0 }
|
|
3626
3635
|
},
|
|
3627
3636
|
onChange: o,
|
|
3628
|
-
value:
|
|
3637
|
+
value: c
|
|
3629
3638
|
}
|
|
3630
3639
|
),
|
|
3631
3640
|
/* @__PURE__ */ e(
|
|
@@ -3644,7 +3653,7 @@ const nr = () => W({
|
|
|
3644
3653
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: a, onChange: o }) }),
|
|
3645
3654
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
3646
3655
|
/* @__PURE__ */ e(G, { value: l, onChange: o }),
|
|
3647
|
-
/* @__PURE__ */ e(D, { value:
|
|
3656
|
+
/* @__PURE__ */ e(D, { value: d, onChange: o })
|
|
3648
3657
|
] }),
|
|
3649
3658
|
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: u, onChange: o }) })
|
|
3650
3659
|
] })
|
|
@@ -3653,7 +3662,7 @@ const nr = () => W({
|
|
|
3653
3662
|
}, On = ({ availableTags: t = [] }) => {
|
|
3654
3663
|
const { setNodeProps: r, setNodeResponsiveProps: s, nodeProps: n } = W(), { currentScreen: o, getResponsiveProp: a } = I(), l = (R, V = o) => {
|
|
3655
3664
|
r({ sx: H(R, V) });
|
|
3656
|
-
},
|
|
3665
|
+
}, d = a(n.sx ?? {}, "textAlign") ?? "left", c = (R) => {
|
|
3657
3666
|
l({
|
|
3658
3667
|
textAlign: R
|
|
3659
3668
|
});
|
|
@@ -3706,15 +3715,15 @@ const nr = () => W({
|
|
|
3706
3715
|
/* @__PURE__ */ i(y, { children: [
|
|
3707
3716
|
/* @__PURE__ */ i(x, { name: "Text", children: [
|
|
3708
3717
|
/* @__PURE__ */ e(
|
|
3709
|
-
|
|
3718
|
+
st,
|
|
3710
3719
|
{
|
|
3711
3720
|
onChange: m,
|
|
3712
3721
|
value: a(n, "sizeVariant")
|
|
3713
3722
|
}
|
|
3714
3723
|
),
|
|
3715
3724
|
/* @__PURE__ */ e(Ae, { value: p, onChange: w }),
|
|
3716
|
-
/* @__PURE__ */ e(
|
|
3717
|
-
/* @__PURE__ */ e(Tn, { value:
|
|
3725
|
+
/* @__PURE__ */ e(rt, { value: u, onChange: h }),
|
|
3726
|
+
/* @__PURE__ */ e(Tn, { value: d, onChange: c }),
|
|
3718
3727
|
/* @__PURE__ */ e(
|
|
3719
3728
|
Et,
|
|
3720
3729
|
{
|
|
@@ -3725,7 +3734,7 @@ const nr = () => W({
|
|
|
3725
3734
|
}
|
|
3726
3735
|
),
|
|
3727
3736
|
/* @__PURE__ */ e(
|
|
3728
|
-
|
|
3737
|
+
at,
|
|
3729
3738
|
{
|
|
3730
3739
|
responsive: !0,
|
|
3731
3740
|
value: {
|
|
@@ -3749,21 +3758,21 @@ const nr = () => W({
|
|
|
3749
3758
|
id: n,
|
|
3750
3759
|
nodeProps: { dangerouslySetInnerHTML: o, ...a },
|
|
3751
3760
|
setNodeProps: l
|
|
3752
|
-
} = hs(),
|
|
3761
|
+
} = hs(), d = te(o?.__html), { isActive: c } = oe((g, p) => ({
|
|
3753
3762
|
isActive: p.getEvent("selected").contains(n)
|
|
3754
3763
|
}));
|
|
3755
3764
|
fe(() => {
|
|
3756
|
-
|
|
3757
|
-
dangerouslySetInnerHTML: { __html:
|
|
3758
|
-
}),
|
|
3759
|
-
}, [
|
|
3765
|
+
c || z(d.current) || (l({
|
|
3766
|
+
dangerouslySetInnerHTML: { __html: d.current }
|
|
3767
|
+
}), d.current = void 0);
|
|
3768
|
+
}, [c]);
|
|
3760
3769
|
const u = dn(({ editor: g }) => {
|
|
3761
|
-
|
|
3770
|
+
d.current = g.getHTML();
|
|
3762
3771
|
}), {
|
|
3763
3772
|
queryParams: { mode: h }
|
|
3764
|
-
} =
|
|
3773
|
+
} = Tt();
|
|
3765
3774
|
return /* @__PURE__ */ i(ne, { children: [
|
|
3766
|
-
|
|
3775
|
+
c && h === "full" && /* @__PURE__ */ i(ne, { children: [
|
|
3767
3776
|
/* @__PURE__ */ e(un, {}),
|
|
3768
3777
|
/* @__PURE__ */ e(hn, {})
|
|
3769
3778
|
] }),
|
|
@@ -3800,21 +3809,21 @@ const nr = () => W({
|
|
|
3800
3809
|
id: n,
|
|
3801
3810
|
nodeProps: { dangerouslySetInnerHTML: o, ...a },
|
|
3802
3811
|
setNodeProps: l
|
|
3803
|
-
} = gs(),
|
|
3812
|
+
} = gs(), d = te(o?.__html), { isActive: c } = oe((g, p) => ({
|
|
3804
3813
|
isActive: p.getEvent("selected").contains(n)
|
|
3805
3814
|
}));
|
|
3806
3815
|
fe(() => {
|
|
3807
|
-
|
|
3808
|
-
dangerouslySetInnerHTML: { __html:
|
|
3809
|
-
}),
|
|
3810
|
-
}, [
|
|
3816
|
+
c || z(d.current) || (l({
|
|
3817
|
+
dangerouslySetInnerHTML: { __html: d.current }
|
|
3818
|
+
}), d.current = void 0);
|
|
3819
|
+
}, [c]);
|
|
3811
3820
|
const u = dn(({ editor: g }) => {
|
|
3812
|
-
|
|
3821
|
+
d.current = g.getHTML();
|
|
3813
3822
|
}), {
|
|
3814
3823
|
queryParams: { mode: h }
|
|
3815
|
-
} =
|
|
3824
|
+
} = Tt();
|
|
3816
3825
|
return /* @__PURE__ */ i(ne, { children: [
|
|
3817
|
-
|
|
3826
|
+
c && h === "full" && /* @__PURE__ */ i(ne, { children: [
|
|
3818
3827
|
/* @__PURE__ */ e(un, {}),
|
|
3819
3828
|
/* @__PURE__ */ e(hn, {})
|
|
3820
3829
|
] }),
|
|
@@ -3853,7 +3862,7 @@ const nr = () => W({
|
|
|
3853
3862
|
},
|
|
3854
3863
|
onChange: (o) => {
|
|
3855
3864
|
r({
|
|
3856
|
-
alt:
|
|
3865
|
+
alt: Lt(o.target.value)
|
|
3857
3866
|
});
|
|
3858
3867
|
},
|
|
3859
3868
|
placeholder: "E.g: Classic white crewneck t-shirt with minimalist logo design, casual and versatile style",
|
|
@@ -3896,7 +3905,7 @@ const ms = [
|
|
|
3896
3905
|
"custom"
|
|
3897
3906
|
/* Custom */
|
|
3898
3907
|
].includes(r) ? t : `${t} (${r})`, fs = () => {
|
|
3899
|
-
const { nodeProps: t, setNodeProps: r } = De(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(null), l = n(t.sx ?? {}, "aspectRatio") ?? "auto",
|
|
3908
|
+
const { nodeProps: t, setNodeProps: r } = De(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(null), l = n(t.sx ?? {}, "aspectRatio") ?? "auto", d = Object.values(jn).find((C) => C === l) ?? "custom", c = (C) => {
|
|
3900
3909
|
C.target.select();
|
|
3901
3910
|
}, u = (C = "auto") => {
|
|
3902
3911
|
const k = {
|
|
@@ -3911,7 +3920,7 @@ const ms = [
|
|
|
3911
3920
|
return;
|
|
3912
3921
|
}
|
|
3913
3922
|
a(null), u(C);
|
|
3914
|
-
}, g = o ??
|
|
3923
|
+
}, g = o ?? d, p = l.toString().split("/"), w = xe(p.at(0)), m = xe(p.at(1)), b = (C) => {
|
|
3915
3924
|
const k = isNaN(C.target.valueAsNumber) ? void 0 : C.target.valueAsNumber, R = {
|
|
3916
3925
|
x: w ?? k,
|
|
3917
3926
|
y: m ?? k,
|
|
@@ -3936,7 +3945,7 @@ const ms = [
|
|
|
3936
3945
|
M,
|
|
3937
3946
|
{
|
|
3938
3947
|
name: "x",
|
|
3939
|
-
onFocus:
|
|
3948
|
+
onFocus: c,
|
|
3940
3949
|
classes: {
|
|
3941
3950
|
main: "bg-transparent px-1"
|
|
3942
3951
|
},
|
|
@@ -3957,7 +3966,7 @@ const ms = [
|
|
|
3957
3966
|
value: m,
|
|
3958
3967
|
mode: "onBlur",
|
|
3959
3968
|
onChange: b,
|
|
3960
|
-
onFocus:
|
|
3969
|
+
onFocus: c,
|
|
3961
3970
|
classes: {
|
|
3962
3971
|
main: "bg-transparent px-1"
|
|
3963
3972
|
},
|
|
@@ -3982,9 +3991,9 @@ const ms = [
|
|
|
3982
3991
|
readOnly: m.dom?.getAttribute("aria-readonly") === Ce.True
|
|
3983
3992
|
})), { nodeProps: n, setNodeProps: o } = De(), a = r(n.sx ?? {}, "aspectRatio") ?? "auto", l = (m, b = t) => {
|
|
3984
3993
|
o({ sx: H(m, b) });
|
|
3985
|
-
}, c = {
|
|
3986
|
-
width: r(n.sx ?? {}, "width")
|
|
3987
3994
|
}, d = {
|
|
3995
|
+
width: r(n.sx ?? {}, "width")
|
|
3996
|
+
}, c = {
|
|
3988
3997
|
height: r(n.sx ?? {}, "height")
|
|
3989
3998
|
}, u = {
|
|
3990
3999
|
objectFit: r(n.sx ?? {}, "objectFit")
|
|
@@ -4030,8 +4039,8 @@ const ms = [
|
|
|
4030
4039
|
] }),
|
|
4031
4040
|
/* @__PURE__ */ i(x, { name: "Size", children: [
|
|
4032
4041
|
/* @__PURE__ */ e(fs, {}),
|
|
4033
|
-
/* @__PURE__ */ e($, { value:
|
|
4034
|
-
a === "auto" && /* @__PURE__ */ e(Me, { value:
|
|
4042
|
+
/* @__PURE__ */ e($, { value: d, onChange: l }),
|
|
4043
|
+
a === "auto" && /* @__PURE__ */ e(Me, { value: c, onChange: l }),
|
|
4035
4044
|
/* @__PURE__ */ e(Dr, { value: u, onChange: h })
|
|
4036
4045
|
] }),
|
|
4037
4046
|
/* @__PURE__ */ e(x, { name: "SEO", children: /* @__PURE__ */ e(ps, {}) })
|
|
@@ -4050,20 +4059,20 @@ const ms = [
|
|
|
4050
4059
|
}), Ns = () => {
|
|
4051
4060
|
const { nodeDOM: t } = re((a) => ({
|
|
4052
4061
|
nodeDOM: a.dom
|
|
4053
|
-
})), r = (a) => a?.getAttribute(
|
|
4062
|
+
})), r = (a) => a?.getAttribute(mt.PlayState) || "on", [s, n] = A(!1), o = () => {
|
|
4054
4063
|
const a = r(t);
|
|
4055
|
-
t?.setAttribute(
|
|
4064
|
+
t?.setAttribute(mt.PlayState, a === "on" ? "off" : "on");
|
|
4056
4065
|
};
|
|
4057
4066
|
return fe(() => {
|
|
4058
4067
|
const a = new MutationObserver((l) => {
|
|
4059
|
-
const
|
|
4060
|
-
if (!
|
|
4061
|
-
const
|
|
4062
|
-
n(
|
|
4068
|
+
const d = l.at(0)?.target;
|
|
4069
|
+
if (!d) return;
|
|
4070
|
+
const c = r(d);
|
|
4071
|
+
n(c === "on");
|
|
4063
4072
|
});
|
|
4064
4073
|
return t && a.observe(t, {
|
|
4065
4074
|
attributes: !0,
|
|
4066
|
-
attributeFilter: [
|
|
4075
|
+
attributeFilter: [mt.PlayState]
|
|
4067
4076
|
}), () => {
|
|
4068
4077
|
a.disconnect();
|
|
4069
4078
|
};
|
|
@@ -4085,14 +4094,14 @@ const ms = [
|
|
|
4085
4094
|
marginLeft: o(t.sx ?? {}, "marginLeft"),
|
|
4086
4095
|
marginRight: o(t.sx ?? {}, "marginRight"),
|
|
4087
4096
|
marginTop: o(t.sx ?? {}, "marginTop")
|
|
4088
|
-
},
|
|
4097
|
+
}, d = {
|
|
4089
4098
|
borderStyle: o(t.sx ?? {}, "borderStyle"),
|
|
4090
4099
|
borderColor: o(t.sx ?? {}, "borderColor"),
|
|
4091
4100
|
borderTopWidth: o(t.sx ?? {}, "borderTopWidth"),
|
|
4092
4101
|
borderRightWidth: o(t.sx ?? {}, "borderRightWidth"),
|
|
4093
4102
|
borderBottomWidth: o(t.sx ?? {}, "borderBottomWidth"),
|
|
4094
4103
|
borderLeftWidth: o(t.sx ?? {}, "borderLeftWidth")
|
|
4095
|
-
},
|
|
4104
|
+
}, c = {
|
|
4096
4105
|
borderTopLeftRadius: o(t.sx ?? {}, "borderTopLeftRadius"),
|
|
4097
4106
|
borderTopRightRadius: o(t.sx ?? {}, "borderTopRightRadius"),
|
|
4098
4107
|
borderBottomRightRadius: o(t.sx ?? {}, "borderBottomRightRadius"),
|
|
@@ -4206,8 +4215,8 @@ const ms = [
|
|
|
4206
4215
|
/* @__PURE__ */ i(y, { children: [
|
|
4207
4216
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: l, onChange: a }) }),
|
|
4208
4217
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
4209
|
-
/* @__PURE__ */ e(G, { value:
|
|
4210
|
-
/* @__PURE__ */ e(D, { value:
|
|
4218
|
+
/* @__PURE__ */ e(G, { value: d, onChange: a }),
|
|
4219
|
+
/* @__PURE__ */ e(D, { value: c, onChange: a })
|
|
4211
4220
|
] }),
|
|
4212
4221
|
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: u, onChange: a }) })
|
|
4213
4222
|
] })
|
|
@@ -4217,7 +4226,7 @@ const ms = [
|
|
|
4217
4226
|
transform: mo,
|
|
4218
4227
|
nodeId: t
|
|
4219
4228
|
}), Rs = ({ tabIndex: t, tabNodeId: r }) => {
|
|
4220
|
-
const [s, n] = A(!1), [o, a] = cn(t === 0), { nodeProps: l, setNodeProps:
|
|
4229
|
+
const [s, n] = A(!1), [o, a] = cn(t === 0), { nodeProps: l, setNodeProps: d } = Ss(r), { actions: c, query: u } = oe(), { tabNode: h, tabPanelNode: g } = re((C) => {
|
|
4221
4230
|
const k = C.data.nodes.find(
|
|
4222
4231
|
(B) => Ve(u.node(B).get()) === He.TabList
|
|
4223
4232
|
);
|
|
@@ -4239,19 +4248,19 @@ const ms = [
|
|
|
4239
4248
|
tabPanelNode: u.node(N).get()
|
|
4240
4249
|
};
|
|
4241
4250
|
}), p = (C) => {
|
|
4242
|
-
C.stopPropagation(),
|
|
4251
|
+
C.stopPropagation(), c.delete(h.id), c.delete(g.id);
|
|
4243
4252
|
}, w = () => {
|
|
4244
4253
|
n(!0);
|
|
4245
4254
|
}, m = () => {
|
|
4246
4255
|
n(!1);
|
|
4247
4256
|
}, b = (C) => {
|
|
4248
|
-
|
|
4257
|
+
d({
|
|
4249
4258
|
dangerouslySetInnerHTML: {
|
|
4250
4259
|
__html: C.target.value || l.dangerouslySetInnerHTML?.__html || ""
|
|
4251
4260
|
}
|
|
4252
4261
|
});
|
|
4253
4262
|
};
|
|
4254
|
-
return /* @__PURE__ */ e(
|
|
4263
|
+
return /* @__PURE__ */ e(bt, { index: t, draggableId: t.toString(), children: (C) => /* @__PURE__ */ i(
|
|
4255
4264
|
"div",
|
|
4256
4265
|
{
|
|
4257
4266
|
className: "tw:rounded-lg tw:border tw:border-ic-white-2s tw:overflow-hidden",
|
|
@@ -4298,42 +4307,42 @@ const ms = [
|
|
|
4298
4307
|
}
|
|
4299
4308
|
) });
|
|
4300
4309
|
}, Ls = () => {
|
|
4301
|
-
const { query: t, actions: r } = oe(), { id: s, tabListNode: n, tabContentNode: o } = re((
|
|
4302
|
-
const
|
|
4310
|
+
const { query: t, actions: r } = oe(), { id: s, tabListNode: n, tabContentNode: o } = re((d) => {
|
|
4311
|
+
const c = d.data.nodes.find(
|
|
4303
4312
|
(h) => Ve(t.node(h).get()) === He.TabList
|
|
4304
4313
|
);
|
|
4305
|
-
if (!
|
|
4314
|
+
if (!c)
|
|
4306
4315
|
throw new Error("Tab list node not found");
|
|
4307
|
-
const u =
|
|
4316
|
+
const u = d.data.nodes.find(
|
|
4308
4317
|
(h) => Ve(t.node(h).get()) === He.TabContent
|
|
4309
4318
|
);
|
|
4310
4319
|
if (!u)
|
|
4311
4320
|
throw new Error("Tab content node not found");
|
|
4312
4321
|
return {
|
|
4313
|
-
tabListNode: t.node(
|
|
4322
|
+
tabListNode: t.node(c).get(),
|
|
4314
4323
|
tabContentNode: t.node(u).get()
|
|
4315
4324
|
};
|
|
4316
4325
|
});
|
|
4317
4326
|
return /* @__PURE__ */ i("div", { children: [
|
|
4318
|
-
/* @__PURE__ */ e(
|
|
4319
|
-
const { source:
|
|
4320
|
-
if (!u ||
|
|
4321
|
-
const h = n.data.nodes.at(
|
|
4327
|
+
/* @__PURE__ */ e(Nt, { onDragEnd: (d) => {
|
|
4328
|
+
const { source: c, destination: u } = d;
|
|
4329
|
+
if (!u || c.index === u.index) return;
|
|
4330
|
+
const h = n.data.nodes.at(c.index), g = o.data.nodes.at(c.index);
|
|
4322
4331
|
h && g && (r.move({
|
|
4323
4332
|
nodeId: h,
|
|
4324
|
-
sourceIndex:
|
|
4333
|
+
sourceIndex: c.index,
|
|
4325
4334
|
destinationIndex: u.index
|
|
4326
4335
|
}), r.move({
|
|
4327
4336
|
nodeId: g,
|
|
4328
|
-
sourceIndex:
|
|
4337
|
+
sourceIndex: c.index,
|
|
4329
4338
|
destinationIndex: u.index
|
|
4330
4339
|
}));
|
|
4331
|
-
}, children: /* @__PURE__ */ e(
|
|
4332
|
-
n.data.nodes.map((
|
|
4333
|
-
|
|
4340
|
+
}, children: /* @__PURE__ */ e(kt, { droppableId: s, children: (d) => /* @__PURE__ */ i("div", { ref: d.innerRef, ...d.droppableProps, className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
4341
|
+
n.data.nodes.map((c, u) => /* @__PURE__ */ e(Rs, { tabNodeId: c, tabIndex: u }, c)),
|
|
4342
|
+
d.placeholder
|
|
4334
4343
|
] }) }) }),
|
|
4335
4344
|
/* @__PURE__ */ e(Q, { className: "tw:mt-2", onClick: () => {
|
|
4336
|
-
const
|
|
4345
|
+
const d = t.parseReactElement(
|
|
4337
4346
|
/* @__PURE__ */ e(
|
|
4338
4347
|
K,
|
|
4339
4348
|
{
|
|
@@ -4345,22 +4354,22 @@ const ms = [
|
|
|
4345
4354
|
}
|
|
4346
4355
|
)
|
|
4347
4356
|
).toNodeTree();
|
|
4348
|
-
r.addNodeTree(
|
|
4349
|
-
const
|
|
4350
|
-
r.addNodeTree(
|
|
4357
|
+
r.addNodeTree(d, n.id);
|
|
4358
|
+
const c = t.parseReactElement(/* @__PURE__ */ e(K, { canvas: !0, is: Kn })).toNodeTree();
|
|
4359
|
+
r.addNodeTree(c, o.id);
|
|
4351
4360
|
}, fullWidth: !0, prefix: /* @__PURE__ */ e(f, { source: je }), children: "Add more" })
|
|
4352
4361
|
] });
|
|
4353
4362
|
}, Ts = () => {
|
|
4354
4363
|
const { query: t } = oe(), { nodeProps: r, setNodeProps: s } = Fn(), { selectOptions: n } = re((a) => {
|
|
4355
4364
|
const l = a.data.nodes.find(
|
|
4356
|
-
(
|
|
4365
|
+
(c) => Ve(t.node(c).get()) === He.TabList
|
|
4357
4366
|
);
|
|
4358
4367
|
if (!l)
|
|
4359
4368
|
throw new Error("Tab list node not found");
|
|
4360
4369
|
return {
|
|
4361
|
-
selectOptions: t.node(l).get().data.nodes.map((
|
|
4370
|
+
selectOptions: t.node(l).get().data.nodes.map((c, u) => ({
|
|
4362
4371
|
value: u,
|
|
4363
|
-
label: t.node(
|
|
4372
|
+
label: t.node(c).get().data.props.dangerouslySetInnerHTML?.__html.toString() ?? "Tab"
|
|
4364
4373
|
}))
|
|
4365
4374
|
};
|
|
4366
4375
|
}), o = (a) => {
|
|
@@ -4396,12 +4405,12 @@ const ms = [
|
|
|
4396
4405
|
borderRightWidth: n(t.sx ?? {}, "borderRightWidth"),
|
|
4397
4406
|
borderBottomWidth: n(t.sx ?? {}, "borderBottomWidth"),
|
|
4398
4407
|
borderLeftWidth: n(t.sx ?? {}, "borderLeftWidth")
|
|
4399
|
-
},
|
|
4408
|
+
}, d = {
|
|
4400
4409
|
borderTopLeftRadius: n(t.sx ?? {}, "borderTopLeftRadius"),
|
|
4401
4410
|
borderTopRightRadius: n(t.sx ?? {}, "borderTopRightRadius"),
|
|
4402
4411
|
borderBottomRightRadius: n(t.sx ?? {}, "borderBottomRightRadius"),
|
|
4403
4412
|
borderBottomLeftRadius: n(t.sx ?? {}, "borderBottomLeftRadius")
|
|
4404
|
-
},
|
|
4413
|
+
}, c = {
|
|
4405
4414
|
backgroundColor: n(t.sx ?? {}, "backgroundColor"),
|
|
4406
4415
|
backgroundImage: n(t.sx ?? {}, "backgroundImage"),
|
|
4407
4416
|
backgroundPosition: n(t.sx ?? {}, "backgroundPosition"),
|
|
@@ -4429,9 +4438,9 @@ const ms = [
|
|
|
4429
4438
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: a, onChange: o }) }),
|
|
4430
4439
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
4431
4440
|
/* @__PURE__ */ e(G, { value: l, onChange: o }),
|
|
4432
|
-
/* @__PURE__ */ e(D, { value:
|
|
4441
|
+
/* @__PURE__ */ e(D, { value: d, onChange: o })
|
|
4433
4442
|
] }),
|
|
4434
|
-
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value:
|
|
4443
|
+
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: c, onChange: o }) })
|
|
4435
4444
|
] })
|
|
4436
4445
|
] })
|
|
4437
4446
|
] });
|
|
@@ -4439,10 +4448,10 @@ const ms = [
|
|
|
4439
4448
|
nodeId: t
|
|
4440
4449
|
}), Aa = () => W({
|
|
4441
4450
|
transform: Co
|
|
4442
|
-
}),
|
|
4451
|
+
}), lt = () => W({
|
|
4443
4452
|
transform: xo
|
|
4444
4453
|
}), ys = () => {
|
|
4445
|
-
const { nodeProps: t, setNodeProps: r } =
|
|
4454
|
+
const { nodeProps: t, setNodeProps: r } = lt(), s = (n) => {
|
|
4446
4455
|
const o = isNaN(n.target.valueAsNumber) ? void 0 : n.target.valueAsNumber;
|
|
4447
4456
|
r({
|
|
4448
4457
|
autoplayOptions: {
|
|
@@ -4462,7 +4471,7 @@ const ms = [
|
|
|
4462
4471
|
}
|
|
4463
4472
|
) });
|
|
4464
4473
|
}, Bs = () => {
|
|
4465
|
-
const { nodeProps: t, setNodeProps: r } =
|
|
4474
|
+
const { nodeProps: t, setNodeProps: r } = lt(), s = (n) => {
|
|
4466
4475
|
r({
|
|
4467
4476
|
autoplayOptions: {
|
|
4468
4477
|
stopOnLastSnap: !n.target.checked
|
|
@@ -4471,7 +4480,7 @@ const ms = [
|
|
|
4471
4480
|
};
|
|
4472
4481
|
return /* @__PURE__ */ e(v, { name: "Loop", children: /* @__PURE__ */ e(q, { checked: !t.autoplayOptions?.stopOnLastSnap, onChange: s }) });
|
|
4473
4482
|
}, Ps = () => {
|
|
4474
|
-
const { getResponsiveProp: t, currentScreen: r } = I(), { nodeProps: s, setNodeResponsiveProps: n } =
|
|
4483
|
+
const { getResponsiveProp: t, currentScreen: r } = I(), { nodeProps: s, setNodeResponsiveProps: n } = lt(), o = t(s, "slidesPerView");
|
|
4475
4484
|
return /* @__PURE__ */ e(v, { name: "Items per view", responsive: !0, children: /* @__PURE__ */ e(
|
|
4476
4485
|
$r,
|
|
4477
4486
|
{
|
|
@@ -4494,7 +4503,7 @@ const ms = [
|
|
|
4494
4503
|
}
|
|
4495
4504
|
) });
|
|
4496
4505
|
}, Wa = () => {
|
|
4497
|
-
const { nodeProps: t, setNodeResponsiveProps: r, setNodeProps: s } =
|
|
4506
|
+
const { nodeProps: t, setNodeResponsiveProps: r, setNodeProps: s } = lt(), { getResponsiveProp: n, currentScreen: o } = I(), a = (b, C = o) => {
|
|
4498
4507
|
s({ sx: H(b, C) });
|
|
4499
4508
|
}, l = () => /* @__PURE__ */ e(
|
|
4500
4509
|
K,
|
|
@@ -4505,9 +4514,9 @@ const ms = [
|
|
|
4505
4514
|
is: Yn,
|
|
4506
4515
|
canvas: !0
|
|
4507
4516
|
}
|
|
4508
|
-
),
|
|
4517
|
+
), d = {
|
|
4509
4518
|
columnGap: n(t, "spaceBetween") ?? 0
|
|
4510
|
-
},
|
|
4519
|
+
}, c = ({ columnGap: b }) => {
|
|
4511
4520
|
r({ spaceBetween: nt(b) ? b : void 0 }, o);
|
|
4512
4521
|
}, u = (b) => {
|
|
4513
4522
|
s({
|
|
@@ -4554,7 +4563,7 @@ const ms = [
|
|
|
4554
4563
|
/* @__PURE__ */ i(y, { children: [
|
|
4555
4564
|
/* @__PURE__ */ i(x, { name: "Display", children: [
|
|
4556
4565
|
/* @__PURE__ */ e(Ps, {}),
|
|
4557
|
-
/* @__PURE__ */ e(Gt, { value:
|
|
4566
|
+
/* @__PURE__ */ e(Gt, { value: d, onChange: c, name: "Items spacing" })
|
|
4558
4567
|
] }),
|
|
4559
4568
|
/* @__PURE__ */ e(x, { name: "Item management", children: /* @__PURE__ */ e(Ze, { getNewNodeElement: l }) }),
|
|
4560
4569
|
/* @__PURE__ */ e(
|
|
@@ -4602,12 +4611,12 @@ const ms = [
|
|
|
4602
4611
|
borderRightWidth: n(t.sx ?? {}, "borderRightWidth"),
|
|
4603
4612
|
borderBottomWidth: n(t.sx ?? {}, "borderBottomWidth"),
|
|
4604
4613
|
borderLeftWidth: n(t.sx ?? {}, "borderLeftWidth")
|
|
4605
|
-
},
|
|
4614
|
+
}, d = {
|
|
4606
4615
|
borderTopLeftRadius: n(t.sx ?? {}, "borderTopLeftRadius"),
|
|
4607
4616
|
borderTopRightRadius: n(t.sx ?? {}, "borderTopRightRadius"),
|
|
4608
4617
|
borderBottomRightRadius: n(t.sx ?? {}, "borderBottomRightRadius"),
|
|
4609
4618
|
borderBottomLeftRadius: n(t.sx ?? {}, "borderBottomLeftRadius")
|
|
4610
|
-
},
|
|
4619
|
+
}, c = () => /* @__PURE__ */ e(K, { canvas: !0, is: Vo }), u = {
|
|
4611
4620
|
rowGap: n(t.sx ?? {}, "rowGap") ?? 0
|
|
4612
4621
|
}, h = {
|
|
4613
4622
|
width: n(t.sx ?? {}, "width")
|
|
@@ -4621,7 +4630,7 @@ const ms = [
|
|
|
4621
4630
|
] }),
|
|
4622
4631
|
/* @__PURE__ */ i(Z, { className: "tw:px-2", children: [
|
|
4623
4632
|
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ i(x, { name: "Layout", children: [
|
|
4624
|
-
/* @__PURE__ */ e(Ze, { getNewNodeElement:
|
|
4633
|
+
/* @__PURE__ */ e(Ze, { getNewNodeElement: c }),
|
|
4625
4634
|
/* @__PURE__ */ e(Ee, { value: u, onChange: o }),
|
|
4626
4635
|
/* @__PURE__ */ e(
|
|
4627
4636
|
In,
|
|
@@ -4638,7 +4647,7 @@ const ms = [
|
|
|
4638
4647
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: a, onChange: o }) }),
|
|
4639
4648
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
4640
4649
|
/* @__PURE__ */ e(G, { value: l, onChange: o }),
|
|
4641
|
-
/* @__PURE__ */ e(D, { value:
|
|
4650
|
+
/* @__PURE__ */ e(D, { value: d, onChange: o })
|
|
4642
4651
|
] })
|
|
4643
4652
|
] })
|
|
4644
4653
|
] })
|
|
@@ -4654,9 +4663,9 @@ const ms = [
|
|
|
4654
4663
|
});
|
|
4655
4664
|
}, l = {
|
|
4656
4665
|
color: o(t.sx ?? {}, "color", "xs")
|
|
4657
|
-
},
|
|
4666
|
+
}, d = (m) => {
|
|
4658
4667
|
a(m, "xs");
|
|
4659
|
-
},
|
|
4668
|
+
}, c = {
|
|
4660
4669
|
paddingBottom: o(t.sx ?? {}, "paddingBottom"),
|
|
4661
4670
|
paddingLeft: o(t.sx ?? {}, "paddingLeft"),
|
|
4662
4671
|
paddingRight: o(t.sx ?? {}, "paddingRight"),
|
|
@@ -4698,12 +4707,12 @@ const ms = [
|
|
|
4698
4707
|
/* @__PURE__ */ i(y, { children: [
|
|
4699
4708
|
/* @__PURE__ */ e(x, { name: "Source", children: /* @__PURE__ */ e(Ke, { onChange: g, source: t.source }) }),
|
|
4700
4709
|
/* @__PURE__ */ i(x, { name: "Color & Size", children: [
|
|
4701
|
-
/* @__PURE__ */ e(Ae, { value: l, onChange:
|
|
4710
|
+
/* @__PURE__ */ e(Ae, { value: l, onChange: d }),
|
|
4702
4711
|
/* @__PURE__ */ e(Te, { value: p, name: "Size (px)", onChange: w })
|
|
4703
4712
|
] })
|
|
4704
4713
|
] }),
|
|
4705
4714
|
/* @__PURE__ */ i(y, { children: [
|
|
4706
|
-
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value:
|
|
4715
|
+
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: c, onChange: a }) }),
|
|
4707
4716
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
4708
4717
|
/* @__PURE__ */ e(G, { value: u, onChange: a }),
|
|
4709
4718
|
/* @__PURE__ */ e(D, { value: h, onChange: a })
|
|
@@ -4714,10 +4723,10 @@ const ms = [
|
|
|
4714
4723
|
}, As = (t) => W({
|
|
4715
4724
|
transform: No,
|
|
4716
4725
|
nodeId: t
|
|
4717
|
-
}),
|
|
4726
|
+
}), dt = () => W({
|
|
4718
4727
|
transform: ko
|
|
4719
4728
|
}), Ws = ({ accordionNodeId: t, accordionIndex: r }) => {
|
|
4720
|
-
const [s, n] = A(!1), [o, a] = cn(r === 0), { id: l, nodeProps:
|
|
4729
|
+
const [s, n] = A(!1), [o, a] = cn(r === 0), { id: l, nodeProps: d } = dt(), { query: c, accordionNode: u, actions: h } = oe((N) => ({
|
|
4721
4730
|
accordionNode: N.nodes[t]
|
|
4722
4731
|
})), { nodeProps: g, setNodeProps: p } = As(t), [w, m] = A(
|
|
4723
4732
|
u.dom ? $e(u.dom).openState : !1
|
|
@@ -4731,7 +4740,7 @@ const ms = [
|
|
|
4731
4740
|
const N = u.dom;
|
|
4732
4741
|
if (!N) return;
|
|
4733
4742
|
const { openState: B } = $e(N);
|
|
4734
|
-
N.setAttribute(
|
|
4743
|
+
N.setAttribute(Ct.OpenState, B ? Ce.False : Ce.True);
|
|
4735
4744
|
};
|
|
4736
4745
|
fe(() => {
|
|
4737
4746
|
const N = new MutationObserver((B) => {
|
|
@@ -4740,7 +4749,7 @@ const ms = [
|
|
|
4740
4749
|
});
|
|
4741
4750
|
return u.dom && (m($e(u.dom).openState), N.observe(u.dom, {
|
|
4742
4751
|
attributes: !0,
|
|
4743
|
-
attributeFilter: [
|
|
4752
|
+
attributeFilter: [Ct.OpenState]
|
|
4744
4753
|
})), () => {
|
|
4745
4754
|
N.disconnect();
|
|
4746
4755
|
};
|
|
@@ -4748,13 +4757,13 @@ const ms = [
|
|
|
4748
4757
|
const V = (N) => {
|
|
4749
4758
|
p({
|
|
4750
4759
|
defaultOpen: N.target.checked
|
|
4751
|
-
}),
|
|
4760
|
+
}), d.openMode === "single" && N.target.checked && c.node(l).childNodes().forEach((B) => {
|
|
4752
4761
|
B !== t && h.setProp(B, (P) => {
|
|
4753
4762
|
delete P.defaultOpen;
|
|
4754
4763
|
});
|
|
4755
4764
|
});
|
|
4756
4765
|
};
|
|
4757
|
-
return /* @__PURE__ */ e(
|
|
4766
|
+
return /* @__PURE__ */ e(bt, { index: r, draggableId: r.toString(), children: (N) => /* @__PURE__ */ i(
|
|
4758
4767
|
"div",
|
|
4759
4768
|
{
|
|
4760
4769
|
className: "tw:rounded-lg tw:border tw:border-ic-white-2s tw:overflow-hidden",
|
|
@@ -4801,17 +4810,17 @@ const ms = [
|
|
|
4801
4810
|
accordionNodeIds: l.data.nodes
|
|
4802
4811
|
}));
|
|
4803
4812
|
return /* @__PURE__ */ i("div", { children: [
|
|
4804
|
-
/* @__PURE__ */ e(
|
|
4805
|
-
const { source:
|
|
4806
|
-
if (!
|
|
4807
|
-
const u = n.at(
|
|
4813
|
+
/* @__PURE__ */ e(Nt, { onDragEnd: (l) => {
|
|
4814
|
+
const { source: d, destination: c } = l;
|
|
4815
|
+
if (!c || d.index === c.index) return;
|
|
4816
|
+
const u = n.at(d.index);
|
|
4808
4817
|
u && r.move({
|
|
4809
4818
|
nodeId: u,
|
|
4810
|
-
sourceIndex:
|
|
4811
|
-
destinationIndex:
|
|
4819
|
+
sourceIndex: d.index,
|
|
4820
|
+
destinationIndex: c.index
|
|
4812
4821
|
});
|
|
4813
|
-
}, children: /* @__PURE__ */ e(
|
|
4814
|
-
n.map((
|
|
4822
|
+
}, children: /* @__PURE__ */ e(kt, { droppableId: s, children: (l) => /* @__PURE__ */ i("div", { ref: l.innerRef, ...l.droppableProps, className: "tw:flex tw:flex-col tw:gap-2", children: [
|
|
4823
|
+
n.map((d, c) => /* @__PURE__ */ e(Ws, { accordionNodeId: d, accordionIndex: c }, d)),
|
|
4815
4824
|
l.placeholder
|
|
4816
4825
|
] }) }) }),
|
|
4817
4826
|
/* @__PURE__ */ e(Q, { className: "tw:mt-2", onClick: () => {
|
|
@@ -4835,7 +4844,7 @@ const ms = [
|
|
|
4835
4844
|
}, fullWidth: !0, prefix: /* @__PURE__ */ e(f, { source: je }), children: "Add more" })
|
|
4836
4845
|
] });
|
|
4837
4846
|
}, Hs = () => {
|
|
4838
|
-
const { nodeProps: t, setNodeProps: r } =
|
|
4847
|
+
const { nodeProps: t, setNodeProps: r } = dt(), [s, n] = A(!1), o = t.accordionSummaryProps?.expandIcon, a = (h) => {
|
|
4839
4848
|
r({
|
|
4840
4849
|
accordionSummaryProps: {
|
|
4841
4850
|
expandIcon: {
|
|
@@ -4855,7 +4864,7 @@ const ms = [
|
|
|
4855
4864
|
}
|
|
4856
4865
|
}
|
|
4857
4866
|
});
|
|
4858
|
-
},
|
|
4867
|
+
}, d = (h) => {
|
|
4859
4868
|
r({
|
|
4860
4869
|
accordionSummaryProps: {
|
|
4861
4870
|
expandIcon: {
|
|
@@ -4863,7 +4872,7 @@ const ms = [
|
|
|
4863
4872
|
}
|
|
4864
4873
|
}
|
|
4865
4874
|
});
|
|
4866
|
-
},
|
|
4875
|
+
}, c = (h) => {
|
|
4867
4876
|
const g = isNaN(h.target.valueAsNumber) ? void 0 : h.target.valueAsNumber;
|
|
4868
4877
|
r({
|
|
4869
4878
|
accordionSummaryProps: {
|
|
@@ -4920,7 +4929,7 @@ const ms = [
|
|
|
4920
4929
|
name: "When collapsed"
|
|
4921
4930
|
}
|
|
4922
4931
|
),
|
|
4923
|
-
/* @__PURE__ */ e(v, { name: "Position", children: /* @__PURE__ */ i(U, { value: o?.position, onSelectionChange:
|
|
4932
|
+
/* @__PURE__ */ e(v, { name: "Position", children: /* @__PURE__ */ i(U, { value: o?.position, onSelectionChange: d, children: [
|
|
4924
4933
|
/* @__PURE__ */ e(Q, { value: "left", size: "28", children: "Left" }),
|
|
4925
4934
|
/* @__PURE__ */ e(Q, { value: "right", size: "28", children: "Right" })
|
|
4926
4935
|
] }) }),
|
|
@@ -4929,7 +4938,7 @@ const ms = [
|
|
|
4929
4938
|
{
|
|
4930
4939
|
mode: "onBlur",
|
|
4931
4940
|
value: o?.size ?? 24,
|
|
4932
|
-
onChange:
|
|
4941
|
+
onChange: c,
|
|
4933
4942
|
step: 1,
|
|
4934
4943
|
className: "tw:text-center",
|
|
4935
4944
|
classes: { container: "tw:w-1/2" }
|
|
@@ -4940,7 +4949,7 @@ const ms = [
|
|
|
4940
4949
|
] }) })
|
|
4941
4950
|
] }) });
|
|
4942
4951
|
}, zs = () => {
|
|
4943
|
-
const { id: t, nodeProps: r, setNodeProps: s } =
|
|
4952
|
+
const { id: t, nodeProps: r, setNodeProps: s } = dt(), { query: n } = oe(), o = [
|
|
4944
4953
|
{
|
|
4945
4954
|
value: "single",
|
|
4946
4955
|
label: "Single"
|
|
@@ -4952,14 +4961,14 @@ const ms = [
|
|
|
4952
4961
|
], a = (l) => {
|
|
4953
4962
|
s({
|
|
4954
4963
|
openMode: l
|
|
4955
|
-
}), l === "single" && n.node(t).childNodes().forEach((
|
|
4956
|
-
const
|
|
4957
|
-
|
|
4964
|
+
}), l === "single" && n.node(t).childNodes().forEach((d) => {
|
|
4965
|
+
const c = n.node(d).get().dom;
|
|
4966
|
+
c && c.setAttribute(Ct.OpenState, Ce.False);
|
|
4958
4967
|
});
|
|
4959
4968
|
};
|
|
4960
4969
|
return /* @__PURE__ */ e(v, { name: "Open mode", children: /* @__PURE__ */ e(U, { value: r.openMode, onSelectionChange: a, children: o.map((l) => /* @__PURE__ */ e(Q, { value: l.value, children: l.label }, l.value)) }) });
|
|
4961
4970
|
}, Oa = () => {
|
|
4962
|
-
const { nodeProps: t, setNodeProps: r } =
|
|
4971
|
+
const { nodeProps: t, setNodeProps: r } = dt(), { getResponsiveProp: s, currentScreen: n } = I(), o = (m, b = n) => {
|
|
4963
4972
|
r({ sx: H(m, b) });
|
|
4964
4973
|
}, a = {
|
|
4965
4974
|
paddingBottom: s(t.sx ?? {}, "paddingBottom") ?? t.sx?.paddingBottom,
|
|
@@ -4972,9 +4981,9 @@ const ms = [
|
|
|
4972
4981
|
marginTop: s(t.sx ?? {}, "marginTop") ?? t.sx?.marginTop
|
|
4973
4982
|
}, l = {
|
|
4974
4983
|
rowGap: s(t.sx ?? {}, "rowGap") ?? t.sx?.rowGap ?? 0
|
|
4975
|
-
},
|
|
4984
|
+
}, d = {
|
|
4976
4985
|
width: s(t.sx ?? {}, "width") ?? t.sx?.width
|
|
4977
|
-
},
|
|
4986
|
+
}, c = (m, b = n) => {
|
|
4978
4987
|
r({
|
|
4979
4988
|
accordionSummaryProps: {
|
|
4980
4989
|
[b]: {
|
|
@@ -5014,11 +5023,11 @@ const ms = [
|
|
|
5014
5023
|
/* @__PURE__ */ e(Ee, { value: l, onChange: o })
|
|
5015
5024
|
] }),
|
|
5016
5025
|
/* @__PURE__ */ i(x, { name: "Item header", children: [
|
|
5017
|
-
/* @__PURE__ */ e(
|
|
5026
|
+
/* @__PURE__ */ e(ft, { value: h, onChange: c }),
|
|
5018
5027
|
/* @__PURE__ */ e(Hs, {})
|
|
5019
5028
|
] }),
|
|
5020
|
-
/* @__PURE__ */ e(x, { name: "Item content", children: /* @__PURE__ */ e(
|
|
5021
|
-
/* @__PURE__ */ e(x, { name: "Size", children: /* @__PURE__ */ e($, { value:
|
|
5029
|
+
/* @__PURE__ */ e(x, { name: "Item content", children: /* @__PURE__ */ e(ft, { value: w, onChange: g }) }),
|
|
5030
|
+
/* @__PURE__ */ e(x, { name: "Size", children: /* @__PURE__ */ e($, { value: d, onChange: o }) })
|
|
5022
5031
|
] }),
|
|
5023
5032
|
/* @__PURE__ */ i(y, { children: [
|
|
5024
5033
|
/* @__PURE__ */ e(x, { name: "Display on", children: /* @__PURE__ */ e(pe, {}) }),
|
|
@@ -5035,7 +5044,7 @@ const ms = [
|
|
|
5035
5044
|
n({ sx: H(w, m) });
|
|
5036
5045
|
}, l = {
|
|
5037
5046
|
width: r(s.sx ?? {}, "width")
|
|
5038
|
-
},
|
|
5047
|
+
}, d = {
|
|
5039
5048
|
paddingBottom: r(s.sx ?? {}, "paddingBottom"),
|
|
5040
5049
|
paddingLeft: r(s.sx ?? {}, "paddingLeft"),
|
|
5041
5050
|
paddingRight: r(s.sx ?? {}, "paddingRight"),
|
|
@@ -5044,7 +5053,7 @@ const ms = [
|
|
|
5044
5053
|
marginLeft: r(s.sx ?? {}, "marginLeft"),
|
|
5045
5054
|
marginRight: r(s.sx ?? {}, "marginRight"),
|
|
5046
5055
|
marginTop: r(s.sx ?? {}, "marginTop")
|
|
5047
|
-
},
|
|
5056
|
+
}, c = {
|
|
5048
5057
|
borderStyle: r(s.sx ?? {}, "borderStyle"),
|
|
5049
5058
|
borderColor: r(s.sx ?? {}, "borderColor"),
|
|
5050
5059
|
borderTopWidth: r(s.sx ?? {}, "borderTopWidth"),
|
|
@@ -5121,9 +5130,9 @@ const ms = [
|
|
|
5121
5130
|
] })
|
|
5122
5131
|
] }),
|
|
5123
5132
|
/* @__PURE__ */ i(y, { children: [
|
|
5124
|
-
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value:
|
|
5133
|
+
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: d, onChange: a }) }),
|
|
5125
5134
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
5126
|
-
/* @__PURE__ */ e(G, { value:
|
|
5135
|
+
/* @__PURE__ */ e(G, { value: c, onChange: a }),
|
|
5127
5136
|
/* @__PURE__ */ e(D, { value: u, onChange: a })
|
|
5128
5137
|
] })
|
|
5129
5138
|
] })
|
|
@@ -5151,9 +5160,9 @@ const ms = [
|
|
|
5151
5160
|
background: s(t.sx ?? {}, "background"),
|
|
5152
5161
|
backgroundSize: s(t.sx ?? {}, "backgroundSize"),
|
|
5153
5162
|
backgroundAttachment: s(t.sx ?? {}, "backgroundAttachment")
|
|
5154
|
-
}, c = {
|
|
5155
|
-
width: s(t.sx ?? {}, "width") ?? "auto"
|
|
5156
5163
|
}, d = {
|
|
5164
|
+
width: s(t.sx ?? {}, "width") ?? "auto"
|
|
5165
|
+
}, c = {
|
|
5157
5166
|
height: s(t.sx ?? {}, "height") ?? "auto"
|
|
5158
5167
|
}, u = {
|
|
5159
5168
|
borderStyle: s(t.sx ?? {}, "borderStyle"),
|
|
@@ -5188,11 +5197,11 @@ const ms = [
|
|
|
5188
5197
|
autoOption: { visible: !0 },
|
|
5189
5198
|
fitContentOption: { visible: !0 }
|
|
5190
5199
|
},
|
|
5191
|
-
value:
|
|
5200
|
+
value: d,
|
|
5192
5201
|
onChange: o
|
|
5193
5202
|
}
|
|
5194
5203
|
),
|
|
5195
|
-
/* @__PURE__ */ e(Me, { value:
|
|
5204
|
+
/* @__PURE__ */ e(Me, { value: c, onChange: o })
|
|
5196
5205
|
] }),
|
|
5197
5206
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
5198
5207
|
/* @__PURE__ */ e(G, { value: u, onChange: o }),
|
|
@@ -5207,7 +5216,7 @@ const ms = [
|
|
|
5207
5216
|
] })
|
|
5208
5217
|
] });
|
|
5209
5218
|
}, Ge = () => W(), Fs = () => {
|
|
5210
|
-
const { nodeProps: t, setNodeProps: r } = Ge(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(!1), l = t.captionProps ?? {},
|
|
5219
|
+
const { nodeProps: t, setNodeProps: r } = Ge(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(!1), l = t.captionProps ?? {}, d = (u) => {
|
|
5211
5220
|
r({
|
|
5212
5221
|
captionProps: {
|
|
5213
5222
|
[s]: {
|
|
@@ -5215,7 +5224,7 @@ const ms = [
|
|
|
5215
5224
|
}
|
|
5216
5225
|
}
|
|
5217
5226
|
});
|
|
5218
|
-
},
|
|
5227
|
+
}, c = (u) => {
|
|
5219
5228
|
r({
|
|
5220
5229
|
captionProps: {
|
|
5221
5230
|
sx: u
|
|
@@ -5246,21 +5255,21 @@ const ms = [
|
|
|
5246
5255
|
/* @__PURE__ */ e("hr", { className: "tw:border-ic-white-1s tw:my-2" }),
|
|
5247
5256
|
/* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-3", children: [
|
|
5248
5257
|
/* @__PURE__ */ e(
|
|
5249
|
-
|
|
5258
|
+
st,
|
|
5250
5259
|
{
|
|
5251
5260
|
value: n(l, "sizeVariant"),
|
|
5252
|
-
onChange:
|
|
5261
|
+
onChange: d
|
|
5253
5262
|
}
|
|
5254
5263
|
),
|
|
5255
5264
|
/* @__PURE__ */ e(
|
|
5256
5265
|
Ae,
|
|
5257
5266
|
{
|
|
5258
5267
|
value: { color: n(l.sx ?? {}, "color") },
|
|
5259
|
-
onChange:
|
|
5268
|
+
onChange: c
|
|
5260
5269
|
}
|
|
5261
5270
|
),
|
|
5262
5271
|
/* @__PURE__ */ e(
|
|
5263
|
-
|
|
5272
|
+
rt,
|
|
5264
5273
|
{
|
|
5265
5274
|
name: "Style",
|
|
5266
5275
|
value: {
|
|
@@ -5268,14 +5277,14 @@ const ms = [
|
|
|
5268
5277
|
fontStyle: n(l.sx ?? {}, "fontStyle"),
|
|
5269
5278
|
textDecorationLine: n(l.sx ?? {}, "textDecorationLine")
|
|
5270
5279
|
},
|
|
5271
|
-
onChange:
|
|
5280
|
+
onChange: c
|
|
5272
5281
|
}
|
|
5273
5282
|
),
|
|
5274
5283
|
/* @__PURE__ */ e(
|
|
5275
|
-
|
|
5284
|
+
at,
|
|
5276
5285
|
{
|
|
5277
5286
|
value: { fontWeight: n(l.sx ?? {}, "fontWeight") },
|
|
5278
|
-
onChange:
|
|
5287
|
+
onChange: c
|
|
5279
5288
|
}
|
|
5280
5289
|
),
|
|
5281
5290
|
/* @__PURE__ */ e(
|
|
@@ -5284,14 +5293,14 @@ const ms = [
|
|
|
5284
5293
|
value: {
|
|
5285
5294
|
textTransform: n(l.sx ?? {}, "textTransform") ?? "none"
|
|
5286
5295
|
},
|
|
5287
|
-
onChange:
|
|
5296
|
+
onChange: c
|
|
5288
5297
|
}
|
|
5289
5298
|
)
|
|
5290
5299
|
] })
|
|
5291
5300
|
] }) })
|
|
5292
5301
|
] }) }) });
|
|
5293
5302
|
}, Zs = () => {
|
|
5294
|
-
const { nodeProps: t, setNodeProps: r } = Ge(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(!1), l = t.timeProps ?? {},
|
|
5303
|
+
const { nodeProps: t, setNodeProps: r } = Ge(), { currentScreen: s, getResponsiveProp: n } = I(), [o, a] = A(!1), l = t.timeProps ?? {}, d = (u) => {
|
|
5295
5304
|
r({
|
|
5296
5305
|
timeProps: s === "xs" ? {
|
|
5297
5306
|
sizeVariant: u
|
|
@@ -5301,7 +5310,7 @@ const ms = [
|
|
|
5301
5310
|
}
|
|
5302
5311
|
}
|
|
5303
5312
|
});
|
|
5304
|
-
},
|
|
5313
|
+
}, c = (u) => {
|
|
5305
5314
|
r({
|
|
5306
5315
|
timeProps: {
|
|
5307
5316
|
sx: u
|
|
@@ -5332,21 +5341,21 @@ const ms = [
|
|
|
5332
5341
|
/* @__PURE__ */ e("hr", { className: "tw:border-ic-white-1s tw:my-2" }),
|
|
5333
5342
|
/* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-3", children: [
|
|
5334
5343
|
/* @__PURE__ */ e(
|
|
5335
|
-
|
|
5344
|
+
st,
|
|
5336
5345
|
{
|
|
5337
5346
|
value: n(l, "sizeVariant"),
|
|
5338
|
-
onChange:
|
|
5347
|
+
onChange: d
|
|
5339
5348
|
}
|
|
5340
5349
|
),
|
|
5341
5350
|
/* @__PURE__ */ e(
|
|
5342
5351
|
Ae,
|
|
5343
5352
|
{
|
|
5344
5353
|
value: { color: n(l.sx ?? {}, "color") },
|
|
5345
|
-
onChange:
|
|
5354
|
+
onChange: c
|
|
5346
5355
|
}
|
|
5347
5356
|
),
|
|
5348
5357
|
/* @__PURE__ */ e(
|
|
5349
|
-
|
|
5358
|
+
rt,
|
|
5350
5359
|
{
|
|
5351
5360
|
name: "Style",
|
|
5352
5361
|
value: {
|
|
@@ -5354,25 +5363,25 @@ const ms = [
|
|
|
5354
5363
|
fontStyle: n(l.sx ?? {}, "fontStyle"),
|
|
5355
5364
|
textDecorationLine: n(l.sx ?? {}, "textDecorationLine")
|
|
5356
5365
|
},
|
|
5357
|
-
onChange:
|
|
5366
|
+
onChange: c
|
|
5358
5367
|
}
|
|
5359
5368
|
),
|
|
5360
5369
|
/* @__PURE__ */ e(
|
|
5361
|
-
|
|
5370
|
+
at,
|
|
5362
5371
|
{
|
|
5363
5372
|
value: { fontWeight: n(l.sx ?? {}, "fontWeight") },
|
|
5364
|
-
onChange:
|
|
5373
|
+
onChange: c
|
|
5365
5374
|
}
|
|
5366
5375
|
)
|
|
5367
5376
|
] })
|
|
5368
5377
|
] }) })
|
|
5369
5378
|
] }) }) });
|
|
5370
5379
|
}, Es = () => {
|
|
5371
|
-
const { currentScreen: t, getResponsiveProp: r } = I(), { nodeProps: s, setNodeProps: n } = Ge(), o = (
|
|
5380
|
+
const { currentScreen: t, getResponsiveProp: r } = I(), { nodeProps: s, setNodeProps: n } = Ge(), o = (c, u = t) => {
|
|
5372
5381
|
n({
|
|
5373
5382
|
unitItemProps: {
|
|
5374
|
-
sx: u === "xs" ?
|
|
5375
|
-
[u]:
|
|
5383
|
+
sx: u === "xs" ? c : {
|
|
5384
|
+
[u]: c
|
|
5376
5385
|
}
|
|
5377
5386
|
}
|
|
5378
5387
|
});
|
|
@@ -5381,10 +5390,10 @@ const ms = [
|
|
|
5381
5390
|
paddingRight: r(a.sx ?? {}, "paddingRight"),
|
|
5382
5391
|
paddingBottom: r(a.sx ?? {}, "paddingBottom"),
|
|
5383
5392
|
paddingLeft: r(a.sx ?? {}, "paddingLeft")
|
|
5384
|
-
},
|
|
5393
|
+
}, d = (c) => {
|
|
5385
5394
|
o(
|
|
5386
5395
|
{
|
|
5387
|
-
backgroundColor:
|
|
5396
|
+
backgroundColor: c
|
|
5388
5397
|
},
|
|
5389
5398
|
"xs"
|
|
5390
5399
|
);
|
|
@@ -5400,7 +5409,7 @@ const ms = [
|
|
|
5400
5409
|
onChange: o
|
|
5401
5410
|
}
|
|
5402
5411
|
),
|
|
5403
|
-
/* @__PURE__ */ e(
|
|
5412
|
+
/* @__PURE__ */ e(ft, { onChange: o, value: l }),
|
|
5404
5413
|
/* @__PURE__ */ e(
|
|
5405
5414
|
Ee,
|
|
5406
5415
|
{
|
|
@@ -5413,7 +5422,7 @@ const ms = [
|
|
|
5413
5422
|
Ie,
|
|
5414
5423
|
{
|
|
5415
5424
|
color: r(a.sx ?? {}, "backgroundColor"),
|
|
5416
|
-
onChange:
|
|
5425
|
+
onChange: d
|
|
5417
5426
|
}
|
|
5418
5427
|
) }),
|
|
5419
5428
|
/* @__PURE__ */ e(
|
|
@@ -5455,20 +5464,20 @@ const ms = [
|
|
|
5455
5464
|
label: "Seconds",
|
|
5456
5465
|
value: "seconds"
|
|
5457
5466
|
}
|
|
5458
|
-
].map((
|
|
5459
|
-
...
|
|
5460
|
-
currentValue: t.units.find((
|
|
5461
|
-
})), a = (
|
|
5462
|
-
if (
|
|
5467
|
+
].map((d) => ({
|
|
5468
|
+
...d,
|
|
5469
|
+
currentValue: t.units.find((c) => c.value === d.value)
|
|
5470
|
+
})), a = (d, c) => {
|
|
5471
|
+
if (d === Ce.False) {
|
|
5463
5472
|
r((u) => {
|
|
5464
|
-
u.units = u.units.filter((h) => h.value !==
|
|
5473
|
+
u.units = u.units.filter((h) => h.value !== c.currentTarget.name);
|
|
5465
5474
|
});
|
|
5466
5475
|
return;
|
|
5467
5476
|
}
|
|
5468
5477
|
r((u) => {
|
|
5469
5478
|
const h = [];
|
|
5470
5479
|
o.forEach((g) => {
|
|
5471
|
-
if (g.value ===
|
|
5480
|
+
if (g.value === c.currentTarget.name) {
|
|
5472
5481
|
h.push({
|
|
5473
5482
|
value: g.value,
|
|
5474
5483
|
caption: g.label
|
|
@@ -5482,9 +5491,9 @@ const ms = [
|
|
|
5482
5491
|
}
|
|
5483
5492
|
}), u.units = h;
|
|
5484
5493
|
});
|
|
5485
|
-
}, l = (
|
|
5486
|
-
r((
|
|
5487
|
-
|
|
5494
|
+
}, l = (d) => {
|
|
5495
|
+
r((c) => {
|
|
5496
|
+
c.units = c.units.map((u) => u.value === d.target.name ? { ...u, caption: d.target.value } : u);
|
|
5488
5497
|
});
|
|
5489
5498
|
};
|
|
5490
5499
|
return /* @__PURE__ */ e(v, { name: "Units", children: /* @__PURE__ */ i(de, { placement: "right", open: s, onOpenChange: n, children: [
|
|
@@ -5497,7 +5506,7 @@ const ms = [
|
|
|
5497
5506
|
"tw:bg-ic-black-7s": s
|
|
5498
5507
|
}
|
|
5499
5508
|
),
|
|
5500
|
-
children: o.filter((
|
|
5509
|
+
children: o.filter((d) => !!d.currentValue).map((d) => d.label).join(", ") || /* @__PURE__ */ e("span", { className: "tw:text-ic-white-3s", children: "None" })
|
|
5501
5510
|
}
|
|
5502
5511
|
) }),
|
|
5503
5512
|
/* @__PURE__ */ e(ue, { style: { top: 120 }, children: /* @__PURE__ */ i("div", { style: { width: 280 }, children: [
|
|
@@ -5506,32 +5515,32 @@ const ms = [
|
|
|
5506
5515
|
/* @__PURE__ */ e(be, { children: /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(f, { source: ee }) }) })
|
|
5507
5516
|
] }),
|
|
5508
5517
|
/* @__PURE__ */ e("hr", { className: "tw:border-ic-white-1s tw:my-2" }),
|
|
5509
|
-
/* @__PURE__ */ e("div", { className: "tw:flex tw:flex-col tw:gap-3", children: o.map((
|
|
5510
|
-
/* @__PURE__ */ e(v, { name:
|
|
5518
|
+
/* @__PURE__ */ e("div", { className: "tw:flex tw:flex-col tw:gap-3", children: o.map((d) => /* @__PURE__ */ i(ne, { children: [
|
|
5519
|
+
/* @__PURE__ */ e(v, { name: d.label, children: /* @__PURE__ */ i(
|
|
5511
5520
|
U,
|
|
5512
5521
|
{
|
|
5513
5522
|
onSelectionChange: a,
|
|
5514
5523
|
className: "tw:w-1/2",
|
|
5515
|
-
value: (!!
|
|
5524
|
+
value: (!!d.currentValue).toString(),
|
|
5516
5525
|
children: [
|
|
5517
|
-
/* @__PURE__ */ e(Q, { name:
|
|
5518
|
-
/* @__PURE__ */ e(Q, { name:
|
|
5526
|
+
/* @__PURE__ */ e(Q, { name: d.value, className: "tw:flex-1", value: Ce.True, size: "28", children: "Show" }),
|
|
5527
|
+
/* @__PURE__ */ e(Q, { name: d.value, className: "tw:flex-1", value: Ce.False, size: "28", children: "Hide" })
|
|
5519
5528
|
]
|
|
5520
5529
|
}
|
|
5521
5530
|
) }),
|
|
5522
|
-
!!
|
|
5531
|
+
!!d.currentValue && /* @__PURE__ */ e(v, { name: `${d.label} caption`, children: /* @__PURE__ */ e(
|
|
5523
5532
|
Y,
|
|
5524
5533
|
{
|
|
5525
|
-
transform:
|
|
5534
|
+
transform: Lt,
|
|
5526
5535
|
debounce: 400,
|
|
5527
|
-
name:
|
|
5536
|
+
name: d.value,
|
|
5528
5537
|
onChange: l,
|
|
5529
|
-
value:
|
|
5538
|
+
value: d.currentValue.caption ?? "",
|
|
5530
5539
|
placeholder: "Caption",
|
|
5531
5540
|
classes: { container: "tw:w-1/2" }
|
|
5532
5541
|
}
|
|
5533
5542
|
) })
|
|
5534
|
-
] },
|
|
5543
|
+
] }, d.value)) })
|
|
5535
5544
|
] }) })
|
|
5536
5545
|
] }) });
|
|
5537
5546
|
}, Za = () => {
|
|
@@ -5554,9 +5563,9 @@ const ms = [
|
|
|
5554
5563
|
background: s(t.sx ?? {}, "background"),
|
|
5555
5564
|
backgroundSize: s(t.sx ?? {}, "backgroundSize"),
|
|
5556
5565
|
backgroundAttachment: s(t.sx ?? {}, "backgroundAttachment")
|
|
5557
|
-
}, c = {
|
|
5558
|
-
width: s(t.sx ?? {}, "width") ?? "auto"
|
|
5559
5566
|
}, d = {
|
|
5567
|
+
width: s(t.sx ?? {}, "width") ?? "auto"
|
|
5568
|
+
}, c = {
|
|
5560
5569
|
borderStyle: s(t.sx ?? {}, "borderStyle"),
|
|
5561
5570
|
borderColor: s(t.sx ?? {}, "borderColor"),
|
|
5562
5571
|
borderTopWidth: s(t.sx ?? {}, "borderTopWidth"),
|
|
@@ -5604,7 +5613,7 @@ const ms = [
|
|
|
5604
5613
|
autoOption: { visible: !0 },
|
|
5605
5614
|
fitContentOption: { visible: !0 }
|
|
5606
5615
|
},
|
|
5607
|
-
value:
|
|
5616
|
+
value: d,
|
|
5608
5617
|
onChange: o
|
|
5609
5618
|
}
|
|
5610
5619
|
),
|
|
@@ -5626,7 +5635,7 @@ const ms = [
|
|
|
5626
5635
|
/* @__PURE__ */ e(x, { name: "Display on", children: /* @__PURE__ */ e(pe, {}) }),
|
|
5627
5636
|
/* @__PURE__ */ e(x, { name: "Spacing (px)", children: /* @__PURE__ */ e(E, { value: a, onChange: o }) }),
|
|
5628
5637
|
/* @__PURE__ */ i(x, { name: "Shape", children: [
|
|
5629
|
-
/* @__PURE__ */ e(G, { value:
|
|
5638
|
+
/* @__PURE__ */ e(G, { value: c, onChange: o }),
|
|
5630
5639
|
/* @__PURE__ */ e(D, { value: u, onChange: o })
|
|
5631
5640
|
] }),
|
|
5632
5641
|
/* @__PURE__ */ e(x, { name: "Background", children: /* @__PURE__ */ e(ge, { value: l, onChange: o }) })
|
|
@@ -5705,10 +5714,10 @@ export {
|
|
|
5705
5714
|
ui as parseSvgString,
|
|
5706
5715
|
hi as registerNodeRelated,
|
|
5707
5716
|
H as toResponsiveCss,
|
|
5708
|
-
|
|
5717
|
+
dt as useAccordionGroupNodeProps,
|
|
5709
5718
|
As as useAccordionNodeProps,
|
|
5710
5719
|
js as useBoxNodeProps,
|
|
5711
|
-
|
|
5720
|
+
it as useButtonNodeProps,
|
|
5712
5721
|
Hn as useCellNodeProps,
|
|
5713
5722
|
oe as useComposer,
|
|
5714
5723
|
Ge as useCountdownTimerNodeProps,
|
|
@@ -5725,7 +5734,7 @@ export {
|
|
|
5725
5734
|
rn as useNodeDataAttributes,
|
|
5726
5735
|
W as useNodeProps,
|
|
5727
5736
|
hs as useParagraphNodeProps,
|
|
5728
|
-
|
|
5737
|
+
lt as useSwiperNodeProps,
|
|
5729
5738
|
Ss as useTabNodeProps,
|
|
5730
5739
|
Aa as useTabPanelNodeProps,
|
|
5731
5740
|
Fn as useTabsNodeProps,
|