gantri-components 2.21.4 → 2.22.0-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
2
  import { Property } from 'csstype';
3
3
  import { ResolutionAwareProp } from '../types/resolution-aware-prop.type';
4
- import { ButtonColor } from '../components/button/button.types';
4
+ import { ButtonVariant } from '../components/button/button.types';
5
5
  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
6
  export declare const palette: Record<PaletteColor, string>;
7
7
  declare module 'styled-components' {
@@ -95,6 +95,10 @@ declare module 'styled-components' {
95
95
  t3: PaletteColor;
96
96
  t4: PaletteColor;
97
97
  };
98
+ taupe: {
99
+ t1: PaletteColor;
100
+ t2: PaletteColor;
101
+ };
98
102
  warning: {
99
103
  t1: PaletteColor;
100
104
  t2: PaletteColor;
@@ -175,77 +179,36 @@ export declare const darkTheme: DefaultTheme;
175
179
  export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
176
180
  export declare const getThemeProductColor: (color: ProductColorCode, currentTheme?: DefaultTheme) => string;
177
181
  export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => string;
178
- export declare const getButtonsColors: (color: ButtonColor, theme?: DefaultTheme) => {
179
- action: {
180
- background: string;
181
- backgroundActive: string;
182
- backgroundDisabled: string;
183
- backgroundHover: string;
184
- border: string;
185
- borderActive: string;
186
- borderDisabled: string;
187
- borderHover: string;
188
- foreground: string;
189
- foregroundActive: string;
190
- foregroundDisabled: string;
191
- foregroundHover: string;
192
- };
193
- primary: {
194
- background: string;
195
- backgroundActive: string;
196
- backgroundDisabled: string;
197
- backgroundHover: string;
198
- border: string;
199
- borderActive: string;
200
- borderDisabled: string;
201
- borderHover: string;
202
- foreground: string;
203
- foregroundActive: string;
204
- foregroundDisabled: string;
205
- foregroundHover: string;
206
- };
207
- secondary: {
208
- background: string;
209
- backgroundActive: string;
210
- backgroundDisabled: string;
211
- backgroundHover: string;
212
- border: string;
213
- borderActive: string;
214
- borderDisabled: string;
215
- borderHover: string;
216
- foreground: string;
217
- foregroundActive: string;
218
- foregroundDisabled: string;
219
- foregroundHover: string;
220
- };
182
+ export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultTheme) => {
183
+ background: string;
184
+ backgroundActive: string;
185
+ backgroundDisabled: string;
186
+ backgroundHover: string;
187
+ border: string;
188
+ borderActive: string;
189
+ borderDisabled: string;
190
+ borderHover: string;
191
+ borderProcessing: string;
192
+ foreground: string;
193
+ foregroundActive: string;
194
+ foregroundDisabled: string;
195
+ foregroundHover: string;
196
+ processingIconColor: string;
197
+ processingIconColorOpaque: string;
221
198
  } | {
222
- primary: {
223
- background: string;
224
- backgroundActive: string;
225
- backgroundDisabled: string;
226
- backgroundHover: string;
227
- border: string;
228
- borderActive: string;
229
- borderDisabled: string;
230
- borderHover: string;
231
- foreground: string;
232
- foregroundActive: string;
233
- foregroundDisabled: string;
234
- foregroundHover: string;
235
- };
236
- secondary: {
237
- background: string;
238
- backgroundActive: string;
239
- backgroundDisabled: string;
240
- backgroundHover: string;
241
- border: string;
242
- borderActive: string;
243
- borderDisabled: string;
244
- borderHover: string;
245
- foreground: string;
246
- foregroundActive: string;
247
- foregroundDisabled: string;
248
- foregroundHover: string;
249
- };
250
- action?: undefined;
199
+ background: string;
200
+ backgroundActive: string;
201
+ backgroundDisabled: string;
202
+ backgroundHover: string;
203
+ border: string;
204
+ borderActive: string;
205
+ borderDisabled: string;
206
+ borderHover: string;
207
+ foreground: string;
208
+ foregroundActive: string;
209
+ foregroundDisabled: string;
210
+ foregroundHover: string;
211
+ processingIconColor: string;
212
+ processingIconColorOpaque: string;
213
+ borderProcessing?: undefined;
251
214
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.21.4",
3
+ "version": "2.22.0-beta.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",