@janbox/storefront-builder 1.0.1 → 1.0.3
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/countdown-timer.node-CAsCNVin.js +2718 -0
- package/dist/editor.js +886 -560
- package/dist/index-BxuniYfy.js +4 -0
- package/dist/{index-CY7cmOMU.js → index-DrJkOkbq.js} +2028 -2233
- package/dist/index.js +3197 -12647
- package/dist/style.css +1 -1
- package/dist/templates.js +342 -22011
- package/dist/tooltip-CqfT80iK.js +65 -0
- package/package.json +2 -2
- package/dist/countdown-timer.node-CTPWHLr7.js +0 -4374
- package/dist/index-Rgu55m54.js +0 -4
- package/dist/tooltip-BKdjtgjO.js +0 -63
package/dist/index-Rgu55m54.js
DELETED
package/dist/tooltip-BKdjtgjO.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { j as y, a as o, c as j } from "./countdown-timer.node-CTPWHLr7.js";
|
|
2
|
-
import { useRef as C, isValidElement as E, cloneElement as I, Fragment as N } from "react";
|
|
3
|
-
import { useFloating as O, autoUpdate as P, flip as V, offset as k, size as z, arrow as D, useHover as M, safePolygon as S, useFocus as T, useDismiss as W, useRole as _, useInteractions as A, useMergeRefs as G, FloatingPortal as H } from "@floating-ui/react";
|
|
4
|
-
import { get as L } from "lodash-es";
|
|
5
|
-
import { u as U, F as X } from "./index-CY7cmOMU.js";
|
|
6
|
-
const K = ({ placement: c = "top", open: f, onOpenChange: m, children: e, content: u }) => {
|
|
7
|
-
const [l, d] = U({
|
|
8
|
-
defaultValue: !1,
|
|
9
|
-
value: f
|
|
10
|
-
}), p = C(null), g = (s, n, R) => {
|
|
11
|
-
d(s), m?.(s, n, R);
|
|
12
|
-
}, { refs: a, floatingStyles: w, context: t } = O({
|
|
13
|
-
open: l,
|
|
14
|
-
onOpenChange: g,
|
|
15
|
-
placement: c,
|
|
16
|
-
middleware: [
|
|
17
|
-
V(),
|
|
18
|
-
k(4),
|
|
19
|
-
z({
|
|
20
|
-
apply({ elements: s }) {
|
|
21
|
-
const n = {
|
|
22
|
-
zIndex: `${X}`
|
|
23
|
-
};
|
|
24
|
-
Object.assign(s.floating.style, n);
|
|
25
|
-
}
|
|
26
|
-
}),
|
|
27
|
-
D({ element: p })
|
|
28
|
-
],
|
|
29
|
-
whileElementsMounted: P
|
|
30
|
-
}), b = M(t, { move: !1, handleClose: S() }), h = T(t), v = W(t, {}), F = _(t, {
|
|
31
|
-
role: "tooltip"
|
|
32
|
-
}), { getReferenceProps: i, getFloatingProps: x } = A([b, h, v, F]), r = G([a.setReference, L(e, "ref")]);
|
|
33
|
-
return /* @__PURE__ */ y(N, { children: [
|
|
34
|
-
E(e) ? I(
|
|
35
|
-
e,
|
|
36
|
-
i({
|
|
37
|
-
...e.props ?? {},
|
|
38
|
-
ref: r
|
|
39
|
-
})
|
|
40
|
-
) : /* @__PURE__ */ o("div", { ...i(), ref: r, children: e }),
|
|
41
|
-
l && /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
style: w,
|
|
45
|
-
...x(),
|
|
46
|
-
className: "tw:bg-ic-ink-6s tw:rounded-lg",
|
|
47
|
-
ref: a.setFloating,
|
|
48
|
-
children: /* @__PURE__ */ o(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
className: j(
|
|
52
|
-
"tw:focus-visible:outline-none tw:rounded-lg tw:p-2 tw:shadow tw:animate-fade tw:animate-duration-300 tw:bg-ic-ink-6s tw:border tw:border-ic-white-1s tw:text-ic-white-6s tw:text-xs"
|
|
53
|
-
),
|
|
54
|
-
children: u
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
) })
|
|
59
|
-
] });
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
K as W
|
|
63
|
-
};
|