@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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/anchor-target-CtXzdkBu.js +2918 -0
  3. package/dist/{color-picker-popover-B3AVFuei.js → color-picker-popover-XeaVfYS8.js} +104 -80
  4. package/dist/countdown-timer.node-Bh5fTSJ8.js +913 -0
  5. package/dist/date-picker-D9K6HWl-.js +157 -0
  6. package/dist/{dialog-header-DPLOS7TT.js → dialog-header-Bh3Dkw2q.js} +2440 -2122
  7. package/dist/dropzone-CF4CWXth.js +546 -0
  8. package/dist/editor/toolbars.js +171 -161
  9. package/dist/editor/ui/button-group/button-group.d.ts +1 -1
  10. package/dist/editor/ui/dialog/dialog-body/dialog-body.d.ts +1 -1
  11. package/dist/editor/ui/form-label/form-label.d.ts +1 -1
  12. package/dist/editor/ui/input/input.d.ts +1 -2
  13. package/dist/editor/ui/loading-overlay/loading-overlay.d.ts +1 -1
  14. package/dist/editor/ui/popover/popover-close.d.ts +1 -1
  15. package/dist/editor/ui/tabs/tab-content.d.ts +1 -1
  16. package/dist/editor/ui/tabs/tab-list.d.ts +2 -4
  17. package/dist/editor/ui/tabs/tab-panel.d.ts +1 -1
  18. package/dist/editor/ui/tabs/tab.d.ts +2 -5
  19. package/dist/editor/ui/tabs/tabs.d.ts +1 -1
  20. package/dist/editor/ui.js +82 -72
  21. package/dist/editor.js +822 -586
  22. package/dist/index-800HnUOi.js +4 -0
  23. package/dist/{index-CwrFnubn.js → index-CXyljfMv.js} +1729 -1584
  24. package/dist/index.js +287 -247
  25. package/dist/style.css +1 -1
  26. package/dist/templates.js +10 -12
  27. package/dist/theme/index.d.ts +293 -0
  28. package/dist/tooltip-CXOlTkGg.js +75 -0
  29. package/dist/utils/common.d.ts +0 -2
  30. package/package.json +1 -2
  31. package/dist/anchor-target-BlOvysAr.js +0 -2329
  32. package/dist/countdown-timer.node-OmDiT-pz.js +0 -825
  33. package/dist/date-picker-B4Rju7gG.js +0 -115
  34. package/dist/dropzone-Dbfed3jK.js +0 -490
  35. package/dist/index-BbiQ0n_-.js +0 -4
  36. package/dist/tooltip-KbIHELP2.js +0 -65
package/dist/editor/ui.js CHANGED
@@ -1,110 +1,120 @@
1
- import { a as b, b as i, u as n, c as o } from "../dialog-header-DPLOS7TT.js";
2
- import { d as D, e as F, f as P, g as k, h as I, i as y, j as L, k as B, W as S, l as j, m as M, n as z, o as O, p as V, q as E, r as G, s as _, t as q, v as A, w as H, x as R } from "../dialog-header-DPLOS7TT.js";
3
- import { W } from "../dropzone-Dbfed3jK.js";
4
- import { a as Z, b as J, c as K, d as Q, e as U, f as Y, g as $, h as tt, i as et, j as at, k as st, l as ot, m as lt } from "../dropzone-Dbfed3jK.js";
5
- import { W as bt } from "../tooltip-KbIHELP2.js";
6
- import { jsx as e, jsxs as l } from "@emotion/react/jsx-runtime";
7
- import { FLOATING_Z_INDEX as w } from "@janbox/storefront-ui/theme";
8
- import "lodash-es";
9
- import { isValidElement as m } from "react";
10
- import { W as nt } from "../date-picker-B4Rju7gG.js";
11
- const g = ({ width: a = 600, children: s, ...t }) => /* @__PURE__ */ e(
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
- ...t,
18
- children: /* @__PURE__ */ l(
19
- i,
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: w
25
+ zIndex: W
27
26
  }
28
27
  },
29
- className: "tw:max-h-full tw:max-w-full tw:overflow-hidden tw:flex tw:flex-col",
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
- className: "tw:fixed tw:inset-0 tw:bg-black tw:bg-opacity-40 tw:pointer-events-none"
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
- className: "tw:max-w-full tw:overflow-hidden tw:flex tw:flex-col tw:rounded-lg tw:py-2 tw:relative tw:bg-ic-ink-6s tw:text-white",
47
- children: s
57
+ children: o
48
58
  }
49
59
  )
50
60
  ]
51
61
  }
52
62
  )
53
63
  }
54
- ), v = () => n(), C = ({ className: a, ref: s, ...t }) => /* @__PURE__ */ e(
55
- W,
64
+ ), f = () => n(), v = ({ ref: a, ...o }) => /* @__PURE__ */ e(
65
+ b,
56
66
  {
57
- className: o("tw:flex-1 tw:overflow-auto tw:py-3 tw:px-4 tw:sm:px-5 tw:text-xs", a),
58
- ...t,
59
- ref: s
67
+ css: { paddingBlock: 12, paddingInline: 20, flex: 1, overflow: "auto", ...t.text.xs },
68
+ ...o,
69
+ ref: a
60
70
  }
61
- ), N = ({ required: a, className: s, children: t, ...r }) => /* @__PURE__ */ l("div", { className: o("tw:mb-1.5 tw:flex tw:w-fit", s), ...r, children: [
62
- m(t) ? t : /* @__PURE__ */ e("label", { children: t }),
63
- a && /* @__PURE__ */ e("span", { className: "tw:text-ic-red-6s", children: " *" })
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
- Z as WbButtonGroup,
68
- F as WbCollapse,
69
- P as WbColorPicker,
70
- nt as WbDatePicker,
71
- g as WbDialog,
72
- C as WbDialogBody,
73
- k as WbDialogClose,
74
- I as WbDialogFooter,
75
- y as WbDialogHeader,
76
- J as WbDropzone,
77
- b as WbFloating,
78
- L as WbFloatingClose,
79
- i as WbFloatingContent,
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
- N as WbFormLabel,
82
- S as WbIcon,
83
- j as WbIconButton,
84
- M as WbInput,
85
- K as WbInputNumber,
86
- Q as WbLoadingOverlay,
87
- U as WbMenu,
88
- z as WbMenuItem,
89
- O as WbMenuList,
90
- V as WbMenuTrigger,
91
- E as WbPopover,
92
- Y as WbPopoverClose,
93
- G as WbPopoverContent,
94
- _ as WbPopoverTrigger,
95
- q as WbRadioButton,
96
- W as WbScrollView,
97
- $ as WbSelect,
98
- A as WbSvgLoader,
99
- H as WbSwitch,
100
- tt as WbTab,
101
- et as WbTabContent,
102
- at as WbTabList,
103
- st as WbTabPanel,
104
- ot as WbTabs,
105
- R as WbTextarea,
106
- bt as WbTooltip,
107
- lt as WbVirtualizedList,
108
- v as useDialogContext,
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
  };