@lglab/compose-ui 0.7.0 → 0.9.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/switch.d.ts +15 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/toggle.d.ts +14 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +315 -259
- package/dist/lib/toggle-variants.d.ts +5 -0
- package/dist/lib/toggle-variants.d.ts.map +1 -0
- package/dist/styles/default.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Switch as BaseSwitch } from '@base-ui/react/switch';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type SwitchRootProps = React.ComponentProps<typeof BaseSwitch.Root>;
|
|
4
|
+
declare const SwitchRoot: {
|
|
5
|
+
({ className, ...props }: SwitchRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type SwitchThumbProps = React.ComponentProps<typeof BaseSwitch.Thumb>;
|
|
9
|
+
declare const SwitchThumb: {
|
|
10
|
+
({ className, ...props }: SwitchThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export { SwitchRoot, SwitchThumb };
|
|
14
|
+
export type { SwitchRootProps, SwitchThumbProps };
|
|
15
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAA;AAEnE,QAAA,MAAM,UAAU;8BAA6B,eAAe;;CAkB3D,CAAA;AAQD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAA;AAErE,QAAA,MAAM,WAAW;8BAA6B,gBAAgB;;CAe7D,CAAA;AAQD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AAElC,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Toggle as BaseToggle } from '@base-ui/react/toggle';
|
|
2
|
+
import { ToggleSize } from '../lib/toggle-variants';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
type ToggleProps = React.ComponentProps<typeof BaseToggle> & {
|
|
5
|
+
/** Size of the toggle */
|
|
6
|
+
size?: ToggleSize;
|
|
7
|
+
};
|
|
8
|
+
declare const Toggle: {
|
|
9
|
+
({ className, size, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export { Toggle };
|
|
13
|
+
export type { ToggleProps };
|
|
14
|
+
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,wBAAwB,CAAA;AAOxE,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAC3D,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;oCAAmC,WAAW;;CAEzD,CAAA;AAQD,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,20 +2,22 @@ export { Button } from './components/button';
|
|
|
2
2
|
export { AlertDialogRoot, AlertDialogTrigger, AlertDialogPortal, AlertDialogBackdrop, AlertDialogViewport, AlertDialogPopup, AlertDialogTitle, AlertDialogDescription, AlertDialogClose, } from './components/alert-dialog';
|
|
3
3
|
export { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
4
4
|
export { AvatarRoot, AvatarImage, AvatarFallback, AvatarStack } from './components/avatar';
|
|
5
|
-
export { Avatar } from '@base-ui/react/avatar';
|
|
6
5
|
export { ScrollAreaRoot, ScrollAreaViewport, ScrollAreaContent, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, } from './components/scroll-area';
|
|
6
|
+
export { SwitchRoot, SwitchThumb } from './components/switch';
|
|
7
|
+
export { Toggle } from './components/toggle';
|
|
7
8
|
export { TabsRoot, TabsList, TabsTab, TabsIndicator, TabsPanel } from './components/tabs';
|
|
8
9
|
export { DialogRoot, DialogTrigger, DialogPortal, DialogBackdrop, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogHeader, DialogFooter, } from './components/dialog';
|
|
9
10
|
export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerContent, DrawerFooter, } from './components/drawer';
|
|
10
11
|
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel, } from './components/accordion';
|
|
11
12
|
export { MeterRoot, MeterTrack, MeterIndicator, MeterValue, MeterLabel, } from './components/meter';
|
|
12
|
-
export { Meter } from '@base-ui/react/meter';
|
|
13
13
|
export { ProgressRoot, ProgressTrack, ProgressIndicator, ProgressValue, ProgressLabel, } from './components/progress';
|
|
14
|
-
export { Progress } from '@base-ui/react/progress';
|
|
15
14
|
export type { ButtonProps } from './components/button';
|
|
16
15
|
export type { AlertDialogRootProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogBackdropProps, AlertDialogViewportProps, AlertDialogPopupProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, } from './components/alert-dialog';
|
|
17
16
|
export type { AvatarRootProps, AvatarImageProps, AvatarFallbackProps, AvatarStackProps, } from './components/avatar';
|
|
18
17
|
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
|
|
18
|
+
export type { SwitchRootProps, SwitchThumbProps } from './components/switch';
|
|
19
|
+
export type { ToggleProps } from './components/toggle';
|
|
20
|
+
export type { ToggleSize } from './lib/toggle-variants';
|
|
19
21
|
export type { TabsRootProps, TabsListProps, TabsTabProps, TabsIndicatorProps, TabsPanelProps, } from './components/tabs';
|
|
20
22
|
export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBackdropProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogHeaderProps, DialogFooterProps, } from './components/dialog';
|
|
21
23
|
export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, } from './components/drawer';
|
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,
|
|
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,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;AAC/B,OAAO,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,MAAM,uBAAuB,CAAA;AAE9B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,2BAA2B,CAAA;AAClC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;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"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { AlertDialog as
|
|
8
|
-
import { AlertDialog as
|
|
2
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
3
|
+
import { Button as V } from "@base-ui/react/button";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { clsx as R } from "clsx";
|
|
6
|
+
import { twMerge as S } from "tailwind-merge";
|
|
7
|
+
import { AlertDialog as d } from "@base-ui/react/alert-dialog";
|
|
8
|
+
import { AlertDialog as ga } from "@base-ui/react/alert-dialog";
|
|
9
9
|
import { Avatar as w } from "@base-ui/react/avatar";
|
|
10
|
-
import
|
|
11
|
-
import * as x from "react";
|
|
10
|
+
import * as N from "react";
|
|
12
11
|
import { ScrollArea as m } from "@base-ui/react/scroll-area";
|
|
12
|
+
import { Switch as A } from "@base-ui/react/switch";
|
|
13
|
+
import { Toggle as C } from "@base-ui/react/toggle";
|
|
13
14
|
import { Tabs as f } from "@base-ui/react/tabs";
|
|
14
|
-
import { Dialog as
|
|
15
|
+
import { Dialog as l } from "@base-ui/react/dialog";
|
|
15
16
|
import { Accordion as b } from "@base-ui/react/accordion";
|
|
16
17
|
import { Meter as y } from "@base-ui/react/meter";
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
import { Progress as ua } from "@base-ui/react/progress";
|
|
20
|
-
const u = d(
|
|
18
|
+
import { Progress as h } from "@base-ui/react/progress";
|
|
19
|
+
const u = n(
|
|
21
20
|
[
|
|
22
21
|
"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"
|
|
23
22
|
],
|
|
@@ -47,44 +46,44 @@ const u = d(
|
|
|
47
46
|
}
|
|
48
47
|
);
|
|
49
48
|
function r(...e) {
|
|
50
|
-
return R(
|
|
49
|
+
return S(R(e));
|
|
51
50
|
}
|
|
52
|
-
const
|
|
51
|
+
const _ = ({
|
|
53
52
|
className: e,
|
|
54
53
|
variant: a,
|
|
55
54
|
size: o,
|
|
56
|
-
disabled:
|
|
55
|
+
disabled: s,
|
|
57
56
|
children: i,
|
|
58
57
|
...c
|
|
59
58
|
}) => /* @__PURE__ */ t(
|
|
60
|
-
|
|
59
|
+
V,
|
|
61
60
|
{
|
|
62
61
|
className: r(u({ variant: a, size: o }), e),
|
|
63
|
-
disabled:
|
|
62
|
+
disabled: s,
|
|
64
63
|
...c,
|
|
65
64
|
children: i
|
|
66
65
|
}
|
|
67
66
|
);
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
67
|
+
_.displayName = "Button";
|
|
68
|
+
const I = (e) => /* @__PURE__ */ t(d.Root, { ...e });
|
|
69
|
+
I.displayName = "AlertDialogRoot";
|
|
70
|
+
const F = ({
|
|
72
71
|
className: e,
|
|
73
72
|
variant: a,
|
|
74
73
|
size: o,
|
|
75
|
-
...
|
|
74
|
+
...s
|
|
76
75
|
}) => /* @__PURE__ */ t(
|
|
77
|
-
|
|
76
|
+
d.Trigger,
|
|
78
77
|
{
|
|
79
78
|
className: r(u({ variant: a, size: o }), e),
|
|
80
|
-
...
|
|
79
|
+
...s
|
|
81
80
|
}
|
|
82
81
|
);
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
82
|
+
F.displayName = "AlertDialogTrigger";
|
|
83
|
+
const B = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
|
|
84
|
+
B.displayName = "AlertDialogPortal";
|
|
86
85
|
const M = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
87
|
-
|
|
86
|
+
d.Backdrop,
|
|
88
87
|
{
|
|
89
88
|
className: r(
|
|
90
89
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -96,15 +95,15 @@ const M = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
96
95
|
}
|
|
97
96
|
);
|
|
98
97
|
M.displayName = "AlertDialogBackdrop";
|
|
99
|
-
const
|
|
100
|
-
|
|
98
|
+
const j = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
99
|
+
d.Viewport,
|
|
101
100
|
{
|
|
102
101
|
className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
|
|
103
102
|
...a
|
|
104
103
|
}
|
|
105
104
|
);
|
|
106
|
-
|
|
107
|
-
const
|
|
105
|
+
j.displayName = "AlertDialogViewport";
|
|
106
|
+
const L = n(
|
|
108
107
|
[
|
|
109
108
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
110
109
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -128,38 +127,38 @@ const j = d(
|
|
|
128
127
|
size: "default"
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
|
-
),
|
|
132
|
-
|
|
130
|
+
), H = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
131
|
+
d.Popup,
|
|
133
132
|
{
|
|
134
|
-
className: r(
|
|
133
|
+
className: r(L({ size: a }), e),
|
|
135
134
|
...o
|
|
136
135
|
}
|
|
137
136
|
);
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
137
|
+
H.displayName = "AlertDialogPopup";
|
|
138
|
+
const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
139
|
+
d.Title,
|
|
141
140
|
{
|
|
142
141
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
143
142
|
...a
|
|
144
143
|
}
|
|
145
144
|
);
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const
|
|
145
|
+
q.displayName = "AlertDialogTitle";
|
|
146
|
+
const E = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("mt-2", e), ...a });
|
|
147
|
+
E.displayName = "AlertDialogDescription";
|
|
148
|
+
const $ = ({
|
|
150
149
|
className: e,
|
|
151
150
|
variant: a,
|
|
152
151
|
size: o,
|
|
153
|
-
...
|
|
152
|
+
...s
|
|
154
153
|
}) => /* @__PURE__ */ t(
|
|
155
|
-
|
|
154
|
+
d.Close,
|
|
156
155
|
{
|
|
157
156
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
158
|
-
...
|
|
157
|
+
...s
|
|
159
158
|
}
|
|
160
159
|
);
|
|
161
|
-
|
|
162
|
-
const
|
|
160
|
+
$.displayName = "AlertDialogClose";
|
|
161
|
+
const T = n(
|
|
163
162
|
[
|
|
164
163
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
165
164
|
"bg-muted text-foreground",
|
|
@@ -177,17 +176,17 @@ const k = d(
|
|
|
177
176
|
size: "default"
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
|
-
),
|
|
181
|
-
|
|
182
|
-
const
|
|
179
|
+
), z = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(w.Root, { className: r(T({ size: a }), e), ...o });
|
|
180
|
+
z.displayName = "AvatarRoot";
|
|
181
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
183
182
|
w.Image,
|
|
184
183
|
{
|
|
185
184
|
className: r("aspect-square h-full w-full object-cover", e),
|
|
186
185
|
...a
|
|
187
186
|
}
|
|
188
187
|
);
|
|
189
|
-
|
|
190
|
-
const
|
|
188
|
+
G.displayName = "AvatarImage";
|
|
189
|
+
const J = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
191
190
|
w.Fallback,
|
|
192
191
|
{
|
|
193
192
|
className: r(
|
|
@@ -197,50 +196,50 @@ const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
197
196
|
...a
|
|
198
197
|
}
|
|
199
198
|
);
|
|
200
|
-
|
|
201
|
-
const
|
|
199
|
+
J.displayName = "AvatarFallback";
|
|
200
|
+
const K = ({
|
|
202
201
|
"aria-label": e,
|
|
203
202
|
maxVisible: a,
|
|
204
203
|
className: o,
|
|
205
|
-
children:
|
|
204
|
+
children: s
|
|
206
205
|
}) => {
|
|
207
|
-
const i =
|
|
206
|
+
const i = N.Children.toArray(s), c = i.length, g = a !== void 0 ? Math.min(a, c) : c, x = c - g, v = i.slice(0, g), P = (() => {
|
|
208
207
|
const p = i[0];
|
|
209
|
-
return
|
|
208
|
+
return N.isValidElement(p) && p.type === z ? p.props.size ?? "default" : "default";
|
|
210
209
|
})();
|
|
211
|
-
return /* @__PURE__ */
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
return /* @__PURE__ */ k("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
|
|
211
|
+
v.map((p, D) => /* @__PURE__ */ t("li", { children: p }, D)),
|
|
212
|
+
x > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ k(
|
|
214
213
|
"span",
|
|
215
214
|
{
|
|
216
215
|
className: r(
|
|
217
216
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
218
217
|
"bg-muted text-foreground border-2 border-background",
|
|
219
218
|
"font-medium",
|
|
220
|
-
|
|
219
|
+
T({ size: P })
|
|
221
220
|
),
|
|
222
221
|
children: [
|
|
223
222
|
"+",
|
|
224
|
-
|
|
223
|
+
x
|
|
225
224
|
]
|
|
226
225
|
}
|
|
227
226
|
) })
|
|
228
227
|
] });
|
|
229
228
|
};
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
const
|
|
229
|
+
K.displayName = "AvatarStack";
|
|
230
|
+
const O = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Root, { className: r("relative", e), ...a });
|
|
231
|
+
O.displayName = "ScrollAreaRoot";
|
|
232
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
234
233
|
m.Viewport,
|
|
235
234
|
{
|
|
236
235
|
className: r("h-full overscroll-contain pr-3", e),
|
|
237
236
|
...a
|
|
238
237
|
}
|
|
239
238
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
const
|
|
239
|
+
Q.displayName = "ScrollAreaViewport";
|
|
240
|
+
const U = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Content, { className: r("min-w-full", e), ...a });
|
|
241
|
+
U.displayName = "ScrollAreaContent";
|
|
242
|
+
const W = ({
|
|
244
243
|
className: e,
|
|
245
244
|
orientation: a = "vertical",
|
|
246
245
|
...o
|
|
@@ -258,8 +257,8 @@ const Q = ({
|
|
|
258
257
|
...o
|
|
259
258
|
}
|
|
260
259
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
260
|
+
W.displayName = "ScrollAreaScrollbar";
|
|
261
|
+
const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
263
262
|
m.Thumb,
|
|
264
263
|
{
|
|
265
264
|
className: r(
|
|
@@ -270,12 +269,69 @@ const U = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
270
269
|
...a
|
|
271
270
|
}
|
|
272
271
|
);
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
X.displayName = "ScrollAreaThumb";
|
|
273
|
+
const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Corner, { className: r("bg-muted/50", e), ...a });
|
|
274
|
+
Y.displayName = "ScrollAreaCorner";
|
|
275
|
+
const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
276
|
+
A.Root,
|
|
277
|
+
{
|
|
278
|
+
className: r(
|
|
279
|
+
"relative flex h-6 w-10 rounded-full",
|
|
280
|
+
"bg-linear-to-r from-primary from-35% to-muted to-65% bg-size-[6.5rem_100%] bg-position-[100%_0%] bg-no-repeat",
|
|
281
|
+
"p-px",
|
|
282
|
+
"shadow-[inset_0_1.5px_2px] shadow-muted-foreground/20",
|
|
283
|
+
"transition-[background-position,box-shadow] duration-125 ease-[cubic-bezier(0.26,0.75,0.38,0.45)]",
|
|
284
|
+
"data-checked:bg-position-[0%_0%]",
|
|
285
|
+
"dark:from-primary/50 dark:shadow-none",
|
|
286
|
+
"dark:data-checked:bg-foreground",
|
|
287
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-70",
|
|
288
|
+
e
|
|
289
|
+
),
|
|
290
|
+
...a
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
Z.displayName = "SwitchRoot";
|
|
294
|
+
const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
295
|
+
A.Thumb,
|
|
296
|
+
{
|
|
297
|
+
className: r(
|
|
298
|
+
"aspect-square h-full rounded-full bg-background",
|
|
299
|
+
"shadow-[0_0_1px_1px,0_1px_1px,1px_2px_4px_-1px] shadow-muted-foreground/20",
|
|
300
|
+
"transition-all duration-150",
|
|
301
|
+
"data-checked:translate-x-4",
|
|
302
|
+
"dark:shadow-black/25 dark:bg-foreground dark:data-checked:bg-background",
|
|
303
|
+
"data-disabled:opacity-100",
|
|
304
|
+
e
|
|
305
|
+
),
|
|
306
|
+
...a
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
ee.displayName = "SwitchThumb";
|
|
310
|
+
const ae = n(
|
|
311
|
+
[
|
|
312
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium",
|
|
313
|
+
"[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
|
|
314
|
+
"border border-border bg-background hover:bg-muted shadow-xs",
|
|
315
|
+
"transition-all duration-150",
|
|
316
|
+
"data-pressed:border-primary data-pressed:bg-primary data-pressed:text-primary-foreground data-pressed:shadow-sm"
|
|
317
|
+
],
|
|
318
|
+
{
|
|
319
|
+
variants: {
|
|
320
|
+
size: {
|
|
321
|
+
sm: "h-8 min-w-8 px-2 gap-1.5",
|
|
322
|
+
default: "h-9 min-w-9 px-2.5",
|
|
323
|
+
lg: "h-10 min-w-10 px-3"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
defaultVariants: {
|
|
327
|
+
size: "default"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
), te = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(C, { className: r(ae({ size: a }), e), ...o });
|
|
331
|
+
te.displayName = "Toggle";
|
|
332
|
+
const re = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Root, { className: r("flex flex-col", e), ...a });
|
|
333
|
+
re.displayName = "TabsRoot";
|
|
334
|
+
const oe = n(
|
|
279
335
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
280
336
|
{
|
|
281
337
|
variants: {
|
|
@@ -288,15 +344,15 @@ const Y = d(
|
|
|
288
344
|
orientation: "horizontal"
|
|
289
345
|
}
|
|
290
346
|
}
|
|
291
|
-
),
|
|
347
|
+
), se = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
292
348
|
f.List,
|
|
293
349
|
{
|
|
294
|
-
className: r(
|
|
350
|
+
className: r(oe({ orientation: a }), e),
|
|
295
351
|
...o
|
|
296
352
|
}
|
|
297
353
|
);
|
|
298
|
-
|
|
299
|
-
const
|
|
354
|
+
se.displayName = "TabsList";
|
|
355
|
+
const le = n(
|
|
300
356
|
[
|
|
301
357
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
302
358
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -317,9 +373,9 @@ const ee = d(
|
|
|
317
373
|
size: "default"
|
|
318
374
|
}
|
|
319
375
|
}
|
|
320
|
-
),
|
|
321
|
-
|
|
322
|
-
const
|
|
376
|
+
), ie = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(f.Tab, { className: r(le({ size: a }), e), ...o });
|
|
377
|
+
ie.displayName = "TabsTab";
|
|
378
|
+
const ne = n(
|
|
323
379
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
324
380
|
{
|
|
325
381
|
variants: {
|
|
@@ -332,34 +388,34 @@ const te = d(
|
|
|
332
388
|
orientation: "horizontal"
|
|
333
389
|
}
|
|
334
390
|
}
|
|
335
|
-
),
|
|
391
|
+
), de = ({
|
|
336
392
|
className: e,
|
|
337
393
|
orientation: a = "horizontal",
|
|
338
394
|
...o
|
|
339
395
|
}) => /* @__PURE__ */ t(
|
|
340
396
|
f.Indicator,
|
|
341
397
|
{
|
|
342
|
-
className: r(
|
|
398
|
+
className: r(ne({ orientation: a }), e),
|
|
343
399
|
...o
|
|
344
400
|
}
|
|
345
401
|
);
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
const
|
|
352
|
-
|
|
402
|
+
de.displayName = "TabsIndicator";
|
|
403
|
+
const ce = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
|
|
404
|
+
ce.displayName = "TabsPanel";
|
|
405
|
+
const ue = (e) => /* @__PURE__ */ t(l.Root, { ...e });
|
|
406
|
+
ue.displayName = "DialogRoot";
|
|
407
|
+
const me = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
408
|
+
l.Trigger,
|
|
353
409
|
{
|
|
354
410
|
className: r(u({ variant: a, size: o }), e),
|
|
355
|
-
...
|
|
411
|
+
...s
|
|
356
412
|
}
|
|
357
413
|
);
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
|
|
414
|
+
me.displayName = "DialogTrigger";
|
|
415
|
+
const ge = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
|
|
416
|
+
ge.displayName = "DialogPortal";
|
|
417
|
+
const pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
418
|
+
l.Backdrop,
|
|
363
419
|
{
|
|
364
420
|
className: r(
|
|
365
421
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -370,8 +426,8 @@ const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
370
426
|
...a
|
|
371
427
|
}
|
|
372
428
|
);
|
|
373
|
-
|
|
374
|
-
const
|
|
429
|
+
pe.displayName = "DialogBackdrop";
|
|
430
|
+
const fe = n(
|
|
375
431
|
[
|
|
376
432
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
377
433
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -395,35 +451,35 @@ const de = d(
|
|
|
395
451
|
size: "default"
|
|
396
452
|
}
|
|
397
453
|
}
|
|
398
|
-
),
|
|
399
|
-
|
|
454
|
+
), be = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
455
|
+
l.Popup,
|
|
400
456
|
{
|
|
401
|
-
className: r(
|
|
457
|
+
className: r(fe({ size: a }), e),
|
|
402
458
|
...o
|
|
403
459
|
}
|
|
404
460
|
);
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
461
|
+
be.displayName = "DialogPopup";
|
|
462
|
+
const ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
463
|
+
l.Title,
|
|
408
464
|
{
|
|
409
465
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
410
466
|
...a
|
|
411
467
|
}
|
|
412
468
|
);
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
|
|
469
|
+
ye.displayName = "DialogTitle";
|
|
470
|
+
const he = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Description, { className: r("mt-2", e), ...a });
|
|
471
|
+
he.displayName = "DialogDescription";
|
|
472
|
+
const xe = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
473
|
+
l.Close,
|
|
418
474
|
{
|
|
419
475
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
420
|
-
...
|
|
476
|
+
...s
|
|
421
477
|
}
|
|
422
478
|
);
|
|
423
|
-
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
const
|
|
479
|
+
xe.displayName = "DialogClose";
|
|
480
|
+
const Ne = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
481
|
+
Ne.displayName = "DialogHeader";
|
|
482
|
+
const ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
427
483
|
"div",
|
|
428
484
|
{
|
|
429
485
|
className: r(
|
|
@@ -433,21 +489,21 @@ const fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
433
489
|
...a
|
|
434
490
|
}
|
|
435
491
|
);
|
|
436
|
-
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
const
|
|
440
|
-
|
|
492
|
+
ve.displayName = "DialogFooter";
|
|
493
|
+
const we = (e) => /* @__PURE__ */ t(l.Root, { ...e });
|
|
494
|
+
we.displayName = "DrawerRoot";
|
|
495
|
+
const De = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
496
|
+
l.Trigger,
|
|
441
497
|
{
|
|
442
498
|
className: r(u({ variant: a, size: o }), e),
|
|
443
|
-
...
|
|
499
|
+
...s
|
|
444
500
|
}
|
|
445
501
|
);
|
|
446
|
-
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
const
|
|
450
|
-
|
|
502
|
+
De.displayName = "DrawerTrigger";
|
|
503
|
+
const ke = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
|
|
504
|
+
ke.displayName = "DrawerPortal";
|
|
505
|
+
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
506
|
+
l.Backdrop,
|
|
451
507
|
{
|
|
452
508
|
className: r(
|
|
453
509
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -458,8 +514,8 @@ const ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
458
514
|
...a
|
|
459
515
|
}
|
|
460
516
|
);
|
|
461
|
-
|
|
462
|
-
const
|
|
517
|
+
Ae.displayName = "DrawerBackdrop";
|
|
518
|
+
const Te = n(
|
|
463
519
|
[
|
|
464
520
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
465
521
|
"transition-transform duration-300 ease-out",
|
|
@@ -495,51 +551,51 @@ const xe = d(
|
|
|
495
551
|
side: "right"
|
|
496
552
|
}
|
|
497
553
|
}
|
|
498
|
-
),
|
|
499
|
-
|
|
554
|
+
), ze = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
555
|
+
l.Popup,
|
|
500
556
|
{
|
|
501
|
-
className: r(
|
|
557
|
+
className: r(Te({ side: a }), e),
|
|
502
558
|
...o
|
|
503
559
|
}
|
|
504
560
|
);
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
|
|
561
|
+
ze.displayName = "DrawerPopup";
|
|
562
|
+
const Pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
563
|
+
l.Title,
|
|
508
564
|
{
|
|
509
565
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
510
566
|
...a
|
|
511
567
|
}
|
|
512
568
|
);
|
|
513
|
-
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
|
|
569
|
+
Pe.displayName = "DrawerTitle";
|
|
570
|
+
const Ve = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Description, { className: r("", e), ...a });
|
|
571
|
+
Ve.displayName = "DrawerDescription";
|
|
572
|
+
const Re = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
573
|
+
l.Close,
|
|
518
574
|
{
|
|
519
575
|
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
520
|
-
...
|
|
521
|
-
}
|
|
522
|
-
);
|
|
523
|
-
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
const
|
|
576
|
+
...s
|
|
577
|
+
}
|
|
578
|
+
);
|
|
579
|
+
Re.displayName = "DrawerClose";
|
|
580
|
+
const Se = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
581
|
+
Se.displayName = "DrawerHeader";
|
|
582
|
+
const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
583
|
+
Ce.displayName = "DrawerContent";
|
|
584
|
+
const _e = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
585
|
+
_e.displayName = "DrawerFooter";
|
|
586
|
+
const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Root, { className: r("w-full", e), ...a });
|
|
587
|
+
Ie.displayName = "AccordionRoot";
|
|
588
|
+
const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
533
589
|
b.Item,
|
|
534
590
|
{
|
|
535
591
|
className: r("border-b border-border last:border-b-0", e),
|
|
536
592
|
...a
|
|
537
593
|
}
|
|
538
594
|
);
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
const
|
|
595
|
+
Fe.displayName = "AccordionItem";
|
|
596
|
+
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Header, { className: r("flex", e), ...a });
|
|
597
|
+
Be.displayName = "AccordionHeader";
|
|
598
|
+
const Me = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
543
599
|
b.Trigger,
|
|
544
600
|
{
|
|
545
601
|
className: r(
|
|
@@ -550,8 +606,8 @@ const Ce = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
550
606
|
children: a
|
|
551
607
|
}
|
|
552
608
|
);
|
|
553
|
-
|
|
554
|
-
const
|
|
609
|
+
Me.displayName = "AccordionTrigger";
|
|
610
|
+
const je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
555
611
|
b.Panel,
|
|
556
612
|
{
|
|
557
613
|
className: r(
|
|
@@ -561,24 +617,24 @@ const Se = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
561
617
|
...a
|
|
562
618
|
}
|
|
563
619
|
);
|
|
564
|
-
|
|
565
|
-
const
|
|
566
|
-
const i = o ?? 0, [c, g] =
|
|
567
|
-
return
|
|
620
|
+
je.displayName = "AccordionPanel";
|
|
621
|
+
const Le = ({ className: e, animated: a, value: o, ...s }) => {
|
|
622
|
+
const i = o ?? 0, [c, g] = N.useState(a ? 0 : i);
|
|
623
|
+
return N.useEffect(() => {
|
|
568
624
|
if (a) {
|
|
569
|
-
const
|
|
570
|
-
const
|
|
625
|
+
const x = requestAnimationFrame(() => {
|
|
626
|
+
const v = requestAnimationFrame(() => {
|
|
571
627
|
g(i ?? 0);
|
|
572
628
|
});
|
|
573
|
-
return () => cancelAnimationFrame(
|
|
629
|
+
return () => cancelAnimationFrame(v);
|
|
574
630
|
});
|
|
575
|
-
return () => cancelAnimationFrame(
|
|
631
|
+
return () => cancelAnimationFrame(x);
|
|
576
632
|
} else
|
|
577
633
|
g(i ?? 0);
|
|
578
|
-
}, [a, i]), /* @__PURE__ */ t(y.Root, { className: r("w-full", e), value: c, ...
|
|
634
|
+
}, [a, i]), /* @__PURE__ */ t(y.Root, { className: r("w-full", e), value: c, ...s });
|
|
579
635
|
};
|
|
580
|
-
|
|
581
|
-
const
|
|
636
|
+
Le.displayName = "MeterRoot";
|
|
637
|
+
const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
582
638
|
y.Track,
|
|
583
639
|
{
|
|
584
640
|
className: r(
|
|
@@ -588,8 +644,8 @@ const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
588
644
|
...a
|
|
589
645
|
}
|
|
590
646
|
);
|
|
591
|
-
|
|
592
|
-
const
|
|
647
|
+
He.displayName = "MeterTrack";
|
|
648
|
+
const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
593
649
|
y.Indicator,
|
|
594
650
|
{
|
|
595
651
|
className: r(
|
|
@@ -599,27 +655,27 @@ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
599
655
|
...a
|
|
600
656
|
}
|
|
601
657
|
);
|
|
602
|
-
|
|
603
|
-
const
|
|
658
|
+
qe.displayName = "MeterIndicator";
|
|
659
|
+
const Ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
604
660
|
y.Value,
|
|
605
661
|
{
|
|
606
662
|
className: r("text-sm font-medium text-foreground", e),
|
|
607
663
|
...a
|
|
608
664
|
}
|
|
609
665
|
);
|
|
610
|
-
|
|
611
|
-
const
|
|
666
|
+
Ee.displayName = "MeterValue";
|
|
667
|
+
const $e = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
612
668
|
y.Label,
|
|
613
669
|
{
|
|
614
670
|
className: r("text-sm font-medium text-foreground", e),
|
|
615
671
|
...a
|
|
616
672
|
}
|
|
617
673
|
);
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
const
|
|
622
|
-
|
|
674
|
+
$e.displayName = "MeterLabel";
|
|
675
|
+
const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("w-full", e), ...a });
|
|
676
|
+
Ge.displayName = "ProgressRoot";
|
|
677
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
678
|
+
h.Track,
|
|
623
679
|
{
|
|
624
680
|
className: r(
|
|
625
681
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -628,9 +684,9 @@ const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
628
684
|
...a
|
|
629
685
|
}
|
|
630
686
|
);
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
|
|
687
|
+
Je.displayName = "ProgressTrack";
|
|
688
|
+
const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
689
|
+
h.Indicator,
|
|
634
690
|
{
|
|
635
691
|
className: r(
|
|
636
692
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -639,87 +695,87 @@ const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
639
695
|
...a
|
|
640
696
|
}
|
|
641
697
|
);
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
|
|
698
|
+
Ke.displayName = "ProgressIndicator";
|
|
699
|
+
const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
700
|
+
h.Value,
|
|
645
701
|
{
|
|
646
702
|
className: r("text-sm font-medium text-foreground", e),
|
|
647
703
|
...a
|
|
648
704
|
}
|
|
649
705
|
);
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
|
|
706
|
+
Oe.displayName = "ProgressValue";
|
|
707
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
708
|
+
h.Label,
|
|
653
709
|
{
|
|
654
710
|
className: r("text-sm font-medium text-foreground", e),
|
|
655
711
|
...a
|
|
656
712
|
}
|
|
657
713
|
);
|
|
658
|
-
|
|
714
|
+
Qe.displayName = "ProgressLabel";
|
|
659
715
|
export {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
716
|
+
Be as AccordionHeader,
|
|
717
|
+
Fe as AccordionItem,
|
|
718
|
+
je as AccordionPanel,
|
|
719
|
+
Ie as AccordionRoot,
|
|
720
|
+
Me as AccordionTrigger,
|
|
721
|
+
ga as AlertDialog,
|
|
666
722
|
M as AlertDialogBackdrop,
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
723
|
+
$ as AlertDialogClose,
|
|
724
|
+
E as AlertDialogDescription,
|
|
725
|
+
H as AlertDialogPopup,
|
|
726
|
+
B as AlertDialogPortal,
|
|
727
|
+
I as AlertDialogRoot,
|
|
728
|
+
q as AlertDialogTitle,
|
|
729
|
+
F as AlertDialogTrigger,
|
|
730
|
+
j as AlertDialogViewport,
|
|
731
|
+
J as AvatarFallback,
|
|
732
|
+
G as AvatarImage,
|
|
733
|
+
z as AvatarRoot,
|
|
734
|
+
K as AvatarStack,
|
|
735
|
+
_ as Button,
|
|
736
|
+
pe as DialogBackdrop,
|
|
737
|
+
xe as DialogClose,
|
|
738
|
+
he as DialogDescription,
|
|
739
|
+
ve as DialogFooter,
|
|
740
|
+
Ne as DialogHeader,
|
|
741
|
+
be as DialogPopup,
|
|
742
|
+
ge as DialogPortal,
|
|
743
|
+
ue as DialogRoot,
|
|
744
|
+
ye as DialogTitle,
|
|
745
|
+
me as DialogTrigger,
|
|
746
|
+
Ae as DrawerBackdrop,
|
|
747
|
+
Re as DrawerClose,
|
|
748
|
+
Ce as DrawerContent,
|
|
749
|
+
Ve as DrawerDescription,
|
|
750
|
+
_e as DrawerFooter,
|
|
751
|
+
Se as DrawerHeader,
|
|
752
|
+
ze as DrawerPopup,
|
|
753
|
+
ke as DrawerPortal,
|
|
754
|
+
we as DrawerRoot,
|
|
755
|
+
Pe as DrawerTitle,
|
|
756
|
+
De as DrawerTrigger,
|
|
757
|
+
qe as MeterIndicator,
|
|
758
|
+
$e as MeterLabel,
|
|
759
|
+
Le as MeterRoot,
|
|
760
|
+
He as MeterTrack,
|
|
761
|
+
Ee as MeterValue,
|
|
762
|
+
Ke as ProgressIndicator,
|
|
763
|
+
Qe as ProgressLabel,
|
|
764
|
+
Ge as ProgressRoot,
|
|
765
|
+
Je as ProgressTrack,
|
|
766
|
+
Oe as ProgressValue,
|
|
767
|
+
U as ScrollAreaContent,
|
|
768
|
+
Y as ScrollAreaCorner,
|
|
769
|
+
O as ScrollAreaRoot,
|
|
770
|
+
W as ScrollAreaScrollbar,
|
|
771
|
+
X as ScrollAreaThumb,
|
|
772
|
+
Q as ScrollAreaViewport,
|
|
773
|
+
Z as SwitchRoot,
|
|
774
|
+
ee as SwitchThumb,
|
|
775
|
+
de as TabsIndicator,
|
|
776
|
+
se as TabsList,
|
|
777
|
+
ce as TabsPanel,
|
|
778
|
+
re as TabsRoot,
|
|
779
|
+
ie as TabsTab,
|
|
780
|
+
te as Toggle
|
|
725
781
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ToggleSize = 'sm' | 'default' | 'lg';
|
|
2
|
+
export declare const toggleVariants: (props?: ({
|
|
3
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
//# sourceMappingURL=toggle-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-variants.d.ts","sourceRoot":"","sources":["../../src/lib/toggle-variants.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAEhD,eAAO,MAAM,cAAc;;8EAoB1B,CAAA"}
|
package/dist/styles/default.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
@layer base {
|
|
80
80
|
* {
|
|
81
|
-
@apply focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-disabled:pointer-events-none data-disabled:opacity-
|
|
81
|
+
@apply focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-disabled:pointer-events-none data-disabled:opacity-70;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lglab/compose-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A collection of components built with Base UI & Tailwind CSS",
|
|
5
5
|
"author": "LGLab",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"react-dom": "^19.2.3",
|
|
55
55
|
"rollup-preserve-directives": "^1.1.3",
|
|
56
56
|
"typescript": "~5.9.3",
|
|
57
|
-
"typescript-eslint": "^8.
|
|
58
|
-
"vite": "^7.3.
|
|
57
|
+
"typescript-eslint": "^8.52.0",
|
|
58
|
+
"vite": "^7.3.1",
|
|
59
59
|
"vite-plugin-dts": "^4.5.4",
|
|
60
60
|
"vite-plugin-static-copy": "^3.1.4"
|
|
61
61
|
},
|