gantri-components 2.91.1 → 2.92.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/button/button.constants.d.ts +0 -5
- package/dist/components/button/button.types.d.ts +6 -2
- package/dist/components/text-area/text-area.types.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/theme.d.ts +18 -8
- package/package.json +1 -1
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { ButtonSize } from './button.types';
|
|
2
2
|
export declare const buttonSizeHeights: Record<ButtonSize, string>;
|
|
3
|
-
export declare const buttonWidths: {
|
|
4
|
-
lg: string;
|
|
5
|
-
md: string;
|
|
6
|
-
sm: string;
|
|
7
|
-
};
|
|
8
3
|
export declare const buttonSizePaddings: Record<ButtonSize, string>;
|
|
@@ -3,9 +3,13 @@ import { Property } from 'csstype';
|
|
|
3
3
|
import { BaseProps } from '../box/box.types';
|
|
4
4
|
import { TextVariant } from '../typography';
|
|
5
5
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
6
|
-
export type ButtonVariant = 'primary' | 'secondary' | '
|
|
6
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'primaryAlert' | 'primaryContrast' | 'secondaryContrast';
|
|
7
7
|
export type ButtonWidth = 'sm' | 'md' | 'lg' | string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* large = desktop on figma design
|
|
10
|
+
* small = mobile on figma design
|
|
11
|
+
* */
|
|
12
|
+
export type ButtonSize = 'large' | 'small' | string;
|
|
9
13
|
export interface ButtonProps extends Pick<BaseProps, Exclude<keyof BaseProps, 'color'>> {
|
|
10
14
|
alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
|
|
11
15
|
borderRadius?: ResolutionAwareProp<Property.BorderRadius>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TextFieldProps } from '../text-field';
|
|
2
2
|
export interface TextAreaProps extends Pick<TextFieldProps, Exclude<keyof TextFieldProps, 'icon' | 'type' | 'autoFocus' | 'minValue' | 'maxValue'>> {
|
|
3
3
|
cols?: number;
|
|
4
|
-
|
|
4
|
+
maxRows?: number;
|
|
5
|
+
minRows?: number;
|
|
5
6
|
}
|