@waveso/ui 0.8.0 → 0.9.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 (90) hide show
  1. package/dist/accordion.d.ts +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.d.ts +5 -1
  4. package/dist/action-bar.js +5 -1
  5. package/dist/alert-dialog.d.ts +4 -2
  6. package/dist/alert-dialog.js +8 -4
  7. package/dist/alert.d.ts +1 -1
  8. package/dist/alert.js +1 -1
  9. package/dist/animate.d.ts +14 -4
  10. package/dist/autocomplete.d.ts +1 -1
  11. package/dist/autocomplete.js +4 -4
  12. package/dist/avatar.d.ts +1 -1
  13. package/dist/badge.d.ts +2 -2
  14. package/dist/breadcrumb.d.ts +1 -1
  15. package/dist/button-group.d.ts +3 -3
  16. package/dist/button-group.js +1 -0
  17. package/dist/button.d.ts +3 -3
  18. package/dist/button.js +3 -1
  19. package/dist/card.d.ts +1 -1
  20. package/dist/checkbox.d.ts +1 -1
  21. package/dist/checkbox.js +1 -1
  22. package/dist/collapsible.d.ts +1 -1
  23. package/dist/combobox.d.ts +8 -7
  24. package/dist/combobox.js +2 -2
  25. package/dist/context-menu.d.ts +1 -1
  26. package/dist/context-menu.js +2 -2
  27. package/dist/dialog.d.ts +4 -7
  28. package/dist/dialog.js +4 -8
  29. package/dist/direction.d.ts +7 -2
  30. package/dist/drawer.d.ts +6 -1
  31. package/dist/drawer.js +31 -28
  32. package/dist/encrypted-text.d.ts +1 -1
  33. package/dist/form.d.ts +1 -1
  34. package/dist/infinite-scroll.d.ts +4 -5
  35. package/dist/infinite-scroll.js +2 -1
  36. package/dist/input-group.d.ts +3 -3
  37. package/dist/input-group.js +3 -3
  38. package/dist/input-otp.d.ts +1 -1
  39. package/dist/input-otp.js +1 -1
  40. package/dist/input.d.ts +3 -2
  41. package/dist/input.js +1 -1
  42. package/dist/item.d.ts +2 -2
  43. package/dist/item.js +2 -2
  44. package/dist/kbd.d.ts +1 -0
  45. package/dist/kbd.js +1 -0
  46. package/dist/label.d.ts +1 -1
  47. package/dist/lib/internal-icons.d.ts +2 -8
  48. package/dist/lib/internal-icons.js +3 -10
  49. package/dist/masonry.d.ts +1 -1
  50. package/dist/menu.d.ts +1 -1
  51. package/dist/menu.js +2 -2
  52. package/dist/menubar.d.ts +1 -1
  53. package/dist/pagination.d.ts +1 -1
  54. package/dist/popover.d.ts +8 -1
  55. package/dist/popover.js +2 -2
  56. package/dist/preview-card.d.ts +5 -2
  57. package/dist/preview-card.js +2 -2
  58. package/dist/progress.d.ts +1 -1
  59. package/dist/progress.js +3 -3
  60. package/dist/radio-group.d.ts +1 -1
  61. package/dist/radio.d.ts +1 -1
  62. package/dist/radio.js +1 -1
  63. package/dist/scroll-area.d.ts +1 -1
  64. package/dist/scroll-area.js +1 -1
  65. package/dist/select.d.ts +1 -1
  66. package/dist/select.js +1 -1
  67. package/dist/separator.d.ts +1 -1
  68. package/dist/sidebar.d.ts +73 -50
  69. package/dist/sidebar.js +2 -2
  70. package/dist/skeleton.d.ts +2 -1
  71. package/dist/skeleton.js +1 -0
  72. package/dist/slider.d.ts +1 -1
  73. package/dist/spinner.d.ts +2 -1
  74. package/dist/spinner.js +1 -0
  75. package/dist/styles.css +13 -9
  76. package/dist/switch.d.ts +1 -1
  77. package/dist/switch.js +1 -1
  78. package/dist/table.d.ts +1 -1
  79. package/dist/tabs.d.ts +1 -1
  80. package/dist/tabs.js +1 -1
  81. package/dist/textarea.d.ts +1 -1
  82. package/dist/textarea.js +1 -1
  83. package/dist/toast.d.ts +6 -5
  84. package/dist/toast.js +4 -4
  85. package/dist/toggle-group.d.ts +1 -1
  86. package/dist/toggle-group.js +6 -6
  87. package/dist/toggle.d.ts +1 -1
  88. package/dist/toggle.js +1 -1
  89. package/dist/tooltip.d.ts +1 -1
  90. package/package.json +1 -1
package/dist/sidebar.d.ts CHANGED
@@ -44,18 +44,7 @@ type SidebarContextProps = {
44
44
  toggleSidebar: () => void;
45
45
  };
46
46
  declare function useSidebar(): SidebarContextProps;
47
- declare function SidebarProvider({
48
- defaultOpen,
49
- open: openProp,
50
- onOpenChange: setOpenProp,
51
- persist,
52
- keyboardShortcut,
53
- mobileBreakpoint,
54
- className,
55
- style,
56
- children,
57
- ...props
58
- }: React.ComponentProps<"div"> & {
47
+ type SidebarProviderProps = React.ComponentProps<"div"> & {
59
48
  defaultOpen?: boolean;
60
49
  open?: boolean;
61
50
  onOpenChange?: (open: boolean) => void;
@@ -74,7 +63,24 @@ declare function SidebarProvider({
74
63
  persist?: (open: boolean) => void; /** Key for Cmd/Ctrl+key toggle shortcut. Defaults to "b". Pass `false` to disable. */
75
64
  keyboardShortcut?: string | false; /** Breakpoint (px) below which the sidebar uses a mobile drawer. Defaults to 768. */
76
65
  mobileBreakpoint?: number;
77
- }): _$react_jsx_runtime0.JSX.Element;
66
+ };
67
+ declare function SidebarProvider({
68
+ defaultOpen,
69
+ open: openProp,
70
+ onOpenChange: setOpenProp,
71
+ persist,
72
+ keyboardShortcut,
73
+ mobileBreakpoint,
74
+ className,
75
+ style,
76
+ children,
77
+ ...props
78
+ }: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
79
+ type SidebarProps = React.ComponentProps<"div"> & {
80
+ side?: "left" | "right";
81
+ variant?: "sidebar" | "floating" | "inset";
82
+ collapsible?: "offcanvas" | "icon" | "none";
83
+ };
78
84
  declare function Sidebar({
79
85
  side,
80
86
  variant,
@@ -82,75 +88,89 @@ declare function Sidebar({
82
88
  className,
83
89
  children,
84
90
  ...props
85
- }: React.ComponentProps<"div"> & {
86
- side?: "left" | "right";
87
- variant?: "sidebar" | "floating" | "inset";
88
- collapsible?: "offcanvas" | "icon" | "none";
89
- }): _$react_jsx_runtime0.JSX.Element;
91
+ }: SidebarProps): _$react_jsx_runtime0.JSX.Element;
92
+ type SidebarTriggerProps = React.ComponentProps<typeof Button>;
90
93
  declare function SidebarTrigger({
91
94
  className,
92
95
  onClick,
93
96
  ...props
94
- }: React.ComponentProps<typeof Button>): _$react_jsx_runtime0.JSX.Element;
97
+ }: SidebarTriggerProps): _$react_jsx_runtime0.JSX.Element;
98
+ type SidebarRailProps = React.ComponentProps<"button">;
95
99
  declare function SidebarRail({
96
100
  className,
97
101
  ...props
98
- }: React.ComponentProps<"button">): _$react_jsx_runtime0.JSX.Element;
102
+ }: SidebarRailProps): _$react_jsx_runtime0.JSX.Element;
103
+ type SidebarInsetProps = React.ComponentProps<"main">;
99
104
  declare function SidebarInset({
100
105
  className,
101
106
  ...props
102
- }: React.ComponentProps<"main">): _$react_jsx_runtime0.JSX.Element;
107
+ }: SidebarInsetProps): _$react_jsx_runtime0.JSX.Element;
108
+ type SidebarInputProps = React.ComponentProps<typeof Input>;
103
109
  declare function SidebarInput({
104
110
  className,
105
111
  ...props
106
- }: React.ComponentProps<typeof Input>): _$react_jsx_runtime0.JSX.Element;
112
+ }: SidebarInputProps): _$react_jsx_runtime0.JSX.Element;
113
+ type SidebarHeaderProps = React.ComponentProps<"div">;
107
114
  declare function SidebarHeader({
108
115
  className,
109
116
  ...props
110
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
117
+ }: SidebarHeaderProps): _$react_jsx_runtime0.JSX.Element;
118
+ type SidebarFooterProps = React.ComponentProps<"div">;
111
119
  declare function SidebarFooter({
112
120
  className,
113
121
  ...props
114
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
122
+ }: SidebarFooterProps): _$react_jsx_runtime0.JSX.Element;
123
+ type SidebarSeparatorProps = React.ComponentProps<typeof Separator>;
115
124
  declare function SidebarSeparator({
116
125
  className,
117
126
  ...props
118
- }: React.ComponentProps<typeof Separator>): _$react_jsx_runtime0.JSX.Element;
127
+ }: SidebarSeparatorProps): _$react_jsx_runtime0.JSX.Element;
128
+ type SidebarContentProps = React.ComponentProps<"div">;
119
129
  declare function SidebarContent({
120
130
  className,
121
131
  style,
122
132
  ...props
123
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
133
+ }: SidebarContentProps): _$react_jsx_runtime0.JSX.Element;
134
+ type SidebarGroupProps = React.ComponentProps<"div">;
124
135
  declare function SidebarGroup({
125
136
  className,
126
137
  ...props
127
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
138
+ }: SidebarGroupProps): _$react_jsx_runtime0.JSX.Element;
139
+ type SidebarGroupLabelProps = useRender.ComponentProps<"div"> & React.ComponentProps<"div">;
128
140
  declare function SidebarGroupLabel({
129
141
  className,
130
142
  render,
131
143
  ...props
132
- }: useRender.ComponentProps<"div"> & React.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
144
+ }: SidebarGroupLabelProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
145
+ type SidebarGroupActionProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button">;
133
146
  declare function SidebarGroupAction({
134
147
  className,
135
148
  render,
136
149
  ...props
137
- }: useRender.ComponentProps<"button"> & React.ComponentProps<"button">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
150
+ }: SidebarGroupActionProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
151
+ type SidebarGroupContentProps = React.ComponentProps<"div">;
138
152
  declare function SidebarGroupContent({
139
153
  className,
140
154
  ...props
141
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
155
+ }: SidebarGroupContentProps): _$react_jsx_runtime0.JSX.Element;
156
+ type SidebarMenuProps = React.ComponentProps<"ul">;
142
157
  declare function SidebarMenu({
143
158
  className,
144
159
  ...props
145
- }: React.ComponentProps<"ul">): _$react_jsx_runtime0.JSX.Element;
160
+ }: SidebarMenuProps): _$react_jsx_runtime0.JSX.Element;
161
+ type SidebarMenuItemProps = React.ComponentProps<"li">;
146
162
  declare function SidebarMenuItem({
147
163
  className,
148
164
  ...props
149
- }: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
165
+ }: SidebarMenuItemProps): _$react_jsx_runtime0.JSX.Element;
150
166
  declare const sidebarMenuButtonVariants: (props?: ({
151
167
  variant?: "default" | "outline" | null | undefined;
152
168
  size?: "default" | "sm" | "lg" | null | undefined;
153
169
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
170
+ type SidebarMenuButtonProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
171
+ isActive?: boolean;
172
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
173
+ } & VariantProps<typeof sidebarMenuButtonVariants>;
154
174
  declare function SidebarMenuButton({
155
175
  render,
156
176
  isActive,
@@ -159,46 +179,49 @@ declare function SidebarMenuButton({
159
179
  tooltip,
160
180
  className,
161
181
  ...props
162
- }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
163
- isActive?: boolean;
164
- tooltip?: string | React.ComponentProps<typeof TooltipContent>;
165
- } & VariantProps<typeof sidebarMenuButtonVariants>): _$react_jsx_runtime0.JSX.Element;
182
+ }: SidebarMenuButtonProps): _$react_jsx_runtime0.JSX.Element;
183
+ type SidebarMenuActionProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
184
+ showOnHover?: boolean;
185
+ };
166
186
  declare function SidebarMenuAction({
167
187
  className,
168
188
  render,
169
189
  showOnHover,
170
190
  ...props
171
- }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
172
- showOnHover?: boolean;
173
- }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
191
+ }: SidebarMenuActionProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
192
+ type SidebarMenuBadgeProps = React.ComponentProps<"div">;
174
193
  declare function SidebarMenuBadge({
175
194
  className,
176
195
  ...props
177
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
196
+ }: SidebarMenuBadgeProps): _$react_jsx_runtime0.JSX.Element;
197
+ type SidebarMenuSkeletonProps = React.ComponentProps<"div"> & {
198
+ showIcon?: boolean;
199
+ };
178
200
  declare function SidebarMenuSkeleton({
179
201
  className,
180
202
  showIcon,
181
203
  ...props
182
- }: React.ComponentProps<"div"> & {
183
- showIcon?: boolean;
184
- }): _$react_jsx_runtime0.JSX.Element;
204
+ }: SidebarMenuSkeletonProps): _$react_jsx_runtime0.JSX.Element;
205
+ type SidebarMenuSubProps = React.ComponentProps<"ul">;
185
206
  declare function SidebarMenuSub({
186
207
  className,
187
208
  ...props
188
- }: React.ComponentProps<"ul">): _$react_jsx_runtime0.JSX.Element;
209
+ }: SidebarMenuSubProps): _$react_jsx_runtime0.JSX.Element;
210
+ type SidebarMenuSubItemProps = React.ComponentProps<"li">;
189
211
  declare function SidebarMenuSubItem({
190
212
  className,
191
213
  ...props
192
- }: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
214
+ }: SidebarMenuSubItemProps): _$react_jsx_runtime0.JSX.Element;
215
+ type SidebarMenuSubButtonProps = useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
216
+ size?: "sm" | "md";
217
+ isActive?: boolean;
218
+ };
193
219
  declare function SidebarMenuSubButton({
194
220
  render,
195
221
  size,
196
222
  isActive,
197
223
  className,
198
224
  ...props
199
- }: useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
200
- size?: "sm" | "md";
201
- isActive?: boolean;
202
- }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
225
+ }: SidebarMenuSubButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
203
226
  //#endregion
204
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, useSidebar };
227
+ export { Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupAction, type SidebarGroupActionProps, SidebarGroupContent, type SidebarGroupContentProps, SidebarGroupLabel, type SidebarGroupLabelProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInput, type SidebarInputProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, type SidebarMenuBadgeProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, type SidebarRailProps, SidebarSeparator, type SidebarSeparatorProps, SidebarTrigger, type SidebarTriggerProps, cookiePersist, localStoragePersist, sidebarMenuButtonVariants, useSidebar };
package/dist/sidebar.js CHANGED
@@ -184,7 +184,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
184
184
  "aria-expanded": open,
185
185
  variant: "ghost",
186
186
  size: "icon-sm",
187
- className: cn(className),
187
+ className,
188
188
  onClick: (event) => {
189
189
  onClick?.(event);
190
190
  toggleSidebar();
@@ -397,4 +397,4 @@ function SidebarMenuSubButton({ render, size = "md", isActive = false, className
397
397
  });
398
398
  }
399
399
  //#endregion
400
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, useSidebar };
400
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, sidebarMenuButtonVariants, useSidebar };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
3
 
3
4
  //#region src/skeleton.d.ts
@@ -7,4 +8,4 @@ declare function Skeleton({
7
8
  ...props
8
9
  }: SkeletonProps): _$react_jsx_runtime0.JSX.Element;
9
10
  //#endregion
10
- export { Skeleton };
11
+ export { Skeleton, SkeletonProps };
package/dist/skeleton.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { cn } from "./lib/utils.js";
2
+ import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/skeleton.tsx
4
5
  function Skeleton({ className, ...props }) {
package/dist/slider.d.ts CHANGED
@@ -25,4 +25,4 @@ declare function Slider({
25
25
  ...props
26
26
  }: SliderProps): _$react_jsx_runtime0.JSX.Element;
27
27
  //#endregion
28
- export { Slider };
28
+ export { Slider, SliderProps };
package/dist/spinner.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
3
 
3
4
  //#region src/spinner.d.ts
@@ -7,4 +8,4 @@ declare function Spinner({
7
8
  ...props
8
9
  }: SpinnerProps): _$react_jsx_runtime0.JSX.Element;
9
10
  //#endregion
10
- export { Spinner };
11
+ export { Spinner, SpinnerProps };
package/dist/spinner.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { cn } from "./lib/utils.js";
2
2
  import { LoaderIcon } from "./lib/internal-icons.js";
3
+ import "react";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/spinner.tsx
5
6
  function Spinner({ className, ...props }) {
package/dist/styles.css CHANGED
@@ -17,8 +17,10 @@
17
17
  * file's location in node_modules/@waveso/ui/dist/. */
18
18
  @source "./";
19
19
 
20
- /* Tailwind v4 `dark:` variant — applied when any ancestor has `.dark`. */
21
- @custom-variant dark (&:is(.dark *));
20
+ /* Tailwind v4 `dark:` variant — applies to the `.dark` element itself and any
21
+ * descendant. `:where()` keeps utilities at their normal (zero-added) specificity
22
+ * so the cascade is decided by source order, like every other Tailwind utility. */
23
+ @custom-variant dark (&:where(.dark, .dark *));
22
24
 
23
25
  /* ---------------------------------------------------------------------------
24
26
  * Light theme (default)
@@ -164,9 +166,11 @@
164
166
  --info: var(--wave-500); /* the one blue — Wave Blue (= --primary / --focus) */
165
167
 
166
168
  /* Presence */
167
- --presence-online: oklch(0.710 0.185 155); /* = success colour */
168
- --presence-away: oklch(0.830 0.156 93); /* = warning colour */
169
- --presence-busy: oklch(0.620 0.200 25); /* = destructive colour */
169
+ /* Presence dots reuse the status colours aliased, not duplicated, so they
170
+ * stay in sync (and follow a consumer's `--success`/etc. override). */
171
+ --presence-online: var(--success);
172
+ --presence-away: var(--warning);
173
+ --presence-busy: var(--destructive);
170
174
  --presence-invisible: var(--foundation); /* invisible = the page itself; pair with a border so the dot reads as a hollow ring */
171
175
 
172
176
  /* Radius */
@@ -253,10 +257,10 @@
253
257
  --info: var(--wave-400); /* brighter Wave Blue for legible text-info on dark surfaces */
254
258
 
255
259
  /* Presence */
256
- --presence-online: oklch(0.735 0.185 155); /* brighter on dark, like status */
257
- --presence-away: oklch(0.850 0.156 93);
258
- --presence-busy: oklch(0.630 0.200 25);
259
- --presence-invisible: var(--foundation); /* re-declared so it re-resolves to the dark foundation */
260
+ --presence-online: var(--success);
261
+ --presence-away: var(--warning);
262
+ --presence-busy: var(--destructive);
263
+ --presence-invisible: var(--foundation); /* re-resolves to the dark foundation */
260
264
  }
261
265
 
262
266
  /* ---------------------------------------------------------------------------
package/dist/switch.d.ts CHANGED
@@ -15,4 +15,4 @@ declare function Switch({
15
15
  ...props
16
16
  }: SwitchProps): _$react_jsx_runtime0.JSX.Element;
17
17
  //#endregion
18
- export { Switch, switchVariants };
18
+ export { Switch, SwitchProps, switchVariants };
package/dist/switch.js CHANGED
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { cva } from "class-variance-authority";
6
6
  import { Switch as Switch$1 } from "@base-ui/react/switch";
7
7
  //#region src/switch.tsx
8
- const switchVariants = cva("cursor-clickable data-checked:bg-primary data-unchecked:bg-edge focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-edge/80 peer relative inline-flex shrink-0 items-center rounded-full border border-transparent motion-color outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 aria-invalid:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50", {
8
+ const switchVariants = cva("cursor-clickable data-checked:bg-primary data-unchecked:bg-edge focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-edge/80 peer relative inline-flex shrink-0 items-center rounded-full border border-transparent motion-color outline-hidden after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 aria-invalid:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50", {
9
9
  variants: { size: {
10
10
  default: "h-[18.4px] w-[32px]",
11
11
  sm: "h-[14px] w-[24px]"
package/dist/table.d.ts CHANGED
@@ -43,4 +43,4 @@ declare function TableCaption({
43
43
  ...props
44
44
  }: TableCaptionProps): _$react_jsx_runtime0.JSX.Element;
45
45
  //#endregion
46
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
46
+ export { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps };
package/dist/tabs.d.ts CHANGED
@@ -32,4 +32,4 @@ declare function TabsContent({
32
32
  ...props
33
33
  }: TabsContentProps): _$react_jsx_runtime0.JSX.Element;
34
34
  //#endregion
35
- export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants };
35
+ export { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps, tabsListVariants };
package/dist/tabs.js CHANGED
@@ -38,7 +38,7 @@ function TabsTrigger({ className, ...props }) {
38
38
  function TabsContent({ className, ...props }) {
39
39
  return /* @__PURE__ */ jsx(Tabs$1.Panel, {
40
40
  "data-slot": "tabs-content",
41
- className: cn("flex-1 text-sm outline-none", className),
41
+ className: cn("flex-1 text-sm outline-hidden", className),
42
42
  ...props
43
43
  });
44
44
  }
@@ -13,4 +13,4 @@ declare function Textarea({
13
13
  ...props
14
14
  }: TextareaProps): _$react_jsx_runtime0.JSX.Element;
15
15
  //#endregion
16
- export { Textarea };
16
+ export { Textarea, TextareaProps };
package/dist/textarea.js CHANGED
@@ -10,7 +10,7 @@ function Textarea({ className, onChange, onValueChange, ...props }) {
10
10
  }
11
11
  return /* @__PURE__ */ jsx("textarea", {
12
12
  "data-slot": "textarea",
13
- className: cn("border-edge dark:bg-edge/30 focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none disabled:bg-edge/50 disabled:cursor-not-allowed dark:disabled:bg-edge/80 placeholder:text-soft flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-2.5 py-2 text-base transition-colors outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm", className),
13
+ className: cn("border-edge dark:bg-edge/30 focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none disabled:bg-edge/50 disabled:cursor-not-allowed dark:disabled:bg-edge/80 placeholder:text-soft flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-2.5 py-2 text-base transition-colors outline-hidden focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm", className),
14
14
  onChange: handleChange,
15
15
  ...props
16
16
  });
package/dist/toast.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
5
5
  import * as _$_base_ui_react0 from "@base-ui/react";
6
6
 
7
7
  //#region src/toast.d.ts
8
- declare const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-none select-none";
8
+ declare const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-hidden";
9
9
  declare const toastIconVariants: (props?: ({
10
10
  type?: "success" | "warning" | "loading" | "info" | "error" | null | undefined;
11
11
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
@@ -30,6 +30,9 @@ type ToasterProps = {
30
30
  timeout?: number;
31
31
  };
32
32
  type ToastProps = React.ComponentProps<typeof Toast$1.Root>;
33
+ type ToastIconProps = {
34
+ type?: ToastType;
35
+ };
33
36
  type ToastTitleProps = React.ComponentProps<typeof Toast$1.Title>;
34
37
  type ToastDescriptionProps = React.ComponentProps<typeof Toast$1.Description>;
35
38
  type ToastActionProps = React.ComponentProps<typeof Toast$1.Action>;
@@ -47,9 +50,7 @@ declare const toast: ((titleOrOptions: string | ToastOptions) => string) & {
47
50
  };
48
51
  declare function ToastIcon({
49
52
  type
50
- }: {
51
- type?: ToastType;
52
- }): _$react_jsx_runtime0.JSX.Element | null;
53
+ }: ToastIconProps): _$react_jsx_runtime0.JSX.Element | null;
53
54
  declare function Toast({
54
55
  className,
55
56
  ...props
@@ -77,4 +78,4 @@ declare function Toaster({
77
78
  timeout
78
79
  }: ToasterProps): _$react_jsx_runtime0.JSX.Element | null;
79
80
  //#endregion
80
- export { Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, type ToastOptions, ToastTitle, type ToastType, Toaster, type ToasterPosition, type ToasterProps, toast, toastIconVariants, toastManager, toastRootClass, toastViewportVariants };
81
+ export { Toast, ToastAction, type ToastActionProps, ToastClose, type ToastCloseProps, ToastDescription, type ToastDescriptionProps, ToastIcon, type ToastIconProps, type ToastOptions, type ToastProps, ToastTitle, type ToastTitleProps, type ToastType, Toaster, type ToasterPosition, type ToasterProps, toast, toastIconVariants, toastManager, toastRootClass, toastViewportVariants };
package/dist/toast.js CHANGED
@@ -6,7 +6,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { cva } from "class-variance-authority";
7
7
  import { Toast as Toast$1 } from "@base-ui/react/toast";
8
8
  //#region src/toast.tsx
9
- const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-none select-none";
9
+ const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-hidden";
10
10
  const toastIconVariants = cva("mt-0.5 size-4 shrink-0", { variants: { type: {
11
11
  loading: "text-muted animate-spin",
12
12
  success: "text-success",
@@ -14,7 +14,7 @@ const toastIconVariants = cva("mt-0.5 size-4 shrink-0", { variants: { type: {
14
14
  warning: "text-warning",
15
15
  error: "text-destructive"
16
16
  } } });
17
- const toastViewportVariants = cva("fixed z-[100] flex w-full outline-none sm:max-w-sm", {
17
+ const toastViewportVariants = cva("fixed z-[100] flex w-full outline-hidden sm:max-w-sm", {
18
18
  variants: { position: {
19
19
  "top-left": "top-4 left-4",
20
20
  "top-center": "top-4 right-0 left-0 mx-auto",
@@ -113,14 +113,14 @@ function ToastDescription({ className, ...props }) {
113
113
  function ToastAction({ className, ...props }) {
114
114
  return /* @__PURE__ */ jsx(Toast$1.Action, {
115
115
  "data-slot": "toast-action",
116
- className: cn("hover:bg-secondary inline-flex h-7 items-center rounded-md border border-line px-2.5 text-xs font-medium transition-colors outline-none focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:ring-3", className),
116
+ className: cn("hover:bg-secondary inline-flex h-7 items-center rounded-md border border-line px-2.5 text-xs font-medium transition-colors outline-hidden focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:ring-3", className),
117
117
  ...props
118
118
  });
119
119
  }
120
120
  function ToastClose({ className, children, ...props }) {
121
121
  return /* @__PURE__ */ jsx(Toast$1.Close, {
122
122
  "data-slot": "toast-close",
123
- className: cn("text-muted hover:text-contrast shrink-0 rounded-md p-0.5 transition-colors outline-none focus-visible:ring-focus/50 focus-visible:ring-3", className),
123
+ className: cn("text-muted hover:text-contrast shrink-0 rounded-md p-0.5 transition-colors outline-hidden focus-visible:ring-focus/50 focus-visible:ring-3", className),
124
124
  ...props,
125
125
  children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CloseIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
126
126
  className: "sr-only",
@@ -27,4 +27,4 @@ declare function ToggleGroupItem({
27
27
  ...props
28
28
  }: ToggleGroupItemProps): _$react_jsx_runtime0.JSX.Element;
29
29
  //#endregion
30
- export { ToggleGroup, ToggleGroupItem };
30
+ export { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps };
@@ -7,8 +7,8 @@ import { Toggle } from "@base-ui/react/toggle";
7
7
  import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
8
8
  //#region src/toggle-group.tsx
9
9
  const ToggleGroupContext = React.createContext({
10
- size: "default",
11
- variant: "default",
10
+ size: void 0,
11
+ variant: void 0,
12
12
  spacing: 0,
13
13
  orientation: "horizontal"
14
14
  });
@@ -40,12 +40,12 @@ function ToggleGroupItem({ className, children, variant = "default", size = "def
40
40
  const context = React.useContext(ToggleGroupContext);
41
41
  return /* @__PURE__ */ jsx(Toggle, {
42
42
  "data-slot": "toggle-group-item",
43
- "data-variant": context.variant || variant,
44
- "data-size": context.size || size,
43
+ "data-variant": context.variant ?? variant,
44
+ "data-size": context.size ?? size,
45
45
  "data-spacing": context.spacing,
46
46
  className: cn("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", toggleVariants({
47
- variant: context.variant || variant,
48
- size: context.size || size
47
+ variant: context.variant ?? variant,
48
+ size: context.size ?? size
49
49
  }), className),
50
50
  ...props,
51
51
  children
package/dist/toggle.d.ts CHANGED
@@ -17,4 +17,4 @@ declare function Toggle({
17
17
  ...props
18
18
  }: ToggleProps): _$react_jsx_runtime0.JSX.Element;
19
19
  //#endregion
20
- export { Toggle, toggleVariants };
20
+ export { Toggle, ToggleProps, toggleVariants };
package/dist/toggle.js CHANGED
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { cva } from "class-variance-authority";
6
6
  import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
7
7
  //#region src/toggle.tsx
8
- const toggleVariants = cva("cursor-clickable hover:text-contrast focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-pressed:bg-secondary gap-1 rounded-md text-sm font-medium motion-color [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-secondary inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
8
+ const toggleVariants = cva("cursor-clickable hover:text-contrast focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-pressed:bg-secondary gap-1 rounded-md text-sm font-medium motion-color [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-secondary inline-flex items-center justify-center whitespace-nowrap outline-hidden focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
9
9
  variants: {
10
10
  variant: {
11
11
  default: "bg-transparent",
package/dist/tooltip.d.ts CHANGED
@@ -48,4 +48,4 @@ declare function TooltipContent({
48
48
  ...props
49
49
  }: TooltipContentProps): _$react_jsx_runtime0.JSX.Element;
50
50
  //#endregion
51
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
51
+ export { Tooltip, TooltipContent, TooltipContentProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waveso/ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Wave UI component library built on Base UI and Tailwind CSS",
5
5
  "type": "module",
6
6
  "sideEffects": [