@waveso/ui 0.8.1 → 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 (67) hide show
  1. package/dist/accordion.d.ts +1 -1
  2. package/dist/action-bar.d.ts +5 -1
  3. package/dist/action-bar.js +4 -0
  4. package/dist/alert-dialog.d.ts +4 -2
  5. package/dist/alert-dialog.js +6 -2
  6. package/dist/alert.d.ts +1 -1
  7. package/dist/alert.js +1 -1
  8. package/dist/animate.d.ts +14 -4
  9. package/dist/autocomplete.d.ts +1 -1
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/badge.d.ts +2 -2
  12. package/dist/breadcrumb.d.ts +1 -1
  13. package/dist/button-group.d.ts +1 -1
  14. package/dist/button.d.ts +3 -3
  15. package/dist/button.js +2 -0
  16. package/dist/card.d.ts +1 -1
  17. package/dist/checkbox.d.ts +1 -1
  18. package/dist/collapsible.d.ts +1 -1
  19. package/dist/combobox.d.ts +8 -7
  20. package/dist/context-menu.d.ts +1 -1
  21. package/dist/dialog.d.ts +4 -7
  22. package/dist/dialog.js +3 -7
  23. package/dist/direction.d.ts +7 -2
  24. package/dist/drawer.d.ts +6 -1
  25. package/dist/drawer.js +31 -28
  26. package/dist/encrypted-text.d.ts +1 -1
  27. package/dist/form.d.ts +1 -1
  28. package/dist/infinite-scroll.d.ts +4 -5
  29. package/dist/infinite-scroll.js +2 -1
  30. package/dist/input-group.d.ts +3 -3
  31. package/dist/input-group.js +1 -1
  32. package/dist/input-otp.d.ts +1 -1
  33. package/dist/input.d.ts +3 -2
  34. package/dist/item.d.ts +3 -3
  35. package/dist/item.js +1 -1
  36. package/dist/label.d.ts +1 -1
  37. package/dist/masonry.d.ts +1 -1
  38. package/dist/menu.d.ts +1 -1
  39. package/dist/menubar.d.ts +1 -1
  40. package/dist/pagination.d.ts +1 -1
  41. package/dist/popover.d.ts +8 -1
  42. package/dist/popover.js +2 -2
  43. package/dist/preview-card.d.ts +5 -2
  44. package/dist/preview-card.js +2 -2
  45. package/dist/progress.d.ts +1 -1
  46. package/dist/progress.js +3 -3
  47. package/dist/radio-group.d.ts +1 -1
  48. package/dist/radio.d.ts +1 -1
  49. package/dist/scroll-area.d.ts +1 -1
  50. package/dist/select.d.ts +1 -1
  51. package/dist/separator.d.ts +1 -1
  52. package/dist/sidebar.d.ts +73 -50
  53. package/dist/sidebar.js +1 -1
  54. package/dist/skeleton.d.ts +1 -1
  55. package/dist/slider.d.ts +1 -1
  56. package/dist/spinner.d.ts +1 -1
  57. package/dist/switch.d.ts +1 -1
  58. package/dist/table.d.ts +1 -1
  59. package/dist/tabs.d.ts +1 -1
  60. package/dist/textarea.d.ts +1 -1
  61. package/dist/toast.d.ts +6 -5
  62. package/dist/toast.js +1 -1
  63. package/dist/toggle-group.d.ts +1 -1
  64. package/dist/toggle-group.js +6 -6
  65. package/dist/toggle.d.ts +1 -1
  66. package/dist/tooltip.d.ts +1 -1
  67. package/package.json +1 -1
@@ -26,4 +26,4 @@ declare function AccordionContent({
26
26
  ...props
27
27
  }: AccordionContentProps): _$react_jsx_runtime0.JSX.Element;
28
28
  //#endregion
29
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
29
+ export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps };
@@ -24,7 +24,7 @@ interface ActionBarProviderProps {
24
24
  * users get) when guarded navigation is blocked.
25
25
  */
26
26
  blockedMessage?: string;
27
- /** Additional className for the bar's outer wrapper. */
27
+ /** Additional className for the bar's inner content box (`data-slot="action-bar-content"`). */
28
28
  className?: string;
29
29
  }
30
30
  /**
@@ -38,6 +38,10 @@ interface ActionBarProviderProps {
38
38
  * - Navigation guard with Discord-style page jiggle
39
39
  * - `beforeunload` guard for browser close/refresh
40
40
  *
41
+ * @remarks
42
+ * Requires the optional `motion` peer dependency for its enter/exit
43
+ * transition. Install `motion` alongside `@waveso/ui` to use this component.
44
+ *
41
45
  * @example
42
46
  * ```tsx
43
47
  * // Root layout — once
@@ -35,6 +35,10 @@ const ActionBarContext = React.createContext(null);
35
35
  * - Navigation guard with Discord-style page jiggle
36
36
  * - `beforeunload` guard for browser close/refresh
37
37
  *
38
+ * @remarks
39
+ * Requires the optional `motion` peer dependency for its enter/exit
40
+ * transition. Install `motion` alongside `@waveso/ui` to use this component.
41
+ *
38
42
  * @example
39
43
  * ```tsx
40
44
  * // Root layout — once
@@ -16,7 +16,7 @@ type AlertDialogFooterProps = React.ComponentProps<"div">;
16
16
  type AlertDialogMediaProps = React.ComponentProps<"div">;
17
17
  type AlertDialogTitleProps = React.ComponentProps<typeof AlertDialog$1.Title>;
18
18
  type AlertDialogDescriptionProps = React.ComponentProps<typeof AlertDialog$1.Description>;
19
- type AlertDialogActionProps = React.ComponentProps<typeof Button>;
19
+ type AlertDialogActionProps = React.ComponentProps<typeof AlertDialog$1.Close> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">;
20
20
  type AlertDialogCancelProps = React.ComponentProps<typeof AlertDialog$1.Close> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">;
21
21
  declare function AlertDialog({
22
22
  ...props
@@ -58,6 +58,8 @@ declare function AlertDialogDescription({
58
58
  }: AlertDialogDescriptionProps): _$react_jsx_runtime0.JSX.Element;
59
59
  declare function AlertDialogAction({
60
60
  className,
61
+ variant,
62
+ size,
61
63
  ...props
62
64
  }: AlertDialogActionProps): _$react_jsx_runtime0.JSX.Element;
63
65
  declare function AlertDialogCancel({
@@ -67,4 +69,4 @@ declare function AlertDialogCancel({
67
69
  ...props
68
70
  }: AlertDialogCancelProps): _$react_jsx_runtime0.JSX.Element;
69
71
  //#endregion
70
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
72
+ export { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogFooterProps, AlertDialogHeader, AlertDialogHeaderProps, AlertDialogMedia, AlertDialogMediaProps, AlertDialogOverlay, AlertDialogOverlayProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerProps };
@@ -73,10 +73,14 @@ function AlertDialogDescription({ className, ...props }) {
73
73
  ...props
74
74
  });
75
75
  }
76
- function AlertDialogAction({ className, ...props }) {
77
- return /* @__PURE__ */ jsx(Button, {
76
+ function AlertDialogAction({ className, variant, size, ...props }) {
77
+ return /* @__PURE__ */ jsx(AlertDialog$1.Close, {
78
78
  "data-slot": "alert-dialog-action",
79
79
  className,
80
+ render: /* @__PURE__ */ jsx(Button, {
81
+ variant,
82
+ size
83
+ }),
80
84
  ...props
81
85
  });
82
86
  }
package/dist/alert.d.ts CHANGED
@@ -29,4 +29,4 @@ declare function AlertAction({
29
29
  ...props
30
30
  }: AlertActionProps): _$react_jsx_runtime0.JSX.Element;
31
31
  //#endregion
32
- export { Alert, AlertAction, AlertDescription, AlertTitle };
32
+ export { Alert, AlertAction, AlertActionProps, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps, alertVariants };
package/dist/alert.js CHANGED
@@ -40,4 +40,4 @@ function AlertAction({ className, ...props }) {
40
40
  });
41
41
  }
42
42
  //#endregion
43
- export { Alert, AlertAction, AlertDescription, AlertTitle };
43
+ export { Alert, AlertAction, AlertDescription, AlertTitle, alertVariants };
package/dist/animate.d.ts CHANGED
@@ -1,10 +1,20 @@
1
1
  import * as _$react from "react";
2
2
  import { ReactElement } from "react";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
- import { Transition } from "motion/react";
5
4
 
6
5
  //#region src/animate.d.ts
7
6
  type Direction = "up" | "down" | "left" | "right";
7
+ /**
8
+ * Transition override for the entrance components. Only the two fields that map
9
+ * cleanly onto a CSS transition are supported — `duration` (seconds) and `ease`
10
+ * (a CSS `<timing-function>` string, e.g. `"ease-out"` or `"cubic-bezier(…)"`).
11
+ * motion/react's full `Transition` type (springs, keyframe arrays, camelCase
12
+ * eases) would silently produce invalid CSS here, so it is intentionally narrowed.
13
+ */
14
+ type AnimateTransition = {
15
+ duration?: number;
16
+ ease?: string;
17
+ };
8
18
  interface AnimateOnViewProps {
9
19
  children: ReactElement;
10
20
  /** Delay in seconds before animation starts. Default: 0 */
@@ -26,7 +36,7 @@ interface AnimateOnViewProps {
26
36
  /** Trigger once or every time it enters view. Default: true */
27
37
  once?: boolean;
28
38
  /** Custom transition override */
29
- transition?: Transition;
39
+ transition?: AnimateTransition;
30
40
  }
31
41
  interface AnimateInProps {
32
42
  children: ReactElement;
@@ -47,7 +57,7 @@ interface AnimateInProps {
47
57
  /** Spring easing with overshoot. Default: false */
48
58
  spring?: boolean;
49
59
  /** Custom transition override */
50
- transition?: Transition;
60
+ transition?: AnimateTransition;
51
61
  }
52
62
  interface StaggerProps {
53
63
  children: ReactElement[];
@@ -189,4 +199,4 @@ declare function Float({
189
199
  paused
190
200
  }: FloatProps): _$react_jsx_runtime0.JSX.Element;
191
201
  //#endregion
192
- export { AnimateIn, type AnimateInProps, AnimateOnView, type AnimateOnViewProps, type Direction, Float, type FloatProps, Pulse, type PulseProps, Stagger, type StaggerProps };
202
+ export { AnimateIn, type AnimateInProps, AnimateOnView, type AnimateOnViewProps, type AnimateTransition, type Direction, Float, type FloatProps, Pulse, type PulseProps, Stagger, type StaggerProps };
@@ -110,4 +110,4 @@ declare function AutocompleteContent({
110
110
  ...props
111
111
  }: AutocompleteContentProps): _$react_jsx_runtime0.JSX.Element;
112
112
  //#endregion
113
- export { Autocomplete, AutocompleteArrow, AutocompleteBackdrop, AutocompleteClear, AutocompleteCollection, AutocompleteContent, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteIcon, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompletePortal, AutocompletePositioner, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue };
113
+ export { Autocomplete, AutocompleteArrow, AutocompleteArrowProps, AutocompleteBackdrop, AutocompleteBackdropProps, AutocompleteClear, AutocompleteClearProps, AutocompleteCollection, AutocompleteCollectionProps, AutocompleteContent, AutocompleteContentProps, AutocompleteEmpty, AutocompleteEmptyProps, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteGroupLabelProps, AutocompleteGroupProps, AutocompleteIcon, AutocompleteIconProps, AutocompleteInput, AutocompleteInputProps, AutocompleteItem, AutocompleteItemProps, AutocompleteList, AutocompleteListProps, AutocompletePopup, AutocompletePopupProps, AutocompletePortal, AutocompletePortalProps, AutocompletePositioner, AutocompletePositionerProps, AutocompleteProps, AutocompleteRow, AutocompleteRowProps, AutocompleteSeparator, AutocompleteSeparatorProps, AutocompleteStatus, AutocompleteStatusProps, AutocompleteTrigger, AutocompleteTriggerProps, AutocompleteValue, AutocompleteValueProps };
package/dist/avatar.d.ts CHANGED
@@ -37,4 +37,4 @@ declare function AvatarGroupCount({
37
37
  ...props
38
38
  }: AvatarGroupCountProps): _$react_jsx_runtime0.JSX.Element;
39
39
  //#endregion
40
- export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
40
+ export { Avatar, AvatarBadge, AvatarBadgeProps, AvatarFallback, AvatarFallbackProps, AvatarGroup, AvatarGroupCount, AvatarGroupCountProps, AvatarGroupProps, AvatarImage, AvatarImageProps, AvatarProps };
package/dist/badge.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
5
5
 
6
6
  //#region src/badge.d.ts
7
7
  declare const badgeVariants: (props?: ({
8
- variant?: "default" | "success" | "destructive" | "warning" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
8
+ variant?: "default" | "destructive" | "link" | "outline" | "success" | "warning" | "secondary" | "ghost" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  type BadgeProps = useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>;
11
11
  declare function Badge({
@@ -15,4 +15,4 @@ declare function Badge({
15
15
  ...props
16
16
  }: BadgeProps): _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>>;
17
17
  //#endregion
18
- export { Badge, badgeVariants };
18
+ export { Badge, BadgeProps, badgeVariants };
@@ -40,4 +40,4 @@ declare function BreadcrumbEllipsis({
40
40
  ...props
41
41
  }: BreadcrumbEllipsisProps): _$react_jsx_runtime0.JSX.Element;
42
42
  //#endregion
43
- export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
43
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbList, BreadcrumbListProps, BreadcrumbPage, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps };
@@ -28,4 +28,4 @@ declare function ButtonGroupSeparator({
28
28
  ...props
29
29
  }: ButtonGroupSeparatorProps): _$react_jsx_runtime0.JSX.Element;
30
30
  //#endregion
31
- export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
31
+ export { ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupSeparatorProps, ButtonGroupText, ButtonGroupTextProps, buttonGroupVariants };
package/dist/button.d.ts CHANGED
@@ -6,8 +6,8 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
6
6
 
7
7
  //#region src/button.d.ts
8
8
  declare const buttonVariants: (props?: ({
9
- variant?: "default" | "success" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
10
- size?: "default" | "xs" | "sm" | "lg" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
9
+ variant?: "default" | "destructive" | "link" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
10
+ size?: "default" | "icon" | "sm" | "xs" | "lg" | "xl" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
11
11
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
12
12
  type ButtonProps = React.ComponentProps<typeof Button$1> & VariantProps<typeof buttonVariants>;
13
13
  declare function Button({
@@ -17,4 +17,4 @@ declare function Button({
17
17
  ...props
18
18
  }: ButtonProps): _$react_jsx_runtime0.JSX.Element;
19
19
  //#endregion
20
- export { Button, buttonVariants };
20
+ export { Button, ButtonProps, buttonVariants };
package/dist/button.js CHANGED
@@ -36,6 +36,8 @@ const buttonVariants = cva("cursor-clickable focus-visible:border-focus focus-vi
36
36
  function Button({ className, variant = "default", size = "default", ...props }) {
37
37
  return /* @__PURE__ */ jsx(Button$1, {
38
38
  "data-slot": "button",
39
+ "data-variant": variant,
40
+ "data-size": size,
39
41
  nativeButton: props.render ? false : void 0,
40
42
  className: cn(buttonVariants({
41
43
  variant,
package/dist/card.d.ts CHANGED
@@ -41,4 +41,4 @@ declare function CardFooter({
41
41
  ...props
42
42
  }: CardFooterProps): _$react_jsx_runtime0.JSX.Element;
43
43
  //#endregion
44
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
44
+ export { Card, CardAction, CardActionProps, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps };
@@ -9,4 +9,4 @@ declare function Checkbox({
9
9
  ...props
10
10
  }: CheckboxProps): _$react_jsx_runtime0.JSX.Element;
11
11
  //#endregion
12
- export { Checkbox };
12
+ export { Checkbox, CheckboxProps };
@@ -17,4 +17,4 @@ declare function CollapsibleContent({
17
17
  ...props
18
18
  }: CollapsibleContentProps): _$react_jsx_runtime0.JSX.Element;
19
19
  //#endregion
20
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
20
+ export { Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps };
@@ -7,7 +7,8 @@ type ComboboxProps = React.ComponentProps<typeof Combobox$1.Root>;
7
7
  type ComboboxValueProps = React.ComponentProps<typeof Combobox$1.Value>;
8
8
  type ComboboxTriggerProps = React.ComponentProps<typeof Combobox$1.Trigger>;
9
9
  type ComboboxClearProps = React.ComponentProps<typeof Combobox$1.Clear>;
10
- type ComboboxInputProps = React.ComponentProps<typeof Combobox$1.Input>;
10
+ type ComboboxInputBaseProps = React.ComponentProps<typeof Combobox$1.Input>;
11
+ type ComboboxPortalProps = React.ComponentProps<typeof Combobox$1.Portal>;
11
12
  type ComboboxPositionerProps = React.ComponentProps<typeof Combobox$1.Positioner>;
12
13
  type ComboboxPopupProps = React.ComponentProps<typeof Combobox$1.Popup>;
13
14
  type ComboboxListProps = React.ComponentProps<typeof Combobox$1.List>;
@@ -18,13 +19,13 @@ type ComboboxCollectionProps = React.ComponentProps<typeof Combobox$1.Collection
18
19
  type ComboboxEmptyProps = React.ComponentProps<typeof Combobox$1.Empty>;
19
20
  type ComboboxSeparatorProps = React.ComponentProps<typeof Combobox$1.Separator>;
20
21
  type ComboboxChipsProps = React.ComponentProps<typeof Combobox$1.Chips>;
21
- type ComboboxChipProps = React.ComponentProps<typeof Combobox$1.Chip>;
22
+ type ComboboxChipBaseProps = React.ComponentProps<typeof Combobox$1.Chip>;
22
23
  type ComboboxChipsInputProps = React.ComponentProps<typeof Combobox$1.Input>;
23
- type ComboboxInputWrapperProps = ComboboxInputProps & {
24
+ type ComboboxInputProps = ComboboxInputBaseProps & {
24
25
  showTrigger?: boolean;
25
26
  showClear?: boolean;
26
27
  };
27
- type ComboboxChipWrapperProps = ComboboxChipProps & {
28
+ type ComboboxChipProps = ComboboxChipBaseProps & {
28
29
  showRemove?: boolean;
29
30
  };
30
31
  type ComboboxContentProps = ComboboxPopupProps & Pick<ComboboxPositionerProps, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">;
@@ -50,7 +51,7 @@ declare function ComboboxInput({
50
51
  showTrigger,
51
52
  showClear,
52
53
  ...props
53
- }: ComboboxInputWrapperProps): _$react_jsx_runtime0.JSX.Element;
54
+ }: ComboboxInputProps): _$react_jsx_runtime0.JSX.Element;
54
55
  declare function ComboboxContent({
55
56
  className,
56
57
  side,
@@ -97,11 +98,11 @@ declare function ComboboxChip({
97
98
  children,
98
99
  showRemove,
99
100
  ...props
100
- }: ComboboxChipWrapperProps): _$react_jsx_runtime0.JSX.Element;
101
+ }: ComboboxChipProps): _$react_jsx_runtime0.JSX.Element;
101
102
  declare function ComboboxChipsInput({
102
103
  className,
103
104
  ...props
104
105
  }: ComboboxChipsInputProps): _$react_jsx_runtime0.JSX.Element;
105
106
  declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
106
107
  //#endregion
107
- export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
108
+ export { Combobox, ComboboxChip, ComboboxChipProps, ComboboxChips, ComboboxChipsInput, ComboboxChipsInputProps, ComboboxChipsProps, ComboboxClear, ComboboxClearProps, ComboboxCollection, ComboboxCollectionProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxLabel, ComboboxLabelProps, ComboboxList, ComboboxListProps, ComboboxPortalProps, ComboboxPositionerProps, ComboboxProps, ComboboxSeparator, ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerProps, ComboboxValue, ComboboxValueProps, useComboboxAnchor };
@@ -104,4 +104,4 @@ declare function ContextMenuShortcut({
104
104
  ...props
105
105
  }: ContextMenuShortcutProps): _$react_jsx_runtime0.JSX.Element;
106
106
  //#endregion
107
- export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
107
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemProps, ContextMenuContent, ContextMenuContentProps, ContextMenuGroup, ContextMenuGroupProps, ContextMenuItem, ContextMenuItemProps, ContextMenuLabel, ContextMenuLabelProps, ContextMenuPortal, ContextMenuPortalProps, ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioGroupProps, ContextMenuRadioItem, ContextMenuRadioItemProps, ContextMenuSeparator, ContextMenuSeparatorProps, ContextMenuShortcut, ContextMenuShortcutProps, ContextMenuSub, ContextMenuSubContent, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTrigger, ContextMenuSubTriggerProps, ContextMenuTrigger, ContextMenuTriggerProps, type RestoreFocusOnClose };
package/dist/dialog.d.ts CHANGED
@@ -26,9 +26,8 @@ type DialogDescriptionProps = React.ComponentProps<typeof Dialog$1.Description>;
26
26
  type DialogContentProps = DialogPopupProps & {
27
27
  showCloseButton?: boolean;
28
28
  };
29
- type DialogFooterProps = React.ComponentProps<"div"> & {
30
- showCloseButton?: boolean;
31
- };
29
+ type DialogHeaderProps = React.ComponentProps<"div">;
30
+ type DialogFooterProps = React.ComponentProps<"div">;
32
31
  declare function Dialog({
33
32
  disablePointerDismissal,
34
33
  ...props
@@ -55,11 +54,9 @@ declare function DialogContent({
55
54
  declare function DialogHeader({
56
55
  className,
57
56
  ...props
58
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
57
+ }: DialogHeaderProps): _$react_jsx_runtime0.JSX.Element;
59
58
  declare function DialogFooter({
60
59
  className,
61
- showCloseButton,
62
- children,
63
60
  ...props
64
61
  }: DialogFooterProps): _$react_jsx_runtime0.JSX.Element;
65
62
  declare function DialogTitle({
@@ -71,4 +68,4 @@ declare function DialogDescription({
71
68
  ...props
72
69
  }: DialogDescriptionProps): _$react_jsx_runtime0.JSX.Element;
73
70
  //#endregion
74
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
71
+ export { Dialog, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPopupProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps };
package/dist/dialog.js CHANGED
@@ -64,15 +64,11 @@ function DialogHeader({ className, ...props }) {
64
64
  ...props
65
65
  });
66
66
  }
67
- function DialogFooter({ className, showCloseButton = false, children, ...props }) {
68
- return /* @__PURE__ */ jsxs("div", {
67
+ function DialogFooter({ className, ...props }) {
68
+ return /* @__PURE__ */ jsx("div", {
69
69
  "data-slot": "dialog-footer",
70
70
  className: cn("bg-secondary/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-lg border-t border-line p-4 sm:flex-row sm:justify-end", className),
71
- ...props,
72
- children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
73
- render: /* @__PURE__ */ jsx(Button, { variant: "outline" }),
74
- children: "Close"
75
- })]
71
+ ...props
76
72
  });
77
73
  }
78
74
  function DialogTitle({ className, ...props }) {
@@ -1,2 +1,7 @@
1
- import { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
2
- export { DirectionProvider, useDirection };
1
+ import * as React from "react";
2
+ import { DirectionProvider, DirectionProvider as DirectionProvider$1, useDirection } from "@base-ui/react/direction-provider";
3
+
4
+ //#region src/direction.d.ts
5
+ type DirectionProviderProps = React.ComponentProps<typeof DirectionProvider$1>;
6
+ //#endregion
7
+ export { DirectionProvider, DirectionProviderProps, useDirection };
package/dist/drawer.d.ts CHANGED
@@ -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, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOverlay, DrawerOverlayProps, DrawerPopupProps, DrawerPortal, DrawerPortalProps, DrawerProps, DrawerTitle, DrawerTitleProps, DrawerTrigger, DrawerTriggerProps, DrawerViewport, DrawerViewportProps };
package/dist/drawer.js CHANGED
@@ -37,35 +37,38 @@ function DrawerOverlay({ className, ...props }) {
37
37
  ...props
38
38
  });
39
39
  }
40
- function DrawerContent({ className, children, showCloseButton = false, ...props }) {
41
- return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(Drawer$1.Viewport, {
40
+ function DrawerViewport({ className, ...props }) {
41
+ return /* @__PURE__ */ jsx(Drawer$1.Viewport, {
42
42
  "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"
43
+ className: cn("fixed inset-0 z-50 outline-hidden", className),
44
+ ...props
45
+ });
46
+ }
47
+ function DrawerContent({ className, children, showCloseButton = false, ...props }) {
48
+ return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(DrawerViewport, { children: /* @__PURE__ */ jsxs(Drawer$1.Popup, {
49
+ "data-slot": "drawer-content",
50
+ 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),
51
+ ...props,
52
+ children: [
53
+ /* @__PURE__ */ jsx("div", {
54
+ "data-slot": "drawer-drag-handle",
55
+ className: "bg-secondary mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[swipe-direction=down]/drawer-content:block"
56
+ }),
57
+ children,
58
+ showCloseButton && /* @__PURE__ */ jsxs(Drawer$1.Close, {
59
+ "data-slot": "drawer-close",
60
+ render: /* @__PURE__ */ jsx(Button, {
61
+ variant: "ghost",
62
+ className: "absolute top-2 right-2",
63
+ size: "icon-sm"
52
64
  }),
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
- })] });
65
+ children: [/* @__PURE__ */ jsx(CloseIcon, {}), /* @__PURE__ */ jsx("span", {
66
+ className: "sr-only",
67
+ children: "Close"
68
+ })]
69
+ })
70
+ ]
71
+ }) })] });
69
72
  }
70
73
  function DrawerHeader({ className, ...props }) {
71
74
  return /* @__PURE__ */ jsx("div", {
@@ -96,4 +99,4 @@ function DrawerDescription({ className, ...props }) {
96
99
  });
97
100
  }
98
101
  //#endregion
99
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
102
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DrawerViewport };
@@ -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, EncryptedTextProps };
package/dist/form.d.ts CHANGED
@@ -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 };
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
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
- export { InfiniteScroll, type InfiniteScrollProps };
31
+ export { InfiniteScroll, InfiniteScrollProps };
@@ -4,7 +4,7 @@ import { Spinner } from "./spinner.js";
4
4
  import * as React from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
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),
@@ -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, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps, inputGroupAddonVariants, inputGroupButtonVariants };
@@ -77,4 +77,4 @@ function InputGroupTextarea({ className, ...props }) {
77
77
  });
78
78
  }
79
79
  //#endregion
80
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
80
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupAddonVariants, inputGroupButtonVariants };
@@ -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, InputOTPGroupProps, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps };
package/dist/input.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import * as React from "react";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
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, InputProps };
package/dist/item.d.ts CHANGED
@@ -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, ItemActionsProps, ItemContent, ItemContentProps, ItemDescription, ItemDescriptionProps, ItemFooter, ItemFooterProps, ItemGroup, ItemGroupProps, ItemHeader, ItemHeaderProps, ItemMedia, ItemMediaProps, ItemProps, ItemSeparator, ItemSeparatorProps, ItemTitle, ItemTitleProps, itemMediaVariants, itemVariants };
package/dist/item.js CHANGED
@@ -118,4 +118,4 @@ function ItemFooter({ className, ...props }) {
118
118
  });
119
119
  }
120
120
  //#endregion
121
- export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
121
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
package/dist/label.d.ts CHANGED
@@ -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, LabelProps };