@lglab/compose-ui 0.11.0 → 0.12.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/collapsible.d.ts +20 -0
- package/dist/components/collapsible.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 +295 -267
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type CollapsibleRootProps = React.ComponentProps<typeof BaseCollapsible.Root>;
|
|
4
|
+
declare const CollapsibleRoot: {
|
|
5
|
+
({ className, ...props }: CollapsibleRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type CollapsibleTriggerProps = React.ComponentProps<typeof BaseCollapsible.Trigger>;
|
|
9
|
+
declare const CollapsibleTrigger: {
|
|
10
|
+
({ className, ...props }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
type CollapsiblePanelProps = React.ComponentProps<typeof BaseCollapsible.Panel>;
|
|
14
|
+
declare const CollapsiblePanel: {
|
|
15
|
+
({ className, ...props }: CollapsiblePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export { CollapsibleRoot, CollapsibleTrigger, CollapsiblePanel };
|
|
19
|
+
export type { CollapsibleRootProps, CollapsibleTriggerProps, CollapsiblePanelProps };
|
|
20
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/components/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAErE,CAAA;AAQD,KAAK,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AAEnF,QAAA,MAAM,kBAAkB;8BAA6B,uBAAuB;;CAO3E,CAAA;AAQD,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAA;AAE/E,QAAA,MAAM,gBAAgB;8BAA6B,qBAAqB;;CAavE,CAAA;AAQD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,CAAA;AAEhE,YAAY,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Button } from './components/button';
|
|
2
|
+
export { CollapsibleRoot, CollapsibleTrigger, CollapsiblePanel, } from './components/collapsible';
|
|
2
3
|
export { AlertDialogRoot, AlertDialogTrigger, AlertDialogPortal, AlertDialogBackdrop, AlertDialogViewport, AlertDialogPopup, AlertDialogTitle, AlertDialogDescription, AlertDialogClose, } from './components/alert-dialog';
|
|
3
4
|
export { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
4
5
|
export { AvatarRoot, AvatarImage, AvatarFallback, AvatarStack } from './components/avatar';
|
|
@@ -13,6 +14,7 @@ export { MeterRoot, MeterTrack, MeterIndicator, MeterValue, MeterLabel, } from '
|
|
|
13
14
|
export { ProgressRoot, ProgressTrack, ProgressIndicator, ProgressValue, ProgressLabel, } from './components/progress';
|
|
14
15
|
export { ToggleGroupRoot, ToggleGroupItem } from './components/toggle-group';
|
|
15
16
|
export type { ButtonProps } from './components/button';
|
|
17
|
+
export type { CollapsibleRootProps, CollapsibleTriggerProps, CollapsiblePanelProps, } from './components/collapsible';
|
|
16
18
|
export type { AlertDialogRootProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogBackdropProps, AlertDialogViewportProps, AlertDialogPopupProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, } from './components/alert-dialog';
|
|
17
19
|
export type { AvatarRootProps, AvatarImageProps, AvatarFallbackProps, AvatarStackProps, } from './components/avatar';
|
|
18
20
|
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
|
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,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC1F,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,m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AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,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;AAC/B,YAAY,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,2BAA2B,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,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,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c,EACd,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as A } from "react/jsx-runtime";
|
|
3
3
|
import { Button as S } from "@base-ui/react/button";
|
|
4
4
|
import { cva as n } from "class-variance-authority";
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
5
|
+
import { clsx as _ } from "clsx";
|
|
6
|
+
import { twMerge as I } from "tailwind-merge";
|
|
7
|
+
import { Collapsible as w } from "@base-ui/react/collapsible";
|
|
7
8
|
import { AlertDialog as d } from "@base-ui/react/alert-dialog";
|
|
8
|
-
import { AlertDialog as
|
|
9
|
-
import { Avatar as
|
|
10
|
-
import * as
|
|
9
|
+
import { AlertDialog as wa } from "@base-ui/react/alert-dialog";
|
|
10
|
+
import { Avatar as D } from "@base-ui/react/avatar";
|
|
11
|
+
import * as x from "react";
|
|
11
12
|
import { ScrollArea as m } from "@base-ui/react/scroll-area";
|
|
12
|
-
import { Switch as
|
|
13
|
-
import { Toggle as
|
|
13
|
+
import { Switch as T } from "@base-ui/react/switch";
|
|
14
|
+
import { Toggle as z } from "@base-ui/react/toggle";
|
|
14
15
|
import { Tabs as f } from "@base-ui/react/tabs";
|
|
15
|
-
import { Dialog as
|
|
16
|
+
import { Dialog as s } from "@base-ui/react/dialog";
|
|
16
17
|
import { Accordion as b } from "@base-ui/react/accordion";
|
|
17
18
|
import { Meter as y } from "@base-ui/react/meter";
|
|
18
19
|
import { Progress as h } from "@base-ui/react/progress";
|
|
19
|
-
import { ToggleGroup as
|
|
20
|
+
import { ToggleGroup as F } from "@base-ui/react/toggle-group";
|
|
20
21
|
const u = n(
|
|
21
22
|
[
|
|
22
23
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
@@ -47,43 +48,67 @@ const u = n(
|
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
function r(...e) {
|
|
50
|
-
return _(
|
|
51
|
+
return I(_(e));
|
|
51
52
|
}
|
|
52
|
-
const
|
|
53
|
+
const j = ({
|
|
53
54
|
className: e,
|
|
54
55
|
variant: a,
|
|
55
56
|
size: o,
|
|
56
|
-
disabled:
|
|
57
|
+
disabled: l,
|
|
57
58
|
children: i,
|
|
58
59
|
...c
|
|
59
60
|
}) => /* @__PURE__ */ t(
|
|
60
61
|
S,
|
|
61
62
|
{
|
|
62
63
|
className: r(u({ variant: a, size: o }), e),
|
|
63
|
-
disabled:
|
|
64
|
+
disabled: l,
|
|
64
65
|
...c,
|
|
65
66
|
children: i
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
|
|
69
|
-
const B = (e) => /* @__PURE__ */ t(
|
|
70
|
-
B.displayName = "
|
|
71
|
-
const M = ({
|
|
69
|
+
j.displayName = "Button";
|
|
70
|
+
const B = ({ className: e, ...a }) => /* @__PURE__ */ t(w.Root, { className: r("w-full", e), ...a });
|
|
71
|
+
B.displayName = "CollapsibleRoot";
|
|
72
|
+
const M = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
73
|
+
w.Trigger,
|
|
74
|
+
{
|
|
75
|
+
className: r("flex items-center justify-between font-medium", e),
|
|
76
|
+
...a
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
M.displayName = "CollapsibleTrigger";
|
|
80
|
+
const L = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
81
|
+
w.Panel,
|
|
82
|
+
{
|
|
83
|
+
className: r(
|
|
84
|
+
'[&[hidden]:not([hidden="until-found"])]:hidden h-(--collapsible-panel-height)',
|
|
85
|
+
"overflow-hidden duration-200 transition-all ease-out",
|
|
86
|
+
"data-ending-style:h-0",
|
|
87
|
+
"data-starting-style:h-0",
|
|
88
|
+
e
|
|
89
|
+
),
|
|
90
|
+
...a
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
L.displayName = "CollapsiblePanel";
|
|
94
|
+
const H = (e) => /* @__PURE__ */ t(d.Root, { ...e });
|
|
95
|
+
H.displayName = "AlertDialogRoot";
|
|
96
|
+
const G = ({
|
|
72
97
|
className: e,
|
|
73
98
|
variant: a,
|
|
74
99
|
size: o,
|
|
75
|
-
...
|
|
100
|
+
...l
|
|
76
101
|
}) => /* @__PURE__ */ t(
|
|
77
102
|
d.Trigger,
|
|
78
103
|
{
|
|
79
104
|
className: r(u({ variant: a, size: o }), e),
|
|
80
|
-
...
|
|
105
|
+
...l
|
|
81
106
|
}
|
|
82
107
|
);
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
const
|
|
108
|
+
G.displayName = "AlertDialogTrigger";
|
|
109
|
+
const q = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
|
|
110
|
+
q.displayName = "AlertDialogPortal";
|
|
111
|
+
const E = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
87
112
|
d.Backdrop,
|
|
88
113
|
{
|
|
89
114
|
className: r(
|
|
@@ -95,16 +120,16 @@ const L = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
95
120
|
...a
|
|
96
121
|
}
|
|
97
122
|
);
|
|
98
|
-
|
|
99
|
-
const
|
|
123
|
+
E.displayName = "AlertDialogBackdrop";
|
|
124
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
100
125
|
d.Viewport,
|
|
101
126
|
{
|
|
102
127
|
className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
|
|
103
128
|
...a
|
|
104
129
|
}
|
|
105
130
|
);
|
|
106
|
-
|
|
107
|
-
const
|
|
131
|
+
$.displayName = "AlertDialogViewport";
|
|
132
|
+
const J = n(
|
|
108
133
|
[
|
|
109
134
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
110
135
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -128,38 +153,38 @@ const G = n(
|
|
|
128
153
|
size: "default"
|
|
129
154
|
}
|
|
130
155
|
}
|
|
131
|
-
),
|
|
156
|
+
), K = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
132
157
|
d.Popup,
|
|
133
158
|
{
|
|
134
|
-
className: r(
|
|
159
|
+
className: r(J({ size: a }), e),
|
|
135
160
|
...o
|
|
136
161
|
}
|
|
137
162
|
);
|
|
138
|
-
|
|
139
|
-
const
|
|
163
|
+
K.displayName = "AlertDialogPopup";
|
|
164
|
+
const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
140
165
|
d.Title,
|
|
141
166
|
{
|
|
142
167
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
143
168
|
...a
|
|
144
169
|
}
|
|
145
170
|
);
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const
|
|
171
|
+
O.displayName = "AlertDialogTitle";
|
|
172
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("mt-2", e), ...a });
|
|
173
|
+
Q.displayName = "AlertDialogDescription";
|
|
174
|
+
const U = ({
|
|
150
175
|
className: e,
|
|
151
176
|
variant: a,
|
|
152
177
|
size: o,
|
|
153
|
-
...
|
|
178
|
+
...l
|
|
154
179
|
}) => /* @__PURE__ */ t(
|
|
155
180
|
d.Close,
|
|
156
181
|
{
|
|
157
182
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
158
|
-
...
|
|
183
|
+
...l
|
|
159
184
|
}
|
|
160
185
|
);
|
|
161
|
-
|
|
162
|
-
const
|
|
186
|
+
U.displayName = "AlertDialogClose";
|
|
187
|
+
const P = n(
|
|
163
188
|
[
|
|
164
189
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
165
190
|
"bg-muted text-foreground",
|
|
@@ -177,18 +202,18 @@ const z = n(
|
|
|
177
202
|
size: "default"
|
|
178
203
|
}
|
|
179
204
|
}
|
|
180
|
-
),
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
|
|
205
|
+
), R = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(D.Root, { className: r(P({ size: a }), e), ...o });
|
|
206
|
+
R.displayName = "AvatarRoot";
|
|
207
|
+
const W = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
208
|
+
D.Image,
|
|
184
209
|
{
|
|
185
210
|
className: r("aspect-square h-full w-full object-cover", e),
|
|
186
211
|
...a
|
|
187
212
|
}
|
|
188
213
|
);
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
|
|
214
|
+
W.displayName = "AvatarImage";
|
|
215
|
+
const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
216
|
+
D.Fallback,
|
|
192
217
|
{
|
|
193
218
|
className: r(
|
|
194
219
|
"flex h-full w-full items-center justify-center font-medium",
|
|
@@ -197,50 +222,50 @@ const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
197
222
|
...a
|
|
198
223
|
}
|
|
199
224
|
);
|
|
200
|
-
|
|
201
|
-
const
|
|
225
|
+
X.displayName = "AvatarFallback";
|
|
226
|
+
const Y = ({
|
|
202
227
|
"aria-label": e,
|
|
203
228
|
maxVisible: a,
|
|
204
229
|
className: o,
|
|
205
|
-
children:
|
|
230
|
+
children: l
|
|
206
231
|
}) => {
|
|
207
|
-
const i =
|
|
232
|
+
const i = x.Children.toArray(l), c = i.length, g = a !== void 0 ? Math.min(a, c) : c, N = c - g, v = i.slice(0, g), C = (() => {
|
|
208
233
|
const p = i[0];
|
|
209
|
-
return
|
|
234
|
+
return x.isValidElement(p) && p.type === R ? p.props.size ?? "default" : "default";
|
|
210
235
|
})();
|
|
211
|
-
return /* @__PURE__ */
|
|
212
|
-
v.map((p,
|
|
213
|
-
|
|
236
|
+
return /* @__PURE__ */ A("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
|
|
237
|
+
v.map((p, k) => /* @__PURE__ */ t("li", { children: p }, k)),
|
|
238
|
+
N > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ A(
|
|
214
239
|
"span",
|
|
215
240
|
{
|
|
216
241
|
className: r(
|
|
217
242
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
218
243
|
"bg-muted text-foreground border-2 border-background",
|
|
219
244
|
"font-medium",
|
|
220
|
-
|
|
245
|
+
P({ size: C })
|
|
221
246
|
),
|
|
222
247
|
children: [
|
|
223
248
|
"+",
|
|
224
|
-
|
|
249
|
+
N
|
|
225
250
|
]
|
|
226
251
|
}
|
|
227
252
|
) })
|
|
228
253
|
] });
|
|
229
254
|
};
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
const
|
|
255
|
+
Y.displayName = "AvatarStack";
|
|
256
|
+
const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Root, { className: r("relative", e), ...a });
|
|
257
|
+
Z.displayName = "ScrollAreaRoot";
|
|
258
|
+
const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
234
259
|
m.Viewport,
|
|
235
260
|
{
|
|
236
261
|
className: r("h-full overscroll-contain pr-3", e),
|
|
237
262
|
...a
|
|
238
263
|
}
|
|
239
264
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
const
|
|
265
|
+
ee.displayName = "ScrollAreaViewport";
|
|
266
|
+
const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Content, { className: r("min-w-full", e), ...a });
|
|
267
|
+
ae.displayName = "ScrollAreaContent";
|
|
268
|
+
const te = ({
|
|
244
269
|
className: e,
|
|
245
270
|
orientation: a = "vertical",
|
|
246
271
|
...o
|
|
@@ -258,8 +283,8 @@ const Y = ({
|
|
|
258
283
|
...o
|
|
259
284
|
}
|
|
260
285
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
286
|
+
te.displayName = "ScrollAreaScrollbar";
|
|
287
|
+
const re = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
263
288
|
m.Thumb,
|
|
264
289
|
{
|
|
265
290
|
className: r(
|
|
@@ -270,11 +295,11 @@ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
270
295
|
...a
|
|
271
296
|
}
|
|
272
297
|
);
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
const
|
|
277
|
-
|
|
298
|
+
re.displayName = "ScrollAreaThumb";
|
|
299
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Corner, { className: r("bg-muted/50", e), ...a });
|
|
300
|
+
oe.displayName = "ScrollAreaCorner";
|
|
301
|
+
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
302
|
+
T.Root,
|
|
278
303
|
{
|
|
279
304
|
className: r(
|
|
280
305
|
"relative flex h-6 w-10 rounded-full",
|
|
@@ -291,9 +316,9 @@ const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
291
316
|
...a
|
|
292
317
|
}
|
|
293
318
|
);
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
319
|
+
le.displayName = "SwitchRoot";
|
|
320
|
+
const se = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
321
|
+
T.Thumb,
|
|
297
322
|
{
|
|
298
323
|
className: r(
|
|
299
324
|
"aspect-square h-full rounded-full bg-background",
|
|
@@ -307,8 +332,8 @@ const te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
307
332
|
...a
|
|
308
333
|
}
|
|
309
334
|
);
|
|
310
|
-
|
|
311
|
-
const
|
|
335
|
+
se.displayName = "SwitchThumb";
|
|
336
|
+
const V = n(
|
|
312
337
|
[
|
|
313
338
|
"inline-flex items-center justify-center gap-2 rounded-md",
|
|
314
339
|
"text-sm font-medium",
|
|
@@ -339,11 +364,11 @@ const R = n(
|
|
|
339
364
|
size: "default"
|
|
340
365
|
}
|
|
341
366
|
}
|
|
342
|
-
),
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
const
|
|
367
|
+
), ie = ({ className: e, variant: a, size: o, ...l }) => /* @__PURE__ */ t(z, { className: r(V({ variant: a, size: o }), e), ...l });
|
|
368
|
+
ie.displayName = "Toggle";
|
|
369
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Root, { className: r("flex flex-col", e), ...a });
|
|
370
|
+
ne.displayName = "TabsRoot";
|
|
371
|
+
const de = n(
|
|
347
372
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
348
373
|
{
|
|
349
374
|
variants: {
|
|
@@ -356,15 +381,15 @@ const se = n(
|
|
|
356
381
|
orientation: "horizontal"
|
|
357
382
|
}
|
|
358
383
|
}
|
|
359
|
-
),
|
|
384
|
+
), ce = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
360
385
|
f.List,
|
|
361
386
|
{
|
|
362
|
-
className: r(
|
|
387
|
+
className: r(de({ orientation: a }), e),
|
|
363
388
|
...o
|
|
364
389
|
}
|
|
365
390
|
);
|
|
366
|
-
|
|
367
|
-
const
|
|
391
|
+
ce.displayName = "TabsList";
|
|
392
|
+
const ue = n(
|
|
368
393
|
[
|
|
369
394
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
370
395
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -385,9 +410,9 @@ const ie = n(
|
|
|
385
410
|
size: "default"
|
|
386
411
|
}
|
|
387
412
|
}
|
|
388
|
-
),
|
|
389
|
-
|
|
390
|
-
const
|
|
413
|
+
), me = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(f.Tab, { className: r(ue({ size: a }), e), ...o });
|
|
414
|
+
me.displayName = "TabsTab";
|
|
415
|
+
const ge = n(
|
|
391
416
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
392
417
|
{
|
|
393
418
|
variants: {
|
|
@@ -400,34 +425,34 @@ const de = n(
|
|
|
400
425
|
orientation: "horizontal"
|
|
401
426
|
}
|
|
402
427
|
}
|
|
403
|
-
),
|
|
428
|
+
), pe = ({
|
|
404
429
|
className: e,
|
|
405
430
|
orientation: a = "horizontal",
|
|
406
431
|
...o
|
|
407
432
|
}) => /* @__PURE__ */ t(
|
|
408
433
|
f.Indicator,
|
|
409
434
|
{
|
|
410
|
-
className: r(
|
|
435
|
+
className: r(ge({ orientation: a }), e),
|
|
411
436
|
...o
|
|
412
437
|
}
|
|
413
438
|
);
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
439
|
+
pe.displayName = "TabsIndicator";
|
|
440
|
+
const fe = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
|
|
441
|
+
fe.displayName = "TabsPanel";
|
|
442
|
+
const be = (e) => /* @__PURE__ */ t(s.Root, { ...e });
|
|
443
|
+
be.displayName = "DialogRoot";
|
|
444
|
+
const ye = ({ className: e, variant: a, size: o, ...l }) => /* @__PURE__ */ t(
|
|
445
|
+
s.Trigger,
|
|
421
446
|
{
|
|
422
447
|
className: r(u({ variant: a, size: o }), e),
|
|
423
|
-
...
|
|
448
|
+
...l
|
|
424
449
|
}
|
|
425
450
|
);
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
|
|
451
|
+
ye.displayName = "DialogTrigger";
|
|
452
|
+
const he = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
|
|
453
|
+
he.displayName = "DialogPortal";
|
|
454
|
+
const Ne = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
455
|
+
s.Backdrop,
|
|
431
456
|
{
|
|
432
457
|
className: r(
|
|
433
458
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -438,8 +463,8 @@ const fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
438
463
|
...a
|
|
439
464
|
}
|
|
440
465
|
);
|
|
441
|
-
|
|
442
|
-
const
|
|
466
|
+
Ne.displayName = "DialogBackdrop";
|
|
467
|
+
const xe = n(
|
|
443
468
|
[
|
|
444
469
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
445
470
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -463,35 +488,35 @@ const be = n(
|
|
|
463
488
|
size: "default"
|
|
464
489
|
}
|
|
465
490
|
}
|
|
466
|
-
),
|
|
467
|
-
|
|
491
|
+
), ve = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
492
|
+
s.Popup,
|
|
468
493
|
{
|
|
469
|
-
className: r(
|
|
494
|
+
className: r(xe({ size: a }), e),
|
|
470
495
|
...o
|
|
471
496
|
}
|
|
472
497
|
);
|
|
473
|
-
|
|
474
|
-
const
|
|
475
|
-
|
|
498
|
+
ve.displayName = "DialogPopup";
|
|
499
|
+
const we = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
500
|
+
s.Title,
|
|
476
501
|
{
|
|
477
502
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
478
503
|
...a
|
|
479
504
|
}
|
|
480
505
|
);
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
|
|
506
|
+
we.displayName = "DialogTitle";
|
|
507
|
+
const De = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Description, { className: r("mt-2", e), ...a });
|
|
508
|
+
De.displayName = "DialogDescription";
|
|
509
|
+
const ke = ({ className: e, variant: a, size: o, ...l }) => /* @__PURE__ */ t(
|
|
510
|
+
s.Close,
|
|
486
511
|
{
|
|
487
512
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
488
|
-
...
|
|
513
|
+
...l
|
|
489
514
|
}
|
|
490
515
|
);
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
const
|
|
516
|
+
ke.displayName = "DialogClose";
|
|
517
|
+
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
518
|
+
Ae.displayName = "DialogHeader";
|
|
519
|
+
const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
495
520
|
"div",
|
|
496
521
|
{
|
|
497
522
|
className: r(
|
|
@@ -501,21 +526,21 @@ const we = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
501
526
|
...a
|
|
502
527
|
}
|
|
503
528
|
);
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
|
|
529
|
+
Te.displayName = "DialogFooter";
|
|
530
|
+
const ze = (e) => /* @__PURE__ */ t(s.Root, { ...e });
|
|
531
|
+
ze.displayName = "DrawerRoot";
|
|
532
|
+
const Pe = ({ className: e, variant: a, size: o, ...l }) => /* @__PURE__ */ t(
|
|
533
|
+
s.Trigger,
|
|
509
534
|
{
|
|
510
535
|
className: r(u({ variant: a, size: o }), e),
|
|
511
|
-
...
|
|
536
|
+
...l
|
|
512
537
|
}
|
|
513
538
|
);
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
539
|
+
Pe.displayName = "DrawerTrigger";
|
|
540
|
+
const Re = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
|
|
541
|
+
Re.displayName = "DrawerPortal";
|
|
542
|
+
const Ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
543
|
+
s.Backdrop,
|
|
519
544
|
{
|
|
520
545
|
className: r(
|
|
521
546
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -526,8 +551,8 @@ const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
526
551
|
...a
|
|
527
552
|
}
|
|
528
553
|
);
|
|
529
|
-
|
|
530
|
-
const
|
|
554
|
+
Ve.displayName = "DrawerBackdrop";
|
|
555
|
+
const Ce = n(
|
|
531
556
|
[
|
|
532
557
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
533
558
|
"transition-transform duration-300 ease-out",
|
|
@@ -563,51 +588,51 @@ const ze = n(
|
|
|
563
588
|
side: "right"
|
|
564
589
|
}
|
|
565
590
|
}
|
|
566
|
-
),
|
|
567
|
-
|
|
591
|
+
), Se = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
592
|
+
s.Popup,
|
|
568
593
|
{
|
|
569
|
-
className: r(
|
|
594
|
+
className: r(Ce({ side: a }), e),
|
|
570
595
|
...o
|
|
571
596
|
}
|
|
572
597
|
);
|
|
573
|
-
|
|
574
|
-
const
|
|
575
|
-
|
|
598
|
+
Se.displayName = "DrawerPopup";
|
|
599
|
+
const _e = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
600
|
+
s.Title,
|
|
576
601
|
{
|
|
577
602
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
578
603
|
...a
|
|
579
604
|
}
|
|
580
605
|
);
|
|
581
|
-
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
const
|
|
585
|
-
|
|
606
|
+
_e.displayName = "DrawerTitle";
|
|
607
|
+
const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Description, { className: r("", e), ...a });
|
|
608
|
+
Ie.displayName = "DrawerDescription";
|
|
609
|
+
const Fe = ({ className: e, variant: a, size: o, ...l }) => /* @__PURE__ */ t(
|
|
610
|
+
s.Close,
|
|
586
611
|
{
|
|
587
612
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
588
|
-
...
|
|
589
|
-
}
|
|
590
|
-
);
|
|
591
|
-
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
const
|
|
595
|
-
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
const
|
|
613
|
+
...l
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
Fe.displayName = "DrawerClose";
|
|
617
|
+
const je = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
618
|
+
je.displayName = "DrawerHeader";
|
|
619
|
+
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
620
|
+
Be.displayName = "DrawerContent";
|
|
621
|
+
const Me = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
622
|
+
Me.displayName = "DrawerFooter";
|
|
623
|
+
const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Root, { className: r("w-full", e), ...a });
|
|
624
|
+
Le.displayName = "AccordionRoot";
|
|
625
|
+
const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
601
626
|
b.Item,
|
|
602
627
|
{
|
|
603
628
|
className: r("border-b border-border last:border-b-0", e),
|
|
604
629
|
...a
|
|
605
630
|
}
|
|
606
631
|
);
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
const
|
|
632
|
+
He.displayName = "AccordionItem";
|
|
633
|
+
const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Header, { className: r("flex", e), ...a });
|
|
634
|
+
Ge.displayName = "AccordionHeader";
|
|
635
|
+
const qe = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
611
636
|
b.Trigger,
|
|
612
637
|
{
|
|
613
638
|
className: r(
|
|
@@ -618,8 +643,8 @@ const je = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
618
643
|
children: a
|
|
619
644
|
}
|
|
620
645
|
);
|
|
621
|
-
|
|
622
|
-
const
|
|
646
|
+
qe.displayName = "AccordionTrigger";
|
|
647
|
+
const Ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
623
648
|
b.Panel,
|
|
624
649
|
{
|
|
625
650
|
className: r(
|
|
@@ -629,24 +654,24 @@ const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
629
654
|
...a
|
|
630
655
|
}
|
|
631
656
|
);
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
const i = o ?? 0, [c, g] =
|
|
635
|
-
return
|
|
657
|
+
Ee.displayName = "AccordionPanel";
|
|
658
|
+
const $e = ({ className: e, animated: a, value: o, ...l }) => {
|
|
659
|
+
const i = o ?? 0, [c, g] = x.useState(a ? 0 : i);
|
|
660
|
+
return x.useEffect(() => {
|
|
636
661
|
if (a) {
|
|
637
|
-
const
|
|
662
|
+
const N = requestAnimationFrame(() => {
|
|
638
663
|
const v = requestAnimationFrame(() => {
|
|
639
664
|
g(i ?? 0);
|
|
640
665
|
});
|
|
641
666
|
return () => cancelAnimationFrame(v);
|
|
642
667
|
});
|
|
643
|
-
return () => cancelAnimationFrame(
|
|
668
|
+
return () => cancelAnimationFrame(N);
|
|
644
669
|
} else
|
|
645
670
|
g(i ?? 0);
|
|
646
|
-
}, [a, i]), /* @__PURE__ */ t(y.Root, { className: r("w-full", e), value: c, ...
|
|
671
|
+
}, [a, i]), /* @__PURE__ */ t(y.Root, { className: r("w-full", e), value: c, ...l });
|
|
647
672
|
};
|
|
648
|
-
|
|
649
|
-
const
|
|
673
|
+
$e.displayName = "MeterRoot";
|
|
674
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
650
675
|
y.Track,
|
|
651
676
|
{
|
|
652
677
|
className: r(
|
|
@@ -656,8 +681,8 @@ const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
656
681
|
...a
|
|
657
682
|
}
|
|
658
683
|
);
|
|
659
|
-
|
|
660
|
-
const
|
|
684
|
+
Je.displayName = "MeterTrack";
|
|
685
|
+
const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
661
686
|
y.Indicator,
|
|
662
687
|
{
|
|
663
688
|
className: r(
|
|
@@ -667,26 +692,26 @@ const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
667
692
|
...a
|
|
668
693
|
}
|
|
669
694
|
);
|
|
670
|
-
|
|
671
|
-
const
|
|
695
|
+
Ke.displayName = "MeterIndicator";
|
|
696
|
+
const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
672
697
|
y.Value,
|
|
673
698
|
{
|
|
674
699
|
className: r("text-sm font-medium text-foreground", e),
|
|
675
700
|
...a
|
|
676
701
|
}
|
|
677
702
|
);
|
|
678
|
-
|
|
679
|
-
const
|
|
703
|
+
Oe.displayName = "MeterValue";
|
|
704
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
680
705
|
y.Label,
|
|
681
706
|
{
|
|
682
707
|
className: r("text-sm font-medium text-foreground", e),
|
|
683
708
|
...a
|
|
684
709
|
}
|
|
685
710
|
);
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
const
|
|
711
|
+
Qe.displayName = "MeterLabel";
|
|
712
|
+
const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("w-full", e), ...a });
|
|
713
|
+
Ue.displayName = "ProgressRoot";
|
|
714
|
+
const We = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
690
715
|
h.Track,
|
|
691
716
|
{
|
|
692
717
|
className: r(
|
|
@@ -696,8 +721,8 @@ const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
696
721
|
...a
|
|
697
722
|
}
|
|
698
723
|
);
|
|
699
|
-
|
|
700
|
-
const
|
|
724
|
+
We.displayName = "ProgressTrack";
|
|
725
|
+
const Xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
701
726
|
h.Indicator,
|
|
702
727
|
{
|
|
703
728
|
className: r(
|
|
@@ -707,25 +732,25 @@ const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
707
732
|
...a
|
|
708
733
|
}
|
|
709
734
|
);
|
|
710
|
-
|
|
711
|
-
const
|
|
735
|
+
Xe.displayName = "ProgressIndicator";
|
|
736
|
+
const Ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
712
737
|
h.Value,
|
|
713
738
|
{
|
|
714
739
|
className: r("text-sm font-medium text-foreground", e),
|
|
715
740
|
...a
|
|
716
741
|
}
|
|
717
742
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
743
|
+
Ye.displayName = "ProgressValue";
|
|
744
|
+
const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
720
745
|
h.Label,
|
|
721
746
|
{
|
|
722
747
|
className: r("text-sm font-medium text-foreground", e),
|
|
723
748
|
...a
|
|
724
749
|
}
|
|
725
750
|
);
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
|
|
751
|
+
Ze.displayName = "ProgressLabel";
|
|
752
|
+
const ea = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
753
|
+
F,
|
|
729
754
|
{
|
|
730
755
|
orientation: a,
|
|
731
756
|
className: r(
|
|
@@ -741,91 +766,94 @@ const We = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
|
741
766
|
...o
|
|
742
767
|
}
|
|
743
768
|
);
|
|
744
|
-
|
|
745
|
-
const
|
|
769
|
+
ea.displayName = "ToggleGroupRoot";
|
|
770
|
+
const aa = ({
|
|
746
771
|
className: e,
|
|
747
772
|
variant: a,
|
|
748
773
|
size: o,
|
|
749
|
-
...
|
|
774
|
+
...l
|
|
750
775
|
}) => /* @__PURE__ */ t(
|
|
751
|
-
|
|
776
|
+
z,
|
|
752
777
|
{
|
|
753
778
|
className: r(
|
|
754
|
-
|
|
779
|
+
V({ variant: a, size: o }),
|
|
755
780
|
// Ghost variant in toggle-group: add borders, no background when pressed
|
|
756
781
|
a === "ghost" && "border border-border",
|
|
757
782
|
e
|
|
758
783
|
),
|
|
759
|
-
...
|
|
784
|
+
...l
|
|
760
785
|
}
|
|
761
786
|
);
|
|
762
|
-
|
|
787
|
+
aa.displayName = "ToggleGroupItem";
|
|
763
788
|
export {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
Ve as
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
le as
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
789
|
+
Ge as AccordionHeader,
|
|
790
|
+
He as AccordionItem,
|
|
791
|
+
Ee as AccordionPanel,
|
|
792
|
+
Le as AccordionRoot,
|
|
793
|
+
qe as AccordionTrigger,
|
|
794
|
+
wa as AlertDialog,
|
|
795
|
+
E as AlertDialogBackdrop,
|
|
796
|
+
U as AlertDialogClose,
|
|
797
|
+
Q as AlertDialogDescription,
|
|
798
|
+
K as AlertDialogPopup,
|
|
799
|
+
q as AlertDialogPortal,
|
|
800
|
+
H as AlertDialogRoot,
|
|
801
|
+
O as AlertDialogTitle,
|
|
802
|
+
G as AlertDialogTrigger,
|
|
803
|
+
$ as AlertDialogViewport,
|
|
804
|
+
X as AvatarFallback,
|
|
805
|
+
W as AvatarImage,
|
|
806
|
+
R as AvatarRoot,
|
|
807
|
+
Y as AvatarStack,
|
|
808
|
+
j as Button,
|
|
809
|
+
L as CollapsiblePanel,
|
|
810
|
+
B as CollapsibleRoot,
|
|
811
|
+
M as CollapsibleTrigger,
|
|
812
|
+
Ne as DialogBackdrop,
|
|
813
|
+
ke as DialogClose,
|
|
814
|
+
De as DialogDescription,
|
|
815
|
+
Te as DialogFooter,
|
|
816
|
+
Ae as DialogHeader,
|
|
817
|
+
ve as DialogPopup,
|
|
818
|
+
he as DialogPortal,
|
|
819
|
+
be as DialogRoot,
|
|
820
|
+
we as DialogTitle,
|
|
821
|
+
ye as DialogTrigger,
|
|
822
|
+
Ve as DrawerBackdrop,
|
|
823
|
+
Fe as DrawerClose,
|
|
824
|
+
Be as DrawerContent,
|
|
825
|
+
Ie as DrawerDescription,
|
|
826
|
+
Me as DrawerFooter,
|
|
827
|
+
je as DrawerHeader,
|
|
828
|
+
Se as DrawerPopup,
|
|
829
|
+
Re as DrawerPortal,
|
|
830
|
+
ze as DrawerRoot,
|
|
831
|
+
_e as DrawerTitle,
|
|
832
|
+
Pe as DrawerTrigger,
|
|
833
|
+
Ke as MeterIndicator,
|
|
834
|
+
Qe as MeterLabel,
|
|
835
|
+
$e as MeterRoot,
|
|
836
|
+
Je as MeterTrack,
|
|
837
|
+
Oe as MeterValue,
|
|
838
|
+
Xe as ProgressIndicator,
|
|
839
|
+
Ze as ProgressLabel,
|
|
840
|
+
Ue as ProgressRoot,
|
|
841
|
+
We as ProgressTrack,
|
|
842
|
+
Ye as ProgressValue,
|
|
843
|
+
ae as ScrollAreaContent,
|
|
844
|
+
oe as ScrollAreaCorner,
|
|
845
|
+
Z as ScrollAreaRoot,
|
|
846
|
+
te as ScrollAreaScrollbar,
|
|
847
|
+
re as ScrollAreaThumb,
|
|
848
|
+
ee as ScrollAreaViewport,
|
|
849
|
+
le as SwitchRoot,
|
|
850
|
+
se as SwitchThumb,
|
|
851
|
+
pe as TabsIndicator,
|
|
852
|
+
ce as TabsList,
|
|
853
|
+
fe as TabsPanel,
|
|
854
|
+
ne as TabsRoot,
|
|
855
|
+
me as TabsTab,
|
|
856
|
+
ie as Toggle,
|
|
857
|
+
aa as ToggleGroupItem,
|
|
858
|
+
ea as ToggleGroupRoot
|
|
831
859
|
};
|