@waveso/ui 0.15.0 → 0.16.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 (129) hide show
  1. package/README.md +25 -22
  2. package/dist/accordion.d.ts +4 -20
  3. package/dist/accordion.js +2 -2
  4. package/dist/action-bar.d.ts +1 -10
  5. package/dist/action-bar.js +6 -5
  6. package/dist/alert-dialog.d.ts +12 -52
  7. package/dist/alert-dialog.js +5 -5
  8. package/dist/alert.d.ts +13 -22
  9. package/dist/alert.js +13 -4
  10. package/dist/animate.d.ts +6 -49
  11. package/dist/animate.js +8 -13
  12. package/dist/aspect-ratio.d.ts +3 -8
  13. package/dist/autocomplete.d.ts +21 -88
  14. package/dist/autocomplete.js +3 -3
  15. package/dist/avatar.d.ts +7 -28
  16. package/dist/avatar.js +4 -4
  17. package/dist/badge.d.ts +3 -11
  18. package/dist/badge.js +6 -6
  19. package/dist/breadcrumb.d.ts +7 -31
  20. package/dist/button-group.d.ts +7 -20
  21. package/dist/button-group.js +5 -4
  22. package/dist/button.d.ts +4 -12
  23. package/dist/button.js +6 -6
  24. package/dist/card.d.ts +16 -33
  25. package/dist/card.js +27 -14
  26. package/dist/checkbox.d.ts +1 -6
  27. package/dist/checkbox.js +2 -2
  28. package/dist/collapsible.d.ts +3 -12
  29. package/dist/combobox.d.ts +18 -81
  30. package/dist/combobox.js +4 -4
  31. package/dist/context-menu.d.ts +17 -68
  32. package/dist/context-menu.js +14 -14
  33. package/dist/count.d.ts +1 -15
  34. package/dist/count.js +3 -2
  35. package/dist/dialog.d.ts +10 -41
  36. package/dist/dialog.js +5 -5
  37. package/dist/direction.d.ts +0 -1
  38. package/dist/drawer.d.ts +11 -44
  39. package/dist/drawer.js +1 -1
  40. package/dist/encrypted-text.d.ts +15 -14
  41. package/dist/encrypted-text.js +205 -66
  42. package/dist/field.d.ts +27 -30
  43. package/dist/field.js +36 -8
  44. package/dist/fieldset.d.ts +14 -0
  45. package/dist/fieldset.js +26 -0
  46. package/dist/film-grain-shader.d.ts +3 -4
  47. package/dist/film-grain-webgl.d.ts +2 -9
  48. package/dist/film-grain-webgl.js +4 -1
  49. package/dist/film-grain.d.ts +1 -11
  50. package/dist/form.d.ts +23 -42
  51. package/dist/form.js +7 -4
  52. package/dist/glyph-matrix.d.ts +25 -0
  53. package/dist/glyph-matrix.js +266 -0
  54. package/dist/gradient-reveal-text.d.ts +4 -17
  55. package/dist/gradient-reveal-text.js +8 -8
  56. package/dist/hooks/use-mobile.d.ts +2 -3
  57. package/dist/infinite-scroll.d.ts +1 -16
  58. package/dist/input-group.d.ts +11 -37
  59. package/dist/input-group.js +1 -1
  60. package/dist/input-otp.d.ts +4 -20
  61. package/dist/input-otp.js +2 -2
  62. package/dist/input.d.ts +3 -11
  63. package/dist/input.js +1 -1
  64. package/dist/item.d.ts +14 -51
  65. package/dist/item.js +17 -11
  66. package/dist/kbd.d.ts +3 -11
  67. package/dist/kbd.js +2 -2
  68. package/dist/label.d.ts +1 -6
  69. package/dist/label.js +1 -1
  70. package/dist/lib/focus.d.ts +3 -5
  71. package/dist/lib/internal-icons.d.ts +19 -22
  72. package/dist/lib/merge-refs.d.ts +9 -0
  73. package/dist/lib/merge-refs.js +16 -0
  74. package/dist/lib/utils.d.ts +3 -5
  75. package/dist/lib/utils.js +9 -1
  76. package/dist/masonry.d.ts +2 -16
  77. package/dist/masonry.js +5 -3
  78. package/dist/menu.d.ts +17 -65
  79. package/dist/menu.js +7 -7
  80. package/dist/menubar.d.ts +16 -55
  81. package/dist/menubar.js +1 -1
  82. package/dist/pagination.d.ts +9 -33
  83. package/dist/pagination.js +1 -1
  84. package/dist/popover.d.ts +9 -43
  85. package/dist/popover.js +1 -1
  86. package/dist/preview-card.d.ts +5 -25
  87. package/dist/preview-card.js +1 -1
  88. package/dist/progress.d.ts +5 -24
  89. package/dist/progress.js +2 -2
  90. package/dist/radio-group.d.ts +2 -9
  91. package/dist/radio-group.js +1 -1
  92. package/dist/radio.d.ts +2 -10
  93. package/dist/radio.js +2 -2
  94. package/dist/resizable.d.ts +43 -0
  95. package/dist/resizable.js +53 -0
  96. package/dist/scroll-area.d.ts +14 -13
  97. package/dist/scroll-area.js +26 -7
  98. package/dist/select.d.ts +15 -64
  99. package/dist/select.js +4 -4
  100. package/dist/separator.d.ts +1 -7
  101. package/dist/separator.js +1 -1
  102. package/dist/sidebar.d.ts +29 -126
  103. package/dist/sidebar.js +14 -14
  104. package/dist/skeleton.d.ts +1 -6
  105. package/dist/slider.d.ts +1 -14
  106. package/dist/slider.js +5 -5
  107. package/dist/spinner.d.ts +8 -6
  108. package/dist/spinner.js +24 -6
  109. package/dist/styles.css +575 -182
  110. package/dist/switch.d.ts +2 -9
  111. package/dist/switch.js +6 -6
  112. package/dist/table.d.ts +14 -34
  113. package/dist/table.js +40 -9
  114. package/dist/tabs.d.ts +5 -22
  115. package/dist/tabs.js +3 -3
  116. package/dist/textarea.d.ts +3 -12
  117. package/dist/textarea.js +1 -1
  118. package/dist/toast.d.ts +13 -39
  119. package/dist/toast.js +4 -4
  120. package/dist/toggle-group.d.ts +3 -19
  121. package/dist/toggle-group.js +16 -10
  122. package/dist/toggle.d.ts +3 -11
  123. package/dist/toggle.js +11 -6
  124. package/dist/tooltip.d.ts +6 -24
  125. package/dist/tooltip.js +10 -6
  126. package/dist/typewriter.d.ts +1 -14
  127. package/dist/video-text.d.ts +25 -0
  128. package/dist/video-text.js +147 -0
  129. package/package.json +57 -51
package/dist/menu.js CHANGED
@@ -33,7 +33,7 @@ function MenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOf
33
33
  sideOffset,
34
34
  children: /* @__PURE__ */ jsx(Menu$1.Popup, {
35
35
  "data-slot": "menu-content",
36
- className: cn("motion-pop-md ring-contrast/10 bg-elevated text-contrast z-50 max-h-(--available-height) max-w-(--available-width) w-auto min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 outline-hidden data-closed:overflow-hidden", className),
36
+ className: cn("motion-pop-md ring-contrast/10 bg-elevated text-contrast z-50 max-h-(--available-height) max-w-(--available-width) w-auto min-w-32 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 outline-hidden data-closed:overflow-hidden", className),
37
37
  finalFocus: resolveFinalFocus(restoreFocusOnClose, finalFocus),
38
38
  ...props
39
39
  })
@@ -58,7 +58,7 @@ function MenuItem({ className, inset, variant = "default", ...props }) {
58
58
  "data-slot": "menu-item",
59
59
  "data-inset": inset,
60
60
  "data-variant": variant,
61
- className: cn("focus:bg-primary focus:text-white data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-white group/menu-item relative flex cursor-clickable items-center gap-1.5 rounded-sm px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
61
+ className: cn("focus:bg-highlight data-[variant=danger]:text-danger data-[variant=danger]:*:[svg]:text-danger data-[variant=danger]:focus:bg-danger data-[variant=danger]:focus:text-white data-[variant=danger]:focus:**:text-white group/menu-item relative flex cursor-clickable items-center gap-1.5 rounded-sm px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-30 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
62
62
  ...props
63
63
  });
64
64
  }
@@ -72,7 +72,7 @@ function MenuSubTrigger({ className, inset, children, ...props }) {
72
72
  return /* @__PURE__ */ jsxs(Menu$1.SubmenuTrigger, {
73
73
  "data-slot": "menu-sub-trigger",
74
74
  "data-inset": inset,
75
- className: cn("focus:bg-primary focus:text-white focus:**:text-white data-popup-open:bg-primary data-popup-open:text-white flex cursor-clickable items-center gap-1.5 rounded-sm px-1.5 py-1 text-sm outline-hidden select-none data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
75
+ className: cn("focus:bg-highlight data-popup-open:bg-highlight flex cursor-clickable items-center gap-1.5 rounded-sm px-1.5 py-1 text-sm outline-hidden select-none data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
76
76
  ...props,
77
77
  children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })]
78
78
  });
@@ -92,7 +92,7 @@ function MenuCheckboxItem({ className, children, checked, inset, ...props }) {
92
92
  return /* @__PURE__ */ jsxs(Menu$1.CheckboxItem, {
93
93
  "data-slot": "menu-checkbox-item",
94
94
  "data-inset": inset,
95
- className: cn("focus:bg-primary focus:text-white focus:**:text-white relative flex cursor-clickable items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
95
+ className: cn("focus:bg-highlight relative flex cursor-clickable items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-30 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
96
96
  checked,
97
97
  ...props,
98
98
  children: [/* @__PURE__ */ jsx("span", {
@@ -112,7 +112,7 @@ function MenuRadioItem({ className, children, inset, ...props }) {
112
112
  return /* @__PURE__ */ jsxs(Menu$1.RadioItem, {
113
113
  "data-slot": "menu-radio-item",
114
114
  "data-inset": inset,
115
- className: cn("focus:bg-primary focus:text-white focus:**:text-white relative flex cursor-clickable items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
115
+ className: cn("focus:bg-highlight relative flex cursor-clickable items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-30 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
116
116
  ...props,
117
117
  children: [/* @__PURE__ */ jsx("span", {
118
118
  "data-slot": "menu-radio-item-indicator",
@@ -124,14 +124,14 @@ function MenuRadioItem({ className, children, inset, ...props }) {
124
124
  function MenuSeparator({ className, ...props }) {
125
125
  return /* @__PURE__ */ jsx(Menu$1.Separator, {
126
126
  "data-slot": "menu-separator",
127
- className: cn("bg-line -mx-1 my-1 h-px", className),
127
+ className: cn("bg-contour -mx-1 my-1 h-px", className),
128
128
  ...props
129
129
  });
130
130
  }
131
131
  function MenuShortcut({ className, ...props }) {
132
132
  return /* @__PURE__ */ jsx("span", {
133
133
  "data-slot": "menu-shortcut",
134
- className: cn("text-muted group-focus/menu-item:text-white ml-auto text-xs tracking-widest", className),
134
+ className: cn("text-muted ml-auto text-xs tracking-widest", className),
135
135
  ...props
136
136
  });
137
137
  }
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 };
package/dist/menubar.js CHANGED
@@ -7,7 +7,7 @@ import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
7
7
  function Menubar({ className, ...props }) {
8
8
  return /* @__PURE__ */ jsx(Menubar$1, {
9
9
  "data-slot": "menubar",
10
- className: cn("bg-foundation flex h-9 items-center gap-0.5 rounded-md border border-edge p-1", className),
10
+ className: cn("bg-foundation flex h-9 items-center gap-0.5 rounded-md border border-shade p-1", className),
11
11
  ...props
12
12
  });
13
13
  }
@@ -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 };
@@ -26,7 +26,7 @@ function PaginationItem(props) {
26
26
  }
27
27
  function PaginationLink({ className, isActive, disabled, size = "icon", ...props }) {
28
28
  return /* @__PURE__ */ jsx(Button, {
29
- variant: isActive ? "outline" : "ghost",
29
+ variant: isActive ? "default" : "ghost",
30
30
  size,
31
31
  className: cn(disabled && "pointer-events-none opacity-50", className),
32
32
  render: /* @__PURE__ */ jsx("a", {
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 };
package/dist/popover.js CHANGED
@@ -46,7 +46,7 @@ function PopoverContent({ className, positionerClassName, align = "center", alig
46
46
  className: cn("isolate z-50", positionerClassName),
47
47
  children: /* @__PURE__ */ jsx(Popover$1.Popup, {
48
48
  "data-slot": "popover-content",
49
- className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
49
+ className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 flex w-72 flex-col gap-2.5 rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
50
50
  finalFocus: resolveFinalFocus(restoreFocusOnClose, finalFocus),
51
51
  ...props
52
52
  })
@@ -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 };
@@ -38,7 +38,7 @@ function PreviewCardContent({ className, positionerClassName, side = "bottom", s
38
38
  className: cn("isolate z-50", positionerClassName),
39
39
  children: /* @__PURE__ */ jsx(PreviewCard$1.Popup, {
40
40
  "data-slot": "preview-card-content",
41
- className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 w-64 origin-(--transform-origin) rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
41
+ className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 w-64 rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
42
42
  ...props
43
43
  })
44
44
  }) });
@@ -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 };
package/dist/progress.js CHANGED
@@ -14,7 +14,7 @@ function Progress({ className, children, value = null, ...props }) {
14
14
  }
15
15
  function ProgressTrack({ className, ...props }) {
16
16
  return /* @__PURE__ */ jsx(Progress$1.Track, {
17
- className: cn("bg-secondary relative flex h-1 w-full items-center overflow-x-hidden rounded-full", className),
17
+ className: cn("bg-secondary relative flex h-3 w-full items-center overflow-x-hidden rounded-full", className),
18
18
  "data-slot": "progress-track",
19
19
  ...props
20
20
  });
@@ -35,7 +35,7 @@ function ProgressLabel({ className, ...props }) {
35
35
  }
36
36
  function ProgressValue({ className, ...props }) {
37
37
  return /* @__PURE__ */ jsx(Progress$1.Value, {
38
- className: cn("text-muted ml-auto text-sm tabular-nums", className),
38
+ className: cn("text-muted ms-auto text-sm tabular-nums", className),
39
39
  "data-slot": "progress-value",
40
40
  ...props
41
41
  });
@@ -1,17 +1,10 @@
1
1
  import { Radio } from "./radio.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
  import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
5
-
6
4
  //#region src/radio-group.d.ts
7
5
  type RadioGroupProps = React.ComponentProps<typeof RadioGroup$1>;
8
6
  type RadioGroupItemProps = React.ComponentProps<typeof Radio>;
9
- declare function RadioGroup({
10
- className,
11
- ...props
12
- }: RadioGroupProps): _$react_jsx_runtime0.JSX.Element;
13
- declare function RadioGroupItem({
14
- ...props
15
- }: RadioGroupItemProps): _$react_jsx_runtime0.JSX.Element;
7
+ declare function RadioGroup({ className, ...props }: RadioGroupProps): React.JSX.Element;
8
+ declare function RadioGroupItem({ ...props }: RadioGroupItemProps): React.JSX.Element;
16
9
  //#endregion
17
10
  export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps };
@@ -7,7 +7,7 @@ import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
7
7
  function RadioGroup({ className, ...props }) {
8
8
  return /* @__PURE__ */ jsx(RadioGroup$1, {
9
9
  "data-slot": "radio-group",
10
- className: cn("grid w-full gap-2", className),
10
+ className: cn("grid w-full gap-3", className),
11
11
  ...props
12
12
  });
13
13
  }
package/dist/radio.d.ts CHANGED
@@ -1,17 +1,9 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { Radio as Radio$1 } from "@base-ui/react/radio";
4
-
5
3
  //#region src/radio.d.ts
6
4
  type RadioProps = React.ComponentProps<typeof Radio$1.Root>;
7
5
  type RadioIndicatorProps = React.ComponentProps<typeof Radio$1.Indicator>;
8
- declare function Radio({
9
- className,
10
- ...props
11
- }: RadioProps): _$react_jsx_runtime0.JSX.Element;
12
- declare function RadioIndicator({
13
- className,
14
- ...props
15
- }: RadioIndicatorProps): _$react_jsx_runtime0.JSX.Element;
6
+ declare function Radio({ className, ...props }: RadioProps): React.JSX.Element;
7
+ declare function RadioIndicator({ className, ...props }: RadioIndicatorProps): React.JSX.Element;
16
8
  //#endregion
17
9
  export { Radio, RadioIndicator, type RadioIndicatorProps, type RadioProps };
package/dist/radio.js CHANGED
@@ -6,7 +6,7 @@ import { Radio as Radio$1 } from "@base-ui/react/radio";
6
6
  function Radio({ className, ...props }) {
7
7
  return /* @__PURE__ */ jsx(Radio$1.Root, {
8
8
  "data-slot": "radio",
9
- className: cn("cursor-clickable border-edge dark:bg-edge/30 data-checked:bg-primary data-checked:text-white data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/30 group/radio peer relative flex aspect-square size-4 shrink-0 rounded-full border outline-hidden after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3", className),
9
+ className: cn("cursor-clickable bg-shade border-transparent not-data-disabled:data-unchecked:hover:border-focus not-data-disabled:data-unchecked:group-hover/field:border-focus data-checked:bg-primary data-checked:text-white data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-danger focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-danger/30 group/radio peer relative flex aspect-square size-6 shrink-0 rounded-full border motion-color outline-hidden group-has-disabled/field:opacity-30 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 data-disabled:pointer-events-none data-disabled:opacity-30 aria-invalid:ring-3", className),
10
10
  ...props,
11
11
  children: /* @__PURE__ */ jsx(RadioIndicator, {})
12
12
  });
@@ -14,7 +14,7 @@ function Radio({ className, ...props }) {
14
14
  function RadioIndicator({ className, ...props }) {
15
15
  return /* @__PURE__ */ jsx(Radio$1.Indicator, {
16
16
  "data-slot": "radio-indicator",
17
- className: cn("group-aria-invalid/radio:text-destructive text-white absolute inset-0 flex items-center justify-center data-unchecked:opacity-0", "after:block after:size-2 after:rounded-full after:bg-current", className),
17
+ className: cn("text-white absolute inset-0 flex items-center justify-center data-unchecked:opacity-0", "after:block after:size-3 after:rounded-full after:bg-current", className),
18
18
  ...props
19
19
  });
20
20
  }
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ import { Group, Panel, Separator } from "react-resizable-panels";
3
+ //#region src/resizable.d.ts
4
+ type ResizablePanelGroupProps = Omit<React.ComponentProps<typeof Group>, "elementRef"> & {
5
+ ref?: React.Ref<HTMLDivElement>;
6
+ };
7
+ type ResizablePanelProps = Omit<React.ComponentProps<typeof Panel>, "elementRef"> & {
8
+ ref?: React.Ref<HTMLDivElement>;
9
+ };
10
+ type ResizableHandleProps = Omit<React.ComponentProps<typeof Separator>, "elementRef"> & {
11
+ ref?: React.Ref<HTMLDivElement>;
12
+ /**
13
+ * Show a grip on the line, a visible hint that it can be dragged.
14
+ *
15
+ * @default false
16
+ */
17
+ grip?: boolean;
18
+ };
19
+ /**
20
+ * A row of panels the user resizes by dragging the handles between them, or
21
+ * from the keyboard once a handle has focus. Pass `orientation="vertical"` to
22
+ * stack them instead.
23
+ *
24
+ * The group fills its parent: it sets its own `width` and `height` to 100%
25
+ * inline, so a height class on the group has no effect. Size the parent, or
26
+ * pass `style`.
27
+ */
28
+ declare function ResizablePanelGroup({ ref, ...props }: ResizablePanelGroupProps): React.JSX.Element;
29
+ /**
30
+ * One resizable region. Numeric sizes are pixels; use strings for
31
+ * percentages (`defaultSize="25%"`). `className` lands on the panel's inner
32
+ * element, which scrolls when the content overflows.
33
+ */
34
+ declare function ResizablePanel({ ref, ...props }: ResizablePanelProps): React.JSX.Element;
35
+ /**
36
+ * The line between two panels. It lights up while the pointer is close
37
+ * enough to drag it: the library hit-tests a zone wider than the line itself
38
+ * and reports it in `data-separator` (`hover`, `active`, `focus`, `disabled`),
39
+ * which CSS `:hover` on a 1px line would miss.
40
+ */
41
+ declare function ResizableHandle({ className, grip, ref, ...props }: ResizableHandleProps): React.JSX.Element;
42
+ //#endregion
43
+ export { ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { cn } from "./lib/utils.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Group, Panel, Separator } from "react-resizable-panels";
5
+ //#region src/resizable.tsx
6
+ /**
7
+ * A row of panels the user resizes by dragging the handles between them, or
8
+ * from the keyboard once a handle has focus. Pass `orientation="vertical"` to
9
+ * stack them instead.
10
+ *
11
+ * The group fills its parent: it sets its own `width` and `height` to 100%
12
+ * inline, so a height class on the group has no effect. Size the parent, or
13
+ * pass `style`.
14
+ */
15
+ function ResizablePanelGroup({ ref, ...props }) {
16
+ return /* @__PURE__ */ jsx(Group, {
17
+ "data-slot": "resizable-panel-group",
18
+ elementRef: ref,
19
+ ...props
20
+ });
21
+ }
22
+ /**
23
+ * One resizable region. Numeric sizes are pixels; use strings for
24
+ * percentages (`defaultSize="25%"`). `className` lands on the panel's inner
25
+ * element, which scrolls when the content overflows.
26
+ */
27
+ function ResizablePanel({ ref, ...props }) {
28
+ return /* @__PURE__ */ jsx(Panel, {
29
+ "data-slot": "resizable-panel",
30
+ elementRef: ref,
31
+ ...props
32
+ });
33
+ }
34
+ /**
35
+ * The line between two panels. It lights up while the pointer is close
36
+ * enough to drag it: the library hit-tests a zone wider than the line itself
37
+ * and reports it in `data-separator` (`hover`, `active`, `focus`, `disabled`),
38
+ * which CSS `:hover` on a 1px line would miss.
39
+ */
40
+ function ResizableHandle({ className, grip = false, ref, ...props }) {
41
+ return /* @__PURE__ */ jsx(Separator, {
42
+ "data-slot": "resizable-handle",
43
+ elementRef: ref,
44
+ className: cn("group/resizable-handle bg-contour z-10 flex items-center justify-center motion-color outline-hidden focus-visible:ring-3 focus-visible:ring-focus/50 data-[separator=active]:bg-focus data-[separator=hover]:bg-focus data-[separator=disabled]:pointer-events-none aria-[orientation=horizontal]:h-px aria-[orientation=vertical]:w-px", className),
45
+ ...props,
46
+ children: grip && /* @__PURE__ */ jsx("div", {
47
+ "data-slot": "resizable-handle-grip",
48
+ className: "bg-shade h-6 w-1 shrink-0 rounded-full motion-color group-data-[separator=active]/resizable-handle:bg-focus group-data-[separator=hover]/resizable-handle:bg-focus group-data-[separator=disabled]/resizable-handle:opacity-30 group-aria-[orientation=horizontal]/resizable-handle:h-1 group-aria-[orientation=horizontal]/resizable-handle:w-6"
49
+ })
50
+ });
51
+ }
52
+ //#endregion
53
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -1,19 +1,20 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
4
-
5
3
  //#region src/scroll-area.d.ts
6
- type ScrollAreaProps = React.ComponentProps<typeof ScrollArea$1.Root>;
7
- declare function ScrollArea({
8
- className,
9
- children,
10
- ...props
11
- }: ScrollAreaProps): _$react_jsx_runtime0.JSX.Element;
4
+ type ScrollAreaProps = React.ComponentProps<typeof ScrollArea$1.Root> & {
5
+ /**
6
+ * Fade the content out toward any edge that has more to scroll to. On by
7
+ * default; the fade size follows `--scroll-area-fade` (default `2.5rem`).
8
+ */
9
+ fade?: boolean;
10
+ };
12
11
  type ScrollBarProps = React.ComponentProps<typeof ScrollArea$1.Scrollbar>;
13
- declare function ScrollBar({
14
- className,
15
- orientation,
16
- ...props
17
- }: ScrollBarProps): _$react_jsx_runtime0.JSX.Element;
12
+ /**
13
+ * A scrollable region with styled scrollbars. Both scrollbars are built in:
14
+ * Base UI only mounts one when its axis overflows, so pass content and the
15
+ * right bars appear. They fade in while the area is hovered or scrolling.
16
+ */
17
+ declare function ScrollArea({ className, children, fade, ...props }: ScrollAreaProps): React.JSX.Element;
18
+ declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): React.JSX.Element;
18
19
  //#endregion
19
20
  export { ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps };