@vention/machine-ui 5.16.0 → 5.17.0
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/index.esm.js +1509 -869
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/components/shared/styles/input-styles.d.ts +1 -0
- package/src/lib/components/vention-button/button-utils.d.ts +0 -1
- package/src/lib/components/vention-tags-input/vention-tags-input-tag.d.ts +13 -0
- package/src/lib/components/vention-tags-input/vention-tags-input.d.ts +20 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from "./lib/components/vention-banner/vention-banner";
|
|
|
32
32
|
export * from "./lib/components/vention-sidebar-item/vention-sidebar-item";
|
|
33
33
|
export * from "./lib/components/vention-icon/vention-icon";
|
|
34
34
|
export * from "./lib/components/vention-combobox/vention-combobox";
|
|
35
|
+
export * from "./lib/components/vention-tags-input/vention-tags-input";
|
|
35
36
|
export * from "./lib/components/vention-tooltip/vention-tooltip";
|
|
36
37
|
export * from "./lib/components/vention-checkbox/vention-checkbox";
|
|
37
38
|
export * from "./lib/components/vention-uploadfile/vention-uploadfile";
|
|
@@ -12,6 +12,7 @@ export declare const getInputPaddingStyles: (size: Sizes, theme: Theme) => {
|
|
|
12
12
|
paddingLeft: string;
|
|
13
13
|
paddingRight: string;
|
|
14
14
|
};
|
|
15
|
+
export declare function getBorderRadius(): string;
|
|
15
16
|
/**
|
|
16
17
|
* Get the vertical padding style for multiline input
|
|
17
18
|
* @param size The size of the input
|
|
@@ -32,6 +32,5 @@ export interface VentionButtonProps extends Omit<ButtonProps, "size" | "variant"
|
|
|
32
32
|
loading?: boolean;
|
|
33
33
|
}
|
|
34
34
|
export declare function getButtonStylingPropertiesGivenProps(variant: VentionButtonProps["variant"] | "simple", size: VentionButtonProps["size"], theme: Theme): StylingProperties;
|
|
35
|
-
export declare function getButtonHeight(size: VentionButtonProps["size"], theme: Theme): string;
|
|
36
35
|
export declare function getButtonIconSize(size: VentionButtonProps["size"]): number;
|
|
37
36
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SyntheticEvent } from "react";
|
|
2
|
+
import { Sizes, StrictExtract } from "../../theme/machine-ui-theme";
|
|
3
|
+
export type VentionTagsInputSizes = StrictExtract<Sizes, "small" | "medium" | "large">;
|
|
4
|
+
export interface VentionTagsInputTagProps {
|
|
5
|
+
label: string;
|
|
6
|
+
removeLabel: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
size: VentionTagsInputSizes;
|
|
9
|
+
onDelete: (event: SyntheticEvent) => void;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const VentionTagsInputTag: ({ label, removeLabel, disabled, size, onDelete, dataTestId }: VentionTagsInputTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const getTagHeight: (size: VentionTagsInputSizes) => 24 | 28 | 32;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VentionTagsInputSizes } from "./vention-tags-input-tag";
|
|
2
|
+
export type { VentionTagsInputSizes };
|
|
3
|
+
export interface VentionTagsInputProps {
|
|
4
|
+
value: string[];
|
|
5
|
+
onChange: (tags: string[]) => void;
|
|
6
|
+
suggestions?: string[];
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
suggestionsTitle?: string;
|
|
10
|
+
createOptionLabel?: string;
|
|
11
|
+
noOptionsMessage?: string;
|
|
12
|
+
removeTagLabel?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
size: VentionTagsInputSizes;
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
maxVisibleOptions?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
inputDataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const VentionTagsInput: ({ value, onChange, suggestions, label, placeholder, suggestionsTitle, createOptionLabel, noOptionsMessage, removeTagLabel, disabled, size, autoFocus, maxVisibleOptions, className, inputDataTestId, }: VentionTagsInputProps) => import("react/jsx-runtime").JSX.Element;
|