@waveso/ui 0.14.0 → 0.15.1

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 (84) hide show
  1. package/README.md +12 -10
  2. package/dist/accordion.d.ts +4 -20
  3. package/dist/action-bar.d.ts +1 -10
  4. package/dist/action-bar.js +2 -1
  5. package/dist/alert-dialog.d.ts +12 -52
  6. package/dist/alert.d.ts +5 -21
  7. package/dist/animate.d.ts +5 -48
  8. package/dist/animate.js +6 -4
  9. package/dist/aspect-ratio.d.ts +3 -8
  10. package/dist/autocomplete.d.ts +24 -88
  11. package/dist/autocomplete.js +4 -2
  12. package/dist/avatar.d.ts +6 -27
  13. package/dist/badge.d.ts +3 -11
  14. package/dist/breadcrumb.d.ts +7 -31
  15. package/dist/button-group.d.ts +4 -19
  16. package/dist/button.d.ts +4 -12
  17. package/dist/button.js +6 -6
  18. package/dist/card.d.ts +7 -31
  19. package/dist/checkbox.d.ts +1 -6
  20. package/dist/collapsible.d.ts +3 -12
  21. package/dist/combobox.d.ts +24 -79
  22. package/dist/combobox.js +21 -7
  23. package/dist/context-menu.d.ts +15 -67
  24. package/dist/count.d.ts +1 -15
  25. package/dist/count.js +3 -2
  26. package/dist/dialog.d.ts +10 -41
  27. package/dist/direction.d.ts +0 -1
  28. package/dist/drawer.d.ts +11 -44
  29. package/dist/encrypted-text.d.ts +1 -14
  30. package/dist/encrypted-text.js +2 -1
  31. package/dist/field.d.ts +7 -28
  32. package/dist/film-grain-shader.d.ts +3 -4
  33. package/dist/film-grain-webgl.d.ts +2 -9
  34. package/dist/film-grain-webgl.js +4 -1
  35. package/dist/film-grain.d.ts +1 -11
  36. package/dist/form.d.ts +11 -30
  37. package/dist/gradient-reveal-text.d.ts +1 -14
  38. package/dist/hooks/use-mobile.d.ts +2 -3
  39. package/dist/infinite-scroll.d.ts +1 -16
  40. package/dist/input-group.d.ts +15 -37
  41. package/dist/input-group.js +25 -17
  42. package/dist/input-otp.d.ts +4 -20
  43. package/dist/input.d.ts +3 -11
  44. package/dist/input.js +4 -4
  45. package/dist/item.d.ts +14 -51
  46. package/dist/kbd.d.ts +2 -10
  47. package/dist/label.d.ts +1 -6
  48. package/dist/lib/focus.d.ts +3 -5
  49. package/dist/lib/internal-icons.d.ts +19 -22
  50. package/dist/lib/utils.d.ts +3 -5
  51. package/dist/lib/utils.js +2 -1
  52. package/dist/masonry.d.ts +2 -16
  53. package/dist/masonry.js +1 -1
  54. package/dist/menu.d.ts +15 -64
  55. package/dist/menubar.d.ts +16 -55
  56. package/dist/pagination.d.ts +9 -33
  57. package/dist/popover.d.ts +9 -43
  58. package/dist/preview-card.d.ts +5 -25
  59. package/dist/progress.d.ts +5 -24
  60. package/dist/radio-group.d.ts +2 -9
  61. package/dist/radio.d.ts +2 -10
  62. package/dist/scroll-area.d.ts +2 -12
  63. package/dist/select.d.ts +19 -65
  64. package/dist/select.js +12 -2
  65. package/dist/separator.d.ts +1 -7
  66. package/dist/sidebar.d.ts +30 -127
  67. package/dist/sidebar.js +3 -3
  68. package/dist/skeleton.d.ts +1 -6
  69. package/dist/slider.d.ts +1 -14
  70. package/dist/slider.js +2 -2
  71. package/dist/spinner.d.ts +1 -6
  72. package/dist/styles.css +18 -0
  73. package/dist/switch.d.ts +2 -9
  74. package/dist/table.d.ts +8 -34
  75. package/dist/tabs.d.ts +5 -22
  76. package/dist/textarea.d.ts +7 -10
  77. package/dist/textarea.js +14 -3
  78. package/dist/toast.d.ts +13 -39
  79. package/dist/toggle-group.d.ts +3 -19
  80. package/dist/toggle-group.js +13 -7
  81. package/dist/toggle.d.ts +3 -11
  82. package/dist/tooltip.d.ts +4 -24
  83. package/dist/typewriter.d.ts +1 -14
  84. package/package.json +52 -51
package/dist/item.d.ts CHANGED
@@ -1,18 +1,15 @@
1
1
  import { Separator } from "./separator.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
  import { VariantProps } from "class-variance-authority";
5
4
  import { useRender } from "@base-ui/react/use-render";
6
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
7
-
8
5
  //#region src/item.d.ts
9
6
  declare const itemVariants: (props?: ({
10
- variant?: "default" | "outline" | "muted" | null | undefined;
7
+ variant?: "default" | "muted" | "outline" | null | undefined;
11
8
  size?: "default" | "sm" | "xs" | null | undefined;
12
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
10
  declare const itemMediaVariants: (props?: ({
14
- variant?: "default" | "image" | "icon" | null | undefined;
15
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
11
+ variant?: "default" | "icon" | "image" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
13
  type ItemGroupProps = React.ComponentProps<"div">;
17
14
  type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
18
15
  type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>;
@@ -23,49 +20,15 @@ type ItemDescriptionProps = React.ComponentProps<"p">;
23
20
  type ItemActionsProps = React.ComponentProps<"div">;
24
21
  type ItemHeaderProps = React.ComponentProps<"div">;
25
22
  type ItemFooterProps = React.ComponentProps<"div">;
26
- declare function ItemGroup({
27
- className,
28
- ...props
29
- }: ItemGroupProps): _$react_jsx_runtime0.JSX.Element;
30
- declare function ItemSeparator({
31
- className,
32
- ...props
33
- }: ItemSeparatorProps): _$react_jsx_runtime0.JSX.Element;
34
- declare function Item({
35
- className,
36
- variant,
37
- size,
38
- render,
39
- ...props
40
- }: ItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
41
- declare function ItemMedia({
42
- className,
43
- variant,
44
- ...props
45
- }: ItemMediaProps): _$react_jsx_runtime0.JSX.Element;
46
- declare function ItemContent({
47
- className,
48
- ...props
49
- }: ItemContentProps): _$react_jsx_runtime0.JSX.Element;
50
- declare function ItemTitle({
51
- className,
52
- ...props
53
- }: ItemTitleProps): _$react_jsx_runtime0.JSX.Element;
54
- declare function ItemDescription({
55
- className,
56
- ...props
57
- }: ItemDescriptionProps): _$react_jsx_runtime0.JSX.Element;
58
- declare function ItemActions({
59
- className,
60
- ...props
61
- }: ItemActionsProps): _$react_jsx_runtime0.JSX.Element;
62
- declare function ItemHeader({
63
- className,
64
- ...props
65
- }: ItemHeaderProps): _$react_jsx_runtime0.JSX.Element;
66
- declare function ItemFooter({
67
- className,
68
- ...props
69
- }: ItemFooterProps): _$react_jsx_runtime0.JSX.Element;
23
+ declare function ItemGroup({ className, ...props }: ItemGroupProps): React.JSX.Element;
24
+ declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): React.JSX.Element;
25
+ declare function Item({ className, variant, size, render, ...props }: ItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
26
+ declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): React.JSX.Element;
27
+ declare function ItemContent({ className, ...props }: ItemContentProps): React.JSX.Element;
28
+ declare function ItemTitle({ className, ...props }: ItemTitleProps): React.JSX.Element;
29
+ declare function ItemDescription({ className, ...props }: ItemDescriptionProps): React.JSX.Element;
30
+ declare function ItemActions({ className, ...props }: ItemActionsProps): React.JSX.Element;
31
+ declare function ItemHeader({ className, ...props }: ItemHeaderProps): React.JSX.Element;
32
+ declare function ItemFooter({ className, ...props }: ItemFooterProps): React.JSX.Element;
70
33
  //#endregion
71
34
  export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, type ItemSeparatorProps, ItemTitle, type ItemTitleProps, itemMediaVariants, itemVariants };
package/dist/kbd.d.ts CHANGED
@@ -1,16 +1,8 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
-
4
2
  //#region src/kbd.d.ts
5
3
  type KbdProps = React.ComponentProps<"kbd">;
6
4
  type KbdGroupProps = React.ComponentProps<"div">;
7
- declare function Kbd({
8
- className,
9
- ...props
10
- }: KbdProps): _$react_jsx_runtime0.JSX.Element;
11
- declare function KbdGroup({
12
- className,
13
- ...props
14
- }: KbdGroupProps): _$react_jsx_runtime0.JSX.Element;
5
+ declare function Kbd({ className, ...props }: KbdProps): React.JSX.Element;
6
+ declare function KbdGroup({ className, ...props }: KbdGroupProps): React.JSX.Element;
15
7
  //#endregion
16
8
  export { Kbd, KbdGroup, type KbdGroupProps, type KbdProps };
package/dist/label.d.ts CHANGED
@@ -1,11 +1,6 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
-
4
2
  //#region src/label.d.ts
5
3
  type LabelProps = React.ComponentProps<"label">;
6
- declare function Label({
7
- className,
8
- ...props
9
- }: LabelProps): _$react_jsx_runtime0.JSX.Element;
4
+ declare function Label({ className, ...props }: LabelProps): React.JSX.Element;
10
5
  //#endregion
11
6
  export { Label, type LabelProps };
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { Menu } from "@base-ui/react/menu";
3
-
4
3
  //#region src/lib/focus.d.ts
5
4
  /**
6
5
  * The full shape Base UI's `finalFocus` prop accepts on the
@@ -25,7 +24,7 @@ type FinalFocus = NonNullable<React.ComponentProps<typeof Menu.Popup>["finalFocu
25
24
  * expected focus return.
26
25
  * - `"never"` — never auto-restore focus on close.
27
26
  */
28
- type RestoreFocusOnClose = "always" | "keyboard" | "never";
27
+ export type RestoreFocusOnClose = "always" | "keyboard" | "never";
29
28
  /**
30
29
  * Resolve the high-level {@link RestoreFocusOnClose} policy to the
31
30
  * Base UI `finalFocus` value.
@@ -36,6 +35,5 @@ type RestoreFocusOnClose = "always" | "keyboard" | "never";
36
35
  * other — when `restoreFocusOnClose` is set it fully governs
37
36
  * `finalFocus`.
38
37
  */
39
- declare function resolveFinalFocus(restoreFocusOnClose: RestoreFocusOnClose | undefined, finalFocus: FinalFocus | undefined): FinalFocus | undefined;
40
- //#endregion
41
- export { RestoreFocusOnClose, resolveFinalFocus };
38
+ export declare function resolveFinalFocus(restoreFocusOnClose: RestoreFocusOnClose | undefined, finalFocus: FinalFocus | undefined): FinalFocus | undefined;
39
+ //#endregion
@@ -1,25 +1,22 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
-
4
2
  //#region src/lib/internal-icons.d.ts
5
3
  type IconProps = React.SVGProps<SVGSVGElement>;
6
- declare function ChevronDownIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
7
- declare function ChevronUpIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
8
- declare function ChevronLeftIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
9
- declare function ChevronRightIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
10
- declare function CheckIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
11
- declare function CloseIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
12
- declare function MinusIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
13
- declare function EllipsisIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
14
- declare function EllipsisVerticalIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
15
- declare function ChevronsUpDownIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
16
- declare function SidebarPanelIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
17
- declare function LoaderIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
18
- declare function AlertTriangleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
19
- declare function SuccessCircleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
20
- declare function InfoCircleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
21
- declare function ErrorCircleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
22
- declare function TrashIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function StarIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
24
- //#endregion
25
- export { AlertTriangleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CloseIcon, EllipsisIcon, EllipsisVerticalIcon, ErrorCircleIcon, InfoCircleIcon, LoaderIcon, MinusIcon, SidebarPanelIcon, StarIcon, SuccessCircleIcon, TrashIcon };
4
+ export declare function ChevronDownIcon(props: IconProps): React.JSX.Element;
5
+ export declare function ChevronUpIcon(props: IconProps): React.JSX.Element;
6
+ export declare function ChevronLeftIcon(props: IconProps): React.JSX.Element;
7
+ export declare function ChevronRightIcon(props: IconProps): React.JSX.Element;
8
+ export declare function CheckIcon(props: IconProps): React.JSX.Element;
9
+ export declare function CloseIcon(props: IconProps): React.JSX.Element;
10
+ export declare function MinusIcon(props: IconProps): React.JSX.Element;
11
+ export declare function EllipsisIcon(props: IconProps): React.JSX.Element;
12
+ export declare function EllipsisVerticalIcon(props: IconProps): React.JSX.Element;
13
+ export declare function ChevronsUpDownIcon(props: IconProps): React.JSX.Element;
14
+ export declare function SidebarPanelIcon(props: IconProps): React.JSX.Element;
15
+ export declare function LoaderIcon(props: IconProps): React.JSX.Element;
16
+ export declare function AlertTriangleIcon(props: IconProps): React.JSX.Element;
17
+ export declare function SuccessCircleIcon(props: IconProps): React.JSX.Element;
18
+ export declare function InfoCircleIcon(props: IconProps): React.JSX.Element;
19
+ export declare function ErrorCircleIcon(props: IconProps): React.JSX.Element;
20
+ export declare function TrashIcon(props: IconProps): React.JSX.Element;
21
+ export declare function StarIcon(props: IconProps): React.JSX.Element;
22
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  import { ClassValue } from "clsx";
2
-
3
2
  //#region src/lib/utils.d.ts
4
3
  /**
5
4
  * `cn()` is the single className helper.
@@ -35,7 +34,6 @@ import { ClassValue } from "clsx";
35
34
  * ```
36
35
  */
37
36
  type CnValue<State> = ClassValue | ((state: State) => ClassValue);
38
- declare function cn(...inputs: ClassValue[]): string;
39
- declare function cn<State>(...inputs: CnValue<State>[]): (state: State) => string;
40
- //#endregion
41
- export { cn };
37
+ export declare function cn(...inputs: ClassValue[]): string;
38
+ export declare function cn<State>(...inputs: CnValue<State>[]): (state: State) => string;
39
+ //#endregion
package/dist/lib/utils.js CHANGED
@@ -28,7 +28,8 @@ const twMerge = extendTailwindMerge({ extend: { classGroups: {
28
28
  function cn(...inputs) {
29
29
  if (!inputs.some((v) => typeof v === "function")) return twMerge(clsx(inputs));
30
30
  return (state) => {
31
- return twMerge(clsx(inputs.map((v) => typeof v === "function" ? v(state) : v)));
31
+ const resolved = inputs.map((v) => typeof v === "function" ? v(state) : v);
32
+ return twMerge(clsx(resolved));
32
33
  };
33
34
  }
34
35
  //#endregion
package/dist/masonry.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { HTMLMotionProps } from "motion/react";
4
-
5
3
  //#region src/masonry.d.ts
6
4
  type MasonryProps = React.ComponentProps<"div"> & {
7
5
  columns?: number;
@@ -12,19 +10,7 @@ type MasonryItemProps = Omit<HTMLMotionProps<"div">, "children"> & {
12
10
  span?: number;
13
11
  children?: React.ReactNode;
14
12
  };
15
- declare function Masonry({
16
- columns,
17
- columnWidth,
18
- gap,
19
- className,
20
- children,
21
- ...props
22
- }: MasonryProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function MasonryItem({
24
- className,
25
- span,
26
- children,
27
- ...props
28
- }: MasonryItemProps): _$react_jsx_runtime0.JSX.Element;
13
+ declare function Masonry({ columns, columnWidth, gap, className, children, ...props }: MasonryProps): React.JSX.Element;
14
+ declare function MasonryItem({ className, span, children, ...props }: MasonryItemProps): React.JSX.Element;
29
15
  //#endregion
30
16
  export { Masonry, MasonryItem, type MasonryItemProps, type MasonryProps };
package/dist/masonry.js CHANGED
@@ -47,7 +47,7 @@ function Masonry({ columns, columnWidth, gap = 4, className, children, ...props
47
47
  container.style.removeProperty("flex-direction");
48
48
  container.style.removeProperty("gap");
49
49
  const colWidth = (containerWidth - (colCount - 1) * gapPx) / colCount;
50
- const columnBottoms = new Array(colCount).fill(0);
50
+ const columnBottoms = Array.from({ length: colCount }, () => 0);
51
51
  const topItems = [];
52
52
  const regularItems = [];
53
53
  for (const item of items) {
package/dist/menu.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { RestoreFocusOnClose } from "./lib/focus.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
  import { Menu as Menu$1 } from "@base-ui/react/menu";
5
-
6
4
  //#region src/menu.d.ts
7
5
  type MenuProps = React.ComponentProps<typeof Menu$1.Root>;
8
6
  type MenuPortalProps = React.ComponentProps<typeof Menu$1.Portal>;
@@ -38,67 +36,20 @@ type MenuRadioItemProps = React.ComponentProps<typeof Menu$1.RadioItem> & {
38
36
  };
39
37
  type MenuSeparatorProps = React.ComponentProps<typeof Menu$1.Separator>;
40
38
  type MenuShortcutProps = React.ComponentProps<"span">;
41
- declare function Menu(props: MenuProps): _$react_jsx_runtime0.JSX.Element;
42
- declare function MenuPortal(props: MenuPortalProps): _$react_jsx_runtime0.JSX.Element;
43
- declare function MenuTrigger(props: MenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
44
- declare function MenuContent({
45
- align,
46
- alignOffset,
47
- side,
48
- sideOffset,
49
- className,
50
- restoreFocusOnClose,
51
- finalFocus,
52
- ...props
53
- }: MenuContentProps): _$react_jsx_runtime0.JSX.Element;
54
- declare function MenuGroup(props: MenuGroupProps): _$react_jsx_runtime0.JSX.Element;
55
- declare function MenuLabel({
56
- className,
57
- inset,
58
- ...props
59
- }: MenuLabelProps): _$react_jsx_runtime0.JSX.Element;
60
- declare function MenuItem({
61
- className,
62
- inset,
63
- variant,
64
- ...props
65
- }: MenuItemProps): _$react_jsx_runtime0.JSX.Element;
66
- declare function MenuSub(props: MenuSubProps): _$react_jsx_runtime0.JSX.Element;
67
- declare function MenuSubTrigger({
68
- className,
69
- inset,
70
- children,
71
- ...props
72
- }: MenuSubTriggerProps): _$react_jsx_runtime0.JSX.Element;
73
- declare function MenuSubContent({
74
- align,
75
- alignOffset,
76
- side,
77
- sideOffset,
78
- className,
79
- ...props
80
- }: MenuSubContentProps): _$react_jsx_runtime0.JSX.Element;
81
- declare function MenuCheckboxItem({
82
- className,
83
- children,
84
- checked,
85
- inset,
86
- ...props
87
- }: MenuCheckboxItemProps): _$react_jsx_runtime0.JSX.Element;
88
- declare function MenuRadioGroup(props: MenuRadioGroupProps): _$react_jsx_runtime0.JSX.Element;
89
- declare function MenuRadioItem({
90
- className,
91
- children,
92
- inset,
93
- ...props
94
- }: MenuRadioItemProps): _$react_jsx_runtime0.JSX.Element;
95
- declare function MenuSeparator({
96
- className,
97
- ...props
98
- }: MenuSeparatorProps): _$react_jsx_runtime0.JSX.Element;
99
- declare function MenuShortcut({
100
- className,
101
- ...props
102
- }: MenuShortcutProps): _$react_jsx_runtime0.JSX.Element;
39
+ declare function Menu(props: MenuProps): React.JSX.Element;
40
+ declare function MenuPortal(props: MenuPortalProps): React.JSX.Element;
41
+ declare function MenuTrigger(props: MenuTriggerProps): React.JSX.Element;
42
+ declare function MenuContent({ align, alignOffset, side, sideOffset, className, restoreFocusOnClose, finalFocus, ...props }: MenuContentProps): React.JSX.Element;
43
+ declare function MenuGroup(props: MenuGroupProps): React.JSX.Element;
44
+ declare function MenuLabel({ className, inset, ...props }: MenuLabelProps): React.JSX.Element;
45
+ declare function MenuItem({ className, inset, variant, ...props }: MenuItemProps): React.JSX.Element;
46
+ declare function MenuSub(props: MenuSubProps): React.JSX.Element;
47
+ declare function MenuSubTrigger({ className, inset, children, ...props }: MenuSubTriggerProps): React.JSX.Element;
48
+ declare function MenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuSubContentProps): React.JSX.Element;
49
+ declare function MenuCheckboxItem({ className, children, checked, inset, ...props }: MenuCheckboxItemProps): React.JSX.Element;
50
+ declare function MenuRadioGroup(props: MenuRadioGroupProps): React.JSX.Element;
51
+ declare function MenuRadioItem({ className, children, inset, ...props }: MenuRadioItemProps): React.JSX.Element;
52
+ declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): React.JSX.Element;
53
+ declare function MenuShortcut({ className, ...props }: MenuShortcutProps): React.JSX.Element;
103
54
  //#endregion
104
55
  export { Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, MenuPortal, type MenuPortalProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MenuShortcut, type MenuShortcutProps, MenuSub, MenuSubContent, type MenuSubContentProps, type MenuSubProps, MenuSubTrigger, type MenuSubTriggerProps, MenuTrigger, type MenuTriggerProps, type RestoreFocusOnClose };
package/dist/menubar.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger } from "./menu.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
  import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
5
-
6
4
  //#region src/menubar.d.ts
7
5
  type MenubarProps = React.ComponentProps<typeof Menubar$1>;
8
6
  type MenubarMenuProps = React.ComponentProps<typeof Menu>;
@@ -20,58 +18,21 @@ type MenubarShortcutProps = React.ComponentProps<typeof MenuShortcut>;
20
18
  type MenubarSubProps = React.ComponentProps<typeof MenuSub>;
21
19
  type MenubarSubTriggerProps = React.ComponentProps<typeof MenuSubTrigger>;
22
20
  type MenubarSubContentProps = React.ComponentProps<typeof MenuSubContent>;
23
- declare function Menubar({
24
- className,
25
- ...props
26
- }: MenubarProps): _$react_jsx_runtime0.JSX.Element;
27
- declare function MenubarMenu({
28
- ...props
29
- }: MenubarMenuProps): _$react_jsx_runtime0.JSX.Element;
30
- declare function MenubarGroup({
31
- ...props
32
- }: MenubarGroupProps): _$react_jsx_runtime0.JSX.Element;
33
- declare function MenubarPortal({
34
- ...props
35
- }: MenubarPortalProps): _$react_jsx_runtime0.JSX.Element;
36
- declare function MenubarTrigger({
37
- ...props
38
- }: MenubarTriggerProps): _$react_jsx_runtime0.JSX.Element;
39
- declare function MenubarContent({
40
- align,
41
- alignOffset,
42
- sideOffset,
43
- className,
44
- ...props
45
- }: MenubarContentProps): _$react_jsx_runtime0.JSX.Element;
46
- declare function MenubarItem({
47
- ...props
48
- }: MenubarItemProps): _$react_jsx_runtime0.JSX.Element;
49
- declare function MenubarCheckboxItem({
50
- ...props
51
- }: MenubarCheckboxItemProps): _$react_jsx_runtime0.JSX.Element;
52
- declare function MenubarRadioGroup({
53
- ...props
54
- }: MenubarRadioGroupProps): _$react_jsx_runtime0.JSX.Element;
55
- declare function MenubarRadioItem({
56
- ...props
57
- }: MenubarRadioItemProps): _$react_jsx_runtime0.JSX.Element;
58
- declare function MenubarLabel({
59
- ...props
60
- }: MenubarLabelProps): _$react_jsx_runtime0.JSX.Element;
61
- declare function MenubarSeparator({
62
- ...props
63
- }: MenubarSeparatorProps): _$react_jsx_runtime0.JSX.Element;
64
- declare function MenubarShortcut({
65
- ...props
66
- }: MenubarShortcutProps): _$react_jsx_runtime0.JSX.Element;
67
- declare function MenubarSub({
68
- ...props
69
- }: MenubarSubProps): _$react_jsx_runtime0.JSX.Element;
70
- declare function MenubarSubTrigger({
71
- ...props
72
- }: MenubarSubTriggerProps): _$react_jsx_runtime0.JSX.Element;
73
- declare function MenubarSubContent({
74
- ...props
75
- }: MenubarSubContentProps): _$react_jsx_runtime0.JSX.Element;
21
+ declare function Menubar({ className, ...props }: MenubarProps): React.JSX.Element;
22
+ declare function MenubarMenu({ ...props }: MenubarMenuProps): React.JSX.Element;
23
+ declare function MenubarGroup({ ...props }: MenubarGroupProps): React.JSX.Element;
24
+ declare function MenubarPortal({ ...props }: MenubarPortalProps): React.JSX.Element;
25
+ declare function MenubarTrigger({ ...props }: MenubarTriggerProps): React.JSX.Element;
26
+ declare function MenubarContent({ align, alignOffset, sideOffset, className, ...props }: MenubarContentProps): React.JSX.Element;
27
+ declare function MenubarItem({ ...props }: MenubarItemProps): React.JSX.Element;
28
+ declare function MenubarCheckboxItem({ ...props }: MenubarCheckboxItemProps): React.JSX.Element;
29
+ declare function MenubarRadioGroup({ ...props }: MenubarRadioGroupProps): React.JSX.Element;
30
+ declare function MenubarRadioItem({ ...props }: MenubarRadioItemProps): React.JSX.Element;
31
+ declare function MenubarLabel({ ...props }: MenubarLabelProps): React.JSX.Element;
32
+ declare function MenubarSeparator({ ...props }: MenubarSeparatorProps): React.JSX.Element;
33
+ declare function MenubarShortcut({ ...props }: MenubarShortcutProps): React.JSX.Element;
34
+ declare function MenubarSub({ ...props }: MenubarSubProps): React.JSX.Element;
35
+ declare function MenubarSubTrigger({ ...props }: MenubarSubTriggerProps): React.JSX.Element;
36
+ declare function MenubarSubContent({ ...props }: MenubarSubContentProps): React.JSX.Element;
76
37
  //#endregion
77
38
  export { Menubar, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarShortcut, type MenubarShortcutProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps };
@@ -1,13 +1,12 @@
1
1
  import { Button } from "./button.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
-
5
3
  //#region src/pagination.d.ts
6
4
  type PaginationProps = React.ComponentProps<"nav">;
7
5
  type PaginationContentProps = React.ComponentProps<"ul">;
8
6
  type PaginationItemProps = React.ComponentProps<"li">;
9
7
  type PaginationLinkProps = {
10
- isActive?: boolean; /** Marks the link disabled — aria-disabled, removed from tab order, non-interactive. */
8
+ isActive?: boolean;
9
+ /** Marks the link disabled — aria-disabled, removed from tab order, non-interactive. */
11
10
  disabled?: boolean;
12
11
  } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
13
12
  type PaginationPreviousProps = PaginationLinkProps & {
@@ -17,35 +16,12 @@ type PaginationNextProps = PaginationLinkProps & {
17
16
  text?: string;
18
17
  };
19
18
  type PaginationEllipsisProps = React.ComponentProps<"span">;
20
- declare function Pagination({
21
- className,
22
- ...props
23
- }: PaginationProps): _$react_jsx_runtime0.JSX.Element;
24
- declare function PaginationContent({
25
- className,
26
- ...props
27
- }: PaginationContentProps): _$react_jsx_runtime0.JSX.Element;
28
- declare function PaginationItem(props: PaginationItemProps): _$react_jsx_runtime0.JSX.Element;
29
- declare function PaginationLink({
30
- className,
31
- isActive,
32
- disabled,
33
- size,
34
- ...props
35
- }: PaginationLinkProps): _$react_jsx_runtime0.JSX.Element;
36
- declare function PaginationPrevious({
37
- className,
38
- text,
39
- ...props
40
- }: PaginationPreviousProps): _$react_jsx_runtime0.JSX.Element;
41
- declare function PaginationNext({
42
- className,
43
- text,
44
- ...props
45
- }: PaginationNextProps): _$react_jsx_runtime0.JSX.Element;
46
- declare function PaginationEllipsis({
47
- className,
48
- ...props
49
- }: PaginationEllipsisProps): _$react_jsx_runtime0.JSX.Element;
19
+ declare function Pagination({ className, ...props }: PaginationProps): React.JSX.Element;
20
+ declare function PaginationContent({ className, ...props }: PaginationContentProps): React.JSX.Element;
21
+ declare function PaginationItem(props: PaginationItemProps): React.JSX.Element;
22
+ declare function PaginationLink({ className, isActive, disabled, size, ...props }: PaginationLinkProps): React.JSX.Element;
23
+ declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): React.JSX.Element;
24
+ declare function PaginationNext({ className, text, ...props }: PaginationNextProps): React.JSX.Element;
25
+ declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): React.JSX.Element;
50
26
  //#endregion
51
27
  export { Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps };
package/dist/popover.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { RestoreFocusOnClose } from "./lib/focus.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
  import { Popover as Popover$1 } from "@base-ui/react/popover";
5
-
6
4
  //#region src/popover.d.ts
7
5
  type PopoverProps = React.ComponentProps<typeof Popover$1.Root>;
8
6
  type PopoverTriggerProps = React.ComponentProps<typeof Popover$1.Trigger>;
@@ -27,46 +25,14 @@ type PopoverContentProps = React.ComponentProps<typeof Popover$1.Popup> & Pick<R
27
25
  */
28
26
  positionerClassName?: string;
29
27
  };
30
- declare function Popover({
31
- ...props
32
- }: PopoverProps): _$react_jsx_runtime0.JSX.Element;
33
- declare function PopoverTrigger({
34
- ...props
35
- }: PopoverTriggerProps): _$react_jsx_runtime0.JSX.Element;
36
- declare function PopoverPortal({
37
- ...props
38
- }: PopoverPortalProps): _$react_jsx_runtime0.JSX.Element;
39
- declare function PopoverPositioner({
40
- className,
41
- ...props
42
- }: PopoverPositionerProps): _$react_jsx_runtime0.JSX.Element;
43
- declare function PopoverBackdrop({
44
- className,
45
- ...props
46
- }: PopoverBackdropProps): _$react_jsx_runtime0.JSX.Element;
47
- declare function PopoverContent({
48
- className,
49
- positionerClassName,
50
- align,
51
- alignOffset,
52
- side,
53
- sideOffset,
54
- anchor,
55
- restoreFocusOnClose,
56
- finalFocus,
57
- ...props
58
- }: PopoverContentProps): _$react_jsx_runtime0.JSX.Element;
59
- declare function PopoverHeader({
60
- className,
61
- ...props
62
- }: PopoverHeaderProps): _$react_jsx_runtime0.JSX.Element;
63
- declare function PopoverTitle({
64
- className,
65
- ...props
66
- }: PopoverTitleProps): _$react_jsx_runtime0.JSX.Element;
67
- declare function PopoverDescription({
68
- className,
69
- ...props
70
- }: PopoverDescriptionProps): _$react_jsx_runtime0.JSX.Element;
28
+ declare function Popover({ ...props }: PopoverProps): React.JSX.Element;
29
+ declare function PopoverTrigger({ ...props }: PopoverTriggerProps): React.JSX.Element;
30
+ declare function PopoverPortal({ ...props }: PopoverPortalProps): React.JSX.Element;
31
+ declare function PopoverPositioner({ className, ...props }: PopoverPositionerProps): React.JSX.Element;
32
+ declare function PopoverBackdrop({ className, ...props }: PopoverBackdropProps): React.JSX.Element;
33
+ declare function PopoverContent({ className, positionerClassName, align, alignOffset, side, sideOffset, anchor, restoreFocusOnClose, finalFocus, ...props }: PopoverContentProps): React.JSX.Element;
34
+ declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): React.JSX.Element;
35
+ declare function PopoverTitle({ className, ...props }: PopoverTitleProps): React.JSX.Element;
36
+ declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): React.JSX.Element;
71
37
  //#endregion
72
38
  export { Popover, PopoverBackdrop, type PopoverBackdropProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverPortal, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerProps, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type RestoreFocusOnClose };
@@ -1,7 +1,5 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
4
-
5
3
  //#region src/preview-card.d.ts
6
4
  type PreviewCardProps = React.ComponentProps<typeof PreviewCard$1.Root>;
7
5
  type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard$1.Trigger>;
@@ -11,28 +9,10 @@ type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard$1.Popup>;
11
9
  type PreviewCardContentProps = PreviewCardPopupProps & Pick<PreviewCardPositionerProps, "align" | "alignOffset" | "side" | "sideOffset" | "anchor"> & {
12
10
  positionerClassName?: string;
13
11
  };
14
- declare function PreviewCard({
15
- ...props
16
- }: PreviewCardProps): _$react_jsx_runtime0.JSX.Element;
17
- declare function PreviewCardTrigger({
18
- ...props
19
- }: PreviewCardTriggerProps): _$react_jsx_runtime0.JSX.Element;
20
- declare function PreviewCardPortal({
21
- ...props
22
- }: PreviewCardPortalProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function PreviewCardPositioner({
24
- className,
25
- ...props
26
- }: PreviewCardPositionerProps): _$react_jsx_runtime0.JSX.Element;
27
- declare function PreviewCardContent({
28
- className,
29
- positionerClassName,
30
- side,
31
- sideOffset,
32
- align,
33
- alignOffset,
34
- anchor,
35
- ...props
36
- }: PreviewCardContentProps): _$react_jsx_runtime0.JSX.Element;
12
+ declare function PreviewCard({ ...props }: PreviewCardProps): React.JSX.Element;
13
+ declare function PreviewCardTrigger({ ...props }: PreviewCardTriggerProps): React.JSX.Element;
14
+ declare function PreviewCardPortal({ ...props }: PreviewCardPortalProps): React.JSX.Element;
15
+ declare function PreviewCardPositioner({ className, ...props }: PreviewCardPositionerProps): React.JSX.Element;
16
+ declare function PreviewCardContent({ className, positionerClassName, side, sideOffset, align, alignOffset, anchor, ...props }: PreviewCardContentProps): React.JSX.Element;
37
17
  //#endregion
38
18
  export { PreviewCard, PreviewCardContent, type PreviewCardContentProps, PreviewCardPortal, type PreviewCardPortalProps, PreviewCardPositioner, type PreviewCardPositionerProps, type PreviewCardProps, PreviewCardTrigger, type PreviewCardTriggerProps };
@@ -1,34 +1,15 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { Progress as Progress$1 } from "@base-ui/react/progress";
4
-
5
3
  //#region src/progress.d.ts
6
4
  type ProgressProps = React.ComponentProps<typeof Progress$1.Root>;
7
5
  type ProgressTrackProps = React.ComponentProps<typeof Progress$1.Track>;
8
6
  type ProgressIndicatorProps = React.ComponentProps<typeof Progress$1.Indicator>;
9
7
  type ProgressLabelProps = React.ComponentProps<typeof Progress$1.Label>;
10
8
  type ProgressValueProps = React.ComponentProps<typeof Progress$1.Value>;
11
- declare function Progress({
12
- className,
13
- children,
14
- value,
15
- ...props
16
- }: ProgressProps): _$react_jsx_runtime0.JSX.Element;
17
- declare function ProgressTrack({
18
- className,
19
- ...props
20
- }: ProgressTrackProps): _$react_jsx_runtime0.JSX.Element;
21
- declare function ProgressIndicator({
22
- className,
23
- ...props
24
- }: ProgressIndicatorProps): _$react_jsx_runtime0.JSX.Element;
25
- declare function ProgressLabel({
26
- className,
27
- ...props
28
- }: ProgressLabelProps): _$react_jsx_runtime0.JSX.Element;
29
- declare function ProgressValue({
30
- className,
31
- ...props
32
- }: ProgressValueProps): _$react_jsx_runtime0.JSX.Element;
9
+ declare function Progress({ className, children, value, ...props }: ProgressProps): React.JSX.Element;
10
+ declare function ProgressTrack({ className, ...props }: ProgressTrackProps): React.JSX.Element;
11
+ declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): React.JSX.Element;
12
+ declare function ProgressLabel({ className, ...props }: ProgressLabelProps): React.JSX.Element;
13
+ declare function ProgressValue({ className, ...props }: ProgressValueProps): React.JSX.Element;
33
14
  //#endregion
34
15
  export { Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressTrack, type ProgressTrackProps, ProgressValue, type ProgressValueProps };