gantri-components 2.242.2 → 2.243.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.
|
@@ -3,3 +3,6 @@ import { StyledInputContainerProps, StyledParentContainerProps } from './text-fi
|
|
|
3
3
|
export declare const StyledParentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledParentContainerProps>> & string;
|
|
4
4
|
export declare const StyledInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledInputContainerProps>> & string;
|
|
5
5
|
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
6
|
+
export declare const StyledFloatingInputWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const StyledFloatingLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
8
|
+
export declare const StyledFloatingLabelOptional: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -11,7 +11,7 @@ export type ErrorMessageType = string | {
|
|
|
11
11
|
};
|
|
12
12
|
export type TextFieldSize = 'small' | 'medium' | 'large';
|
|
13
13
|
export type TextFieldVariant = 'line' | 'filled';
|
|
14
|
-
export type LabelPosition = 'top' | 'left';
|
|
14
|
+
export type LabelPosition = 'top' | 'left' | 'floating';
|
|
15
15
|
export interface TextFieldProps {
|
|
16
16
|
ariaLabel?: string;
|
|
17
17
|
ariaLabelTx?: string;
|
|
@@ -81,6 +81,7 @@ export interface FieldChangeEvent<T = boolean> extends Pick<ChangeEvent<Partial<
|
|
|
81
81
|
}
|
|
82
82
|
export interface StyledInputContainerProps extends Pick<TextFieldProps, 'variant'> {
|
|
83
83
|
$disabled: boolean;
|
|
84
|
+
$floating?: boolean;
|
|
84
85
|
$size?: ResolutionAwareProp<TextFieldSize>;
|
|
85
86
|
$withErrors: boolean;
|
|
86
87
|
}
|