@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,6 +1,6 @@
1
- import * as React from "react";
2
1
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
3
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as React from "react";
4
4
 
5
5
  //#region src/accordion.d.ts
6
6
  type AccordionProps = React.ComponentProps<typeof Accordion$1.Root>;
@@ -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, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
package/dist/accordion.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { ChevronDownIcon, ChevronUpIcon } from "./lib/internal-icons.js";
4
- import "react";
5
4
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  //#region src/accordion.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/action-bar.d.ts
5
5
  /** State a form registers with the ActionBar. */
@@ -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
@@ -79,4 +83,4 @@ declare function useActionBar(id: string, entry: ActionBarEntry): void;
79
83
  */
80
84
  declare function useActionBarGuard(navigate: (href: string) => void): (href: string) => boolean;
81
85
  //#endregion
82
- export { ActionBarEntry, ActionBarProvider, ActionBarProviderProps, useActionBar, useActionBarGuard };
86
+ export { type ActionBarEntry, ActionBarProvider, type ActionBarProviderProps, useActionBar, useActionBarGuard };
@@ -3,8 +3,8 @@ import { cn } from "./lib/utils.js";
3
3
  import { Button } from "./button.js";
4
4
  import { Spinner } from "./spinner.js";
5
5
  import { Kbd } from "./kbd.js";
6
- import * as React from "react";
7
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ import * as React from "react";
8
8
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
9
9
  //#region src/action-bar.tsx
10
10
  const JIGGLE_STEPS = 6;
@@ -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
@@ -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 { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
5
5
 
6
6
  //#region src/alert-dialog.d.ts
@@ -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, 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 };
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { Button } from "./button.js";
4
- import "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
7
6
  //#region src/alert-dialog.tsx
@@ -73,10 +72,14 @@ function AlertDialogDescription({ className, ...props }) {
73
72
  ...props
74
73
  });
75
74
  }
76
- function AlertDialogAction({ className, ...props }) {
77
- return /* @__PURE__ */ jsx(Button, {
75
+ function AlertDialogAction({ className, variant, size, ...props }) {
76
+ return /* @__PURE__ */ jsx(AlertDialog$1.Close, {
78
77
  "data-slot": "alert-dialog-action",
79
78
  className,
79
+ render: /* @__PURE__ */ jsx(Button, {
80
+ variant,
81
+ size
82
+ }),
80
83
  ...props
81
84
  });
82
85
  }
package/dist/alert.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 { VariantProps } from "class-variance-authority";
4
4
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
@@ -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, type AlertActionProps, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, alertVariants };
package/dist/alert.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 { cva } from "class-variance-authority";
5
4
  //#region src/alert.tsx
@@ -40,4 +39,4 @@ function AlertAction({ className, ...props }) {
40
39
  });
41
40
  }
42
41
  //#endregion
43
- export { Alert, AlertAction, AlertDescription, AlertTitle };
42
+ export { Alert, AlertAction, AlertDescription, AlertTitle, alertVariants };
package/dist/animate.d.ts CHANGED
@@ -1,10 +1,20 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
1
2
  import * as _$react from "react";
2
3
  import { ReactElement } from "react";
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 };
package/dist/animate.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { Children, cloneElement, isValidElement, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
3
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { Children, cloneElement, isValidElement, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
4
4
  import { useInView, useReducedMotion } from "motion/react";
5
5
  //#region src/animate.tsx
6
6
  /**
@@ -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/aspect-ratio.d.ts
5
5
  type AspectRatioProps = React.ComponentProps<"div"> & {
@@ -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/aspect-ratio.tsx
5
4
  function AspectRatio({ ratio, 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
  import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
4
4
 
5
5
  //#region src/autocomplete.d.ts
@@ -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, 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,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 { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
6
5
  //#region src/autocomplete.tsx
package/dist/avatar.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 { Avatar as Avatar$1 } from "@base-ui/react/avatar";
4
4
 
5
5
  //#region src/avatar.d.ts
@@ -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, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps };
package/dist/avatar.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 { Avatar as Avatar$1 } from "@base-ui/react/avatar";
6
5
  //#region src/avatar.tsx
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" | "outline" | "link" | "destructive" | "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, type BadgeProps, badgeVariants };
@@ -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 { useRender } from "@base-ui/react/use-render";
4
4
 
5
5
  //#region src/breadcrumb.d.ts
@@ -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, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps };
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { ChevronRightIcon, EllipsisIcon } from "./lib/internal-icons.js";
4
- import "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { mergeProps } from "@base-ui/react/merge-props";
7
6
  import { useRender } from "@base-ui/react/use-render";
@@ -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";
@@ -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, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, buttonGroupVariants };
@@ -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";
package/dist/button.d.ts CHANGED
@@ -1,13 +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
3
  import { Button as Button$1 } from "@base-ui/react/button";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
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" | "outline" | "link" | "destructive" | "success" | "secondary" | "ghost" | null | undefined;
10
+ size?: "default" | "sm" | "xs" | "icon" | "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, type ButtonProps, buttonVariants };
package/dist/button.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 { Button as Button$1 } from "@base-ui/react/button";
6
5
  import { cva } from "class-variance-authority";
@@ -36,6 +35,8 @@ const buttonVariants = cva("cursor-clickable focus-visible:border-focus focus-vi
36
35
  function Button({ className, variant = "default", size = "default", ...props }) {
37
36
  return /* @__PURE__ */ jsx(Button$1, {
38
37
  "data-slot": "button",
38
+ "data-variant": variant,
39
+ "data-size": size,
39
40
  nativeButton: props.render ? false : void 0,
40
41
  className: cn(buttonVariants({
41
42
  variant,
package/dist/card.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/card.d.ts
5
5
  type CardProps = React.ComponentProps<"div"> & {
@@ -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, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps };
package/dist/card.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/card.tsx
5
4
  function Card({ className, size = "default", ...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
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
4
4
 
5
5
  //#region src/checkbox.d.ts
@@ -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, type CheckboxProps };
package/dist/checkbox.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "./lib/utils.js";
3
3
  import { CheckIcon, MinusIcon } from "./lib/internal-icons.js";
4
- import "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
7
6
  //#region src/checkbox.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
  import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
4
4
 
5
5
  //#region src/collapsible.d.ts
@@ -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, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps };
@@ -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 { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
6
5
  //#region src/collapsible.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
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
4
4
 
5
5
  //#region src/combobox.d.ts
@@ -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, type ComboboxChipProps, ComboboxChips, ComboboxChipsInput, type ComboboxChipsInputProps, type ComboboxChipsProps, ComboboxClear, type ComboboxClearProps, ComboboxCollection, type ComboboxCollectionProps, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxLabel, type ComboboxLabelProps, ComboboxList, type ComboboxListProps, type ComboboxPortalProps, type ComboboxPositionerProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, ComboboxValue, type ComboboxValueProps, useComboboxAnchor };
package/dist/combobox.js CHANGED
@@ -3,8 +3,8 @@ import { cn } from "./lib/utils.js";
3
3
  import { CheckIcon, ChevronDownIcon, CloseIcon } from "./lib/internal-icons.js";
4
4
  import { Button } from "./button.js";
5
5
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group.js";
6
- import * as React from "react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import * as React from "react";
8
8
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
9
9
  //#region src/combobox.tsx
10
10
  function Combobox({ ...props }) {
@@ -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 { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
5
5
 
6
6
  //#region src/context-menu.d.ts
@@ -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, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, type ContextMenuGroupProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuPortalProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuShortcut, type ContextMenuShortcutProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, type RestoreFocusOnClose };
@@ -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 { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
8
7
  //#region src/context-menu.tsx
package/dist/count.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ReactElement } from "react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ReactElement } from "react";
3
3
 
4
4
  //#region src/count.d.ts
5
5
  interface CountProps {
package/dist/count.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { cloneElement, isValidElement, useEffect, useRef, useState } from "react";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import { cloneElement, isValidElement, useEffect, useRef, useState } from "react";
4
4
  import { useInView, useReducedMotion } from "motion/react";
5
5
  //#region src/count.tsx
6
6
  /** Cubic ease-out: fast start, smooth deceleration */
7
7
  function easeOut(t) {
8
- return 1 - Math.pow(1 - t, 3);
8
+ return 1 - (1 - t) ** 3;
9
9
  }
10
10
  function formatCountdown(ms) {
11
11
  if (ms <= 0) return "00:00:00";
package/dist/dialog.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 { Dialog as Dialog$1 } from "@base-ui/react/dialog";
4
4
 
5
5
  //#region src/dialog.d.ts
@@ -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, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, type DialogPopupProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
package/dist/dialog.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 { Dialog as Dialog$1 } from "@base-ui/react/dialog";
8
7
  //#region src/dialog.tsx
@@ -64,15 +63,11 @@ function DialogHeader({ className, ...props }) {
64
63
  ...props
65
64
  });
66
65
  }
67
- function DialogFooter({ className, showCloseButton = false, children, ...props }) {
68
- return /* @__PURE__ */ jsxs("div", {
66
+ function DialogFooter({ className, ...props }) {
67
+ return /* @__PURE__ */ jsx("div", {
69
68
  "data-slot": "dialog-footer",
70
69
  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
- })]
70
+ ...props
76
71
  });
77
72
  }
78
73
  function DialogTitle({ className, ...props }) {