gantri-components 2.32.0 → 2.33.1

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.
@@ -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,19 @@ 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
+ '24x': string;
130
+ '2x': string;
131
+ '3x': string;
132
+ '4x': string;
133
+ '5x': string;
134
+ '6x': string;
135
+ '7x': string;
136
+ '8x': string;
137
+ '9x': string;
124
138
  s0: string;
125
139
  s1: string;
126
140
  s2: string;
@@ -128,6 +142,7 @@ declare module 'styled-components' {
128
142
  s4: string;
129
143
  s5: string;
130
144
  s6: string;
145
+ x: string;
131
146
  };
132
147
  };
133
148
  fonts: {
@@ -178,7 +193,7 @@ export declare const lightTheme: DefaultTheme;
178
193
  export declare const darkTheme: DefaultTheme;
179
194
  export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
180
195
  export declare const getThemeProductColor: (color: ProductColorCode, currentTheme?: DefaultTheme) => string;
181
- export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => string;
196
+ export declare const getThemeSpacing: (property: BoxDimension | string, currentTheme?: DefaultTheme) => string;
182
197
  export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultTheme) => {
183
198
  background: string;
184
199
  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 extends boolean ? boolean | ResolutionAwarePropBase<T> | any : T | ResolutionAwarePropBase<T>;
7
+ export type ResolutionAwareProp<T> = T | {
8
+ lg?: T;
9
+ md?: T;
10
+ sm?: T;
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.32.0",
3
+ "version": "2.33.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",