gantri-components 2.33.0 → 2.34.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/aspect-ratio/aspect-ratio.styles.d.ts +2 -1
- package/dist/components/badge/badge.styles.d.ts +1 -1
- package/dist/components/box/box.styles.d.ts +3 -1
- package/dist/components/box/box.types.d.ts +21 -4
- package/dist/components/button/button.styles.d.ts +2 -1
- package/dist/components/cell/cell.styles.d.ts +3 -1
- package/dist/components/grid/grid.styles.d.ts +3 -1
- package/dist/components/modal/modal.styles.d.ts +4 -2
- package/dist/global/constants.d.ts +92 -0
- package/dist/global/index.d.ts +1 -0
- 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 +17 -1
- package/dist/types/resolution-aware-prop.type.d.ts +5 -1
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DefaultTheme } from 'styled-components';
|
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { ResolutionAwareProp } from '../types/resolution-aware-prop.type';
|
|
4
4
|
import { ButtonVariant } from '../components/button/button.types';
|
|
5
|
+
import { BoxDimension } from '../components/box/box.types';
|
|
5
6
|
export type PaletteColor = 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | 'blue_500' | 'blue_800' | 'blue_900' | 'gold_100' | 'gold_200' | 'gold_300' | 'gold_400' | 'gold_500' | 'green_100' | 'green_200' | 'green_300' | 'green_400' | 'green_500' | 'green_800' | 'green_900' | 'monochrome_050' | 'monochrome_100' | 'monochrome_200' | 'monochrome_300' | 'monochrome_400' | 'monochrome_500' | 'monochrome_600' | 'monochrome_700' | 'monochrome_800' | 'monochrome_900' | 'monochrome_black' | 'monochrome_white' | 'pink_300' | 'pink_400' | 'pink_500' | 'red_100' | 'red_200' | 'red_300' | 'red_400' | 'red_500' | 'red_800' | 'red_900' | 'translucent_black_t1' | 'translucent_black_t2' | 'translucent_cream' | 'translucent_white' | 'yellow_100' | 'yellow_200' | 'yellow_300' | 'yellow_400' | 'yellow_500' | 'yellow_800' | 'yellow_900' | 'lime_100' | 'lime_200' | 'lime_300' | 'lime_400' | 'lime_500' | string;
|
|
6
7
|
export declare const palette: Record<PaletteColor, string>;
|
|
7
8
|
declare module 'styled-components' {
|
|
@@ -121,6 +122,20 @@ declare module 'styled-components' {
|
|
|
121
122
|
headerHeight: Property.Height;
|
|
122
123
|
maxWidth: string;
|
|
123
124
|
spacing: {
|
|
125
|
+
'.5x': string;
|
|
126
|
+
'10x': string;
|
|
127
|
+
'11x': string;
|
|
128
|
+
'12x': string;
|
|
129
|
+
'16x': string;
|
|
130
|
+
'24x': string;
|
|
131
|
+
'2x': string;
|
|
132
|
+
'3x': string;
|
|
133
|
+
'4x': string;
|
|
134
|
+
'5x': string;
|
|
135
|
+
'6x': string;
|
|
136
|
+
'7x': string;
|
|
137
|
+
'8x': string;
|
|
138
|
+
'9x': string;
|
|
124
139
|
s0: string;
|
|
125
140
|
s1: string;
|
|
126
141
|
s2: string;
|
|
@@ -128,6 +143,7 @@ declare module 'styled-components' {
|
|
|
128
143
|
s4: string;
|
|
129
144
|
s5: string;
|
|
130
145
|
s6: string;
|
|
146
|
+
x: string;
|
|
131
147
|
};
|
|
132
148
|
};
|
|
133
149
|
fonts: {
|
|
@@ -178,7 +194,7 @@ export declare const lightTheme: DefaultTheme;
|
|
|
178
194
|
export declare const darkTheme: DefaultTheme;
|
|
179
195
|
export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
|
|
180
196
|
export declare const getThemeProductColor: (color: ProductColorCode, currentTheme?: DefaultTheme) => string;
|
|
181
|
-
export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => string;
|
|
197
|
+
export declare const getThemeSpacing: (property: BoxDimension | string, currentTheme?: DefaultTheme) => string;
|
|
182
198
|
export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultTheme) => {
|
|
183
199
|
background: string;
|
|
184
200
|
backgroundActive: string;
|
|
@@ -4,4 +4,8 @@ export interface ResolutionAwarePropBase<T> {
|
|
|
4
4
|
md?: T;
|
|
5
5
|
sm?: T;
|
|
6
6
|
}
|
|
7
|
-
export type ResolutionAwareProp<T> = T
|
|
7
|
+
export type ResolutionAwareProp<T> = T | {
|
|
8
|
+
lg?: T;
|
|
9
|
+
md?: T;
|
|
10
|
+
sm?: T;
|
|
11
|
+
};
|