@fluencypassdevs/cycle 0.7.3 → 0.8.0
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/bin/mcp.mjs +31 -0
- package/cli/CLAUDE-section.md +1 -0
- package/dist/chunk-YJ4U7ISM.js +124 -0
- package/dist/chunk-YJ4U7ISM.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/ui/drawer.d.ts +16 -0
- package/dist/ui/drawer.js +5 -0
- package/dist/ui/drawer.js.map +1 -0
- package/package.json +3 -2
package/bin/mcp.mjs
CHANGED
|
@@ -553,6 +553,37 @@ cycleToast.info("Nova mensagem recebida")`,
|
|
|
553
553
|
</Fab>`,
|
|
554
554
|
keywords: ["fab", "floating", "action", "button", "botao", "flutuante", "circular", "shadow"],
|
|
555
555
|
},
|
|
556
|
+
{
|
|
557
|
+
name: "Drawer",
|
|
558
|
+
import: `import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, DrawerClose } from "@fluencypassdevs/cycle"`,
|
|
559
|
+
description: "Bottom sheet com gesto de arraste (vaul). Ideal para mobile/touch. Handle de arraste automatico no bottom. Suporta 4 direcoes (top, right, bottom, left).",
|
|
560
|
+
props: [
|
|
561
|
+
{ name: "direction", type: '"top" | "right" | "bottom" | "left"', default: '"bottom"' },
|
|
562
|
+
{ name: "open", type: "boolean", default: "undefined" },
|
|
563
|
+
{ name: "onOpenChange", type: "(open: boolean) => void", default: "undefined" },
|
|
564
|
+
],
|
|
565
|
+
example: `<Drawer>
|
|
566
|
+
<DrawerTrigger asChild>
|
|
567
|
+
<Button>Abrir</Button>
|
|
568
|
+
</DrawerTrigger>
|
|
569
|
+
<DrawerContent>
|
|
570
|
+
<DrawerHeader>
|
|
571
|
+
<DrawerTitle>Acoes</DrawerTitle>
|
|
572
|
+
<DrawerDescription>Escolha uma acao</DrawerDescription>
|
|
573
|
+
</DrawerHeader>
|
|
574
|
+
<div className="p-4 flex flex-col gap-2">
|
|
575
|
+
<Button variant="ghost">Editar</Button>
|
|
576
|
+
<Button variant="ghost">Compartilhar</Button>
|
|
577
|
+
</div>
|
|
578
|
+
<DrawerFooter>
|
|
579
|
+
<DrawerClose asChild>
|
|
580
|
+
<Button variant="outline">Cancelar</Button>
|
|
581
|
+
</DrawerClose>
|
|
582
|
+
</DrawerFooter>
|
|
583
|
+
</DrawerContent>
|
|
584
|
+
</Drawer>`,
|
|
585
|
+
keywords: ["drawer", "bottom", "sheet", "action", "mobile", "arraste", "swipe", "vaul"],
|
|
586
|
+
},
|
|
556
587
|
{
|
|
557
588
|
name: "FluencypassLogo",
|
|
558
589
|
import: `import { FluencypassLogo, FluencypassIcon } from "@fluencypassdevs/cycle"`,
|
package/cli/CLAUDE-section.md
CHANGED
|
@@ -150,6 +150,7 @@ Todos importados de `@fluencypassdevs/cycle`:
|
|
|
150
150
|
| Empty | Estado vazio |
|
|
151
151
|
| Skeleton | Placeholder de carregamento |
|
|
152
152
|
| Spinner | Indicador de carregamento animado (5 sizes) |
|
|
153
|
+
| Drawer | Bottom sheet com gesto de arraste (mobile-first) |
|
|
153
154
|
| Fab | Floating Action Button circular/pill (3 sizes, 3 variants) |
|
|
154
155
|
| Dialog | Modal dialog |
|
|
155
156
|
| FluencypassLogo, FluencypassIcon | Logo e icone da Fluencypass |
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { cn } from './chunk-TYCPXAXF.js';
|
|
2
|
+
import { __objRest, __spreadValues, __spreadProps } from './chunk-YINJ5YZ5.js';
|
|
3
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function Drawer(_a) {
|
|
7
|
+
var props = __objRest(_a, []);
|
|
8
|
+
return /* @__PURE__ */ jsx(Drawer$1.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
9
|
+
}
|
|
10
|
+
function DrawerTrigger(_a) {
|
|
11
|
+
var props = __objRest(_a, []);
|
|
12
|
+
return /* @__PURE__ */ jsx(Drawer$1.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
13
|
+
}
|
|
14
|
+
function DrawerPortal(_a) {
|
|
15
|
+
var props = __objRest(_a, []);
|
|
16
|
+
return /* @__PURE__ */ jsx(Drawer$1.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
17
|
+
}
|
|
18
|
+
function DrawerClose(_a) {
|
|
19
|
+
var props = __objRest(_a, []);
|
|
20
|
+
return /* @__PURE__ */ jsx(Drawer$1.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
21
|
+
}
|
|
22
|
+
function DrawerOverlay(_a) {
|
|
23
|
+
var _b = _a, {
|
|
24
|
+
className
|
|
25
|
+
} = _b, props = __objRest(_b, [
|
|
26
|
+
"className"
|
|
27
|
+
]);
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
Drawer$1.Overlay,
|
|
30
|
+
__spreadValues({
|
|
31
|
+
"data-slot": "drawer-overlay",
|
|
32
|
+
className: cn(
|
|
33
|
+
"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
34
|
+
className
|
|
35
|
+
)
|
|
36
|
+
}, props)
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function DrawerContent(_a) {
|
|
40
|
+
var _b = _a, {
|
|
41
|
+
className,
|
|
42
|
+
children
|
|
43
|
+
} = _b, props = __objRest(_b, [
|
|
44
|
+
"className",
|
|
45
|
+
"children"
|
|
46
|
+
]);
|
|
47
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
48
|
+
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
49
|
+
/* @__PURE__ */ jsxs(
|
|
50
|
+
Drawer$1.Content,
|
|
51
|
+
__spreadProps(__spreadValues({
|
|
52
|
+
"data-slot": "drawer-content",
|
|
53
|
+
className: cn(
|
|
54
|
+
"group/drawer-content fixed z-50 flex h-auto flex-col bg-background",
|
|
55
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
56
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
57
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
58
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
59
|
+
className
|
|
60
|
+
)
|
|
61
|
+
}, props), {
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
64
|
+
children
|
|
65
|
+
]
|
|
66
|
+
})
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
function DrawerHeader(_a) {
|
|
71
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
73
|
+
"div",
|
|
74
|
+
__spreadValues({
|
|
75
|
+
"data-slot": "drawer-header",
|
|
76
|
+
className: cn(
|
|
77
|
+
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
|
|
78
|
+
className
|
|
79
|
+
)
|
|
80
|
+
}, props)
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function DrawerFooter(_a) {
|
|
84
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
85
|
+
return /* @__PURE__ */ jsx(
|
|
86
|
+
"div",
|
|
87
|
+
__spreadValues({
|
|
88
|
+
"data-slot": "drawer-footer",
|
|
89
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className)
|
|
90
|
+
}, props)
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function DrawerTitle(_a) {
|
|
94
|
+
var _b = _a, {
|
|
95
|
+
className
|
|
96
|
+
} = _b, props = __objRest(_b, [
|
|
97
|
+
"className"
|
|
98
|
+
]);
|
|
99
|
+
return /* @__PURE__ */ jsx(
|
|
100
|
+
Drawer$1.Title,
|
|
101
|
+
__spreadValues({
|
|
102
|
+
"data-slot": "drawer-title",
|
|
103
|
+
className: cn("font-semibold text-foreground", className)
|
|
104
|
+
}, props)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function DrawerDescription(_a) {
|
|
108
|
+
var _b = _a, {
|
|
109
|
+
className
|
|
110
|
+
} = _b, props = __objRest(_b, [
|
|
111
|
+
"className"
|
|
112
|
+
]);
|
|
113
|
+
return /* @__PURE__ */ jsx(
|
|
114
|
+
Drawer$1.Description,
|
|
115
|
+
__spreadValues({
|
|
116
|
+
"data-slot": "drawer-description",
|
|
117
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
118
|
+
}, props)
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
123
|
+
//# sourceMappingURL=chunk-YJ4U7ISM.js.map
|
|
124
|
+
//# sourceMappingURL=chunk-YJ4U7ISM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/ui/drawer.tsx"],"names":["DrawerPrimitive"],"mappings":";;;;;AAOA,SAAS,OAAO,EAAA,EAEsC;AAFtC,EAAA,IACX,kBADW,EAAA,EACX,EAAA,CAAA;AAEH,EAAA,2BAAQA,QAAA,CAAgB,IAAA,EAAhB,cAAA,CAAA,EAAqB,WAAA,EAAU,YAAa,KAAA,CAAO,CAAA;AAC7D;AAEA,SAAS,cAAc,EAAA,EAEkC;AAFlC,EAAA,IAClB,kBADkB,EAAA,EAClB,EAAA,CAAA;AAEH,EAAA,2BAAQA,QAAA,CAAgB,OAAA,EAAhB,cAAA,CAAA,EAAwB,WAAA,EAAU,oBAAqB,KAAA,CAAO,CAAA;AACxE;AAEA,SAAS,aAAa,EAAA,EAEkC;AAFlC,EAAA,IACjB,kBADiB,EAAA,EACjB,EAAA,CAAA;AAEH,EAAA,2BAAQA,QAAA,CAAgB,MAAA,EAAhB,cAAA,CAAA,EAAuB,WAAA,EAAU,mBAAoB,KAAA,CAAO,CAAA;AACtE;AAEA,SAAS,YAAY,EAAA,EAEkC;AAFlC,EAAA,IAChB,kBADgB,EAAA,EAChB,EAAA,CAAA;AAEH,EAAA,2BAAQA,QAAA,CAAgB,KAAA,EAAhB,cAAA,CAAA,EAAsB,WAAA,EAAU,kBAAmB,KAAA,CAAO,CAAA;AACpE;AAEA,SAAS,cAAc,EAAA,EAGkC;AAHlC,EAAA,IAAA,EAAA,GAAA,EAAA,EACrB;AAAA,IAAA;AAAA,GAhCF,GA+BuB,EAAA,EAElB,KAAA,GAAA,SAAA,CAFkB,EAAA,EAElB;AAAA,IADH;AAAA,GAAA,CAAA;AAGA,EAAA,uBACE,GAAA;AAAA,IAACA,QAAA,CAAgB,OAAA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A,EACpD,KAAA;AAAA,GACN;AAEJ","file":"chunk-YJ4U7ISM.js","sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Drawer({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />\n}\n\nfunction DrawerTrigger({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />\n}\n\nfunction DrawerPortal({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n}\n\nfunction DrawerClose({\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />\n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n \"group/drawer-content fixed z-50 flex h-auto flex-col bg-background\",\n \"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b\",\n \"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t\",\n \"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm\",\n \"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm\",\n className\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n )\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n \"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n )\n}\n\nfunction DrawerTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn(\"font-semibold text-foreground\", className)}\n {...props}\n />\n )\n}\n\nfunction DrawerDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTi
|
|
|
39
39
|
export { Skeleton } from './ui/skeleton.js';
|
|
40
40
|
export { Spinner, SpinnerProps } from './ui/spinner.js';
|
|
41
41
|
export { Fab, FabProps, fabVariants } from './ui/fab.js';
|
|
42
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './ui/drawer.js';
|
|
42
43
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './ui/dialog.js';
|
|
43
44
|
import 'clsx';
|
|
44
45
|
import 'react';
|
|
@@ -49,3 +50,4 @@ import 'class-variance-authority';
|
|
|
49
50
|
import 'radix-ui';
|
|
50
51
|
import 'sonner';
|
|
51
52
|
import 'react-resizable-panels';
|
|
53
|
+
import 'vaul';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
export { ClassLogo, GroupTalkLogo, PrivateTalkLogo, ProductLogo } from './chunk-XVBX263W.js';
|
|
1
2
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './chunk-PY2BIZNB.js';
|
|
2
3
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from './chunk-F2Q3E2ZM.js';
|
|
3
4
|
export { Skeleton } from './chunk-2EKU7RP4.js';
|
|
4
5
|
export { Spinner } from './chunk-5XNYJECW.js';
|
|
5
6
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './chunk-TZ7BEYQ7.js';
|
|
6
7
|
export { Fab, fabVariants } from './chunk-7NFHHOAE.js';
|
|
8
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-YJ4U7ISM.js';
|
|
7
9
|
export { FluencypassIcon, FluencypassLogo } from './chunk-5LZHXNBV.js';
|
|
8
|
-
export { ClassLogo, GroupTalkLogo, PrivateTalkLogo, ProductLogo } from './chunk-XVBX263W.js';
|
|
9
10
|
export { AudioPlayer } from './chunk-UAHCRXAG.js';
|
|
10
11
|
export { VideoPlayer } from './chunk-YPTKR7NI.js';
|
|
11
12
|
export { Toaster, cycleToast } from './chunk-ELZCZ6ZH.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
|
|
5
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from '../chunk-YJ4U7ISM.js';
|
|
2
|
+
import '../chunk-TYCPXAXF.js';
|
|
3
|
+
import '../chunk-YINJ5YZ5.js';
|
|
4
|
+
//# sourceMappingURL=drawer.js.map
|
|
5
|
+
//# sourceMappingURL=drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"drawer.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluencypassdevs/cycle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Cycle Design System — UI component library by Fluencypass",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
"radix-ui": "^1.4.3",
|
|
87
87
|
"react-resizable-panels": "^4.7.5",
|
|
88
88
|
"sonner": "^2.0.7",
|
|
89
|
-
"tailwind-merge": "^3.5.0"
|
|
89
|
+
"tailwind-merge": "^3.5.0",
|
|
90
|
+
"vaul": "^1.1.2"
|
|
90
91
|
},
|
|
91
92
|
"optionalDependencies": {
|
|
92
93
|
"@vidstack/react": "^1.12.13",
|