gantri-components 1.161.5 → 2.0.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/color-picker/color-picker.presets.d.ts +1 -1
- package/dist/components/color-picker/color-picker.types.d.ts +6 -7
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.styles.d.ts +2 -1
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/theme.d.ts +13 -5
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -42,12 +42,13 @@ declare module 'styled-components' {
|
|
|
42
42
|
overlay: PaletteColor;
|
|
43
43
|
palette: Record<PaletteColor, string>;
|
|
44
44
|
product: {
|
|
45
|
-
|
|
45
|
+
blossompink: string;
|
|
46
46
|
canyon: string;
|
|
47
47
|
carbon: string;
|
|
48
48
|
coral: string;
|
|
49
49
|
fog: string;
|
|
50
50
|
forest: string;
|
|
51
|
+
glossysnowwhite: string;
|
|
51
52
|
meadow: string;
|
|
52
53
|
midnight: string;
|
|
53
54
|
persimmon: string;
|
|
@@ -56,7 +57,7 @@ declare module 'styled-components' {
|
|
|
56
57
|
sedona: string;
|
|
57
58
|
sky: string;
|
|
58
59
|
snow: string;
|
|
59
|
-
|
|
60
|
+
sproutgreen: string;
|
|
60
61
|
stone: string;
|
|
61
62
|
sunrise: string;
|
|
62
63
|
};
|
|
@@ -152,12 +153,19 @@ declare module 'styled-components' {
|
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
export declare const
|
|
156
|
+
export declare const productColorCodes: readonly ["blossompink", "canyon", "carbon", "coral", "fog", "forest", "glossysnowwhite", "meadow", "midnight", "persimmon", "sage", "sand", "sedona", "sky", "snow", "sproutgreen", "stone", "sunrise"];
|
|
157
|
+
export declare type ProductColorCode = typeof productColorCodes[number];
|
|
158
|
+
export interface ProductColorDetails {
|
|
159
|
+
code: ProductColorCode;
|
|
160
|
+
googleFeedName: string;
|
|
161
|
+
hexColor: string;
|
|
162
|
+
label: string;
|
|
163
|
+
}
|
|
164
|
+
export declare const productColors: Record<ProductColorCode, ProductColorDetails>;
|
|
156
165
|
export declare const lightTheme: DefaultTheme;
|
|
157
166
|
export declare const darkTheme: DefaultTheme;
|
|
158
|
-
export declare type ProductColor = keyof DefaultTheme['colors']['product'];
|
|
159
167
|
export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
|
|
160
|
-
export declare const getThemeProductColor: (color:
|
|
168
|
+
export declare const getThemeProductColor: (color: ProductColorCode, currentTheme?: DefaultTheme) => string;
|
|
161
169
|
export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => string;
|
|
162
170
|
export declare const getButtonsColors: (color: ButtonColor, theme?: DefaultTheme) => {
|
|
163
171
|
action: {
|