@aws-amplify/ui 5.7.0 → 5.7.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/esm/index.mjs +1 -1
- package/dist/esm/theme/defaultDarkModeOverride.mjs +1 -1
- package/dist/esm/theme/tokens/colors.mjs +1 -1
- package/dist/esm/theme/tokens/components/button.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1043 -48
- package/dist/theme.css +198 -1
- package/dist/types/theme/tokens/colors.d.ts +1 -1
- package/dist/types/theme/tokens/components/button.d.ts +24 -1
- package/dist/types/types/util.d.ts +11 -0
- package/dist/types/utils/index.d.ts +23 -0
- package/package.json +1 -1
package/dist/theme.css
CHANGED
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
--amplify-components-button-padding-block-end: var(--amplify-components-fieldcontrol-padding-block-end);
|
|
111
111
|
--amplify-components-button-padding-inline-start: var(--amplify-components-fieldcontrol-padding-inline-start);
|
|
112
112
|
--amplify-components-button-padding-inline-end: var(--amplify-components-fieldcontrol-padding-inline-end);
|
|
113
|
+
--amplify-components-button-background-color: transparent;
|
|
113
114
|
--amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
|
|
114
115
|
--amplify-components-button-border-width: var(--amplify-components-fieldcontrol-border-width);
|
|
115
116
|
--amplify-components-button-border-style: var(--amplify-components-fieldcontrol-border-style);
|
|
@@ -131,6 +132,71 @@
|
|
|
131
132
|
--amplify-components-button-disabled-color: var(--amplify-colors-font-disabled);
|
|
132
133
|
--amplify-components-button-disabled-background-color: transparent;
|
|
133
134
|
--amplify-components-button-disabled-border-color: var(--amplify-colors-border-tertiary);
|
|
135
|
+
--amplify-components-button-outlined-info-border-color: var(--amplify-colors-blue-60);
|
|
136
|
+
--amplify-components-button-outlined-info-background-color: transparent;
|
|
137
|
+
--amplify-components-button-outlined-info-color: var(--amplify-colors-blue-100);
|
|
138
|
+
--amplify-components-button-outlined-info-hover-border-color: var(--amplify-colors-blue-60);
|
|
139
|
+
--amplify-components-button-outlined-info-hover-background-color: var(--amplify-colors-blue-10);
|
|
140
|
+
--amplify-components-button-outlined-info-hover-color: var(--amplify-colors-blue-100);
|
|
141
|
+
--amplify-components-button-outlined-info-focus-border-color: var(--amplify-colors-blue-100);
|
|
142
|
+
--amplify-components-button-outlined-info-focus-background-color: var(--amplify-colors-blue-10);
|
|
143
|
+
--amplify-components-button-outlined-info-focus-color: var(--amplify-colors-blue-100);
|
|
144
|
+
--amplify-components-button-outlined-info-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-blue-100);
|
|
145
|
+
--amplify-components-button-outlined-info-active-border-color: var(--amplify-colors-blue-100);
|
|
146
|
+
--amplify-components-button-outlined-info-active-background-color: var(--amplify-colors-blue-20);
|
|
147
|
+
--amplify-components-button-outlined-info-active-color: var(--amplify-colors-blue-100);
|
|
148
|
+
--amplify-components-button-outlined-warning-border-color: var(--amplify-colors-orange-60);
|
|
149
|
+
--amplify-components-button-outlined-warning-background-color: transparent;
|
|
150
|
+
--amplify-components-button-outlined-warning-color: var(--amplify-colors-orange-100);
|
|
151
|
+
--amplify-components-button-outlined-warning-hover-border-color: var(--amplify-colors-orange-60);
|
|
152
|
+
--amplify-components-button-outlined-warning-hover-background-color: var(--amplify-colors-orange-10);
|
|
153
|
+
--amplify-components-button-outlined-warning-hover-color: var(--amplify-colors-orange-100);
|
|
154
|
+
--amplify-components-button-outlined-warning-focus-border-color: var(--amplify-colors-orange-100);
|
|
155
|
+
--amplify-components-button-outlined-warning-focus-background-color: var(--amplify-colors-orange-10);
|
|
156
|
+
--amplify-components-button-outlined-warning-focus-color: var(--amplify-colors-orange-100);
|
|
157
|
+
--amplify-components-button-outlined-warning-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-orange-100);
|
|
158
|
+
--amplify-components-button-outlined-warning-active-border-color: var(--amplify-colors-orange-100);
|
|
159
|
+
--amplify-components-button-outlined-warning-active-background-color: var(--amplify-colors-orange-20);
|
|
160
|
+
--amplify-components-button-outlined-warning-active-color: var(--amplify-colors-orange-100);
|
|
161
|
+
--amplify-components-button-outlined-success-border-color: var(--amplify-colors-green-60);
|
|
162
|
+
--amplify-components-button-outlined-success-background-color: transparent;
|
|
163
|
+
--amplify-components-button-outlined-success-color: var(--amplify-colors-green-100);
|
|
164
|
+
--amplify-components-button-outlined-success-hover-border-color: var(--amplify-colors-green-60);
|
|
165
|
+
--amplify-components-button-outlined-success-hover-background-color: var(--amplify-colors-green-10);
|
|
166
|
+
--amplify-components-button-outlined-success-hover-color: var(--amplify-colors-green-100);
|
|
167
|
+
--amplify-components-button-outlined-success-focus-border-color: var(--amplify-colors-green-100);
|
|
168
|
+
--amplify-components-button-outlined-success-focus-background-color: var(--amplify-colors-green-10);
|
|
169
|
+
--amplify-components-button-outlined-success-focus-color: var(--amplify-colors-green-100);
|
|
170
|
+
--amplify-components-button-outlined-success-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-green-100);
|
|
171
|
+
--amplify-components-button-outlined-success-active-border-color: var(--amplify-colors-green-100);
|
|
172
|
+
--amplify-components-button-outlined-success-active-background-color: var(--amplify-colors-green-20);
|
|
173
|
+
--amplify-components-button-outlined-success-active-color: var(--amplify-colors-green-100);
|
|
174
|
+
--amplify-components-button-outlined-error-border-color: var(--amplify-colors-red-60);
|
|
175
|
+
--amplify-components-button-outlined-error-background-color: transparent;
|
|
176
|
+
--amplify-components-button-outlined-error-color: var(--amplify-colors-red-100);
|
|
177
|
+
--amplify-components-button-outlined-error-hover-border-color: var(--amplify-colors-red-60);
|
|
178
|
+
--amplify-components-button-outlined-error-hover-background-color: var(--amplify-colors-red-10);
|
|
179
|
+
--amplify-components-button-outlined-error-hover-color: var(--amplify-colors-red-100);
|
|
180
|
+
--amplify-components-button-outlined-error-focus-border-color: var(--amplify-colors-red-100);
|
|
181
|
+
--amplify-components-button-outlined-error-focus-background-color: var(--amplify-colors-red-10);
|
|
182
|
+
--amplify-components-button-outlined-error-focus-color: var(--amplify-colors-red-100);
|
|
183
|
+
--amplify-components-button-outlined-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-red-100);
|
|
184
|
+
--amplify-components-button-outlined-error-active-border-color: var(--amplify-colors-red-100);
|
|
185
|
+
--amplify-components-button-outlined-error-active-background-color: var(--amplify-colors-red-20);
|
|
186
|
+
--amplify-components-button-outlined-error-active-color: var(--amplify-colors-red-100);
|
|
187
|
+
--amplify-components-button-outlined-overlay-border-color: var(--amplify-colors-overlay-60);
|
|
188
|
+
--amplify-components-button-outlined-overlay-background-color: transparent;
|
|
189
|
+
--amplify-components-button-outlined-overlay-color: var(--amplify-colors-font-primary);
|
|
190
|
+
--amplify-components-button-outlined-overlay-hover-border-color: var(--amplify-colors-overlay-60);
|
|
191
|
+
--amplify-components-button-outlined-overlay-hover-background-color: var(--amplify-colors-overlay-5);
|
|
192
|
+
--amplify-components-button-outlined-overlay-hover-color: var(--amplify-colors-neutral-90);
|
|
193
|
+
--amplify-components-button-outlined-overlay-focus-border-color: var(--amplify-colors-overlay-90);
|
|
194
|
+
--amplify-components-button-outlined-overlay-focus-background-color: var(--amplify-colors-overlay-5);
|
|
195
|
+
--amplify-components-button-outlined-overlay-focus-color: var(--amplify-colors-neutral-90);
|
|
196
|
+
--amplify-components-button-outlined-overlay-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-overlay-90);
|
|
197
|
+
--amplify-components-button-outlined-overlay-active-border-color: var(--amplify-colors-overlay-90);
|
|
198
|
+
--amplify-components-button-outlined-overlay-active-background-color: var(--amplify-colors-overlay-10);
|
|
199
|
+
--amplify-components-button-outlined-overlay-active-color: var(--amplify-colors-neutral-100);
|
|
134
200
|
--amplify-components-button-primary-border-color: transparent;
|
|
135
201
|
--amplify-components-button-primary-border-width: var(--amplify-border-widths-small);
|
|
136
202
|
--amplify-components-button-primary-border-style: solid;
|
|
@@ -152,6 +218,71 @@
|
|
|
152
218
|
--amplify-components-button-primary-active-border-color: transparent;
|
|
153
219
|
--amplify-components-button-primary-active-background-color: var(--amplify-colors-brand-primary-100);
|
|
154
220
|
--amplify-components-button-primary-active-color: var(--amplify-colors-font-inverse);
|
|
221
|
+
--amplify-components-button-primary-info-border-color: transparent;
|
|
222
|
+
--amplify-components-button-primary-info-background-color: var(--amplify-colors-blue-80);
|
|
223
|
+
--amplify-components-button-primary-info-color: var(--amplify-colors-font-inverse);
|
|
224
|
+
--amplify-components-button-primary-info-hover-border-color: transparent;
|
|
225
|
+
--amplify-components-button-primary-info-hover-background-color: var(--amplify-colors-blue-90);
|
|
226
|
+
--amplify-components-button-primary-info-hover-color: var(--amplify-colors-font-inverse);
|
|
227
|
+
--amplify-components-button-primary-info-focus-border-color: transparent;
|
|
228
|
+
--amplify-components-button-primary-info-focus-background-color: var(--amplify-colors-blue-90);
|
|
229
|
+
--amplify-components-button-primary-info-focus-color: var(--amplify-colors-font-inverse);
|
|
230
|
+
--amplify-components-button-primary-info-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-blue-100);
|
|
231
|
+
--amplify-components-button-primary-info-active-border-color: transparent;
|
|
232
|
+
--amplify-components-button-primary-info-active-background-color: var(--amplify-colors-blue-100);
|
|
233
|
+
--amplify-components-button-primary-info-active-color: var(--amplify-colors-font-inverse);
|
|
234
|
+
--amplify-components-button-primary-warning-border-color: transparent;
|
|
235
|
+
--amplify-components-button-primary-warning-background-color: var(--amplify-colors-orange-80);
|
|
236
|
+
--amplify-components-button-primary-warning-color: var(--amplify-colors-font-inverse);
|
|
237
|
+
--amplify-components-button-primary-warning-hover-border-color: transparent;
|
|
238
|
+
--amplify-components-button-primary-warning-hover-background-color: var(--amplify-colors-orange-90);
|
|
239
|
+
--amplify-components-button-primary-warning-hover-color: var(--amplify-colors-font-inverse);
|
|
240
|
+
--amplify-components-button-primary-warning-focus-border-color: transparent;
|
|
241
|
+
--amplify-components-button-primary-warning-focus-background-color: var(--amplify-colors-orange-90);
|
|
242
|
+
--amplify-components-button-primary-warning-focus-color: var(--amplify-colors-font-inverse);
|
|
243
|
+
--amplify-components-button-primary-warning-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-orange-100);
|
|
244
|
+
--amplify-components-button-primary-warning-active-border-color: transparent;
|
|
245
|
+
--amplify-components-button-primary-warning-active-background-color: var(--amplify-colors-orange-100);
|
|
246
|
+
--amplify-components-button-primary-warning-active-color: var(--amplify-colors-font-inverse);
|
|
247
|
+
--amplify-components-button-primary-error-border-color: transparent;
|
|
248
|
+
--amplify-components-button-primary-error-background-color: var(--amplify-colors-red-80);
|
|
249
|
+
--amplify-components-button-primary-error-color: var(--amplify-colors-font-inverse);
|
|
250
|
+
--amplify-components-button-primary-error-hover-border-color: transparent;
|
|
251
|
+
--amplify-components-button-primary-error-hover-background-color: var(--amplify-colors-red-90);
|
|
252
|
+
--amplify-components-button-primary-error-hover-color: var(--amplify-colors-font-inverse);
|
|
253
|
+
--amplify-components-button-primary-error-focus-border-color: transparent;
|
|
254
|
+
--amplify-components-button-primary-error-focus-background-color: var(--amplify-colors-red-90);
|
|
255
|
+
--amplify-components-button-primary-error-focus-color: var(--amplify-colors-font-inverse);
|
|
256
|
+
--amplify-components-button-primary-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-red-100);
|
|
257
|
+
--amplify-components-button-primary-error-active-border-color: transparent;
|
|
258
|
+
--amplify-components-button-primary-error-active-background-color: var(--amplify-colors-red-100);
|
|
259
|
+
--amplify-components-button-primary-error-active-color: var(--amplify-colors-font-inverse);
|
|
260
|
+
--amplify-components-button-primary-success-border-color: transparent;
|
|
261
|
+
--amplify-components-button-primary-success-background-color: var(--amplify-colors-green-80);
|
|
262
|
+
--amplify-components-button-primary-success-color: var(--amplify-colors-font-inverse);
|
|
263
|
+
--amplify-components-button-primary-success-hover-border-color: transparent;
|
|
264
|
+
--amplify-components-button-primary-success-hover-background-color: var(--amplify-colors-green-90);
|
|
265
|
+
--amplify-components-button-primary-success-hover-color: var(--amplify-colors-font-inverse);
|
|
266
|
+
--amplify-components-button-primary-success-focus-border-color: transparent;
|
|
267
|
+
--amplify-components-button-primary-success-focus-background-color: var(--amplify-colors-green-90);
|
|
268
|
+
--amplify-components-button-primary-success-focus-color: var(--amplify-colors-font-inverse);
|
|
269
|
+
--amplify-components-button-primary-success-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-green-100);
|
|
270
|
+
--amplify-components-button-primary-success-active-border-color: transparent;
|
|
271
|
+
--amplify-components-button-primary-success-active-background-color: var(--amplify-colors-green-100);
|
|
272
|
+
--amplify-components-button-primary-success-active-color: var(--amplify-colors-font-inverse);
|
|
273
|
+
--amplify-components-button-primary-overlay-border-color: transparent;
|
|
274
|
+
--amplify-components-button-primary-overlay-background-color: var(--amplify-colors-overlay-70);
|
|
275
|
+
--amplify-components-button-primary-overlay-color: var(--amplify-colors-font-inverse);
|
|
276
|
+
--amplify-components-button-primary-overlay-hover-border-color: transparent;
|
|
277
|
+
--amplify-components-button-primary-overlay-hover-background-color: var(--amplify-colors-overlay-90);
|
|
278
|
+
--amplify-components-button-primary-overlay-hover-color: var(--amplify-colors-font-inverse);
|
|
279
|
+
--amplify-components-button-primary-overlay-focus-border-color: transparent;
|
|
280
|
+
--amplify-components-button-primary-overlay-focus-background-color: var(--amplify-colors-overlay-90);
|
|
281
|
+
--amplify-components-button-primary-overlay-focus-color: var(--amplify-colors-font-inverse);
|
|
282
|
+
--amplify-components-button-primary-overlay-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-overlay-90);
|
|
283
|
+
--amplify-components-button-primary-overlay-active-border-color: transparent;
|
|
284
|
+
--amplify-components-button-primary-overlay-active-background-color: var(--amplify-colors-overlay-90);
|
|
285
|
+
--amplify-components-button-primary-overlay-active-color: var(--amplify-colors-font-inverse);
|
|
155
286
|
--amplify-components-button-menu-border-width: var(--amplify-space-zero);
|
|
156
287
|
--amplify-components-button-menu-background-color: transparent;
|
|
157
288
|
--amplify-components-button-menu-justify-content: start;
|
|
@@ -164,7 +295,7 @@
|
|
|
164
295
|
--amplify-components-button-menu-disabled-color: var(--amplify-colors-font-disabled);
|
|
165
296
|
--amplify-components-button-link-background-color: transparent;
|
|
166
297
|
--amplify-components-button-link-border-color: transparent;
|
|
167
|
-
--amplify-components-button-link-border-width: var(--amplify-
|
|
298
|
+
--amplify-components-button-link-border-width: var(--amplify-border-widths-small);
|
|
168
299
|
--amplify-components-button-link-color: var(--amplify-colors-font-interactive);
|
|
169
300
|
--amplify-components-button-link-hover-border-color: transparent;
|
|
170
301
|
--amplify-components-button-link-hover-background-color: var(--amplify-colors-brand-primary-10);
|
|
@@ -182,6 +313,71 @@
|
|
|
182
313
|
--amplify-components-button-link-loading-border-color: transparent;
|
|
183
314
|
--amplify-components-button-link-loading-background-color: transparent;
|
|
184
315
|
--amplify-components-button-link-loading-color: var(--amplify-colors-font-disabled);
|
|
316
|
+
--amplify-components-button-link-info-border-color: transparent;
|
|
317
|
+
--amplify-components-button-link-info-background-color: transparent;
|
|
318
|
+
--amplify-components-button-link-info-color: var(--amplify-colors-blue-100);
|
|
319
|
+
--amplify-components-button-link-info-hover-border-color: transparent;
|
|
320
|
+
--amplify-components-button-link-info-hover-background-color: var(--amplify-colors-blue-10);
|
|
321
|
+
--amplify-components-button-link-info-hover-color: var(--amplify-colors-blue-90);
|
|
322
|
+
--amplify-components-button-link-info-focus-border-color: transparent;
|
|
323
|
+
--amplify-components-button-link-info-focus-background-color: var(--amplify-colors-blue-10);
|
|
324
|
+
--amplify-components-button-link-info-focus-color: var(--amplify-colors-blue-100);
|
|
325
|
+
--amplify-components-button-link-info-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-blue-100);
|
|
326
|
+
--amplify-components-button-link-info-active-border-color: transparent;
|
|
327
|
+
--amplify-components-button-link-info-active-background-color: var(--amplify-colors-blue-20);
|
|
328
|
+
--amplify-components-button-link-info-active-color: var(--amplify-colors-blue-100);
|
|
329
|
+
--amplify-components-button-link-warning-border-color: transparent;
|
|
330
|
+
--amplify-components-button-link-warning-background-color: transparent;
|
|
331
|
+
--amplify-components-button-link-warning-color: var(--amplify-colors-orange-100);
|
|
332
|
+
--amplify-components-button-link-warning-hover-border-color: transparent;
|
|
333
|
+
--amplify-components-button-link-warning-hover-background-color: var(--amplify-colors-orange-10);
|
|
334
|
+
--amplify-components-button-link-warning-hover-color: var(--amplify-colors-orange-90);
|
|
335
|
+
--amplify-components-button-link-warning-focus-border-color: transparent;
|
|
336
|
+
--amplify-components-button-link-warning-focus-background-color: var(--amplify-colors-orange-10);
|
|
337
|
+
--amplify-components-button-link-warning-focus-color: var(--amplify-colors-orange-100);
|
|
338
|
+
--amplify-components-button-link-warning-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-orange-100);
|
|
339
|
+
--amplify-components-button-link-warning-active-border-color: transparent;
|
|
340
|
+
--amplify-components-button-link-warning-active-background-color: var(--amplify-colors-orange-20);
|
|
341
|
+
--amplify-components-button-link-warning-active-color: var(--amplify-colors-orange-100);
|
|
342
|
+
--amplify-components-button-link-success-border-color: transparent;
|
|
343
|
+
--amplify-components-button-link-success-background-color: transparent;
|
|
344
|
+
--amplify-components-button-link-success-color: var(--amplify-colors-green-100);
|
|
345
|
+
--amplify-components-button-link-success-hover-border-color: transparent;
|
|
346
|
+
--amplify-components-button-link-success-hover-background-color: var(--amplify-colors-green-10);
|
|
347
|
+
--amplify-components-button-link-success-hover-color: var(--amplify-colors-green-90);
|
|
348
|
+
--amplify-components-button-link-success-focus-border-color: transparent;
|
|
349
|
+
--amplify-components-button-link-success-focus-background-color: var(--amplify-colors-green-10);
|
|
350
|
+
--amplify-components-button-link-success-focus-color: var(--amplify-colors-green-100);
|
|
351
|
+
--amplify-components-button-link-success-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-green-100);
|
|
352
|
+
--amplify-components-button-link-success-active-border-color: transparent;
|
|
353
|
+
--amplify-components-button-link-success-active-background-color: var(--amplify-colors-green-20);
|
|
354
|
+
--amplify-components-button-link-success-active-color: var(--amplify-colors-green-100);
|
|
355
|
+
--amplify-components-button-link-error-border-color: transparent;
|
|
356
|
+
--amplify-components-button-link-error-background-color: transparent;
|
|
357
|
+
--amplify-components-button-link-error-color: var(--amplify-colors-red-100);
|
|
358
|
+
--amplify-components-button-link-error-hover-border-color: transparent;
|
|
359
|
+
--amplify-components-button-link-error-hover-background-color: var(--amplify-colors-red-10);
|
|
360
|
+
--amplify-components-button-link-error-hover-color: var(--amplify-colors-red-90);
|
|
361
|
+
--amplify-components-button-link-error-focus-border-color: transparent;
|
|
362
|
+
--amplify-components-button-link-error-focus-background-color: var(--amplify-colors-red-10);
|
|
363
|
+
--amplify-components-button-link-error-focus-color: var(--amplify-colors-red-100);
|
|
364
|
+
--amplify-components-button-link-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-red-100);
|
|
365
|
+
--amplify-components-button-link-error-active-border-color: transparent;
|
|
366
|
+
--amplify-components-button-link-error-active-background-color: var(--amplify-colors-red-20);
|
|
367
|
+
--amplify-components-button-link-error-active-color: var(--amplify-colors-red-100);
|
|
368
|
+
--amplify-components-button-link-overlay-border-color: transparent;
|
|
369
|
+
--amplify-components-button-link-overlay-background-color: transparent;
|
|
370
|
+
--amplify-components-button-link-overlay-color: var(--amplify-colors-neutral-100);
|
|
371
|
+
--amplify-components-button-link-overlay-hover-border-color: transparent;
|
|
372
|
+
--amplify-components-button-link-overlay-hover-background-color: var(--amplify-colors-overlay-5);
|
|
373
|
+
--amplify-components-button-link-overlay-hover-color: var(--amplify-colors-overlay-80);
|
|
374
|
+
--amplify-components-button-link-overlay-focus-border-color: transparent;
|
|
375
|
+
--amplify-components-button-link-overlay-focus-background-color: var(--amplify-colors-overlay-5);
|
|
376
|
+
--amplify-components-button-link-overlay-focus-color: var(--amplify-colors-overlay-90);
|
|
377
|
+
--amplify-components-button-link-overlay-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-overlay-90);
|
|
378
|
+
--amplify-components-button-link-overlay-active-border-color: transparent;
|
|
379
|
+
--amplify-components-button-link-overlay-active-background-color: var(--amplify-colors-overlay-10);
|
|
380
|
+
--amplify-components-button-link-overlay-active-color: var(--amplify-colors-overlay-90);
|
|
185
381
|
--amplify-components-button-warning-background-color: transparent;
|
|
186
382
|
--amplify-components-button-warning-border-color: var(--amplify-colors-red-60);
|
|
187
383
|
--amplify-components-button-warning-border-width: var(--amplify-border-widths-small);
|
|
@@ -1094,6 +1290,7 @@
|
|
|
1094
1290
|
--amplify-colors-shadow-primary: hsla(210, 50%, 10%, 0.25);
|
|
1095
1291
|
--amplify-colors-shadow-secondary: hsla(210, 50%, 10%, 0.15);
|
|
1096
1292
|
--amplify-colors-shadow-tertiary: hsla(210, 50%, 10%, 0.05);
|
|
1293
|
+
--amplify-colors-overlay-5: hsla(0, 0%, 0%, 0.05);
|
|
1097
1294
|
--amplify-colors-overlay-10: hsla(0, 0%, 0%, 0.1);
|
|
1098
1295
|
--amplify-colors-overlay-20: hsla(0, 0%, 0%, 0.2);
|
|
1099
1296
|
--amplify-colors-overlay-30: hsla(0, 0%, 0%, 0.3);
|
|
@@ -10,7 +10,7 @@ type ColorValues<VariantKey extends string | number, Output, Platform = unknown>
|
|
|
10
10
|
type BaseColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Record<VariantKey, ColorValues<ScaleKey, Output, Platform>>;
|
|
11
11
|
type ColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Output extends 'required' | 'default' ? BaseColorValueScale<VariantKey, Output, Platform> : Partial<BaseColorValueScale<VariantKey, Output, Platform>>;
|
|
12
12
|
type ScaleKey = 10 | 20 | 40 | 60 | 80 | 90 | 100;
|
|
13
|
-
type OverlayKey = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
|
13
|
+
type OverlayKey = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
|
14
14
|
type ColorPaletteKey = 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink' | 'neutral';
|
|
15
15
|
type GreyscalePaletteKey = 'white' | 'black' | 'transparent';
|
|
16
16
|
type OrderVariant = 'primary' | 'secondary' | 'tertiary';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
2
|
type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
type ColorThemeTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output> & {
|
|
4
|
+
_hover?: StateTokens<Output>;
|
|
5
|
+
_focus?: StateWithShadowTokens<Output>;
|
|
6
|
+
_active?: StateTokens<Output>;
|
|
7
|
+
};
|
|
3
8
|
type StateWithShadowTokens<Output> = StateTokens<Output> & DesignTokenProperties<'boxShadow', Output>;
|
|
4
9
|
type MenuStateTokens<Output> = Omit<StateTokens<Output>, 'borderColor'>;
|
|
5
10
|
type PrimaryVariationTokens<Output> = StateTokens<Output> & DesignTokenProperties<'borderStyle' | 'borderWidth', Output> & {
|
|
@@ -8,6 +13,11 @@ type PrimaryVariationTokens<Output> = StateTokens<Output> & DesignTokenPropertie
|
|
|
8
13
|
_hover?: StateTokens<Output>;
|
|
9
14
|
_focus?: StateWithShadowTokens<Output>;
|
|
10
15
|
_active?: StateTokens<Output>;
|
|
16
|
+
info?: ColorThemeTokens<Output>;
|
|
17
|
+
error?: ColorThemeTokens<Output>;
|
|
18
|
+
success?: ColorThemeTokens<Output>;
|
|
19
|
+
warning?: ColorThemeTokens<Output>;
|
|
20
|
+
overlay?: ColorThemeTokens<Output>;
|
|
11
21
|
};
|
|
12
22
|
type MenuVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderWidth' | 'justifyContent', Output> & {
|
|
13
23
|
_hover?: MenuStateTokens<Output>;
|
|
@@ -21,9 +31,21 @@ type LinkVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'bo
|
|
|
21
31
|
_active?: StateTokens<Output>;
|
|
22
32
|
_disabled?: StateTokens<Output>;
|
|
23
33
|
_loading?: StateTokens<Output>;
|
|
34
|
+
info?: ColorThemeTokens<Output>;
|
|
35
|
+
error?: ColorThemeTokens<Output>;
|
|
36
|
+
success?: ColorThemeTokens<Output>;
|
|
37
|
+
warning?: ColorThemeTokens<Output>;
|
|
38
|
+
overlay?: ColorThemeTokens<Output>;
|
|
39
|
+
};
|
|
40
|
+
type OutlinedVariationTokens<Output> = {
|
|
41
|
+
info?: ColorThemeTokens<Output>;
|
|
42
|
+
error?: ColorThemeTokens<Output>;
|
|
43
|
+
success?: ColorThemeTokens<Output>;
|
|
44
|
+
warning?: ColorThemeTokens<Output>;
|
|
45
|
+
overlay?: ColorThemeTokens<Output>;
|
|
24
46
|
};
|
|
25
47
|
type ButtonSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
|
|
26
|
-
export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
|
|
48
|
+
export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'backgroundColor' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
|
|
27
49
|
_hover?: StateTokens<Output>;
|
|
28
50
|
_focus?: StateWithShadowTokens<Output>;
|
|
29
51
|
_active?: StateTokens<Output>;
|
|
@@ -34,6 +56,7 @@ export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenPropertie
|
|
|
34
56
|
destructive?: PrimaryVariationTokens<Output>;
|
|
35
57
|
menu?: MenuVariationTokens<Output>;
|
|
36
58
|
link?: LinkVariationTokens<Output>;
|
|
59
|
+
outlined?: OutlinedVariationTokens<Output>;
|
|
37
60
|
small?: ButtonSizeTokens<Output>;
|
|
38
61
|
large?: ButtonSizeTokens<Output>;
|
|
39
62
|
loaderWrapper?: DesignTokenProperties<'alignItems' | 'gap', Output>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prevents usage of T from being automatically inferred.
|
|
3
|
+
* see: https://github.com/Microsoft/TypeScript/issues/14829#issuecomment-504042546
|
|
4
|
+
*/
|
|
1
5
|
export type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
6
|
+
/**
|
|
7
|
+
* Improves readability of enumerable properties of an `Object` created from another `Object`,
|
|
8
|
+
* for example types that have been created using `Omit` or `Pick`.
|
|
9
|
+
*/
|
|
10
|
+
export type Prettify<T> = {
|
|
11
|
+
[K in keyof T]: T[K];
|
|
12
|
+
} & {};
|
|
2
13
|
/**
|
|
3
14
|
Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
4
15
|
|
|
@@ -110,3 +110,26 @@ export declare const classNameModifier: (base: ComponentClassName, modifier?: Mo
|
|
|
110
110
|
* @returns the modified class name or empty string
|
|
111
111
|
*/
|
|
112
112
|
export declare const classNameModifierByFlag: (base: ComponentClassName, modifier: Modifiers, flag?: boolean) => string;
|
|
113
|
+
/**
|
|
114
|
+
* `isFunction` but types the param with its function signature
|
|
115
|
+
*
|
|
116
|
+
* @param {unknown} value param to check
|
|
117
|
+
* @returns {boolean} whether `value` is a function
|
|
118
|
+
*/
|
|
119
|
+
export declare function isTypedFunction<T extends (...args: any[]) => any>(value: unknown): value is T;
|
|
120
|
+
/**
|
|
121
|
+
* Similar to `Array.join`, with an optional callback/template param
|
|
122
|
+
* for formatting returned string values
|
|
123
|
+
*
|
|
124
|
+
* @param {string[]} values string array
|
|
125
|
+
* @param {(value: string) => string} template callback format param
|
|
126
|
+
* @returns formatted string array
|
|
127
|
+
*/
|
|
128
|
+
export declare function templateJoin(values: string[], template: (value: string) => string): string;
|
|
129
|
+
/**
|
|
130
|
+
* A function that does nothing
|
|
131
|
+
*
|
|
132
|
+
* @param {any[]} _ accepts any parameters
|
|
133
|
+
* @returns nothing
|
|
134
|
+
*/
|
|
135
|
+
export declare function noop(..._: any[]): void;
|