@kopexa/drawer 9.0.7 → 9.0.9
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/{chunk-G37ASPA2.mjs → chunk-QUOFOYOZ.mjs} +1 -1
- package/dist/{chunk-73YAB5BL.mjs → chunk-ZHAZ2QI3.mjs} +21 -74
- package/dist/drawer.js +21 -69
- package/dist/drawer.mjs +1 -1
- package/dist/index.js +21 -69
- package/dist/index.mjs +2 -2
- package/dist/namespace.js +21 -69
- package/dist/namespace.mjs +2 -2
- package/package.json +4 -6
|
@@ -7,17 +7,9 @@ var __export = (target, all) => {
|
|
|
7
7
|
|
|
8
8
|
// src/drawer.tsx
|
|
9
9
|
import { CloseIcon } from "@kopexa/icons";
|
|
10
|
-
import { TRANSITION_EASINGS, TRANSITION_VARIANTS } from "@kopexa/motion-utils";
|
|
11
10
|
import { createContext } from "@kopexa/react-utils";
|
|
12
11
|
import { drawer } from "@kopexa/theme";
|
|
13
12
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
14
|
-
import {
|
|
15
|
-
AnimatePresence,
|
|
16
|
-
domAnimation,
|
|
17
|
-
LazyMotion,
|
|
18
|
-
motion
|
|
19
|
-
} from "motion/react";
|
|
20
|
-
import { useMemo as useMemo2 } from "react";
|
|
21
13
|
|
|
22
14
|
// ../../hooks/use-callback-ref/src/index.ts
|
|
23
15
|
import { useCallback, useInsertionEffect, useRef } from "react";
|
|
@@ -104,90 +96,45 @@ function DrawerClose({ ...props }) {
|
|
|
104
96
|
}
|
|
105
97
|
function DrawerOverlay({ className, ...props }) {
|
|
106
98
|
const { styles } = useDrawerContext();
|
|
107
|
-
return /* @__PURE__ */ jsx(
|
|
99
|
+
return /* @__PURE__ */ jsx(
|
|
108
100
|
DialogPrimitive.Overlay,
|
|
109
101
|
{
|
|
110
102
|
"data-slot": "drawer-overlay",
|
|
111
103
|
className: styles.overlay({
|
|
112
104
|
className
|
|
113
105
|
}),
|
|
114
|
-
...props
|
|
115
|
-
asChild: true,
|
|
116
|
-
children: /* @__PURE__ */ jsx(
|
|
117
|
-
motion.div,
|
|
118
|
-
{
|
|
119
|
-
animate: "enter",
|
|
120
|
-
exit: "exit",
|
|
121
|
-
initial: "exit",
|
|
122
|
-
variants: TRANSITION_VARIANTS.fade
|
|
123
|
-
}
|
|
124
|
-
)
|
|
106
|
+
...props
|
|
125
107
|
}
|
|
126
|
-
)
|
|
108
|
+
);
|
|
127
109
|
}
|
|
128
110
|
var DrawerContent = (props) => {
|
|
129
111
|
const { className, children, showCloseButton = false, ...rest } = props;
|
|
130
|
-
const {
|
|
131
|
-
|
|
132
|
-
const key = placement === "left" || placement === "right" ? "x" : "y";
|
|
133
|
-
return {
|
|
134
|
-
variants: {
|
|
135
|
-
enter: {
|
|
136
|
-
[key]: 0,
|
|
137
|
-
transition: {
|
|
138
|
-
[key]: {
|
|
139
|
-
duration: 0.2,
|
|
140
|
-
ease: TRANSITION_EASINGS.easeOut
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
exit: {
|
|
145
|
-
[key]: placement === "top" || placement === "left" ? "-100%" : "100%",
|
|
146
|
-
transition: {
|
|
147
|
-
[key]: {
|
|
148
|
-
duration: 0.1,
|
|
149
|
-
ease: TRANSITION_EASINGS.easeIn
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
}, [placement]);
|
|
156
|
-
return /* @__PURE__ */ jsx(AnimatePresence, { children: open ? /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", forceMount: true, children: [
|
|
112
|
+
const { styles } = useDrawerContext();
|
|
113
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
157
114
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
158
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ jsxs(
|
|
159
116
|
DialogPrimitive.Content,
|
|
160
117
|
{
|
|
161
118
|
"data-slot": "drawer-content",
|
|
162
119
|
className: styles.content({ className }),
|
|
163
|
-
asChild: true,
|
|
164
120
|
...rest,
|
|
165
|
-
children:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
children: [
|
|
180
|
-
/* @__PURE__ */ jsx(CloseIcon, {}),
|
|
181
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
)
|
|
121
|
+
children: [
|
|
122
|
+
children,
|
|
123
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
124
|
+
DialogPrimitive.Close,
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "dialog-close",
|
|
127
|
+
className: styles.close(),
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ jsx(CloseIcon, {}),
|
|
130
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
]
|
|
188
135
|
}
|
|
189
136
|
)
|
|
190
|
-
] })
|
|
137
|
+
] });
|
|
191
138
|
};
|
|
192
139
|
function DrawerHeader({ className, ...props }) {
|
|
193
140
|
const { styles } = useDrawerContext();
|
package/dist/drawer.js
CHANGED
|
@@ -48,12 +48,9 @@ __export(drawer_exports, {
|
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(drawer_exports);
|
|
50
50
|
var import_icons = require("@kopexa/icons");
|
|
51
|
-
var import_motion_utils = require("@kopexa/motion-utils");
|
|
52
51
|
var import_react_utils = require("@kopexa/react-utils");
|
|
53
52
|
var import_theme = require("@kopexa/theme");
|
|
54
53
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
55
|
-
var import_react3 = require("motion/react");
|
|
56
|
-
var import_react4 = require("react");
|
|
57
54
|
|
|
58
55
|
// ../../hooks/use-callback-ref/src/index.ts
|
|
59
56
|
var import_react = require("react");
|
|
@@ -140,90 +137,45 @@ function DrawerClose({ ...props }) {
|
|
|
140
137
|
}
|
|
141
138
|
function DrawerOverlay({ className, ...props }) {
|
|
142
139
|
const { styles } = useDrawerContext();
|
|
143
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
141
|
DialogPrimitive.Overlay,
|
|
145
142
|
{
|
|
146
143
|
"data-slot": "drawer-overlay",
|
|
147
144
|
className: styles.overlay({
|
|
148
145
|
className
|
|
149
146
|
}),
|
|
150
|
-
...props
|
|
151
|
-
asChild: true,
|
|
152
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
|
-
import_react3.motion.div,
|
|
154
|
-
{
|
|
155
|
-
animate: "enter",
|
|
156
|
-
exit: "exit",
|
|
157
|
-
initial: "exit",
|
|
158
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.fade
|
|
159
|
-
}
|
|
160
|
-
)
|
|
147
|
+
...props
|
|
161
148
|
}
|
|
162
|
-
)
|
|
149
|
+
);
|
|
163
150
|
}
|
|
164
151
|
var DrawerContent = (props) => {
|
|
165
152
|
const { className, children, showCloseButton = false, ...rest } = props;
|
|
166
|
-
const {
|
|
167
|
-
|
|
168
|
-
const key = placement === "left" || placement === "right" ? "x" : "y";
|
|
169
|
-
return {
|
|
170
|
-
variants: {
|
|
171
|
-
enter: {
|
|
172
|
-
[key]: 0,
|
|
173
|
-
transition: {
|
|
174
|
-
[key]: {
|
|
175
|
-
duration: 0.2,
|
|
176
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeOut
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
exit: {
|
|
181
|
-
[key]: placement === "top" || placement === "left" ? "-100%" : "100%",
|
|
182
|
-
transition: {
|
|
183
|
-
[key]: {
|
|
184
|
-
duration: 0.1,
|
|
185
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeIn
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
}, [placement]);
|
|
192
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.AnimatePresence, { children: open ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", forceMount: true, children: [
|
|
153
|
+
const { styles } = useDrawerContext();
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
193
155
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerOverlay, {}),
|
|
194
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
195
157
|
DialogPrimitive.Content,
|
|
196
158
|
{
|
|
197
159
|
"data-slot": "drawer-content",
|
|
198
160
|
className: styles.content({ className }),
|
|
199
|
-
asChild: true,
|
|
200
161
|
...rest,
|
|
201
|
-
children:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
children: [
|
|
216
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
217
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
)
|
|
162
|
+
children: [
|
|
163
|
+
children,
|
|
164
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
165
|
+
DialogPrimitive.Close,
|
|
166
|
+
{
|
|
167
|
+
"data-slot": "dialog-close",
|
|
168
|
+
className: styles.close(),
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
]
|
|
224
176
|
}
|
|
225
177
|
)
|
|
226
|
-
] })
|
|
178
|
+
] });
|
|
227
179
|
};
|
|
228
180
|
function DrawerHeader({ className, ...props }) {
|
|
229
181
|
const { styles } = useDrawerContext();
|
package/dist/drawer.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -38,12 +38,9 @@ module.exports = __toCommonJS(index_exports);
|
|
|
38
38
|
|
|
39
39
|
// src/drawer.tsx
|
|
40
40
|
var import_icons = require("@kopexa/icons");
|
|
41
|
-
var import_motion_utils = require("@kopexa/motion-utils");
|
|
42
41
|
var import_react_utils = require("@kopexa/react-utils");
|
|
43
42
|
var import_theme = require("@kopexa/theme");
|
|
44
43
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
45
|
-
var import_react3 = require("motion/react");
|
|
46
|
-
var import_react4 = require("react");
|
|
47
44
|
|
|
48
45
|
// ../../hooks/use-callback-ref/src/index.ts
|
|
49
46
|
var import_react = require("react");
|
|
@@ -130,90 +127,45 @@ function DrawerClose({ ...props }) {
|
|
|
130
127
|
}
|
|
131
128
|
function DrawerOverlay({ className, ...props }) {
|
|
132
129
|
const { styles } = useDrawerContext();
|
|
133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
131
|
DialogPrimitive.Overlay,
|
|
135
132
|
{
|
|
136
133
|
"data-slot": "drawer-overlay",
|
|
137
134
|
className: styles.overlay({
|
|
138
135
|
className
|
|
139
136
|
}),
|
|
140
|
-
...props
|
|
141
|
-
asChild: true,
|
|
142
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
143
|
-
import_react3.motion.div,
|
|
144
|
-
{
|
|
145
|
-
animate: "enter",
|
|
146
|
-
exit: "exit",
|
|
147
|
-
initial: "exit",
|
|
148
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.fade
|
|
149
|
-
}
|
|
150
|
-
)
|
|
137
|
+
...props
|
|
151
138
|
}
|
|
152
|
-
)
|
|
139
|
+
);
|
|
153
140
|
}
|
|
154
141
|
var DrawerContent = (props) => {
|
|
155
142
|
const { className, children, showCloseButton = false, ...rest } = props;
|
|
156
|
-
const {
|
|
157
|
-
|
|
158
|
-
const key = placement === "left" || placement === "right" ? "x" : "y";
|
|
159
|
-
return {
|
|
160
|
-
variants: {
|
|
161
|
-
enter: {
|
|
162
|
-
[key]: 0,
|
|
163
|
-
transition: {
|
|
164
|
-
[key]: {
|
|
165
|
-
duration: 0.2,
|
|
166
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeOut
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
exit: {
|
|
171
|
-
[key]: placement === "top" || placement === "left" ? "-100%" : "100%",
|
|
172
|
-
transition: {
|
|
173
|
-
[key]: {
|
|
174
|
-
duration: 0.1,
|
|
175
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeIn
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}, [placement]);
|
|
182
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.AnimatePresence, { children: open ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", forceMount: true, children: [
|
|
143
|
+
const { styles } = useDrawerContext();
|
|
144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
183
145
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerOverlay, {}),
|
|
184
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
185
147
|
DialogPrimitive.Content,
|
|
186
148
|
{
|
|
187
149
|
"data-slot": "drawer-content",
|
|
188
150
|
className: styles.content({ className }),
|
|
189
|
-
asChild: true,
|
|
190
151
|
...rest,
|
|
191
|
-
children:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
)
|
|
152
|
+
children: [
|
|
153
|
+
children,
|
|
154
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
155
|
+
DialogPrimitive.Close,
|
|
156
|
+
{
|
|
157
|
+
"data-slot": "dialog-close",
|
|
158
|
+
className: styles.close(),
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
161
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
]
|
|
214
166
|
}
|
|
215
167
|
)
|
|
216
|
-
] })
|
|
168
|
+
] });
|
|
217
169
|
};
|
|
218
170
|
function DrawerHeader({ className, ...props }) {
|
|
219
171
|
const { styles } = useDrawerContext();
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
namespace_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QUOFOYOZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useDrawerContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZHAZ2QI3.mjs";
|
|
8
8
|
export {
|
|
9
9
|
namespace_exports as Drawer,
|
|
10
10
|
useDrawerContext
|
package/dist/namespace.js
CHANGED
|
@@ -48,12 +48,9 @@ module.exports = __toCommonJS(namespace_exports);
|
|
|
48
48
|
|
|
49
49
|
// src/drawer.tsx
|
|
50
50
|
var import_icons = require("@kopexa/icons");
|
|
51
|
-
var import_motion_utils = require("@kopexa/motion-utils");
|
|
52
51
|
var import_react_utils = require("@kopexa/react-utils");
|
|
53
52
|
var import_theme = require("@kopexa/theme");
|
|
54
53
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
55
|
-
var import_react3 = require("motion/react");
|
|
56
|
-
var import_react4 = require("react");
|
|
57
54
|
|
|
58
55
|
// ../../hooks/use-callback-ref/src/index.ts
|
|
59
56
|
var import_react = require("react");
|
|
@@ -140,90 +137,45 @@ function DrawerClose({ ...props }) {
|
|
|
140
137
|
}
|
|
141
138
|
function DrawerOverlay({ className, ...props }) {
|
|
142
139
|
const { styles } = useDrawerContext();
|
|
143
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
141
|
DialogPrimitive.Overlay,
|
|
145
142
|
{
|
|
146
143
|
"data-slot": "drawer-overlay",
|
|
147
144
|
className: styles.overlay({
|
|
148
145
|
className
|
|
149
146
|
}),
|
|
150
|
-
...props
|
|
151
|
-
asChild: true,
|
|
152
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
|
-
import_react3.motion.div,
|
|
154
|
-
{
|
|
155
|
-
animate: "enter",
|
|
156
|
-
exit: "exit",
|
|
157
|
-
initial: "exit",
|
|
158
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.fade
|
|
159
|
-
}
|
|
160
|
-
)
|
|
147
|
+
...props
|
|
161
148
|
}
|
|
162
|
-
)
|
|
149
|
+
);
|
|
163
150
|
}
|
|
164
151
|
var DrawerContent = (props) => {
|
|
165
152
|
const { className, children, showCloseButton = false, ...rest } = props;
|
|
166
|
-
const {
|
|
167
|
-
|
|
168
|
-
const key = placement === "left" || placement === "right" ? "x" : "y";
|
|
169
|
-
return {
|
|
170
|
-
variants: {
|
|
171
|
-
enter: {
|
|
172
|
-
[key]: 0,
|
|
173
|
-
transition: {
|
|
174
|
-
[key]: {
|
|
175
|
-
duration: 0.2,
|
|
176
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeOut
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
exit: {
|
|
181
|
-
[key]: placement === "top" || placement === "left" ? "-100%" : "100%",
|
|
182
|
-
transition: {
|
|
183
|
-
[key]: {
|
|
184
|
-
duration: 0.1,
|
|
185
|
-
ease: import_motion_utils.TRANSITION_EASINGS.easeIn
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
}, [placement]);
|
|
192
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.AnimatePresence, { children: open ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", forceMount: true, children: [
|
|
153
|
+
const { styles } = useDrawerContext();
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
193
155
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerOverlay, {}),
|
|
194
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
195
157
|
DialogPrimitive.Content,
|
|
196
158
|
{
|
|
197
159
|
"data-slot": "drawer-content",
|
|
198
160
|
className: styles.content({ className }),
|
|
199
|
-
asChild: true,
|
|
200
161
|
...rest,
|
|
201
|
-
children:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
children: [
|
|
216
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
217
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
)
|
|
162
|
+
children: [
|
|
163
|
+
children,
|
|
164
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
165
|
+
DialogPrimitive.Close,
|
|
166
|
+
{
|
|
167
|
+
"data-slot": "dialog-close",
|
|
168
|
+
className: styles.close(),
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseIcon, {}),
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
]
|
|
224
176
|
}
|
|
225
177
|
)
|
|
226
|
-
] })
|
|
178
|
+
] });
|
|
227
179
|
};
|
|
228
180
|
function DrawerHeader({ className, ...props }) {
|
|
229
181
|
const { styles } = useDrawerContext();
|
package/dist/namespace.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-QUOFOYOZ.mjs";
|
|
3
3
|
import {
|
|
4
4
|
DrawerBody,
|
|
5
5
|
DrawerClose,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
DrawerRoot,
|
|
14
14
|
DrawerTitle,
|
|
15
15
|
DrawerTrigger
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZHAZ2QI3.mjs";
|
|
17
17
|
export {
|
|
18
18
|
DrawerBody as Body,
|
|
19
19
|
DrawerClose as Close,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/drawer",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.9",
|
|
4
4
|
"description": "A drawer for kopexa",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drawer"
|
|
@@ -25,19 +25,17 @@
|
|
|
25
25
|
"url": "https://github.com/kopexa-grc/sight/issues"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"motion": ">=12.23.6",
|
|
29
28
|
"react": ">=19.0.0-rc.0",
|
|
30
29
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "1.6.
|
|
30
|
+
"@kopexa/theme": "1.6.9"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
35
|
-
"motion": "^12.23.12",
|
|
36
34
|
"@kopexa/react-utils": "2.0.6",
|
|
37
35
|
"@kopexa/shared-utils": "1.1.5",
|
|
38
|
-
"@kopexa/icons": "9.0.
|
|
36
|
+
"@kopexa/icons": "9.0.9",
|
|
39
37
|
"@kopexa/use-controllable-state": "1.1.2",
|
|
40
|
-
"@kopexa/motion-utils": "9.0.
|
|
38
|
+
"@kopexa/motion-utils": "9.0.9"
|
|
41
39
|
},
|
|
42
40
|
"clean-package": "../../../clean-package.config.json",
|
|
43
41
|
"module": "dist/index.mjs",
|