@overmap-ai/blocks 1.0.48-all-values-select-all-option.1 → 1.0.48-cmd-menu-updates.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.
- package/dist/ActiveDescendantProvider/ActiveDescendantProvider.d.ts +7 -0
- package/dist/ActiveDescendantProvider/context.d.ts +8 -0
- package/dist/ActiveDescendantProvider/index.d.ts +2 -0
- package/dist/Buttons/cva.d.ts +1 -1
- package/dist/Buttons/typings.d.ts +1 -1
- package/dist/CommandMenu/Content.d.ts +4 -3
- package/dist/CommandMenu/Empty.d.ts +1 -2
- package/dist/CommandMenu/Group.d.ts +1 -2
- package/dist/CommandMenu/GroupLabel.d.ts +4 -0
- package/dist/CommandMenu/Input.d.ts +1 -2
- package/dist/CommandMenu/Item.d.ts +2 -3
- package/dist/CommandMenu/Scroll.d.ts +4 -0
- package/dist/CommandMenu/Separator.d.ts +4 -3
- package/dist/CommandMenu/context.d.ts +6 -6
- package/dist/CommandMenu/cva.d.ts +4 -6
- package/dist/CommandMenu/index.d.ts +4 -2
- package/dist/Menu/cva.d.ts +0 -1
- package/dist/blocks.js +1792 -1878
- package/dist/blocks.umd.cjs +1 -1
- package/package.json +1 -2
- package/dist/CommandMenu/List.d.ts +0 -5
|
@@ -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 {};
|
package/dist/Buttons/cva.d.ts
CHANGED
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { ComponentRadius } from '../Provider';
|
|
2
2
|
import { AccentColorProps } from '../typings';
|
|
3
3
|
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
-
export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost" | "fill";
|
|
4
|
+
export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost" | "fill" | "pretty";
|
|
5
5
|
export interface ButtonVariantProps extends AccentColorProps {
|
|
6
6
|
size?: ButtonSize;
|
|
7
7
|
variant?: ButtonVariant;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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<
|
|
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<
|
|
2
|
+
export interface CommandMenuGroupProps extends ComponentPropsWithRef<"div"> {
|
|
4
3
|
}
|
|
5
4
|
export declare const CommandMenuGroup: import('react').NamedExoticComponent<CommandMenuGroupProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CommandInput } from 'cmdk';
|
|
2
1
|
import { ComponentPropsWithRef } from 'react';
|
|
3
|
-
export interface CommandMenuInputProps extends ComponentPropsWithRef<
|
|
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<
|
|
2
|
+
export interface CommandMenuItemProps extends Omit<ComponentPropsWithRef<"div">, "value" | "onSelect"> {
|
|
4
3
|
closeOnSelect?: boolean;
|
|
5
|
-
|
|
4
|
+
disabled?: boolean;
|
|
6
5
|
onSelect?: () => void;
|
|
7
6
|
}
|
|
8
7
|
export declare const CommandMenuItem: import('react').NamedExoticComponent<CommandMenuItemProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CommandSeparator } from 'cmdk';
|
|
2
1
|
import { ComponentPropsWithRef } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
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
1
|
import { ComponentRadius } from '../Provider';
|
|
2
2
|
import { CheckedState, CommandMenuSize, CommandMenuVariant, CommandMenuVariantProps } from './typings';
|
|
3
|
-
export interface
|
|
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
|
|
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
|
|
11
|
+
export interface ICommandMenuPagesContext {
|
|
12
12
|
page: string;
|
|
13
13
|
setPage: (page: string) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const CommandMenuPageContext: import('react').Context<
|
|
16
|
-
export interface
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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;
|
package/dist/Menu/cva.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare const menuSeparator: (props?: ({
|
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
export declare const menuContent: (props?: ({
|
|
12
12
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
13
|
-
radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
14
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
14
|
export declare const menuOverlay: (props?: ({
|
|
16
15
|
modal?: boolean | null | undefined;
|