@overmap-ai/blocks 0.0.1-alpha.44 → 0.0.1-alpha.46
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/ButtonGroup/typings.d.ts +1 -1
- package/dist/Buttons/typings.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +27 -0
- package/dist/MultiSelect/MultiSelectItem.d.ts +14 -0
- package/dist/MultiSelect/index.d.ts +1 -0
- package/dist/blocks.js +446 -359
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@ export interface ButtonGroupProps extends Omit<ComponentProps<typeof Flex>, keyo
|
|
|
14
14
|
/** The variant of the ButtonGroup, will be applied to all Buttons contained within the ButtonGroup
|
|
15
15
|
* @default "solid"
|
|
16
16
|
* */
|
|
17
|
-
variant?:
|
|
17
|
+
variant?: Variant;
|
|
18
18
|
/** The severity of the ButtonGroup, will be applied to all Buttons contained within the ButtonGroup
|
|
19
19
|
* @default "primary"
|
|
20
20
|
* */
|
|
@@ -8,7 +8,7 @@ export interface ButtonProps extends Omit<RadixButtonProps, "size" | "color" | "
|
|
|
8
8
|
/** @default false */
|
|
9
9
|
fluid?: boolean;
|
|
10
10
|
/** @default solid */
|
|
11
|
-
variant?:
|
|
11
|
+
variant?: Variant;
|
|
12
12
|
/** @default primary */
|
|
13
13
|
severity?: Severity;
|
|
14
14
|
size?: Responsive<Size>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Select } from "@radix-ui/themes";
|
|
2
|
+
import { ComponentProps, FC } from "react";
|
|
3
|
+
import { Severity, Size } from "../typings";
|
|
4
|
+
import { MultiSelectOption } from "./MultiSelectItem";
|
|
5
|
+
type RadixTriggerProps = ComponentProps<typeof Select.Trigger>;
|
|
6
|
+
export interface MultiSelectProps {
|
|
7
|
+
value: string[];
|
|
8
|
+
onValueChange: (value: string[]) => void;
|
|
9
|
+
options: MultiSelectOption[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** @default medium */
|
|
12
|
+
size?: Size;
|
|
13
|
+
name?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
/** @default surface */
|
|
17
|
+
variant?: Exclude<RadixTriggerProps["variant"], "classic">;
|
|
18
|
+
radius?: RadixTriggerProps["radius"];
|
|
19
|
+
/** @default primary */
|
|
20
|
+
severity?: Severity;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `MultiSelect` does not support being used as an uncontrolled component,
|
|
24
|
+
* hence `onValueChange` and `value` are required.
|
|
25
|
+
*/
|
|
26
|
+
export declare const MultiSelect: FC<MultiSelectProps>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { SizeMapping } from "../constants";
|
|
3
|
+
import { Size } from "../typings";
|
|
4
|
+
import { Responsive } from "@radix-ui/themes";
|
|
5
|
+
export interface MultiSelectOption {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
interface MultiSelectItemProps extends MultiSelectOption {
|
|
10
|
+
checked: boolean;
|
|
11
|
+
size?: Responsive<(typeof SizeMapping)[Size]>;
|
|
12
|
+
}
|
|
13
|
+
export declare const MultiSelectItem: FC<MultiSelectItemProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MultiSelect";
|