@jamsrui/drawer 0.0.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.
Files changed (84) hide show
  1. package/README.md +40 -0
  2. package/dist/chunk-5LGURIDY.js +1 -0
  3. package/dist/chunk-6XYRR3IV.mjs +1 -0
  4. package/dist/chunk-BP77MJVR.mjs +1 -0
  5. package/dist/chunk-DIVLCNEY.js +1 -0
  6. package/dist/chunk-EBAXPVZK.js +1 -0
  7. package/dist/chunk-FLLYJJRJ.mjs +1 -0
  8. package/dist/chunk-GUMSFI7G.mjs +1 -0
  9. package/dist/chunk-IEFAZ5FA.js +1 -0
  10. package/dist/chunk-ILBTUKZ5.mjs +1 -0
  11. package/dist/chunk-KNT3NBAB.mjs +1 -0
  12. package/dist/chunk-KWIHRWXQ.mjs +1 -0
  13. package/dist/chunk-L4VK5JCO.js +1 -0
  14. package/dist/chunk-LJQ6DDUH.js +1 -0
  15. package/dist/chunk-LVXR3WXC.mjs +1 -0
  16. package/dist/chunk-MIPPECRL.mjs +1 -0
  17. package/dist/chunk-ND7OMDLN.js +1 -0
  18. package/dist/chunk-PNQ3EGNQ.js +1 -0
  19. package/dist/chunk-RD4N3HAN.js +1 -0
  20. package/dist/chunk-SOXQFYXF.mjs +1 -0
  21. package/dist/chunk-UM7Z4GKN.mjs +1 -0
  22. package/dist/chunk-VIEG7KXL.js +1 -0
  23. package/dist/chunk-WBBF5BOV.mjs +1 -0
  24. package/dist/chunk-X6T6A5NL.mjs +1 -0
  25. package/dist/chunk-YIBRX4K7.js +1 -0
  26. package/dist/chunk-YVT26KKP.js +1 -0
  27. package/dist/chunk-ZLIR7YT7.js +1 -0
  28. package/dist/drawer-body.d.mts +10 -0
  29. package/dist/drawer-body.d.ts +10 -0
  30. package/dist/drawer-body.js +1 -0
  31. package/dist/drawer-body.mjs +1 -0
  32. package/dist/drawer-close-button.d.mts +10 -0
  33. package/dist/drawer-close-button.d.ts +10 -0
  34. package/dist/drawer-close-button.js +1 -0
  35. package/dist/drawer-close-button.mjs +1 -0
  36. package/dist/drawer-close-trigger.d.mts +10 -0
  37. package/dist/drawer-close-trigger.d.ts +10 -0
  38. package/dist/drawer-close-trigger.js +1 -0
  39. package/dist/drawer-close-trigger.mjs +1 -0
  40. package/dist/drawer-config.d.mts +27 -0
  41. package/dist/drawer-config.d.ts +27 -0
  42. package/dist/drawer-config.js +1 -0
  43. package/dist/drawer-config.mjs +1 -0
  44. package/dist/drawer-content.d.mts +11 -0
  45. package/dist/drawer-content.d.ts +11 -0
  46. package/dist/drawer-content.js +1 -0
  47. package/dist/drawer-content.mjs +1 -0
  48. package/dist/drawer-context.d.mts +23 -0
  49. package/dist/drawer-context.d.ts +23 -0
  50. package/dist/drawer-context.js +1 -0
  51. package/dist/drawer-context.mjs +1 -0
  52. package/dist/drawer-footer.d.mts +10 -0
  53. package/dist/drawer-footer.d.ts +10 -0
  54. package/dist/drawer-footer.js +1 -0
  55. package/dist/drawer-footer.mjs +1 -0
  56. package/dist/drawer-header.d.mts +10 -0
  57. package/dist/drawer-header.d.ts +10 -0
  58. package/dist/drawer-header.js +1 -0
  59. package/dist/drawer-header.mjs +1 -0
  60. package/dist/drawer-popover.d.mts +10 -0
  61. package/dist/drawer-popover.d.ts +10 -0
  62. package/dist/drawer-popover.js +1 -0
  63. package/dist/drawer-popover.mjs +1 -0
  64. package/dist/drawer-trigger.d.mts +10 -0
  65. package/dist/drawer-trigger.d.ts +10 -0
  66. package/dist/drawer-trigger.js +1 -0
  67. package/dist/drawer-trigger.mjs +1 -0
  68. package/dist/drawer.d.mts +23 -0
  69. package/dist/drawer.d.ts +23 -0
  70. package/dist/drawer.js +1 -0
  71. package/dist/drawer.mjs +1 -0
  72. package/dist/index.d.mts +19 -0
  73. package/dist/index.d.ts +19 -0
  74. package/dist/index.js +1 -0
  75. package/dist/index.mjs +1 -0
  76. package/dist/styles.d.mts +273 -0
  77. package/dist/styles.d.ts +273 -0
  78. package/dist/styles.js +1 -0
  79. package/dist/styles.mjs +1 -0
  80. package/dist/use-drawer.d.mts +53 -0
  81. package/dist/use-drawer.d.ts +53 -0
  82. package/dist/use-drawer.js +1 -0
  83. package/dist/use-drawer.mjs +1 -0
  84. package/package.json +52 -0
@@ -0,0 +1,19 @@
1
+ export { Drawer } from './drawer.js';
2
+ export { DrawerBody } from './drawer-body.js';
3
+ export { DrawerCloseButton } from './drawer-close-button.js';
4
+ export { DrawerCloseTrigger } from './drawer-close-trigger.js';
5
+ export { DrawerConfig, useDrawerConfig } from './drawer-config.js';
6
+ export { DrawerContent } from './drawer-content.js';
7
+ export { DrawerFooter } from './drawer-footer.js';
8
+ export { DrawerHeader } from './drawer-header.js';
9
+ export { DrawerTrigger } from './drawer-trigger.js';
10
+ import 'react';
11
+ import './use-drawer.js';
12
+ import '@floating-ui/react';
13
+ import '@jamsrui/utils';
14
+ import './drawer-popover.js';
15
+ import './styles.js';
16
+ import 'tailwind-variants';
17
+ import '@jamsrui/icon-button';
18
+ import '@jamsrui/core';
19
+ import 'motion/react';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkIEFAZ5FAjs = require('./chunk-IEFAZ5FA.js');var _chunkRD4N3HANjs = require('./chunk-RD4N3HAN.js');require('./chunk-ND7OMDLN.js');require('./chunk-EBAXPVZK.js');var _chunkDIVLCNEYjs = require('./chunk-DIVLCNEY.js');var _chunkPNQ3EGNQjs = require('./chunk-PNQ3EGNQ.js');var _chunkZLIR7YT7js = require('./chunk-ZLIR7YT7.js');var _chunkVIEG7KXLjs = require('./chunk-VIEG7KXL.js');require('./chunk-LJQ6DDUH.js');var _chunk5LGURIDYjs = require('./chunk-5LGURIDY.js');var _chunkYIBRX4K7js = require('./chunk-YIBRX4K7.js');var _chunkYVT26KKPjs = require('./chunk-YVT26KKP.js');require('./chunk-L4VK5JCO.js');exports.Drawer = _chunkRD4N3HANjs.a; exports.DrawerBody = _chunkDIVLCNEYjs.a; exports.DrawerCloseButton = _chunk5LGURIDYjs.a; exports.DrawerCloseTrigger = _chunkPNQ3EGNQjs.a; exports.DrawerConfig = _chunkZLIR7YT7js.a; exports.DrawerContent = _chunkVIEG7KXLjs.a; exports.DrawerFooter = _chunkYIBRX4K7js.a; exports.DrawerHeader = _chunkYVT26KKPjs.a; exports.DrawerTrigger = _chunkIEFAZ5FAjs.a; exports.useDrawerConfig = _chunkZLIR7YT7js.b;
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ "use client";import{a as m}from"./chunk-ILBTUKZ5.mjs";import{a as p}from"./chunk-LVXR3WXC.mjs";import"./chunk-FLLYJJRJ.mjs";import"./chunk-X6T6A5NL.mjs";import{a as r}from"./chunk-KWIHRWXQ.mjs";import{a as o}from"./chunk-MIPPECRL.mjs";import{a as t,b as a}from"./chunk-GUMSFI7G.mjs";import{a as f}from"./chunk-SOXQFYXF.mjs";import"./chunk-WBBF5BOV.mjs";import{a as e}from"./chunk-UM7Z4GKN.mjs";import{a as w}from"./chunk-BP77MJVR.mjs";import{a as D}from"./chunk-KNT3NBAB.mjs";import"./chunk-6XYRR3IV.mjs";export{p as Drawer,r as DrawerBody,e as DrawerCloseButton,o as DrawerCloseTrigger,t as DrawerConfig,f as DrawerContent,w as DrawerFooter,D as DrawerHeader,m as DrawerTrigger,a as useDrawerConfig};
@@ -0,0 +1,273 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from '@jamsrui/utils';
3
+
4
+ declare const test = "";
5
+ declare const drawerVariants: tailwind_variants.TVReturnType<{
6
+ anchor: {
7
+ left: {
8
+ content: string;
9
+ };
10
+ right: {
11
+ content: string;
12
+ };
13
+ top: {
14
+ content: string;
15
+ };
16
+ bottom: {
17
+ content: string;
18
+ };
19
+ };
20
+ size: {
21
+ xs: {
22
+ content: string;
23
+ };
24
+ sm: {
25
+ content: string;
26
+ };
27
+ md: {
28
+ content: string;
29
+ };
30
+ lg: {
31
+ content: string;
32
+ };
33
+ xl: {
34
+ content: string;
35
+ };
36
+ "2xl": {
37
+ content: string;
38
+ };
39
+ "3xl": {
40
+ content: string;
41
+ };
42
+ "4xl": {
43
+ content: string;
44
+ };
45
+ "5xl": {
46
+ content: string;
47
+ };
48
+ full: {
49
+ content: string;
50
+ };
51
+ };
52
+ isBordered: {
53
+ true: {
54
+ header: string;
55
+ footer: string;
56
+ };
57
+ };
58
+ scrollBehavior: {
59
+ inside: {
60
+ body: string;
61
+ };
62
+ outside: {};
63
+ };
64
+ backdrop: {
65
+ transparent: {
66
+ backdrop: string;
67
+ };
68
+ opaque: {
69
+ backdrop: string;
70
+ };
71
+ blur: {
72
+ backdrop: string;
73
+ };
74
+ };
75
+ radius: {
76
+ sm: {};
77
+ md: {};
78
+ lg: {};
79
+ xl: {};
80
+ "2xl": {};
81
+ "3xl": {};
82
+ full: {};
83
+ none: {};
84
+ };
85
+ }, {
86
+ backdrop: string;
87
+ popover: string;
88
+ content: string;
89
+ header: string;
90
+ footer: string;
91
+ body: string;
92
+ closeButton: string;
93
+ }, undefined, {
94
+ anchor: {
95
+ left: {
96
+ content: string;
97
+ };
98
+ right: {
99
+ content: string;
100
+ };
101
+ top: {
102
+ content: string;
103
+ };
104
+ bottom: {
105
+ content: string;
106
+ };
107
+ };
108
+ size: {
109
+ xs: {
110
+ content: string;
111
+ };
112
+ sm: {
113
+ content: string;
114
+ };
115
+ md: {
116
+ content: string;
117
+ };
118
+ lg: {
119
+ content: string;
120
+ };
121
+ xl: {
122
+ content: string;
123
+ };
124
+ "2xl": {
125
+ content: string;
126
+ };
127
+ "3xl": {
128
+ content: string;
129
+ };
130
+ "4xl": {
131
+ content: string;
132
+ };
133
+ "5xl": {
134
+ content: string;
135
+ };
136
+ full: {
137
+ content: string;
138
+ };
139
+ };
140
+ isBordered: {
141
+ true: {
142
+ header: string;
143
+ footer: string;
144
+ };
145
+ };
146
+ scrollBehavior: {
147
+ inside: {
148
+ body: string;
149
+ };
150
+ outside: {};
151
+ };
152
+ backdrop: {
153
+ transparent: {
154
+ backdrop: string;
155
+ };
156
+ opaque: {
157
+ backdrop: string;
158
+ };
159
+ blur: {
160
+ backdrop: string;
161
+ };
162
+ };
163
+ radius: {
164
+ sm: {};
165
+ md: {};
166
+ lg: {};
167
+ xl: {};
168
+ "2xl": {};
169
+ "3xl": {};
170
+ full: {};
171
+ none: {};
172
+ };
173
+ }, {
174
+ backdrop: string;
175
+ popover: string;
176
+ content: string;
177
+ header: string;
178
+ footer: string;
179
+ body: string;
180
+ closeButton: string;
181
+ }, tailwind_variants.TVReturnType<{
182
+ anchor: {
183
+ left: {
184
+ content: string;
185
+ };
186
+ right: {
187
+ content: string;
188
+ };
189
+ top: {
190
+ content: string;
191
+ };
192
+ bottom: {
193
+ content: string;
194
+ };
195
+ };
196
+ size: {
197
+ xs: {
198
+ content: string;
199
+ };
200
+ sm: {
201
+ content: string;
202
+ };
203
+ md: {
204
+ content: string;
205
+ };
206
+ lg: {
207
+ content: string;
208
+ };
209
+ xl: {
210
+ content: string;
211
+ };
212
+ "2xl": {
213
+ content: string;
214
+ };
215
+ "3xl": {
216
+ content: string;
217
+ };
218
+ "4xl": {
219
+ content: string;
220
+ };
221
+ "5xl": {
222
+ content: string;
223
+ };
224
+ full: {
225
+ content: string;
226
+ };
227
+ };
228
+ isBordered: {
229
+ true: {
230
+ header: string;
231
+ footer: string;
232
+ };
233
+ };
234
+ scrollBehavior: {
235
+ inside: {
236
+ body: string;
237
+ };
238
+ outside: {};
239
+ };
240
+ backdrop: {
241
+ transparent: {
242
+ backdrop: string;
243
+ };
244
+ opaque: {
245
+ backdrop: string;
246
+ };
247
+ blur: {
248
+ backdrop: string;
249
+ };
250
+ };
251
+ radius: {
252
+ sm: {};
253
+ md: {};
254
+ lg: {};
255
+ xl: {};
256
+ "2xl": {};
257
+ "3xl": {};
258
+ full: {};
259
+ none: {};
260
+ };
261
+ }, {
262
+ backdrop: string;
263
+ popover: string;
264
+ content: string;
265
+ header: string;
266
+ footer: string;
267
+ body: string;
268
+ closeButton: string;
269
+ }, undefined, unknown, unknown, undefined>>;
270
+ type DrawerVariants = VariantProps<typeof drawerVariants>;
271
+ type DrawerSlots = keyof ReturnType<typeof drawerVariants>;
272
+
273
+ export { type DrawerSlots, type DrawerVariants, drawerVariants, test };
@@ -0,0 +1,273 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from '@jamsrui/utils';
3
+
4
+ declare const test = "";
5
+ declare const drawerVariants: tailwind_variants.TVReturnType<{
6
+ anchor: {
7
+ left: {
8
+ content: string;
9
+ };
10
+ right: {
11
+ content: string;
12
+ };
13
+ top: {
14
+ content: string;
15
+ };
16
+ bottom: {
17
+ content: string;
18
+ };
19
+ };
20
+ size: {
21
+ xs: {
22
+ content: string;
23
+ };
24
+ sm: {
25
+ content: string;
26
+ };
27
+ md: {
28
+ content: string;
29
+ };
30
+ lg: {
31
+ content: string;
32
+ };
33
+ xl: {
34
+ content: string;
35
+ };
36
+ "2xl": {
37
+ content: string;
38
+ };
39
+ "3xl": {
40
+ content: string;
41
+ };
42
+ "4xl": {
43
+ content: string;
44
+ };
45
+ "5xl": {
46
+ content: string;
47
+ };
48
+ full: {
49
+ content: string;
50
+ };
51
+ };
52
+ isBordered: {
53
+ true: {
54
+ header: string;
55
+ footer: string;
56
+ };
57
+ };
58
+ scrollBehavior: {
59
+ inside: {
60
+ body: string;
61
+ };
62
+ outside: {};
63
+ };
64
+ backdrop: {
65
+ transparent: {
66
+ backdrop: string;
67
+ };
68
+ opaque: {
69
+ backdrop: string;
70
+ };
71
+ blur: {
72
+ backdrop: string;
73
+ };
74
+ };
75
+ radius: {
76
+ sm: {};
77
+ md: {};
78
+ lg: {};
79
+ xl: {};
80
+ "2xl": {};
81
+ "3xl": {};
82
+ full: {};
83
+ none: {};
84
+ };
85
+ }, {
86
+ backdrop: string;
87
+ popover: string;
88
+ content: string;
89
+ header: string;
90
+ footer: string;
91
+ body: string;
92
+ closeButton: string;
93
+ }, undefined, {
94
+ anchor: {
95
+ left: {
96
+ content: string;
97
+ };
98
+ right: {
99
+ content: string;
100
+ };
101
+ top: {
102
+ content: string;
103
+ };
104
+ bottom: {
105
+ content: string;
106
+ };
107
+ };
108
+ size: {
109
+ xs: {
110
+ content: string;
111
+ };
112
+ sm: {
113
+ content: string;
114
+ };
115
+ md: {
116
+ content: string;
117
+ };
118
+ lg: {
119
+ content: string;
120
+ };
121
+ xl: {
122
+ content: string;
123
+ };
124
+ "2xl": {
125
+ content: string;
126
+ };
127
+ "3xl": {
128
+ content: string;
129
+ };
130
+ "4xl": {
131
+ content: string;
132
+ };
133
+ "5xl": {
134
+ content: string;
135
+ };
136
+ full: {
137
+ content: string;
138
+ };
139
+ };
140
+ isBordered: {
141
+ true: {
142
+ header: string;
143
+ footer: string;
144
+ };
145
+ };
146
+ scrollBehavior: {
147
+ inside: {
148
+ body: string;
149
+ };
150
+ outside: {};
151
+ };
152
+ backdrop: {
153
+ transparent: {
154
+ backdrop: string;
155
+ };
156
+ opaque: {
157
+ backdrop: string;
158
+ };
159
+ blur: {
160
+ backdrop: string;
161
+ };
162
+ };
163
+ radius: {
164
+ sm: {};
165
+ md: {};
166
+ lg: {};
167
+ xl: {};
168
+ "2xl": {};
169
+ "3xl": {};
170
+ full: {};
171
+ none: {};
172
+ };
173
+ }, {
174
+ backdrop: string;
175
+ popover: string;
176
+ content: string;
177
+ header: string;
178
+ footer: string;
179
+ body: string;
180
+ closeButton: string;
181
+ }, tailwind_variants.TVReturnType<{
182
+ anchor: {
183
+ left: {
184
+ content: string;
185
+ };
186
+ right: {
187
+ content: string;
188
+ };
189
+ top: {
190
+ content: string;
191
+ };
192
+ bottom: {
193
+ content: string;
194
+ };
195
+ };
196
+ size: {
197
+ xs: {
198
+ content: string;
199
+ };
200
+ sm: {
201
+ content: string;
202
+ };
203
+ md: {
204
+ content: string;
205
+ };
206
+ lg: {
207
+ content: string;
208
+ };
209
+ xl: {
210
+ content: string;
211
+ };
212
+ "2xl": {
213
+ content: string;
214
+ };
215
+ "3xl": {
216
+ content: string;
217
+ };
218
+ "4xl": {
219
+ content: string;
220
+ };
221
+ "5xl": {
222
+ content: string;
223
+ };
224
+ full: {
225
+ content: string;
226
+ };
227
+ };
228
+ isBordered: {
229
+ true: {
230
+ header: string;
231
+ footer: string;
232
+ };
233
+ };
234
+ scrollBehavior: {
235
+ inside: {
236
+ body: string;
237
+ };
238
+ outside: {};
239
+ };
240
+ backdrop: {
241
+ transparent: {
242
+ backdrop: string;
243
+ };
244
+ opaque: {
245
+ backdrop: string;
246
+ };
247
+ blur: {
248
+ backdrop: string;
249
+ };
250
+ };
251
+ radius: {
252
+ sm: {};
253
+ md: {};
254
+ lg: {};
255
+ xl: {};
256
+ "2xl": {};
257
+ "3xl": {};
258
+ full: {};
259
+ none: {};
260
+ };
261
+ }, {
262
+ backdrop: string;
263
+ popover: string;
264
+ content: string;
265
+ header: string;
266
+ footer: string;
267
+ body: string;
268
+ closeButton: string;
269
+ }, undefined, unknown, unknown, undefined>>;
270
+ type DrawerVariants = VariantProps<typeof drawerVariants>;
271
+ type DrawerSlots = keyof ReturnType<typeof drawerVariants>;
272
+
273
+ export { type DrawerSlots, type DrawerVariants, drawerVariants, test };
package/dist/styles.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEBAXPVZKjs = require('./chunk-EBAXPVZK.js');exports.drawerVariants = _chunkEBAXPVZKjs.b; exports.test = _chunkEBAXPVZKjs.a;
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-X6T6A5NL.mjs";export{b as drawerVariants,a as test};
@@ -0,0 +1,53 @@
1
+ import { FloatingOverlayProps, FloatingFocusManagerProps } from '@floating-ui/react';
2
+ import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
3
+ import { DrawerBody } from './drawer-body.mjs';
4
+ import { DrawerCloseButton } from './drawer-close-button.mjs';
5
+ import { DrawerContent } from './drawer-content.mjs';
6
+ import { DrawerFooter } from './drawer-footer.mjs';
7
+ import { DrawerHeader } from './drawer-header.mjs';
8
+ import { DrawerPopover } from './drawer-popover.mjs';
9
+ import { DrawerVariants, DrawerSlots } from './styles.mjs';
10
+ import 'react';
11
+ import '@jamsrui/icon-button';
12
+ import 'motion/react';
13
+ import 'tailwind-variants';
14
+
15
+ declare const useDrawer: (props: useDrawer.Props) => {
16
+ getHeaderProps: PropGetter<DrawerHeader.Props>;
17
+ getFooterProps: PropGetter<DrawerFooter.Props>;
18
+ getBodyProps: PropGetter<DrawerBody.Props>;
19
+ getContentProps: PropGetter<DrawerContent.Props>;
20
+ getCloseButtonProps: PropGetter<DrawerCloseButton.Props>;
21
+ getBackdropProps: () => FloatingOverlayProps & UIProps<"div">;
22
+ getFocusManagerProps: () => Omit<FloatingFocusManagerProps, "children">;
23
+ getTriggerProps: () => {
24
+ [x: string]: unknown;
25
+ };
26
+ getTriggerCloseProps: () => {
27
+ onClick: () => void;
28
+ };
29
+ isOpen: boolean;
30
+ getPopoverProps: PropGetter<DrawerPopover.Props>;
31
+ hideCloseButton: boolean;
32
+ };
33
+ declare namespace useDrawer {
34
+ interface Props extends DrawerVariants {
35
+ classNames?: SlotsToClassNames<DrawerSlots>;
36
+ slotProps?: {
37
+ popover?: DrawerPopover.Props;
38
+ header?: DrawerHeader.Props;
39
+ footer?: DrawerFooter.Props;
40
+ content?: DrawerContent.Props;
41
+ body?: DrawerBody.Props;
42
+ closeButton?: DrawerCloseButton.Props;
43
+ };
44
+ defaultOpen?: boolean;
45
+ isOpen?: boolean;
46
+ onOpenChange?: (open: boolean) => void;
47
+ isDismissible?: boolean;
48
+ isKeyboardDismissible?: boolean;
49
+ hideCloseButton?: boolean;
50
+ }
51
+ }
52
+
53
+ export { useDrawer };
@@ -0,0 +1,53 @@
1
+ import { FloatingOverlayProps, FloatingFocusManagerProps } from '@floating-ui/react';
2
+ import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
3
+ import { DrawerBody } from './drawer-body.js';
4
+ import { DrawerCloseButton } from './drawer-close-button.js';
5
+ import { DrawerContent } from './drawer-content.js';
6
+ import { DrawerFooter } from './drawer-footer.js';
7
+ import { DrawerHeader } from './drawer-header.js';
8
+ import { DrawerPopover } from './drawer-popover.js';
9
+ import { DrawerVariants, DrawerSlots } from './styles.js';
10
+ import 'react';
11
+ import '@jamsrui/icon-button';
12
+ import 'motion/react';
13
+ import 'tailwind-variants';
14
+
15
+ declare const useDrawer: (props: useDrawer.Props) => {
16
+ getHeaderProps: PropGetter<DrawerHeader.Props>;
17
+ getFooterProps: PropGetter<DrawerFooter.Props>;
18
+ getBodyProps: PropGetter<DrawerBody.Props>;
19
+ getContentProps: PropGetter<DrawerContent.Props>;
20
+ getCloseButtonProps: PropGetter<DrawerCloseButton.Props>;
21
+ getBackdropProps: () => FloatingOverlayProps & UIProps<"div">;
22
+ getFocusManagerProps: () => Omit<FloatingFocusManagerProps, "children">;
23
+ getTriggerProps: () => {
24
+ [x: string]: unknown;
25
+ };
26
+ getTriggerCloseProps: () => {
27
+ onClick: () => void;
28
+ };
29
+ isOpen: boolean;
30
+ getPopoverProps: PropGetter<DrawerPopover.Props>;
31
+ hideCloseButton: boolean;
32
+ };
33
+ declare namespace useDrawer {
34
+ interface Props extends DrawerVariants {
35
+ classNames?: SlotsToClassNames<DrawerSlots>;
36
+ slotProps?: {
37
+ popover?: DrawerPopover.Props;
38
+ header?: DrawerHeader.Props;
39
+ footer?: DrawerFooter.Props;
40
+ content?: DrawerContent.Props;
41
+ body?: DrawerBody.Props;
42
+ closeButton?: DrawerCloseButton.Props;
43
+ };
44
+ defaultOpen?: boolean;
45
+ isOpen?: boolean;
46
+ onOpenChange?: (open: boolean) => void;
47
+ isDismissible?: boolean;
48
+ isKeyboardDismissible?: boolean;
49
+ hideCloseButton?: boolean;
50
+ }
51
+ }
52
+
53
+ export { useDrawer };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkND7OMDLNjs = require('./chunk-ND7OMDLN.js');require('./chunk-EBAXPVZK.js');exports.useDrawer = _chunkND7OMDLNjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-FLLYJJRJ.mjs";import"./chunk-X6T6A5NL.mjs";export{a as useDrawer};