@gataca/design-system 4.1.0 → 4.3.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.
- package/dist/assets/{fonts~tMhwBATi.css → fonts~dmfyEwwg.css} +2 -1
- package/dist/assets/fonts~dmfyEwwg.css.map +1 -0
- package/dist/components/native/TextField/TextField/textField_config.d.ts +3 -3
- package/dist/components/web/Alerts/Alert/Alert_config.web.d.ts +4 -4
- package/dist/components/web/Avatars/Avatar/Avatar.config.web.d.ts +4 -188
- package/dist/components/web/Buttons/Button/Button.config.web.d.ts +30 -4
- package/dist/components/web/Buttons/SegmentedButton/SegmentedButton.config.web.d.ts +3 -3
- package/dist/components/web/Buttons/SegmentedButton/styles.web.d.ts +2 -2
- package/dist/components/web/Chips/Chip/Chip.config.web.d.ts +41 -4
- package/dist/components/web/Icons/icons/checkbox.d.ts +2 -2
- package/dist/components/web/Icons/icons/radioButton.d.ts +2 -2
- package/dist/components/web/Indicator/Indicator/indicator_types.web.d.ts +2 -2
- package/dist/components/web/Indicator/NumberBadges/numberBadges_types.web.d.ts +8 -8
- package/dist/components/web/Lists/ListItem/listItem.config.web.d.ts +3 -3
- package/dist/components/web/Menus/MenuItem/MenuItem_types.web.d.ts +3 -12
- package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.config.web.d.ts +4 -4
- package/dist/components/web/Tabs/Tabs/tabs_types.web.d.ts +12 -12
- package/dist/components/web/TextField/TextField/textField_config.d.ts +3 -3
- package/dist/index.native.js +1 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- package/dist/styles/Colors.d.ts +171 -0
- package/dist/utils/theming/themeProvider.d.ts +8 -3
- package/package.json +1 -1
- package/dist/assets/fonts~tMhwBATi.css.map +0 -1
package/dist/styles/Colors.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type ColorsType = {
|
|
2
|
+
fundationWhite: string;
|
|
3
|
+
fundationBlack: string;
|
|
2
4
|
neutral100: string;
|
|
3
5
|
neutral200: string;
|
|
4
6
|
neutral300: string;
|
|
@@ -76,4 +78,173 @@ export type ColorsType = {
|
|
|
76
78
|
buttonsWhiteShadow: string;
|
|
77
79
|
buttonsGreyShadow: string;
|
|
78
80
|
};
|
|
81
|
+
export type ThemeColorsType = {
|
|
82
|
+
generalPage: string;
|
|
83
|
+
generalPageSecondary: string;
|
|
84
|
+
generalDefaultCard: string;
|
|
85
|
+
generalDefaultSecondaryCard: string;
|
|
86
|
+
generalDefaultTertiaryCard: string;
|
|
87
|
+
transparent: string;
|
|
88
|
+
textDefaultHeading: string;
|
|
89
|
+
textDefaultBody: string;
|
|
90
|
+
textDefaultCaption: string;
|
|
91
|
+
textDefaultPlaceholder: string;
|
|
92
|
+
textOnColorHeading: string;
|
|
93
|
+
textOnColorBody: string;
|
|
94
|
+
textOnColorCaption: string;
|
|
95
|
+
textOnColorPlaceholder: string;
|
|
96
|
+
textPrimaryDefault: string;
|
|
97
|
+
textPrimaryDefaultHover: string;
|
|
98
|
+
textPrimaryOnColor: string;
|
|
99
|
+
textPrimaryOnColorHover: string;
|
|
100
|
+
textSecondaryDefault: string;
|
|
101
|
+
textSecondaryDefaultHover: string;
|
|
102
|
+
textSecondaryOnColor: string;
|
|
103
|
+
textSecondaryOnColorHover: string;
|
|
104
|
+
textAlertDefault: string;
|
|
105
|
+
textAlertDefaultHover: string;
|
|
106
|
+
textAlertOnColor: string;
|
|
107
|
+
textAlertOnColorHover: string;
|
|
108
|
+
textWarningDefault: string;
|
|
109
|
+
textWarningDefaultHover: string;
|
|
110
|
+
textWarningOnColor: string;
|
|
111
|
+
textWarningOnColorHover: string;
|
|
112
|
+
textSuccessDefault: string;
|
|
113
|
+
textSuccessDefaultHover: string;
|
|
114
|
+
textSuccessOnColor: string;
|
|
115
|
+
textSuccessOnColorHover: string;
|
|
116
|
+
textInfoDefault: string;
|
|
117
|
+
textInfoDefaultHover: string;
|
|
118
|
+
textInfoOnColor: string;
|
|
119
|
+
textInfoOnColorHover: string;
|
|
120
|
+
textNeutralDefault: string;
|
|
121
|
+
textNeutralDefaultHover: string;
|
|
122
|
+
textNeutralOnColor: string;
|
|
123
|
+
textNeutralOnColorHover: string;
|
|
124
|
+
textContentDefault: string;
|
|
125
|
+
textContentDefaultHover: string;
|
|
126
|
+
textContentOnColor: string;
|
|
127
|
+
textContentOnColorHover: string;
|
|
128
|
+
textDisableDefault: string;
|
|
129
|
+
textDisableOnColor: string;
|
|
130
|
+
iconsPrimaryDefault: string;
|
|
131
|
+
iconsPrimaryDefaultHover: string;
|
|
132
|
+
iconsPrimaryOnColor: string;
|
|
133
|
+
iconsPrimaryOnColorHover: string;
|
|
134
|
+
iconsSecondaryDefault: string;
|
|
135
|
+
iconsSecondaryDefaultHover: string;
|
|
136
|
+
iconsSecondaryOnColor: string;
|
|
137
|
+
iconsSecondaryOnColorHover: string;
|
|
138
|
+
iconsAlertDefault: string;
|
|
139
|
+
iconsAlertDefaultHover: string;
|
|
140
|
+
iconsAlertOnColor: string;
|
|
141
|
+
iconsAlertOnColorHover: string;
|
|
142
|
+
iconsWarningDefault: string;
|
|
143
|
+
iconsWarningDefaultHover: string;
|
|
144
|
+
iconsWarningOnColor: string;
|
|
145
|
+
iconsWarningOnColorHover: string;
|
|
146
|
+
iconsSuccessDefault: string;
|
|
147
|
+
iconsSuccessDefaultHover: string;
|
|
148
|
+
iconsSuccessOnColor: string;
|
|
149
|
+
iconsSuccessOnColorHover: string;
|
|
150
|
+
iconsInfoDefault: string;
|
|
151
|
+
iconsInfoDefaultHover: string;
|
|
152
|
+
iconsInfoOnColor: string;
|
|
153
|
+
iconsInfoOnColorHover: string;
|
|
154
|
+
iconsNeutralDefault: string;
|
|
155
|
+
iconsNeutralDefaultHover: string;
|
|
156
|
+
iconsNeutralOnColor: string;
|
|
157
|
+
iconsNeutralOnColorHover: string;
|
|
158
|
+
iconsDisabledDefault: string;
|
|
159
|
+
iconsDisabledOnColor: string;
|
|
160
|
+
iconsContentDefault: string;
|
|
161
|
+
iconsContentDefaultHover: string;
|
|
162
|
+
iconsContentOnColor: string;
|
|
163
|
+
iconsContentOnColorHover: string;
|
|
164
|
+
surfacePrimaryDefault: string;
|
|
165
|
+
surfacePrimaryDefaultHover: string;
|
|
166
|
+
surfacePrimaryDefaultSubtle: string;
|
|
167
|
+
surfacePrimaryDefaultSubtleHover: string;
|
|
168
|
+
surfaceSecondaryDefault: string;
|
|
169
|
+
surfaceSecondaryDefaultHover: string;
|
|
170
|
+
surfaceSecondaryDefaultSubtle: string;
|
|
171
|
+
surfaceSecondaryDefaultSubtleHover: string;
|
|
172
|
+
surfaceAlertDefault: string;
|
|
173
|
+
surfaceAlertDefaultHover: string;
|
|
174
|
+
surfaceAlertDefaultSubtle: string;
|
|
175
|
+
surfaceAlertDefaultSubtleHover: string;
|
|
176
|
+
surfaceWarningDefault: string;
|
|
177
|
+
surfaceWarningDefaultHover: string;
|
|
178
|
+
surfaceWarningDefaultSubtle: string;
|
|
179
|
+
surfaceWarningDefaultSubtleHover: string;
|
|
180
|
+
surfaceSuccessDefault: string;
|
|
181
|
+
surfaceSuccessDefaultHover: string;
|
|
182
|
+
surfaceSuccessDefaultSubtle: string;
|
|
183
|
+
surfaceSuccessDefaultSubtleHover: string;
|
|
184
|
+
surfaceInfoDefault: string;
|
|
185
|
+
surfaceInfoDefaultHover: string;
|
|
186
|
+
surfaceInfoDefaultSubtle: string;
|
|
187
|
+
surfaceInfoDefaultSubtleHover: string;
|
|
188
|
+
surfaceNeutralDefault: string;
|
|
189
|
+
surfaceNeutralDefaultHover: string;
|
|
190
|
+
surfaceNeutralDefaultSubtle: string;
|
|
191
|
+
surfaceNeutralDefaultSubtleHover: string;
|
|
192
|
+
surfaceNeutralDefaultMedium: string;
|
|
193
|
+
surfaceNeutralDefaultMediumHover: string;
|
|
194
|
+
surfaceDisableDisable: string;
|
|
195
|
+
surfaceSkeletonDefault: string;
|
|
196
|
+
surfaceSkeletonDefaultOnColor: string;
|
|
197
|
+
bordersGeneralDefault: string;
|
|
198
|
+
bordersGeneralOnColor: string;
|
|
199
|
+
bordersPrimaryDefault: string;
|
|
200
|
+
bordersPrimaryDefaultHover: string;
|
|
201
|
+
bordersPrimaryDefaultFocus: string;
|
|
202
|
+
bordersPrimaryDefaultSubtle: string;
|
|
203
|
+
bordersPrimaryDefaultSubtleHover: string;
|
|
204
|
+
bordersPrimaryDefaultSubtleFocus: string;
|
|
205
|
+
bordersSecondaryDefault: string;
|
|
206
|
+
bordersSecondaryDefaultHover: string;
|
|
207
|
+
bordersSecondaryDefaultFocus: string;
|
|
208
|
+
bordersSecondaryDefaultSubtle: string;
|
|
209
|
+
bordersSecondaryDefaultSubtleHover: string;
|
|
210
|
+
bordersSecondaryDefaultSubtleFocus: string;
|
|
211
|
+
bordersAlertDefault: string;
|
|
212
|
+
bordersAlertDefaultHover: string;
|
|
213
|
+
bordersAlertDefaultFocus: string;
|
|
214
|
+
bordersAlertDefaultSubtle: string;
|
|
215
|
+
bordersAlertDefaultSubtleHover: string;
|
|
216
|
+
bordersAlertDefaultSubtleFocus: string;
|
|
217
|
+
bordersWarningDefault: string;
|
|
218
|
+
bordersWarningDefaultHover: string;
|
|
219
|
+
bordersWarningDefaultFocus: string;
|
|
220
|
+
bordersWarningDefaultSubtle: string;
|
|
221
|
+
bordersWarningDefaultSubtleHover: string;
|
|
222
|
+
bordersWarningDefaultSubtleFocus: string;
|
|
223
|
+
bordersSuccessDefault: string;
|
|
224
|
+
bordersSuccessDefaultHover: string;
|
|
225
|
+
bordersSuccessDefaultFocus: string;
|
|
226
|
+
bordersSuccessDefaultSubtle: string;
|
|
227
|
+
bordersSuccessDefaultSubtleHover: string;
|
|
228
|
+
bordersSuccessDefaultSubtleFocus: string;
|
|
229
|
+
bordersInfoDefault: string;
|
|
230
|
+
bordersInfoDefaultHover: string;
|
|
231
|
+
bordersInfoDefaultFocus: string;
|
|
232
|
+
bordersInfoDefaultSubtle: string;
|
|
233
|
+
bordersInfoDefaultSubtleHover: string;
|
|
234
|
+
bordersInfoDefaultSubtleFocus: string;
|
|
235
|
+
bordersNeutralDefault: string;
|
|
236
|
+
bordersNeutralDefaultHover: string;
|
|
237
|
+
bordersNeutralDefaultFocus: string;
|
|
238
|
+
bordersNeutralDefaultSubtle: string;
|
|
239
|
+
bordersNeutralDefaultSubtleHover: string;
|
|
240
|
+
bordersNeutralDefaultSubtleFocus: string;
|
|
241
|
+
bordersNeutralDefaultMedium: string;
|
|
242
|
+
bordersNeutralDefaultMediumHover: string;
|
|
243
|
+
bordersNeutralDefaultMediumFocus: string;
|
|
244
|
+
bordersDisableDisable: string;
|
|
245
|
+
shadowColorDefault: string;
|
|
246
|
+
shadowColorMd: string;
|
|
247
|
+
};
|
|
79
248
|
export declare const colorsByLabel: Record<string, ColorsType>;
|
|
249
|
+
export declare const themeLightColors: (brand: string) => ThemeColorsType;
|
|
250
|
+
export declare const themeDarkColors: (brand: string) => ThemeColorsType;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorsType } from '../../styles/Colors';
|
|
2
|
+
import { ColorsType, ThemeColorsType } from '../../styles/Colors';
|
|
3
3
|
import { FontsType, StyleType } from '../../styles/Fonts';
|
|
4
|
+
export type ThemeMode = 'light' | 'dark';
|
|
4
5
|
type ThemeType = {
|
|
5
6
|
fonts: FontsType;
|
|
6
7
|
fontStyles: StyleType;
|
|
7
8
|
colors: ColorsType;
|
|
9
|
+
themeColors: ThemeColorsType;
|
|
10
|
+
themeMode: ThemeMode;
|
|
8
11
|
};
|
|
9
12
|
type ThemeProviderProps = {
|
|
10
|
-
label: 'PRIMARY' | 'SECONDARY';
|
|
13
|
+
label: 'PRIMARY' | 'SECONDARY' | 'TERTIARY';
|
|
14
|
+
/** Overrides the default theme mode. Defaults to 'dark' for TERTIARY, 'light' otherwise. */
|
|
15
|
+
theme?: ThemeMode;
|
|
11
16
|
children: ReactNode;
|
|
12
17
|
};
|
|
13
|
-
export declare const ThemeProvider: ({ label, children }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ThemeProvider: ({ label, theme, children }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
19
|
export declare const useTheme: () => ThemeType;
|
|
15
20
|
export default ThemeProvider;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/styles/fonts.css"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,wGAAwG;AACxG,yGAAyG;AACzG,6JAA6J","file":"fonts~tMhwBATi.css","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;300;400;500;600;700&display=swap');\n@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap');\n@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap');\n@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');\n"]}
|