@lglab/compose-ui 0.28.0 → 0.30.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/accordion.d.ts +49 -40
- package/dist/accordion.d.ts.map +1 -0
- package/dist/accordion.js +47 -45
- package/dist/accordion.js.map +1 -0
- package/dist/alert-dialog.d.ts +93 -87
- package/dist/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog.js +94 -111
- package/dist/alert-dialog.js.map +1 -0
- package/dist/autocomplete.d.ts +99 -96
- package/dist/autocomplete.d.ts.map +1 -0
- package/dist/autocomplete.js +92 -116
- package/dist/autocomplete.js.map +1 -0
- package/dist/avatar.d.ts +56 -47
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +66 -79
- package/dist/avatar.js.map +1 -0
- package/dist/badge.d.ts +48 -42
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +195 -202
- package/dist/badge.js.map +1 -0
- package/dist/button.d.ts +26 -21
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +24 -24
- package/dist/button.js.map +1 -0
- package/dist/card.d.ts +105 -99
- package/dist/card.d.ts.map +1 -0
- package/dist/card.js +105 -66
- package/dist/card.js.map +1 -0
- package/dist/checkbox-group.d.ts +16 -12
- package/dist/checkbox-group.d.ts.map +1 -0
- package/dist/checkbox-group.js +18 -14
- package/dist/checkbox-group.js.map +1 -0
- package/dist/checkbox.d.ts +25 -19
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/checkbox.js +26 -32
- package/dist/checkbox.js.map +1 -0
- package/dist/collapsible.d.ts +32 -26
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +32 -32
- package/dist/collapsible.js.map +1 -0
- package/dist/combobox.d.ts +191 -182
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +176 -250
- package/dist/combobox.js.map +1 -0
- package/dist/components/table/filters.d.ts +29 -0
- package/dist/components/table/filters.d.ts.map +1 -0
- package/dist/components/table/filters.js +47 -0
- package/dist/components/table/filters.js.map +1 -0
- package/dist/components/table/primitives.d.ts +93 -0
- package/dist/components/table/primitives.d.ts.map +1 -0
- package/dist/components/table/primitives.js +129 -0
- package/dist/components/table/primitives.js.map +1 -0
- package/dist/components/table/sort.js +17 -0
- package/dist/components/table/sort.js.map +1 -0
- package/dist/components/table/types.d.ts +101 -0
- package/dist/components/table/types.d.ts.map +1 -0
- package/dist/context-menu.d.ts +151 -138
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +151 -173
- package/dist/context-menu.js.map +1 -0
- package/dist/dialog.d.ts +101 -92
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +101 -105
- package/dist/dialog.js.map +1 -0
- package/dist/drawer.d.ts +109 -99
- package/dist/drawer.d.ts.map +1 -0
- package/dist/drawer.js +120 -111
- package/dist/drawer.js.map +1 -0
- package/dist/field.d.ts +61 -54
- package/dist/field.d.ts.map +1 -0
- package/dist/field.js +58 -27
- package/dist/field.js.map +1 -0
- package/dist/fieldset.d.ts +24 -19
- package/dist/fieldset.d.ts.map +1 -0
- package/dist/fieldset.js +26 -18
- package/dist/fieldset.js.map +1 -0
- package/dist/form.d.ts +16 -12
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +18 -8
- package/dist/form.js.map +1 -0
- package/dist/index.d.ts +48 -2115
- package/dist/index.js +47 -318
- package/dist/input.d.ts +16 -12
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +19 -9
- package/dist/input.js.map +1 -0
- package/dist/lib/arrow-svg.js +28 -0
- package/dist/lib/arrow-svg.js.map +1 -0
- package/dist/lib/button-variants.d.ts +6 -0
- package/dist/lib/button-variants.d.ts.map +1 -0
- package/dist/lib/button-variants.js +31 -0
- package/dist/lib/button-variants.js.map +1 -0
- package/dist/lib/control-variants.d.ts +6 -0
- package/dist/lib/control-variants.d.ts.map +1 -0
- package/dist/lib/control-variants.js +38 -0
- package/dist/lib/control-variants.js.map +1 -0
- package/dist/lib/form-variants.js +11 -0
- package/dist/lib/form-variants.js.map +1 -0
- package/dist/lib/tooltip-variants.d.ts +5 -0
- package/dist/lib/tooltip-variants.d.ts.map +1 -0
- package/dist/lib/tooltip-variants.js +36 -0
- package/dist/lib/tooltip-variants.js.map +1 -0
- package/dist/lib/utils.js +11 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/menu.d.ts +151 -138
- package/dist/menu.d.ts.map +1 -0
- package/dist/menu.js +151 -146
- package/dist/menu.js.map +1 -0
- package/dist/menubar.d.ts +168 -155
- package/dist/menubar.d.ts.map +1 -0
- package/dist/menubar.js +163 -169
- package/dist/menubar.js.map +1 -0
- package/dist/meter.d.ts +53 -43
- package/dist/meter.d.ts.map +1 -0
- package/dist/meter.js +59 -64
- package/dist/meter.js.map +1 -0
- package/dist/navigation-menu.d.ts +111 -96
- package/dist/navigation-menu.d.ts.map +1 -0
- package/dist/navigation-menu.js +117 -175
- package/dist/navigation-menu.js.map +1 -0
- package/dist/number-field.d.ts +64 -54
- package/dist/number-field.d.ts.map +1 -0
- package/dist/number-field.js +61 -69
- package/dist/number-field.js.map +1 -0
- package/dist/pagination.d.ts +184 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +164 -0
- package/dist/pagination.js.map +1 -0
- package/dist/popover.d.ts +90 -82
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +85 -94
- package/dist/popover.js.map +1 -0
- package/dist/preview-card.d.ts +58 -54
- package/dist/preview-card.d.ts.map +1 -0
- package/dist/preview-card.js +57 -81
- package/dist/preview-card.js.map +1 -0
- package/dist/progress.d.ts +48 -40
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +46 -50
- package/dist/progress.js.map +1 -0
- package/dist/radio-group.d.ts +16 -12
- package/dist/radio-group.d.ts.map +1 -0
- package/dist/radio-group.js +18 -14
- package/dist/radio-group.js.map +1 -0
- package/dist/radio.d.ts +24 -19
- package/dist/radio.d.ts.map +1 -0
- package/dist/radio.js +25 -34
- package/dist/radio.js.map +1 -0
- package/dist/scroll-area.d.ts +57 -47
- package/dist/scroll-area.d.ts.map +1 -0
- package/dist/scroll-area.js +54 -56
- package/dist/scroll-area.js.map +1 -0
- package/dist/select.d.ts +146 -133
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +133 -167
- package/dist/select.js.map +1 -0
- package/dist/separator.d.ts +17 -12
- package/dist/separator.d.ts.map +1 -0
- package/dist/separator.js +19 -23
- package/dist/separator.js.map +1 -0
- package/dist/skeleton.d.ts +20 -0
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +27 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/slider.d.ts +56 -47
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +53 -62
- package/dist/slider.js.map +1 -0
- package/dist/styles/default.css +15 -1
- package/dist/switch.d.ts +24 -19
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.js +23 -39
- package/dist/switch.js.map +1 -0
- package/dist/table/index.d.ts +5 -0
- package/dist/table/index.js +5 -0
- package/dist/table/use-table.d.ts +9 -0
- package/dist/table/use-table.d.ts.map +1 -0
- package/dist/table/use-table.js +256 -0
- package/dist/table/use-table.js.map +1 -0
- package/dist/tabs.d.ts +60 -49
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tabs.js +76 -84
- package/dist/tabs.js.map +1 -0
- package/dist/textarea.d.ts +15 -11
- package/dist/textarea.d.ts.map +1 -0
- package/dist/textarea.js +18 -14
- package/dist/textarea.js.map +1 -0
- package/dist/toast.d.ts +87 -81
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.js +79 -150
- package/dist/toast.js.map +1 -0
- package/dist/toggle-group.d.ts +34 -29
- package/dist/toggle-group.d.ts.map +1 -0
- package/dist/toggle-group.js +31 -34
- package/dist/toggle-group.js.map +1 -0
- package/dist/toggle.d.ts +24 -21
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.js +22 -15
- package/dist/toggle.js.map +1 -0
- package/dist/toolbar.d.ts +64 -56
- package/dist/toolbar.d.ts.map +1 -0
- package/dist/toolbar.js +57 -68
- package/dist/toolbar.js.map +1 -0
- package/dist/tooltip.d.ts +67 -62
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/tooltip.js +65 -90
- package/dist/tooltip.js.map +1 -0
- package/package.json +25 -13
- package/dist/arrow-svg-C6zQTvgS.js +0 -40
- package/dist/button-variants-CbFMPwc8.js +0 -33
- package/dist/control-variants-Bwep4n0y.js +0 -37
- package/dist/form-variants-LJ8gIbk0.js +0 -9
- package/dist/utils-B6yFEsav.js +0 -8
package/dist/popover.d.ts
CHANGED
|
@@ -1,82 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime162 from "react/jsx-runtime";
|
|
3
|
+
import { Popover } from "@base-ui/react/popover";
|
|
4
|
+
|
|
5
|
+
//#region src/components/popover.d.ts
|
|
6
|
+
type PopoverRootProps = React.ComponentProps<typeof Popover.Root>;
|
|
7
|
+
declare const PopoverRoot: {
|
|
8
|
+
(props: PopoverRootProps): react_jsx_runtime162.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
type PopoverTriggerProps = React.ComponentProps<typeof Popover.Trigger>;
|
|
12
|
+
declare const PopoverTrigger: {
|
|
13
|
+
({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: PopoverTriggerProps): react_jsx_runtime162.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
type PopoverPortalProps = React.ComponentProps<typeof Popover.Portal>;
|
|
20
|
+
declare const PopoverPortal: {
|
|
21
|
+
(props: PopoverPortalProps): react_jsx_runtime162.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
type PopoverBackdropProps = React.ComponentProps<typeof Popover.Backdrop>;
|
|
25
|
+
declare const PopoverBackdrop: {
|
|
26
|
+
({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: PopoverBackdropProps): react_jsx_runtime162.JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
type PopoverPositionerProps = React.ComponentProps<typeof Popover.Positioner>;
|
|
33
|
+
declare const PopoverPositioner: {
|
|
34
|
+
({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: PopoverPositionerProps): react_jsx_runtime162.JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
type PopoverPopupProps = React.ComponentProps<typeof Popover.Popup>;
|
|
41
|
+
declare const PopoverPopup: {
|
|
42
|
+
({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: PopoverPopupProps): react_jsx_runtime162.JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
type PopoverArrowProps = React.ComponentProps<typeof Popover.Arrow>;
|
|
49
|
+
declare const PopoverArrow: {
|
|
50
|
+
({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: PopoverArrowProps): react_jsx_runtime162.JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
type PopoverTitleProps = React.ComponentProps<typeof Popover.Title>;
|
|
57
|
+
declare const PopoverTitle: {
|
|
58
|
+
({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: PopoverTitleProps): react_jsx_runtime162.JSX.Element;
|
|
62
|
+
displayName: string;
|
|
63
|
+
};
|
|
64
|
+
type PopoverDescriptionProps = React.ComponentProps<typeof Popover.Description>;
|
|
65
|
+
declare const PopoverDescription: {
|
|
66
|
+
({
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}: PopoverDescriptionProps): react_jsx_runtime162.JSX.Element;
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
type PopoverCloseProps = React.ComponentProps<typeof Popover.Close>;
|
|
73
|
+
declare const PopoverClose: {
|
|
74
|
+
({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: PopoverCloseProps): react_jsx_runtime162.JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
type PopoverViewportProps = React.ComponentProps<typeof Popover.Viewport>;
|
|
81
|
+
declare const PopoverViewport: {
|
|
82
|
+
({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}: PopoverViewportProps): react_jsx_runtime162.JSX.Element;
|
|
86
|
+
displayName: string;
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { PopoverArrow, type PopoverArrowProps, PopoverBackdrop, type PopoverBackdropProps, PopoverClose, type PopoverCloseProps, PopoverDescription, type PopoverDescriptionProps, PopoverPopup, type PopoverPopupProps, PopoverPortal, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerProps, PopoverRoot, type PopoverRootProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, PopoverViewport, type PopoverViewportProps };
|
|
90
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","names":[],"sources":["../src/components/popover.tsx"],"sourcesContent":[],"mappings":"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"}
|
package/dist/popover.js
CHANGED
|
@@ -1,95 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const d = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
13
|
-
r.Backdrop,
|
|
14
|
-
{
|
|
15
|
-
className: a(
|
|
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
|
-
o
|
|
20
|
-
),
|
|
21
|
-
...t
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
d.displayName = "PopoverBackdrop";
|
|
25
|
-
const l = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
26
|
-
r.Positioner,
|
|
27
|
-
{
|
|
28
|
-
className: a(
|
|
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
|
-
o
|
|
37
|
-
),
|
|
38
|
-
sideOffset: 8,
|
|
39
|
-
...t
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
l.displayName = "PopoverPositioner";
|
|
43
|
-
const c = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
44
|
-
r.Popup,
|
|
45
|
-
{
|
|
46
|
-
className: a(
|
|
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-[500px]",
|
|
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
|
-
"origin-(--transform-origin)",
|
|
57
|
-
o
|
|
58
|
-
),
|
|
59
|
-
...t
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
c.displayName = "PopoverPopup";
|
|
63
|
-
const m = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
64
|
-
r.Arrow,
|
|
65
|
-
{
|
|
66
|
-
className: a(
|
|
67
|
-
"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",
|
|
68
|
-
o
|
|
69
|
-
),
|
|
70
|
-
...t,
|
|
71
|
-
children: /* @__PURE__ */ e(i, {})
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
m.displayName = "PopoverArrow";
|
|
75
|
-
const P = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Title, { className: a("text-sm font-semibold", o), ...t });
|
|
76
|
-
P.displayName = "PopoverTitle";
|
|
77
|
-
const g = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Description, { className: a("text-sm", o), ...t });
|
|
78
|
-
g.displayName = "PopoverDescription";
|
|
79
|
-
const u = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Close, { className: a(o), ...t });
|
|
80
|
-
u.displayName = "PopoverClose";
|
|
81
|
-
const v = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Viewport, { className: a(o), ...t });
|
|
82
|
-
v.displayName = "PopoverViewport";
|
|
83
|
-
export {
|
|
84
|
-
m as PopoverArrow,
|
|
85
|
-
d as PopoverBackdrop,
|
|
86
|
-
u as PopoverClose,
|
|
87
|
-
g as PopoverDescription,
|
|
88
|
-
c as PopoverPopup,
|
|
89
|
-
n as PopoverPortal,
|
|
90
|
-
l as PopoverPositioner,
|
|
91
|
-
s as PopoverRoot,
|
|
92
|
-
P as PopoverTitle,
|
|
93
|
-
p as PopoverTrigger,
|
|
94
|
-
v as PopoverViewport
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "./lib/utils.js";
|
|
4
|
+
import { ArrowSvg } from "./lib/arrow-svg.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Popover } from "@base-ui/react/popover";
|
|
8
|
+
|
|
9
|
+
//#region src/components/popover.tsx
|
|
10
|
+
const PopoverRoot = (props) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(Popover.Root, { ...props });
|
|
95
12
|
};
|
|
13
|
+
PopoverRoot.displayName = "PopoverRoot";
|
|
14
|
+
const PopoverTrigger = ({ className, ...props }) => {
|
|
15
|
+
return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
16
|
+
className: cn(className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
PopoverTrigger.displayName = "PopoverTrigger";
|
|
21
|
+
const PopoverPortal = (props) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(Popover.Portal, { ...props });
|
|
23
|
+
};
|
|
24
|
+
PopoverPortal.displayName = "PopoverPortal";
|
|
25
|
+
const PopoverBackdrop = ({ className, ...props }) => {
|
|
26
|
+
return /* @__PURE__ */ jsx(Popover.Backdrop, {
|
|
27
|
+
className: cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm", "transition-opacity duration-200", "data-starting-style:opacity-0 data-ending-style:opacity-0", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
PopoverBackdrop.displayName = "PopoverBackdrop";
|
|
32
|
+
const PopoverPositioner = ({ className, ...props }) => {
|
|
33
|
+
return /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
34
|
+
className: cn("z-50 outline-none", "h-(--positioner-height) w-(--positioner-width)", "max-w-(--available-width)", "transition-[top,left,right,bottom,transform]", "duration-[0.35s]", "ease-[cubic-bezier(0.22,1,0.36,1)]", "data-instant:transition-none", className),
|
|
35
|
+
sideOffset: 8,
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
PopoverPositioner.displayName = "PopoverPositioner";
|
|
40
|
+
const PopoverPopup = ({ className, ...props }) => {
|
|
41
|
+
return /* @__PURE__ */ jsx(Popover.Popup, {
|
|
42
|
+
className: cn("rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative", "h-(--popup-height,auto) w-(--popup-width,auto)", "max-w-[500px]", "origin-(--transform-origin)", "border-border", "transition-[transform,scale,opacity]", "data-ending-style:scale-90 data-ending-style:opacity-0", "data-starting-style:scale-90 data-starting-style:opacity-0", "dark:shadow-none", "origin-(--transform-origin)", className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
PopoverPopup.displayName = "PopoverPopup";
|
|
47
|
+
const PopoverArrow = ({ className, ...props }) => {
|
|
48
|
+
return /* @__PURE__ */ jsx(Popover.Arrow, {
|
|
49
|
+
className: cn("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", className),
|
|
50
|
+
...props,
|
|
51
|
+
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
PopoverArrow.displayName = "PopoverArrow";
|
|
55
|
+
const PopoverTitle = ({ className, ...props }) => {
|
|
56
|
+
return /* @__PURE__ */ jsx(Popover.Title, {
|
|
57
|
+
className: cn("text-sm font-semibold", className),
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
PopoverTitle.displayName = "PopoverTitle";
|
|
62
|
+
const PopoverDescription = ({ className, ...props }) => {
|
|
63
|
+
return /* @__PURE__ */ jsx(Popover.Description, {
|
|
64
|
+
className: cn("text-sm", className),
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
PopoverDescription.displayName = "PopoverDescription";
|
|
69
|
+
const PopoverClose = ({ className, ...props }) => {
|
|
70
|
+
return /* @__PURE__ */ jsx(Popover.Close, {
|
|
71
|
+
className: cn(className),
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
PopoverClose.displayName = "PopoverClose";
|
|
76
|
+
const PopoverViewport = ({ className, ...props }) => {
|
|
77
|
+
return /* @__PURE__ */ jsx(Popover.Viewport, {
|
|
78
|
+
className: cn(className),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
PopoverViewport.displayName = "PopoverViewport";
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
export { PopoverArrow, PopoverBackdrop, PopoverClose, PopoverDescription, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverRoot, PopoverTitle, PopoverTrigger, PopoverViewport };
|
|
86
|
+
//# sourceMappingURL=popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","names":["BasePopover"],"sources":["../src/components/popover.tsx"],"sourcesContent":["'use client'\n\nimport { Popover as BasePopover } from '@base-ui/react/popover'\nimport * as React from 'react'\n\nimport { ArrowSvg } from '../lib/arrow-svg'\nimport { cn } from '../lib/utils'\n\n// ============================================================================\n// PopoverRoot\n// ============================================================================\n\ntype PopoverRootProps = React.ComponentProps<typeof BasePopover.Root>\n\nconst PopoverRoot = (props: PopoverRootProps) => {\n return <BasePopover.Root {...props} />\n}\n\nPopoverRoot.displayName = 'PopoverRoot'\n\n// ============================================================================\n// PopoverTrigger\n// ============================================================================\n\ntype PopoverTriggerProps = React.ComponentProps<typeof BasePopover.Trigger>\n\nconst PopoverTrigger = ({ className, ...props }: PopoverTriggerProps) => {\n return <BasePopover.Trigger className={cn(className)} {...props} />\n}\n\nPopoverTrigger.displayName = 'PopoverTrigger'\n\n// ============================================================================\n// PopoverPortal\n// ============================================================================\n\ntype PopoverPortalProps = React.ComponentProps<typeof BasePopover.Portal>\n\nconst PopoverPortal = (props: PopoverPortalProps) => {\n return <BasePopover.Portal {...props} />\n}\n\nPopoverPortal.displayName = 'PopoverPortal'\n\n// ============================================================================\n// PopoverBackdrop\n// ============================================================================\n\ntype PopoverBackdropProps = React.ComponentProps<typeof BasePopover.Backdrop>\n\nconst PopoverBackdrop = ({ className, ...props }: PopoverBackdropProps) => {\n return (\n <BasePopover.Backdrop\n className={cn(\n 'fixed inset-0 z-50 bg-black/50 backdrop-blur-sm',\n 'transition-opacity duration-200',\n 'data-starting-style:opacity-0 data-ending-style:opacity-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nPopoverBackdrop.displayName = 'PopoverBackdrop'\n\n// ============================================================================\n// PopoverPositioner\n// ============================================================================\n\ntype PopoverPositionerProps = React.ComponentProps<typeof BasePopover.Positioner>\n\nconst PopoverPositioner = ({ className, ...props }: PopoverPositionerProps) => {\n return (\n <BasePopover.Positioner\n className={cn(\n 'z-50 outline-none',\n 'h-(--positioner-height) w-(--positioner-width)',\n 'max-w-(--available-width)',\n 'transition-[top,left,right,bottom,transform]',\n 'duration-[0.35s]',\n 'ease-[cubic-bezier(0.22,1,0.36,1)]',\n 'data-instant:transition-none',\n className,\n )}\n sideOffset={8}\n {...props}\n />\n )\n}\n\nPopoverPositioner.displayName = 'PopoverPositioner'\n\n// ============================================================================\n// PopoverPopup\n// ============================================================================\n\ntype PopoverPopupProps = React.ComponentProps<typeof BasePopover.Popup>\n\nconst PopoverPopup = ({ className, ...props }: PopoverPopupProps) => {\n return (\n <BasePopover.Popup\n className={cn(\n 'rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative',\n 'h-(--popup-height,auto) w-(--popup-width,auto)',\n 'max-w-[500px]',\n 'origin-(--transform-origin)',\n 'border-border',\n 'transition-[transform,scale,opacity]',\n 'data-ending-style:scale-90 data-ending-style:opacity-0',\n 'data-starting-style:scale-90 data-starting-style:opacity-0',\n 'dark:shadow-none',\n 'origin-(--transform-origin)',\n className,\n )}\n {...props}\n />\n )\n}\n\nPopoverPopup.displayName = 'PopoverPopup'\n\n// ============================================================================\n// PopoverArrow\n// ============================================================================\n\ntype PopoverArrowProps = React.ComponentProps<typeof BasePopover.Arrow>\n\nconst PopoverArrow = ({ className, ...props }: PopoverArrowProps) => {\n return (\n <BasePopover.Arrow\n className={cn(\n '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',\n className,\n )}\n {...props}\n >\n <ArrowSvg />\n </BasePopover.Arrow>\n )\n}\n\nPopoverArrow.displayName = 'PopoverArrow'\n\n// ============================================================================\n// PopoverTitle\n// ============================================================================\n\ntype PopoverTitleProps = React.ComponentProps<typeof BasePopover.Title>\n\nconst PopoverTitle = ({ className, ...props }: PopoverTitleProps) => {\n return (\n <BasePopover.Title className={cn('text-sm font-semibold', className)} {...props} />\n )\n}\n\nPopoverTitle.displayName = 'PopoverTitle'\n\n// ============================================================================\n// PopoverDescription\n// ============================================================================\n\ntype PopoverDescriptionProps = React.ComponentProps<typeof BasePopover.Description>\n\nconst PopoverDescription = ({ className, ...props }: PopoverDescriptionProps) => {\n return <BasePopover.Description className={cn('text-sm', className)} {...props} />\n}\n\nPopoverDescription.displayName = 'PopoverDescription'\n\n// ============================================================================\n// PopoverClose\n// ============================================================================\n\ntype PopoverCloseProps = React.ComponentProps<typeof BasePopover.Close>\n\nconst PopoverClose = ({ className, ...props }: PopoverCloseProps) => {\n return <BasePopover.Close className={cn(className)} {...props} />\n}\n\nPopoverClose.displayName = 'PopoverClose'\n\n// ============================================================================\n// PopoverViewport\n// ============================================================================\n\ntype PopoverViewportProps = React.ComponentProps<typeof BasePopover.Viewport>\n\nconst PopoverViewport = ({ className, ...props }: PopoverViewportProps) => {\n return <BasePopover.Viewport className={cn(className)} {...props} />\n}\n\nPopoverViewport.displayName = 'PopoverViewport'\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nexport {\n PopoverRoot,\n PopoverTrigger,\n PopoverPortal,\n PopoverBackdrop,\n PopoverPositioner,\n PopoverPopup,\n PopoverArrow,\n PopoverTitle,\n PopoverDescription,\n PopoverClose,\n PopoverViewport,\n}\n\nexport type {\n PopoverRootProps,\n PopoverTriggerProps,\n PopoverPortalProps,\n PopoverBackdropProps,\n PopoverPositionerProps,\n PopoverPopupProps,\n PopoverArrowProps,\n PopoverTitleProps,\n PopoverDescriptionProps,\n PopoverCloseProps,\n PopoverViewportProps,\n}\n"],"mappings":";;;;;;;;;AAcA,MAAM,eAAe,UAA4B;AAC/C,QAAO,oBAACA,QAAY,QAAK,GAAI,QAAS;;AAGxC,YAAY,cAAc;AAQ1B,MAAM,kBAAkB,EAAE,WAAW,GAAG,YAAiC;AACvE,QAAO,oBAACA,QAAY;EAAQ,WAAW,GAAG,UAAU;EAAE,GAAI;GAAS;;AAGrE,eAAe,cAAc;AAQ7B,MAAM,iBAAiB,UAA8B;AACnD,QAAO,oBAACA,QAAY,UAAO,GAAI,QAAS;;AAG1C,cAAc,cAAc;AAQ5B,MAAM,mBAAmB,EAAE,WAAW,GAAG,YAAkC;AACzE,QACE,oBAACA,QAAY;EACX,WAAW,GACT,mDACA,mCACA,6DACA,UACD;EACD,GAAI;GACJ;;AAIN,gBAAgB,cAAc;AAQ9B,MAAM,qBAAqB,EAAE,WAAW,GAAG,YAAoC;AAC7E,QACE,oBAACA,QAAY;EACX,WAAW,GACT,qBACA,kDACA,6BACA,gDACA,oBACA,sCACA,gCACA,UACD;EACD,YAAY;EACZ,GAAI;GACJ;;AAIN,kBAAkB,cAAc;AAQhC,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QACE,oBAACA,QAAY;EACX,WAAW,GACT,gFACA,kDACA,iBACA,+BACA,iBACA,wCACA,0DACA,8DACA,oBACA,+BACA,UACD;EACD,GAAI;GACJ;;AAIN,aAAa,cAAc;AAQ3B,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QACE,oBAACA,QAAY;EACX,WAAW,GACT,sNACA,UACD;EACD,GAAI;YAEJ,oBAAC,aAAW;GACM;;AAIxB,aAAa,cAAc;AAQ3B,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QACE,oBAACA,QAAY;EAAM,WAAW,GAAG,yBAAyB,UAAU;EAAE,GAAI;GAAS;;AAIvF,aAAa,cAAc;AAQ3B,MAAM,sBAAsB,EAAE,WAAW,GAAG,YAAqC;AAC/E,QAAO,oBAACA,QAAY;EAAY,WAAW,GAAG,WAAW,UAAU;EAAE,GAAI;GAAS;;AAGpF,mBAAmB,cAAc;AAQjC,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QAAO,oBAACA,QAAY;EAAM,WAAW,GAAG,UAAU;EAAE,GAAI;GAAS;;AAGnE,aAAa,cAAc;AAQ3B,MAAM,mBAAmB,EAAE,WAAW,GAAG,YAAkC;AACzE,QAAO,oBAACA,QAAY;EAAS,WAAW,GAAG,UAAU;EAAE,GAAI;GAAS;;AAGtE,gBAAgB,cAAc"}
|
package/dist/preview-card.d.ts
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime173 from "react/jsx-runtime";
|
|
3
|
+
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
4
|
+
|
|
5
|
+
//#region src/components/preview-card.d.ts
|
|
6
|
+
type PreviewCardRootProps = React.ComponentProps<typeof PreviewCard.Root>;
|
|
7
|
+
declare const PreviewCardRoot: {
|
|
8
|
+
(props: PreviewCardRootProps): react_jsx_runtime173.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard.Trigger>;
|
|
12
|
+
declare const PreviewCardTrigger: {
|
|
13
|
+
({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: PreviewCardTriggerProps): react_jsx_runtime173.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
type PreviewCardPortalProps = React.ComponentProps<typeof PreviewCard.Portal>;
|
|
20
|
+
declare const PreviewCardPortal: {
|
|
21
|
+
(props: PreviewCardPortalProps): react_jsx_runtime173.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
type PreviewCardBackdropProps = React.ComponentProps<typeof PreviewCard.Backdrop>;
|
|
25
|
+
declare const PreviewCardBackdrop: {
|
|
26
|
+
({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: PreviewCardBackdropProps): react_jsx_runtime173.JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
type PreviewCardPositionerProps = React.ComponentProps<typeof PreviewCard.Positioner>;
|
|
33
|
+
declare const PreviewCardPositioner: {
|
|
34
|
+
({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: PreviewCardPositionerProps): react_jsx_runtime173.JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard.Popup>;
|
|
41
|
+
declare const PreviewCardPopup: {
|
|
42
|
+
({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: PreviewCardPopupProps): react_jsx_runtime173.JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
type PreviewCardArrowProps = React.ComponentProps<typeof PreviewCard.Arrow>;
|
|
49
|
+
declare const PreviewCardArrow: {
|
|
50
|
+
({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: PreviewCardArrowProps): react_jsx_runtime173.JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { PreviewCardArrow, type PreviewCardArrowProps, PreviewCardBackdrop, type PreviewCardBackdropProps, PreviewCardPopup, type PreviewCardPopupProps, PreviewCardPortal, type PreviewCardPortalProps, PreviewCardPositioner, type PreviewCardPositionerProps, PreviewCardRoot, type PreviewCardRootProps, PreviewCardTrigger, type PreviewCardTriggerProps };
|
|
58
|
+
//# sourceMappingURL=preview-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-card.d.ts","names":[],"sources":["../src/components/preview-card.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,oBAAA,GAAuB,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAElE;UAA0B,uBAAoB,oBAAA,CAAA,GAAA,CAAA;EAF/C,WAAA,EAAA,MAAA;CAAoB;KAYpB,uBAAA,GAA0B,KAAA,CAAM,cAZmC,CAAA,OAYb,WAAA,CAAgB,OAZH,CAAA;cAclE,kBAd4B,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAcK,uBAdL,CAAA,EAc4B,oBAAA,CAAA,GAAA,CAAA,OAd5B;EAE1C,WAAA,EAAA,MAEL;CAAA;KAoBI,sBAAA,GAAyB,KAAA,CAAM,cAtBJ,CAAA,OAsB0B,WAAA,CAAgB,MAtB1C,CAAA;cAwB1B,iBAxB8C,EAAA;EAAA,CAAA,KAAA,EAwBlB,sBAxBkB,CAAA,EAwBI,oBAAA,CAAA,GAAA,CAAA,OAxBJ;EAU/C,WAAA,EAAA,MAAA;CAAuB;KAwBvB,wBAAA,GAA2B,KAAA,CAAM,cAxBqC,CAAA,OAwBf,WAAA,CAAgB,QAxBD,CAAA;cA0BrE,mBA1B+B,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA0BG,wBA1BH,CAAA,EA0B2B,oBAAA,CAAA,GAAA,CAAA,OA1B3B;EAE7C,WAAA,EAAA,MAAA;CAEL;KA0CI,0BAAA,GAA6B,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAExE,qBA9C+C,EAAA;;IAAuB,SAAA;IAAA,GAAA;EAAA,CAAA,EA8CpB,0BA9CoB,CAAA,EA8CM,oBAAA,CAAA,GAAA,CAAA,OA9CN;EAAA,WAAA,EAAA,MAAA;AAAA,CAAA;KAuEvE,qBAAA,GAAwB,KAAA,CAAM,cA7DR,CAAA,OA6D8B,WAAA,CAAgB,KA7D9C,CAAA;cA+DrB,gBA/DoE,EAAA;;IAA5C,SAAM;IAAA,GAAA;EAAA,CAAA,EA+De,qBA/Df,CAAA,EA+DoC,oBAAA,CAAA,GAAA,CAAA,OA/DpC;EAAc,WAAA,EAAA,MAAA;AAAA,CAAA;KAyF7C,qBAAA,GAAwB,KAAA,CAAM,cArFlC,CAAA,OAqFwD,WAAA,CAAgB,KArFxE,CAAA;cAuFK,gBAzF4B,EAAA;;IAAsB,SAAA;IAAA,GAAA;EAAA,CAAA,EAyFL,qBAzFK,CAAA,EAyFgB,oBAAA,CAAA,GAAA,CAAA,OAzFhB;EAAA,WAAA,EAAA,MAAA;AAAA,CAAA"}
|
package/dist/preview-card.js
CHANGED
|
@@ -1,82 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
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
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "./lib/utils.js";
|
|
4
|
+
import { ArrowSvg } from "./lib/arrow-svg.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
8
|
+
|
|
9
|
+
//#region src/components/preview-card.tsx
|
|
10
|
+
const PreviewCardRoot = (props) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(PreviewCard.Root, { ...props });
|
|
82
12
|
};
|
|
13
|
+
PreviewCardRoot.displayName = "PreviewCardRoot";
|
|
14
|
+
const PreviewCardTrigger = ({ className, ...props }) => {
|
|
15
|
+
return /* @__PURE__ */ jsx(PreviewCard.Trigger, {
|
|
16
|
+
className: cn("underline", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
PreviewCardTrigger.displayName = "PreviewCardTrigger";
|
|
21
|
+
const PreviewCardPortal = (props) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(PreviewCard.Portal, { ...props });
|
|
23
|
+
};
|
|
24
|
+
PreviewCardPortal.displayName = "PreviewCardPortal";
|
|
25
|
+
const PreviewCardBackdrop = ({ className, ...props }) => {
|
|
26
|
+
return /* @__PURE__ */ jsx(PreviewCard.Backdrop, {
|
|
27
|
+
className: cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm", "transition-opacity duration-200", "data-starting-style:opacity-0 data-ending-style:opacity-0", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
PreviewCardBackdrop.displayName = "PreviewCardBackdrop";
|
|
32
|
+
const PreviewCardPositioner = ({ className, ...props }) => {
|
|
33
|
+
return /* @__PURE__ */ jsx(PreviewCard.Positioner, {
|
|
34
|
+
className: cn("z-50 outline-none", "h-(--positioner-height) w-(--positioner-width)", "max-w-(--available-width)", "transition-[top,left,right,bottom,transform]", "duration-[0.35s]", "ease-[cubic-bezier(0.22,1,0.36,1)]", "data-instant:transition-none", className),
|
|
35
|
+
sideOffset: 8,
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
PreviewCardPositioner.displayName = "PreviewCardPositioner";
|
|
40
|
+
const PreviewCardPopup = ({ className, ...props }) => {
|
|
41
|
+
return /* @__PURE__ */ jsx(PreviewCard.Popup, {
|
|
42
|
+
className: cn("rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative", "h-(--popup-height,auto) w-(--popup-width,auto)", "max-w-[320px]", "origin-(--transform-origin)", "border-border", "transition-[transform,scale,opacity]", "data-ending-style:scale-90 data-ending-style:opacity-0", "data-starting-style:scale-90 data-starting-style:opacity-0", "dark:shadow-none", className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
PreviewCardPopup.displayName = "PreviewCardPopup";
|
|
47
|
+
const PreviewCardArrow = ({ className, ...props }) => {
|
|
48
|
+
return /* @__PURE__ */ jsx(PreviewCard.Arrow, {
|
|
49
|
+
className: cn("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", className),
|
|
50
|
+
...props,
|
|
51
|
+
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
PreviewCardArrow.displayName = "PreviewCardArrow";
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { PreviewCardArrow, PreviewCardBackdrop, PreviewCardPopup, PreviewCardPortal, PreviewCardPositioner, PreviewCardRoot, PreviewCardTrigger };
|
|
58
|
+
//# sourceMappingURL=preview-card.js.map
|