gantri-components 1.148.3 → 1.149.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/badge/badge.styles.d.ts +1 -1
- package/dist/components/button/button.constants.d.ts +3 -12
- package/dist/components/button/button.types.d.ts +3 -2
- package/dist/components/typography/typography.styles.d.ts +3 -2
- 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,2 +1,2 @@
|
|
|
1
1
|
import { BadgeProps } from './badge.types';
|
|
2
|
-
export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "variant" | "minWidth" | "width" | "
|
|
2
|
+
export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "variant" | "minWidth" | "width" | "opacity" | "size" | "borderColor" | "textColor">, never>;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
large: string;
|
|
4
|
-
mini: string;
|
|
5
|
-
small: string;
|
|
6
|
-
};
|
|
1
|
+
import { ButtonSize } from './button.types';
|
|
2
|
+
export declare const buttonSizeHeights: Record<ButtonSize, string>;
|
|
7
3
|
export declare const buttonWidths: {
|
|
8
4
|
lg: string;
|
|
9
5
|
md: string;
|
|
10
6
|
sm: string;
|
|
11
7
|
};
|
|
12
|
-
export declare const buttonSizePaddings:
|
|
13
|
-
extraLarge: string;
|
|
14
|
-
large: string;
|
|
15
|
-
mini: string;
|
|
16
|
-
small: string;
|
|
17
|
-
};
|
|
8
|
+
export declare const buttonSizePaddings: Record<ButtonSize, string>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { BaseProps } from '../box/box.types';
|
|
4
|
-
import { TextVariant } from '../typography
|
|
4
|
+
import { TextVariant } from '../typography';
|
|
5
5
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
6
6
|
export declare type ButtonVariant = 'default' | 'primary' | 'secondary' | 'action';
|
|
7
7
|
export declare type ButtonColor = 'primary' | 'primaryAlt' | 'black' | 'alert' | 'secondary' | 'secondaryAlt' | 'blue' | 'green' | 'contrast';
|
|
8
8
|
export declare type ButtonWidth = 'sm' | 'md' | 'lg' | string;
|
|
9
|
+
export declare type ButtonSize = 'extraLarge' | 'large' | 'small' | 'mini' | string;
|
|
9
10
|
export interface ButtonProps extends BaseProps {
|
|
10
11
|
alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
|
|
11
12
|
borderRadius?: ResolutionAwareProp<Property.BorderRadius>;
|
|
@@ -20,7 +21,7 @@ export interface ButtonProps extends BaseProps {
|
|
|
20
21
|
minWidth?: ResolutionAwareProp<Property.Width>;
|
|
21
22
|
onClick?: (event: MouseEvent) => void;
|
|
22
23
|
processing?: boolean;
|
|
23
|
-
size?:
|
|
24
|
+
size?: ResolutionAwareProp<ButtonSize>;
|
|
24
25
|
text?: string;
|
|
25
26
|
textLineHeight?: Property.LineHeight;
|
|
26
27
|
textVariant?: TextVariant;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
1
2
|
import { TypographyProps } from './typography.types';
|
|
2
|
-
export declare const StyledText: import("styled-components").StyledComponent<"p",
|
|
3
|
-
export declare const StyledIconContainer: import("styled-components").StyledComponent<"span",
|
|
3
|
+
export declare const StyledText: import("styled-components").StyledComponent<"p", DefaultTheme, TypographyProps, never>;
|
|
4
|
+
export declare const StyledIconContainer: import("styled-components").StyledComponent<"span", DefaultTheme, {
|
|
4
5
|
marginLeft?: string | undefined;
|
|
5
6
|
marginRight?: string | undefined;
|
|
6
7
|
}, never>;
|