gantri-components 2.93.1 → 2.94.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/dist/components/text-area/text-area.styles.d.ts +0 -1
- package/dist/components/text-field/text-field.constants.d.ts +3 -0
- package/dist/components/text-field/text-field.types.d.ts +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
2
|
import { StyledInputContainerProps, StyledParentContainerProps } from '../text-field';
|
|
3
3
|
export declare const StyledTextareaParentContainer: import("styled-components").StyledComponent<"div", DefaultTheme, StyledParentContainerProps, never>;
|
|
4
|
-
export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
5
4
|
export declare const StyledContainer: import("styled-components").StyledComponent<"div", DefaultTheme, StyledInputContainerProps, never>;
|
|
6
5
|
export declare const StyledInputWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
7
6
|
export declare const StyledTextarea: import("styled-components").StyledComponent<"textarea", DefaultTheme, {}, never>;
|
|
@@ -7,6 +7,7 @@ export type ErrorMessageType = string | {
|
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
export type TextFieldSize = 'small' | 'large';
|
|
10
11
|
export interface TextFieldProps {
|
|
11
12
|
ariaLabel?: string;
|
|
12
13
|
ariaLabelTx?: string;
|
|
@@ -54,6 +55,7 @@ export interface TextFieldProps {
|
|
|
54
55
|
readOnly?: boolean;
|
|
55
56
|
required?: boolean;
|
|
56
57
|
rightIcon?: ReactElement;
|
|
58
|
+
size?: ResolutionAwareProp<TextFieldSize>;
|
|
57
59
|
step?: string | number | undefined;
|
|
58
60
|
style?: CSSProperties;
|
|
59
61
|
throttle?: number;
|
|
@@ -70,6 +72,7 @@ export interface FieldChangeEvent<T = boolean> extends Pick<ChangeEvent<Partial<
|
|
|
70
72
|
}
|
|
71
73
|
export interface StyledInputContainerProps extends Pick<TextFieldProps, 'variant'> {
|
|
72
74
|
$disabled: boolean;
|
|
75
|
+
$size?: ResolutionAwareProp<TextFieldSize>;
|
|
73
76
|
$withErrors: boolean;
|
|
74
77
|
}
|
|
75
78
|
export interface StyledParentContainerProps extends Pick<TextFieldProps, 'labelPosition' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'horizontalMargin' | 'verticalMargin' | 'margin'> {
|