@loczer/storefront-sdk 0.153.0 → 0.155.0
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/components/BookingPeriodSelector/index.d.ts +1 -1
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +25 -4
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +344 -192
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
- package/dist/components/Footer/businessHoursUtils.js +16 -16
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +68 -63
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +1 -0
- package/dist/index.d.ts +78 -35
- package/dist/index.js +103 -100
- package/dist/lib/checkoutVerifyCoupon.d.ts +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -1
- package/dist/lib/checkoutVerifyCoupon.js +1 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +56 -51
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +16 -14
- package/dist/storefront.css +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +17 -17
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +8 -11
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +52 -86
- package/dist/ui/radio-group.d.ts +10 -7
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +63 -45
- package/dist/ui/select.d.ts +29 -15
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +158 -232
- package/dist/ui/slot.d.ts +3 -7
- package/dist/ui/slot.d.ts.map +1 -1
- package/dist/ui/slot.js +47 -27
- package/dist/ui/theme.d.ts +9 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +24 -0
- package/dist/ui/tooltip.d.ts +30 -13
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +89 -60
- package/package.json +1 -1
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,73 +1,102 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function h({
|
|
13
|
-
delayDuration: o,
|
|
3
|
+
import { Tooltip as n } from "@base-ui/react/tooltip";
|
|
4
|
+
import { cn as s } from "@rpcbase/ui";
|
|
5
|
+
import { Slot as y } from "./slot.js";
|
|
6
|
+
import { useThemeAppearance as h } from "./theme.js";
|
|
7
|
+
const l = d.createContext({
|
|
8
|
+
delayDuration: 0
|
|
9
|
+
});
|
|
10
|
+
function N({
|
|
14
11
|
children: t,
|
|
15
|
-
|
|
12
|
+
delayDuration: e = 0,
|
|
13
|
+
delay: r,
|
|
14
|
+
closeDelay: i
|
|
16
15
|
}) {
|
|
17
|
-
|
|
18
|
-
return o === void 0 ? a : /* @__PURE__ */ i(r.Provider, { delay: o, children: a });
|
|
16
|
+
return /* @__PURE__ */ o(n.Provider, { delay: r ?? e, closeDelay: i, children: t });
|
|
19
17
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
function b({
|
|
19
|
+
delayDuration: t = 0,
|
|
20
|
+
open: e,
|
|
21
|
+
defaultOpen: r = !1,
|
|
22
|
+
onOpenChange: i,
|
|
23
|
+
children: a
|
|
25
24
|
}) {
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
25
|
+
return /* @__PURE__ */ o(l.Provider, { value: { delayDuration: t }, children: /* @__PURE__ */ o(
|
|
26
|
+
n.Root,
|
|
28
27
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
open: e,
|
|
29
|
+
defaultOpen: r,
|
|
30
|
+
onOpenChange: (p) => i?.(p),
|
|
31
|
+
children: a
|
|
32
32
|
}
|
|
33
|
-
);
|
|
33
|
+
) });
|
|
34
34
|
}
|
|
35
|
-
const v = d.forwardRef(
|
|
36
|
-
r
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
const v = d.forwardRef(
|
|
36
|
+
({ asChild: t, delay: e, ...r }, i) => {
|
|
37
|
+
const { delayDuration: a } = d.useContext(l);
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
n.Trigger,
|
|
40
|
+
{
|
|
41
|
+
ref: i,
|
|
42
|
+
delay: e ?? a,
|
|
43
|
+
render: t ? /* @__PURE__ */ o(y, {}) : void 0,
|
|
44
|
+
...r
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
v.displayName = "TooltipTrigger";
|
|
50
|
+
const x = d.forwardRef(
|
|
51
|
+
({
|
|
52
|
+
className: t,
|
|
53
|
+
side: e = "top",
|
|
54
|
+
align: r = "center",
|
|
55
|
+
sideOffset: i = 4,
|
|
56
|
+
disableAnimation: a = !1,
|
|
57
|
+
theme: p,
|
|
58
|
+
container: c,
|
|
59
|
+
positionerClassName: m,
|
|
60
|
+
...f
|
|
61
|
+
}, g) => {
|
|
62
|
+
const u = h(), T = p ?? u;
|
|
63
|
+
return /* @__PURE__ */ o(n.Portal, { container: c, children: /* @__PURE__ */ o(
|
|
64
|
+
n.Positioner,
|
|
45
65
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
side: e,
|
|
67
|
+
align: r,
|
|
68
|
+
sideOffset: i,
|
|
69
|
+
positionMethod: "fixed",
|
|
70
|
+
className: s("z-50", m),
|
|
71
|
+
collisionPadding: 8,
|
|
72
|
+
collisionAvoidance: { side: "flip", align: "shift", fallbackAxisSide: "start" },
|
|
73
|
+
children: /* @__PURE__ */ o(
|
|
74
|
+
n.Popup,
|
|
75
|
+
{
|
|
76
|
+
ref: g,
|
|
77
|
+
role: "tooltip",
|
|
78
|
+
className: s(
|
|
79
|
+
T === "dark" && "dark",
|
|
80
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md",
|
|
81
|
+
a ? "transition-none" : "transition-opacity duration-75 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
82
|
+
"data-[instant]:transition-none",
|
|
83
|
+
t
|
|
84
|
+
),
|
|
85
|
+
...f
|
|
86
|
+
}
|
|
87
|
+
)
|
|
54
88
|
}
|
|
55
|
-
)
|
|
89
|
+
) });
|
|
56
90
|
}
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
const y = r.Arrow;
|
|
91
|
+
);
|
|
92
|
+
x.displayName = "TooltipContent";
|
|
60
93
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
v as
|
|
69
|
-
c as TooltipPortal,
|
|
70
|
-
w as TooltipProvider,
|
|
71
|
-
x as TooltipTrigger,
|
|
72
|
-
x as Trigger
|
|
94
|
+
x as Content,
|
|
95
|
+
N as Provider,
|
|
96
|
+
b as Root,
|
|
97
|
+
b as Tooltip,
|
|
98
|
+
x as TooltipContent,
|
|
99
|
+
N as TooltipProvider,
|
|
100
|
+
v as TooltipTrigger,
|
|
101
|
+
v as Trigger
|
|
73
102
|
};
|