@lglab/compose-ui 0.21.0 → 0.22.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/index.d.ts +50 -0
- package/dist/index.js +64 -56
- package/dist/preview-card.d.ts +54 -0
- package/dist/preview-card.js +82 -0
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
11
11
|
import { Menubar } from '@base-ui/react/menubar';
|
|
12
12
|
import { Meter } from '@base-ui/react/meter';
|
|
13
13
|
import { Popover } from '@base-ui/react/popover';
|
|
14
|
+
import { PreviewCard } from '@base-ui/react/preview-card';
|
|
14
15
|
import { Progress } from '@base-ui/react/progress';
|
|
15
16
|
import * as React_2 from 'react';
|
|
16
17
|
import { ScrollArea } from '@base-ui/react/scroll-area';
|
|
@@ -1009,6 +1010,55 @@ export declare const PopoverViewport: {
|
|
|
1009
1010
|
|
|
1010
1011
|
export declare type PopoverViewportProps = React_2.ComponentProps<typeof Popover.Viewport>;
|
|
1011
1012
|
|
|
1013
|
+
export declare const PreviewCardArrow: {
|
|
1014
|
+
({ className, ...props }: PreviewCardArrowProps): JSX.Element;
|
|
1015
|
+
displayName: string;
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
export declare type PreviewCardArrowProps = React_2.ComponentProps<typeof PreviewCard.Arrow>;
|
|
1019
|
+
|
|
1020
|
+
export declare const PreviewCardBackdrop: {
|
|
1021
|
+
({ className, ...props }: PreviewCardBackdropProps): JSX.Element;
|
|
1022
|
+
displayName: string;
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
export declare type PreviewCardBackdropProps = React_2.ComponentProps<typeof PreviewCard.Backdrop>;
|
|
1026
|
+
|
|
1027
|
+
export declare const PreviewCardPopup: {
|
|
1028
|
+
({ className, ...props }: PreviewCardPopupProps): JSX.Element;
|
|
1029
|
+
displayName: string;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
export declare type PreviewCardPopupProps = React_2.ComponentProps<typeof PreviewCard.Popup>;
|
|
1033
|
+
|
|
1034
|
+
export declare const PreviewCardPortal: {
|
|
1035
|
+
(props: PreviewCardPortalProps): JSX.Element;
|
|
1036
|
+
displayName: string;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
export declare type PreviewCardPortalProps = React_2.ComponentProps<typeof PreviewCard.Portal>;
|
|
1040
|
+
|
|
1041
|
+
export declare const PreviewCardPositioner: {
|
|
1042
|
+
({ className, ...props }: PreviewCardPositionerProps): JSX.Element;
|
|
1043
|
+
displayName: string;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
export declare type PreviewCardPositionerProps = React_2.ComponentProps<typeof PreviewCard.Positioner>;
|
|
1047
|
+
|
|
1048
|
+
export declare const PreviewCardRoot: {
|
|
1049
|
+
(props: PreviewCardRootProps): JSX.Element;
|
|
1050
|
+
displayName: string;
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
export declare type PreviewCardRootProps = React_2.ComponentProps<typeof PreviewCard.Root>;
|
|
1054
|
+
|
|
1055
|
+
export declare const PreviewCardTrigger: {
|
|
1056
|
+
({ className, ...props }: PreviewCardTriggerProps): JSX.Element;
|
|
1057
|
+
displayName: string;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
export declare type PreviewCardTriggerProps = React_2.ComponentProps<typeof PreviewCard.Trigger>;
|
|
1061
|
+
|
|
1012
1062
|
export declare const ProgressIndicator: {
|
|
1013
1063
|
({ className, ...props }: ProgressIndicatorProps): JSX.Element;
|
|
1014
1064
|
displayName: string;
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { Button as r } from "./button.js";
|
|
2
2
|
import { CollapsiblePanel as a, CollapsibleRoot as n, CollapsibleTrigger as i } from "./collapsible.js";
|
|
3
|
-
import { AlertDialogBackdrop as u, AlertDialogClose as p, AlertDialogDescription as M, AlertDialogPopup as b, AlertDialogPortal as g, AlertDialogRoot as
|
|
3
|
+
import { AlertDialogBackdrop as u, AlertDialogClose as p, AlertDialogDescription as M, AlertDialogPopup as b, AlertDialogPortal as g, AlertDialogRoot as d, AlertDialogTitle as m, AlertDialogTrigger as C, AlertDialogViewport as c } from "./alert-dialog.js";
|
|
4
4
|
import { AlertDialog as P } from "@base-ui/react/alert-dialog";
|
|
5
|
-
import { AvatarFallback as D, AvatarImage as
|
|
6
|
-
import { ScrollAreaContent as
|
|
5
|
+
import { AvatarFallback as D, AvatarImage as R, AvatarRoot as s, AvatarStack as I } from "./avatar.js";
|
|
6
|
+
import { ScrollAreaContent as w, ScrollAreaCorner as S, ScrollAreaRoot as f, ScrollAreaScrollbar as v, ScrollAreaThumb as k, ScrollAreaViewport as h } from "./scroll-area.js";
|
|
7
7
|
import { Separator as G } from "./separator.js";
|
|
8
|
-
import { SwitchRoot as
|
|
8
|
+
import { SwitchRoot as V, SwitchThumb as F } from "./switch.js";
|
|
9
9
|
import { Toggle as j } from "./toggle.js";
|
|
10
10
|
import { TabsIndicator as y, TabsList as z, TabsPanel as E, TabsRoot as J, TabsTab as K } from "./tabs.js";
|
|
11
11
|
import { DialogBackdrop as O, DialogClose as Q, DialogDescription as U, DialogFooter as W, DialogHeader as X, DialogPopup as Y, DialogPortal as Z, DialogRoot as _, DialogTitle as $, DialogTrigger as oo } from "./dialog.js";
|
|
12
12
|
import { DrawerBackdrop as ro, DrawerClose as to, DrawerContent as ao, DrawerDescription as no, DrawerFooter as io, DrawerHeader as lo, DrawerPopup as uo, DrawerPortal as po, DrawerRoot as Mo, DrawerTitle as bo, DrawerTrigger as go } from "./drawer.js";
|
|
13
|
-
import { AccordionHeader as
|
|
14
|
-
import { MeterIndicator as
|
|
15
|
-
import { MenuArrow as
|
|
13
|
+
import { AccordionHeader as Co, AccordionItem as co, AccordionPanel as xo, AccordionRoot as Po, AccordionTrigger as To } from "./accordion.js";
|
|
14
|
+
import { MeterIndicator as Ro, MeterLabel as so, MeterRoot as Io, MeterTrack as Ao, MeterValue as wo } from "./meter.js";
|
|
15
|
+
import { MenuArrow as fo, MenuCheckboxItem as vo, MenuCheckboxItemIndicator as ko, MenuCheckboxItemLabel as ho, MenuGroup as Lo, MenuGroupLabel as Go, MenuItem as Bo, MenuPopup as Vo, MenuPortal as Fo, MenuPositioner as Ho, MenuRadioGroup as jo, MenuRadioItem as qo, MenuRadioItemIndicator as yo, MenuRadioItemLabel as zo, MenuRoot as Eo, MenuSeparator as Jo, MenuSubmenuRoot as Ko, MenuSubmenuTrigger as No, MenuTrigger as Oo } from "./menu.js";
|
|
16
16
|
import { PopoverArrow as Uo, PopoverBackdrop as Wo, PopoverClose as Xo, PopoverDescription as Yo, PopoverPopup as Zo, PopoverPortal as _o, PopoverPositioner as $o, PopoverRoot as oe, PopoverTitle as ee, PopoverTrigger as re, PopoverViewport as te } from "./popover.js";
|
|
17
17
|
import { ProgressIndicator as ne, ProgressLabel as ie, ProgressRoot as le, ProgressTrack as ue, ProgressValue as pe } from "./progress.js";
|
|
18
18
|
import { ToggleGroupItem as be, ToggleGroupRoot as ge } from "./toggle-group.js";
|
|
19
|
-
import { CardContent as
|
|
20
|
-
import { ContextMenuArrow as
|
|
19
|
+
import { CardContent as me, CardDescription as Ce, CardFooter as ce, CardHeader as xe, CardMedia as Pe, CardRoot as Te, CardSection as De, CardTitle as Re } from "./card.js";
|
|
20
|
+
import { ContextMenuArrow as Ie, ContextMenuCheckboxItem as Ae, ContextMenuCheckboxItemIndicator as we, ContextMenuCheckboxItemLabel as Se, ContextMenuGroup as fe, ContextMenuGroupLabel as ve, ContextMenuItem as ke, ContextMenuPopup as he, ContextMenuPortal as Le, ContextMenuPositioner as Ge, ContextMenuRadioGroup as Be, ContextMenuRadioItem as Ve, ContextMenuRadioItemIndicator as Fe, ContextMenuRadioItemLabel as He, ContextMenuRoot as je, ContextMenuSeparator as qe, ContextMenuSubmenuRoot as ye, ContextMenuSubmenuTrigger as ze, ContextMenuTrigger as Ee } from "./context-menu.js";
|
|
21
21
|
import { MenubarArrow as Ke, MenubarCheckboxItem as Ne, MenubarCheckboxItemIndicator as Oe, MenubarCheckboxItemLabel as Qe, MenubarGroup as Ue, MenubarGroupLabel as We, MenubarItem as Xe, MenubarMenu as Ye, MenubarPopup as Ze, MenubarPortal as _e, MenubarPositioner as $e, MenubarRadioGroup as or, MenubarRadioItem as er, MenubarRadioItemIndicator as rr, MenubarRadioItemLabel as tr, MenubarRoot as ar, MenubarSeparator as nr, MenubarSubmenuRoot as ir, MenubarSubmenuTrigger as lr, MenubarTrigger as ur } from "./menubar.js";
|
|
22
|
-
import { SliderControl as Mr, SliderIndicator as br, SliderRoot as gr, SliderThumb as
|
|
23
|
-
import { TooltipArrow as
|
|
22
|
+
import { SliderControl as Mr, SliderIndicator as br, SliderRoot as gr, SliderThumb as dr, SliderTrack as mr, SliderValue as Cr } from "./slider.js";
|
|
23
|
+
import { TooltipArrow as xr, TooltipPopup as Pr, TooltipPortal as Tr, TooltipPositioner as Dr, TooltipProvider as Rr, TooltipRoot as sr, TooltipTrigger as Ir } from "./tooltip.js";
|
|
24
|
+
import { PreviewCardArrow as wr, PreviewCardBackdrop as Sr, PreviewCardPopup as fr, PreviewCardPortal as vr, PreviewCardPositioner as kr, PreviewCardRoot as hr, PreviewCardTrigger as Lr } from "./preview-card.js";
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Co as AccordionHeader,
|
|
27
|
+
co as AccordionItem,
|
|
28
|
+
xo as AccordionPanel,
|
|
28
29
|
Po as AccordionRoot,
|
|
29
30
|
To as AccordionTrigger,
|
|
30
31
|
P as AlertDialog,
|
|
@@ -33,38 +34,38 @@ export {
|
|
|
33
34
|
M as AlertDialogDescription,
|
|
34
35
|
b as AlertDialogPopup,
|
|
35
36
|
g as AlertDialogPortal,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
d as AlertDialogRoot,
|
|
38
|
+
m as AlertDialogTitle,
|
|
39
|
+
C as AlertDialogTrigger,
|
|
40
|
+
c as AlertDialogViewport,
|
|
40
41
|
D as AvatarFallback,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
R as AvatarImage,
|
|
43
|
+
s as AvatarRoot,
|
|
44
|
+
I as AvatarStack,
|
|
44
45
|
r as Button,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
me as CardContent,
|
|
47
|
+
Ce as CardDescription,
|
|
48
|
+
ce as CardFooter,
|
|
49
|
+
xe as CardHeader,
|
|
49
50
|
Pe as CardMedia,
|
|
50
51
|
Te as CardRoot,
|
|
51
52
|
De as CardSection,
|
|
52
|
-
|
|
53
|
+
Re as CardTitle,
|
|
53
54
|
a as CollapsiblePanel,
|
|
54
55
|
n as CollapsibleRoot,
|
|
55
56
|
i as CollapsibleTrigger,
|
|
56
|
-
|
|
57
|
+
Ie as ContextMenuArrow,
|
|
57
58
|
Ae as ContextMenuCheckboxItem,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
we as ContextMenuCheckboxItemIndicator,
|
|
60
|
+
Se as ContextMenuCheckboxItemLabel,
|
|
61
|
+
fe as ContextMenuGroup,
|
|
62
|
+
ve as ContextMenuGroupLabel,
|
|
63
|
+
ke as ContextMenuItem,
|
|
63
64
|
he as ContextMenuPopup,
|
|
64
65
|
Le as ContextMenuPortal,
|
|
65
66
|
Ge as ContextMenuPositioner,
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
Be as ContextMenuRadioGroup,
|
|
68
|
+
Ve as ContextMenuRadioItem,
|
|
68
69
|
Fe as ContextMenuRadioItemIndicator,
|
|
69
70
|
He as ContextMenuRadioItemLabel,
|
|
70
71
|
je as ContextMenuRoot,
|
|
@@ -93,14 +94,14 @@ export {
|
|
|
93
94
|
Mo as DrawerRoot,
|
|
94
95
|
bo as DrawerTitle,
|
|
95
96
|
go as DrawerTrigger,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
fo as MenuArrow,
|
|
98
|
+
vo as MenuCheckboxItem,
|
|
99
|
+
ko as MenuCheckboxItemIndicator,
|
|
99
100
|
ho as MenuCheckboxItemLabel,
|
|
100
101
|
Lo as MenuGroup,
|
|
101
102
|
Go as MenuGroupLabel,
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
Bo as MenuItem,
|
|
104
|
+
Vo as MenuPopup,
|
|
104
105
|
Fo as MenuPortal,
|
|
105
106
|
Ho as MenuPositioner,
|
|
106
107
|
jo as MenuRadioGroup,
|
|
@@ -132,11 +133,11 @@ export {
|
|
|
132
133
|
ir as MenubarSubmenuRoot,
|
|
133
134
|
lr as MenubarSubmenuTrigger,
|
|
134
135
|
ur as MenubarTrigger,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
Ro as MeterIndicator,
|
|
137
|
+
so as MeterLabel,
|
|
138
|
+
Io as MeterRoot,
|
|
138
139
|
Ao as MeterTrack,
|
|
139
|
-
|
|
140
|
+
wo as MeterValue,
|
|
140
141
|
Uo as PopoverArrow,
|
|
141
142
|
Wo as PopoverBackdrop,
|
|
142
143
|
Xo as PopoverClose,
|
|
@@ -148,25 +149,32 @@ export {
|
|
|
148
149
|
ee as PopoverTitle,
|
|
149
150
|
re as PopoverTrigger,
|
|
150
151
|
te as PopoverViewport,
|
|
152
|
+
wr as PreviewCardArrow,
|
|
153
|
+
Sr as PreviewCardBackdrop,
|
|
154
|
+
fr as PreviewCardPopup,
|
|
155
|
+
vr as PreviewCardPortal,
|
|
156
|
+
kr as PreviewCardPositioner,
|
|
157
|
+
hr as PreviewCardRoot,
|
|
158
|
+
Lr as PreviewCardTrigger,
|
|
151
159
|
ne as ProgressIndicator,
|
|
152
160
|
ie as ProgressLabel,
|
|
153
161
|
le as ProgressRoot,
|
|
154
162
|
ue as ProgressTrack,
|
|
155
163
|
pe as ProgressValue,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
w as ScrollAreaContent,
|
|
165
|
+
S as ScrollAreaCorner,
|
|
166
|
+
f as ScrollAreaRoot,
|
|
167
|
+
v as ScrollAreaScrollbar,
|
|
168
|
+
k as ScrollAreaThumb,
|
|
161
169
|
h as ScrollAreaViewport,
|
|
162
170
|
G as Separator,
|
|
163
171
|
Mr as SliderControl,
|
|
164
172
|
br as SliderIndicator,
|
|
165
173
|
gr as SliderRoot,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
dr as SliderThumb,
|
|
175
|
+
mr as SliderTrack,
|
|
176
|
+
Cr as SliderValue,
|
|
177
|
+
V as SwitchRoot,
|
|
170
178
|
F as SwitchThumb,
|
|
171
179
|
y as TabsIndicator,
|
|
172
180
|
z as TabsList,
|
|
@@ -176,11 +184,11 @@ export {
|
|
|
176
184
|
j as Toggle,
|
|
177
185
|
be as ToggleGroupItem,
|
|
178
186
|
ge as ToggleGroupRoot,
|
|
179
|
-
|
|
187
|
+
xr as TooltipArrow,
|
|
180
188
|
Pr as TooltipPopup,
|
|
181
189
|
Tr as TooltipPortal,
|
|
182
190
|
Dr as TooltipPositioner,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
Rr as TooltipProvider,
|
|
192
|
+
sr as TooltipRoot,
|
|
193
|
+
Ir as TooltipTrigger
|
|
186
194
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { PreviewCard } from '@base-ui/react/preview-card';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const PreviewCardArrow: {
|
|
6
|
+
({ className, ...props }: PreviewCardArrowProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare type PreviewCardArrowProps = React_2.ComponentProps<typeof PreviewCard.Arrow>;
|
|
11
|
+
|
|
12
|
+
export declare const PreviewCardBackdrop: {
|
|
13
|
+
({ className, ...props }: PreviewCardBackdropProps): JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare type PreviewCardBackdropProps = React_2.ComponentProps<typeof PreviewCard.Backdrop>;
|
|
18
|
+
|
|
19
|
+
export declare const PreviewCardPopup: {
|
|
20
|
+
({ className, ...props }: PreviewCardPopupProps): JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare type PreviewCardPopupProps = React_2.ComponentProps<typeof PreviewCard.Popup>;
|
|
25
|
+
|
|
26
|
+
export declare const PreviewCardPortal: {
|
|
27
|
+
(props: PreviewCardPortalProps): JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare type PreviewCardPortalProps = React_2.ComponentProps<typeof PreviewCard.Portal>;
|
|
32
|
+
|
|
33
|
+
export declare const PreviewCardPositioner: {
|
|
34
|
+
({ className, ...props }: PreviewCardPositionerProps): JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export declare type PreviewCardPositionerProps = React_2.ComponentProps<typeof PreviewCard.Positioner>;
|
|
39
|
+
|
|
40
|
+
export declare const PreviewCardRoot: {
|
|
41
|
+
(props: PreviewCardRootProps): JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export declare type PreviewCardRootProps = React_2.ComponentProps<typeof PreviewCard.Root>;
|
|
46
|
+
|
|
47
|
+
export declare const PreviewCardTrigger: {
|
|
48
|
+
({ className, ...props }: PreviewCardTriggerProps): JSX.Element;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export declare type PreviewCardTriggerProps = React_2.ComponentProps<typeof PreviewCard.Trigger>;
|
|
53
|
+
|
|
54
|
+
export { }
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { PreviewCard as e } from "@base-ui/react/preview-card";
|
|
4
|
+
import { A as o } from "./arrow-svg-C6zQTvgS.js";
|
|
5
|
+
import { c as i } from "./utils-B6yFEsav.js";
|
|
6
|
+
const d = (r) => /* @__PURE__ */ t(e.Root, { ...r });
|
|
7
|
+
d.displayName = "PreviewCardRoot";
|
|
8
|
+
const s = ({ className: r, ...a }) => /* @__PURE__ */ t(e.Trigger, { className: i("underline", r), ...a });
|
|
9
|
+
s.displayName = "PreviewCardTrigger";
|
|
10
|
+
const n = (r) => /* @__PURE__ */ t(e.Portal, { ...r });
|
|
11
|
+
n.displayName = "PreviewCardPortal";
|
|
12
|
+
const p = ({ className: r, ...a }) => /* @__PURE__ */ t(
|
|
13
|
+
e.Backdrop,
|
|
14
|
+
{
|
|
15
|
+
className: i(
|
|
16
|
+
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
17
|
+
"transition-opacity duration-200",
|
|
18
|
+
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
19
|
+
r
|
|
20
|
+
),
|
|
21
|
+
...a
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
p.displayName = "PreviewCardBackdrop";
|
|
25
|
+
const l = ({ className: r, ...a }) => /* @__PURE__ */ t(
|
|
26
|
+
e.Positioner,
|
|
27
|
+
{
|
|
28
|
+
className: i(
|
|
29
|
+
"z-50 outline-none",
|
|
30
|
+
"h-(--positioner-height) w-(--positioner-width)",
|
|
31
|
+
"max-w-(--available-width)",
|
|
32
|
+
"transition-[top,left,right,bottom,transform]",
|
|
33
|
+
"duration-[0.35s]",
|
|
34
|
+
"ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
35
|
+
"data-instant:transition-none",
|
|
36
|
+
r
|
|
37
|
+
),
|
|
38
|
+
sideOffset: 8,
|
|
39
|
+
...a
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
l.displayName = "PreviewCardPositioner";
|
|
43
|
+
const c = ({ className: r, ...a }) => /* @__PURE__ */ t(
|
|
44
|
+
e.Popup,
|
|
45
|
+
{
|
|
46
|
+
className: i(
|
|
47
|
+
"rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative",
|
|
48
|
+
"h-(--popup-height,auto) w-(--popup-width,auto)",
|
|
49
|
+
"max-w-[320px]",
|
|
50
|
+
"origin-(--transform-origin)",
|
|
51
|
+
"border-border",
|
|
52
|
+
"transition-[transform,scale,opacity]",
|
|
53
|
+
"data-ending-style:scale-90 data-ending-style:opacity-0",
|
|
54
|
+
"data-starting-style:scale-90 data-starting-style:opacity-0",
|
|
55
|
+
"dark:shadow-none",
|
|
56
|
+
r
|
|
57
|
+
),
|
|
58
|
+
...a
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
c.displayName = "PreviewCardPopup";
|
|
62
|
+
const m = ({ className: r, ...a }) => /* @__PURE__ */ t(
|
|
63
|
+
e.Arrow,
|
|
64
|
+
{
|
|
65
|
+
className: i(
|
|
66
|
+
"flex data-[side=bottom]:top-[-9px] data-[side=left]:right-[-14px] data-[side=left]:rotate-90 data-[side=right]:left-[-14px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-11px] data-[side=top]:rotate-180",
|
|
67
|
+
r
|
|
68
|
+
),
|
|
69
|
+
...a,
|
|
70
|
+
children: /* @__PURE__ */ t(o, {})
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
m.displayName = "PreviewCardArrow";
|
|
74
|
+
export {
|
|
75
|
+
m as PreviewCardArrow,
|
|
76
|
+
p as PreviewCardBackdrop,
|
|
77
|
+
c as PreviewCardPopup,
|
|
78
|
+
n as PreviewCardPortal,
|
|
79
|
+
l as PreviewCardPositioner,
|
|
80
|
+
d as PreviewCardRoot,
|
|
81
|
+
s as PreviewCardTrigger
|
|
82
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lglab/compose-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "A collection of components built with Base UI & Tailwind CSS",
|
|
5
5
|
"author": "LGLab",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,6 +78,10 @@
|
|
|
78
78
|
"import": "./dist/popover.js",
|
|
79
79
|
"types": "./dist/popover.d.ts"
|
|
80
80
|
},
|
|
81
|
+
"./preview-card": {
|
|
82
|
+
"import": "./dist/preview-card.js",
|
|
83
|
+
"types": "./dist/preview-card.d.ts"
|
|
84
|
+
},
|
|
81
85
|
"./progress": {
|
|
82
86
|
"import": "./dist/progress.js",
|
|
83
87
|
"types": "./dist/progress.d.ts"
|