gantri-components 1.46.0 → 1.49.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.
@@ -1,4 +1,4 @@
1
- export { combinationsByColor, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, } from './theme';
1
+ export { getButtonsColors, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, } from './theme';
2
2
  export { type PaletteColor as Color } from './theme';
3
3
  export { ThemeProvider } from './theme-provider';
4
4
  export { media } from './media';
@@ -1,6 +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
5
  export declare 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' | string;
5
6
  export declare const palette: Record<PaletteColor, string>;
6
7
  declare module 'styled-components' {
@@ -149,89 +150,33 @@ export declare const lightTheme: DefaultTheme;
149
150
  export declare const darkTheme: DefaultTheme;
150
151
  export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
151
152
  export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => any;
152
- export declare const combinationsByColor: (appTheme?: DefaultTheme) => {
153
- alert: {
154
- background: string;
155
- color: string;
156
- hover: string;
157
- selected: string;
158
- };
159
- black: {
160
- background: string;
161
- color: string;
162
- hover: string;
163
- selected: string;
164
- };
165
- blue: {
166
- background: string;
167
- color: string;
168
- hover: string;
169
- selected: string;
170
- };
171
- gold: {
172
- background: string;
173
- color: string;
174
- hover: string;
175
- selected: string;
176
- };
177
- green: {
178
- background: string;
179
- color: string;
180
- hover: string;
181
- selected: string;
182
- };
183
- grey: {
184
- background: string;
185
- color: string;
186
- hover: string;
187
- selected: string;
188
- };
189
- greyLight: {
190
- background: string;
191
- color: string;
192
- hover: string;
193
- selected: string;
194
- };
195
- pink: {
196
- background: string;
197
- color: string;
198
- hover: string;
199
- selected: string;
200
- };
153
+ export declare const getButtonsColors: (color: ButtonColor, theme?: DefaultTheme) => {
201
154
  primary: {
202
155
  background: string;
203
- color: string;
204
- hover: string;
205
- selected: string;
206
- };
207
- primaryAlt: {
208
- background: string;
209
- color: string;
210
- hover: string;
211
- selected: string;
156
+ backgroundActive: string;
157
+ backgroundDisabled: string;
158
+ backgroundHover: string;
159
+ border: string;
160
+ borderActive: string;
161
+ borderDisabled: string;
162
+ borderHover: string;
163
+ foreground: string;
164
+ foregroundActive: string;
165
+ foregroundDisabled: string;
166
+ foregroundHover: string;
212
167
  };
213
168
  secondary: {
214
169
  background: string;
215
- color: string;
216
- hover: string;
217
- selected: string;
218
- };
219
- secondaryAlt: {
220
- background: string;
221
- color: string;
222
- hover: string;
223
- selected: string;
224
- };
225
- white: {
226
- background: string;
227
- color: string;
228
- hover: string;
229
- selected: string;
230
- };
231
- yellow: {
232
- background: string;
233
- color: string;
234
- hover: string;
235
- selected: string;
170
+ backgroundActive: string;
171
+ backgroundDisabled: string;
172
+ backgroundHover: string;
173
+ border: string;
174
+ borderActive: string;
175
+ borderDisabled: string;
176
+ borderHover: string;
177
+ foreground: string;
178
+ foregroundActive: string;
179
+ foregroundDisabled: string;
180
+ foregroundHover: string;
236
181
  };
237
182
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "1.46.0",
3
+ "version": "1.49.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",