@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
package/dist/editor/ui.js
CHANGED
|
@@ -1,110 +1,120 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { W } from "../dropzone-
|
|
4
|
-
import { a as
|
|
5
|
-
import { W as
|
|
6
|
-
import { jsx as e, jsxs as
|
|
7
|
-
import { FLOATING_Z_INDEX as
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
b,
|
|
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,
|
|
13
12
|
{
|
|
14
13
|
dismissProps: {
|
|
15
14
|
enabled: !0
|
|
16
15
|
},
|
|
17
|
-
...
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
|
|
16
|
+
...s,
|
|
17
|
+
children: /* @__PURE__ */ r(
|
|
18
|
+
l,
|
|
20
19
|
{
|
|
21
20
|
floatingOverlayProps: {
|
|
22
21
|
disabled: !1,
|
|
23
22
|
className: "grid place-items-center p-4 sm:p-5 md:p-6",
|
|
24
23
|
lockScroll: !0,
|
|
25
24
|
style: {
|
|
26
|
-
zIndex:
|
|
25
|
+
zIndex: W
|
|
27
26
|
}
|
|
28
27
|
},
|
|
29
|
-
|
|
28
|
+
css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
|
|
30
29
|
children: [
|
|
31
30
|
/* @__PURE__ */ e(
|
|
32
31
|
"div",
|
|
33
32
|
{
|
|
34
33
|
css: {
|
|
35
|
-
backdropFilter: "blur(2px)"
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
backdropFilter: "blur(2px)",
|
|
35
|
+
position: "fixed",
|
|
36
|
+
inset: 0,
|
|
37
|
+
pointerEvents: "none",
|
|
38
|
+
backgroundColor: "rgba(0, 0, 0, 0.4)"
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
),
|
|
40
42
|
/* @__PURE__ */ e(
|
|
41
43
|
"div",
|
|
42
44
|
{
|
|
43
45
|
css: {
|
|
44
|
-
width: a
|
|
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"
|
|
45
56
|
},
|
|
46
|
-
|
|
47
|
-
children: s
|
|
57
|
+
children: o
|
|
48
58
|
}
|
|
49
59
|
)
|
|
50
60
|
]
|
|
51
61
|
}
|
|
52
62
|
)
|
|
53
63
|
}
|
|
54
|
-
),
|
|
55
|
-
|
|
64
|
+
), f = () => n(), v = ({ ref: a, ...o }) => /* @__PURE__ */ e(
|
|
65
|
+
b,
|
|
56
66
|
{
|
|
57
|
-
|
|
58
|
-
...
|
|
59
|
-
ref:
|
|
67
|
+
css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...t.text.xs },
|
|
68
|
+
...o,
|
|
69
|
+
ref: a
|
|
60
70
|
}
|
|
61
|
-
),
|
|
62
|
-
|
|
63
|
-
a && /* @__PURE__ */ e("span", {
|
|
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: " *" })
|
|
64
74
|
] });
|
|
65
75
|
export {
|
|
66
76
|
D as WbButton,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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,
|
|
80
90
|
B as WbFloatingContext,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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,
|
|
109
119
|
n as useWbFloatingContext
|
|
110
120
|
};
|