@overmap-ai/blocks 0.0.1-alpha.35 → 0.0.1-alpha.37
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/Select/typings.d.ts +1 -0
- package/dist/TextArea/TextArea.d.ts +7 -0
- package/dist/TextArea/index.d.ts +2 -0
- package/dist/TextArea/typings.d.ts +15 -0
- package/dist/blocks.js +387 -360
- 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 +3 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/Select/typings.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface SelectProps extends Omit<ComponentProps<typeof RadixSelect.Root
|
|
|
12
12
|
label?: string;
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
fluid?: boolean;
|
|
15
|
+
id?: string;
|
|
15
16
|
side?: RadixSelectContentProps["side"];
|
|
16
17
|
items?: SelectItemProps[];
|
|
17
18
|
severity?: Exclude<Severity, "success">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { TextAreaProps } from "./typings.ts";
|
|
3
|
+
/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.
|
|
4
|
+
It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.
|
|
5
|
+
This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.
|
|
6
|
+
*/
|
|
7
|
+
export declare const TextArea: FC<TextAreaProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { TextArea as RadixTextArea, MarginProps } from "@radix-ui/themes";
|
|
3
|
+
import { Severity } from "../typings.ts";
|
|
4
|
+
export interface TextAreaProps extends Omit<ComponentProps<typeof RadixTextArea>, keyof MarginProps | "color"> {
|
|
5
|
+
/** used to set the severity of the TextArea, supports all 5 global severities
|
|
6
|
+
* @default "primary"
|
|
7
|
+
* */
|
|
8
|
+
severity?: Severity;
|
|
9
|
+
/** Renders text to the bottom right of the TextArea to show the current input length in characters
|
|
10
|
+
* @default false
|
|
11
|
+
* */
|
|
12
|
+
showInputLength?: boolean;
|
|
13
|
+
resize: "vertical" | "horizontal" | "both";
|
|
14
|
+
inputLengthTemplate?: string;
|
|
15
|
+
}
|