@kadoui/react 2.1.1 → 2.1.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/dist/react-components/DrawerSheet/DrawerSheet.d.ts +2 -0
- package/dist/react-components/DrawerSheet/DrawerSheet.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/DrawerSheet.js +1 -0
- package/dist/react-components/DrawerSheet/browser.d.ts +8 -0
- package/dist/react-components/DrawerSheet/browser.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/browser.js +27 -0
- package/dist/react-components/DrawerSheet/constants.d.ts +12 -0
- package/dist/react-components/DrawerSheet/constants.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/constants.js +11 -0
- package/dist/react-components/DrawerSheet/context.d.ts +38 -0
- package/dist/react-components/DrawerSheet/context.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/context.js +39 -0
- package/dist/react-components/DrawerSheet/helpers.d.ts +17 -0
- package/dist/react-components/DrawerSheet/helpers.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/helpers.js +97 -0
- package/dist/react-components/DrawerSheet/index.d.ts +147 -0
- package/dist/react-components/DrawerSheet/index.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/index.js +803 -0
- package/dist/react-components/DrawerSheet/types.d.ts +7 -0
- package/dist/react-components/DrawerSheet/types.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/types.js +1 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts +14 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.js +30 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts +9 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.js +41 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts +19 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.js +109 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts +18 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.js +237 -0
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts +2 -0
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-scale-background.js +50 -0
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts +32 -0
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-snap-points.js +200 -0
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts +23 -0
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheet.js +22 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.js +13 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.js +165 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.js +16 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.js +2 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.js +5 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.js +5 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.js +13 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts +15 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.js +75 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.js +130 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.js +11 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts +4 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.js +5 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts +30 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.js +1 -0
- package/dist/react-exports.d.ts +1 -0
- package/dist/react-exports.d.ts.map +1 -1
- package/dist/react-exports.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState, useId } from "react";
|
|
4
|
+
import { usePathname } from "next/navigation";
|
|
5
|
+
import { useMotionValue, useAnimate } from "framer-motion";
|
|
6
|
+
import { getBrowserScrollbarWith } from "../../utils-exports";
|
|
7
|
+
import { DrawerSheetContext } from "./DrawerSheetContext";
|
|
8
|
+
import { useDrawerSheetProvider } from "./DrawerSheetProvider";
|
|
9
|
+
export function DrawerSheetRoot({ children, position = "left", swipeDirection }) {
|
|
10
|
+
const pathname = usePathname();
|
|
11
|
+
const drawerId = useId();
|
|
12
|
+
const provider = useDrawerSheetProvider();
|
|
13
|
+
const y = useMotionValue(0);
|
|
14
|
+
const x = useMotionValue(0);
|
|
15
|
+
const [scope, animate] = useAnimate();
|
|
16
|
+
const [isOpen, setOpen] = useState(false);
|
|
17
|
+
// Determine swipe direction based on position if not explicitly provided
|
|
18
|
+
const resolvedSwipeDirection = swipeDirection || (position === "top" ? "down" :
|
|
19
|
+
position === "bottom" ? "up" :
|
|
20
|
+
position === "right" ? "left" :
|
|
21
|
+
"right");
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const handleEscape = (e) => {
|
|
24
|
+
if (e.key === "Escape") {
|
|
25
|
+
setOpen(false);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
document.addEventListener("keydown", handleEscape);
|
|
29
|
+
return () => {
|
|
30
|
+
document.removeEventListener("keydown", handleEscape);
|
|
31
|
+
document.body.style.overflow = "unset";
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
setOpen(false);
|
|
36
|
+
}, [pathname]);
|
|
37
|
+
// Register/unregister drawer with provider (optional)
|
|
38
|
+
const registerDrawer = provider?.registerDrawer;
|
|
39
|
+
const unregisterDrawer = provider?.unregisterDrawer;
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (!registerDrawer || !unregisterDrawer)
|
|
42
|
+
return;
|
|
43
|
+
registerDrawer(drawerId, isOpen);
|
|
44
|
+
return () => {
|
|
45
|
+
unregisterDrawer(drawerId);
|
|
46
|
+
};
|
|
47
|
+
}, [drawerId, isOpen, registerDrawer, unregisterDrawer]);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const scrollbarWidth = getBrowserScrollbarWith();
|
|
50
|
+
const bodyElem = document.body;
|
|
51
|
+
const removeOverStyles = () => {
|
|
52
|
+
bodyElem.style.overflow = "unset";
|
|
53
|
+
bodyElem.style.paddingRight = "0px";
|
|
54
|
+
};
|
|
55
|
+
// Only lock body scroll if this is the topmost drawer
|
|
56
|
+
const isTopmost = provider ? provider.nestedDrawerCount === (isOpen ? 1 : 0) : isOpen;
|
|
57
|
+
if (isOpen && isTopmost) {
|
|
58
|
+
bodyElem.style.overflow = "hidden";
|
|
59
|
+
bodyElem.style.paddingRight = `${scrollbarWidth}px`;
|
|
60
|
+
}
|
|
61
|
+
else if (!isOpen && provider?.nestedDrawerCount === 0) {
|
|
62
|
+
removeOverStyles();
|
|
63
|
+
}
|
|
64
|
+
return () => {
|
|
65
|
+
if (provider?.nestedDrawerCount === 0) {
|
|
66
|
+
removeOverStyles();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}, [isOpen, provider]);
|
|
70
|
+
const closeHandler = async () => {
|
|
71
|
+
animate(scope.current, {
|
|
72
|
+
opacity: [1, 0],
|
|
73
|
+
});
|
|
74
|
+
const getInitialValue = () => {
|
|
75
|
+
if (position === "top")
|
|
76
|
+
return typeof y.get() === "number" ? y.get() : 0;
|
|
77
|
+
if (position === "bottom")
|
|
78
|
+
return typeof y.get() === "number" ? y.get() : 0;
|
|
79
|
+
if (position === "left")
|
|
80
|
+
return typeof x.get() === "number" ? x.get() : 0;
|
|
81
|
+
if (position === "right")
|
|
82
|
+
return typeof x.get() === "number" ? x.get() : 0;
|
|
83
|
+
return 0;
|
|
84
|
+
};
|
|
85
|
+
const getTargetValue = () => {
|
|
86
|
+
if (position === "top")
|
|
87
|
+
return "-100%";
|
|
88
|
+
if (position === "bottom")
|
|
89
|
+
return "100%";
|
|
90
|
+
if (position === "left")
|
|
91
|
+
return "-100%";
|
|
92
|
+
if (position === "right")
|
|
93
|
+
return "100%";
|
|
94
|
+
return "100%";
|
|
95
|
+
};
|
|
96
|
+
const initialValue = getInitialValue();
|
|
97
|
+
const targetValue = getTargetValue();
|
|
98
|
+
const drawerSelector = `#drawer-sheet-${drawerId}`;
|
|
99
|
+
if (position === "top" || position === "bottom") {
|
|
100
|
+
await animate(drawerSelector, {
|
|
101
|
+
y: [initialValue, targetValue],
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
await animate(drawerSelector, {
|
|
106
|
+
x: [initialValue, targetValue],
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
setOpen(false);
|
|
110
|
+
};
|
|
111
|
+
const hasNestedDrawer = provider ? provider.nestedDrawerCount > (isOpen ? 1 : 0) : false;
|
|
112
|
+
const nestedDrawerCount = provider ? provider.nestedDrawerCount : 0;
|
|
113
|
+
const frontmostHeight = provider?.frontmostHeight || 0;
|
|
114
|
+
const updateDrawerHeight = provider?.updateDrawerHeight;
|
|
115
|
+
return (_jsx(DrawerSheetContext, { value: {
|
|
116
|
+
isOpen,
|
|
117
|
+
setOpen,
|
|
118
|
+
closeHandler,
|
|
119
|
+
scope,
|
|
120
|
+
y,
|
|
121
|
+
x,
|
|
122
|
+
position,
|
|
123
|
+
swipeDirection: resolvedSwipeDirection,
|
|
124
|
+
drawerId,
|
|
125
|
+
hasNestedDrawer,
|
|
126
|
+
nestedDrawerCount,
|
|
127
|
+
frontmostHeight,
|
|
128
|
+
updateDrawerHeight
|
|
129
|
+
}, children: children }));
|
|
130
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerSheetToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/drawer-sheet/DrawerSheetToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,2CAY/E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { DrawerSheetContext } from "./DrawerSheetContext";
|
|
5
|
+
export function DrawerSheetToggle({ onClick, ...props }) {
|
|
6
|
+
const { setOpen } = use(DrawerSheetContext);
|
|
7
|
+
return (_jsx("button", { onClick: ev => {
|
|
8
|
+
onClick?.(ev);
|
|
9
|
+
setOpen(prev => !prev);
|
|
10
|
+
}, ...props }));
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type DrawerSheetViewportPropsT = ComponentProps<"div">;
|
|
3
|
+
export declare function DrawerSheetViewport({ className, ...p }: DrawerSheetViewportPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=DrawerSheetViewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerSheetViewport.d.ts","sourceRoot":"","sources":["../../../src/react-components/drawer-sheet/DrawerSheetViewport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE9D,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,yBAAyB,2CAOjF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AnimationScope, MotionValue, HTMLMotionProps } from "framer-motion";
|
|
2
|
+
import type { ComponentProps, Dispatch, PropsWithChildren, SetStateAction } from "react";
|
|
3
|
+
export type DrawerSheetContextT = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
closeHandler: () => void;
|
|
7
|
+
scope?: AnimationScope<any>;
|
|
8
|
+
y?: MotionValue<number>;
|
|
9
|
+
x?: MotionValue<number>;
|
|
10
|
+
position: "top" | "right" | "bottom" | "left";
|
|
11
|
+
swipeDirection: "up" | "down" | "left" | "right";
|
|
12
|
+
drawerId: string;
|
|
13
|
+
hasNestedDrawer: boolean;
|
|
14
|
+
nestedDrawerCount: number;
|
|
15
|
+
frontmostHeight: number;
|
|
16
|
+
updateDrawerHeight?: (id: string, height: number) => void;
|
|
17
|
+
};
|
|
18
|
+
export type DrawerSheetRootPropsT = PropsWithChildren<{
|
|
19
|
+
position?: "top" | "right" | "bottom" | "left";
|
|
20
|
+
swipeDirection?: "up" | "down" | "left" | "right";
|
|
21
|
+
}>;
|
|
22
|
+
export type DrawerSheetBodyPropsT = HTMLMotionProps<"div">;
|
|
23
|
+
export type DrawerSheetContentPropsT = ComponentProps<"div">;
|
|
24
|
+
export type DrawerSheetHeaderPropsT = ComponentProps<"div">;
|
|
25
|
+
export type DrawerSheetHandlebarPropsT = ComponentProps<"div">;
|
|
26
|
+
export type DrawerSheetTogglePropsT = ComponentProps<"button">;
|
|
27
|
+
export type DrawerSheetPortalPropsT = HTMLMotionProps<"div">;
|
|
28
|
+
export type DrawerSheetViewportPropsT = ComponentProps<"div">;
|
|
29
|
+
export type DrawerSheetBackdropPropsT = HTMLMotionProps<"div">;
|
|
30
|
+
//# sourceMappingURL=drawerSheetTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerSheetTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/drawer-sheet/drawerSheetTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9C,cAAc,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE9D,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/react-exports.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./react-components/ClientOnly/ClientOnly";
|
|
|
7
7
|
export * from "./react-components/Clipboard/Clipboard";
|
|
8
8
|
export * from "./react-components/ContextMenu/ContextMenu";
|
|
9
9
|
export * from "./react-components/Drawer/Drawer";
|
|
10
|
+
export { DrawerSheet } from "./react-components/DrawerSheet/index";
|
|
10
11
|
export * from "./react-components/Modal/Modal";
|
|
11
12
|
export * from "./react-components/Otp/Otp";
|
|
12
13
|
export * from "./react-components/Pagination/Pagination";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-exports.d.ts","sourceRoot":"","sources":["../src/react-exports.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"react-exports.d.ts","sourceRoot":"","sources":["../src/react-exports.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
package/dist/react-exports.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./react-components/ClientOnly/ClientOnly";
|
|
|
7
7
|
export * from "./react-components/Clipboard/Clipboard";
|
|
8
8
|
export * from "./react-components/ContextMenu/ContextMenu";
|
|
9
9
|
export * from "./react-components/Drawer/Drawer";
|
|
10
|
+
export { DrawerSheet } from "./react-components/DrawerSheet/index";
|
|
10
11
|
export * from "./react-components/Modal/Modal";
|
|
11
12
|
export * from "./react-components/Otp/Otp";
|
|
12
13
|
export * from "./react-components/Pagination/Pagination";
|