@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/README.md CHANGED
@@ -180,7 +180,7 @@ Every component is built on a [Base UI](https://base-ui.com) primitive — full
180
180
 
181
181
  A comprehensive set spanning **actions, forms, layout, navigation, overlays, feedback, data display, and motion effects** — all built on Base UI primitives and driven by the theme tokens.
182
182
 
183
- Browse every component, with live variants and source, in **Storybook** (`npm run storybook`). A full documentation site is on the way at **[ui.wave.so](https://ui.wave.so)**.
183
+ Browse every component, with live variants and source, in **Storybook** (`pnpm storybook`). A full documentation site is on the way at **[ui.wave.so](https://ui.wave.so)**.
184
184
 
185
185
  ## Requirements
186
186
 
@@ -203,11 +203,13 @@ Some components have optional peer dependencies — install only what you use:
203
203
  ## Development
204
204
 
205
205
  ```bash
206
- npm install
207
- npm run storybook # Start Storybook
208
- npm run build # Build the library
209
- npm run typecheck # Type-check
210
- npm run dev # Watch mode
206
+ pnpm install
207
+ pnpm storybook # Start Storybook
208
+ pnpm build # Build the library
209
+ pnpm typecheck # Type-check
210
+ pnpm lint # Lint with oxlint (pnpm lint:fix to autofix)
211
+ pnpm format # Format with oxfmt (pnpm format:check to verify)
212
+ pnpm dev # Watch mode
211
213
  ```
212
214
 
213
215
  ### Project structure
@@ -228,7 +230,7 @@ src/
228
230
 
229
231
  This project uses [Changesets](https://github.com/changesets/changesets) with GitHub Actions.
230
232
 
231
- 1. Run `npx changeset` to describe your changes (patch, minor, or major)
233
+ 1. Run `pnpm changeset` to describe your changes (patch, minor, or major)
232
234
  2. Commit the generated changeset file with your PR
233
235
  3. When merged to `main`, CI automatically versions and publishes to npm
234
236
 
@@ -238,9 +240,9 @@ This project uses [Changesets](https://github.com/changesets/changesets) with Gi
238
240
  If you're not using the GitHub Actions workflow, you can publish manually. Changesets skips versions already published to npm, so this won't conflict if CI has already run.
239
241
 
240
242
  ```bash
241
- npx changeset # Create a changeset
242
- npx changeset version # Apply version bump
243
- npm run release # Build and publish to npm
243
+ pnpm changeset # Create a changeset
244
+ pnpm changeset version # Apply version bump
245
+ pnpm release # Build and publish to npm
244
246
  ```
245
247
 
246
248
  </details>
@@ -1,29 +1,13 @@
1
1
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
-
5
3
  //#region src/accordion.d.ts
6
4
  type AccordionProps = React.ComponentProps<typeof Accordion$1.Root>;
7
5
  type AccordionItemProps = React.ComponentProps<typeof Accordion$1.Item>;
8
6
  type AccordionTriggerProps = React.ComponentProps<typeof Accordion$1.Trigger>;
9
7
  type AccordionContentProps = React.ComponentProps<typeof Accordion$1.Panel>;
10
- declare function Accordion({
11
- className,
12
- ...props
13
- }: AccordionProps): _$react_jsx_runtime0.JSX.Element;
14
- declare function AccordionItem({
15
- className,
16
- ...props
17
- }: AccordionItemProps): _$react_jsx_runtime0.JSX.Element;
18
- declare function AccordionTrigger({
19
- className,
20
- children,
21
- ...props
22
- }: AccordionTriggerProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function AccordionContent({
24
- className,
25
- children,
26
- ...props
27
- }: AccordionContentProps): _$react_jsx_runtime0.JSX.Element;
8
+ declare function Accordion({ className, ...props }: AccordionProps): React.JSX.Element;
9
+ declare function AccordionItem({ className, ...props }: AccordionItemProps): React.JSX.Element;
10
+ declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): React.JSX.Element;
11
+ declare function AccordionContent({ className, children, ...props }: AccordionContentProps): React.JSX.Element;
28
12
  //#endregion
29
13
  export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
@@ -1,6 +1,4 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
-
4
2
  //#region src/action-bar.d.ts
5
3
  /** State a form registers with the ActionBar. */
6
4
  interface ActionBarEntry {
@@ -64,14 +62,7 @@ interface ActionBarProviderProps {
64
62
  * useActionBar('profile', { hasChanges, saving, onSave, onReset });
65
63
  * ```
66
64
  */
67
- declare function ActionBarProvider({
68
- children,
69
- message,
70
- pluralMessage,
71
- blockedMessage,
72
- labels,
73
- className
74
- }: ActionBarProviderProps): _$react_jsx_runtime0.JSX.Element;
65
+ declare function ActionBarProvider({ children, message, pluralMessage, blockedMessage, labels, className }: ActionBarProviderProps): React.JSX.Element;
75
66
  /**
76
67
  * Register a form's unsaved state with the global ActionBar.
77
68
  *
@@ -24,6 +24,7 @@ function useIsMac() {
24
24
  return isMac;
25
25
  }
26
26
  const ActionBarContext = React.createContext(null);
27
+ const defaultPluralMessage = (count) => `${count} unsaved changes`;
27
28
  /**
28
29
  * Global action bar for unsaved changes.
29
30
  *
@@ -48,7 +49,7 @@ const ActionBarContext = React.createContext(null);
48
49
  * useActionBar('profile', { hasChanges, saving, onSave, onReset });
49
50
  * ```
50
51
  */
51
- function ActionBarProvider({ children, message = "You have unsaved changes", pluralMessage = (count) => `${count} unsaved changes`, blockedMessage = "Save or reset your changes before leaving this page", labels, className }) {
52
+ function ActionBarProvider({ children, message = "You have unsaved changes", pluralMessage = defaultPluralMessage, blockedMessage = "Save or reset your changes before leaving this page", labels, className }) {
52
53
  const text = {
53
54
  save: "Save",
54
55
  saving: "Saving",
@@ -1,8 +1,6 @@
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
3
  import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
5
-
6
4
  //#region src/alert-dialog.d.ts
7
5
  type AlertDialogProps = React.ComponentProps<typeof AlertDialog$1.Root>;
8
6
  type AlertDialogTriggerProps = React.ComponentProps<typeof AlertDialog$1.Trigger>;
@@ -18,55 +16,17 @@ type AlertDialogTitleProps = React.ComponentProps<typeof AlertDialog$1.Title>;
18
16
  type AlertDialogDescriptionProps = React.ComponentProps<typeof AlertDialog$1.Description>;
19
17
  type AlertDialogActionProps = React.ComponentProps<typeof AlertDialog$1.Close> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">;
20
18
  type AlertDialogCancelProps = React.ComponentProps<typeof AlertDialog$1.Close> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">;
21
- declare function AlertDialog({
22
- ...props
23
- }: AlertDialogProps): _$react_jsx_runtime0.JSX.Element;
24
- declare function AlertDialogTrigger({
25
- ...props
26
- }: AlertDialogTriggerProps): _$react_jsx_runtime0.JSX.Element;
27
- declare function AlertDialogPortal({
28
- ...props
29
- }: AlertDialogPortalProps): _$react_jsx_runtime0.JSX.Element;
30
- declare function AlertDialogOverlay({
31
- className,
32
- ...props
33
- }: AlertDialogOverlayProps): _$react_jsx_runtime0.JSX.Element;
34
- declare function AlertDialogContent({
35
- className,
36
- size,
37
- ...props
38
- }: AlertDialogContentProps): _$react_jsx_runtime0.JSX.Element;
39
- declare function AlertDialogHeader({
40
- className,
41
- ...props
42
- }: AlertDialogHeaderProps): _$react_jsx_runtime0.JSX.Element;
43
- declare function AlertDialogFooter({
44
- className,
45
- ...props
46
- }: AlertDialogFooterProps): _$react_jsx_runtime0.JSX.Element;
47
- declare function AlertDialogMedia({
48
- className,
49
- ...props
50
- }: AlertDialogMediaProps): _$react_jsx_runtime0.JSX.Element;
51
- declare function AlertDialogTitle({
52
- className,
53
- ...props
54
- }: AlertDialogTitleProps): _$react_jsx_runtime0.JSX.Element;
55
- declare function AlertDialogDescription({
56
- className,
57
- ...props
58
- }: AlertDialogDescriptionProps): _$react_jsx_runtime0.JSX.Element;
59
- declare function AlertDialogAction({
60
- className,
61
- variant,
62
- size,
63
- ...props
64
- }: AlertDialogActionProps): _$react_jsx_runtime0.JSX.Element;
65
- declare function AlertDialogCancel({
66
- className,
67
- variant,
68
- size,
69
- ...props
70
- }: AlertDialogCancelProps): _$react_jsx_runtime0.JSX.Element;
19
+ declare function AlertDialog({ ...props }: AlertDialogProps): React.JSX.Element;
20
+ declare function AlertDialogTrigger({ ...props }: AlertDialogTriggerProps): React.JSX.Element;
21
+ declare function AlertDialogPortal({ ...props }: AlertDialogPortalProps): React.JSX.Element;
22
+ declare function AlertDialogOverlay({ className, ...props }: AlertDialogOverlayProps): React.JSX.Element;
23
+ declare function AlertDialogContent({ className, size, ...props }: AlertDialogContentProps): React.JSX.Element;
24
+ declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element;
25
+ declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element;
26
+ declare function AlertDialogMedia({ className, ...props }: AlertDialogMediaProps): React.JSX.Element;
27
+ declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): React.JSX.Element;
28
+ declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): React.JSX.Element;
29
+ declare function AlertDialogAction({ className, variant, size, ...props }: AlertDialogActionProps): React.JSX.Element;
30
+ declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialogCancelProps): React.JSX.Element;
71
31
  //#endregion
72
32
  export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
package/dist/alert.d.ts CHANGED
@@ -1,32 +1,16 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { VariantProps } from "class-variance-authority";
4
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
-
6
3
  //#region src/alert.d.ts
7
4
  declare const alertVariants: (props?: ({
8
5
  variant?: "default" | "destructive" | null | undefined;
9
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
7
  type AlertProps = React.ComponentProps<"div"> & VariantProps<typeof alertVariants>;
11
8
  type AlertTitleProps = React.ComponentProps<"div">;
12
9
  type AlertDescriptionProps = React.ComponentProps<"div">;
13
10
  type AlertActionProps = React.ComponentProps<"div">;
14
- declare function Alert({
15
- className,
16
- variant,
17
- ...props
18
- }: AlertProps): _$react_jsx_runtime0.JSX.Element;
19
- declare function AlertTitle({
20
- className,
21
- ...props
22
- }: AlertTitleProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function AlertDescription({
24
- className,
25
- ...props
26
- }: AlertDescriptionProps): _$react_jsx_runtime0.JSX.Element;
27
- declare function AlertAction({
28
- className,
29
- ...props
30
- }: AlertActionProps): _$react_jsx_runtime0.JSX.Element;
11
+ declare function Alert({ className, variant, ...props }: AlertProps): React.JSX.Element;
12
+ declare function AlertTitle({ className, ...props }: AlertTitleProps): React.JSX.Element;
13
+ declare function AlertDescription({ className, ...props }: AlertDescriptionProps): React.JSX.Element;
14
+ declare function AlertAction({ className, ...props }: AlertActionProps): React.JSX.Element;
31
15
  //#endregion
32
16
  export { Alert, AlertAction, type AlertActionProps, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, alertVariants };
package/dist/animate.d.ts CHANGED
@@ -1,7 +1,4 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
- import * as _$react from "react";
3
1
  import { ReactElement } from "react";
4
-
5
2
  //#region src/animate.d.ts
6
3
  type Direction = "up" | "down" | "left" | "right";
7
4
  /**
@@ -106,19 +103,7 @@ interface FloatProps {
106
103
  * </AnimateOnView>
107
104
  * ```
108
105
  */
109
- declare function AnimateOnView({
110
- children,
111
- delay,
112
- from,
113
- distance,
114
- scale,
115
- blur,
116
- rotate,
117
- flip,
118
- spring,
119
- once,
120
- transition
121
- }: AnimateOnViewProps): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
106
+ declare function AnimateOnView({ children, delay, from, distance, scale, blur, rotate, flip, spring, once, transition }: AnimateOnViewProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
122
107
  /**
123
108
  * Animates a child element immediately on mount.
124
109
  *
@@ -132,18 +117,7 @@ declare function AnimateOnView({
132
117
  * </AnimateIn>
133
118
  * ```
134
119
  */
135
- declare function AnimateIn({
136
- children,
137
- delay,
138
- from,
139
- distance,
140
- scale,
141
- blur,
142
- rotate,
143
- flip,
144
- spring,
145
- transition
146
- }: AnimateInProps): ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
120
+ declare function AnimateIn({ children, delay, from, distance, scale, blur, rotate, flip, spring, transition }: AnimateInProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
147
121
  /**
148
122
  * Auto-staggers delay on child AnimateIn/AnimateOnView elements.
149
123
  * Eliminates manual `delay={i * 0.08}` math.
@@ -156,11 +130,7 @@ declare function AnimateIn({
156
130
  * </Stagger>
157
131
  * ```
158
132
  */
159
- declare function Stagger({
160
- children,
161
- interval,
162
- baseDelay
163
- }: StaggerProps): _$react_jsx_runtime0.JSX.Element;
133
+ declare function Stagger({ children, interval, baseDelay }: StaggerProps): import("react").JSX.Element;
164
134
  /**
165
135
  * Continuous, subtle scale pulse. Great for live indicators and CTAs.
166
136
  * Zero DOM overhead — injects a scoped keyframe via `<style>`.
@@ -172,14 +142,7 @@ declare function Stagger({
172
142
  * </Pulse>
173
143
  * ```
174
144
  */
175
- declare function Pulse({
176
- children,
177
- min,
178
- max,
179
- duration,
180
- opacity,
181
- paused
182
- }: PulseProps): _$react_jsx_runtime0.JSX.Element;
145
+ declare function Pulse({ children, min, max, duration, opacity, paused }: PulseProps): import("react").JSX.Element;
183
146
  /**
184
147
  * Gentle continuous up/down float. Perfect for decorative elements.
185
148
  * Zero DOM overhead — injects a scoped keyframe via `<style>`.
@@ -191,12 +154,6 @@ declare function Pulse({
191
154
  * </Float>
192
155
  * ```
193
156
  */
194
- declare function Float({
195
- children,
196
- distance,
197
- duration,
198
- rotate,
199
- paused
200
- }: FloatProps): _$react_jsx_runtime0.JSX.Element;
157
+ declare function Float({ children, distance, duration, rotate, paused }: FloatProps): import("react").JSX.Element;
201
158
  //#endregion
202
159
  export { AnimateIn, type AnimateInProps, AnimateOnView, type AnimateOnViewProps, type AnimateTransition, type Direction, Float, type FloatProps, Pulse, type PulseProps, Stagger, type StaggerProps };
package/dist/animate.js CHANGED
@@ -277,10 +277,11 @@ function Pulse({ children, min = .97, max = 1.03, duration = 2, opacity, paused
277
277
  style: existingStyle
278
278
  });
279
279
  const name = `pulse-${id}`;
280
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("style", { children: `@keyframes ${name} {
280
+ const keyframes = `@keyframes ${name} {
281
281
  0%, 100% { transform: scale(${min}); opacity: ${opacity?.[0] ?? 1}; }
282
282
  50% { transform: scale(${max}); opacity: ${opacity?.[1] ?? 1}; }
283
- }` }), cloneElement(children, {
283
+ }`;
284
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("style", { children: keyframes }), cloneElement(children, {
284
285
  ref: existingRef ? mergeRefs(existingRef) : void 0,
285
286
  style: {
286
287
  ...existingStyle,
@@ -319,10 +320,11 @@ function Float({ children, distance = 6, duration = 3, rotate = 0, paused = fals
319
320
  const name = `float-${id}`;
320
321
  const rotA = rotate ? ` rotate(${-rotate}deg)` : "";
321
322
  const rotB = rotate ? ` rotate(${rotate}deg)` : "";
322
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("style", { children: `@keyframes ${name} {
323
+ const keyframes = `@keyframes ${name} {
323
324
  0%, 100% { transform: translateY(0px)${rotA}; }
324
325
  50% { transform: translateY(${-distance}px)${rotB}; }
325
- }` }), cloneElement(children, {
326
+ }`;
327
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("style", { children: keyframes }), cloneElement(children, {
326
328
  ...existingRef ? { ref: existingRef } : {},
327
329
  style: {
328
330
  ...existingStyle,
@@ -1,14 +1,9 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
-
4
2
  //#region src/aspect-ratio.d.ts
5
3
  type AspectRatioProps = React.ComponentProps<"div"> & {
6
- /** The width-to-height ratio (e.g. 16/9, 4/3, 1) */ratio: number;
4
+ /** The width-to-height ratio (e.g. 16/9, 4/3, 1) */
5
+ ratio: number;
7
6
  };
8
- declare function AspectRatio({
9
- ratio,
10
- className,
11
- ...props
12
- }: AspectRatioProps): _$react_jsx_runtime0.JSX.Element;
7
+ declare function AspectRatio({ ratio, className, ...props }: AspectRatioProps): React.JSX.Element;
13
8
  //#endregion
14
9
  export { AspectRatio, type AspectRatioProps };
@@ -1,10 +1,10 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { inputVariants } from "./input.js";
2
2
  import * as React from "react";
3
+ import { VariantProps } from "class-variance-authority";
3
4
  import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
4
-
5
5
  //#region src/autocomplete.d.ts
6
6
  type AutocompleteProps = React.ComponentProps<typeof Autocomplete$1.Root>;
7
- type AutocompleteInputProps = React.ComponentProps<typeof Autocomplete$1.Input>;
7
+ type AutocompleteInputProps = Omit<React.ComponentProps<typeof Autocomplete$1.Input>, "size"> & VariantProps<typeof inputVariants>;
8
8
  type AutocompleteTriggerProps = React.ComponentProps<typeof Autocomplete$1.Trigger>;
9
9
  type AutocompleteIconProps = React.ComponentProps<typeof Autocomplete$1.Icon>;
10
10
  type AutocompleteClearProps = React.ComponentProps<typeof Autocomplete$1.Clear>;
@@ -24,90 +24,26 @@ type AutocompleteGroupProps = React.ComponentProps<typeof Autocomplete$1.Group>;
24
24
  type AutocompleteGroupLabelProps = React.ComponentProps<typeof Autocomplete$1.GroupLabel>;
25
25
  type AutocompleteCollectionProps = React.ComponentProps<typeof Autocomplete$1.Collection>;
26
26
  type AutocompleteContentProps = AutocompletePopupProps & Pick<AutocompletePositionerProps, "align" | "alignOffset" | "side" | "sideOffset">;
27
- declare function Autocomplete({
28
- ...props
29
- }: AutocompleteProps): _$react_jsx_runtime0.JSX.Element;
30
- declare function AutocompleteInput({
31
- className,
32
- ...props
33
- }: AutocompleteInputProps): _$react_jsx_runtime0.JSX.Element;
34
- declare function AutocompleteTrigger({
35
- className,
36
- ...props
37
- }: AutocompleteTriggerProps): _$react_jsx_runtime0.JSX.Element;
38
- declare function AutocompleteIcon({
39
- className,
40
- ...props
41
- }: AutocompleteIconProps): _$react_jsx_runtime0.JSX.Element;
42
- declare function AutocompleteClear({
43
- className,
44
- ...props
45
- }: AutocompleteClearProps): _$react_jsx_runtime0.JSX.Element;
46
- declare function AutocompleteValue({
47
- ...props
48
- }: AutocompleteValueProps): _$react_jsx_runtime0.JSX.Element;
49
- declare function AutocompletePortal({
50
- className,
51
- ...props
52
- }: AutocompletePortalProps): _$react_jsx_runtime0.JSX.Element;
53
- declare function AutocompleteBackdrop({
54
- className,
55
- ...props
56
- }: AutocompleteBackdropProps): _$react_jsx_runtime0.JSX.Element;
57
- declare function AutocompletePositioner({
58
- className,
59
- ...props
60
- }: AutocompletePositionerProps): _$react_jsx_runtime0.JSX.Element;
61
- declare function AutocompletePopup({
62
- className,
63
- ...props
64
- }: AutocompletePopupProps): _$react_jsx_runtime0.JSX.Element;
65
- declare function AutocompleteArrow({
66
- className,
67
- ...props
68
- }: AutocompleteArrowProps): _$react_jsx_runtime0.JSX.Element;
69
- declare function AutocompleteStatus({
70
- className,
71
- ...props
72
- }: AutocompleteStatusProps): _$react_jsx_runtime0.JSX.Element;
73
- declare function AutocompleteEmpty({
74
- className,
75
- ...props
76
- }: AutocompleteEmptyProps): _$react_jsx_runtime0.JSX.Element;
77
- declare function AutocompleteList({
78
- className,
79
- ...props
80
- }: AutocompleteListProps): _$react_jsx_runtime0.JSX.Element;
81
- declare function AutocompleteRow({
82
- className,
83
- ...props
84
- }: AutocompleteRowProps): _$react_jsx_runtime0.JSX.Element;
85
- declare function AutocompleteItem({
86
- className,
87
- ...props
88
- }: AutocompleteItemProps): _$react_jsx_runtime0.JSX.Element;
89
- declare function AutocompleteSeparator({
90
- className,
91
- ...props
92
- }: AutocompleteSeparatorProps): _$react_jsx_runtime0.JSX.Element;
93
- declare function AutocompleteGroup({
94
- className,
95
- ...props
96
- }: AutocompleteGroupProps): _$react_jsx_runtime0.JSX.Element;
97
- declare function AutocompleteGroupLabel({
98
- className,
99
- ...props
100
- }: AutocompleteGroupLabelProps): _$react_jsx_runtime0.JSX.Element;
101
- declare function AutocompleteCollection({
102
- ...props
103
- }: AutocompleteCollectionProps): _$react_jsx_runtime0.JSX.Element;
104
- declare function AutocompleteContent({
105
- className,
106
- align,
107
- alignOffset,
108
- side,
109
- sideOffset,
110
- ...props
111
- }: AutocompleteContentProps): _$react_jsx_runtime0.JSX.Element;
27
+ declare function Autocomplete({ ...props }: AutocompleteProps): React.JSX.Element;
28
+ declare function AutocompleteInput({ className, size, ...props }: AutocompleteInputProps): React.JSX.Element;
29
+ declare function AutocompleteTrigger({ className, ...props }: AutocompleteTriggerProps): React.JSX.Element;
30
+ declare function AutocompleteIcon({ className, ...props }: AutocompleteIconProps): React.JSX.Element;
31
+ declare function AutocompleteClear({ className, ...props }: AutocompleteClearProps): React.JSX.Element;
32
+ declare function AutocompleteValue({ ...props }: AutocompleteValueProps): React.JSX.Element;
33
+ declare function AutocompletePortal({ className, ...props }: AutocompletePortalProps): React.JSX.Element;
34
+ declare function AutocompleteBackdrop({ className, ...props }: AutocompleteBackdropProps): React.JSX.Element;
35
+ declare function AutocompletePositioner({ className, ...props }: AutocompletePositionerProps): React.JSX.Element;
36
+ declare function AutocompletePopup({ className, ...props }: AutocompletePopupProps): React.JSX.Element;
37
+ declare function AutocompleteArrow({ className, ...props }: AutocompleteArrowProps): React.JSX.Element;
38
+ declare function AutocompleteStatus({ className, ...props }: AutocompleteStatusProps): React.JSX.Element;
39
+ declare function AutocompleteEmpty({ className, ...props }: AutocompleteEmptyProps): React.JSX.Element;
40
+ declare function AutocompleteList({ className, ...props }: AutocompleteListProps): React.JSX.Element;
41
+ declare function AutocompleteRow({ className, ...props }: AutocompleteRowProps): React.JSX.Element;
42
+ declare function AutocompleteItem({ className, ...props }: AutocompleteItemProps): React.JSX.Element;
43
+ declare function AutocompleteSeparator({ className, ...props }: AutocompleteSeparatorProps): React.JSX.Element;
44
+ declare function AutocompleteGroup({ className, ...props }: AutocompleteGroupProps): React.JSX.Element;
45
+ declare function AutocompleteGroupLabel({ className, ...props }: AutocompleteGroupLabelProps): React.JSX.Element;
46
+ declare function AutocompleteCollection({ ...props }: AutocompleteCollectionProps): React.JSX.Element;
47
+ declare function AutocompleteContent({ className, align, alignOffset, side, sideOffset, ...props }: AutocompleteContentProps): React.JSX.Element;
112
48
  //#endregion
113
49
  export { Autocomplete, AutocompleteArrow, type AutocompleteArrowProps, AutocompleteBackdrop, type AutocompleteBackdropProps, AutocompleteClear, type AutocompleteClearProps, AutocompleteCollection, type AutocompleteCollectionProps, AutocompleteContent, type AutocompleteContentProps, AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteGroup, AutocompleteGroupLabel, type AutocompleteGroupLabelProps, type AutocompleteGroupProps, AutocompleteIcon, type AutocompleteIconProps, AutocompleteInput, type AutocompleteInputProps, AutocompleteItem, type AutocompleteItemProps, AutocompleteList, type AutocompleteListProps, AutocompletePopup, type AutocompletePopupProps, AutocompletePortal, type AutocompletePortalProps, AutocompletePositioner, type AutocompletePositionerProps, type AutocompleteProps, AutocompleteRow, type AutocompleteRowProps, AutocompleteSeparator, type AutocompleteSeparatorProps, AutocompleteStatus, type AutocompleteStatusProps, AutocompleteTrigger, type AutocompleteTriggerProps, AutocompleteValue, type AutocompleteValueProps };
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
+ import { inputVariants } from "./input.js";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
5
6
  //#region src/autocomplete.tsx
@@ -9,10 +10,11 @@ function Autocomplete({ ...props }) {
9
10
  ...props
10
11
  });
11
12
  }
12
- function AutocompleteInput({ className, ...props }) {
13
+ function AutocompleteInput({ className, size = "default", ...props }) {
13
14
  return /* @__PURE__ */ jsx(Autocomplete$1.Input, {
14
15
  "data-slot": "autocomplete-input",
15
- className: cn("dark:bg-edge/30 border-edge focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/30 aria-invalid:border-destructive disabled:bg-edge/50 dark:disabled:bg-edge/80 placeholder:text-soft h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-hidden focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm", className),
16
+ "data-size": size,
17
+ className: cn(inputVariants({ size }), className),
16
18
  ...props
17
19
  });
18
20
  }
package/dist/avatar.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 { Avatar as Avatar$1 } from "@base-ui/react/avatar";
4
-
5
3
  //#region src/avatar.d.ts
6
4
  type AvatarProps = Avatar$1.Root.Props & {
7
5
  size?: "default" | "sm" | "lg";
@@ -11,30 +9,11 @@ type AvatarFallbackProps = Avatar$1.Fallback.Props;
11
9
  type AvatarBadgeProps = React.ComponentProps<"span">;
12
10
  type AvatarGroupProps = React.ComponentProps<"div">;
13
11
  type AvatarGroupCountProps = React.ComponentProps<"div">;
14
- declare function Avatar({
15
- className,
16
- size,
17
- ...props
18
- }: AvatarProps): _$react_jsx_runtime0.JSX.Element;
19
- declare function AvatarImage({
20
- className,
21
- ...props
22
- }: AvatarImageProps): _$react_jsx_runtime0.JSX.Element;
23
- declare function AvatarFallback({
24
- className,
25
- ...props
26
- }: AvatarFallbackProps): _$react_jsx_runtime0.JSX.Element;
27
- declare function AvatarBadge({
28
- className,
29
- ...props
30
- }: AvatarBadgeProps): _$react_jsx_runtime0.JSX.Element;
31
- declare function AvatarGroup({
32
- className,
33
- ...props
34
- }: AvatarGroupProps): _$react_jsx_runtime0.JSX.Element;
35
- declare function AvatarGroupCount({
36
- className,
37
- ...props
38
- }: AvatarGroupCountProps): _$react_jsx_runtime0.JSX.Element;
12
+ declare function Avatar({ className, size, ...props }: AvatarProps): React.JSX.Element;
13
+ declare function AvatarImage({ className, ...props }: AvatarImageProps): React.JSX.Element;
14
+ declare function AvatarFallback({ className, ...props }: AvatarFallbackProps): React.JSX.Element;
15
+ declare function AvatarBadge({ className, ...props }: AvatarBadgeProps): React.JSX.Element;
16
+ declare function AvatarGroup({ className, ...props }: AvatarGroupProps): React.JSX.Element;
17
+ declare function AvatarGroupCount({ className, ...props }: AvatarGroupCountProps): React.JSX.Element;
39
18
  //#endregion
40
19
  export { Avatar, AvatarBadge, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps };
package/dist/badge.d.ts CHANGED
@@ -1,18 +1,10 @@
1
- import * as _$react from "react";
2
1
  import { VariantProps } from "class-variance-authority";
3
2
  import { useRender } from "@base-ui/react/use-render";
4
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
-
6
3
  //#region src/badge.d.ts
7
4
  declare const badgeVariants: (props?: ({
8
- variant?: "default" | "link" | "outline" | "success" | "warning" | "secondary" | "ghost" | "destructive" | null | undefined;
9
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
5
+ variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "success" | "warning" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
7
  type BadgeProps = useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>;
11
- declare function Badge({
12
- className,
13
- variant,
14
- render,
15
- ...props
16
- }: BadgeProps): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
8
+ declare function Badge({ className, variant, render, ...props }: BadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
17
9
  //#endregion
18
10
  export { Badge, type BadgeProps, badgeVariants };
@@ -1,7 +1,5 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { useRender } from "@base-ui/react/use-render";
4
-
5
3
  //#region src/breadcrumb.d.ts
6
4
  type BreadcrumbProps = React.ComponentProps<"nav">;
7
5
  type BreadcrumbListProps = React.ComponentProps<"ol">;
@@ -10,34 +8,12 @@ type BreadcrumbLinkProps = useRender.ComponentProps<"a">;
10
8
  type BreadcrumbPageProps = React.ComponentProps<"span">;
11
9
  type BreadcrumbSeparatorProps = React.ComponentProps<"li">;
12
10
  type BreadcrumbEllipsisProps = React.ComponentProps<"span">;
13
- declare function Breadcrumb({
14
- ...props
15
- }: BreadcrumbProps): _$react_jsx_runtime0.JSX.Element;
16
- declare function BreadcrumbList({
17
- className,
18
- ...props
19
- }: BreadcrumbListProps): _$react_jsx_runtime0.JSX.Element;
20
- declare function BreadcrumbItem({
21
- className,
22
- ...props
23
- }: BreadcrumbItemProps): _$react_jsx_runtime0.JSX.Element;
24
- declare function BreadcrumbLink({
25
- className,
26
- render,
27
- ...props
28
- }: BreadcrumbLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
29
- declare function BreadcrumbPage({
30
- className,
31
- ...props
32
- }: BreadcrumbPageProps): _$react_jsx_runtime0.JSX.Element;
33
- declare function BreadcrumbSeparator({
34
- children,
35
- className,
36
- ...props
37
- }: BreadcrumbSeparatorProps): _$react_jsx_runtime0.JSX.Element;
38
- declare function BreadcrumbEllipsis({
39
- className,
40
- ...props
41
- }: BreadcrumbEllipsisProps): _$react_jsx_runtime0.JSX.Element;
11
+ declare function Breadcrumb({ ...props }: BreadcrumbProps): React.JSX.Element;
12
+ declare function BreadcrumbList({ className, ...props }: BreadcrumbListProps): React.JSX.Element;
13
+ declare function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): React.JSX.Element;
14
+ declare function BreadcrumbLink({ className, render, ...props }: BreadcrumbLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
15
+ declare function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): React.JSX.Element;
16
+ declare function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): React.JSX.Element;
17
+ declare function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): React.JSX.Element;
42
18
  //#endregion
43
19
  export { Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps };