@waveso/ui 0.8.1 → 0.9.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 (116) hide show
  1. package/dist/accordion.d.ts +2 -2
  2. package/dist/accordion.js +0 -1
  3. package/dist/action-bar.d.ts +7 -3
  4. package/dist/action-bar.js +5 -1
  5. package/dist/alert-dialog.d.ts +5 -3
  6. package/dist/alert-dialog.js +6 -3
  7. package/dist/alert.d.ts +2 -2
  8. package/dist/alert.js +1 -2
  9. package/dist/animate.d.ts +15 -5
  10. package/dist/animate.js +1 -1
  11. package/dist/aspect-ratio.d.ts +1 -1
  12. package/dist/aspect-ratio.js +0 -1
  13. package/dist/autocomplete.d.ts +2 -2
  14. package/dist/autocomplete.js +0 -1
  15. package/dist/avatar.d.ts +2 -2
  16. package/dist/avatar.js +0 -1
  17. package/dist/badge.d.ts +2 -2
  18. package/dist/breadcrumb.d.ts +2 -2
  19. package/dist/breadcrumb.js +0 -1
  20. package/dist/button-group.d.ts +2 -2
  21. package/dist/button-group.js +0 -1
  22. package/dist/button.d.ts +4 -4
  23. package/dist/button.js +2 -1
  24. package/dist/card.d.ts +2 -2
  25. package/dist/card.js +0 -1
  26. package/dist/checkbox.d.ts +2 -2
  27. package/dist/checkbox.js +0 -1
  28. package/dist/collapsible.d.ts +2 -2
  29. package/dist/collapsible.js +0 -1
  30. package/dist/combobox.d.ts +9 -8
  31. package/dist/combobox.js +1 -1
  32. package/dist/context-menu.d.ts +2 -2
  33. package/dist/context-menu.js +0 -1
  34. package/dist/count.d.ts +1 -1
  35. package/dist/count.js +2 -2
  36. package/dist/dialog.d.ts +5 -8
  37. package/dist/dialog.js +3 -8
  38. package/dist/direction.d.ts +6 -1
  39. package/dist/drawer.d.ts +7 -2
  40. package/dist/drawer.js +31 -29
  41. package/dist/encrypted-text.d.ts +2 -2
  42. package/dist/encrypted-text.js +1 -1
  43. package/dist/field.d.ts +2 -2
  44. package/dist/field.js +0 -1
  45. package/dist/film-grain.d.ts +1 -1
  46. package/dist/film-grain.js +0 -1
  47. package/dist/form.d.ts +2 -2
  48. package/dist/form.js +1 -1
  49. package/dist/gradient-reveal-text.js +2 -2
  50. package/dist/infinite-scroll.d.ts +4 -5
  51. package/dist/infinite-scroll.js +3 -2
  52. package/dist/input-group.d.ts +4 -4
  53. package/dist/input-group.js +1 -2
  54. package/dist/input-otp.d.ts +2 -2
  55. package/dist/input-otp.js +2 -2
  56. package/dist/input.d.ts +4 -3
  57. package/dist/input.js +0 -1
  58. package/dist/item.d.ts +4 -4
  59. package/dist/item.js +1 -2
  60. package/dist/kbd.d.ts +1 -1
  61. package/dist/kbd.js +0 -1
  62. package/dist/label.d.ts +2 -2
  63. package/dist/label.js +0 -1
  64. package/dist/lib/internal-icons.d.ts +1 -1
  65. package/dist/lib/internal-icons.js +0 -1
  66. package/dist/masonry.d.ts +2 -2
  67. package/dist/masonry.js +1 -1
  68. package/dist/menu.d.ts +2 -2
  69. package/dist/menu.js +0 -1
  70. package/dist/menubar.d.ts +2 -2
  71. package/dist/menubar.js +0 -1
  72. package/dist/pagination.d.ts +2 -2
  73. package/dist/pagination.js +0 -2
  74. package/dist/popover.d.ts +9 -2
  75. package/dist/popover.js +2 -3
  76. package/dist/preview-card.d.ts +6 -3
  77. package/dist/preview-card.js +2 -3
  78. package/dist/progress.d.ts +2 -2
  79. package/dist/progress.js +3 -4
  80. package/dist/radio-group.d.ts +2 -2
  81. package/dist/radio-group.js +0 -1
  82. package/dist/radio.d.ts +2 -2
  83. package/dist/radio.js +0 -1
  84. package/dist/scroll-area.d.ts +2 -2
  85. package/dist/scroll-area.js +0 -1
  86. package/dist/select.d.ts +2 -2
  87. package/dist/select.js +0 -1
  88. package/dist/separator.d.ts +2 -2
  89. package/dist/separator.js +0 -1
  90. package/dist/sidebar.d.ts +74 -51
  91. package/dist/sidebar.js +2 -2
  92. package/dist/skeleton.d.ts +2 -2
  93. package/dist/skeleton.js +0 -1
  94. package/dist/slider.d.ts +2 -2
  95. package/dist/slider.js +1 -1
  96. package/dist/spinner.d.ts +2 -2
  97. package/dist/spinner.js +0 -1
  98. package/dist/switch.d.ts +2 -2
  99. package/dist/switch.js +0 -1
  100. package/dist/table.d.ts +2 -2
  101. package/dist/table.js +0 -1
  102. package/dist/tabs.d.ts +2 -2
  103. package/dist/tabs.js +0 -1
  104. package/dist/textarea.d.ts +2 -2
  105. package/dist/textarea.js +0 -1
  106. package/dist/toast.d.ts +7 -6
  107. package/dist/toast.js +2 -2
  108. package/dist/toggle-group.d.ts +1 -1
  109. package/dist/toggle-group.js +7 -7
  110. package/dist/toggle.d.ts +2 -2
  111. package/dist/toggle.js +0 -1
  112. package/dist/tooltip.d.ts +2 -2
  113. package/dist/tooltip.js +1 -1
  114. package/dist/typewriter.d.ts +1 -1
  115. package/dist/typewriter.js +1 -1
  116. package/package.json +6 -2
@@ -1,2 +1,7 @@
1
+ import * as React from "react";
1
2
  import { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
2
- export { DirectionProvider, useDirection };
3
+
4
+ //#region src/direction.d.ts
5
+ type DirectionProviderProps = React.ComponentProps<typeof DirectionProvider>;
6
+ //#endregion
7
+ export { DirectionProvider, type DirectionProviderProps, useDirection };
package/dist/drawer.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
  import { Drawer as Drawer$1 } from "@base-ui/react/drawer";
4
4
 
5
5
  //#region src/drawer.d.ts
@@ -8,6 +8,7 @@ type DrawerTriggerProps = React.ComponentProps<typeof Drawer$1.Trigger>;
8
8
  type DrawerPortalProps = React.ComponentProps<typeof Drawer$1.Portal>;
9
9
  type DrawerCloseProps = React.ComponentProps<typeof Drawer$1.Close>;
10
10
  type DrawerOverlayProps = React.ComponentProps<typeof Drawer$1.Backdrop>;
11
+ type DrawerViewportProps = React.ComponentProps<typeof Drawer$1.Viewport>;
11
12
  type DrawerPopupProps = React.ComponentProps<typeof Drawer$1.Popup>;
12
13
  type DrawerTitleProps = React.ComponentProps<typeof Drawer$1.Title>;
13
14
  type DrawerDescriptionProps = React.ComponentProps<typeof Drawer$1.Description>;
@@ -32,6 +33,10 @@ declare function DrawerOverlay({
32
33
  className,
33
34
  ...props
34
35
  }: DrawerOverlayProps): _$react_jsx_runtime0.JSX.Element;
36
+ declare function DrawerViewport({
37
+ className,
38
+ ...props
39
+ }: DrawerViewportProps): _$react_jsx_runtime0.JSX.Element;
35
40
  declare function DrawerContent({
36
41
  className,
37
42
  children,
@@ -55,4 +60,4 @@ declare function DrawerDescription({
55
60
  ...props
56
61
  }: DrawerDescriptionProps): _$react_jsx_runtime0.JSX.Element;
57
62
  //#endregion
58
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
63
+ export { Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, type DrawerOverlayProps, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DrawerViewport, type DrawerViewportProps };
package/dist/drawer.js CHANGED
@@ -2,7 +2,6 @@
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { CloseIcon } from "./lib/internal-icons.js";
4
4
  import { Button } from "./button.js";
5
- import "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { Drawer as Drawer$1 } from "@base-ui/react/drawer";
8
7
  //#region src/drawer.tsx
@@ -37,35 +36,38 @@ function DrawerOverlay({ className, ...props }) {
37
36
  ...props
38
37
  });
39
38
  }
40
- function DrawerContent({ className, children, showCloseButton = false, ...props }) {
41
- return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(Drawer$1.Viewport, {
39
+ function DrawerViewport({ className, ...props }) {
40
+ return /* @__PURE__ */ jsx(Drawer$1.Viewport, {
42
41
  "data-slot": "drawer-viewport",
43
- className: "fixed inset-0 z-50 outline-hidden",
44
- children: /* @__PURE__ */ jsxs(Drawer$1.Popup, {
45
- "data-slot": "drawer-content",
46
- className: cn("group/drawer-content bg-foundation fixed z-50 flex flex-col overflow-y-auto border-edge text-sm shadow-lg outline-hidden", "transition-[translate] duration-(--duration-lg) ease-(--ease) data-[swiping]:duration-0", "data-[swipe-direction=down]:inset-x-0 data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:mt-24 data-[swipe-direction=down]:max-h-[80vh] data-[swipe-direction=down]:rounded-t-lg data-[swipe-direction=down]:border-t", "data-[swipe-direction=up]:inset-x-0 data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:mb-24 data-[swipe-direction=up]:max-h-[80vh] data-[swipe-direction=up]:rounded-b-lg data-[swipe-direction=up]:border-b", "data-[swipe-direction=left]:inset-y-0 data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:w-3/4 data-[swipe-direction=left]:rounded-r-lg data-[swipe-direction=left]:border-r data-[swipe-direction=left]:sm:max-w-sm", "data-[swipe-direction=right]:inset-y-0 data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:w-3/4 data-[swipe-direction=right]:rounded-l-lg data-[swipe-direction=right]:border-l data-[swipe-direction=right]:sm:max-w-sm", "data-[swipe-direction=down]:data-[starting-style]:translate-y-full data-[swipe-direction=down]:data-[ending-style]:translate-y-full", "data-[swipe-direction=up]:data-[starting-style]:-translate-y-full data-[swipe-direction=up]:data-[ending-style]:-translate-y-full", "data-[swipe-direction=left]:data-[starting-style]:-translate-x-full data-[swipe-direction=left]:data-[ending-style]:-translate-x-full", "data-[swipe-direction=right]:data-[starting-style]:translate-x-full data-[swipe-direction=right]:data-[ending-style]:translate-x-full", className),
47
- ...props,
48
- children: [
49
- /* @__PURE__ */ jsx("div", {
50
- "data-slot": "drawer-drag-handle",
51
- className: "bg-secondary mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[swipe-direction=down]/drawer-content:block"
42
+ className: cn("fixed inset-0 z-50 outline-hidden", className),
43
+ ...props
44
+ });
45
+ }
46
+ function DrawerContent({ className, children, showCloseButton = false, ...props }) {
47
+ return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(DrawerViewport, { children: /* @__PURE__ */ jsxs(Drawer$1.Popup, {
48
+ "data-slot": "drawer-content",
49
+ className: cn("group/drawer-content bg-foundation fixed z-50 flex flex-col overflow-y-auto border-edge text-sm shadow-lg outline-hidden", "transition-[translate] duration-(--duration-lg) ease-(--ease) data-[swiping]:duration-0", "data-[swipe-direction=down]:inset-x-0 data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:mt-24 data-[swipe-direction=down]:max-h-[80vh] data-[swipe-direction=down]:rounded-t-lg data-[swipe-direction=down]:border-t", "data-[swipe-direction=up]:inset-x-0 data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:mb-24 data-[swipe-direction=up]:max-h-[80vh] data-[swipe-direction=up]:rounded-b-lg data-[swipe-direction=up]:border-b", "data-[swipe-direction=left]:inset-y-0 data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:w-3/4 data-[swipe-direction=left]:rounded-r-lg data-[swipe-direction=left]:border-r data-[swipe-direction=left]:sm:max-w-sm", "data-[swipe-direction=right]:inset-y-0 data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:w-3/4 data-[swipe-direction=right]:rounded-l-lg data-[swipe-direction=right]:border-l data-[swipe-direction=right]:sm:max-w-sm", "data-[swipe-direction=down]:data-[starting-style]:translate-y-full data-[swipe-direction=down]:data-[ending-style]:translate-y-full", "data-[swipe-direction=up]:data-[starting-style]:-translate-y-full data-[swipe-direction=up]:data-[ending-style]:-translate-y-full", "data-[swipe-direction=left]:data-[starting-style]:-translate-x-full data-[swipe-direction=left]:data-[ending-style]:-translate-x-full", "data-[swipe-direction=right]:data-[starting-style]:translate-x-full data-[swipe-direction=right]:data-[ending-style]:translate-x-full", className),
50
+ ...props,
51
+ children: [
52
+ /* @__PURE__ */ jsx("div", {
53
+ "data-slot": "drawer-drag-handle",
54
+ className: "bg-secondary mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[swipe-direction=down]/drawer-content:block"
55
+ }),
56
+ children,
57
+ showCloseButton && /* @__PURE__ */ jsxs(Drawer$1.Close, {
58
+ "data-slot": "drawer-close",
59
+ render: /* @__PURE__ */ jsx(Button, {
60
+ variant: "ghost",
61
+ className: "absolute top-2 right-2",
62
+ size: "icon-sm"
52
63
  }),
53
- children,
54
- showCloseButton && /* @__PURE__ */ jsxs(Drawer$1.Close, {
55
- "data-slot": "drawer-close",
56
- render: /* @__PURE__ */ jsx(Button, {
57
- variant: "ghost",
58
- className: "absolute top-2 right-2",
59
- size: "icon-sm"
60
- }),
61
- children: [/* @__PURE__ */ jsx(CloseIcon, {}), /* @__PURE__ */ jsx("span", {
62
- className: "sr-only",
63
- children: "Close"
64
- })]
65
- })
66
- ]
67
- })
68
- })] });
64
+ children: [/* @__PURE__ */ jsx(CloseIcon, {}), /* @__PURE__ */ jsx("span", {
65
+ className: "sr-only",
66
+ children: "Close"
67
+ })]
68
+ })
69
+ ]
70
+ }) })] });
69
71
  }
70
72
  function DrawerHeader({ className, ...props }) {
71
73
  return /* @__PURE__ */ jsx("div", {
@@ -96,4 +98,4 @@ function DrawerDescription({ className, ...props }) {
96
98
  });
97
99
  }
98
100
  //#endregion
99
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
101
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DrawerViewport };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/encrypted-text.d.ts
5
5
  type EncryptedTextProps = React.ComponentProps<"span"> & {
@@ -25,4 +25,4 @@ declare function EncryptedText({
25
25
  ...props
26
26
  }: EncryptedTextProps): _$react_jsx_runtime0.JSX.Element | null;
27
27
  //#endregion
28
- export { EncryptedText };
28
+ export { EncryptedText, type EncryptedTextProps };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
- import * as React from "react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import * as React from "react";
5
5
  import { useReducedMotion } from "motion/react";
6
6
  //#region src/encrypted-text.tsx
7
7
  const DEFAULT_CHARSET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-={}[];:,.<>/?";
package/dist/field.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
  import { Field as FieldPrimitive } from "@base-ui/react/field";
4
4
  import * as _$_base_ui_react0 from "@base-ui/react";
5
5
 
@@ -37,4 +37,4 @@ declare function FieldError({
37
37
  }: FieldErrorProps): _$react_jsx_runtime0.JSX.Element;
38
38
  declare const FieldValidity: React.FC<_$_base_ui_react0.FieldValidityProps>;
39
39
  //#endregion
40
- export { Field, FieldControl, FieldControlProps, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorProps, FieldItem, FieldItemProps, FieldLabel, FieldLabelProps, FieldPrimitive, FieldProps, FieldValidity, FieldValidityProps };
40
+ export { Field, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldItem, type FieldItemProps, FieldLabel, type FieldLabelProps, FieldPrimitive, type FieldProps, FieldValidity, type FieldValidityProps };
package/dist/field.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
- import "react";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  import { Field as FieldPrimitive } from "@base-ui/react/field";
6
5
  //#region src/field.tsx
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/film-grain.d.ts
5
5
  interface FilmGrainProps {
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { useFilmGrain } from "./film-grain-webgl.js";
4
- import "react";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  //#region src/film-grain.tsx
7
6
  function FilmGrain({ density = .6, opacity = .08, blendMode = "overlay", fps = 18, color = "#ffffff", className, style }) {
package/dist/form.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Field } from "./field.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import * as _$react_hook_form0 from "react-hook-form";
5
5
  import { ControllerFieldState, ControllerRenderProps, FieldPath, FieldValues, RegisterOptions, SubmitHandler, UseFormReturn, useForm, useWatch } from "react-hook-form";
6
6
 
@@ -94,4 +94,4 @@ declare function fieldControlProps<TFieldValues extends FieldValues, TName exten
94
94
  onChange: (...event: any[]) => void;
95
95
  };
96
96
  //#endregion
97
- export { Form, FormActions, FormError, FormField, type FormFieldProps, type FormFieldRenderArgs, FormMessage, FormRoot, fieldControlProps, useForm, useWatch };
97
+ export { Form, FormActions, type FormActionsProps, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormFieldRenderArgs, FormMessage, type FormMessageProps, type FormProps, FormRoot, type FormRootProps, fieldControlProps, useForm, useWatch };
package/dist/form.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { Field, FieldDescription, FieldError, FieldLabel } from "./field.js";
4
- import * as React from "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as React from "react";
6
6
  import { Controller, FormProvider, useForm, useFormContext, useWatch } from "react-hook-form";
7
7
  //#region src/form.tsx
8
8
  function Form({ form, onSubmit, ...props }) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
- import { useCallback, useEffect, useId, useRef, useState } from "react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { useCallback, useEffect, useId, useRef, useState } from "react";
5
5
  //#region src/gradient-reveal-text.tsx
6
6
  const DEFAULT_COLORS = [
7
7
  "#eab308",
@@ -80,7 +80,7 @@ function GradientRevealText({ text, duration = 0, colors = DEFAULT_COLORS, baseO
80
80
  requestFollow.current = () => {};
81
81
  return;
82
82
  }
83
- const speed = 1 - Math.pow(.001, 1 / (duration * 60));
83
+ const speed = 1 - .001 ** (1 / (duration * 60));
84
84
  const EPSILON = 5e-4;
85
85
  const tick = () => {
86
86
  const cur = currentPos.current;
@@ -1,8 +1,8 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/infinite-scroll.d.ts
5
- type InfiniteScrollProps = {
5
+ type InfiniteScrollProps = React.ComponentProps<"div"> & {
6
6
  onLoadMore: () => void;
7
7
  hasMore: boolean;
8
8
  isLoading?: boolean;
@@ -12,8 +12,6 @@ type InfiniteScrollProps = {
12
12
  threshold?: number;
13
13
  loader?: React.ReactNode;
14
14
  endMessage?: React.ReactNode;
15
- className?: string;
16
- children?: React.ReactNode;
17
15
  };
18
16
  declare function InfiniteScroll({
19
17
  onLoadMore,
@@ -26,7 +24,8 @@ declare function InfiniteScroll({
26
24
  loader,
27
25
  endMessage,
28
26
  className,
29
- children
27
+ children,
28
+ ...props
30
29
  }: InfiniteScrollProps): _$react_jsx_runtime0.JSX.Element;
31
30
  //#endregion
32
31
  export { InfiniteScroll, type InfiniteScrollProps };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { Spinner } from "./spinner.js";
4
- import * as React from "react";
5
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import * as React from "react";
6
6
  //#region src/infinite-scroll.tsx
7
- function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "down", root, rootMargin = "200px", threshold = 0, loader, endMessage, className, children }) {
7
+ function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "down", root, rootMargin = "200px", threshold = 0, loader, endMessage, className, children, ...props }) {
8
8
  const sentinelRef = React.useRef(null);
9
9
  const onLoadMoreRef = React.useRef(onLoadMore);
10
10
  React.useEffect(() => {
@@ -49,6 +49,7 @@ function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "d
49
49
  className: "h-px"
50
50
  });
51
51
  return /* @__PURE__ */ jsxs("div", {
52
+ ...props,
52
53
  "data-slot": "infinite-scroll",
53
54
  "aria-busy": isLoading,
54
55
  className: cn("flex flex-col", className),
@@ -1,6 +1,6 @@
1
1
  import { Button } from "./button.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
6
6
 
@@ -18,7 +18,7 @@ declare function InputGroup({
18
18
  ...props
19
19
  }: InputGroupProps): _$react_jsx_runtime0.JSX.Element;
20
20
  declare const inputGroupAddonVariants: (props?: ({
21
- align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
21
+ align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
22
22
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
23
23
  declare function InputGroupAddon({
24
24
  className,
@@ -26,7 +26,7 @@ declare function InputGroupAddon({
26
26
  ...props
27
27
  }: InputGroupAddonProps): _$react_jsx_runtime0.JSX.Element;
28
28
  declare const inputGroupButtonVariants: (props?: ({
29
- size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
29
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
30
30
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
31
31
  declare function InputGroupButton({
32
32
  className,
@@ -48,4 +48,4 @@ declare function InputGroupTextarea({
48
48
  ...props
49
49
  }: InputGroupTextareaProps): _$react_jsx_runtime0.JSX.Element;
50
50
  //#endregion
51
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
51
+ export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps, inputGroupAddonVariants, inputGroupButtonVariants };
@@ -3,7 +3,6 @@ import { cn } from "./lib/utils.js";
3
3
  import { Button } from "./button.js";
4
4
  import { Input } from "./input.js";
5
5
  import { Textarea } from "./textarea.js";
6
- import "react";
7
6
  import { jsx } from "react/jsx-runtime";
8
7
  import { cva } from "class-variance-authority";
9
8
  //#region src/input-group.tsx
@@ -77,4 +76,4 @@ function InputGroupTextarea({ className, ...props }) {
77
76
  });
78
77
  }
79
78
  //#endregion
80
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
79
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupAddonVariants, inputGroupButtonVariants };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
  import { OTPInput } from "input-otp";
4
4
 
5
5
  //#region src/input-otp.d.ts
@@ -30,4 +30,4 @@ declare function InputOTPSeparator({
30
30
  ...props
31
31
  }: InputOTPSeparatorProps): _$react_jsx_runtime0.JSX.Element;
32
32
  //#endregion
33
- export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
33
+ export { InputOTP, InputOTPGroup, type InputOTPGroupProps, type InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, InputOTPSlot, type InputOTPSlotProps };
package/dist/input-otp.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { MinusIcon } from "./lib/internal-icons.js";
4
- import * as React from "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as React from "react";
6
6
  import { OTPInput, OTPInputContext } from "input-otp";
7
7
  //#region src/input-otp.tsx
8
8
  function InputOTP({ className, containerClassName, ...props }) {
@@ -38,7 +38,7 @@ function InputOTPSeparator({ className, ...props }) {
38
38
  return /* @__PURE__ */ jsx("div", {
39
39
  "data-slot": "input-otp-separator",
40
40
  className: cn("flex items-center [&_svg:not([class*='size-'])]:size-4", className),
41
- role: "separator",
41
+ "aria-hidden": "true",
42
42
  ...props,
43
43
  children: /* @__PURE__ */ jsx(MinusIcon, {})
44
44
  });
package/dist/input.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Input as Input$1 } from "@base-ui/react/input";
3
4
 
4
5
  //#region src/input.d.ts
5
- type InputProps = React.ComponentProps<"input">;
6
+ type InputProps = React.ComponentProps<typeof Input$1>;
6
7
  declare function Input({
7
8
  className,
8
9
  type,
9
10
  ...props
10
11
  }: InputProps): _$react_jsx_runtime0.JSX.Element;
11
12
  //#endregion
12
- export { Input };
13
+ export { Input, type InputProps };
package/dist/input.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { cn } from "./lib/utils.js";
2
- import "react";
3
2
  import { jsx } from "react/jsx-runtime";
4
3
  import { Input as Input$1 } from "@base-ui/react/input";
5
4
  //#region src/input.tsx
package/dist/item.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Separator } from "./separator.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import { useRender } from "@base-ui/react/use-render";
6
6
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
@@ -8,10 +8,10 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
8
8
  //#region src/item.d.ts
9
9
  declare const itemVariants: (props?: ({
10
10
  variant?: "default" | "outline" | "muted" | null | undefined;
11
- size?: "default" | "xs" | "sm" | null | undefined;
11
+ size?: "default" | "sm" | "xs" | null | undefined;
12
12
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  declare const itemMediaVariants: (props?: ({
14
- variant?: "default" | "image" | "icon" | null | undefined;
14
+ variant?: "default" | "icon" | "image" | null | undefined;
15
15
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
16
16
  type ItemGroupProps = React.ComponentProps<"div">;
17
17
  type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
@@ -68,4 +68,4 @@ declare function ItemFooter({
68
68
  ...props
69
69
  }: ItemFooterProps): _$react_jsx_runtime0.JSX.Element;
70
70
  //#endregion
71
- export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
71
+ export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, type ItemSeparatorProps, ItemTitle, type ItemTitleProps, itemMediaVariants, itemVariants };
package/dist/item.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { Separator } from "./separator.js";
4
- import "react";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  import { cva } from "class-variance-authority";
7
6
  import { mergeProps } from "@base-ui/react/merge-props";
@@ -118,4 +117,4 @@ function ItemFooter({ className, ...props }) {
118
117
  });
119
118
  }
120
119
  //#endregion
121
- export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
120
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
package/dist/kbd.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/kbd.d.ts
5
5
  type KbdProps = React.ComponentProps<"kbd">;
package/dist/kbd.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { cn } from "./lib/utils.js";
2
- import "react";
3
2
  import { jsx } from "react/jsx-runtime";
4
3
  //#region src/kbd.tsx
5
4
  function Kbd({ className, ...props }) {
package/dist/label.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/label.d.ts
5
5
  type LabelProps = React.ComponentProps<"label">;
@@ -8,4 +8,4 @@ declare function Label({
8
8
  ...props
9
9
  }: LabelProps): _$react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
11
- export { Label };
11
+ export { Label, type LabelProps };
package/dist/label.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { cn } from "./lib/utils.js";
2
- import "react";
3
2
  import { jsx } from "react/jsx-runtime";
4
3
  //#region src/label.tsx
5
4
  function Label({ className, ...props }) {
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
 
4
4
  //#region src/lib/internal-icons.d.ts
5
5
  type IconProps = React.SVGProps<SVGSVGElement>;
@@ -1,4 +1,3 @@
1
- import "react";
2
1
  import { jsx, jsxs } from "react/jsx-runtime";
3
2
  //#region src/lib/internal-icons.tsx
4
3
  const SVG_BASE = {
package/dist/masonry.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
3
  import { HTMLMotionProps } from "motion/react";
4
4
 
5
5
  //#region src/masonry.d.ts
@@ -27,4 +27,4 @@ declare function MasonryItem({
27
27
  ...props
28
28
  }: MasonryItemProps): _$react_jsx_runtime0.JSX.Element;
29
29
  //#endregion
30
- export { Masonry, MasonryItem };
30
+ export { Masonry, MasonryItem, type MasonryItemProps, type MasonryProps };
package/dist/masonry.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { StarIcon } from "./lib/internal-icons.js";
4
- import * as React from "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as React from "react";
6
6
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
7
7
  //#region src/masonry.tsx
8
8
  const STAGGER_STEP = .05;
package/dist/menu.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RestoreFocusOnClose } from "./lib/focus.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import { Menu as Menu$1 } from "@base-ui/react/menu";
5
5
 
6
6
  //#region src/menu.d.ts
@@ -101,4 +101,4 @@ declare function MenuShortcut({
101
101
  ...props
102
102
  }: MenuShortcutProps): _$react_jsx_runtime0.JSX.Element;
103
103
  //#endregion
104
- export { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger };
104
+ export { Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, MenuPortal, type MenuPortalProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MenuShortcut, type MenuShortcutProps, MenuSub, MenuSubContent, type MenuSubContentProps, type MenuSubProps, MenuSubTrigger, type MenuSubTriggerProps, MenuTrigger, type MenuTriggerProps, type RestoreFocusOnClose };
package/dist/menu.js CHANGED
@@ -2,7 +2,6 @@
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { CheckIcon, ChevronRightIcon } from "./lib/internal-icons.js";
4
4
  import { resolveFinalFocus } from "./lib/focus.js";
5
- import "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { Menu as Menu$1 } from "@base-ui/react/menu";
8
7
  //#region src/menu.tsx
package/dist/menubar.d.ts CHANGED
@@ -1,6 +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 from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
5
5
 
6
6
  //#region src/menubar.d.ts
@@ -74,4 +74,4 @@ declare function MenubarSubContent({
74
74
  ...props
75
75
  }: MenubarSubContentProps): _$react_jsx_runtime0.JSX.Element;
76
76
  //#endregion
77
- export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
77
+ 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
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger } from "./menu.js";
4
- import "react";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
7
6
  //#region src/menubar.tsx
@@ -1,6 +1,6 @@
1
1
  import { Button } from "./button.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
 
5
5
  //#region src/pagination.d.ts
6
6
  type PaginationProps = React.ComponentProps<"nav">;
@@ -48,4 +48,4 @@ declare function PaginationEllipsis({
48
48
  ...props
49
49
  }: PaginationEllipsisProps): _$react_jsx_runtime0.JSX.Element;
50
50
  //#endregion
51
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
51
+ export { Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps };
@@ -1,12 +1,10 @@
1
1
  import { cn } from "./lib/utils.js";
2
2
  import { ChevronLeftIcon, ChevronRightIcon, EllipsisIcon } from "./lib/internal-icons.js";
3
3
  import { Button } from "./button.js";
4
- import "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  //#region src/pagination.tsx
7
6
  function Pagination({ className, ...props }) {
8
7
  return /* @__PURE__ */ jsx("nav", {
9
- role: "navigation",
10
8
  "aria-label": "pagination",
11
9
  "data-slot": "pagination",
12
10
  className: cn("mx-auto flex w-full justify-center", className),
package/dist/popover.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RestoreFocusOnClose } from "./lib/focus.js";
2
- import * as React from "react";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
  import { Popover as Popover$1 } from "@base-ui/react/popover";
5
5
 
6
6
  //#region src/popover.d.ts
@@ -20,6 +20,12 @@ type PopoverContentProps = React.ComponentProps<typeof Popover$1.Popup> & Pick<R
20
20
  * close doesn't keep it pinned visible. See {@link RestoreFocusOnClose}.
21
21
  */
22
22
  restoreFocusOnClose?: RestoreFocusOnClose;
23
+ /**
24
+ * Escape hatch to style the underlying Positioner (the anchored
25
+ * wrapper), e.g. to override its `z-index` or width constraints.
26
+ * Applied alongside the default `isolate z-50`.
27
+ */
28
+ positionerClassName?: string;
23
29
  };
24
30
  declare function Popover({
25
31
  ...props
@@ -40,6 +46,7 @@ declare function PopoverBackdrop({
40
46
  }: PopoverBackdropProps): _$react_jsx_runtime0.JSX.Element;
41
47
  declare function PopoverContent({
42
48
  className,
49
+ positionerClassName,
43
50
  align,
44
51
  alignOffset,
45
52
  side,
@@ -62,4 +69,4 @@ declare function PopoverDescription({
62
69
  ...props
63
70
  }: PopoverDescriptionProps): _$react_jsx_runtime0.JSX.Element;
64
71
  //#endregion
65
- export { Popover, PopoverBackdrop, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverPositioner, PopoverTitle, PopoverTrigger };
72
+ 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 };