@overmap-ai/blocks 1.0.44-gcs.4 → 1.0.44-gcs.5

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 (92) hide show
  1. package/dist/ActiveDescendantProvider/ActiveDescendantProvider.d.ts +7 -0
  2. package/dist/ActiveDescendantProvider/context.d.ts +8 -0
  3. package/dist/ActiveDescendantProvider/index.d.ts +2 -0
  4. package/dist/Avatar/typings.d.ts +1 -2
  5. package/dist/Badge/cva.d.ts +1 -1
  6. package/dist/Badge/typings.d.ts +3 -5
  7. package/dist/Buttons/cva.d.ts +1 -1
  8. package/dist/Buttons/typings.d.ts +4 -6
  9. package/dist/Card/typings.d.ts +2 -4
  10. package/dist/Checkbox/typings.d.ts +3 -5
  11. package/dist/CheckboxGroup/typings.d.ts +3 -5
  12. package/dist/CommandMenu/Content.d.ts +4 -3
  13. package/dist/CommandMenu/Empty.d.ts +1 -2
  14. package/dist/CommandMenu/Group.d.ts +1 -2
  15. package/dist/CommandMenu/GroupLabel.d.ts +4 -0
  16. package/dist/CommandMenu/Input.d.ts +1 -2
  17. package/dist/CommandMenu/Item.d.ts +2 -3
  18. package/dist/CommandMenu/Scroll.d.ts +4 -0
  19. package/dist/CommandMenu/Separator.d.ts +4 -3
  20. package/dist/CommandMenu/context.d.ts +7 -7
  21. package/dist/CommandMenu/cva.d.ts +4 -6
  22. package/dist/CommandMenu/index.d.ts +4 -2
  23. package/dist/CommandMenu/typings.d.ts +2 -4
  24. package/dist/DayPicker/typings.d.ts +3 -5
  25. package/dist/Dialog/Content.d.ts +2 -4
  26. package/dist/Dialog/typings.d.ts +4 -0
  27. package/dist/HoverCard/typings.d.ts +2 -4
  28. package/dist/Input/typings.d.ts +3 -5
  29. package/dist/Menu/CheckboxItem.d.ts +5 -1
  30. package/dist/Menu/CheckboxItemIndicator.d.ts +4 -1
  31. package/dist/Menu/ClickTrigger.d.ts +6 -1
  32. package/dist/Menu/Content.d.ts +4 -1
  33. package/dist/Menu/ContextTrigger.d.ts +6 -1
  34. package/dist/Menu/Group.d.ts +3 -1
  35. package/dist/Menu/InputField.d.ts +4 -1
  36. package/dist/Menu/InputRoot.d.ts +3 -1
  37. package/dist/Menu/InputSlot.d.ts +3 -1
  38. package/dist/Menu/Item.d.ts +13 -1
  39. package/dist/Menu/MultiSelectGroup.d.ts +4 -1
  40. package/dist/Menu/MultiSelectItem.d.ts +1 -1
  41. package/dist/Menu/PageContent.d.ts +4 -1
  42. package/dist/Menu/PageTrigger.d.ts +4 -1
  43. package/dist/Menu/Pages.d.ts +6 -1
  44. package/dist/Menu/Root.d.ts +12 -1
  45. package/dist/Menu/Scroll.d.ts +3 -1
  46. package/dist/Menu/SelectAllItem.d.ts +8 -1
  47. package/dist/Menu/SelectGroup.d.ts +3 -1
  48. package/dist/Menu/SelectItem.d.ts +4 -1
  49. package/dist/Menu/Separator.d.ts +4 -1
  50. package/dist/Menu/Sub.d.ts +13 -1
  51. package/dist/Menu/SubContent.d.ts +3 -1
  52. package/dist/Menu/SubTrigger.d.ts +3 -1
  53. package/dist/Menu/VirtualTrigger.d.ts +5 -1
  54. package/dist/Menu/cva.d.ts +0 -1
  55. package/dist/Menu/index.d.ts +25 -25
  56. package/dist/Menu/menuContentContext.d.ts +2 -3
  57. package/dist/Menu/menuPagesContext.d.ts +0 -1
  58. package/dist/Menu/rootContext.d.ts +0 -1
  59. package/dist/Menu/subContentContext.d.ts +0 -1
  60. package/dist/Menu/typings.d.ts +2 -103
  61. package/dist/MenuV2/typings.d.ts +2 -4
  62. package/dist/OneTimePasswordField/context.d.ts +3 -3
  63. package/dist/OneTimePasswordField/typings.d.ts +2 -4
  64. package/dist/Popover/typings.d.ts +2 -4
  65. package/dist/Progress/typings.d.ts +1 -2
  66. package/dist/Provider/Provider.d.ts +1 -1
  67. package/dist/Provider/context.d.ts +1 -1
  68. package/dist/Provider/index.d.ts +0 -1
  69. package/dist/RadioCards/context.d.ts +1 -1
  70. package/dist/RadioCards/typings.d.ts +1 -2
  71. package/dist/SegmentedControl/context.d.ts +1 -1
  72. package/dist/SegmentedControl/typings.d.ts +1 -2
  73. package/dist/SegmentedTabs/context.d.ts +1 -1
  74. package/dist/SegmentedTabs/typings.d.ts +1 -2
  75. package/dist/SelectContext/typings.d.ts +1 -0
  76. package/dist/Slider/typings.d.ts +1 -2
  77. package/dist/Switch/context.d.ts +1 -1
  78. package/dist/Switch/typings.d.ts +1 -2
  79. package/dist/TextArea/typings.d.ts +1 -2
  80. package/dist/ToggleButton/typings.d.ts +1 -2
  81. package/dist/ToggleGroup/context.d.ts +1 -1
  82. package/dist/ToggleGroup/typings.d.ts +1 -2
  83. package/dist/Tooltip/typings.d.ts +1 -2
  84. package/dist/blocks.js +1869 -1952
  85. package/dist/blocks.umd.cjs +1 -1
  86. package/dist/index.d.ts +0 -1
  87. package/dist/typings.d.ts +6 -1
  88. package/package.json +1 -1
  89. package/dist/CommandMenu/List.d.ts +0 -5
  90. package/dist/OvermapErrorBoundary/OvermapErrorBoundary.d.ts +0 -7
  91. package/dist/OvermapErrorBoundary/index.d.ts +0 -1
  92. package/dist/Provider/typings.d.ts +0 -1
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export interface ActiveDescendantProviderProps extends PropsWithChildren {
3
+ defaultActiveDescendantId?: string | null;
4
+ activeDescendantId?: string | null;
5
+ onActiveDescendantIdChange?: (id: string | null) => void;
6
+ }
7
+ export declare const ActiveDescendantProvider: import('react').NamedExoticComponent<ActiveDescendantProviderProps>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IActiveDescendantProvider {
3
+ activeDescendantId: string | null;
4
+ setActiveDescendantId: (activeDescendantId: string | null) => void;
5
+ registerActiveDescendant: (descendantId: string) => void;
6
+ }
7
+ export declare const ActiveDescendantContext: import('react').Context<IActiveDescendantProvider>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './ActiveDescendantProvider';
2
+ export * from './context';
@@ -1,6 +1,5 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentRadius } from '../Provider';
3
- import { AccentColorProps } from '../typings';
2
+ import { AccentColorProps, ComponentRadius } from '../typings';
4
3
  import { avatar, avatarFallback } from './cva';
5
4
  type Variants = VariantProps<typeof avatar> & VariantProps<typeof avatarFallback>;
6
5
  export type AvatarSize = NonNullable<Variants["size"]>;
@@ -1,5 +1,5 @@
1
1
  export declare const badge: (props?: ({
2
2
  icon?: boolean | null | undefined;
3
3
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
4
- variant?: "fill" | "solid" | "soft" | "outline" | "surface" | null | undefined;
4
+ variant?: "fill" | "solid" | "soft" | "outline" | "surface" | "pretty" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,10 +1,8 @@
1
- import { ComponentRadius } from '../Provider';
2
- import { AccentColorProps } from '../typings';
1
+ import { AccentColorProps, RadiusProps } from '../typings';
3
2
  export type BadgeSize = "xs" | "sm" | "md" | "lg" | "xl";
4
- export type BadgeVariant = "solid" | "soft" | "outline" | "surface" | "fill";
5
- export interface BadgeVariantProps extends AccentColorProps {
3
+ export type BadgeVariant = "solid" | "soft" | "outline" | "surface" | "fill" | "pretty";
4
+ export interface BadgeVariantProps extends AccentColorProps, RadiusProps {
6
5
  size?: BadgeSize;
7
6
  variant?: BadgeVariant;
8
- radius?: ComponentRadius;
9
7
  icon?: boolean;
10
8
  }
@@ -1,5 +1,5 @@
1
1
  export declare const buttonCva: (props?: ({
2
- variant?: "fill" | "solid" | "soft" | "outline" | "surface" | "ghost" | null | undefined;
2
+ variant?: "fill" | "solid" | "soft" | "outline" | "surface" | "ghost" | "pretty" | null | undefined;
3
3
  icon?: boolean | null | undefined;
4
4
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,9 +1,7 @@
1
- import { ComponentRadius } from '../Provider';
2
- import { AccentColorProps } from '../typings';
1
+ import { AccentColorProps, RadiusProps } from '../typings';
3
2
  export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
4
- export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost" | "fill";
5
- export interface ButtonVariantProps extends AccentColorProps {
6
- size?: ButtonSize;
3
+ export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost" | "fill" | "pretty";
4
+ export interface ButtonVariantProps extends AccentColorProps, RadiusProps {
7
5
  variant?: ButtonVariant;
8
- radius?: ComponentRadius;
6
+ size?: ButtonSize;
9
7
  }
@@ -1,13 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentRadius } from '../Provider';
3
- import { AccentColorProps } from '../typings';
2
+ import { AccentColorProps, RadiusProps } from '../typings';
4
3
  import { cardCva } from './cva';
5
4
  type CardVariants = VariantProps<typeof cardCva>;
6
5
  export type CardSize = NonNullable<CardVariants["size"]>;
7
6
  export type CardVariant = NonNullable<CardVariants["variant"]>;
8
- export interface CardVariantProps extends AccentColorProps {
7
+ export interface CardVariantProps extends AccentColorProps, RadiusProps {
9
8
  size?: CardSize;
10
9
  variant?: CardVariant;
11
- radius?: ComponentRadius;
12
10
  }
13
11
  export {};
@@ -1,13 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentRadius } from '../Provider';
3
- import { AccentColorProps } from '../typings';
2
+ import { AccentColorProps, RadiusProps } from '../typings';
4
3
  import { checkbox } from './cva';
5
4
  type Variants = VariantProps<typeof checkbox>;
6
5
  export type CheckboxSize = NonNullable<Variants["size"]>;
7
6
  export type CheckboxVariant = NonNullable<Variants["variant"]>;
8
- export interface CheckboxVariantProps extends AccentColorProps {
9
- size?: CheckboxSize;
7
+ export interface CheckboxVariantProps extends AccentColorProps, RadiusProps {
10
8
  variant?: CheckboxVariant;
11
- radius?: ComponentRadius;
9
+ size?: CheckboxSize;
12
10
  }
13
11
  export {};
@@ -1,9 +1,7 @@
1
- import { ComponentRadius } from '../Provider';
2
- import { AccentColorProps } from '../typings';
1
+ import { AccentColorProps, RadiusProps } from '../typings';
3
2
  export type CheckboxGroupSize = "xs" | "sm" | "md" | "lg" | "xl";
4
3
  export type CheckboxGroupVariant = "surface" | "soft" | "outline";
5
- export interface CheckboxGroupVariantProps extends AccentColorProps {
6
- size?: CheckboxGroupSize;
4
+ export interface CheckboxGroupVariantProps extends AccentColorProps, RadiusProps {
7
5
  variant?: CheckboxGroupVariant;
8
- radius?: ComponentRadius;
6
+ size?: CheckboxGroupSize;
9
7
  }
@@ -1,7 +1,8 @@
1
- import { DialogContentProps, DialogPortalProps } from '@radix-ui/react-dialog';
2
- import { CommandRoot } from 'cmdk';
1
+ import { DialogContent, DialogPortalProps } from '@radix-ui/react-dialog';
3
2
  import { ComponentPropsWithRef } from 'react';
4
3
  import { CommandMenuVariantProps } from './typings';
5
- export interface CommandMenuContentProps extends ComponentPropsWithRef<typeof CommandRoot>, Pick<DialogContentProps, "forceMount" | "onOpenAutoFocus" | "onCloseAutoFocus" | "onEscapeKeyDown" | "onPointerDownOutside" | "onInteractOutside">, Pick<DialogPortalProps, "container">, CommandMenuVariantProps {
4
+ export interface CommandMenuContentProps extends ComponentPropsWithRef<typeof DialogContent>, Pick<DialogPortalProps, "container">, CommandMenuVariantProps {
5
+ title: string;
6
+ description?: string;
6
7
  }
7
8
  export declare const CommandMenuContent: import('react').NamedExoticComponent<CommandMenuContentProps>;
@@ -1,5 +1,4 @@
1
- import { CommandEmpty } from 'cmdk';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- export interface CommandMenuEmptyProps extends ComponentPropsWithRef<typeof CommandEmpty> {
2
+ export interface CommandMenuEmptyProps extends ComponentPropsWithRef<"div"> {
4
3
  }
5
4
  export declare const CommandMenuEmpty: import('react').NamedExoticComponent<CommandMenuEmptyProps>;
@@ -1,5 +1,4 @@
1
- import { CommandGroup } from 'cmdk';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- export interface CommandMenuGroupProps extends ComponentPropsWithRef<typeof CommandGroup> {
2
+ export interface CommandMenuGroupProps extends ComponentPropsWithRef<"div"> {
4
3
  }
5
4
  export declare const CommandMenuGroup: import('react').NamedExoticComponent<CommandMenuGroupProps>;
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface CommandMenuGroupLabelProps extends ComponentPropsWithRef<"div"> {
3
+ }
4
+ export declare const CommandMenuGroupLabel: import('react').NamedExoticComponent<CommandMenuGroupLabelProps>;
@@ -1,5 +1,4 @@
1
- import { CommandInput } from 'cmdk';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- export interface CommandMenuInputProps extends ComponentPropsWithRef<typeof CommandInput> {
2
+ export interface CommandMenuInputProps extends ComponentPropsWithRef<"input"> {
4
3
  }
5
4
  export declare const CommandMenuInput: import('react').NamedExoticComponent<CommandMenuInputProps>;
@@ -1,8 +1,7 @@
1
- import { CommandItem } from 'cmdk';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- export interface CommandMenuItemProps extends Omit<ComponentPropsWithRef<typeof CommandItem>, "value" | "onSelect"> {
2
+ export interface CommandMenuItemProps extends Omit<ComponentPropsWithRef<"div">, "value" | "onSelect"> {
4
3
  closeOnSelect?: boolean;
5
- filterValue?: string;
4
+ disabled?: boolean;
6
5
  onSelect?: () => void;
7
6
  }
8
7
  export declare const CommandMenuItem: import('react').NamedExoticComponent<CommandMenuItemProps>;
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface CommandMenuScrollProps extends ComponentPropsWithRef<"div"> {
3
+ }
4
+ export declare const CommandMenuScroll: import('react').NamedExoticComponent<CommandMenuScrollProps>;
@@ -1,6 +1,7 @@
1
- import { CommandSeparator } from 'cmdk';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- export interface CommandMenuSeparatorProps extends ComponentPropsWithRef<typeof CommandSeparator> {
4
- spacing?: boolean;
2
+ import * as RadixSeparator from "@radix-ui/react-separator";
3
+ export interface CommandMenuSeparatorProps extends ComponentPropsWithRef<typeof RadixSeparator.Root> {
4
+ spaceBelow?: boolean;
5
+ spaceAbove?: boolean;
5
6
  }
6
7
  export declare const CommandMenuSeparator: import('react').NamedExoticComponent<CommandMenuSeparatorProps>;
@@ -1,20 +1,20 @@
1
- import { ComponentRadius } from '../Provider';
1
+ import { ComponentRadius } from '../typings';
2
2
  import { CheckedState, CommandMenuSize, CommandMenuVariant, CommandMenuVariantProps } from './typings';
3
- export interface ICommandMenuContext extends Required<CommandMenuVariantProps> {
3
+ export interface ICommandMenuContentContext extends Required<CommandMenuVariantProps> {
4
4
  size: CommandMenuSize;
5
5
  variant: CommandMenuVariant;
6
6
  radius: ComponentRadius;
7
7
  }
8
- export declare const CommandMenuContext: import('react').Context<ICommandMenuContext>;
8
+ export declare const CommandMenuContentContext: import('react').Context<ICommandMenuContentContext>;
9
9
  export declare const SelectedIndicatorContext: import('react').Context<boolean>;
10
10
  export declare const CheckboxIndicatorContext: import('react').Context<CheckedState>;
11
- export interface IMenuPagesContext {
11
+ export interface ICommandMenuPagesContext {
12
12
  page: string;
13
13
  setPage: (page: string) => void;
14
14
  }
15
- export declare const CommandMenuPageContext: import('react').Context<IMenuPagesContext>;
16
- export interface ICommandMenuDialogContext {
15
+ export declare const CommandMenuPageContext: import('react').Context<ICommandMenuPagesContext>;
16
+ export interface ICommandMenuRootContext {
17
17
  open: boolean;
18
18
  setOpen: (open: boolean) => void;
19
19
  }
20
- export declare const CommandMenuDialogContext: import('react').Context<ICommandMenuDialogContext>;
20
+ export declare const CommandMenuRootContext: import('react').Context<ICommandMenuRootContext>;
@@ -2,24 +2,22 @@ export declare const commandMenuContentCva: (props?: ({
2
2
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const commandMenuOverlayCva: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
5
- export declare const commandMenuListCva: (props?: ({
6
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const commandMenuScrollCva: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
8
6
  export declare const commandMenuInputCva: (props?: ({
9
7
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
10
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
9
  export declare const commandMenuSeparatorCva: (props?: ({
12
- spacing?: boolean | null | undefined;
10
+ spaceAbove?: boolean | null | undefined;
11
+ spaceBelow?: boolean | null | undefined;
13
12
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
14
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
15
14
  export declare const commandMenuItemCva: (props?: ({
16
15
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
17
16
  variant?: "solid" | "soft" | null | undefined;
18
- radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
19
17
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
20
18
  export declare const commandMenuEmptyCva: (props?: ({
21
19
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
22
20
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
23
- export declare const commandMenuGroupCva: (props?: ({
21
+ export declare const commandMenuGroupLabelCva: (props?: ({
24
22
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
25
23
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -6,7 +6,6 @@ export * from './Empty';
6
6
  export * from './Group';
7
7
  export * from './Input';
8
8
  export * from './Item';
9
- export * from './List';
10
9
  export * from './MultiSelectGroup';
11
10
  export * from './MultiSelectItem';
12
11
  export * from './Overlay';
@@ -20,6 +19,8 @@ export * from './SelectAllItem';
20
19
  export * from './SelectedIndicator';
21
20
  export * from './Separator';
22
21
  export * from './Trigger';
22
+ export * from './GroupLabel';
23
+ export * from './Scroll';
23
24
  export type * from './typings';
24
25
  export declare const CommandMenu: {
25
26
  Root: import('react').NamedExoticComponent<import('./Root').CommandMenuRootProps>;
@@ -27,11 +28,12 @@ export declare const CommandMenu: {
27
28
  Content: import('react').NamedExoticComponent<import('./Content').CommandMenuContentProps>;
28
29
  Trigger: import('react').NamedExoticComponent<import('./Trigger').CommandMenuTriggerProps>;
29
30
  Input: import('react').NamedExoticComponent<import('./Input').CommandMenuInputProps>;
30
- List: import('react').NamedExoticComponent<import('./List').CommandMenuListProps>;
31
31
  Group: import('react').NamedExoticComponent<import('./Group').CommandMenuGroupProps>;
32
32
  Item: import('react').NamedExoticComponent<import('./Item').CommandMenuItemProps>;
33
33
  Separator: import('react').NamedExoticComponent<import('./Separator').CommandMenuSeparatorProps>;
34
34
  Empty: import('react').NamedExoticComponent<import('./Empty').CommandMenuEmptyProps>;
35
+ GroupLabel: import('react').NamedExoticComponent<import('./GroupLabel').CommandMenuGroupLabelProps>;
36
+ Scroll: import('react').NamedExoticComponent<import('./Scroll').CommandMenuScrollProps>;
35
37
  MultiSelectGroup: <TValue>(props: import('./MultiSelectGroup').CommandMenuMultiSelectGroupProps<TValue>) => import("react/jsx-runtime").JSX.Element;
36
38
  MultiSelectItem: <TValue_1>(props: import('./MultiSelectItem').CommandMenuMultiSelectItemProps<TValue_1>) => import("react/jsx-runtime").JSX.Element;
37
39
  SelectAllItem: <TValue_2>(props: import('./SelectAllItem').CommandMenuSelectAllItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,8 @@
1
- import { ComponentRadius } from '../Provider';
2
- import { AccentColorProps } from '../typings';
1
+ import { AccentColorProps, RadiusProps } from '../typings';
3
2
  export type CommandMenuVariant = "soft" | "solid";
4
3
  export type CommandMenuSize = "xs" | "sm" | "md" | "lg" | "xl";
5
- export interface CommandMenuVariantProps extends AccentColorProps {
4
+ export interface CommandMenuVariantProps extends AccentColorProps, RadiusProps {
6
5
  variant?: CommandMenuVariant;
7
6
  size?: CommandMenuSize;
8
- radius?: ComponentRadius;
9
7
  }
10
8
  export type CheckedState = boolean | "indeterminate";
@@ -1,13 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { AccentColorProps } from '../typings';
3
- import { ComponentRadius } from '../Provider';
2
+ import { AccentColorProps, RadiusProps } from '../typings';
4
3
  import { dayButtonCva } from './cva';
5
4
  type DayPickerVariants = VariantProps<typeof dayButtonCva>;
6
5
  export type DayPickerSize = NonNullable<DayPickerVariants["size"]>;
7
6
  export type DayPickerVariant = NonNullable<DayPickerVariants["variant"]>;
8
- export interface DayPickerVariantProps extends AccentColorProps {
9
- size?: DayPickerSize;
7
+ export interface DayPickerVariantProps extends AccentColorProps, RadiusProps {
10
8
  variant?: DayPickerVariant;
11
- radius?: ComponentRadius;
9
+ size?: DayPickerSize;
12
10
  }
13
11
  export {};
@@ -1,10 +1,8 @@
1
1
  import { ComponentPropsWithRef, ReactNode } from 'react';
2
- import { AlertDialogSize } from '../AlertDialog';
3
- import { CloseDialogWithOptions } from './typings';
2
+ import { CloseDialogWithOptions, DialogVariantProps } from './typings';
4
3
  import * as RadixDialog from "@radix-ui/react-dialog";
5
- export interface DialogContentProps extends Omit<ComponentPropsWithRef<typeof RadixDialog.Content>, "children"> {
4
+ export interface DialogContentProps extends Omit<ComponentPropsWithRef<typeof RadixDialog.Content>, "children">, DialogVariantProps {
6
5
  container?: RadixDialog.DialogPortalProps["container"];
7
- size?: AlertDialogSize;
8
6
  children: ReactNode | ((close: CloseDialogWithOptions) => ReactNode);
9
7
  }
10
8
  /**
@@ -1,4 +1,5 @@
1
1
  import { DialogProps as RadixDialogProps } from '@radix-ui/react-dialog';
2
+ import { AlertDialogSize } from '../AlertDialog';
2
3
  /** Triggers the dialog to close */
3
4
  export type CloseDialog = () => void;
4
5
  export interface CloseDialogOptions {
@@ -15,3 +16,6 @@ export interface DialogProps extends RadixDialogProps {
15
16
  * the `onClose` callback executes when the `confirmClose` callback is called. */
16
17
  onClose?: () => void;
17
18
  }
19
+ export interface DialogVariantProps {
20
+ size?: AlertDialogSize;
21
+ }
@@ -1,11 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentRadius } from '../Provider';
3
- import { AccentColorProps } from '../typings';
2
+ import { AccentColorProps, RadiusProps } from '../typings';
4
3
  import { hoverCardContent } from './cva';
5
4
  type Variants = VariantProps<typeof hoverCardContent>;
6
5
  export type HoverCardSize = NonNullable<Variants["size"]>;
7
- export interface HoverCardVariantProps extends AccentColorProps {
6
+ export interface HoverCardVariantProps extends AccentColorProps, RadiusProps {
8
7
  size?: HoverCardSize;
9
- radius?: ComponentRadius;
10
8
  }
11
9
  export {};
@@ -1,13 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentRadius } from '../Provider';
3
- import { AccentColorProps } from '../typings';
2
+ import { AccentColorProps, RadiusProps } from '../typings';
4
3
  import { inputRoot } from './cva';
5
4
  type Variants = VariantProps<typeof inputRoot>;
6
5
  export type InputSize = NonNullable<Variants["size"]>;
7
6
  export type InputVariant = NonNullable<Variants["variant"]>;
8
- export interface InputVariantProps extends AccentColorProps {
9
- size?: InputSize;
7
+ export interface InputVariantProps extends AccentColorProps, RadiusProps {
10
8
  variant?: InputVariant;
11
- radius?: ComponentRadius;
9
+ size?: InputSize;
12
10
  }
13
11
  export {};
@@ -1,2 +1,6 @@
1
- import { MenuCheckboxItemProps } from './typings';
1
+ import { MenuItemProps } from './Item';
2
+ export interface MenuCheckboxItemProps extends MenuItemProps {
3
+ checked: boolean | "indeterminate";
4
+ onCheckedChange: (checked: boolean) => void;
5
+ }
2
6
  export declare const MenuCheckboxItem: import('react').NamedExoticComponent<MenuCheckboxItemProps>;
@@ -1,2 +1,5 @@
1
- import { MenuCheckboxIndicatorProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { CheckedIndicatorProps } from '../CheckedIndicator';
3
+ export interface MenuCheckboxIndicatorProps extends Omit<ComponentPropsWithRef<"span">, "children">, CheckedIndicatorProps {
4
+ }
2
5
  export declare const MenuCheckboxItemIndicator: import('react').NamedExoticComponent<MenuCheckboxIndicatorProps>;
@@ -1,4 +1,9 @@
1
- import { MenuClickTriggerProps } from './typings';
1
+ import { ReactElement, RefObject } from 'react';
2
+ export interface MenuClickTriggerProps {
3
+ children: ReactElement;
4
+ disabled?: boolean;
5
+ ref?: RefObject<HTMLElement>;
6
+ }
2
7
  /**
3
8
  * Trigger component that opens menu on click interaction.
4
9
  * Automatically sets up click event handling and accessibility attributes.
@@ -1,4 +1,7 @@
1
- import { MenuContentProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { MenuVariantProps } from './typings';
3
+ export interface MenuContentProps extends ComponentPropsWithRef<"ul">, MenuVariantProps {
4
+ }
2
5
  /**
3
6
  * Content container for menu items with floating positioning and focus management.
4
7
  * Handles keyboard navigation, styling variants, and portal rendering.
@@ -1,2 +1,7 @@
1
- import { MenuContextTriggerProps } from './typings';
1
+ import { ReactElement, RefObject } from 'react';
2
+ export interface MenuContextTriggerProps {
3
+ children: ReactElement;
4
+ disabled?: boolean;
5
+ ref?: RefObject<HTMLElement>;
6
+ }
2
7
  export declare const MenuContextTrigger: import('react').NamedExoticComponent<MenuContextTriggerProps>;
@@ -1,2 +1,4 @@
1
- import { MenuGroupProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface MenuGroupProps extends ComponentPropsWithRef<"div"> {
3
+ }
2
4
  export declare const MenuGroup: import('react').NamedExoticComponent<MenuGroupProps>;
@@ -1,2 +1,5 @@
1
- import { MenuInputProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface MenuInputProps extends ComponentPropsWithRef<"input"> {
3
+ onValueChange?: (value: string) => void;
4
+ }
2
5
  export declare const MenuInputField: import('react').NamedExoticComponent<MenuInputProps>;
@@ -1,2 +1,4 @@
1
- import { MenuInputRootProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface MenuInputRootProps extends ComponentPropsWithRef<"div"> {
3
+ }
2
4
  export declare const MenuInputRoot: import('react').NamedExoticComponent<MenuInputRootProps>;
@@ -1,2 +1,4 @@
1
- import { MenuInputSlotProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface MenuInputSlotProps extends ComponentPropsWithRef<"div"> {
3
+ }
2
4
  export declare const MenuInputSlot: import('react').NamedExoticComponent<MenuInputSlotProps>;
@@ -1,4 +1,15 @@
1
- import { MenuItemProps } from './typings';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ export interface MenuItemMeta {
3
+ active: boolean;
4
+ selected: boolean;
5
+ }
6
+ type ActiveAndSelectedItemCallback<T> = (meta: MenuItemMeta) => T;
7
+ export interface MenuItemProps extends Omit<ComponentPropsWithRef<"li">, "children" | "value"> {
8
+ disabled?: boolean;
9
+ children: ReactNode | ActiveAndSelectedItemCallback<ReactNode>;
10
+ closeOnSelect?: boolean;
11
+ onSelect?: () => void;
12
+ }
2
13
  /**
3
14
  * Individual menu item component with keyboard navigation and selection handling.
4
15
  * Supports both static content and render functions that receive active/selected state.
@@ -9,3 +20,4 @@ import { MenuItemProps } from './typings';
9
20
  * @param children - Static content or function receiving {active, selected} state
10
21
  */
11
22
  export declare const MenuItem: import('react').NamedExoticComponent<MenuItemProps>;
23
+ export {};
@@ -1,2 +1,5 @@
1
- import { MenuMultiSelectGroupProps } from './typings';
1
+ import { MultiSelectProps } from '../SelectContext/typings';
2
+ import { MenuGroupProps } from './Group';
3
+ export interface MenuMultiSelectGroupProps<TValue> extends MenuGroupProps, MultiSelectProps<TValue> {
4
+ }
2
5
  export declare const MenuMultiSelectGroup: <TValue>(props: MenuMultiSelectGroupProps<TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { MenuSelectItemProps } from './typings';
1
+ import { MenuSelectItemProps } from './SelectItem';
2
2
  export declare const MenuMultiSelectItem: <TValue>(props: MenuSelectItemProps<TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
- import { MenuPageContentProps } from './typings';
1
+ import { PropsWithChildren } from 'react';
2
+ export interface MenuPageContentProps extends PropsWithChildren {
3
+ page: string;
4
+ }
2
5
  export declare const MenuPageContent: import('react').NamedExoticComponent<MenuPageContentProps>;
@@ -1,2 +1,5 @@
1
- import { MenuPageTriggerProps } from './typings';
1
+ import { MenuItemProps } from './Item';
2
+ export interface MenuPageTriggerProps extends Omit<MenuItemProps, "closeOnSelect"> {
3
+ page: string;
4
+ }
2
5
  export declare const MenuPageTrigger: import('react').NamedExoticComponent<MenuPageTriggerProps>;
@@ -1,2 +1,7 @@
1
- import { MenuPageProps } from './typings';
1
+ import { PropsWithChildren } from 'react';
2
+ export interface MenuPageProps extends PropsWithChildren {
3
+ defaultPage?: string;
4
+ page?: string;
5
+ onPageChange?: (page: string) => void;
6
+ }
2
7
  export declare const MenuPages: import('react').NamedExoticComponent<MenuPageProps>;
@@ -1,4 +1,15 @@
1
- import { MenuRootProps } from './typings';
1
+ import { PropsWithChildren } from 'react';
2
+ import { MenuAlignment, MenuSide } from './typings';
3
+ export interface MenuRootProps extends PropsWithChildren {
4
+ open?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ defaultOpen?: boolean;
7
+ side?: MenuSide;
8
+ align?: MenuAlignment;
9
+ offset?: number;
10
+ loop?: boolean;
11
+ modal?: boolean;
12
+ }
2
13
  /**
3
14
  * Root component for menu that manages floating UI positioning and interactions.
4
15
  * Provides context for all menu-related components with advanced keyboard navigation.
@@ -1,2 +1,4 @@
1
- import { MenuScrollProps } from './typings';
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface MenuScrollProps extends ComponentPropsWithRef<"div"> {
3
+ }
2
4
  export declare const MenuScroll: import('react').NamedExoticComponent<MenuScrollProps>;
@@ -1,2 +1,9 @@
1
- import { SelectAllItemProps } from './typings';
1
+ import { ReactNode } from 'react';
2
+ import { MenuItemProps } from './Item';
3
+ export interface SelectAllItemProps extends Omit<MenuItemProps, "children"> {
4
+ children: ReactNode | ((meta: {
5
+ active: boolean;
6
+ selected: boolean | "indeterminate";
7
+ }) => ReactNode);
8
+ }
2
9
  export declare const MenuSelectAllItem: <TValue>(props: SelectAllItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,4 @@
1
- import { MenuSelectGroupProps } from './typings';
1
+ import { SingleSelectProps } from '../SelectContext/typings';
2
+ import { MenuGroupProps } from './Group';
3
+ export type MenuSelectGroupProps<TValue> = MenuGroupProps & SingleSelectProps<TValue>;
2
4
  export declare const MenuSelectGroup: <TValue>(props: MenuSelectGroupProps<TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
- import { MenuSelectItemProps } from './typings';
1
+ import { MenuItemProps } from './Item';
2
+ export interface MenuSelectItemProps<TValue> extends MenuItemProps {
3
+ value: TValue;
4
+ }
2
5
  export declare const MenuSelectItem: <TValue>(props: MenuSelectItemProps<TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
- import { MenuSeparatorProps } from './typings';
1
+ import { Root } from '@radix-ui/react-separator';
2
+ import { ComponentPropsWithRef } from 'react';
3
+ export interface MenuSeparatorProps extends ComponentPropsWithRef<typeof Root> {
4
+ }
2
5
  export declare const MenuSeparator: import('react').NamedExoticComponent<MenuSeparatorProps>;
@@ -1,2 +1,14 @@
1
- import { MenuSubProps } from './typings';
1
+ import { PropsWithChildren } from 'react';
2
+ import { MenuAlignment, MenuSide } from './typings';
3
+ export interface MenuSubProps extends PropsWithChildren {
4
+ disabled?: boolean;
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ defaultOpen?: boolean;
8
+ side?: MenuSide;
9
+ align?: MenuAlignment;
10
+ closeRoot?: boolean;
11
+ loop?: boolean;
12
+ modal?: boolean;
13
+ }
2
14
  export declare const MenuSub: import('react').NamedExoticComponent<MenuSubProps>;