@janbox/storefront-builder 2.0.1 → 2.0.2
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 +2 -2
- package/dist/anchor-target-CtXzdkBu.js +2918 -0
- package/dist/{color-picker-popover-B3AVFuei.js → color-picker-popover-XeaVfYS8.js} +104 -80
- package/dist/countdown-timer.node-Bh5fTSJ8.js +913 -0
- package/dist/date-picker-D9K6HWl-.js +157 -0
- package/dist/{dialog-header-DPLOS7TT.js → dialog-header-Bh3Dkw2q.js} +2440 -2122
- package/dist/dropzone-CF4CWXth.js +546 -0
- package/dist/editor/toolbars.js +171 -161
- package/dist/editor/ui/button-group/button-group.d.ts +1 -1
- package/dist/editor/ui/dialog/dialog-body/dialog-body.d.ts +1 -1
- package/dist/editor/ui/form-label/form-label.d.ts +1 -1
- package/dist/editor/ui/input/input.d.ts +1 -2
- package/dist/editor/ui/loading-overlay/loading-overlay.d.ts +1 -1
- package/dist/editor/ui/popover/popover-close.d.ts +1 -1
- package/dist/editor/ui/tabs/tab-content.d.ts +1 -1
- package/dist/editor/ui/tabs/tab-list.d.ts +2 -4
- package/dist/editor/ui/tabs/tab-panel.d.ts +1 -1
- package/dist/editor/ui/tabs/tab.d.ts +2 -5
- package/dist/editor/ui/tabs/tabs.d.ts +1 -1
- package/dist/editor/ui.js +82 -72
- package/dist/editor.js +822 -586
- package/dist/index-800HnUOi.js +4 -0
- package/dist/{index-CwrFnubn.js → index-CXyljfMv.js} +1729 -1584
- package/dist/index.js +287 -247
- package/dist/style.css +1 -1
- package/dist/templates.js +10 -12
- package/dist/theme/index.d.ts +293 -0
- package/dist/tooltip-CXOlTkGg.js +75 -0
- package/dist/utils/common.d.ts +0 -2
- package/package.json +1 -2
- package/dist/anchor-target-BlOvysAr.js +0 -2329
- package/dist/countdown-timer.node-OmDiT-pz.js +0 -825
- package/dist/date-picker-B4Rju7gG.js +0 -115
- package/dist/dropzone-Dbfed3jK.js +0 -490
- package/dist/index-BbiQ0n_-.js +0 -4
- package/dist/tooltip-KbIHELP2.js +0 -65
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import { jsx as a, Fragment as x, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Fragment as w } from "react";
|
|
3
|
+
import "flat";
|
|
4
|
+
import { isNil as f } from "lodash-es";
|
|
5
|
+
import { u as A, e as y, a as k, i as P, d } from "./color-picker-popover-XeaVfYS8.js";
|
|
6
|
+
import { useNode as i } from "@craftjs/core";
|
|
7
|
+
import { useMergeRefs as p } from "@floating-ui/react";
|
|
8
|
+
import { Button as S, Grid as R, Cell as B, Link as F, Flexbox as q, FlexItem as G, Text as D, Image as E, Marquee as U, MarqueeDataAttributes as H, MarqueeItem as V, Tabs as $, TabList as j, Tab as W, TabContent as z, TabPanel as Q, Swiper as X, SwiperSlide as J, UnorderedList as K, ListItem as Y, Icon as Z, Accordion as ee, AccordionSummary as ne, AccordionContent as te, AccordionGroup as oe, Video as se, Box as ae, Container as re, CountdownTimer as ce, Primitive as _ } from "@janbox/storefront-ui";
|
|
9
|
+
import { t as m, w as ie, P as de } from "./dialog-header-Bh3Dkw2q.js";
|
|
10
|
+
import { mediaQuery as le } from "@janbox/storefront-ui/theme";
|
|
11
|
+
import "@janbox/storefront-ui/hooks";
|
|
12
|
+
import "@emotion/react";
|
|
13
|
+
import "react-use";
|
|
14
|
+
import "react-colorful";
|
|
15
|
+
import "overlayscrollbars-react";
|
|
16
|
+
import "@tanstack/react-virtual";
|
|
17
|
+
import "react-dropzone";
|
|
18
|
+
import "react-datepicker/dist/react-datepicker.css";
|
|
19
|
+
import "react-datepicker";
|
|
20
|
+
var c = /* @__PURE__ */ ((e) => (e.Root = "root", e.Unknown = "unknown", e.Box = "box", e.Paragraph = "paragraph", e.Heading = "heading", e.Image = "image", e.Button = "button", e.IconButton = "icon-button", e.Link = "link", e.Video = "video", e.Grid = "grid", e.Cell = "cell", e.Flexbox = "flexbox", e.FlexItem = "flex-item", e.UnorderedList = "unordered-list", e.ListItem = "list-item", e.Swiper = "swiper", e.SwiperSlide = "swiper-slide", e.Icon = "icon", e.Tabs = "tabs", e.TabList = "tab-list", e.Tab = "tab", e.TabContent = "tab-content", e.TabPanel = "tab-panel", e.Marquee = "marquee", e.MarqueeItem = "marquee-item", e.AccordionGroup = "accordion-group", e.Accordion = "accordion", e.AccordionSummary = "accordion-summary", e.AccordionContent = "accordion-content", e.Container = "container", e.CountdownTimer = "countdown-timer", e))(c || {}), v = /* @__PURE__ */ ((e) => (e.DATA_NODE_ID = "data-node-id", e.DATA_NODE_EDITABLE = "data-node-editable", e.DATA_NODE_SELECTABLE = "data-node-selectable", e.DATA_NODE_NAME = "data-node-name", e.DATA_NODE_RESOLVED = "data-node-resolved", e.DATA_NODE_INDICATOR_ERROR = "data-node-indicator-error", e.DATA_NODE_INDICATOR_TARGET = "data-node-indicator-target", e.DATA_NODE_DROP_TARGET = "data-node-drop-target", e.DATA_NODE_DROP_TARGET_ERROR = "data-node-drop-target-error", e))(v || {}), O = /* @__PURE__ */ ((e) => (e.True = "true", e.False = "false", e))(O || {});
|
|
21
|
+
const l = (e = {}) => {
|
|
22
|
+
const { enabled: n, indicator: o } = A((T) => ({
|
|
23
|
+
enabled: T.options.enabled,
|
|
24
|
+
indicator: T.indicator
|
|
25
|
+
})), { id: t, selectable: s, displayName: r, resolvedId: N } = i((T) => ({
|
|
26
|
+
selectable: P(T),
|
|
27
|
+
displayName: k(T),
|
|
28
|
+
resolvedId: y(T)
|
|
29
|
+
}));
|
|
30
|
+
if (!n) return {};
|
|
31
|
+
const I = o?.placement?.parent?.id === t, C = I && !!o?.error;
|
|
32
|
+
return {
|
|
33
|
+
[v.DATA_NODE_ID]: t,
|
|
34
|
+
[v.DATA_NODE_EDITABLE]: O.True,
|
|
35
|
+
[v.DATA_NODE_SELECTABLE]: s.toString(),
|
|
36
|
+
[v.DATA_NODE_NAME]: r,
|
|
37
|
+
[v.DATA_NODE_RESOLVED]: N,
|
|
38
|
+
[v.DATA_NODE_DROP_TARGET]: I.toString(),
|
|
39
|
+
[v.DATA_NODE_DROP_TARGET_ERROR]: C.toString(),
|
|
40
|
+
...e
|
|
41
|
+
};
|
|
42
|
+
}, pe = ({ children: e }) => {
|
|
43
|
+
const { enabled: n } = A((r) => ({
|
|
44
|
+
enabled: r.options.enabled
|
|
45
|
+
})), o = l(), { connectors: t } = i(), s = p([
|
|
46
|
+
(r) => {
|
|
47
|
+
r && t.connect(r);
|
|
48
|
+
}
|
|
49
|
+
]);
|
|
50
|
+
return n ? /* @__PURE__ */ a(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
...o,
|
|
54
|
+
css: {
|
|
55
|
+
minHeight: "100vh",
|
|
56
|
+
paddingLeft: 4,
|
|
57
|
+
paddingRight: 4,
|
|
58
|
+
paddingTop: 12,
|
|
59
|
+
paddingBottom: 12,
|
|
60
|
+
overflowX: "hidden"
|
|
61
|
+
},
|
|
62
|
+
ref: s,
|
|
63
|
+
children: e
|
|
64
|
+
}
|
|
65
|
+
) : /* @__PURE__ */ a(w, { children: e });
|
|
66
|
+
};
|
|
67
|
+
d(pe, {
|
|
68
|
+
resolved: c.Root,
|
|
69
|
+
isCanvas: !0,
|
|
70
|
+
info: {
|
|
71
|
+
displayName: "Root"
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const ue = () => {
|
|
75
|
+
const { enabled: e, actions: n } = A((s) => ({
|
|
76
|
+
enabled: s.options.enabled
|
|
77
|
+
})), { id: o } = i(), t = () => {
|
|
78
|
+
n.delete(o);
|
|
79
|
+
};
|
|
80
|
+
return /* @__PURE__ */ a(x, { children: e && /* @__PURE__ */ u(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
css: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
padding: 8,
|
|
86
|
+
flexDirection: "column",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
gap: 4,
|
|
89
|
+
backgroundColor: m.palette.light
|
|
90
|
+
},
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ a("p", { children: "Section is not available" }),
|
|
93
|
+
/* @__PURE__ */ a(
|
|
94
|
+
"p",
|
|
95
|
+
{
|
|
96
|
+
css: {
|
|
97
|
+
...m.text.xs,
|
|
98
|
+
color: m.palette.ink["5s"]
|
|
99
|
+
},
|
|
100
|
+
children: "(this only visible in the editor)"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ a(S, { size: "sm", variant: "contained", color: "neutral", onClick: t, children: "Remove" })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) });
|
|
107
|
+
};
|
|
108
|
+
d(ue, {
|
|
109
|
+
resolved: c.Unknown,
|
|
110
|
+
isCanvas: !1,
|
|
111
|
+
info: {
|
|
112
|
+
displayName: "Unknown"
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
const me = (e) => {
|
|
116
|
+
const { connectors: n } = i(), o = l();
|
|
117
|
+
return /* @__PURE__ */ a(
|
|
118
|
+
R,
|
|
119
|
+
{
|
|
120
|
+
...e,
|
|
121
|
+
ref: (t) => {
|
|
122
|
+
t && n.connect(t);
|
|
123
|
+
},
|
|
124
|
+
...o
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
d(me, {
|
|
129
|
+
resolved: c.Grid,
|
|
130
|
+
isCanvas: !0,
|
|
131
|
+
rules: {
|
|
132
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.Cell)
|
|
133
|
+
},
|
|
134
|
+
info: {
|
|
135
|
+
displayName: "Grid"
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const b = ({ placeholder: e = "Drop here" }) => {
|
|
139
|
+
const { enabled: n } = A((t) => ({
|
|
140
|
+
enabled: t.options.enabled
|
|
141
|
+
}));
|
|
142
|
+
if (!n) return /* @__PURE__ */ a(x, {});
|
|
143
|
+
const o = {
|
|
144
|
+
"--drop-placeholder": `'${e}'`,
|
|
145
|
+
[le("sm")]: {
|
|
146
|
+
"--drop-placeholder": "'Drop element here'"
|
|
147
|
+
},
|
|
148
|
+
":before": {
|
|
149
|
+
content: "var(--drop-placeholder)"
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
return /* @__PURE__ */ a(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
css: { display: "grid", padding: 8, position: "relative", minHeight: "100%", placeItems: "center", outlineWidth: 1, outlineStyle: "dashed", outlineColor: m.palette.ink["3s"], outlineOffset: -1 },
|
|
156
|
+
children: /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [
|
|
157
|
+
/* @__PURE__ */ a(ie, { source: de, width: 16, height: 16 }),
|
|
158
|
+
/* @__PURE__ */ a("p", { css: [o, { marginTop: 4, textAlign: "center", ...m.text.xs }] })
|
|
159
|
+
] })
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}, fe = ({ children: e, ...n }) => {
|
|
163
|
+
const { connectors: o } = i(), t = l(), s = p([
|
|
164
|
+
(r) => {
|
|
165
|
+
r && o.connect(r);
|
|
166
|
+
}
|
|
167
|
+
]);
|
|
168
|
+
return /* @__PURE__ */ u(B, { ...n, ...t, ref: s, children: [
|
|
169
|
+
e,
|
|
170
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
171
|
+
] });
|
|
172
|
+
};
|
|
173
|
+
d(fe, {
|
|
174
|
+
resolved: c.Cell,
|
|
175
|
+
isCanvas: !0,
|
|
176
|
+
info: {
|
|
177
|
+
displayName: "Cell"
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const be = (e) => {
|
|
181
|
+
const n = l(), { enabled: o } = A((r) => ({
|
|
182
|
+
enabled: r.options.enabled
|
|
183
|
+
})), { connectors: t } = i();
|
|
184
|
+
return /* @__PURE__ */ a(
|
|
185
|
+
F,
|
|
186
|
+
{
|
|
187
|
+
...e,
|
|
188
|
+
...n,
|
|
189
|
+
css: o && {
|
|
190
|
+
":empty": {
|
|
191
|
+
":after": {
|
|
192
|
+
display: "block",
|
|
193
|
+
content: '"Drag or type something"',
|
|
194
|
+
opacity: 0.5,
|
|
195
|
+
paddingTop: 8,
|
|
196
|
+
paddingBottom: 8,
|
|
197
|
+
paddingLeft: 8,
|
|
198
|
+
paddingRight: 8
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
onClick: (r) => {
|
|
203
|
+
o && r.preventDefault(), e.onClick?.(r);
|
|
204
|
+
},
|
|
205
|
+
ref: (r) => {
|
|
206
|
+
r && t.connect(r);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
};
|
|
211
|
+
d(be, {
|
|
212
|
+
resolved: c.Link,
|
|
213
|
+
isCanvas: !0,
|
|
214
|
+
rules: {
|
|
215
|
+
canMoveIn(e, n) {
|
|
216
|
+
return f(n.data.props.dangerouslySetInnerHTML);
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
info: {
|
|
220
|
+
displayName: "Link"
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
const ge = ({ anchor: e, ...n }) => {
|
|
224
|
+
const o = l(), { enabled: t } = A((r) => ({
|
|
225
|
+
enabled: r.options.enabled
|
|
226
|
+
})), { connectors: s } = i();
|
|
227
|
+
return /* @__PURE__ */ a(
|
|
228
|
+
S,
|
|
229
|
+
{
|
|
230
|
+
anchor: t ? void 0 : e,
|
|
231
|
+
...n,
|
|
232
|
+
...o,
|
|
233
|
+
ref: (r) => {
|
|
234
|
+
r && s.connect(r);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
};
|
|
239
|
+
d(ge, {
|
|
240
|
+
resolved: c.Button,
|
|
241
|
+
isCanvas: !1,
|
|
242
|
+
info: {
|
|
243
|
+
displayName: "Button"
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
const ve = (e) => {
|
|
247
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
248
|
+
(s) => {
|
|
249
|
+
s && n.connect(s);
|
|
250
|
+
}
|
|
251
|
+
]);
|
|
252
|
+
return /* @__PURE__ */ a(q, { ...e, ...o, ref: t });
|
|
253
|
+
}, Ae = "Flexbox";
|
|
254
|
+
d(ve, {
|
|
255
|
+
resolved: c.Flexbox,
|
|
256
|
+
isCanvas: !0,
|
|
257
|
+
rules: {
|
|
258
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.FlexItem)
|
|
259
|
+
},
|
|
260
|
+
info: {
|
|
261
|
+
displayName: Ae
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
const ye = ({ children: e, ...n }) => {
|
|
265
|
+
const { connectors: o } = i(), t = l(), s = p([
|
|
266
|
+
(r) => {
|
|
267
|
+
r && o.connect(r);
|
|
268
|
+
}
|
|
269
|
+
]);
|
|
270
|
+
return /* @__PURE__ */ u(G, { ...n, ...t, ref: s, children: [
|
|
271
|
+
e,
|
|
272
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
273
|
+
] });
|
|
274
|
+
};
|
|
275
|
+
d(ye, {
|
|
276
|
+
resolved: c.FlexItem,
|
|
277
|
+
isCanvas: !0,
|
|
278
|
+
info: {
|
|
279
|
+
displayName: "Flex item"
|
|
280
|
+
},
|
|
281
|
+
rules: {
|
|
282
|
+
canDrag: () => !1
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
const Te = (e) => /* @__PURE__ */ a(D, { ...e, as: "div" }), he = (e) => {
|
|
286
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
287
|
+
(s) => {
|
|
288
|
+
s && n.connect(s);
|
|
289
|
+
}
|
|
290
|
+
]);
|
|
291
|
+
return /* @__PURE__ */ a(Te, { ...e, ref: t, ...o });
|
|
292
|
+
};
|
|
293
|
+
d(he, {
|
|
294
|
+
resolved: c.Paragraph,
|
|
295
|
+
isCanvas: !1,
|
|
296
|
+
info: {
|
|
297
|
+
displayName: "Paragraph"
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
const Ie = ({ ...e }) => /* @__PURE__ */ a(D, { ...e }), Ne = (e) => {
|
|
301
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
302
|
+
(s) => {
|
|
303
|
+
s && n.connect(s);
|
|
304
|
+
}
|
|
305
|
+
]);
|
|
306
|
+
return /* @__PURE__ */ a(Ie, { ...e, ref: t, ...o });
|
|
307
|
+
};
|
|
308
|
+
d(Ne, {
|
|
309
|
+
resolved: c.Heading,
|
|
310
|
+
isCanvas: !1,
|
|
311
|
+
info: {
|
|
312
|
+
displayName: "Heading"
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
const xe = (e) => {
|
|
316
|
+
const n = l(), { connectors: o } = i(), t = p([
|
|
317
|
+
(s) => {
|
|
318
|
+
s && o.connect(s);
|
|
319
|
+
}
|
|
320
|
+
]);
|
|
321
|
+
return /* @__PURE__ */ a(E, { ...e, ...n, ref: t });
|
|
322
|
+
};
|
|
323
|
+
d(xe, {
|
|
324
|
+
resolved: c.Image,
|
|
325
|
+
isCanvas: !1,
|
|
326
|
+
info: {
|
|
327
|
+
displayName: "Image"
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
const De = (e) => {
|
|
331
|
+
const { connectors: n } = i(), { enabled: o } = A((r) => ({
|
|
332
|
+
enabled: r.options.enabled
|
|
333
|
+
})), t = l(), s = p([
|
|
334
|
+
(r) => {
|
|
335
|
+
r && n.connect(r);
|
|
336
|
+
}
|
|
337
|
+
]);
|
|
338
|
+
return /* @__PURE__ */ a(
|
|
339
|
+
U,
|
|
340
|
+
{
|
|
341
|
+
...e,
|
|
342
|
+
...t,
|
|
343
|
+
autoScrollOptions: o ? {
|
|
344
|
+
...e.autoScrollOptions,
|
|
345
|
+
playOnInit: !1
|
|
346
|
+
} : e.autoScrollOptions,
|
|
347
|
+
...o ? {
|
|
348
|
+
[H.PlayState]: "off"
|
|
349
|
+
} : {},
|
|
350
|
+
ref: s
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
};
|
|
354
|
+
d(De, {
|
|
355
|
+
resolved: c.Marquee,
|
|
356
|
+
isCanvas: !0,
|
|
357
|
+
rules: {
|
|
358
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.MarqueeItem)
|
|
359
|
+
},
|
|
360
|
+
info: {
|
|
361
|
+
displayName: "Marquee"
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
const Ce = ({ children: e, ...n }) => {
|
|
365
|
+
const { connectors: o } = i(), t = l(), s = p([
|
|
366
|
+
(r) => {
|
|
367
|
+
r && o.connect(r);
|
|
368
|
+
}
|
|
369
|
+
]);
|
|
370
|
+
return /* @__PURE__ */ u(V, { ...n, ...t, ref: s, children: [
|
|
371
|
+
e,
|
|
372
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
373
|
+
] });
|
|
374
|
+
};
|
|
375
|
+
d(Ce, {
|
|
376
|
+
resolved: c.MarqueeItem,
|
|
377
|
+
isCanvas: !0,
|
|
378
|
+
info: {
|
|
379
|
+
selectable: !1,
|
|
380
|
+
displayName: "Marquee item"
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
const _e = (e) => {
|
|
384
|
+
const { connectors: n } = i(), o = p([
|
|
385
|
+
(t) => {
|
|
386
|
+
t && n.connect(t);
|
|
387
|
+
}
|
|
388
|
+
]);
|
|
389
|
+
return /* @__PURE__ */ a($, { ...e, ref: o });
|
|
390
|
+
};
|
|
391
|
+
d(_e, {
|
|
392
|
+
resolved: c.Tabs,
|
|
393
|
+
isCanvas: !1,
|
|
394
|
+
info: {
|
|
395
|
+
displayName: "Tabs"
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
const Se = (e) => {
|
|
399
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
400
|
+
(s) => {
|
|
401
|
+
s && n.connect(s);
|
|
402
|
+
}
|
|
403
|
+
]);
|
|
404
|
+
return /* @__PURE__ */ a(j, { ...e, ...o, ref: t });
|
|
405
|
+
};
|
|
406
|
+
d(Se, {
|
|
407
|
+
resolved: c.TabList,
|
|
408
|
+
isCanvas: !0,
|
|
409
|
+
rules: {
|
|
410
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.Tab)
|
|
411
|
+
},
|
|
412
|
+
info: {
|
|
413
|
+
selectable: !1,
|
|
414
|
+
displayName: "Tab list"
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
const Oe = (e) => {
|
|
418
|
+
const n = l(), { connectors: o } = i(), t = p([
|
|
419
|
+
(s) => {
|
|
420
|
+
s && o.connect(s);
|
|
421
|
+
}
|
|
422
|
+
]);
|
|
423
|
+
return /* @__PURE__ */ a(W, { ...e, ref: t, ...n });
|
|
424
|
+
};
|
|
425
|
+
d(Oe, {
|
|
426
|
+
resolved: c.Tab,
|
|
427
|
+
isCanvas: !1,
|
|
428
|
+
info: {
|
|
429
|
+
selectable: !1,
|
|
430
|
+
displayName: "Tab"
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
const Me = (e) => {
|
|
434
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
435
|
+
(s) => {
|
|
436
|
+
s && n.connect(s);
|
|
437
|
+
}
|
|
438
|
+
]);
|
|
439
|
+
return /* @__PURE__ */ a(z, { ...e, ...o, ref: t });
|
|
440
|
+
};
|
|
441
|
+
d(Me, {
|
|
442
|
+
resolved: c.TabContent,
|
|
443
|
+
isCanvas: !0,
|
|
444
|
+
rules: {
|
|
445
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.TabPanel)
|
|
446
|
+
},
|
|
447
|
+
info: {
|
|
448
|
+
selectable: !1,
|
|
449
|
+
displayName: "Tab content"
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
const Le = ({ children: e, ...n }) => {
|
|
453
|
+
const { connectors: o } = i(), t = l(), s = p([
|
|
454
|
+
(r) => {
|
|
455
|
+
r && o.connect(r);
|
|
456
|
+
}
|
|
457
|
+
]);
|
|
458
|
+
return /* @__PURE__ */ u(Q, { ...n, ...t, ref: s, children: [
|
|
459
|
+
e,
|
|
460
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
461
|
+
] });
|
|
462
|
+
};
|
|
463
|
+
d(Le, {
|
|
464
|
+
resolved: c.TabPanel,
|
|
465
|
+
isCanvas: !0,
|
|
466
|
+
info: {
|
|
467
|
+
selectable: !1,
|
|
468
|
+
displayName: "Tab panel"
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
const we = (e) => {
|
|
472
|
+
const { connectors: n } = i();
|
|
473
|
+
return /* @__PURE__ */ a(
|
|
474
|
+
X,
|
|
475
|
+
{
|
|
476
|
+
...e,
|
|
477
|
+
ref: (o) => {
|
|
478
|
+
o && n.connect(o);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
);
|
|
482
|
+
}, ke = "Carousel";
|
|
483
|
+
d(we, {
|
|
484
|
+
resolved: c.Swiper,
|
|
485
|
+
isCanvas: !0,
|
|
486
|
+
rules: {
|
|
487
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.SwiperSlide)
|
|
488
|
+
},
|
|
489
|
+
info: {
|
|
490
|
+
displayName: ke
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
const Pe = ({ children: e, ...n }) => {
|
|
494
|
+
const o = l(), { connectors: t } = i(), s = p([
|
|
495
|
+
(r) => {
|
|
496
|
+
r && t.connect(r);
|
|
497
|
+
}
|
|
498
|
+
]);
|
|
499
|
+
return /* @__PURE__ */ u(J, { ...n, ...o, ref: s, children: [
|
|
500
|
+
e,
|
|
501
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
502
|
+
] });
|
|
503
|
+
};
|
|
504
|
+
d(Pe, {
|
|
505
|
+
resolved: c.SwiperSlide,
|
|
506
|
+
info: {
|
|
507
|
+
selectable: !1,
|
|
508
|
+
displayName: "Swiper Slide"
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
const Re = (e) => {
|
|
512
|
+
const { connectors: n } = i(), o = p([
|
|
513
|
+
(t) => {
|
|
514
|
+
t && n.connect(t);
|
|
515
|
+
}
|
|
516
|
+
]);
|
|
517
|
+
return /* @__PURE__ */ a(K, { ...e, ref: o });
|
|
518
|
+
};
|
|
519
|
+
d(Re, {
|
|
520
|
+
resolved: c.UnorderedList,
|
|
521
|
+
isCanvas: !1,
|
|
522
|
+
info: {
|
|
523
|
+
displayName: "Unordered list"
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
const Be = (e) => {
|
|
527
|
+
const n = l(), { connectors: o } = i(), t = p([
|
|
528
|
+
(s) => {
|
|
529
|
+
s && o.connect(s);
|
|
530
|
+
}
|
|
531
|
+
]);
|
|
532
|
+
return /* @__PURE__ */ a(Y, { ...e, ...n, ref: t });
|
|
533
|
+
};
|
|
534
|
+
d(Be, {
|
|
535
|
+
isCanvas: !0,
|
|
536
|
+
resolved: c.ListItem,
|
|
537
|
+
info: {
|
|
538
|
+
displayName: "List item",
|
|
539
|
+
selectable: !1
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
const Fe = (e) => {
|
|
543
|
+
const { connectors: n } = i(), o = l();
|
|
544
|
+
return /* @__PURE__ */ a(
|
|
545
|
+
Z,
|
|
546
|
+
{
|
|
547
|
+
...o,
|
|
548
|
+
...e,
|
|
549
|
+
ref: (t) => {
|
|
550
|
+
t && n.connect(t);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
);
|
|
554
|
+
};
|
|
555
|
+
d(Fe, {
|
|
556
|
+
resolved: c.Icon,
|
|
557
|
+
isCanvas: !1,
|
|
558
|
+
info: {
|
|
559
|
+
displayName: "Icon"
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
const qe = (e) => {
|
|
563
|
+
const { connectors: n } = i(), o = l(), t = p([
|
|
564
|
+
(s) => {
|
|
565
|
+
s && n.connect(s);
|
|
566
|
+
}
|
|
567
|
+
]);
|
|
568
|
+
return /* @__PURE__ */ a(ee, { ...e, ...o, ref: t });
|
|
569
|
+
};
|
|
570
|
+
d(qe, {
|
|
571
|
+
resolved: c.Accordion,
|
|
572
|
+
isCanvas: !1,
|
|
573
|
+
info: {
|
|
574
|
+
selectable: !1
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
const Ge = ({ children: e, ...n }) => {
|
|
578
|
+
const { connectors: o } = i(), t = l();
|
|
579
|
+
return /* @__PURE__ */ u(
|
|
580
|
+
ne,
|
|
581
|
+
{
|
|
582
|
+
...n,
|
|
583
|
+
...t,
|
|
584
|
+
ref: (s) => {
|
|
585
|
+
s && o.connect(s);
|
|
586
|
+
},
|
|
587
|
+
children: [
|
|
588
|
+
e,
|
|
589
|
+
f(e) && /* @__PURE__ */ a(b, { placeholder: Ee })
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
);
|
|
593
|
+
}, Ee = "Accordion summary";
|
|
594
|
+
d(Ge, {
|
|
595
|
+
resolved: c.AccordionSummary,
|
|
596
|
+
isCanvas: !0,
|
|
597
|
+
rules: {
|
|
598
|
+
canMoveIn: () => !0,
|
|
599
|
+
canMoveOut: () => !1
|
|
600
|
+
},
|
|
601
|
+
info: {
|
|
602
|
+
selectable: !1
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
const Ue = ({ children: e, ...n }) => {
|
|
606
|
+
const { connectors: o } = i(), t = l();
|
|
607
|
+
return /* @__PURE__ */ u(
|
|
608
|
+
te,
|
|
609
|
+
{
|
|
610
|
+
...n,
|
|
611
|
+
...t,
|
|
612
|
+
containerProps: {
|
|
613
|
+
ref: (s) => {
|
|
614
|
+
s && o.connect(s);
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
children: [
|
|
618
|
+
e,
|
|
619
|
+
f(e) && /* @__PURE__ */ a(b, { placeholder: He })
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
);
|
|
623
|
+
}, He = "Accordion Content";
|
|
624
|
+
d(Ue, {
|
|
625
|
+
resolved: c.AccordionContent,
|
|
626
|
+
isCanvas: !0,
|
|
627
|
+
rules: {
|
|
628
|
+
canMoveIn: () => !0,
|
|
629
|
+
canMoveOut: () => !1
|
|
630
|
+
},
|
|
631
|
+
info: {
|
|
632
|
+
selectable: !1
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
const Ve = (e) => {
|
|
636
|
+
const { connectors: n } = i(), o = l();
|
|
637
|
+
return /* @__PURE__ */ a(
|
|
638
|
+
oe,
|
|
639
|
+
{
|
|
640
|
+
...e,
|
|
641
|
+
...o,
|
|
642
|
+
ref: (t) => {
|
|
643
|
+
t && n.connect(t);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
);
|
|
647
|
+
};
|
|
648
|
+
d(Ve, {
|
|
649
|
+
resolved: c.AccordionGroup,
|
|
650
|
+
isCanvas: !0,
|
|
651
|
+
rules: {
|
|
652
|
+
canMoveIn: (e) => e.every((n) => y(n) == c.Accordion)
|
|
653
|
+
},
|
|
654
|
+
info: {
|
|
655
|
+
displayName: "Accordion"
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
const $e = ({ ...e }) => {
|
|
659
|
+
const n = l(), { connectors: o } = i();
|
|
660
|
+
return /* @__PURE__ */ a(
|
|
661
|
+
se,
|
|
662
|
+
{
|
|
663
|
+
...e,
|
|
664
|
+
ref: (t) => {
|
|
665
|
+
t && o.connect(t);
|
|
666
|
+
},
|
|
667
|
+
...n
|
|
668
|
+
}
|
|
669
|
+
);
|
|
670
|
+
};
|
|
671
|
+
d($e, {
|
|
672
|
+
resolved: c.Video,
|
|
673
|
+
isCanvas: !1,
|
|
674
|
+
info: {
|
|
675
|
+
displayName: "Video"
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
const je = ({ children: e, ...n }) => {
|
|
679
|
+
const o = l(), { connectors: t } = i();
|
|
680
|
+
return /* @__PURE__ */ u(
|
|
681
|
+
ae,
|
|
682
|
+
{
|
|
683
|
+
...n,
|
|
684
|
+
...o,
|
|
685
|
+
ref: (s) => {
|
|
686
|
+
s && t.connect(s);
|
|
687
|
+
},
|
|
688
|
+
children: [
|
|
689
|
+
e,
|
|
690
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
691
|
+
]
|
|
692
|
+
}
|
|
693
|
+
);
|
|
694
|
+
};
|
|
695
|
+
d(je, {
|
|
696
|
+
resolved: c.Box,
|
|
697
|
+
isCanvas: !0,
|
|
698
|
+
rules: {
|
|
699
|
+
canMoveIn: () => !0
|
|
700
|
+
},
|
|
701
|
+
info: {
|
|
702
|
+
displayName: "Block"
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
const We = ({ children: e, ...n }) => {
|
|
706
|
+
const o = l(), { connectors: t } = i();
|
|
707
|
+
return /* @__PURE__ */ u(
|
|
708
|
+
re,
|
|
709
|
+
{
|
|
710
|
+
...n,
|
|
711
|
+
...o,
|
|
712
|
+
ref: (s) => {
|
|
713
|
+
s && t.connect(s);
|
|
714
|
+
},
|
|
715
|
+
children: [
|
|
716
|
+
e,
|
|
717
|
+
f(e) && /* @__PURE__ */ a(b, {})
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
};
|
|
722
|
+
d(We, {
|
|
723
|
+
resolved: c.Container,
|
|
724
|
+
isCanvas: !0,
|
|
725
|
+
rules: {
|
|
726
|
+
canMoveIn: () => !0
|
|
727
|
+
},
|
|
728
|
+
info: {
|
|
729
|
+
displayName: "Container"
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
const ze = ({
|
|
733
|
+
unitItemProps: e,
|
|
734
|
+
captionProps: n,
|
|
735
|
+
timeProps: o,
|
|
736
|
+
units: t,
|
|
737
|
+
date: s,
|
|
738
|
+
hideAfterExpired: r,
|
|
739
|
+
...N
|
|
740
|
+
}) => {
|
|
741
|
+
const { enabled: I } = A((h) => ({
|
|
742
|
+
enabled: h.options.enabled
|
|
743
|
+
})), { connectors: C } = i(), M = Object.fromEntries(
|
|
744
|
+
["years", "months", "weeks", "days", "hours", "minutes", "seconds"].map((h) => [h, t.every((g) => g.value !== h)])
|
|
745
|
+
);
|
|
746
|
+
return /* @__PURE__ */ a(ce, { date: s, omit: M, children: (h) => /* @__PURE__ */ u(
|
|
747
|
+
_,
|
|
748
|
+
{
|
|
749
|
+
...N,
|
|
750
|
+
ref: (g) => {
|
|
751
|
+
g && C.connect(g);
|
|
752
|
+
},
|
|
753
|
+
sx: {
|
|
754
|
+
display: "flex",
|
|
755
|
+
maxWidth: "100%",
|
|
756
|
+
":empty": {
|
|
757
|
+
display: "none"
|
|
758
|
+
},
|
|
759
|
+
...N?.sx
|
|
760
|
+
},
|
|
761
|
+
children: [
|
|
762
|
+
r && h.isFinished ? /* @__PURE__ */ a(x, { children: I && /* @__PURE__ */ u(
|
|
763
|
+
"div",
|
|
764
|
+
{
|
|
765
|
+
css: {
|
|
766
|
+
display: "flex",
|
|
767
|
+
padding: 8,
|
|
768
|
+
flexDirection: "column",
|
|
769
|
+
alignItems: "center",
|
|
770
|
+
gap: 4,
|
|
771
|
+
backgroundColor: m.palette.light
|
|
772
|
+
},
|
|
773
|
+
children: [
|
|
774
|
+
/* @__PURE__ */ a("p", { children: "Countdown is run out of time" }),
|
|
775
|
+
/* @__PURE__ */ a(
|
|
776
|
+
"p",
|
|
777
|
+
{
|
|
778
|
+
css: {
|
|
779
|
+
...m.text.xs,
|
|
780
|
+
color: m.palette.ink["5s"]
|
|
781
|
+
},
|
|
782
|
+
children: "(this only visible in the editor)"
|
|
783
|
+
}
|
|
784
|
+
)
|
|
785
|
+
]
|
|
786
|
+
}
|
|
787
|
+
) }) : /* @__PURE__ */ u(x, { children: [
|
|
788
|
+
t.map((g) => {
|
|
789
|
+
const L = h[g.value];
|
|
790
|
+
return /* @__PURE__ */ u(
|
|
791
|
+
_,
|
|
792
|
+
{
|
|
793
|
+
...e,
|
|
794
|
+
sx: {
|
|
795
|
+
display: "flex",
|
|
796
|
+
flexDirection: "column",
|
|
797
|
+
alignItems: "center",
|
|
798
|
+
...e?.sx
|
|
799
|
+
},
|
|
800
|
+
children: [
|
|
801
|
+
/* @__PURE__ */ a(D, { ...o, children: L.toString().padStart(2, "0") }),
|
|
802
|
+
/* @__PURE__ */ a(D, { ...n, children: g.caption })
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
g.value
|
|
806
|
+
);
|
|
807
|
+
}),
|
|
808
|
+
I && t.length === 0 && /* @__PURE__ */ u(
|
|
809
|
+
"div",
|
|
810
|
+
{
|
|
811
|
+
css: {
|
|
812
|
+
display: "flex",
|
|
813
|
+
padding: 8,
|
|
814
|
+
flexDirection: "column",
|
|
815
|
+
alignItems: "center",
|
|
816
|
+
gap: 4,
|
|
817
|
+
backgroundColor: m.palette.light,
|
|
818
|
+
width: "100%"
|
|
819
|
+
},
|
|
820
|
+
children: [
|
|
821
|
+
/* @__PURE__ */ a("p", { children: "No units selected" }),
|
|
822
|
+
/* @__PURE__ */ a(
|
|
823
|
+
"p",
|
|
824
|
+
{
|
|
825
|
+
css: {
|
|
826
|
+
...m.text.xs,
|
|
827
|
+
color: m.palette.ink["5s"]
|
|
828
|
+
},
|
|
829
|
+
children: "(this only visible in the editor)"
|
|
830
|
+
}
|
|
831
|
+
)
|
|
832
|
+
]
|
|
833
|
+
}
|
|
834
|
+
)
|
|
835
|
+
] }),
|
|
836
|
+
I && t.length === 0 && /* @__PURE__ */ u(
|
|
837
|
+
"div",
|
|
838
|
+
{
|
|
839
|
+
css: {
|
|
840
|
+
display: "flex",
|
|
841
|
+
padding: 8,
|
|
842
|
+
flexDirection: "column",
|
|
843
|
+
alignItems: "center",
|
|
844
|
+
gap: 4,
|
|
845
|
+
backgroundColor: m.palette.light,
|
|
846
|
+
width: "100%"
|
|
847
|
+
},
|
|
848
|
+
children: [
|
|
849
|
+
/* @__PURE__ */ a("p", { children: "No units selected" }),
|
|
850
|
+
/* @__PURE__ */ a(
|
|
851
|
+
"p",
|
|
852
|
+
{
|
|
853
|
+
css: {
|
|
854
|
+
...m.text.xs,
|
|
855
|
+
color: m.palette.ink["5s"]
|
|
856
|
+
},
|
|
857
|
+
children: "(this only visible in the editor)"
|
|
858
|
+
}
|
|
859
|
+
)
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
)
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
) });
|
|
866
|
+
};
|
|
867
|
+
d(ze, {
|
|
868
|
+
resolved: c.CountdownTimer,
|
|
869
|
+
isCanvas: !1,
|
|
870
|
+
info: {
|
|
871
|
+
displayName: "Countdown timer"
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
export {
|
|
875
|
+
Ve as A,
|
|
876
|
+
ge as B,
|
|
877
|
+
We as C,
|
|
878
|
+
ye as F,
|
|
879
|
+
me as G,
|
|
880
|
+
Ne as H,
|
|
881
|
+
xe as I,
|
|
882
|
+
be as L,
|
|
883
|
+
Ce as M,
|
|
884
|
+
v as N,
|
|
885
|
+
he as P,
|
|
886
|
+
pe as R,
|
|
887
|
+
we as S,
|
|
888
|
+
Me as T,
|
|
889
|
+
ue as U,
|
|
890
|
+
$e as V,
|
|
891
|
+
fe as a,
|
|
892
|
+
qe as b,
|
|
893
|
+
Ge as c,
|
|
894
|
+
Ue as d,
|
|
895
|
+
Te as e,
|
|
896
|
+
Ie as f,
|
|
897
|
+
je as g,
|
|
898
|
+
b as h,
|
|
899
|
+
ze as i,
|
|
900
|
+
ve as j,
|
|
901
|
+
Fe as k,
|
|
902
|
+
Be as l,
|
|
903
|
+
De as m,
|
|
904
|
+
Pe as n,
|
|
905
|
+
Se as o,
|
|
906
|
+
Oe as p,
|
|
907
|
+
Le as q,
|
|
908
|
+
_e as r,
|
|
909
|
+
Re as s,
|
|
910
|
+
O as t,
|
|
911
|
+
l as u,
|
|
912
|
+
c as v
|
|
913
|
+
};
|