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.
- package/dist/components/button/button.types.d.ts +1 -3
- package/dist/components/checkbox/checkbox.styles.d.ts +3 -3
- package/dist/components/color-picker/color-picker.types.d.ts +0 -5
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts +1 -1
- package/dist/components/filter-button/filter-button.d.ts +3 -0
- package/dist/components/filter-button/filter-button.presets.d.ts +2 -0
- package/dist/components/filter-button/filter-button.styles.d.ts +1 -0
- package/dist/components/filter-button/filter-button.types.d.ts +15 -0
- package/dist/components/filter-button/index.d.ts +1 -0
- package/dist/components/icon/generated/actions/FunnelFilled.d.ts +3 -0
- package/dist/components/icon/generated/actions/FunnelFilled24.d.ts +3 -0
- package/dist/components/icon/generated/actions/index.d.ts +2 -0
- package/dist/components/icon/icon.type.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/theme.d.ts +36 -73
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -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 {
|
|
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: (
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
};
|