@lglab/compose-ui 0.1.1 → 0.2.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/dist/components/accordion.d.ts +30 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +183 -135
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type AccordionRootProps = React.ComponentProps<typeof BaseAccordion.Root>;
|
|
4
|
+
declare const AccordionRoot: {
|
|
5
|
+
({ className, ...props }: AccordionRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type AccordionItemProps = React.ComponentProps<typeof BaseAccordion.Item>;
|
|
9
|
+
declare const AccordionItem: {
|
|
10
|
+
({ className, ...props }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
type AccordionHeaderProps = React.ComponentProps<typeof BaseAccordion.Header>;
|
|
14
|
+
declare const AccordionHeader: {
|
|
15
|
+
({ className, ...props }: AccordionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
type AccordionTriggerProps = React.ComponentProps<typeof BaseAccordion.Trigger>;
|
|
19
|
+
declare const AccordionTrigger: {
|
|
20
|
+
({ className, children, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
type AccordionPanelProps = React.ComponentProps<typeof BaseAccordion.Panel>;
|
|
24
|
+
declare const AccordionPanel: {
|
|
25
|
+
({ className, ...props }: AccordionPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel };
|
|
29
|
+
export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, };
|
|
30
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAErE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAEzE,QAAA,MAAM,aAAa;8BAA6B,kBAAkB;;CAEjE,CAAA;AAQD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAEzE,QAAA,MAAM,aAAa;8BAA6B,kBAAkB;;CAOjE,CAAA;AAQD,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAErE,CAAA;AAQD,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;AAE/E,QAAA,MAAM,gBAAgB;wCAAuC,qBAAqB;;CAiBjF,CAAA;AAQD,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,KAAK,CAAC,CAAA;AAE3E,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAUnE,CAAA;AAQD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAA;AAE1F,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ export { ScrollAreaRoot, ScrollAreaViewport, ScrollAreaContent, ScrollAreaScroll
|
|
|
3
3
|
export { TabsRoot, TabsList, TabsTab, TabsIndicator, TabsPanel } from './components/tabs';
|
|
4
4
|
export { DialogRoot, DialogTrigger, DialogPortal, DialogBackdrop, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogHeader, DialogFooter, } from './components/dialog';
|
|
5
5
|
export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerContent, DrawerFooter, } from './components/drawer';
|
|
6
|
+
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel, } from './components/accordion';
|
|
6
7
|
export type { ButtonProps } from './components/button';
|
|
7
8
|
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
|
|
8
9
|
export type { TabsRootProps, TabsListProps, TabsTabProps, TabsIndicatorProps, TabsPanelProps, } from './components/tabs';
|
|
9
10
|
export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBackdropProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogHeaderProps, DialogFooterProps, } from './components/dialog';
|
|
10
11
|
export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, } from './components/drawer';
|
|
12
|
+
export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, } from './components/accordion';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as m, Fragment as y } from "react/jsx-runtime";
|
|
3
3
|
import { Button as v } from "@base-ui/react/button";
|
|
4
|
-
import { LoaderCircle as
|
|
5
|
-
import { cva as
|
|
4
|
+
import { LoaderCircle as N, ChevronDown as h } from "lucide-react";
|
|
5
|
+
import { cva as n } from "class-variance-authority";
|
|
6
6
|
import { clsx as x } from "clsx";
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import { ScrollArea as
|
|
7
|
+
import { twMerge as w } from "tailwind-merge";
|
|
8
|
+
import { ScrollArea as l } from "@base-ui/react/scroll-area";
|
|
9
9
|
import { Tabs as d } from "@base-ui/react/tabs";
|
|
10
|
-
import { Dialog as
|
|
11
|
-
|
|
10
|
+
import { Dialog as i } from "@base-ui/react/dialog";
|
|
11
|
+
import { Accordion as c } from "@base-ui/react/accordion";
|
|
12
|
+
const u = n(
|
|
12
13
|
// Base styles
|
|
13
14
|
[
|
|
14
15
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-80 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
@@ -39,48 +40,48 @@ const c = l(
|
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
42
|
function r(...e) {
|
|
42
|
-
return
|
|
43
|
+
return w(x(e));
|
|
43
44
|
}
|
|
44
|
-
const
|
|
45
|
+
const D = ({
|
|
45
46
|
className: e,
|
|
46
47
|
variant: a,
|
|
47
48
|
size: o,
|
|
48
|
-
loading:
|
|
49
|
-
loadingText:
|
|
50
|
-
disabled:
|
|
51
|
-
children:
|
|
52
|
-
...
|
|
49
|
+
loading: s = !1,
|
|
50
|
+
loadingText: p,
|
|
51
|
+
disabled: f,
|
|
52
|
+
children: g,
|
|
53
|
+
...b
|
|
53
54
|
}) => /* @__PURE__ */ t(
|
|
54
55
|
v,
|
|
55
56
|
{
|
|
56
|
-
className: r(
|
|
57
|
-
disabled:
|
|
58
|
-
...
|
|
59
|
-
children:
|
|
60
|
-
/* @__PURE__ */ t(
|
|
61
|
-
|
|
62
|
-
] }) :
|
|
57
|
+
className: r(u({ variant: a, size: o }), e),
|
|
58
|
+
disabled: f || s,
|
|
59
|
+
...b,
|
|
60
|
+
children: s ? /* @__PURE__ */ m(y, { children: [
|
|
61
|
+
/* @__PURE__ */ t(N, { className: "animate-spin" }),
|
|
62
|
+
p ?? g
|
|
63
|
+
] }) : g
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
66
|
+
D.displayName = "Button";
|
|
67
|
+
const T = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Root, { className: r("relative", e), ...a });
|
|
68
|
+
T.displayName = "ScrollAreaRoot";
|
|
69
|
+
const k = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
70
|
+
l.Viewport,
|
|
70
71
|
{
|
|
71
72
|
className: r("h-full overscroll-contain pr-3", e),
|
|
72
73
|
...a
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
const
|
|
76
|
+
k.displayName = "ScrollAreaViewport";
|
|
77
|
+
const A = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Content, { className: r("min-w-full", e), ...a });
|
|
78
|
+
A.displayName = "ScrollAreaContent";
|
|
79
|
+
const z = ({
|
|
79
80
|
className: e,
|
|
80
81
|
orientation: a = "vertical",
|
|
81
82
|
...o
|
|
82
83
|
}) => /* @__PURE__ */ t(
|
|
83
|
-
|
|
84
|
+
l.Scrollbar,
|
|
84
85
|
{
|
|
85
86
|
className: r(
|
|
86
87
|
"flex touch-none select-none p-0.5 transition-colors duration-150 ease-out",
|
|
@@ -93,9 +94,9 @@ const k = ({
|
|
|
93
94
|
...o
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
z.displayName = "ScrollAreaScrollbar";
|
|
98
|
+
const P = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
99
|
+
l.Thumb,
|
|
99
100
|
{
|
|
100
101
|
className: r(
|
|
101
102
|
"relative flex-1 rounded-full bg-border transition-colors",
|
|
@@ -105,12 +106,12 @@ const z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
105
106
|
...a
|
|
106
107
|
}
|
|
107
108
|
);
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
109
|
+
P.displayName = "ScrollAreaThumb";
|
|
110
|
+
const C = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Corner, { className: r("bg-muted/50", e), ...a });
|
|
111
|
+
C.displayName = "ScrollAreaCorner";
|
|
111
112
|
const S = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Root, { className: r("flex flex-col", e), ...a });
|
|
112
113
|
S.displayName = "TabsRoot";
|
|
113
|
-
const
|
|
114
|
+
const R = n(
|
|
114
115
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
115
116
|
{
|
|
116
117
|
variants: {
|
|
@@ -126,12 +127,12 @@ const C = l(
|
|
|
126
127
|
), V = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
127
128
|
d.List,
|
|
128
129
|
{
|
|
129
|
-
className: r(
|
|
130
|
+
className: r(R({ orientation: a }), e),
|
|
130
131
|
...o
|
|
131
132
|
}
|
|
132
133
|
);
|
|
133
134
|
V.displayName = "TabsList";
|
|
134
|
-
const
|
|
135
|
+
const B = n(
|
|
135
136
|
[
|
|
136
137
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
137
138
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -154,9 +155,9 @@ const A = l(
|
|
|
154
155
|
size: "default"
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
),
|
|
158
|
-
|
|
159
|
-
const
|
|
158
|
+
), H = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(d.Tab, { className: r(B({ size: a }), e), ...o });
|
|
159
|
+
H.displayName = "TabsTab";
|
|
160
|
+
const I = n(
|
|
160
161
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
161
162
|
{
|
|
162
163
|
variants: {
|
|
@@ -176,7 +177,7 @@ const B = l(
|
|
|
176
177
|
}) => /* @__PURE__ */ t(
|
|
177
178
|
d.Indicator,
|
|
178
179
|
{
|
|
179
|
-
className: r(
|
|
180
|
+
className: r(I({ orientation: a }), e),
|
|
180
181
|
...o
|
|
181
182
|
}
|
|
182
183
|
);
|
|
@@ -193,20 +194,20 @@ const F = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
193
194
|
}
|
|
194
195
|
);
|
|
195
196
|
F.displayName = "TabsPanel";
|
|
196
|
-
const L = (e) => /* @__PURE__ */ t(
|
|
197
|
+
const L = (e) => /* @__PURE__ */ t(i.Root, { ...e });
|
|
197
198
|
L.displayName = "DialogRoot";
|
|
198
|
-
const
|
|
199
|
-
|
|
199
|
+
const _ = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
200
|
+
i.Trigger,
|
|
200
201
|
{
|
|
201
|
-
className: r(
|
|
202
|
-
...
|
|
202
|
+
className: r(u({ variant: a, size: o }), e),
|
|
203
|
+
...s
|
|
203
204
|
}
|
|
204
205
|
);
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
|
|
206
|
+
_.displayName = "DialogTrigger";
|
|
207
|
+
const M = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
|
|
208
|
+
M.displayName = "DialogPortal";
|
|
209
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
210
|
+
i.Backdrop,
|
|
210
211
|
{
|
|
211
212
|
className: r(
|
|
212
213
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -217,8 +218,8 @@ const _ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
217
218
|
...a
|
|
218
219
|
}
|
|
219
220
|
);
|
|
220
|
-
|
|
221
|
-
const
|
|
221
|
+
$.displayName = "DialogBackdrop";
|
|
222
|
+
const q = n(
|
|
222
223
|
[
|
|
223
224
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
224
225
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -243,35 +244,35 @@ const M = l(
|
|
|
243
244
|
size: "default"
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
|
-
),
|
|
247
|
-
|
|
247
|
+
), E = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
248
|
+
i.Popup,
|
|
248
249
|
{
|
|
249
|
-
className: r(
|
|
250
|
+
className: r(q({ size: a }), e),
|
|
250
251
|
...o
|
|
251
252
|
}
|
|
252
253
|
);
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
|
|
254
|
+
E.displayName = "DialogPopup";
|
|
255
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
256
|
+
i.Title,
|
|
256
257
|
{
|
|
257
258
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
258
259
|
...a
|
|
259
260
|
}
|
|
260
261
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
262
|
+
G.displayName = "DialogTitle";
|
|
263
|
+
const J = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("mt-2", e), ...a });
|
|
264
|
+
J.displayName = "DialogDescription";
|
|
265
|
+
const K = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
266
|
+
i.Close,
|
|
266
267
|
{
|
|
267
|
-
className: r(
|
|
268
|
-
...
|
|
268
|
+
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
269
|
+
...s
|
|
269
270
|
}
|
|
270
271
|
);
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
const
|
|
272
|
+
K.displayName = "DialogClose";
|
|
273
|
+
const O = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
274
|
+
O.displayName = "DialogHeader";
|
|
275
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
275
276
|
"div",
|
|
276
277
|
{
|
|
277
278
|
className: r(
|
|
@@ -281,21 +282,21 @@ const K = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
281
282
|
...a
|
|
282
283
|
}
|
|
283
284
|
);
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
285
|
+
Q.displayName = "DialogFooter";
|
|
286
|
+
const U = (e) => /* @__PURE__ */ t(i.Root, { ...e });
|
|
287
|
+
U.displayName = "DrawerRoot";
|
|
288
|
+
const W = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
289
|
+
i.Trigger,
|
|
289
290
|
{
|
|
290
|
-
className: r(
|
|
291
|
-
...
|
|
291
|
+
className: r(u({ variant: a, size: o }), e),
|
|
292
|
+
...s
|
|
292
293
|
}
|
|
293
294
|
);
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
|
|
295
|
+
W.displayName = "DrawerTrigger";
|
|
296
|
+
const X = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
|
|
297
|
+
X.displayName = "DrawerPortal";
|
|
298
|
+
const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
299
|
+
i.Backdrop,
|
|
299
300
|
{
|
|
300
301
|
className: r(
|
|
301
302
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -306,8 +307,8 @@ const W = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
306
307
|
...a
|
|
307
308
|
}
|
|
308
309
|
);
|
|
309
|
-
|
|
310
|
-
const
|
|
310
|
+
Y.displayName = "DrawerBackdrop";
|
|
311
|
+
const Z = n(
|
|
311
312
|
[
|
|
312
313
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
313
314
|
"outline-none",
|
|
@@ -344,70 +345,117 @@ const X = l(
|
|
|
344
345
|
side: "right"
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
|
-
),
|
|
348
|
-
|
|
348
|
+
), ee = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
349
|
+
i.Popup,
|
|
349
350
|
{
|
|
350
|
-
className: r(
|
|
351
|
+
className: r(Z({ side: a }), e),
|
|
351
352
|
...o
|
|
352
353
|
}
|
|
353
354
|
);
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
355
|
+
ee.displayName = "DrawerPopup";
|
|
356
|
+
const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
357
|
+
i.Title,
|
|
357
358
|
{
|
|
358
359
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
359
360
|
...a
|
|
360
361
|
}
|
|
361
362
|
);
|
|
362
|
-
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
const
|
|
366
|
-
|
|
363
|
+
ae.displayName = "DrawerTitle";
|
|
364
|
+
const te = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("", e), ...a });
|
|
365
|
+
te.displayName = "DrawerDescription";
|
|
366
|
+
const re = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
367
|
+
i.Close,
|
|
367
368
|
{
|
|
368
|
-
className: r(
|
|
369
|
-
...
|
|
369
|
+
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
370
|
+
...s
|
|
370
371
|
}
|
|
371
372
|
);
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
|
|
373
|
+
re.displayName = "DrawerClose";
|
|
374
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
375
|
+
oe.displayName = "DrawerHeader";
|
|
376
|
+
const ie = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
377
|
+
ie.displayName = "DrawerContent";
|
|
378
|
+
const se = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
379
|
+
se.displayName = "DrawerFooter";
|
|
380
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Root, { className: r("w-full", e), ...a });
|
|
381
|
+
ne.displayName = "AccordionRoot";
|
|
382
|
+
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
383
|
+
c.Item,
|
|
384
|
+
{
|
|
385
|
+
className: r("border-b border-border last:border-b-0", e),
|
|
386
|
+
...a
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
le.displayName = "AccordionItem";
|
|
390
|
+
const de = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Header, { className: r("flex", e), ...a });
|
|
391
|
+
de.displayName = "AccordionHeader";
|
|
392
|
+
const ce = ({ className: e, children: a, ...o }) => /* @__PURE__ */ m(
|
|
393
|
+
c.Trigger,
|
|
394
|
+
{
|
|
395
|
+
className: r(
|
|
396
|
+
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
397
|
+
"transition-all duration-200",
|
|
398
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
399
|
+
"data-disabled:pointer-events-none data-disabled:opacity-80",
|
|
400
|
+
"[&[data-panel-open]_svg:last-child]:rotate-180",
|
|
401
|
+
e
|
|
402
|
+
),
|
|
403
|
+
...o,
|
|
404
|
+
children: [
|
|
405
|
+
a,
|
|
406
|
+
/* @__PURE__ */ t(h, { className: "h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
ce.displayName = "AccordionTrigger";
|
|
411
|
+
const ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
412
|
+
c.Panel,
|
|
413
|
+
{
|
|
414
|
+
className: r(
|
|
415
|
+
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
416
|
+
e
|
|
417
|
+
),
|
|
418
|
+
...a
|
|
419
|
+
}
|
|
420
|
+
);
|
|
421
|
+
ue.displayName = "AccordionPanel";
|
|
379
422
|
export {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
$ as
|
|
387
|
-
|
|
423
|
+
de as AccordionHeader,
|
|
424
|
+
le as AccordionItem,
|
|
425
|
+
ue as AccordionPanel,
|
|
426
|
+
ne as AccordionRoot,
|
|
427
|
+
ce as AccordionTrigger,
|
|
428
|
+
D as Button,
|
|
429
|
+
$ as DialogBackdrop,
|
|
430
|
+
K as DialogClose,
|
|
431
|
+
J as DialogDescription,
|
|
432
|
+
Q as DialogFooter,
|
|
433
|
+
O as DialogHeader,
|
|
434
|
+
E as DialogPopup,
|
|
435
|
+
M as DialogPortal,
|
|
388
436
|
L as DialogRoot,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
437
|
+
G as DialogTitle,
|
|
438
|
+
_ as DialogTrigger,
|
|
439
|
+
Y as DrawerBackdrop,
|
|
440
|
+
re as DrawerClose,
|
|
441
|
+
ie as DrawerContent,
|
|
442
|
+
te as DrawerDescription,
|
|
443
|
+
se as DrawerFooter,
|
|
444
|
+
oe as DrawerHeader,
|
|
445
|
+
ee as DrawerPopup,
|
|
446
|
+
X as DrawerPortal,
|
|
447
|
+
U as DrawerRoot,
|
|
448
|
+
ae as DrawerTitle,
|
|
449
|
+
W as DrawerTrigger,
|
|
450
|
+
A as ScrollAreaContent,
|
|
451
|
+
C as ScrollAreaCorner,
|
|
452
|
+
T as ScrollAreaRoot,
|
|
453
|
+
z as ScrollAreaScrollbar,
|
|
454
|
+
P as ScrollAreaThumb,
|
|
455
|
+
k as ScrollAreaViewport,
|
|
408
456
|
j as TabsIndicator,
|
|
409
457
|
V as TabsList,
|
|
410
458
|
F as TabsPanel,
|
|
411
459
|
S as TabsRoot,
|
|
412
|
-
|
|
460
|
+
H as TabsTab
|
|
413
461
|
};
|