@loczer/storefront-sdk 0.242.0 → 0.243.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/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +2 -1
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/lib/checkoutSubmit.d.ts +4 -0
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +16 -8
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +199 -199
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPaymentPage.js +168 -167
- package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -1
- package/dist/pages/CheckoutSuccessPage.js +37 -25
- package/dist/storefront.css +1 -1
- package/dist/ui/drawer.d.ts +12 -13
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +119 -143
- package/package.json +1 -1
package/dist/ui/drawer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
type DrawerDirection = "top" | "bottom" | "left" | "right";
|
|
3
4
|
type DrawerProps = {
|
|
@@ -15,26 +16,24 @@ type DrawerProps = {
|
|
|
15
16
|
lockScroll?: boolean;
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
};
|
|
18
|
-
declare function Drawer({ open
|
|
19
|
-
|
|
19
|
+
declare function Drawer({ open, defaultOpen, onOpenChange, direction, children, modal, dismissible, fixed: _fixed, repositionInputs: _repositionInputs, snapPoints, activeSnapPoint, setActiveSnapPoint, lockScroll, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
type DrawerTriggerProps = DrawerPrimitive.Trigger.Props & {
|
|
20
21
|
asChild?: boolean;
|
|
21
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
-
type DrawerPortalProps = {
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
container?: HTMLElement | null;
|
|
25
22
|
};
|
|
26
|
-
declare
|
|
27
|
-
declare
|
|
23
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<Omit<DrawerTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare function DrawerPortal(props: React.ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
type DrawerCloseProps = DrawerPrimitive.Close.Props & {
|
|
28
26
|
asChild?: boolean;
|
|
29
|
-
}
|
|
30
|
-
declare const
|
|
27
|
+
};
|
|
28
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<Omit<DrawerCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').DrawerBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "render"> & {
|
|
31
30
|
onPointerDownOutside?: (event: {
|
|
32
31
|
detail: {
|
|
33
32
|
originalEvent: PointerEvent;
|
|
34
33
|
};
|
|
35
34
|
}) => void;
|
|
36
35
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<React.
|
|
36
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').DrawerPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "render"> & {
|
|
38
37
|
closeButtonClassName?: string;
|
|
39
38
|
closeButtonTestId?: string;
|
|
40
39
|
closeLabel?: string;
|
|
@@ -47,7 +46,7 @@ declare const DrawerContent: React.ForwardRefExoticComponent<React.HTMLAttribute
|
|
|
47
46
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
48
47
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
49
48
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
declare const DrawerTitle: React.ForwardRefExoticComponent<
|
|
51
|
-
declare const DrawerDescription: React.ForwardRefExoticComponent<
|
|
49
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
50
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
52
51
|
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
53
52
|
//# sourceMappingURL=drawer.d.ts.map
|
package/dist/ui/drawer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAKjE,KAAK,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAW1D,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,SAAoB,EACpB,QAAQ,EACR,KAAY,EACZ,WAAkB,EAClB,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,iBAAiB,EACnC,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,UAAiB,GAClB,EAAE,WAAW,2CAgCb;AAED,KAAK,kBAAkB,GAAG,eAAe,CAAC,OAAO,CAAC,KAAK,GAAG;IACxD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,aAAa,2GAWlB,CAAA;AAGD,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAE/E;AAED,KAAK,gBAAgB,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,GAAG;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW,yGAWhB,CAAA;AAUD,QAAA,MAAM,aAAa;2BAHM,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,aAAa,EAAE,YAAY,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI;wCA2BpF,CAAA;AAcD,QAAA,MAAM,aAAa;2BAPM,MAAM;wBACT,MAAM;iBACb,MAAM;2BACI,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,aAAa,EAAE,YAAY,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI;sBACjE,OAAO;wCAoEzB,CAAA;AAGF,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQzE;AAED,QAAA,MAAM,WAAW,mIAUf,CAAA;AAGF,QAAA,MAAM,iBAAiB,2IAUrB,CAAA;AAGF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAA"}
|
package/dist/ui/drawer.js
CHANGED
|
@@ -1,165 +1,141 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { X as o } from "lucide-react";
|
|
7
|
-
import { createPortal as s } from "react-dom";
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { cn as r } from "@rpcbase/ui";
|
|
4
|
+
import { X as i } from "lucide-react";
|
|
5
|
+
import { Drawer as a } from "@base-ui/react/drawer";
|
|
8
6
|
//#region src/ui/drawer.tsx
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (!x || !g || typeof document > "u") return;
|
|
18
|
-
let e = document.body.style.overflow;
|
|
19
|
-
return document.body.style.overflow = "hidden", () => {
|
|
20
|
-
document.body.style.overflow = e;
|
|
21
|
-
};
|
|
22
|
-
}, [g, x]), n.useEffect(() => {
|
|
23
|
-
if (b) {
|
|
24
|
-
S(!0);
|
|
7
|
+
var o = e.createContext("bottom");
|
|
8
|
+
function s(e) {
|
|
9
|
+
return e === "top" ? "up" : e === "left" ? "left" : e === "right" ? "right" : "down";
|
|
10
|
+
}
|
|
11
|
+
function c({ open: e, defaultOpen: n = !1, onOpenChange: r, direction: i = "bottom", children: c, modal: l = !0, dismissible: u = !0, fixed: d, repositionInputs: f, snapPoints: p, activeSnapPoint: m, setActiveSnapPoint: h, lockScroll: g = !0 }) {
|
|
12
|
+
let _ = (e, t) => {
|
|
13
|
+
if (!e && !u && t.reason !== "close-press") {
|
|
14
|
+
t.cancel();
|
|
25
15
|
return;
|
|
26
16
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
children: o
|
|
17
|
+
r?.(e);
|
|
18
|
+
}, v = l && !g ? "trap-focus" : l;
|
|
19
|
+
return /* @__PURE__ */ t(o.Provider, {
|
|
20
|
+
value: i,
|
|
21
|
+
children: /* @__PURE__ */ t(a.Root, {
|
|
22
|
+
open: e,
|
|
23
|
+
defaultOpen: n,
|
|
24
|
+
onOpenChange: _,
|
|
25
|
+
modal: v,
|
|
26
|
+
disablePointerDismissal: !u,
|
|
27
|
+
swipeDirection: s(i),
|
|
28
|
+
snapPoints: p,
|
|
29
|
+
snapPoint: m,
|
|
30
|
+
onSnapPointChange: (e) => h?.(e),
|
|
31
|
+
children: c
|
|
32
|
+
})
|
|
44
33
|
});
|
|
45
34
|
}
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
f.displayName = "DrawerTrigger";
|
|
58
|
-
function p({ children: e, container: i }) {
|
|
59
|
-
let { open: a, present: o, modal: c } = u(), [l, d] = n.useState(!1), f = n.useRef(null);
|
|
60
|
-
return n.useEffect(() => {
|
|
61
|
-
d(!0);
|
|
62
|
-
}, []), t(a && l && c, f), !o || !l || typeof document > "u" ? null : s(/* @__PURE__ */ r("div", {
|
|
63
|
-
ref: f,
|
|
35
|
+
var l = e.forwardRef(({ asChild: n, children: r, ...i }, o) => /* @__PURE__ */ t(a.Trigger, {
|
|
36
|
+
ref: o,
|
|
37
|
+
"data-slot": "drawer-trigger",
|
|
38
|
+
render: n && e.isValidElement(r) ? r : void 0,
|
|
39
|
+
...i,
|
|
40
|
+
children: n ? void 0 : r
|
|
41
|
+
}));
|
|
42
|
+
l.displayName = "DrawerTrigger";
|
|
43
|
+
function u(e) {
|
|
44
|
+
return /* @__PURE__ */ t(a.Portal, {
|
|
64
45
|
"data-slot": "drawer-portal",
|
|
65
|
-
|
|
66
|
-
}), i ?? document.body);
|
|
67
|
-
}
|
|
68
|
-
var m = n.forwardRef(({ asChild: t, onClick: n, ...i }, a) => {
|
|
69
|
-
let { setOpen: o } = u();
|
|
70
|
-
return /* @__PURE__ */ r(t ? e : "button", {
|
|
71
|
-
ref: a,
|
|
72
|
-
"data-slot": "drawer-close",
|
|
73
|
-
onClick: (e) => {
|
|
74
|
-
n?.(e), e.defaultPrevented || o(!1);
|
|
75
|
-
},
|
|
76
|
-
...i
|
|
46
|
+
...e
|
|
77
47
|
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
48
|
+
}
|
|
49
|
+
var d = e.forwardRef(({ asChild: n, children: r, ...i }, o) => /* @__PURE__ */ t(a.Close, {
|
|
50
|
+
ref: o,
|
|
51
|
+
"data-slot": "drawer-close",
|
|
52
|
+
render: n && e.isValidElement(r) ? r : void 0,
|
|
53
|
+
...i,
|
|
54
|
+
children: n ? void 0 : r
|
|
55
|
+
}));
|
|
56
|
+
d.displayName = "DrawerClose";
|
|
57
|
+
var f = e.forwardRef(({ className: e, onPointerDown: n, onPointerDownOutside: i, ...o }, s) => /* @__PURE__ */ t(a.Backdrop, {
|
|
58
|
+
ref: s,
|
|
59
|
+
"data-slot": "drawer-overlay",
|
|
60
|
+
className: r("pointer-events-auto fixed inset-0 z-50 bg-black/50 outline-none duration-200 data-[open]:animate-in data-[closed]:pointer-events-none data-[closed]:animate-out data-[closed]:fill-mode-forwards data-[closed]:fade-out-0 data-[open]:fade-in-0", e),
|
|
61
|
+
onPointerDown: (e) => {
|
|
62
|
+
n?.(e), e.defaultPrevented || i?.({ detail: { originalEvent: e.nativeEvent } });
|
|
63
|
+
},
|
|
64
|
+
render: (e, n) => /* @__PURE__ */ t("div", {
|
|
65
|
+
...e,
|
|
66
|
+
"data-state": n.open ? "open" : "closed"
|
|
67
|
+
}),
|
|
68
|
+
...o
|
|
69
|
+
}));
|
|
70
|
+
f.displayName = "DrawerOverlay";
|
|
71
|
+
var p = e.forwardRef(({ className: s, children: c, closeButtonClassName: l, closeButtonTestId: p = "drawer-close", closeLabel: m = "Close", onPointerDownOutside: h, showCloseButton: g = !1, ..._ }, v) => {
|
|
72
|
+
let y = e.useContext(o);
|
|
73
|
+
return /* @__PURE__ */ n(u, { children: [/* @__PURE__ */ t(f, { onPointerDownOutside: h }), /* @__PURE__ */ t(a.Viewport, {
|
|
74
|
+
className: "pointer-events-none fixed inset-0 z-50",
|
|
75
|
+
children: /* @__PURE__ */ n(a.Popup, {
|
|
76
|
+
ref: v,
|
|
77
|
+
"data-slot": "drawer-content",
|
|
78
|
+
"data-drawer-direction": y,
|
|
79
|
+
"data-vaul-drawer-direction": y,
|
|
80
|
+
className: r("group/drawer-content bg-background pointer-events-auto fixed z-50 flex h-auto flex-col duration-200 outline-none data-[open]:animate-in data-[closed]:pointer-events-none data-[closed]:animate-out data-[closed]:fill-mode-forwards data-[closed]:fade-out-0 data-[open]:fade-in-0", y === "top" && "inset-x-0 top-0 mb-24 max-h-[80vh] rounded-b-lg border-b data-[open]:slide-in-from-top data-[closed]:slide-out-to-top", y === "bottom" && "inset-x-0 bottom-0 max-h-[95dvh] rounded-t-lg border-t data-[open]:slide-in-from-bottom data-[closed]:slide-out-to-bottom", y === "right" && "inset-y-0 right-0 w-3/4 border-l data-[open]:slide-in-from-right data-[closed]:slide-out-to-right sm:max-w-sm", y === "left" && "inset-y-0 left-0 w-3/4 border-r data-[open]:slide-in-from-left data-[closed]:slide-out-to-left sm:max-w-sm", s),
|
|
81
|
+
render: (e, n) => /* @__PURE__ */ t("div", {
|
|
82
|
+
...e,
|
|
83
|
+
"data-state": n.open ? "open" : "closed"
|
|
84
|
+
}),
|
|
85
|
+
..._,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ t("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[drawer-direction=bottom]/drawer-content:block" }),
|
|
88
|
+
g ? /* @__PURE__ */ t(d, {
|
|
89
|
+
asChild: !0,
|
|
90
|
+
children: /* @__PURE__ */ t("button", {
|
|
91
|
+
type: "button",
|
|
92
|
+
className: r("absolute right-4 top-2 z-20 flex size-10 items-center justify-center rounded-full bg-background/90 text-muted-foreground shadow-sm ring-1 ring-border backdrop-blur-sm transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", l),
|
|
93
|
+
"aria-label": m,
|
|
94
|
+
"data-testid": p,
|
|
95
|
+
onClick: (e) => e.stopPropagation(),
|
|
96
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
97
|
+
children: /* @__PURE__ */ t(i, {
|
|
98
|
+
className: "size-5",
|
|
99
|
+
"aria-hidden": "true"
|
|
100
|
+
})
|
|
128
101
|
})
|
|
102
|
+
}) : null,
|
|
103
|
+
/* @__PURE__ */ t(a.Content, {
|
|
104
|
+
className: "contents",
|
|
105
|
+
children: c
|
|
129
106
|
})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
]
|
|
107
|
+
]
|
|
108
|
+
})
|
|
133
109
|
})] });
|
|
134
110
|
});
|
|
135
|
-
|
|
136
|
-
function
|
|
137
|
-
return /* @__PURE__ */
|
|
111
|
+
p.displayName = "DrawerContent";
|
|
112
|
+
function m({ className: e, ...n }) {
|
|
113
|
+
return /* @__PURE__ */ t("div", {
|
|
138
114
|
"data-slot": "drawer-header",
|
|
139
|
-
className:
|
|
140
|
-
...
|
|
115
|
+
className: r("flex flex-col gap-0.5 p-4 group-data-[drawer-direction=bottom]/drawer-content:text-center group-data-[drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
|
|
116
|
+
...n
|
|
141
117
|
});
|
|
142
118
|
}
|
|
143
|
-
function
|
|
144
|
-
return /* @__PURE__ */
|
|
119
|
+
function h({ className: e, ...n }) {
|
|
120
|
+
return /* @__PURE__ */ t("div", {
|
|
145
121
|
"data-slot": "drawer-footer",
|
|
146
|
-
className:
|
|
147
|
-
...
|
|
122
|
+
className: r("mt-auto flex flex-col gap-2 p-4", e),
|
|
123
|
+
...n
|
|
148
124
|
});
|
|
149
125
|
}
|
|
150
|
-
var
|
|
151
|
-
ref:
|
|
126
|
+
var g = e.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ t(a.Title, {
|
|
127
|
+
ref: i,
|
|
152
128
|
"data-slot": "drawer-title",
|
|
153
|
-
className:
|
|
154
|
-
...
|
|
129
|
+
className: r("text-foreground font-semibold", e),
|
|
130
|
+
...n
|
|
155
131
|
}));
|
|
156
|
-
|
|
157
|
-
var
|
|
158
|
-
ref:
|
|
132
|
+
g.displayName = "DrawerTitle";
|
|
133
|
+
var _ = e.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ t(a.Description, {
|
|
134
|
+
ref: i,
|
|
159
135
|
"data-slot": "drawer-description",
|
|
160
|
-
className:
|
|
161
|
-
...
|
|
136
|
+
className: r("text-muted-foreground text-sm", e),
|
|
137
|
+
...n
|
|
162
138
|
}));
|
|
163
|
-
|
|
139
|
+
_.displayName = "DrawerDescription";
|
|
164
140
|
//#endregion
|
|
165
|
-
export {
|
|
141
|
+
export { c as Drawer, d as DrawerClose, p as DrawerContent, _ as DrawerDescription, h as DrawerFooter, m as DrawerHeader, f as DrawerOverlay, u as DrawerPortal, g as DrawerTitle, l as DrawerTrigger };
|