@lglab/compose-ui 0.20.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.
Files changed (109) hide show
  1. package/dist/accordion.d.ts +40 -0
  2. package/dist/accordion.js +46 -0
  3. package/dist/alert-dialog.d.ts +87 -0
  4. package/dist/alert-dialog.js +112 -0
  5. package/dist/arrow-svg-C6zQTvgS.js +40 -0
  6. package/dist/avatar.d.ts +47 -0
  7. package/dist/avatar.js +81 -0
  8. package/dist/button-variants-CbFMPwc8.js +33 -0
  9. package/dist/button.d.ts +21 -0
  10. package/dist/button.js +25 -0
  11. package/dist/card.d.ts +99 -0
  12. package/dist/card.js +67 -0
  13. package/dist/collapsible.d.ts +26 -0
  14. package/dist/collapsible.js +33 -0
  15. package/dist/context-menu.d.ts +138 -0
  16. package/dist/context-menu.js +174 -0
  17. package/dist/control-variants-Bwep4n0y.js +37 -0
  18. package/dist/dialog.d.ts +92 -0
  19. package/dist/dialog.js +106 -0
  20. package/dist/drawer.d.ts +99 -0
  21. package/dist/drawer.js +112 -0
  22. package/dist/index.d.ts +1334 -47
  23. package/dist/index.js +194 -0
  24. package/dist/menu.d.ts +138 -0
  25. package/dist/menu.js +147 -0
  26. package/dist/menubar.d.ts +155 -0
  27. package/dist/menubar.js +170 -0
  28. package/dist/meter.d.ts +43 -0
  29. package/dist/meter.js +66 -0
  30. package/dist/popover.d.ts +82 -0
  31. package/dist/popover.js +95 -0
  32. package/dist/preview-card.d.ts +54 -0
  33. package/dist/preview-card.js +82 -0
  34. package/dist/progress.d.ts +40 -0
  35. package/dist/progress.js +51 -0
  36. package/dist/scroll-area.d.ts +47 -0
  37. package/dist/scroll-area.js +57 -0
  38. package/dist/separator.d.ts +12 -0
  39. package/dist/separator.js +24 -0
  40. package/dist/slider.d.ts +47 -0
  41. package/dist/slider.js +63 -0
  42. package/dist/switch.d.ts +19 -0
  43. package/dist/switch.js +40 -0
  44. package/dist/tabs.d.ts +49 -0
  45. package/dist/tabs.js +85 -0
  46. package/dist/toggle-group.d.ts +29 -0
  47. package/dist/toggle-group.js +35 -0
  48. package/dist/toggle.d.ts +21 -0
  49. package/dist/toggle.js +16 -0
  50. package/dist/tooltip.d.ts +62 -0
  51. package/dist/tooltip.js +93 -0
  52. package/dist/utils-B6yFEsav.js +8 -0
  53. package/package.json +96 -4
  54. package/dist/components/accordion.d.ts +0 -30
  55. package/dist/components/accordion.d.ts.map +0 -1
  56. package/dist/components/alert-dialog.d.ts +0 -64
  57. package/dist/components/alert-dialog.d.ts.map +0 -1
  58. package/dist/components/avatar.d.ts +0 -38
  59. package/dist/components/avatar.d.ts.map +0 -1
  60. package/dist/components/button.d.ts +0 -16
  61. package/dist/components/button.d.ts.map +0 -1
  62. package/dist/components/card.d.ts +0 -79
  63. package/dist/components/card.d.ts.map +0 -1
  64. package/dist/components/collapsible.d.ts +0 -20
  65. package/dist/components/collapsible.d.ts.map +0 -1
  66. package/dist/components/context-menu.d.ts +0 -100
  67. package/dist/components/context-menu.d.ts.map +0 -1
  68. package/dist/components/dialog.d.ts +0 -69
  69. package/dist/components/dialog.d.ts.map +0 -1
  70. package/dist/components/drawer.d.ts +0 -74
  71. package/dist/components/drawer.d.ts.map +0 -1
  72. package/dist/components/menu.d.ts +0 -100
  73. package/dist/components/menu.d.ts.map +0 -1
  74. package/dist/components/menubar.d.ts +0 -112
  75. package/dist/components/menubar.d.ts.map +0 -1
  76. package/dist/components/meter.d.ts +0 -33
  77. package/dist/components/meter.d.ts.map +0 -1
  78. package/dist/components/popover.d.ts +0 -60
  79. package/dist/components/popover.d.ts.map +0 -1
  80. package/dist/components/progress.d.ts +0 -30
  81. package/dist/components/progress.d.ts.map +0 -1
  82. package/dist/components/scroll-area.d.ts +0 -35
  83. package/dist/components/scroll-area.d.ts.map +0 -1
  84. package/dist/components/separator.d.ts +0 -10
  85. package/dist/components/separator.d.ts.map +0 -1
  86. package/dist/components/slider.d.ts +0 -35
  87. package/dist/components/slider.d.ts.map +0 -1
  88. package/dist/components/switch.d.ts +0 -15
  89. package/dist/components/switch.d.ts.map +0 -1
  90. package/dist/components/tabs.d.ts +0 -39
  91. package/dist/components/tabs.d.ts.map +0 -1
  92. package/dist/components/toggle-group.d.ts +0 -22
  93. package/dist/components/toggle-group.d.ts.map +0 -1
  94. package/dist/components/toggle.d.ts +0 -16
  95. package/dist/components/toggle.d.ts.map +0 -1
  96. package/dist/components/tooltip.d.ts +0 -47
  97. package/dist/components/tooltip.d.ts.map +0 -1
  98. package/dist/index.d.ts.map +0 -1
  99. package/dist/index.es.js +0 -1666
  100. package/dist/lib/arrow-svg.d.ts +0 -9
  101. package/dist/lib/arrow-svg.d.ts.map +0 -1
  102. package/dist/lib/button-variants.d.ts +0 -7
  103. package/dist/lib/button-variants.d.ts.map +0 -1
  104. package/dist/lib/control-variants.d.ts +0 -7
  105. package/dist/lib/control-variants.d.ts.map +0 -1
  106. package/dist/lib/tooltip-variants.d.ts +0 -9
  107. package/dist/lib/tooltip-variants.d.ts.map +0 -1
  108. package/dist/lib/utils.d.ts +0 -3
  109. package/dist/lib/utils.d.ts.map +0 -1
@@ -0,0 +1,170 @@
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { Menu as t } from "@base-ui/react/menu";
4
+ import { Menubar as i } from "@base-ui/react/menubar";
5
+ import { A as m } from "./arrow-svg-C6zQTvgS.js";
6
+ import { b as n } from "./button-variants-CbFMPwc8.js";
7
+ import { c as d } from "./control-variants-Bwep4n0y.js";
8
+ import { c as o } from "./utils-B6yFEsav.js";
9
+ const b = ({ className: e, ...a }) => /* @__PURE__ */ r(
10
+ i,
11
+ {
12
+ className: o(
13
+ "inline-flex",
14
+ // Connected items: collapse borders, round only outer corners
15
+ "[&>button]:rounded-none [&>button:not(:first-of-type)]:-ml-px",
16
+ "[&>button:first-of-type]:rounded-l-md [&>button:last-of-type]:rounded-r-md",
17
+ e
18
+ ),
19
+ ...a
20
+ }
21
+ );
22
+ b.displayName = "MenubarRoot";
23
+ const l = (e) => /* @__PURE__ */ r(t.Root, { ...e });
24
+ l.displayName = "MenubarMenu";
25
+ const c = ({ className: e, variant: a, size: s, ...u }) => /* @__PURE__ */ r(
26
+ t.Trigger,
27
+ {
28
+ className: o(d({ variant: a, size: s }), e),
29
+ ...u
30
+ }
31
+ );
32
+ c.displayName = "MenubarTrigger";
33
+ const p = (e) => /* @__PURE__ */ r(t.Portal, { ...e });
34
+ p.displayName = "MenubarPortal";
35
+ const M = ({ className: e, ...a }) => /* @__PURE__ */ r(
36
+ t.Positioner,
37
+ {
38
+ className: o("z-50 outline-none", e),
39
+ sideOffset: 8,
40
+ ...a
41
+ }
42
+ );
43
+ M.displayName = "MenubarPositioner";
44
+ const N = ({ className: e, ...a }) => /* @__PURE__ */ r(
45
+ t.Popup,
46
+ {
47
+ className: o(
48
+ "rounded-md bg-background p-1 text-foreground shadow-sm border border-border transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-0 data-starting-style:opacity-0 dark:shadow-none",
49
+ "min-w-[8rem]",
50
+ e
51
+ ),
52
+ ...a
53
+ }
54
+ );
55
+ N.displayName = "MenubarPopup";
56
+ const g = ({ className: e, ...a }) => /* @__PURE__ */ r(
57
+ t.Arrow,
58
+ {
59
+ className: o(
60
+ "flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
61
+ e
62
+ ),
63
+ ...a,
64
+ children: /* @__PURE__ */ r(m, {})
65
+ }
66
+ );
67
+ g.displayName = "MenubarArrow";
68
+ const y = ({ className: e, ...a }) => /* @__PURE__ */ r(
69
+ t.Item,
70
+ {
71
+ className: o(
72
+ n({ variant: "ghost", size: "sm" }),
73
+ "flex justify-start",
74
+ e
75
+ ),
76
+ ...a
77
+ }
78
+ );
79
+ y.displayName = "MenubarItem";
80
+ const f = ({ className: e, ...a }) => /* @__PURE__ */ r(t.Separator, { className: o("-mx-1 my-1 h-px bg-border", e), ...a });
81
+ f.displayName = "MenubarSeparator";
82
+ const I = ({ className: e, ...a }) => /* @__PURE__ */ r(t.Group, { className: o(e), ...a });
83
+ I.displayName = "MenubarGroup";
84
+ const x = ({ className: e, ...a }) => /* @__PURE__ */ r(
85
+ t.GroupLabel,
86
+ {
87
+ className: o("px-3 py-1.5 text-sm font-semibold", e),
88
+ ...a
89
+ }
90
+ );
91
+ x.displayName = "MenubarGroupLabel";
92
+ const h = ({ className: e, ...a }) => /* @__PURE__ */ r(t.RadioGroup, { className: o(e), ...a });
93
+ h.displayName = "MenubarRadioGroup";
94
+ const R = ({ className: e, ...a }) => /* @__PURE__ */ r(
95
+ t.RadioItem,
96
+ {
97
+ className: o(
98
+ n({ variant: "ghost", size: "sm" }),
99
+ "grid grid-cols-[0.75rem_1fr] gap-2",
100
+ e
101
+ ),
102
+ ...a
103
+ }
104
+ );
105
+ R.displayName = "MenubarRadioItem";
106
+ const k = ({ className: e, ...a }) => /* @__PURE__ */ r(
107
+ t.CheckboxItem,
108
+ {
109
+ className: o(
110
+ n({ variant: "ghost", size: "sm" }),
111
+ "grid grid-cols-[0.75rem_1fr] gap-2",
112
+ e
113
+ ),
114
+ ...a
115
+ }
116
+ );
117
+ k.displayName = "MenubarCheckboxItem";
118
+ const S = ({
119
+ className: e,
120
+ ...a
121
+ }) => /* @__PURE__ */ r(t.RadioItemIndicator, { className: o("col-start-1", e), ...a });
122
+ S.displayName = "MenubarRadioItemIndicator";
123
+ const G = ({
124
+ className: e,
125
+ ...a
126
+ }) => /* @__PURE__ */ r(t.CheckboxItemIndicator, { className: o("col-start-1", e), ...a });
127
+ G.displayName = "MenubarCheckboxItemIndicator";
128
+ const P = ({
129
+ className: e,
130
+ ...a
131
+ }) => /* @__PURE__ */ r("span", { className: o("col-start-2", e), ...a });
132
+ P.displayName = "MenubarCheckboxItemLabel";
133
+ const w = ({ className: e, ...a }) => /* @__PURE__ */ r("span", { className: o("col-start-2", e), ...a });
134
+ w.displayName = "MenubarRadioItemLabel";
135
+ const C = ({ className: e, ...a }) => /* @__PURE__ */ r(
136
+ t.SubmenuTrigger,
137
+ {
138
+ className: o(
139
+ n({ variant: "ghost", size: "sm" }),
140
+ "flex justify-between",
141
+ e
142
+ ),
143
+ ...a
144
+ }
145
+ );
146
+ C.displayName = "MenubarSubmenuTrigger";
147
+ const L = (e) => /* @__PURE__ */ r(t.SubmenuRoot, { ...e });
148
+ L.displayName = "MenubarSubmenuRoot";
149
+ export {
150
+ g as MenubarArrow,
151
+ k as MenubarCheckboxItem,
152
+ G as MenubarCheckboxItemIndicator,
153
+ P as MenubarCheckboxItemLabel,
154
+ I as MenubarGroup,
155
+ x as MenubarGroupLabel,
156
+ y as MenubarItem,
157
+ l as MenubarMenu,
158
+ N as MenubarPopup,
159
+ p as MenubarPortal,
160
+ M as MenubarPositioner,
161
+ h as MenubarRadioGroup,
162
+ R as MenubarRadioItem,
163
+ S as MenubarRadioItemIndicator,
164
+ w as MenubarRadioItemLabel,
165
+ b as MenubarRoot,
166
+ f as MenubarSeparator,
167
+ L as MenubarSubmenuRoot,
168
+ C as MenubarSubmenuTrigger,
169
+ c as MenubarTrigger
170
+ };
@@ -0,0 +1,43 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { Meter } from '@base-ui/react/meter';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const MeterIndicator: {
6
+ ({ className, ...props }: MeterIndicatorProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type MeterIndicatorProps = React_2.ComponentProps<typeof Meter.Indicator>;
11
+
12
+ export declare const MeterLabel: {
13
+ ({ className, ...props }: MeterLabelProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type MeterLabelProps = React_2.ComponentProps<typeof Meter.Label>;
18
+
19
+ export declare const MeterRoot: {
20
+ ({ className, animated, value, ...props }: MeterRootProps): JSX.Element;
21
+ displayName: string;
22
+ };
23
+
24
+ export declare type MeterRootProps = React_2.ComponentProps<typeof Meter.Root> & {
25
+ /** Whether to animate the meter from 0 to its value on mount */
26
+ animated?: boolean;
27
+ };
28
+
29
+ export declare const MeterTrack: {
30
+ ({ className, ...props }: MeterTrackProps): JSX.Element;
31
+ displayName: string;
32
+ };
33
+
34
+ export declare type MeterTrackProps = React_2.ComponentProps<typeof Meter.Track>;
35
+
36
+ export declare const MeterValue: {
37
+ ({ className, ...props }: MeterValueProps): JSX.Element;
38
+ displayName: string;
39
+ };
40
+
41
+ export declare type MeterValueProps = React_2.ComponentProps<typeof Meter.Value>;
42
+
43
+ export { }
package/dist/meter.js ADDED
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { Meter as a } from "@base-ui/react/meter";
4
+ import * as n from "react";
5
+ import { c as o } from "./utils-B6yFEsav.js";
6
+ const f = ({ className: t, animated: e, value: m, ...i }) => {
7
+ const l = m ?? 0, [u, s] = n.useState(e ? 0 : l);
8
+ return n.useEffect(() => {
9
+ if (e) {
10
+ const c = requestAnimationFrame(() => {
11
+ const d = requestAnimationFrame(() => {
12
+ s(l ?? 0);
13
+ });
14
+ return () => cancelAnimationFrame(d);
15
+ });
16
+ return () => cancelAnimationFrame(c);
17
+ } else
18
+ s(l ?? 0);
19
+ }, [e, l]), /* @__PURE__ */ r(a.Root, { className: o("w-full", t), value: u, ...i });
20
+ };
21
+ f.displayName = "MeterRoot";
22
+ const p = ({ className: t, ...e }) => /* @__PURE__ */ r(
23
+ a.Track,
24
+ {
25
+ className: o(
26
+ "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
27
+ t
28
+ ),
29
+ ...e
30
+ }
31
+ );
32
+ p.displayName = "MeterTrack";
33
+ const M = ({ className: t, ...e }) => /* @__PURE__ */ r(
34
+ a.Indicator,
35
+ {
36
+ className: o(
37
+ "h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
38
+ t
39
+ ),
40
+ ...e
41
+ }
42
+ );
43
+ M.displayName = "MeterIndicator";
44
+ const N = ({ className: t, ...e }) => /* @__PURE__ */ r(
45
+ a.Value,
46
+ {
47
+ className: o("text-sm font-medium text-foreground", t),
48
+ ...e
49
+ }
50
+ );
51
+ N.displayName = "MeterValue";
52
+ const y = ({ className: t, ...e }) => /* @__PURE__ */ r(
53
+ a.Label,
54
+ {
55
+ className: o("text-sm font-medium text-foreground", t),
56
+ ...e
57
+ }
58
+ );
59
+ y.displayName = "MeterLabel";
60
+ export {
61
+ M as MeterIndicator,
62
+ y as MeterLabel,
63
+ f as MeterRoot,
64
+ p as MeterTrack,
65
+ N as MeterValue
66
+ };
@@ -0,0 +1,82 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { Popover } from '@base-ui/react/popover';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const PopoverArrow: {
6
+ ({ className, ...props }: PopoverArrowProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type PopoverArrowProps = React_2.ComponentProps<typeof Popover.Arrow>;
11
+
12
+ export declare const PopoverBackdrop: {
13
+ ({ className, ...props }: PopoverBackdropProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type PopoverBackdropProps = React_2.ComponentProps<typeof Popover.Backdrop>;
18
+
19
+ export declare const PopoverClose: {
20
+ ({ className, ...props }: PopoverCloseProps): JSX.Element;
21
+ displayName: string;
22
+ };
23
+
24
+ export declare type PopoverCloseProps = React_2.ComponentProps<typeof Popover.Close>;
25
+
26
+ export declare const PopoverDescription: {
27
+ ({ className, ...props }: PopoverDescriptionProps): JSX.Element;
28
+ displayName: string;
29
+ };
30
+
31
+ export declare type PopoverDescriptionProps = React_2.ComponentProps<typeof Popover.Description>;
32
+
33
+ export declare const PopoverPopup: {
34
+ ({ className, ...props }: PopoverPopupProps): JSX.Element;
35
+ displayName: string;
36
+ };
37
+
38
+ export declare type PopoverPopupProps = React_2.ComponentProps<typeof Popover.Popup>;
39
+
40
+ export declare const PopoverPortal: {
41
+ (props: PopoverPortalProps): JSX.Element;
42
+ displayName: string;
43
+ };
44
+
45
+ export declare type PopoverPortalProps = React_2.ComponentProps<typeof Popover.Portal>;
46
+
47
+ export declare const PopoverPositioner: {
48
+ ({ className, ...props }: PopoverPositionerProps): JSX.Element;
49
+ displayName: string;
50
+ };
51
+
52
+ export declare type PopoverPositionerProps = React_2.ComponentProps<typeof Popover.Positioner>;
53
+
54
+ export declare const PopoverRoot: {
55
+ (props: PopoverRootProps): JSX.Element;
56
+ displayName: string;
57
+ };
58
+
59
+ export declare type PopoverRootProps = React_2.ComponentProps<typeof Popover.Root>;
60
+
61
+ export declare const PopoverTitle: {
62
+ ({ className, ...props }: PopoverTitleProps): JSX.Element;
63
+ displayName: string;
64
+ };
65
+
66
+ export declare type PopoverTitleProps = React_2.ComponentProps<typeof Popover.Title>;
67
+
68
+ export declare const PopoverTrigger: {
69
+ ({ className, ...props }: PopoverTriggerProps): JSX.Element;
70
+ displayName: string;
71
+ };
72
+
73
+ export declare type PopoverTriggerProps = React_2.ComponentProps<typeof Popover.Trigger>;
74
+
75
+ export declare const PopoverViewport: {
76
+ ({ className, ...props }: PopoverViewportProps): JSX.Element;
77
+ displayName: string;
78
+ };
79
+
80
+ export declare type PopoverViewportProps = React_2.ComponentProps<typeof Popover.Viewport>;
81
+
82
+ export { }
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { Popover as r } from "@base-ui/react/popover";
4
+ import { A as i } from "./arrow-svg-C6zQTvgS.js";
5
+ import { c as a } from "./utils-B6yFEsav.js";
6
+ const s = (o) => /* @__PURE__ */ e(r.Root, { ...o });
7
+ s.displayName = "PopoverRoot";
8
+ const p = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Trigger, { className: a(o), ...t });
9
+ p.displayName = "PopoverTrigger";
10
+ const n = (o) => /* @__PURE__ */ e(r.Portal, { ...o });
11
+ n.displayName = "PopoverPortal";
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
95
+ };
@@ -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
+ };
@@ -0,0 +1,40 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { Progress } from '@base-ui/react/progress';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const ProgressIndicator: {
6
+ ({ className, ...props }: ProgressIndicatorProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type ProgressIndicatorProps = React_2.ComponentProps<typeof Progress.Indicator>;
11
+
12
+ export declare const ProgressLabel: {
13
+ ({ className, ...props }: ProgressLabelProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type ProgressLabelProps = React_2.ComponentProps<typeof Progress.Label>;
18
+
19
+ export declare const ProgressRoot: {
20
+ ({ className, ...props }: ProgressRootProps): JSX.Element;
21
+ displayName: string;
22
+ };
23
+
24
+ export declare type ProgressRootProps = React_2.ComponentProps<typeof Progress.Root>;
25
+
26
+ export declare const ProgressTrack: {
27
+ ({ className, ...props }: ProgressTrackProps): JSX.Element;
28
+ displayName: string;
29
+ };
30
+
31
+ export declare type ProgressTrackProps = React_2.ComponentProps<typeof Progress.Track>;
32
+
33
+ export declare const ProgressValue: {
34
+ ({ className, ...props }: ProgressValueProps): JSX.Element;
35
+ displayName: string;
36
+ };
37
+
38
+ export declare type ProgressValueProps = React_2.ComponentProps<typeof Progress.Value>;
39
+
40
+ export { }
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import { Progress as o } from "@base-ui/react/progress";
4
+ import { c as a } from "./utils-B6yFEsav.js";
5
+ const t = ({ className: r, ...e }) => /* @__PURE__ */ s(o.Root, { className: a("w-full", r), ...e });
6
+ t.displayName = "ProgressRoot";
7
+ const l = ({ className: r, ...e }) => /* @__PURE__ */ s(
8
+ o.Track,
9
+ {
10
+ className: a(
11
+ "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
12
+ r
13
+ ),
14
+ ...e
15
+ }
16
+ );
17
+ l.displayName = "ProgressTrack";
18
+ const n = ({ className: r, ...e }) => /* @__PURE__ */ s(
19
+ o.Indicator,
20
+ {
21
+ className: a(
22
+ "h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
23
+ r
24
+ ),
25
+ ...e
26
+ }
27
+ );
28
+ n.displayName = "ProgressIndicator";
29
+ const m = ({ className: r, ...e }) => /* @__PURE__ */ s(
30
+ o.Value,
31
+ {
32
+ className: a("text-sm font-medium text-foreground", r),
33
+ ...e
34
+ }
35
+ );
36
+ m.displayName = "ProgressValue";
37
+ const u = ({ className: r, ...e }) => /* @__PURE__ */ s(
38
+ o.Label,
39
+ {
40
+ className: a("text-sm font-medium text-foreground", r),
41
+ ...e
42
+ }
43
+ );
44
+ u.displayName = "ProgressLabel";
45
+ export {
46
+ n as ProgressIndicator,
47
+ u as ProgressLabel,
48
+ t as ProgressRoot,
49
+ l as ProgressTrack,
50
+ m as ProgressValue
51
+ };