@janbox/storefront-builder 2.0.0 → 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/toolbars.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { T as f, C as
|
|
2
|
-
import { A as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { isNumber as
|
|
5
|
-
import { useRef as
|
|
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
6
|
import "@janbox/storefront-ui/hooks";
|
|
7
7
|
import "@janbox/storefront-ui/theme";
|
|
8
8
|
import "@janbox/storefront-ui/utils";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
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";
|
|
11
12
|
import "@floating-ui/react";
|
|
12
13
|
import "react-use";
|
|
13
14
|
import "react-colorful";
|
|
@@ -16,7 +17,7 @@ import "@tanstack/react-virtual";
|
|
|
16
17
|
import "react-dropzone";
|
|
17
18
|
import "react-datepicker/dist/react-datepicker.css";
|
|
18
19
|
import "react-datepicker";
|
|
19
|
-
import "../color-picker-popover-
|
|
20
|
+
import "../color-picker-popover-XeaVfYS8.js";
|
|
20
21
|
import "@tiptap/extension-text-style";
|
|
21
22
|
import "@tiptap/react";
|
|
22
23
|
import "@tiptap/react/menus";
|
|
@@ -24,10 +25,7 @@ import "@tiptap/starter-kit";
|
|
|
24
25
|
import "react-frame-component";
|
|
25
26
|
import "@craftjs/core";
|
|
26
27
|
import "flat";
|
|
27
|
-
|
|
28
|
-
import "clsx";
|
|
29
|
-
import "tailwind-merge";
|
|
30
|
-
var u = /* @__PURE__ */ ((t) => (t[t.Pixels = 0] = "Pixels", t[t.Unitless = 1] = "Unitless", t))(u || {});
|
|
28
|
+
var u = /* @__PURE__ */ ((o) => (o[o.Pixels = 0] = "Pixels", o[o.Unitless = 1] = "Unitless", o))(u || {});
|
|
31
29
|
const L = [
|
|
32
30
|
{
|
|
33
31
|
label: "Pixels",
|
|
@@ -39,32 +37,32 @@ const L = [
|
|
|
39
37
|
value: 1
|
|
40
38
|
/* Unitless */
|
|
41
39
|
}
|
|
42
|
-
],
|
|
43
|
-
const r =
|
|
44
|
-
if (
|
|
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)) {
|
|
45
43
|
c?.({
|
|
46
|
-
lineHeight: s === u.Unitless ? 1 :
|
|
44
|
+
lineHeight: s === u.Unitless ? 1 : h
|
|
47
45
|
});
|
|
48
46
|
return;
|
|
49
47
|
}
|
|
50
48
|
c?.({
|
|
51
|
-
lineHeight: s === u.Unitless ? Number(
|
|
49
|
+
lineHeight: s === u.Unitless ? Number(h.toFixed(1)) : `${h}px`
|
|
52
50
|
});
|
|
53
|
-
},
|
|
54
|
-
|
|
51
|
+
}, i = (s) => {
|
|
52
|
+
a({ unit: Number(s.target.value) });
|
|
55
53
|
}, x = (s) => {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
s.stopPropagation(), !
|
|
60
|
-
},
|
|
61
|
-
s.stopPropagation(), !
|
|
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) });
|
|
62
60
|
};
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */ e(f, { responsive:
|
|
65
|
-
|
|
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,
|
|
66
64
|
{
|
|
67
|
-
onChange:
|
|
65
|
+
onChange: i,
|
|
68
66
|
checked: s.value === r,
|
|
69
67
|
value: s.value,
|
|
70
68
|
name: "toolbar-line-height",
|
|
@@ -72,58 +70,56 @@ const L = [
|
|
|
72
70
|
},
|
|
73
71
|
s.value
|
|
74
72
|
)) }) }),
|
|
75
|
-
/* @__PURE__ */ e("div", {
|
|
76
|
-
|
|
73
|
+
/* @__PURE__ */ e("div", { css: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ e("div", { css: { width: "50%" }, children: /* @__PURE__ */ e(
|
|
74
|
+
z,
|
|
77
75
|
{
|
|
78
76
|
fractionDigits: 1,
|
|
79
77
|
type: r === u.Unitless ? "decimal" : "integer",
|
|
80
|
-
value:
|
|
78
|
+
value: n ?? "",
|
|
81
79
|
onChange: x,
|
|
82
|
-
prefix: /* @__PURE__ */ e(g, { disabled:
|
|
83
|
-
suffix: /* @__PURE__ */ e(g, { onClick:
|
|
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 }) }),
|
|
84
82
|
mode: "onBlur",
|
|
85
|
-
|
|
86
|
-
placeholder: "normal"
|
|
87
|
-
classes: { container: "tw:w-1/2" }
|
|
83
|
+
css: { textAlign: "center" },
|
|
84
|
+
placeholder: "normal"
|
|
88
85
|
}
|
|
89
|
-
) })
|
|
86
|
+
) }) })
|
|
90
87
|
] });
|
|
91
|
-
}, ve = ({ name:
|
|
92
|
-
const r = (
|
|
93
|
-
const
|
|
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;
|
|
94
91
|
c?.({
|
|
95
|
-
...
|
|
96
|
-
fontSize:
|
|
92
|
+
...t,
|
|
93
|
+
fontSize: i
|
|
97
94
|
});
|
|
98
|
-
}, l = (
|
|
99
|
-
|
|
100
|
-
const
|
|
95
|
+
}, l = (a) => {
|
|
96
|
+
a.stopPropagation();
|
|
97
|
+
const i = S(t?.fontSize) ? void 0 : t?.fontSize;
|
|
101
98
|
c?.({
|
|
102
|
-
...
|
|
103
|
-
fontSize:
|
|
99
|
+
...t,
|
|
100
|
+
fontSize: m(i) ? 16 : i + 1
|
|
104
101
|
});
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
const
|
|
102
|
+
}, n = (a) => {
|
|
103
|
+
a.stopPropagation();
|
|
104
|
+
const i = S(t?.fontSize) ? void 0 : t?.fontSize;
|
|
108
105
|
c?.({
|
|
109
|
-
...
|
|
110
|
-
fontSize:
|
|
106
|
+
...t,
|
|
107
|
+
fontSize: m(i) ? 16 : Math.max(i - 1, 0)
|
|
111
108
|
});
|
|
112
109
|
};
|
|
113
|
-
return /* @__PURE__ */ e(f, { responsive:
|
|
114
|
-
|
|
110
|
+
return /* @__PURE__ */ e(f, { responsive: d, name: o ?? "Font size", children: /* @__PURE__ */ e("div", { css: { width: "50%" }, children: /* @__PURE__ */ e(
|
|
111
|
+
z,
|
|
115
112
|
{
|
|
116
113
|
onCanPlay: r,
|
|
117
114
|
mode: "onBlur",
|
|
118
|
-
|
|
115
|
+
css: { textAlign: "center" },
|
|
119
116
|
placeholder: "inherit",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
suffix: /* @__PURE__ */ e(g, { onClick: l, children: /* @__PURE__ */ e(p, { source: C }) })
|
|
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 }) })
|
|
124
120
|
}
|
|
125
|
-
) });
|
|
126
|
-
},
|
|
121
|
+
) }) });
|
|
122
|
+
}, y = [
|
|
127
123
|
{
|
|
128
124
|
label: "Block",
|
|
129
125
|
value: "block"
|
|
@@ -152,32 +148,34 @@ const L = [
|
|
|
152
148
|
label: "Inline Grid",
|
|
153
149
|
value: "inline-grid"
|
|
154
150
|
}
|
|
155
|
-
],
|
|
156
|
-
name:
|
|
157
|
-
responsive:
|
|
158
|
-
availableDisplays:
|
|
151
|
+
], Ce = ({
|
|
152
|
+
name: o,
|
|
153
|
+
responsive: d = !1,
|
|
154
|
+
availableDisplays: t,
|
|
159
155
|
onChange: c,
|
|
160
156
|
value: r
|
|
161
157
|
}) => {
|
|
162
|
-
const l =
|
|
163
|
-
c?.({ display:
|
|
158
|
+
const l = m(t) ? y : y.filter((a) => t.includes(a.value)), n = (a) => {
|
|
159
|
+
c?.({ display: a });
|
|
164
160
|
};
|
|
165
|
-
return /* @__PURE__ */ e(f, { name:
|
|
161
|
+
return /* @__PURE__ */ e(f, { name: o ?? "Display", responsive: d, children: /* @__PURE__ */ e(
|
|
166
162
|
J,
|
|
167
163
|
{
|
|
168
|
-
|
|
164
|
+
css: {
|
|
165
|
+
width: "50%"
|
|
166
|
+
},
|
|
169
167
|
placement: "bottom-end",
|
|
170
168
|
placeholder: "default",
|
|
171
169
|
options: l,
|
|
172
170
|
value: r?.display ?? null,
|
|
173
|
-
onChange:
|
|
171
|
+
onChange: n
|
|
174
172
|
}
|
|
175
173
|
) });
|
|
176
|
-
},
|
|
174
|
+
}, Se = ({ value: o, onChange: d, name: t, responsive: c = !1 }) => {
|
|
177
175
|
const r = {
|
|
178
|
-
flexBasis:
|
|
179
|
-
flexGrow:
|
|
180
|
-
flexShrink:
|
|
176
|
+
flexBasis: o?.flexBasis ?? "auto",
|
|
177
|
+
flexGrow: o?.flexGrow ?? 0,
|
|
178
|
+
flexShrink: o?.flexShrink ?? 1
|
|
181
179
|
}, l = [
|
|
182
180
|
{
|
|
183
181
|
label: "Auto fit",
|
|
@@ -197,94 +195,106 @@ const L = [
|
|
|
197
195
|
flexShrink: 1
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
|
-
],
|
|
201
|
-
const x = l.find((
|
|
202
|
-
x &&
|
|
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);
|
|
203
201
|
};
|
|
204
|
-
return /* @__PURE__ */ e(f, { name:
|
|
205
|
-
|
|
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,
|
|
206
204
|
{
|
|
207
|
-
checked:
|
|
208
|
-
value:
|
|
209
|
-
onChange:
|
|
210
|
-
children:
|
|
205
|
+
checked: i.value === n,
|
|
206
|
+
value: i.value,
|
|
207
|
+
onChange: a,
|
|
208
|
+
children: i.label
|
|
211
209
|
},
|
|
212
|
-
|
|
210
|
+
i.value
|
|
213
211
|
)) }) });
|
|
214
|
-
},
|
|
215
|
-
const r =
|
|
216
|
-
|
|
217
|
-
minWidth:
|
|
212
|
+
}, ye = ({ name: o, value: d, onChange: t, responsive: c = !0 }) => {
|
|
213
|
+
const r = M(null), l = (n) => {
|
|
214
|
+
t?.({
|
|
215
|
+
minWidth: n
|
|
218
216
|
});
|
|
219
217
|
};
|
|
220
|
-
return /* @__PURE__ */ e(f, { name:
|
|
221
|
-
|
|
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,
|
|
222
220
|
{
|
|
223
221
|
fullWidth: !0,
|
|
224
222
|
wrapRef: r,
|
|
225
223
|
placeholder: "0",
|
|
226
|
-
value:
|
|
224
|
+
value: d?.minWidth,
|
|
227
225
|
onChange: l,
|
|
228
226
|
defaultValue: {
|
|
229
227
|
"%": 100
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
) }) });
|
|
233
|
-
},
|
|
234
|
-
const [
|
|
235
|
-
|
|
236
|
-
}, l = (
|
|
237
|
-
|
|
238
|
-
...
|
|
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,
|
|
239
237
|
css: {
|
|
240
|
-
...
|
|
241
|
-
...
|
|
238
|
+
...o?.css,
|
|
239
|
+
...n
|
|
242
240
|
}
|
|
243
241
|
});
|
|
244
242
|
};
|
|
245
|
-
return /* @__PURE__ */ e(f, { name: "Text style", children: /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
247
245
|
"button",
|
|
248
246
|
{
|
|
249
|
-
|
|
250
|
-
"tw:w-1/2 tw:h-8 tw:flex tw:items-center tw:gap-2 tw:rounded-md tw:bg-ic-white-1s tw:px-2 tw:text-left tw:truncate tw:text-xs",
|
|
247
|
+
css: [
|
|
251
248
|
{
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
+
],
|
|
255
265
|
children: [
|
|
256
|
-
/* @__PURE__ */ e(
|
|
266
|
+
/* @__PURE__ */ e(b, { css: { color: "white" }, source: A }),
|
|
257
267
|
/* @__PURE__ */ e("span", { children: "Auto" })
|
|
258
268
|
]
|
|
259
269
|
}
|
|
260
270
|
) }),
|
|
261
|
-
/* @__PURE__ */ e(j, { children: /* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */ e("div", {
|
|
264
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
|
|
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 }) }) })
|
|
265
275
|
] }),
|
|
266
|
-
/* @__PURE__ */ e("hr", {
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */ e(
|
|
269
|
-
/* @__PURE__ */ e(
|
|
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 }),
|
|
270
280
|
/* @__PURE__ */ e(
|
|
271
|
-
|
|
281
|
+
B,
|
|
272
282
|
{
|
|
273
283
|
name: "Style",
|
|
274
284
|
value: {
|
|
275
|
-
fontWeight:
|
|
276
|
-
fontStyle:
|
|
277
|
-
textDecorationLine:
|
|
285
|
+
fontWeight: o?.css?.fontWeight,
|
|
286
|
+
fontStyle: o?.css?.fontStyle,
|
|
287
|
+
textDecorationLine: o?.css?.textDecorationLine
|
|
278
288
|
},
|
|
279
289
|
onChange: l
|
|
280
290
|
}
|
|
281
291
|
),
|
|
282
|
-
/* @__PURE__ */ e(
|
|
292
|
+
/* @__PURE__ */ e(O, { value: { fontWeight: o?.css?.fontWeight }, onChange: l }),
|
|
283
293
|
/* @__PURE__ */ e(
|
|
284
|
-
|
|
294
|
+
V,
|
|
285
295
|
{
|
|
286
296
|
value: {
|
|
287
|
-
textTransform:
|
|
297
|
+
textTransform: o?.css?.textTransform
|
|
288
298
|
},
|
|
289
299
|
onChange: l
|
|
290
300
|
}
|
|
@@ -294,43 +304,43 @@ const L = [
|
|
|
294
304
|
] }) });
|
|
295
305
|
};
|
|
296
306
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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,
|
|
311
321
|
ve as FontSizeToolbar,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
|
336
346
|
};
|
|
@@ -5,4 +5,4 @@ export type WbButtonGroupProps<T> = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
|
5
5
|
value?: T;
|
|
6
6
|
defaultValue?: T;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const WbButtonGroup: <T extends string = string>({ children, defaultValue, value, onSelectionChange,
|
|
8
|
+
export declare const WbButtonGroup: <T extends string = string>({ children, defaultValue, value, onSelectionChange, ...props }: WbButtonGroupProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WbDialogBodyProps } from './types';
|
|
2
|
-
export declare const WbDialogBody: ({
|
|
2
|
+
export declare const WbDialogBody: ({ ref, ...props }: WbDialogBodyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { ShallowMerge } from '@janbox/storefront-ui/types';
|
|
|
3
3
|
export type FormLabelProps = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
4
4
|
required?: boolean;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const WbFormLabel: ({ required,
|
|
6
|
+
export declare const WbFormLabel: ({ required, children, ...props }: FormLabelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,6 @@ export type WbInputProps = ShallowMerge<JSX.IntrinsicElements['input'], {
|
|
|
7
7
|
classes?: {
|
|
8
8
|
input?: string;
|
|
9
9
|
main?: string;
|
|
10
|
-
container?: string;
|
|
11
10
|
};
|
|
12
11
|
fullWidth?: boolean;
|
|
13
12
|
value?: string | number;
|
|
@@ -19,4 +18,4 @@ export type WbInputProps = ShallowMerge<JSX.IntrinsicElements['input'], {
|
|
|
19
18
|
helperText?: string;
|
|
20
19
|
selectOnFocus?: boolean;
|
|
21
20
|
}>;
|
|
22
|
-
export declare const WbInput: ({ prefix, suffix, classes,
|
|
21
|
+
export declare const WbInput: ({ prefix, suffix, classes, size, transform, fullWidth, wrapRef, onChange: onChangeProp, mode, debounce, value, ref, error, helperText, selectOnFocus, ...props }: WbInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type EsLoadingOverlayProps = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
|
5
5
|
hideChildrenOnLoading?: boolean;
|
|
6
6
|
size?: number;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const WbLoadingOverlay: ({
|
|
8
|
+
export declare const WbLoadingOverlay: ({ style, children, isLoading, hideChildrenOnLoading, size, ...props }: EsLoadingOverlayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type WbPopoverCloseProps = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
|
5
5
|
event?: keyof HTMLElementEventMap;
|
|
6
6
|
reason?: OpenChangeReason;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const WbPopoverClose: ({ event, reason,
|
|
8
|
+
export declare const WbPopoverClose: ({ event, reason, ref, ...props }: WbPopoverCloseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
export declare const WbTabContent: ({ children,
|
|
2
|
+
export declare const WbTabContent: ({ children, ...props }: JSX.IntrinsicElements["div"]) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { ShallowMerge } from '@janbox/storefront-ui/types';
|
|
3
|
-
export type WbTabListProps = ShallowMerge<JSX.IntrinsicElements['ul'], {
|
|
4
|
-
|
|
5
|
-
}>;
|
|
6
|
-
export declare const WbTabList: ({ className, children, layout, ...props }: WbTabListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type WbTabListProps = ShallowMerge<JSX.IntrinsicElements['ul'], {}>;
|
|
4
|
+
export declare const WbTabList: ({ children, ...props }: WbTabListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
export declare const WbTabPanel: ({
|
|
2
|
+
export declare const WbTabPanel: ({ ...props }: JSX.IntrinsicElements["div"]) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ShallowMerge } from '@janbox/storefront-ui/types';
|
|
3
2
|
export type WbTabProps = ShallowMerge<JSX.IntrinsicElements['li'], {
|
|
4
|
-
|
|
5
|
-
active?: string;
|
|
6
|
-
};
|
|
3
|
+
fill?: boolean;
|
|
7
4
|
}>;
|
|
8
|
-
export declare const WbTab: ({
|
|
5
|
+
export declare const WbTab: ({ fill, ...props }: WbTabProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -4,5 +4,5 @@ type WbTabsProps = ShallowMerge<React.JSX.IntrinsicElements['div'], {
|
|
|
4
4
|
defaultIndex?: number;
|
|
5
5
|
onTabChange?: (tabIndex: number) => void;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const WbTabs: ({ defaultIndex, activeIndex, children, onTabChange,
|
|
7
|
+
export declare const WbTabs: ({ defaultIndex, activeIndex, children, onTabChange, ...props }: WbTabsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|