@janbox/storefront-builder 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dialog-header-Bh3Dkw2q.js → countdown-timer.node-CZA-i5xq.js} +3303 -2187
- package/dist/editor/components/index.d.ts +0 -1
- package/dist/editor/hooks/index.d.ts +0 -12
- package/dist/editor/hooks/use-editor.d.ts +6 -2
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/lib/index.d.ts +6 -4
- package/dist/editor/toolbars/css-font-weight/index.d.ts +9 -0
- package/dist/editor/toolbars/{width/width.d.ts → css-width/index.d.ts} +5 -5
- package/dist/editor/toolbars/html-anchor-target/index.d.ts +7 -0
- package/dist/editor/toolbars/index.d.ts +3 -3
- package/dist/editor/toolbars/text-align/index.d.ts +9 -1
- package/dist/editor/ui/floating/wb-floating/types.d.ts +2 -2
- package/dist/editor/ui/floating/wb-floating/wb-floating.d.ts +2 -0
- package/dist/editor.js +1209 -673
- package/dist/hooks/use-composer.d.ts +464 -0
- package/dist/index-B58cYfCo.js +4 -0
- package/dist/index-ekIAycpt.js +8326 -0
- package/dist/index.js +173 -371
- package/dist/lib/accordion/accordion.node/helpers.d.ts +3 -0
- package/dist/lib/accordion-group/accordion-group.node/helpers.d.ts +3 -0
- package/dist/lib/box/box.node/helpers.d.ts +3 -0
- package/dist/lib/button/button.node/helpers.d.ts +3 -0
- package/dist/lib/cell/cell.node/helpers.d.ts +3 -0
- package/dist/lib/container/container.node/helpers.d.ts +3 -0
- package/dist/lib/countdown-timer/countdown-timer.node/helpers.d.ts +3 -0
- package/dist/lib/flex-item/flex-item.node/helpers.d.ts +3 -0
- package/dist/lib/flexbox/flexbox.node/helpers.d.ts +3 -0
- package/dist/lib/grid/grid.node/helpers.d.ts +3 -0
- package/dist/lib/heading/heading.node/helpers.d.ts +3 -0
- package/dist/lib/icon/icon.node/helpers.d.ts +3 -0
- package/dist/lib/image/image.node/helpers.d.ts +3 -0
- package/dist/lib/link/link.node/helpers.d.ts +3 -0
- package/dist/lib/list-item/list-item.node/helpers.d.ts +3 -0
- package/dist/lib/marquee/marquee.node/helpers.d.ts +3 -0
- package/dist/lib/paragraph/paragraph.node/helpers.d.ts +3 -0
- package/dist/lib/swiper/swiper.node/helpers.d.ts +3 -0
- package/dist/lib/tab/tab.node/helpers.d.ts +3 -0
- package/dist/lib/tab-panel/tab-panel.node/helpers.d.ts +3 -0
- package/dist/lib/tabs/tabs.node/helpers.d.ts +3 -0
- package/dist/lib/unordered-list/unordered-list.node/helpers.d.ts +3 -0
- package/dist/lib/video/video.node/helpers.d.ts +3 -0
- package/dist/templates.js +26 -28
- package/dist/{tooltip-CXOlTkGg.js → tooltip-BFrdgixm.js} +1 -1
- package/package.json +2 -10
- package/dist/anchor-target-CtXzdkBu.js +0 -2918
- package/dist/color-picker-popover-XeaVfYS8.js +0 -225
- package/dist/countdown-timer.node-Bh5fTSJ8.js +0 -913
- package/dist/date-picker-D9K6HWl-.js +0 -157
- package/dist/dropzone-CF4CWXth.js +0 -546
- package/dist/editor/components/toolbar-container.d.ts +0 -1
- package/dist/editor/toolbars/anchor-target/anchor-target.d.ts +0 -7
- package/dist/editor/toolbars/anchor-target/index.d.ts +0 -1
- package/dist/editor/toolbars/font-weight/dataset.d.ts +0 -5
- package/dist/editor/toolbars/font-weight/font-weight.d.ts +0 -9
- package/dist/editor/toolbars/font-weight/index.d.ts +0 -1
- package/dist/editor/toolbars/text-align/text-align.d.ts +0 -8
- package/dist/editor/toolbars/width/index.d.ts +0 -1
- package/dist/editor/toolbars.js +0 -346
- package/dist/editor/ui.js +0 -120
- package/dist/index-800HnUOi.js +0 -4
- package/dist/index-CXyljfMv.js +0 -4593
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributeAnchorTarget } from 'react';
|
|
2
|
-
export type AnchorTargetToolbarProps = {
|
|
3
|
-
value?: HTMLAttributeAnchorTarget;
|
|
4
|
-
onChange?: (value: HTMLAttributeAnchorTarget) => void;
|
|
5
|
-
name?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const AnchorTargetToolbar: ({ value, onChange, name }: AnchorTargetToolbarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './anchor-target';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StyledCSS } from '@janbox/storefront-ui/types';
|
|
2
|
-
export type FontWeightToolbarValue = Pick<StyledCSS, 'fontWeight'>;
|
|
3
|
-
export interface FontWeightToolbarProps {
|
|
4
|
-
responsive?: boolean;
|
|
5
|
-
name?: string;
|
|
6
|
-
value?: FontWeightToolbarValue;
|
|
7
|
-
onChange?: (value: FontWeightToolbarValue) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const FontWeightToolbar: ({ value, responsive, name, onChange }: FontWeightToolbarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './font-weight';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StyledCSS } from '@janbox/storefront-ui/types';
|
|
2
|
-
interface TextAlignToolbarProps {
|
|
3
|
-
value?: StyledCSS['textAlign'];
|
|
4
|
-
onChange?: (value: StyledCSS['textAlign']) => void;
|
|
5
|
-
label?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const TextAlignToolbar: ({ value, onChange, label }: TextAlignToolbarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './width';
|
package/dist/editor/toolbars.js
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { T as f, C as I, a as A, b as F, c as P, d as B, F as O, e as V } from "../anchor-target-CtXzdkBu.js";
|
|
2
|
-
import { A as ze, f as ke, B as Ie, g as Ae, h as Fe, i as Pe, j as Be, k as Oe, D as Ve, l as Ge, m as Me, G as De, H as Re, J as Ue, n as He, M as je, N as qe, o as Je, O as Ee, p as Le, P as $e, R as Ke, S as Qe, q as Xe, r as Ye, s as Ze, W as _e, t as eo } from "../anchor-target-CtXzdkBu.js";
|
|
3
|
-
import { jsxs as p, jsx as e } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { isNumber as C, isNil as m, isString as S, isEqual as G } from "lodash-es";
|
|
5
|
-
import { useRef as M, useState as D } from "react";
|
|
6
|
-
import "@janbox/storefront-ui/hooks";
|
|
7
|
-
import "@janbox/storefront-ui/theme";
|
|
8
|
-
import "@janbox/storefront-ui/utils";
|
|
9
|
-
import { A as R, v as w, k as g, W as b, P as N, M as W, q as U, s as H, t as T, r as j, C as q } from "../dialog-header-Bh3Dkw2q.js";
|
|
10
|
-
import "@emotion/react";
|
|
11
|
-
import { c as z, f as J, e as E } from "../dropzone-CF4CWXth.js";
|
|
12
|
-
import "@floating-ui/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
|
-
import "../color-picker-popover-XeaVfYS8.js";
|
|
21
|
-
import "@tiptap/extension-text-style";
|
|
22
|
-
import "@tiptap/react";
|
|
23
|
-
import "@tiptap/react/menus";
|
|
24
|
-
import "@tiptap/starter-kit";
|
|
25
|
-
import "react-frame-component";
|
|
26
|
-
import "@craftjs/core";
|
|
27
|
-
import "flat";
|
|
28
|
-
var u = /* @__PURE__ */ ((o) => (o[o.Pixels = 0] = "Pixels", o[o.Unitless = 1] = "Unitless", o))(u || {});
|
|
29
|
-
const L = [
|
|
30
|
-
{
|
|
31
|
-
label: "Pixels",
|
|
32
|
-
value: 0
|
|
33
|
-
/* Pixels */
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "Unitless",
|
|
37
|
-
value: 1
|
|
38
|
-
/* Unitless */
|
|
39
|
-
}
|
|
40
|
-
], Te = ({ name: o, responsive: d = !0, value: t, onChange: c }) => {
|
|
41
|
-
const r = C(t?.lineHeight) ? u.Unitless : u.Pixels, l = r === u.Unitless ? 0.1 : 1, n = R(t?.lineHeight, "float"), a = ({ unit: s, value: h }) => {
|
|
42
|
-
if (m(h)) {
|
|
43
|
-
c?.({
|
|
44
|
-
lineHeight: s === u.Unitless ? 1 : h
|
|
45
|
-
});
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
c?.({
|
|
49
|
-
lineHeight: s === u.Unitless ? Number(h.toFixed(1)) : `${h}px`
|
|
50
|
-
});
|
|
51
|
-
}, i = (s) => {
|
|
52
|
-
a({ unit: Number(s.target.value) });
|
|
53
|
-
}, x = (s) => {
|
|
54
|
-
const h = isNaN(s.target.valueAsNumber) ? void 0 : s.target.valueAsNumber;
|
|
55
|
-
a({ unit: r, value: h });
|
|
56
|
-
}, v = (s) => {
|
|
57
|
-
s.stopPropagation(), !m(n) && a({ unit: r, value: Math.max(n + l, 0) });
|
|
58
|
-
}, k = (s) => {
|
|
59
|
-
s.stopPropagation(), !m(n) && a({ unit: r, value: Math.max(n - l, 0) });
|
|
60
|
-
};
|
|
61
|
-
return /* @__PURE__ */ p("div", { css: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
62
|
-
/* @__PURE__ */ e(f, { responsive: d, name: o ?? "Line height", children: /* @__PURE__ */ e("div", { css: { display: "flex", alignItems: "center", gap: 4 }, children: L.map((s) => /* @__PURE__ */ e(
|
|
63
|
-
w,
|
|
64
|
-
{
|
|
65
|
-
onChange: i,
|
|
66
|
-
checked: s.value === r,
|
|
67
|
-
value: s.value,
|
|
68
|
-
name: "toolbar-line-height",
|
|
69
|
-
children: s.label
|
|
70
|
-
},
|
|
71
|
-
s.value
|
|
72
|
-
)) }) }),
|
|
73
|
-
/* @__PURE__ */ e("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ e("div", { css: { width: "50%" }, children: /* @__PURE__ */ e(
|
|
74
|
-
z,
|
|
75
|
-
{
|
|
76
|
-
fractionDigits: 1,
|
|
77
|
-
type: r === u.Unitless ? "decimal" : "integer",
|
|
78
|
-
value: n ?? "",
|
|
79
|
-
onChange: x,
|
|
80
|
-
prefix: /* @__PURE__ */ e(g, { disabled: C(n) && n <= 0, onClick: k, children: /* @__PURE__ */ e(b, { source: W }) }),
|
|
81
|
-
suffix: /* @__PURE__ */ e(g, { onClick: v, children: /* @__PURE__ */ e(b, { source: N }) }),
|
|
82
|
-
mode: "onBlur",
|
|
83
|
-
css: { textAlign: "center" },
|
|
84
|
-
placeholder: "normal"
|
|
85
|
-
}
|
|
86
|
-
) }) })
|
|
87
|
-
] });
|
|
88
|
-
}, ve = ({ name: o, responsive: d = !0, value: t, onChange: c }) => {
|
|
89
|
-
const r = (a) => {
|
|
90
|
-
const i = isNaN(a.target.valueAsNumber) ? void 0 : a.target.valueAsNumber;
|
|
91
|
-
c?.({
|
|
92
|
-
...t,
|
|
93
|
-
fontSize: i
|
|
94
|
-
});
|
|
95
|
-
}, l = (a) => {
|
|
96
|
-
a.stopPropagation();
|
|
97
|
-
const i = S(t?.fontSize) ? void 0 : t?.fontSize;
|
|
98
|
-
c?.({
|
|
99
|
-
...t,
|
|
100
|
-
fontSize: m(i) ? 16 : i + 1
|
|
101
|
-
});
|
|
102
|
-
}, n = (a) => {
|
|
103
|
-
a.stopPropagation();
|
|
104
|
-
const i = S(t?.fontSize) ? void 0 : t?.fontSize;
|
|
105
|
-
c?.({
|
|
106
|
-
...t,
|
|
107
|
-
fontSize: m(i) ? 16 : Math.max(i - 1, 0)
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
return /* @__PURE__ */ e(f, { responsive: d, name: o ?? "Font size", children: /* @__PURE__ */ e("div", { css: { width: "50%" }, children: /* @__PURE__ */ e(
|
|
111
|
-
z,
|
|
112
|
-
{
|
|
113
|
-
onCanPlay: r,
|
|
114
|
-
mode: "onBlur",
|
|
115
|
-
css: { textAlign: "center" },
|
|
116
|
-
placeholder: "inherit",
|
|
117
|
-
value: t?.fontSize ?? "",
|
|
118
|
-
prefix: /* @__PURE__ */ e(g, { disabled: C(t?.fontSize) && t.fontSize <= 0, onClick: n, children: /* @__PURE__ */ e(b, { source: W }) }),
|
|
119
|
-
suffix: /* @__PURE__ */ e(g, { onClick: l, children: /* @__PURE__ */ e(b, { source: N }) })
|
|
120
|
-
}
|
|
121
|
-
) }) });
|
|
122
|
-
}, y = [
|
|
123
|
-
{
|
|
124
|
-
label: "Block",
|
|
125
|
-
value: "block"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: "Inline",
|
|
129
|
-
value: "inline"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: "Inline Block",
|
|
133
|
-
value: "inline-block"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: "Flex",
|
|
137
|
-
value: "flex"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
label: "Inline Flex",
|
|
141
|
-
value: "flex"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
label: "Grid",
|
|
145
|
-
value: "grid"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
label: "Inline Grid",
|
|
149
|
-
value: "inline-grid"
|
|
150
|
-
}
|
|
151
|
-
], Ce = ({
|
|
152
|
-
name: o,
|
|
153
|
-
responsive: d = !1,
|
|
154
|
-
availableDisplays: t,
|
|
155
|
-
onChange: c,
|
|
156
|
-
value: r
|
|
157
|
-
}) => {
|
|
158
|
-
const l = m(t) ? y : y.filter((a) => t.includes(a.value)), n = (a) => {
|
|
159
|
-
c?.({ display: a });
|
|
160
|
-
};
|
|
161
|
-
return /* @__PURE__ */ e(f, { name: o ?? "Display", responsive: d, children: /* @__PURE__ */ e(
|
|
162
|
-
J,
|
|
163
|
-
{
|
|
164
|
-
css: {
|
|
165
|
-
width: "50%"
|
|
166
|
-
},
|
|
167
|
-
placement: "bottom-end",
|
|
168
|
-
placeholder: "default",
|
|
169
|
-
options: l,
|
|
170
|
-
value: r?.display ?? null,
|
|
171
|
-
onChange: n
|
|
172
|
-
}
|
|
173
|
-
) });
|
|
174
|
-
}, Se = ({ value: o, onChange: d, name: t, responsive: c = !1 }) => {
|
|
175
|
-
const r = {
|
|
176
|
-
flexBasis: o?.flexBasis ?? "auto",
|
|
177
|
-
flexGrow: o?.flexGrow ?? 0,
|
|
178
|
-
flexShrink: o?.flexShrink ?? 1
|
|
179
|
-
}, l = [
|
|
180
|
-
{
|
|
181
|
-
label: "Auto fit",
|
|
182
|
-
value: 0,
|
|
183
|
-
rawValue: {
|
|
184
|
-
flexBasis: "auto",
|
|
185
|
-
flexGrow: 0,
|
|
186
|
-
flexShrink: 1
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
label: "Auto fill",
|
|
191
|
-
value: 1,
|
|
192
|
-
rawValue: {
|
|
193
|
-
flexBasis: "0%",
|
|
194
|
-
flexGrow: 1,
|
|
195
|
-
flexShrink: 1
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
], n = l.find((i) => G(i.rawValue, r))?.value, a = (i) => {
|
|
199
|
-
const x = l.find((v) => v.value === Number(i.target.value));
|
|
200
|
-
x && d?.(x.rawValue);
|
|
201
|
-
};
|
|
202
|
-
return /* @__PURE__ */ e(f, { name: t ?? "Content", responsive: c, children: /* @__PURE__ */ e("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: l.map((i) => /* @__PURE__ */ e(
|
|
203
|
-
w,
|
|
204
|
-
{
|
|
205
|
-
checked: i.value === n,
|
|
206
|
-
value: i.value,
|
|
207
|
-
onChange: a,
|
|
208
|
-
children: i.label
|
|
209
|
-
},
|
|
210
|
-
i.value
|
|
211
|
-
)) }) });
|
|
212
|
-
}, ye = ({ name: o, value: d, onChange: t, responsive: c = !0 }) => {
|
|
213
|
-
const r = M(null), l = (n) => {
|
|
214
|
-
t?.({
|
|
215
|
-
minWidth: n
|
|
216
|
-
});
|
|
217
|
-
};
|
|
218
|
-
return /* @__PURE__ */ e(f, { name: o ?? "Min width", responsive: c, children: /* @__PURE__ */ e("div", { css: { position: "relative", width: "50%" }, children: /* @__PURE__ */ e(
|
|
219
|
-
I,
|
|
220
|
-
{
|
|
221
|
-
fullWidth: !0,
|
|
222
|
-
wrapRef: r,
|
|
223
|
-
placeholder: "0",
|
|
224
|
-
value: d?.minWidth,
|
|
225
|
-
onChange: l,
|
|
226
|
-
defaultValue: {
|
|
227
|
-
"%": 100
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
) }) });
|
|
231
|
-
}, we = ({ value: o, onChange: d }) => {
|
|
232
|
-
const [t, c] = D(!1), r = (n) => {
|
|
233
|
-
d?.({ ...o, sizeVariant: n });
|
|
234
|
-
}, l = (n) => {
|
|
235
|
-
d?.({
|
|
236
|
-
...o,
|
|
237
|
-
css: {
|
|
238
|
-
...o?.css,
|
|
239
|
-
...n
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
return /* @__PURE__ */ e(f, { name: "Text style", children: /* @__PURE__ */ p(U, { open: t, onOpenChange: c, placement: "right", children: [
|
|
244
|
-
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ p(
|
|
245
|
-
"button",
|
|
246
|
-
{
|
|
247
|
-
css: [
|
|
248
|
-
{
|
|
249
|
-
display: "flex",
|
|
250
|
-
paddingInline: 8,
|
|
251
|
-
alignItems: "center",
|
|
252
|
-
gap: 8,
|
|
253
|
-
borderRadius: 6,
|
|
254
|
-
textAlign: "left",
|
|
255
|
-
width: "50%",
|
|
256
|
-
height: 32,
|
|
257
|
-
backgroundColor: T.palette.white["1s"],
|
|
258
|
-
overflow: "hidden",
|
|
259
|
-
textOverflow: "ellipsis",
|
|
260
|
-
whiteSpace: "nowrap",
|
|
261
|
-
...T.text.xs
|
|
262
|
-
},
|
|
263
|
-
t && { backgroundColor: T.palette.black["7s"] }
|
|
264
|
-
],
|
|
265
|
-
children: [
|
|
266
|
-
/* @__PURE__ */ e(b, { css: { color: "white" }, source: A }),
|
|
267
|
-
/* @__PURE__ */ e("span", { children: "Auto" })
|
|
268
|
-
]
|
|
269
|
-
}
|
|
270
|
-
) }),
|
|
271
|
-
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ p("div", { style: { width: 280 }, children: [
|
|
272
|
-
/* @__PURE__ */ p("div", { css: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8 }, children: [
|
|
273
|
-
/* @__PURE__ */ e("div", { css: { fontWeight: 500 }, children: "Text style" }),
|
|
274
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(b, { source: q }) }) })
|
|
275
|
-
] }),
|
|
276
|
-
/* @__PURE__ */ e("hr", { css: { marginBlock: 8, borderColor: T.palette.white["1s"] } }),
|
|
277
|
-
/* @__PURE__ */ p("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
278
|
-
/* @__PURE__ */ e(F, { value: o?.sizeVariant, onChange: r }),
|
|
279
|
-
/* @__PURE__ */ e(P, { value: { color: o?.css?.color }, onChange: l }),
|
|
280
|
-
/* @__PURE__ */ e(
|
|
281
|
-
B,
|
|
282
|
-
{
|
|
283
|
-
name: "Style",
|
|
284
|
-
value: {
|
|
285
|
-
fontWeight: o?.css?.fontWeight,
|
|
286
|
-
fontStyle: o?.css?.fontStyle,
|
|
287
|
-
textDecorationLine: o?.css?.textDecorationLine
|
|
288
|
-
},
|
|
289
|
-
onChange: l
|
|
290
|
-
}
|
|
291
|
-
),
|
|
292
|
-
/* @__PURE__ */ e(O, { value: { fontWeight: o?.css?.fontWeight }, onChange: l }),
|
|
293
|
-
/* @__PURE__ */ e(
|
|
294
|
-
V,
|
|
295
|
-
{
|
|
296
|
-
value: {
|
|
297
|
-
textTransform: o?.css?.textTransform
|
|
298
|
-
},
|
|
299
|
-
onChange: l
|
|
300
|
-
}
|
|
301
|
-
)
|
|
302
|
-
] })
|
|
303
|
-
] }) })
|
|
304
|
-
] }) });
|
|
305
|
-
};
|
|
306
|
-
export {
|
|
307
|
-
ze as AnchorTargetToolbar,
|
|
308
|
-
ke as AspectRatioToolbar,
|
|
309
|
-
Ie as BackgroundToolbar,
|
|
310
|
-
Ae as BorderRadiusToolbar,
|
|
311
|
-
Fe as BorderToolbar,
|
|
312
|
-
Pe as ChildNodesToolbar,
|
|
313
|
-
P as ColorToolbar,
|
|
314
|
-
Be as ColorVariantToolbar,
|
|
315
|
-
Oe as ColumnGapToolbar,
|
|
316
|
-
Ve as DisplayOnToolbar,
|
|
317
|
-
Ce as DisplayToolbar,
|
|
318
|
-
Ge as FlexAlignItemsToolbar,
|
|
319
|
-
Se as FlexToolbar,
|
|
320
|
-
Me as FlexWrapToolbar,
|
|
321
|
-
ve as FontSizeToolbar,
|
|
322
|
-
O as FontWeightToolbar,
|
|
323
|
-
De as GridAlignItemsToolbar,
|
|
324
|
-
Re as HeightToolbar,
|
|
325
|
-
Ue as JustifyContentToolbar,
|
|
326
|
-
He as JustifyItemsToolbar,
|
|
327
|
-
Te as LineHeightToolbar,
|
|
328
|
-
je as MarginToolbar,
|
|
329
|
-
ye as MinWidthToolbar,
|
|
330
|
-
qe as NumberField,
|
|
331
|
-
Je as NumberFieldMixOptions,
|
|
332
|
-
Ee as ObjectFitToolbar,
|
|
333
|
-
Le as OrderToolbar,
|
|
334
|
-
$e as PaddingToolbar,
|
|
335
|
-
Ke as RowGapToolbar,
|
|
336
|
-
Qe as SpacingToolbar,
|
|
337
|
-
Xe as SvgSourceToolbar,
|
|
338
|
-
Ye as TagNameToolbar,
|
|
339
|
-
Ze as TextAlignToolbar,
|
|
340
|
-
F as TextSizeVariantToolbar,
|
|
341
|
-
we as TextStyleGroupToolbar,
|
|
342
|
-
B as TextStyleToolbar,
|
|
343
|
-
V as TextTransformToolbar,
|
|
344
|
-
_e as WidthToolbar,
|
|
345
|
-
eo as textSizeVariantOptions
|
|
346
|
-
};
|
package/dist/editor/ui.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { a as i, b as l, t, u as n } from "../dialog-header-Bh3Dkw2q.js";
|
|
2
|
-
import { c as D, d as T, e as F, f as I, g as P, h as w, i as y, j as B, W as L, k as S, l as j, m as M, n as N, o as z, p as E, q as O, r as V, s as G, v as H, w as R, x as _, y as q } from "../dialog-header-Bh3Dkw2q.js";
|
|
3
|
-
import { W as b } from "../dropzone-CF4CWXth.js";
|
|
4
|
-
import { a as X, b as Z, c as J, d as K, e as Q, f as U, g as Y, h as $, i as oo, j as eo, k as ao, l as so } from "../dropzone-CF4CWXth.js";
|
|
5
|
-
import { W as ro } from "../tooltip-CXOlTkGg.js";
|
|
6
|
-
import { jsx as e, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { FLOATING_Z_INDEX as W } from "@janbox/storefront-ui/theme";
|
|
8
|
-
import { isValidElement as d } from "react";
|
|
9
|
-
import { W as lo } from "../date-picker-D9K6HWl-.js";
|
|
10
|
-
const x = ({ width: a = 600, children: o, ...s }) => /* @__PURE__ */ e(
|
|
11
|
-
i,
|
|
12
|
-
{
|
|
13
|
-
dismissProps: {
|
|
14
|
-
enabled: !0
|
|
15
|
-
},
|
|
16
|
-
...s,
|
|
17
|
-
children: /* @__PURE__ */ r(
|
|
18
|
-
l,
|
|
19
|
-
{
|
|
20
|
-
floatingOverlayProps: {
|
|
21
|
-
disabled: !1,
|
|
22
|
-
className: "grid place-items-center p-4 sm:p-5 md:p-6",
|
|
23
|
-
lockScroll: !0,
|
|
24
|
-
style: {
|
|
25
|
-
zIndex: W
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ e(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
css: {
|
|
34
|
-
backdropFilter: "blur(2px)",
|
|
35
|
-
position: "fixed",
|
|
36
|
-
inset: 0,
|
|
37
|
-
pointerEvents: "none",
|
|
38
|
-
backgroundColor: "rgba(0, 0, 0, 0.4)"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
css: {
|
|
46
|
-
width: a,
|
|
47
|
-
display: "flex",
|
|
48
|
-
position: "relative",
|
|
49
|
-
paddingBlock: 8,
|
|
50
|
-
flexDirection: "column",
|
|
51
|
-
overflow: "hidden",
|
|
52
|
-
borderRadius: 8,
|
|
53
|
-
backgroundColor: t.palette.ink["6s"],
|
|
54
|
-
maxWidth: "100%",
|
|
55
|
-
color: "white"
|
|
56
|
-
},
|
|
57
|
-
children: o
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
), f = () => n(), v = ({ ref: a, ...o }) => /* @__PURE__ */ e(
|
|
65
|
-
b,
|
|
66
|
-
{
|
|
67
|
-
css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...t.text.xs },
|
|
68
|
-
...o,
|
|
69
|
-
ref: a
|
|
70
|
-
}
|
|
71
|
-
), h = ({ required: a, children: o, ...s }) => /* @__PURE__ */ r("div", { css: { marginBottom: 6, display: "flex", width: "fit-content" }, ...s, children: [
|
|
72
|
-
d(o) ? o : /* @__PURE__ */ e("label", { children: o }),
|
|
73
|
-
a && /* @__PURE__ */ e("span", { css: { color: t.palette.red["6s"] }, children: " *" })
|
|
74
|
-
] });
|
|
75
|
-
export {
|
|
76
|
-
D as WbButton,
|
|
77
|
-
X as WbButtonGroup,
|
|
78
|
-
T as WbCollapse,
|
|
79
|
-
F as WbColorPicker,
|
|
80
|
-
lo as WbDatePicker,
|
|
81
|
-
x as WbDialog,
|
|
82
|
-
v as WbDialogBody,
|
|
83
|
-
I as WbDialogClose,
|
|
84
|
-
P as WbDialogFooter,
|
|
85
|
-
w as WbDialogHeader,
|
|
86
|
-
Z as WbDropzone,
|
|
87
|
-
i as WbFloating,
|
|
88
|
-
y as WbFloatingClose,
|
|
89
|
-
l as WbFloatingContent,
|
|
90
|
-
B as WbFloatingContext,
|
|
91
|
-
h as WbFormLabel,
|
|
92
|
-
L as WbIcon,
|
|
93
|
-
S as WbIconButton,
|
|
94
|
-
j as WbInput,
|
|
95
|
-
J as WbInputNumber,
|
|
96
|
-
M as WbLoadingOverlay,
|
|
97
|
-
K as WbMenu,
|
|
98
|
-
N as WbMenuItem,
|
|
99
|
-
z as WbMenuList,
|
|
100
|
-
E as WbMenuTrigger,
|
|
101
|
-
O as WbPopover,
|
|
102
|
-
Q as WbPopoverClose,
|
|
103
|
-
V as WbPopoverContent,
|
|
104
|
-
G as WbPopoverTrigger,
|
|
105
|
-
H as WbRadioButton,
|
|
106
|
-
b as WbScrollView,
|
|
107
|
-
U as WbSelect,
|
|
108
|
-
R as WbSvgLoader,
|
|
109
|
-
_ as WbSwitch,
|
|
110
|
-
Y as WbTab,
|
|
111
|
-
$ as WbTabContent,
|
|
112
|
-
oo as WbTabList,
|
|
113
|
-
eo as WbTabPanel,
|
|
114
|
-
ao as WbTabs,
|
|
115
|
-
q as WbTextarea,
|
|
116
|
-
ro as WbTooltip,
|
|
117
|
-
so as WbVirtualizedList,
|
|
118
|
-
f as useDialogContext,
|
|
119
|
-
n as useWbFloatingContext
|
|
120
|
-
};
|
package/dist/index-800HnUOi.js
DELETED