@jamsrui/drawer 0.0.4 → 0.0.6
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/drawer-close-button.d.mts +2 -2
- package/dist/drawer-close-button.mjs +1 -1
- package/dist/drawer-config.d.mts +3 -2
- package/dist/drawer-content.d.mts +2 -2
- package/dist/drawer-content.mjs +1 -1
- package/dist/drawer-context.d.mts +1 -0
- package/dist/drawer.d.mts +3 -2
- package/dist/drawer.mjs +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/use-drawer.d.mts +1 -0
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { IconButton } from '@jamsrui/icon-button';
|
|
3
3
|
|
|
4
|
-
declare const DrawerCloseButton: (props: DrawerCloseButton.Props) =>
|
|
4
|
+
declare const DrawerCloseButton: (props: DrawerCloseButton.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace DrawerCloseButton {
|
|
6
6
|
interface Props extends Partial<IconButton.Props> {
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IconButton as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{IconButton as r}from"@jamsrui/icon-button";import{CloseIcon as n}from"@jamsrui/icons";import{useDrawerContext as s}from"./drawer-context";const c=t=>{const{getCloseButtonProps:e}=s();return o(r,{label:"Close Drawer",...e(t),children:o(n,{className:"size-4"})})};export{c as DrawerCloseButton};
|
package/dist/drawer-config.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
3
3
|
import { Drawer } from './drawer.mjs';
|
|
4
4
|
import './use-drawer.mjs';
|
|
5
5
|
import '@floating-ui/react';
|
|
6
6
|
import '@jamsrui/utils';
|
|
7
7
|
import './drawer-body.mjs';
|
|
8
|
+
import 'react';
|
|
8
9
|
import './drawer-close-button.mjs';
|
|
9
10
|
import '@jamsrui/icon-button';
|
|
10
11
|
import './drawer-content.mjs';
|
|
@@ -18,7 +19,7 @@ import 'tailwind-variants';
|
|
|
18
19
|
declare const useDrawerConfig: () => DrawerConfig.Props;
|
|
19
20
|
declare const DrawerConfig: (props: DrawerConfig.Props & {
|
|
20
21
|
merge?: boolean;
|
|
21
|
-
}) =>
|
|
22
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
22
23
|
declare namespace DrawerConfig {
|
|
23
24
|
interface Props extends Drawer.Props, GlobalConfigProps<Drawer.Props> {
|
|
24
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { HTMLMotionProps } from 'motion/react';
|
|
3
3
|
|
|
4
|
-
declare const DrawerContent: (props: DrawerContent.Props) =>
|
|
4
|
+
declare const DrawerContent: (props: DrawerContent.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace DrawerContent {
|
|
6
6
|
interface Props extends Omit<HTMLMotionProps<"div">, "children"> {
|
|
7
7
|
children: React.ReactNode;
|
package/dist/drawer-content.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FloatingOverlay as
|
|
1
|
+
import{jsx as o,jsxs as f}from"react/jsx-runtime";import{FloatingOverlay as p,FloatingPortal as m}from"@floating-ui/react";import{AnimatePresence as l,motion as s}from"motion/react";import{DrawerCloseButton as c}from"./drawer-close-button";import{useDrawerContext as P}from"./drawer-context";import{DrawerPopover as d}from"./drawer-popover";const h=r=>{const{children:e}=r,{getContentProps:t,isOpen:n,getBackdropProps:i,hideCloseButton:a}=P();return o(l,{children:n?o(m,{children:o(p,{...i(),children:o(d,{children:f(s.div,{...t(r),children:[!a&&o(c,{}),e]})})})}):null})};export{h as DrawerContent};
|
package/dist/drawer.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { useDrawer } from './use-drawer.mjs';
|
|
3
3
|
import '@floating-ui/react';
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './drawer-body.mjs';
|
|
6
|
+
import 'react';
|
|
6
7
|
import './drawer-close-button.mjs';
|
|
7
8
|
import '@jamsrui/icon-button';
|
|
8
9
|
import './drawer-content.mjs';
|
|
@@ -13,7 +14,7 @@ import './drawer-popover.mjs';
|
|
|
13
14
|
import './styles.mjs';
|
|
14
15
|
import 'tailwind-variants';
|
|
15
16
|
|
|
16
|
-
declare const Drawer: (props: Drawer.Props) =>
|
|
17
|
+
declare const Drawer: (props: Drawer.Props) => react_jsx_runtime.JSX.Element;
|
|
17
18
|
declare namespace Drawer {
|
|
18
19
|
interface Props extends useDrawer.Props {
|
|
19
20
|
children: React.ReactNode;
|
package/dist/drawer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeConfigProps as a}from"@jamsrui/utils";import{useDrawerConfig as s}from"./drawer-config";import{DrawerContext as c}from"./drawer-context";import{useDrawer as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import{mergeConfigProps as a}from"@jamsrui/utils";import{useDrawerConfig as s}from"./drawer-config";import{DrawerContext as c}from"./drawer-context";import{useDrawer as p}from"./use-drawer";const x=r=>{const{children:o}=r,e=s(),t=a(e,e,r),n=p(t);return m(c,{value:n,children:o})};export{x as Drawer};
|
package/dist/index.d.mts
CHANGED
|
@@ -7,11 +7,12 @@ export { DrawerContent } from './drawer-content.mjs';
|
|
|
7
7
|
export { DrawerFooter } from './drawer-footer.mjs';
|
|
8
8
|
export { DrawerHeader } from './drawer-header.mjs';
|
|
9
9
|
export { DrawerTrigger } from './drawer-trigger.mjs';
|
|
10
|
-
import 'react';
|
|
10
|
+
import 'react/jsx-runtime';
|
|
11
11
|
import './use-drawer.mjs';
|
|
12
12
|
import '@floating-ui/react';
|
|
13
13
|
import '@jamsrui/utils';
|
|
14
14
|
import './drawer-popover.mjs';
|
|
15
|
+
import 'react';
|
|
15
16
|
import './styles.mjs';
|
|
16
17
|
import 'tailwind-variants';
|
|
17
18
|
import '@jamsrui/icon-button';
|
package/dist/use-drawer.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ import { DrawerHeader } from './drawer-header.mjs';
|
|
|
8
8
|
import { DrawerPopover } from './drawer-popover.mjs';
|
|
9
9
|
import { DrawerVariants, DrawerSlots } from './styles.mjs';
|
|
10
10
|
import 'react';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
11
12
|
import '@jamsrui/icon-button';
|
|
12
13
|
import 'motion/react';
|
|
13
14
|
import 'tailwind-variants';
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/drawer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/react": ">=0.27",
|
|
10
|
-
"@jamsrui/hooks": "^0.0.
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
13
|
-
"@jamsrui/icons": "^0.0.
|
|
14
|
-
"@jamsrui/utils": "^0.0.
|
|
10
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
11
|
+
"@jamsrui/core": "^0.0.6",
|
|
12
|
+
"@jamsrui/icon-button": "^0.0.6",
|
|
13
|
+
"@jamsrui/icons": "^0.0.6",
|
|
14
|
+
"@jamsrui/utils": "^0.0.6"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|