@spark-ui/components 13.0.3-beta.0 → 13.0.4
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/accordion/index.d.mts +2 -2
- package/dist/accordion/index.d.ts +2 -2
- package/dist/accordion/index.js +5 -5
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +5 -5
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert-dialog/index.d.mts +1 -1
- package/dist/alert-dialog/index.d.ts +1 -1
- package/dist/alert-dialog/index.js +15 -10
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs +15 -10
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +2 -2
- package/dist/carousel/index.mjs +2 -2
- package/dist/collapsible/index.d.mts +1 -1
- package/dist/collapsible/index.d.ts +1 -1
- package/dist/collapsible/index.js +3 -3
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs +3 -3
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/combobox/index.mjs +3 -3
- package/dist/dialog/index.mjs +2 -2
- package/dist/docgen.json +3098 -3129
- package/dist/drawer/index.d.mts +29 -37
- package/dist/drawer/index.d.ts +29 -37
- package/dist/drawer/index.js +89 -125
- package/dist/drawer/index.js.map +1 -1
- package/dist/drawer/index.mjs +89 -127
- package/dist/drawer/index.mjs.map +1 -1
- package/dist/dropdown/index.mjs +2 -2
- package/dist/file-upload/index.mjs +3 -3
- package/dist/pagination/index.mjs +3 -3
- package/dist/popover/index.mjs +1 -1
- package/dist/scrolling-list/index.mjs +3 -3
- package/dist/snackbar/index.mjs +3 -3
- package/dist/spinner/index.d.mts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/stepper/index.mjs +2 -2
- package/dist/tabs/index.mjs +3 -3
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.js +3 -3
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +6 -6
- package/dist/toast/index.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/DialogTrigger-8oDlAJjU.d.mts +0 -142
- package/dist/DialogTrigger-8oDlAJjU.d.ts +0 -142
- package/dist/DialogTrigger-woU7vsJi.d.mts +0 -142
- package/dist/DialogTrigger-woU7vsJi.d.ts +0 -142
- package/dist/chunk-2BSBKLHG.mjs +0 -358
- package/dist/chunk-2BSBKLHG.mjs.map +0 -1
- package/dist/chunk-D7YBYT5H.mjs +0 -308
- package/dist/chunk-D7YBYT5H.mjs.map +0 -1
- package/dist/chunk-HEKSVWYW.mjs +0 -800
- package/dist/chunk-HEKSVWYW.mjs.map +0 -1
- package/dist/chunk-TKAU6SMC.mjs +0 -197
- package/dist/chunk-TKAU6SMC.mjs.map +0 -1
- package/dist/chunk-WA56YHV3.mjs +0 -358
- package/dist/chunk-WA56YHV3.mjs.map +0 -1
- package/dist/chunk-WLI4EPS6.mjs +0 -358
- package/dist/chunk-WLI4EPS6.mjs.map +0 -1
- package/dist/chunk-XYK6V3JF.mjs +0 -53
- package/dist/chunk-XYK6V3JF.mjs.map +0 -1
- package/dist/index-BRKaV3lI.d.mts +0 -93
- package/dist/index-BRKaV3lI.d.ts +0 -93
- package/dist/index-Cw_DIfiq.d.mts +0 -93
- package/dist/index-Cw_DIfiq.d.ts +0 -93
package/dist/drawer/index.mjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
-
import "../chunk-2YM6GKWW.mjs";
|
|
5
|
-
import "../chunk-GAK4SC2F.mjs";
|
|
6
4
|
import {
|
|
7
5
|
Icon
|
|
8
6
|
} from "../chunk-UMUMFMFB.mjs";
|
|
7
|
+
import "../chunk-2YM6GKWW.mjs";
|
|
8
|
+
import "../chunk-GAK4SC2F.mjs";
|
|
9
9
|
import "../chunk-KEGAAGJW.mjs";
|
|
10
|
-
import
|
|
11
|
-
Slot
|
|
12
|
-
} from "../chunk-6QCEPQ3U.mjs";
|
|
10
|
+
import "../chunk-6QCEPQ3U.mjs";
|
|
13
11
|
|
|
14
12
|
// src/drawer/Drawer.tsx
|
|
15
|
-
import { Dialog as
|
|
13
|
+
import { Dialog as RadixDrawer } from "radix-ui";
|
|
16
14
|
|
|
17
15
|
// src/drawer/DrawerContext.tsx
|
|
18
16
|
import { createContext, useContext } from "react";
|
|
@@ -42,12 +40,7 @@ var useDrawer = () => {
|
|
|
42
40
|
|
|
43
41
|
// src/drawer/Drawer.tsx
|
|
44
42
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
45
|
-
var Drawer = ({
|
|
46
|
-
const handleOpenChange = onOpenChange ? (open, _eventDetails) => {
|
|
47
|
-
onOpenChange(open);
|
|
48
|
-
} : void 0;
|
|
49
|
-
return /* @__PURE__ */ jsx2(DrawerProvider, { withFade, children: /* @__PURE__ */ jsx2(BaseDialog.Root, { "data-spark-component": "drawer", onOpenChange: handleOpenChange, ...props }) });
|
|
50
|
-
};
|
|
43
|
+
var Drawer = ({ children, withFade = false, ...rest }) => /* @__PURE__ */ jsx2(DrawerProvider, { withFade, children: /* @__PURE__ */ jsx2(RadixDrawer.Root, { ...rest, children }) });
|
|
51
44
|
Drawer.displayName = "Drawer.Root";
|
|
52
45
|
|
|
53
46
|
// src/drawer/DrawerBody.tsx
|
|
@@ -110,35 +103,23 @@ import { Close as CloseSVG } from "@spark-ui/icons/Close";
|
|
|
110
103
|
import { cx } from "class-variance-authority";
|
|
111
104
|
|
|
112
105
|
// src/drawer/DrawerClose.tsx
|
|
113
|
-
import { Dialog as
|
|
114
|
-
|
|
115
|
-
// src/drawer/useRenderSlot.tsx
|
|
106
|
+
import { Dialog as RadixDrawer2 } from "radix-ui";
|
|
116
107
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
117
|
-
|
|
118
|
-
const Component = asChild ? Slot : defaultTag;
|
|
119
|
-
return asChild ? ({ ...props }) => /* @__PURE__ */ jsx4(Component, { ...props }) : void 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// src/drawer/DrawerClose.tsx
|
|
123
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
124
|
-
var DrawerClose = ({ asChild = false, ...props }) => {
|
|
125
|
-
const renderSlot = useRenderSlot(asChild, "button");
|
|
126
|
-
return /* @__PURE__ */ jsx5(BaseDialog2.Close, { "data-spark-component": "drawer-close", render: renderSlot, ...props });
|
|
127
|
-
};
|
|
108
|
+
var DrawerClose = (props) => /* @__PURE__ */ jsx4(RadixDrawer2.Close, { "data-spark-component": "drawer-close", ...props });
|
|
128
109
|
DrawerClose.displayName = "Drawer.Close";
|
|
129
110
|
|
|
130
111
|
// src/drawer/DrawerCloseButton.tsx
|
|
131
|
-
import { jsx as
|
|
112
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
132
113
|
var DrawerCloseButton = ({
|
|
133
114
|
"aria-label": ariaLabel,
|
|
134
115
|
className,
|
|
135
116
|
size = "md",
|
|
136
117
|
intent = "neutral",
|
|
137
118
|
design = "ghost",
|
|
138
|
-
children = /* @__PURE__ */
|
|
119
|
+
children = /* @__PURE__ */ jsx5(CloseSVG, {}),
|
|
139
120
|
ref,
|
|
140
121
|
...rest
|
|
141
|
-
}) => /* @__PURE__ */
|
|
122
|
+
}) => /* @__PURE__ */ jsx5(
|
|
142
123
|
DrawerClose,
|
|
143
124
|
{
|
|
144
125
|
"data-spark-component": "drawer-close-button",
|
|
@@ -146,22 +127,20 @@ var DrawerCloseButton = ({
|
|
|
146
127
|
className: cx(["absolute", "top-sm", "right-xl"], className),
|
|
147
128
|
asChild: true,
|
|
148
129
|
...rest,
|
|
149
|
-
children: /* @__PURE__ */
|
|
130
|
+
children: /* @__PURE__ */ jsx5(IconButton, { intent, size, design, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx5(Icon, { children }) })
|
|
150
131
|
}
|
|
151
132
|
);
|
|
152
133
|
DrawerCloseButton.displayName = "Drawer.CloseButton";
|
|
153
134
|
|
|
154
135
|
// src/drawer/DrawerContent.tsx
|
|
155
|
-
import { Dialog as
|
|
156
|
-
import { cx as cx2 } from "class-variance-authority";
|
|
136
|
+
import { Dialog as RadixDrawer3 } from "radix-ui";
|
|
157
137
|
|
|
158
138
|
// src/drawer/DrawerContent.styles.tsx
|
|
159
139
|
import { cva as cva2 } from "class-variance-authority";
|
|
160
140
|
var drawerContentStyles = cva2(
|
|
161
141
|
[
|
|
162
142
|
"fixed z-modal flex flex-col bg-surface shadow-md",
|
|
163
|
-
|
|
164
|
-
"data-open:animation-duration-400 data-closed:animation-duration-200"
|
|
143
|
+
"data-[state=open]:animation-duration-400 data-[state=closed]:animation-duration-200"
|
|
165
144
|
],
|
|
166
145
|
{
|
|
167
146
|
variants: {
|
|
@@ -175,25 +154,25 @@ var drawerContentStyles = cva2(
|
|
|
175
154
|
side: {
|
|
176
155
|
right: [
|
|
177
156
|
"inset-y-0 right-0",
|
|
178
|
-
"data-open:animate-slide-in-right ",
|
|
179
|
-
"data-closed:animate-slide-out-right"
|
|
157
|
+
"data-[state=open]:animate-slide-in-right ",
|
|
158
|
+
"data-[state=closed]:animate-slide-out-right"
|
|
180
159
|
],
|
|
181
160
|
left: [
|
|
182
161
|
"inset-y-0 left-0",
|
|
183
|
-
"data-open:animate-slide-in-left",
|
|
184
|
-
"data-closed:animate-slide-out-left"
|
|
162
|
+
"data-[state=open]:animate-slide-in-left",
|
|
163
|
+
"data-[state=closed]:animate-slide-out-left"
|
|
185
164
|
],
|
|
186
165
|
top: [
|
|
187
166
|
"top-0 left-0",
|
|
188
167
|
"w-screen",
|
|
189
|
-
"data-open:animate-slide-in-top",
|
|
190
|
-
"data-closed:animate-slide-out-top"
|
|
168
|
+
"data-[state=open]:animate-slide-in-top",
|
|
169
|
+
"data-[state=closed]:animate-slide-out-top"
|
|
191
170
|
],
|
|
192
171
|
bottom: [
|
|
193
172
|
"bottom-0 left-0",
|
|
194
173
|
"w-screen",
|
|
195
|
-
"data-open:animate-slide-in-bottom",
|
|
196
|
-
"data-closed:animate-slide-out-bottom"
|
|
174
|
+
"data-[state=open]:animate-slide-in-bottom",
|
|
175
|
+
"data-[state=closed]:animate-slide-out-bottom"
|
|
197
176
|
]
|
|
198
177
|
}
|
|
199
178
|
},
|
|
@@ -247,7 +226,7 @@ var drawerContentStyles = cva2(
|
|
|
247
226
|
);
|
|
248
227
|
|
|
249
228
|
// src/drawer/DrawerContent.tsx
|
|
250
|
-
import { jsx as
|
|
229
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
251
230
|
var DrawerContent = ({
|
|
252
231
|
className,
|
|
253
232
|
size = "md",
|
|
@@ -255,71 +234,62 @@ var DrawerContent = ({
|
|
|
255
234
|
onInteractOutside,
|
|
256
235
|
ref,
|
|
257
236
|
...rest
|
|
258
|
-
}) =>
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
})
|
|
279
|
-
),
|
|
280
|
-
...handleInteractOutside && { onInteractOutside: handleInteractOutside },
|
|
281
|
-
...rest
|
|
282
|
-
}
|
|
283
|
-
);
|
|
284
|
-
};
|
|
237
|
+
}) => /* @__PURE__ */ jsx6(
|
|
238
|
+
RadixDrawer3.Content,
|
|
239
|
+
{
|
|
240
|
+
"data-spark-component": "drawer-content",
|
|
241
|
+
ref,
|
|
242
|
+
className: drawerContentStyles({
|
|
243
|
+
size,
|
|
244
|
+
side,
|
|
245
|
+
className
|
|
246
|
+
}),
|
|
247
|
+
onInteractOutside: (e) => {
|
|
248
|
+
const isForegroundElement = e.target.closest(".z-toast, .z-popover");
|
|
249
|
+
if (isForegroundElement) {
|
|
250
|
+
e.preventDefault();
|
|
251
|
+
}
|
|
252
|
+
onInteractOutside?.(e);
|
|
253
|
+
},
|
|
254
|
+
...rest
|
|
255
|
+
}
|
|
256
|
+
);
|
|
285
257
|
DrawerContent.displayName = "Drawer.Content";
|
|
286
258
|
|
|
287
259
|
// src/drawer/DrawerDescription.tsx
|
|
288
|
-
import { Dialog as
|
|
289
|
-
import { jsx as
|
|
290
|
-
var DrawerDescription = (props) => {
|
|
291
|
-
return /* @__PURE__ */ jsx8(BaseDialog4.Description, { "data-spark-component": "drawer-description", ...props });
|
|
292
|
-
};
|
|
260
|
+
import { Dialog as RadixDrawer4 } from "radix-ui";
|
|
261
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
262
|
+
var DrawerDescription = (props) => /* @__PURE__ */ jsx7(RadixDrawer4.Description, { "data-spark-component": "drawer-description", ...props });
|
|
293
263
|
DrawerDescription.displayName = "Drawer.Description";
|
|
294
264
|
|
|
295
265
|
// src/drawer/DrawerFooter.tsx
|
|
296
|
-
import { cx as
|
|
297
|
-
import { jsx as
|
|
298
|
-
var DrawerFooter = ({ className, ref, ...rest }) => /* @__PURE__ */
|
|
266
|
+
import { cx as cx2 } from "class-variance-authority";
|
|
267
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
268
|
+
var DrawerFooter = ({ className, ref, ...rest }) => /* @__PURE__ */ jsx8(
|
|
299
269
|
"footer",
|
|
300
270
|
{
|
|
301
271
|
"data-spark-component": "drawer-footer",
|
|
302
272
|
ref,
|
|
303
|
-
className:
|
|
273
|
+
className: cx2(["px-xl", "py-lg"], className),
|
|
304
274
|
...rest
|
|
305
275
|
}
|
|
306
276
|
);
|
|
307
277
|
DrawerFooter.displayName = "Drawer.Footer";
|
|
308
278
|
|
|
309
279
|
// src/drawer/DrawerHeader.tsx
|
|
310
|
-
import { cx as
|
|
311
|
-
import { jsx as
|
|
280
|
+
import { cx as cx3 } from "class-variance-authority";
|
|
281
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
312
282
|
var DrawerHeader = ({
|
|
313
283
|
children,
|
|
314
284
|
className,
|
|
315
285
|
ref,
|
|
316
286
|
...rest
|
|
317
|
-
}) => /* @__PURE__ */
|
|
287
|
+
}) => /* @__PURE__ */ jsx9(
|
|
318
288
|
"header",
|
|
319
289
|
{
|
|
320
290
|
"data-spark-component": "drawer-header",
|
|
321
291
|
ref,
|
|
322
|
-
className:
|
|
292
|
+
className: cx3(["px-xl", "py-lg"], className),
|
|
323
293
|
...rest,
|
|
324
294
|
children
|
|
325
295
|
}
|
|
@@ -327,59 +297,51 @@ var DrawerHeader = ({
|
|
|
327
297
|
DrawerHeader.displayName = "Dialog.Header";
|
|
328
298
|
|
|
329
299
|
// src/drawer/DrawerOverlay.tsx
|
|
330
|
-
import {
|
|
331
|
-
import {
|
|
332
|
-
import { jsx as
|
|
333
|
-
var DrawerOverlay = ({ className, ...
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
);
|
|
349
|
-
};
|
|
300
|
+
import { cx as cx4 } from "class-variance-authority";
|
|
301
|
+
import { Dialog as RadixDrawer5 } from "radix-ui";
|
|
302
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
303
|
+
var DrawerOverlay = ({ className, ref, ...rest }) => /* @__PURE__ */ jsx10(
|
|
304
|
+
RadixDrawer5.Overlay,
|
|
305
|
+
{
|
|
306
|
+
"data-spark-component": "drawer-overlay",
|
|
307
|
+
ref,
|
|
308
|
+
className: cx4(
|
|
309
|
+
["fixed", "top-0", "left-0", "w-screen", "h-screen", "z-overlay"],
|
|
310
|
+
["bg-overlay/dim-1"],
|
|
311
|
+
["data-[state=open]:animate-fade-in"],
|
|
312
|
+
["data-[state=closed]:animate-fade-out"],
|
|
313
|
+
className
|
|
314
|
+
),
|
|
315
|
+
...rest
|
|
316
|
+
}
|
|
317
|
+
);
|
|
350
318
|
DrawerOverlay.displayName = "Drawer.Overlay";
|
|
351
319
|
|
|
352
320
|
// src/drawer/DrawerPortal.tsx
|
|
353
|
-
import { Dialog as
|
|
354
|
-
import { jsx as
|
|
355
|
-
var DrawerPortal = (
|
|
356
|
-
return /* @__PURE__ */ jsx12(BaseDialog6.Portal, { "data-spark-component": "drawer-portal", ...props });
|
|
357
|
-
};
|
|
321
|
+
import { Dialog as RadixDrawer6 } from "radix-ui";
|
|
322
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
323
|
+
var DrawerPortal = ({ children, ...rest }) => /* @__PURE__ */ jsx11(RadixDrawer6.Portal, { ...rest, children });
|
|
358
324
|
DrawerPortal.displayName = "Drawer.Portal";
|
|
359
325
|
|
|
360
326
|
// src/drawer/DrawerTitle.tsx
|
|
361
|
-
import {
|
|
362
|
-
import {
|
|
363
|
-
import { jsx as
|
|
364
|
-
var DrawerTitle = ({ className, ...
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
};
|
|
327
|
+
import { cx as cx5 } from "class-variance-authority";
|
|
328
|
+
import { Dialog as RadixDrawer7 } from "radix-ui";
|
|
329
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
330
|
+
var DrawerTitle = ({ className, ref, ...others }) => /* @__PURE__ */ jsx12(
|
|
331
|
+
RadixDrawer7.Title,
|
|
332
|
+
{
|
|
333
|
+
"data-spark-component": "drawer-title",
|
|
334
|
+
ref,
|
|
335
|
+
className: cx5("text-headline-2 text-on-surface", className),
|
|
336
|
+
...others
|
|
337
|
+
}
|
|
338
|
+
);
|
|
374
339
|
DrawerTitle.displayName = "Drawer.Title";
|
|
375
340
|
|
|
376
341
|
// src/drawer/DrawerTrigger.tsx
|
|
377
|
-
import { Dialog as
|
|
378
|
-
import { jsx as
|
|
379
|
-
var DrawerTrigger = (
|
|
380
|
-
const renderSlot = useRenderSlot(asChild, "button");
|
|
381
|
-
return /* @__PURE__ */ jsx14(BaseDialog8.Trigger, { "data-spark-component": "drawer-trigger", render: renderSlot, ...props });
|
|
382
|
-
};
|
|
342
|
+
import { Dialog as RadixDrawer8 } from "radix-ui";
|
|
343
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
344
|
+
var DrawerTrigger = (props) => /* @__PURE__ */ jsx13(RadixDrawer8.Trigger, { "data-spark-component": "drawer-trigger", ...props });
|
|
383
345
|
DrawerTrigger.displayName = "Drawer.Trigger";
|
|
384
346
|
|
|
385
347
|
// src/drawer/index.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/drawer/Drawer.tsx","../../src/drawer/DrawerContext.tsx","../../src/drawer/DrawerBody.tsx","../../src/drawer/DrawerBody.styles.ts","../../src/drawer/DrawerCloseButton.tsx","../../src/drawer/DrawerClose.tsx","../../src/drawer/useRenderSlot.tsx","../../src/drawer/DrawerContent.tsx","../../src/drawer/DrawerContent.styles.tsx","../../src/drawer/DrawerDescription.tsx","../../src/drawer/DrawerFooter.tsx","../../src/drawer/DrawerHeader.tsx","../../src/drawer/DrawerOverlay.tsx","../../src/drawer/DrawerPortal.tsx","../../src/drawer/DrawerTitle.tsx","../../src/drawer/DrawerTrigger.tsx","../../src/drawer/index.ts"],"sourcesContent":["import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { ComponentProps, type ReactElement } from 'react'\n\nimport { DrawerProvider } from './DrawerContext'\n\nexport interface DrawerProps\n extends Omit<ComponentProps<typeof BaseDialog.Root>, 'onOpenChange' | 'render'> {\n /**\n * Specifies if the dialog is open or not.\n */\n open?: boolean\n /**\n * Default open state.\n */\n defaultOpen?: boolean\n /**\n * Handler executed on every dialog open state change.\n */\n onOpenChange?: (open: boolean) => void\n /**\n * Specifies if the dialog is a modal.\n */\n modal?: boolean\n /**\n * Specifies if the drawer should have a fade animation on its body (in case it is scrollable).\n */\n withFade?: boolean\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean\n}\n\nexport const Drawer = ({ onOpenChange, withFade = false, ...props }: DrawerProps): ReactElement => {\n const handleOpenChange = onOpenChange\n ? (open: boolean, _eventDetails: unknown) => {\n onOpenChange(open)\n }\n : undefined\n\n return (\n <DrawerProvider withFade={withFade}>\n <BaseDialog.Root data-spark-component=\"drawer\" onOpenChange={handleOpenChange} {...props} />\n </DrawerProvider>\n )\n}\n\nDrawer.displayName = 'Drawer.Root'\n","import { createContext, type ReactNode, useContext } from 'react'\n\nexport interface DrawerContextState {\n withFade: boolean\n}\n\nconst DrawerContext = createContext<DrawerContextState | null>(null)\n\nexport const DrawerProvider = ({\n children: childrenProp,\n withFade = false,\n}: {\n children: ReactNode\n withFade?: boolean\n}) => {\n return (\n <DrawerContext.Provider\n value={{\n withFade,\n }}\n >\n {childrenProp}\n </DrawerContext.Provider>\n )\n}\n\nexport const useDrawer = () => {\n const context = useContext(DrawerContext)\n\n if (!context) {\n throw Error('useDrawer must be used within a Drawer provider')\n }\n\n return context\n}\n","import { useMergeRefs } from '@spark-ui/hooks/use-merge-refs'\nimport { useScrollOverflow } from '@spark-ui/hooks/use-scroll-overflow'\nimport { type ReactNode, Ref, useRef } from 'react'\n\nimport { drawerBodyStyles, type DrawerBodyStylesProps } from './DrawerBody.styles'\nimport { useDrawer } from './DrawerContext'\n\nexport interface DrawerBodyProps extends DrawerBodyStylesProps {\n children: ReactNode\n className?: string\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerBody = ({\n children,\n inset = false,\n className,\n ref: forwardedRef,\n ...rest\n}: DrawerBodyProps) => {\n const scrollAreaRef = useRef<HTMLDivElement>(null)\n const ref = useMergeRefs(forwardedRef, scrollAreaRef)\n\n const { withFade } = useDrawer()\n\n const { overflow } = useScrollOverflow(scrollAreaRef)\n\n return (\n <div\n data-spark-component=\"drawer-body\"\n ref={ref}\n className={drawerBodyStyles({ inset, className })}\n style={{\n ...(withFade && {\n maskImage:\n 'linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 44px, rgba(0, 0, 0, 1) calc(100% - 44px), rgba(0, 0, 0, 0))',\n maskSize: `100% calc(100% + ${overflow.top ? '0px' : '44px'} + ${overflow.bottom ? '0px' : '44px'})`,\n maskPosition: `0 ${overflow.top ? '0px' : '-44px'}`,\n }),\n }}\n {...rest}\n >\n {children}\n </div>\n )\n}\n\nDrawerBody.displayName = 'Drawer.Body'\n","import { cva, VariantProps } from 'class-variance-authority'\n\nexport const drawerBodyStyles = cva(\n ['grow', 'overflow-y-auto', 'outline-hidden', 'focus-visible:u-outline'],\n {\n variants: {\n inset: {\n true: '',\n false: 'px-xl py-lg',\n },\n },\n defaultVariants: {\n inset: false,\n },\n }\n)\n\nexport type DrawerBodyStylesProps = VariantProps<typeof drawerBodyStyles>\n","import { Close as CloseSVG } from '@spark-ui/icons/Close'\nimport { cx } from 'class-variance-authority'\n\nimport { Icon } from '../icon'\nimport { IconButton, type IconButtonProps } from '../icon-button'\nimport { DrawerClose, type DrawerCloseProps } from './DrawerClose'\n\nexport type DrawerCloseButtonProps = DrawerCloseProps &\n Pick<IconButtonProps, 'size' | 'intent' | 'design' | 'aria-label'>\n\nexport const DrawerCloseButton = ({\n 'aria-label': ariaLabel,\n className,\n size = 'md',\n intent = 'neutral',\n design = 'ghost',\n children = <CloseSVG />,\n ref,\n ...rest\n}: DrawerCloseButtonProps) => (\n <DrawerClose\n data-spark-component=\"drawer-close-button\"\n ref={ref}\n className={cx(['absolute', 'top-sm', 'right-xl'], className)}\n asChild\n {...rest}\n >\n <IconButton intent={intent} size={size} design={design} aria-label={ariaLabel}>\n <Icon>{children}</Icon>\n </IconButton>\n </DrawerClose>\n)\n\nDrawerCloseButton.displayName = 'Drawer.CloseButton'\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { ComponentProps, Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface DrawerCloseProps extends Omit<ComponentProps<typeof BaseDialog.Close>, 'render'> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean\n ref?: Ref<HTMLButtonElement>\n}\n\nexport const DrawerClose = ({ asChild = false, ...props }: DrawerCloseProps) => {\n const renderSlot = useRenderSlot(asChild, 'button')\n\n return <BaseDialog.Close data-spark-component=\"drawer-close\" render={renderSlot} {...props} />\n}\n\nDrawerClose.displayName = 'Drawer.Close'\n","import { Slot } from '../slot'\n\nexport function useRenderSlot(asChild: boolean, defaultTag: string) {\n const Component = asChild ? Slot : defaultTag\n\n return asChild ? ({ ...props }) => <Component {...props} /> : undefined\n}\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { cx } from 'class-variance-authority'\nimport { ComponentProps, Ref } from 'react'\n\nimport { drawerContentStyles, type DrawerContentStylesProps } from './DrawerContent.styles'\n\nexport interface DrawerContentProps\n extends Omit<ComponentProps<typeof BaseDialog.Popup>, 'render' | 'onInteractOutside'>,\n DrawerContentStylesProps {\n ref?: Ref<HTMLDivElement>\n /**\n * Handler called when the user clicks outside the drawer.\n */\n onInteractOutside?: (event: PointerEvent) => void\n}\n\nexport const DrawerContent = ({\n className,\n size = 'md',\n side = 'right',\n onInteractOutside,\n ref,\n ...rest\n}: DrawerContentProps) => {\n // Base UI Dialog doesn't support onInteractOutside directly\n // We'll handle it via a custom approach if needed\n // For now, we'll pass it through in case Base UI adds support\n const handleInteractOutside = onInteractOutside\n ? (event: Event) => {\n const e = event as PointerEvent\n const isForegroundElement = (e.target as HTMLElement)?.closest('.z-toast, .z-popover')\n\n /**\n * The focus trap of the drawer applies `pointer-events-none` on the body of the page in the background, but\n * some components with an higher z-index have `pointer-events-auto` applied on them to remain interactive and ignore the focust trap (ex: a Snackbar with actions).\n *\n * Clicking on the snackbar will be considered as an \"outside click\" and close the drawer. We want to prevent this.\n */\n if (isForegroundElement) {\n e.preventDefault()\n }\n\n onInteractOutside?.(e)\n }\n : undefined\n\n return (\n <BaseDialog.Popup\n ref={ref}\n data-spark-component=\"drawer-content\"\n role=\"dialog\"\n className={state =>\n cx(\n drawerContentStyles({\n size,\n side,\n className: typeof className === 'function' ? className(state) : className,\n })\n )\n }\n {...(handleInteractOutside && { onInteractOutside: handleInteractOutside })}\n {...rest}\n />\n )\n}\n\nDrawerContent.displayName = 'Drawer.Content'\n","import { cva, VariantProps } from 'class-variance-authority'\n\nexport const drawerContentStyles = cva(\n [\n 'fixed z-modal flex flex-col bg-surface shadow-md',\n // Base UI uses data-open and data-closed for transitions\n 'data-open:animation-duration-400 data-closed:animation-duration-200',\n ],\n {\n variants: {\n size: {\n sm: '',\n md: '',\n lg: '',\n fluid: '',\n fullscreen: 'h-screen w-screen',\n },\n side: {\n right: [\n 'inset-y-0 right-0',\n 'data-open:animate-slide-in-right ',\n 'data-closed:animate-slide-out-right',\n ],\n left: [\n 'inset-y-0 left-0',\n 'data-open:animate-slide-in-left',\n 'data-closed:animate-slide-out-left',\n ],\n top: [\n 'top-0 left-0',\n 'w-screen',\n 'data-open:animate-slide-in-top',\n 'data-closed:animate-slide-out-top',\n ],\n bottom: [\n 'bottom-0 left-0',\n 'w-screen',\n 'data-open:animate-slide-in-bottom',\n 'data-closed:animate-slide-out-bottom',\n ],\n },\n },\n compoundVariants: [\n {\n side: ['right', 'left'],\n size: 'sm',\n class: ['w-sz-480', 'max-w-full'],\n },\n {\n side: ['right', 'left'],\n size: 'md',\n class: ['w-sz-672', 'max-w-full'],\n },\n {\n side: ['right', 'left'],\n size: 'lg',\n class: ['w-sz-864', 'max-w-full'],\n },\n {\n side: ['left', 'right'],\n size: 'fluid',\n class: ['w-auto', 'max-w-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'sm',\n class: ['h-sz-480', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'md',\n class: ['h-sz-672', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'lg',\n class: ['h-sz-864', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'fluid',\n class: ['h-auto', 'max-h-full'],\n },\n ],\n defaultVariants: {\n side: 'right',\n size: 'md',\n },\n }\n)\n\nexport type DrawerContentStylesProps = VariantProps<typeof drawerContentStyles>\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { ComponentProps, Ref } from 'react'\n\nexport interface DrawerDescriptionProps\n extends Omit<ComponentProps<typeof BaseDialog.Description>, 'render'> {\n ref?: Ref<HTMLParagraphElement>\n}\n\nexport const DrawerDescription = (props: DrawerDescriptionProps) => {\n return <BaseDialog.Description data-spark-component=\"drawer-description\" {...props} />\n}\n\nDrawerDescription.displayName = 'Drawer.Description'\n","import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithoutRef, type ReactElement, Ref } from 'react'\n\nexport type DrawerFooterProps = ComponentPropsWithoutRef<'footer'> & {\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerFooter = ({ className, ref, ...rest }: DrawerFooterProps): ReactElement => (\n <footer\n data-spark-component=\"drawer-footer\"\n ref={ref}\n className={cx(['px-xl', 'py-lg'], className)}\n {...rest}\n />\n)\n\nDrawerFooter.displayName = 'Drawer.Footer'\n","import { cx } from 'class-variance-authority'\nimport { type ReactElement, type ReactNode, Ref } from 'react'\n\nexport interface DrawerHeaderProps {\n children: ReactNode\n className?: string\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerHeader = ({\n children,\n className,\n ref,\n ...rest\n}: DrawerHeaderProps): ReactElement => (\n <header\n data-spark-component=\"drawer-header\"\n ref={ref}\n className={cx(['px-xl', 'py-lg'], className)}\n {...rest}\n >\n {children}\n </header>\n)\n\nDrawerHeader.displayName = 'Dialog.Header'\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { cx } from 'class-variance-authority'\nimport { ComponentProps, Ref } from 'react'\n\nexport interface DrawerOverlayProps\n extends Omit<ComponentProps<typeof BaseDialog.Backdrop>, 'render'> {\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerOverlay = ({ className, ...props }: DrawerOverlayProps) => {\n return (\n <BaseDialog.Backdrop\n data-spark-component=\"drawer-overlay\"\n className={state =>\n cx(\n 'z-overlay fixed top-0 left-0 h-screen w-screen',\n 'bg-overlay/dim-1',\n // Base UI automatically adds data-[starting-style] and data-[ending-style] attributes\n 'data-[starting-style]:animate-fade-in',\n 'data-[ending-style]:animate-fade-out',\n typeof className === 'function' ? className(state) : className\n )\n }\n {...props}\n />\n )\n}\n\nDrawerOverlay.displayName = 'Drawer.Overlay'\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { ComponentProps } from 'react'\n\nexport type DrawerPortalProps = ComponentProps<typeof BaseDialog.Portal>\n\nexport const DrawerPortal = (props: DrawerPortalProps) => {\n return <BaseDialog.Portal data-spark-component=\"drawer-portal\" {...props} />\n}\n\nDrawerPortal.displayName = 'Drawer.Portal'\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { cx } from 'class-variance-authority'\nimport { ComponentProps, Ref } from 'react'\n\nexport interface DrawerTitleProps extends Omit<ComponentProps<typeof BaseDialog.Title>, 'render'> {\n ref?: Ref<HTMLHeadingElement>\n}\n\nexport const DrawerTitle = ({ className, ...props }: DrawerTitleProps) => {\n return (\n <BaseDialog.Title\n data-spark-component=\"drawer-title\"\n className={cx('text-headline-2 text-on-surface', className)}\n {...props}\n />\n )\n}\n\nDrawerTitle.displayName = 'Drawer.Title'\n","import { Dialog as BaseDialog } from '@base-ui-components/react/dialog'\nimport { ComponentProps, Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface DrawerTriggerProps\n extends Omit<ComponentProps<typeof BaseDialog.Trigger>, 'render'> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean\n ref?: Ref<HTMLButtonElement>\n}\n\nexport const DrawerTrigger = ({ asChild = false, ...props }: DrawerTriggerProps) => {\n const renderSlot = useRenderSlot(asChild, 'button')\n\n return <BaseDialog.Trigger data-spark-component=\"drawer-trigger\" render={renderSlot} {...props} />\n}\n\nDrawerTrigger.displayName = 'Drawer.Trigger'\n","import { Drawer as Root } from './Drawer'\nimport { DrawerBody } from './DrawerBody'\nimport { DrawerCloseButton } from './DrawerCloseButton'\nimport { DrawerContent } from './DrawerContent'\nimport { DrawerDescription } from './DrawerDescription' // aria-describedby\nimport { DrawerFooter } from './DrawerFooter'\nimport { DrawerHeader } from './DrawerHeader'\nimport { DrawerOverlay } from './DrawerOverlay'\nimport { DrawerPortal } from './DrawerPortal'\nimport { DrawerTitle } from './DrawerTitle'\nimport { DrawerTrigger } from './DrawerTrigger'\n\nexport const Drawer: typeof Root & {\n Trigger: typeof DrawerTrigger\n Portal: typeof DrawerPortal\n Overlay: typeof DrawerOverlay\n Content: typeof DrawerContent\n Header: typeof DrawerHeader\n Body: typeof DrawerBody\n Footer: typeof DrawerFooter\n CloseButton: typeof DrawerCloseButton\n Title: typeof DrawerTitle\n Description: typeof DrawerDescription\n} = Object.assign(Root, {\n Trigger: DrawerTrigger,\n Portal: DrawerPortal,\n Overlay: DrawerOverlay,\n Content: DrawerContent,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n CloseButton: DrawerCloseButton,\n Title: DrawerTitle,\n Description: DrawerDescription,\n})\n\nDrawer.displayName = 'Drawer'\nDrawerTrigger.displayName = 'Drawer.Trigger'\nDrawerPortal.displayName = 'Drawer.Portal'\nDrawerOverlay.displayName = 'Drawer.Overlay'\nDrawerContent.displayName = 'Drawer.Content'\nDrawerHeader.displayName = 'Drawer.Header'\nDrawerBody.displayName = 'Drawer.Body'\nDrawerFooter.displayName = 'Drawer.Footer'\nDrawerCloseButton.displayName = 'Drawer.CloseButton'\nDrawerTitle.displayName = 'Drawer.Title'\nDrawerDescription.displayName = 'Drawer.Description'\n\nexport { type DrawerProps } from './Drawer'\nexport { type DrawerContentProps } from './DrawerContent'\nexport { type DrawerHeaderProps } from './DrawerHeader'\nexport { type DrawerBodyProps } from './DrawerBody'\nexport { type DrawerFooterProps } from './DrawerFooter'\nexport { type DrawerTriggerProps } from './DrawerTrigger'\nexport { type DrawerOverlayProps } from './DrawerOverlay'\nexport { type DrawerPortalProps } from './DrawerPortal'\nexport { type DrawerTitleProps } from './DrawerTitle'\nexport { type DrawerDescriptionProps } from './DrawerDescription'\nexport { type DrawerCloseProps } from './DrawerClose'\nexport { type DrawerCloseButtonProps } from './DrawerCloseButton'\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,UAAU,kBAAkB;;;ACArC,SAAS,eAA+B,kBAAkB;AAgBtD;AAVJ,IAAM,gBAAgB,cAAyC,IAAI;AAE5D,IAAM,iBAAiB,CAAC;AAAA,EAC7B,UAAU;AAAA,EACV,WAAW;AACb,MAGM;AACJ,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,OAAO;AAAA,QACL;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,YAAY,MAAM;AAC7B,QAAM,UAAU,WAAW,aAAa;AAExC,MAAI,CAAC,SAAS;AACZ,UAAM,MAAM,iDAAiD;AAAA,EAC/D;AAEA,SAAO;AACT;;;ADQM,gBAAAA,YAAA;AATC,IAAM,SAAS,CAAC,EAAE,cAAc,WAAW,OAAO,GAAG,MAAM,MAAiC;AACjG,QAAM,mBAAmB,eACrB,CAAC,MAAe,kBAA2B;AACzC,iBAAa,IAAI;AAAA,EACnB,IACA;AAEJ,SACE,gBAAAA,KAAC,kBAAe,UACd,0BAAAA,KAAC,WAAW,MAAX,EAAgB,wBAAqB,UAAS,cAAc,kBAAmB,GAAG,OAAO,GAC5F;AAEJ;AAEA,OAAO,cAAc;;;AE/CrB,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAClC,SAA8B,cAAc;;;ACF5C,SAAS,WAAyB;AAE3B,IAAM,mBAAmB;AAAA,EAC9B,CAAC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QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,aAAa;AACf,CAAC;AAEDA,QAAO,cAAc;AACrB,cAAc,cAAc;AAC5B,aAAa,cAAc;AAC3B,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,aAAa,cAAc;AAC3B,WAAW,cAAc;AACzB,aAAa,cAAc;AAC3B,kBAAkB,cAAc;AAChC,YAAY,cAAc;AAC1B,kBAAkB,cAAc;","names":["jsx","jsx","BaseDialog","jsx","jsx","BaseDialog","jsx","BaseDialog","cx","cva","jsx","BaseDialog","cx","BaseDialog","jsx","cx","jsx","cx","jsx","BaseDialog","cx","jsx","BaseDialog","jsx","BaseDialog","cx","jsx","BaseDialog","jsx","BaseDialog","Drawer"]}
|
|
1
|
+
{"version":3,"sources":["../../src/drawer/Drawer.tsx","../../src/drawer/DrawerContext.tsx","../../src/drawer/DrawerBody.tsx","../../src/drawer/DrawerBody.styles.ts","../../src/drawer/DrawerCloseButton.tsx","../../src/drawer/DrawerClose.tsx","../../src/drawer/DrawerContent.tsx","../../src/drawer/DrawerContent.styles.tsx","../../src/drawer/DrawerDescription.tsx","../../src/drawer/DrawerFooter.tsx","../../src/drawer/DrawerHeader.tsx","../../src/drawer/DrawerOverlay.tsx","../../src/drawer/DrawerPortal.tsx","../../src/drawer/DrawerTitle.tsx","../../src/drawer/DrawerTrigger.tsx","../../src/drawer/index.ts"],"sourcesContent":["import { Dialog as RadixDrawer } from 'radix-ui'\nimport { type ReactElement, ReactNode } from 'react'\n\nimport { DrawerProvider } from './DrawerContext'\n\nexport interface DrawerProps {\n /**\n * Children of the component.\n */\n children?: RadixDrawer.DialogProps['children']\n /**\n * Specifies if the dialog is open or not.\n */\n open?: RadixDrawer.DialogProps['open']\n /**\n * Default open state.\n */\n defaultOpen?: RadixDrawer.DialogProps['defaultOpen']\n /**\n * Handler executed on every dialog open state change.\n */\n onOpenChange?: RadixDrawer.DialogProps['onOpenChange']\n /**\n * Specifies if the dialog is a modal.\n */\n modal?: RadixDrawer.DialogProps['modal']\n /**\n * Specifies if the drawer should have a fade animation on its body (in case it is scrollable).\n */\n withFade?: boolean\n}\n\nexport interface DialogProps {\n children?: ReactNode\n open?: boolean\n defaultOpen?: boolean\n onOpenChange?(open: boolean): void\n modal?: boolean\n}\n\nexport const Drawer = ({ children, withFade = false, ...rest }: DrawerProps): ReactElement => (\n <DrawerProvider withFade={withFade}>\n <RadixDrawer.Root {...rest}>{children}</RadixDrawer.Root>\n </DrawerProvider>\n)\n\nDrawer.displayName = 'Drawer.Root'\n","import { createContext, type ReactNode, useContext } from 'react'\n\nexport interface DrawerContextState {\n withFade: boolean\n}\n\nconst DrawerContext = createContext<DrawerContextState | null>(null)\n\nexport const DrawerProvider = ({\n children: childrenProp,\n withFade = false,\n}: {\n children: ReactNode\n withFade?: boolean\n}) => {\n return (\n <DrawerContext.Provider\n value={{\n withFade,\n }}\n >\n {childrenProp}\n </DrawerContext.Provider>\n )\n}\n\nexport const useDrawer = () => {\n const context = useContext(DrawerContext)\n\n if (!context) {\n throw Error('useDrawer must be used within a Drawer provider')\n }\n\n return context\n}\n","import { useMergeRefs } from '@spark-ui/hooks/use-merge-refs'\nimport { useScrollOverflow } from '@spark-ui/hooks/use-scroll-overflow'\nimport { type ReactNode, Ref, useRef } from 'react'\n\nimport { drawerBodyStyles, type DrawerBodyStylesProps } from './DrawerBody.styles'\nimport { useDrawer } from './DrawerContext'\n\nexport interface DrawerBodyProps extends DrawerBodyStylesProps {\n children: ReactNode\n className?: string\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerBody = ({\n children,\n inset = false,\n className,\n ref: forwardedRef,\n ...rest\n}: DrawerBodyProps) => {\n const scrollAreaRef = useRef<HTMLDivElement>(null)\n const ref = useMergeRefs(forwardedRef, scrollAreaRef)\n\n const { withFade } = useDrawer()\n\n const { overflow } = useScrollOverflow(scrollAreaRef)\n\n return (\n <div\n data-spark-component=\"drawer-body\"\n ref={ref}\n className={drawerBodyStyles({ inset, className })}\n style={{\n ...(withFade && {\n maskImage:\n 'linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 44px, rgba(0, 0, 0, 1) calc(100% - 44px), rgba(0, 0, 0, 0))',\n maskSize: `100% calc(100% + ${overflow.top ? '0px' : '44px'} + ${overflow.bottom ? '0px' : '44px'})`,\n maskPosition: `0 ${overflow.top ? '0px' : '-44px'}`,\n }),\n }}\n {...rest}\n >\n {children}\n </div>\n )\n}\n\nDrawerBody.displayName = 'Drawer.Body'\n","import { cva, VariantProps } from 'class-variance-authority'\n\nexport const drawerBodyStyles = cva(\n ['grow', 'overflow-y-auto', 'outline-hidden', 'focus-visible:u-outline'],\n {\n variants: {\n inset: {\n true: '',\n false: 'px-xl py-lg',\n },\n },\n defaultVariants: {\n inset: false,\n },\n }\n)\n\nexport type DrawerBodyStylesProps = VariantProps<typeof drawerBodyStyles>\n","import { Close as CloseSVG } from '@spark-ui/icons/Close'\nimport { cx } from 'class-variance-authority'\n\nimport { Icon } from '../icon'\nimport { IconButton, type IconButtonProps } from '../icon-button'\nimport { DrawerClose, type DrawerCloseProps } from './DrawerClose'\n\nexport type DrawerCloseButtonProps = DrawerCloseProps &\n Pick<IconButtonProps, 'size' | 'intent' | 'design' | 'aria-label'>\n\nexport const DrawerCloseButton = ({\n 'aria-label': ariaLabel,\n className,\n size = 'md',\n intent = 'neutral',\n design = 'ghost',\n children = <CloseSVG />,\n ref,\n ...rest\n}: DrawerCloseButtonProps) => (\n <DrawerClose\n data-spark-component=\"drawer-close-button\"\n ref={ref}\n className={cx(['absolute', 'top-sm', 'right-xl'], className)}\n asChild\n {...rest}\n >\n <IconButton intent={intent} size={size} design={design} aria-label={ariaLabel}>\n <Icon>{children}</Icon>\n </IconButton>\n </DrawerClose>\n)\n\nDrawerCloseButton.displayName = 'Drawer.CloseButton'\n","import { Dialog as RadixDrawer } from 'radix-ui'\nimport { Ref } from 'react'\n\nexport type DrawerCloseProps = RadixDrawer.DialogCloseProps & {\n ref?: Ref<HTMLButtonElement>\n}\n\nexport const DrawerClose = (props: DrawerCloseProps) => (\n <RadixDrawer.Close data-spark-component=\"drawer-close\" {...props} />\n)\n\nDrawerClose.displayName = 'Drawer.Close'\n","import { Dialog as RadixDrawer } from 'radix-ui'\nimport { Ref } from 'react'\n\nimport { drawerContentStyles, type DrawerContentStylesProps } from './DrawerContent.styles'\n\nexport type DrawerContentProps = RadixDrawer.DialogContentProps &\n DrawerContentStylesProps & {\n ref?: Ref<HTMLDivElement>\n }\n\nexport const DrawerContent = ({\n className,\n size = 'md',\n side = 'right',\n onInteractOutside,\n ref,\n ...rest\n}: DrawerContentProps) => (\n <RadixDrawer.Content\n data-spark-component=\"drawer-content\"\n ref={ref}\n className={drawerContentStyles({\n size,\n side,\n className,\n })}\n onInteractOutside={e => {\n const isForegroundElement = (e.target as HTMLElement).closest('.z-toast, .z-popover')\n\n /**\n * The focus trap of the drawer applies `pointer-events-none` on the body of the page in the background, but\n * some components with an higher z-index have `pointer-events-auto` applied on them to remain interactive and ignore the focust trap (ex: a Snackbar with actions).\n *\n * Clicking on the snackbar will be considered as an \"outside click\" and close the drawer. We want to prevent this.\n */\n if (isForegroundElement) {\n e.preventDefault()\n }\n\n onInteractOutside?.(e)\n }}\n {...rest}\n />\n)\n\nDrawerContent.displayName = 'Drawer.Content'\n","import { cva, VariantProps } from 'class-variance-authority'\n\nexport const drawerContentStyles = cva(\n [\n 'fixed z-modal flex flex-col bg-surface shadow-md',\n 'data-[state=open]:animation-duration-400 data-[state=closed]:animation-duration-200',\n ],\n {\n variants: {\n size: {\n sm: '',\n md: '',\n lg: '',\n fluid: '',\n fullscreen: 'h-screen w-screen',\n },\n side: {\n right: [\n 'inset-y-0 right-0',\n 'data-[state=open]:animate-slide-in-right ',\n 'data-[state=closed]:animate-slide-out-right',\n ],\n left: [\n 'inset-y-0 left-0',\n 'data-[state=open]:animate-slide-in-left',\n 'data-[state=closed]:animate-slide-out-left',\n ],\n top: [\n 'top-0 left-0',\n 'w-screen',\n 'data-[state=open]:animate-slide-in-top',\n 'data-[state=closed]:animate-slide-out-top',\n ],\n bottom: [\n 'bottom-0 left-0',\n 'w-screen',\n 'data-[state=open]:animate-slide-in-bottom',\n 'data-[state=closed]:animate-slide-out-bottom',\n ],\n },\n },\n compoundVariants: [\n {\n side: ['right', 'left'],\n size: 'sm',\n class: ['w-sz-480', 'max-w-full'],\n },\n {\n side: ['right', 'left'],\n size: 'md',\n class: ['w-sz-672', 'max-w-full'],\n },\n {\n side: ['right', 'left'],\n size: 'lg',\n class: ['w-sz-864', 'max-w-full'],\n },\n {\n side: ['left', 'right'],\n size: 'fluid',\n class: ['w-auto', 'max-w-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'sm',\n class: ['h-sz-480', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'md',\n class: ['h-sz-672', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'lg',\n class: ['h-sz-864', 'max-h-full'],\n },\n {\n side: ['top', 'bottom'],\n size: 'fluid',\n class: ['h-auto', 'max-h-full'],\n },\n ],\n defaultVariants: {\n side: 'right',\n size: 'md',\n },\n }\n)\n\nexport type DrawerContentStylesProps = VariantProps<typeof drawerContentStyles>\n","import { Dialog as RadixDrawer } from 'radix-ui'\nimport { Ref } from 'react'\n\nexport type DrawerDescriptionProps = RadixDrawer.DialogDescriptionProps & {\n ref?: Ref<HTMLParagraphElement>\n}\n\nexport const DrawerDescription = (props: DrawerDescriptionProps) => (\n <RadixDrawer.Description data-spark-component=\"drawer-description\" {...props} />\n)\n\nDrawerDescription.displayName = 'Drawer.Description'\n","import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithoutRef, type ReactElement, Ref } from 'react'\n\nexport type DrawerFooterProps = ComponentPropsWithoutRef<'footer'> & {\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerFooter = ({ className, ref, ...rest }: DrawerFooterProps): ReactElement => (\n <footer\n data-spark-component=\"drawer-footer\"\n ref={ref}\n className={cx(['px-xl', 'py-lg'], className)}\n {...rest}\n />\n)\n\nDrawerFooter.displayName = 'Drawer.Footer'\n","import { cx } from 'class-variance-authority'\nimport { type ReactElement, type ReactNode, Ref } from 'react'\n\nexport interface DrawerHeaderProps {\n children: ReactNode\n className?: string\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerHeader = ({\n children,\n className,\n ref,\n ...rest\n}: DrawerHeaderProps): ReactElement => (\n <header\n data-spark-component=\"drawer-header\"\n ref={ref}\n className={cx(['px-xl', 'py-lg'], className)}\n {...rest}\n >\n {children}\n </header>\n)\n\nDrawerHeader.displayName = 'Dialog.Header'\n","import { cx } from 'class-variance-authority'\nimport { Dialog as RadixDrawer } from 'radix-ui'\nimport { type ReactElement, Ref } from 'react'\n\nexport type DrawerOverlayProps = RadixDrawer.DialogOverlayProps & {\n ref?: Ref<HTMLDivElement>\n}\n\nexport const DrawerOverlay = ({ className, ref, ...rest }: DrawerOverlayProps): ReactElement => (\n <RadixDrawer.Overlay\n data-spark-component=\"drawer-overlay\"\n ref={ref}\n className={cx(\n ['fixed', 'top-0', 'left-0', 'w-screen', 'h-screen', 'z-overlay'],\n ['bg-overlay/dim-1'],\n ['data-[state=open]:animate-fade-in'],\n ['data-[state=closed]:animate-fade-out'],\n className\n )}\n {...rest}\n />\n)\n\nDrawerOverlay.displayName = 'Drawer.Overlay'\n","import { Dialog as RadixDrawer } from 'radix-ui'\nimport { type ReactElement } from 'react'\n\nexport type DrawerPortalProps = RadixDrawer.DialogPortalProps\n\nexport const DrawerPortal = ({ children, ...rest }: DrawerPortalProps): ReactElement => (\n <RadixDrawer.Portal {...rest}>{children}</RadixDrawer.Portal>\n)\n\nDrawerPortal.displayName = 'Drawer.Portal'\n","import { cx } from 'class-variance-authority'\nimport { Dialog as RadixDrawer } from 'radix-ui'\nimport { Ref } from 'react'\n\nexport type DrawerTitleProps = RadixDrawer.DialogTitleProps & {\n ref?: Ref<HTMLHeadingElement>\n}\n\nexport const DrawerTitle = ({ className, ref, ...others }: DrawerTitleProps) => (\n <RadixDrawer.Title\n data-spark-component=\"drawer-title\"\n ref={ref}\n className={cx('text-headline-2 text-on-surface', className)}\n {...others}\n />\n)\n\nDrawerTitle.displayName = 'Drawer.Title'\n","import { Dialog as RadixDrawer } from 'radix-ui'\nimport { type ReactElement, Ref } from 'react'\n\nexport interface DrawerTriggerProps extends RadixDrawer.DialogTriggerProps {\n /**\n * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n */\n asChild?: boolean\n ref?: Ref<HTMLButtonElement>\n}\n\nexport const DrawerTrigger = (props: DrawerTriggerProps): ReactElement => (\n <RadixDrawer.Trigger data-spark-component=\"drawer-trigger\" {...props} />\n)\n\nDrawerTrigger.displayName = 'Drawer.Trigger'\n","import { Drawer as Root } from './Drawer'\nimport { DrawerBody } from './DrawerBody'\nimport { DrawerCloseButton } from './DrawerCloseButton'\nimport { DrawerContent } from './DrawerContent'\nimport { DrawerDescription } from './DrawerDescription' // aria-describedby\nimport { DrawerFooter } from './DrawerFooter'\nimport { DrawerHeader } from './DrawerHeader'\nimport { DrawerOverlay } from './DrawerOverlay'\nimport { DrawerPortal } from './DrawerPortal'\nimport { DrawerTitle } from './DrawerTitle'\nimport { DrawerTrigger } from './DrawerTrigger'\n\nexport const Drawer: typeof Root & {\n Trigger: typeof DrawerTrigger\n Portal: typeof DrawerPortal\n Overlay: typeof DrawerOverlay\n Content: typeof DrawerContent\n Header: typeof DrawerHeader\n Body: typeof DrawerBody\n Footer: typeof DrawerFooter\n CloseButton: typeof DrawerCloseButton\n Title: typeof DrawerTitle\n Description: typeof DrawerDescription\n} = Object.assign(Root, {\n Trigger: DrawerTrigger,\n Portal: DrawerPortal,\n Overlay: DrawerOverlay,\n Content: DrawerContent,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n CloseButton: DrawerCloseButton,\n Title: DrawerTitle,\n Description: DrawerDescription,\n})\n\nDrawer.displayName = 'Drawer'\nDrawerTrigger.displayName = 'Drawer.Trigger'\nDrawerPortal.displayName = 'Drawer.Portal'\nDrawerOverlay.displayName = 'Drawer.Overlay'\nDrawerContent.displayName = 'Drawer.Content'\nDrawerHeader.displayName = 'Drawer.Header'\nDrawerBody.displayName = 'Drawer.Body'\nDrawerFooter.displayName = 'Drawer.Footer'\nDrawerCloseButton.displayName = 'Drawer.CloseButton'\nDrawerTitle.displayName = 'Drawer.Title'\nDrawerDescription.displayName = 'Drawer.Description'\n\nexport { type DrawerProps } from './Drawer'\nexport { type DrawerContentProps } from './DrawerContent'\nexport { type DrawerHeaderProps } from './DrawerHeader'\nexport { type DrawerBodyProps } from './DrawerBody'\nexport { type DrawerFooterProps } from './DrawerFooter'\nexport { type DrawerTriggerProps } from './DrawerTrigger'\nexport { type DrawerOverlayProps } from './DrawerOverlay'\nexport { type DrawerPortalProps } from './DrawerPortal'\nexport { type DrawerTitleProps } from './DrawerTitle'\nexport { type DrawerDescriptionProps } from './DrawerDescription'\nexport { type DrawerCloseProps } from './DrawerClose'\nexport { type DrawerCloseButtonProps } from './DrawerCloseButton'\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,UAAU,mBAAmB;;;ACAtC,SAAS,eAA+B,kBAAkB;AAgBtD;AAVJ,IAAM,gBAAgB,cAAyC,IAAI;AAE5D,IAAM,iBAAiB,CAAC;AAAA,EAC7B,UAAU;AAAA,EACV,WAAW;AACb,MAGM;AACJ,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,OAAO;AAAA,QACL;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,YAAY,MAAM;AAC7B,QAAM,UAAU,WAAW,aAAa;AAExC,MAAI,CAAC,SAAS;AACZ,UAAM,MAAM,iDAAiD;AAAA,EAC/D;AAEA,SAAO;A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cAAc;AACzB,aAAa,cAAc;AAC3B,kBAAkB,cAAc;AAChC,YAAY,cAAc;AAC1B,kBAAkB,cAAc;","names":["jsx","jsx","RadixDrawer","jsx","jsx","RadixDrawer","cva","jsx","RadixDrawer","RadixDrawer","jsx","cx","jsx","cx","jsx","cx","RadixDrawer","jsx","RadixDrawer","jsx","cx","RadixDrawer","jsx","RadixDrawer","jsx","Drawer"]}
|
package/dist/dropdown/index.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Popover
|
|
3
3
|
} from "../chunk-GPJMLIHC.mjs";
|
|
4
4
|
import "../chunk-DCXWGQVZ.mjs";
|
|
5
|
-
import "../chunk-2YM6GKWW.mjs";
|
|
6
|
-
import "../chunk-GAK4SC2F.mjs";
|
|
7
5
|
import {
|
|
8
6
|
Icon
|
|
9
7
|
} from "../chunk-UMUMFMFB.mjs";
|
|
8
|
+
import "../chunk-2YM6GKWW.mjs";
|
|
9
|
+
import "../chunk-GAK4SC2F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
VisuallyHidden
|
|
12
12
|
} from "../chunk-KEGAAGJW.mjs";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
IconButton
|
|
6
6
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Icon
|
|
9
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
7
10
|
import {
|
|
8
11
|
Button,
|
|
9
12
|
buttonStyles
|
|
10
13
|
} from "../chunk-2YM6GKWW.mjs";
|
|
11
14
|
import "../chunk-GAK4SC2F.mjs";
|
|
12
|
-
import {
|
|
13
|
-
Icon
|
|
14
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
15
15
|
import "../chunk-KEGAAGJW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Slot
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
4
7
|
import {
|
|
5
8
|
Button
|
|
6
9
|
} from "../chunk-2YM6GKWW.mjs";
|
|
7
10
|
import "../chunk-GAK4SC2F.mjs";
|
|
8
|
-
import {
|
|
9
|
-
Icon
|
|
10
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
11
11
|
import "../chunk-KEGAAGJW.mjs";
|
|
12
12
|
import "../chunk-6QCEPQ3U.mjs";
|
|
13
13
|
|
package/dist/popover/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Popover
|
|
3
3
|
} from "../chunk-GPJMLIHC.mjs";
|
|
4
4
|
import "../chunk-DCXWGQVZ.mjs";
|
|
5
|
+
import "../chunk-UMUMFMFB.mjs";
|
|
5
6
|
import "../chunk-2YM6GKWW.mjs";
|
|
6
7
|
import "../chunk-GAK4SC2F.mjs";
|
|
7
|
-
import "../chunk-UMUMFMFB.mjs";
|
|
8
8
|
import "../chunk-KEGAAGJW.mjs";
|
|
9
9
|
import "../chunk-6QCEPQ3U.mjs";
|
|
10
10
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
4
7
|
import {
|
|
5
8
|
Button
|
|
6
9
|
} from "../chunk-2YM6GKWW.mjs";
|
|
7
10
|
import "../chunk-GAK4SC2F.mjs";
|
|
8
|
-
import {
|
|
9
|
-
Icon
|
|
10
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
11
11
|
import "../chunk-KEGAAGJW.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Slot
|
package/dist/snackbar/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
4
7
|
import {
|
|
5
8
|
Button
|
|
6
9
|
} from "../chunk-2YM6GKWW.mjs";
|
|
7
10
|
import "../chunk-GAK4SC2F.mjs";
|
|
8
|
-
import {
|
|
9
|
-
Icon
|
|
10
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
11
11
|
import "../chunk-KEGAAGJW.mjs";
|
|
12
12
|
import "../chunk-6QCEPQ3U.mjs";
|
|
13
13
|
|
package/dist/spinner/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const spinnerStyles: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "current" | "sm" | "md" | "full" | null | undefined;
|
|
8
8
|
intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
|
|
9
9
|
isBackgroundVisible?: boolean | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
package/dist/spinner/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const spinnerStyles: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "current" | "sm" | "md" | "full" | null | undefined;
|
|
8
8
|
intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
|
|
9
9
|
isBackgroundVisible?: boolean | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
package/dist/stepper/index.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
IconButton
|
|
7
7
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
8
|
-
import "../chunk-2YM6GKWW.mjs";
|
|
9
|
-
import "../chunk-GAK4SC2F.mjs";
|
|
10
8
|
import {
|
|
11
9
|
Icon
|
|
12
10
|
} from "../chunk-UMUMFMFB.mjs";
|
|
11
|
+
import "../chunk-2YM6GKWW.mjs";
|
|
12
|
+
import "../chunk-GAK4SC2F.mjs";
|
|
13
13
|
import "../chunk-KEGAAGJW.mjs";
|
|
14
14
|
import "../chunk-6QCEPQ3U.mjs";
|
|
15
15
|
|
package/dist/tabs/index.mjs
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
IconButton
|
|
6
6
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Icon
|
|
9
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
7
10
|
import {
|
|
8
11
|
Button
|
|
9
12
|
} from "../chunk-2YM6GKWW.mjs";
|
|
10
13
|
import "../chunk-GAK4SC2F.mjs";
|
|
11
|
-
import {
|
|
12
|
-
Icon
|
|
13
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
14
14
|
import "../chunk-KEGAAGJW.mjs";
|
|
15
15
|
import "../chunk-6QCEPQ3U.mjs";
|
|
16
16
|
|
package/dist/toast/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Toast } from '@base-ui
|
|
2
|
+
import { Toast } from '@base-ui/react/toast';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ButtonProps } from '../button/index.mjs';
|
|
5
5
|
import 'class-variance-authority/types';
|
package/dist/toast/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Toast } from '@base-ui
|
|
2
|
+
import { Toast } from '@base-ui/react/toast';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ButtonProps } from '../button/index.js';
|
|
5
5
|
import 'class-variance-authority/types';
|