@aws-amplify/ui 3.6.1 → 3.6.4

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.
Files changed (54) hide show
  1. package/dist/esm/machines/authenticator/index.js +1 -1
  2. package/dist/esm/theme/tokens/components/button.js +1 -1
  3. package/dist/esm/theme/tokens/components/countryCodeSelect.js +1 -1
  4. package/dist/esm/theme/tokens/components/fieldControl.js +1 -1
  5. package/dist/esm/theme/tokens/components/fieldGroup.js +1 -1
  6. package/dist/esm/theme/tokens/components/index.js +1 -1
  7. package/dist/esm/theme/tokens/components/menu.js +1 -1
  8. package/dist/esm/theme/tokens/components/switchField.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/styles.css +32 -32
  11. package/dist/theme.css +32 -32
  12. package/dist/types/theme/tokens/components/alert.d.ts +28 -65
  13. package/dist/types/theme/tokens/components/authenticator.d.ts +47 -71
  14. package/dist/types/theme/tokens/components/badge.d.ts +29 -83
  15. package/dist/types/theme/tokens/components/button.d.ts +81 -326
  16. package/dist/types/theme/tokens/components/card.d.ts +15 -62
  17. package/dist/types/theme/tokens/components/checkbox.d.ts +75 -140
  18. package/dist/types/theme/tokens/components/checkboxField.d.ts +8 -14
  19. package/dist/types/theme/tokens/components/copy.d.ts +20 -26
  20. package/dist/types/theme/tokens/components/countryCodeSelect.d.ts +5 -5
  21. package/dist/types/theme/tokens/components/divider.d.ts +21 -38
  22. package/dist/types/theme/tokens/components/expander.d.ts +69 -135
  23. package/dist/types/theme/tokens/components/field.d.ts +17 -29
  24. package/dist/types/theme/tokens/components/fieldControl.d.ts +72 -174
  25. package/dist/types/theme/tokens/components/fieldGroup.d.ts +14 -15
  26. package/dist/types/theme/tokens/components/fieldMessages.d.ts +16 -21
  27. package/dist/types/theme/tokens/components/flex.d.ts +9 -17
  28. package/dist/types/theme/tokens/components/heading.d.ts +17 -56
  29. package/dist/types/theme/tokens/components/icon.d.ts +6 -8
  30. package/dist/types/theme/tokens/components/image.d.ts +8 -14
  31. package/dist/types/theme/tokens/components/index.d.ts +75 -2493
  32. package/dist/types/theme/tokens/components/link.d.ts +18 -35
  33. package/dist/types/theme/tokens/components/loader.d.ts +40 -92
  34. package/dist/types/theme/tokens/components/menu.d.ts +27 -59
  35. package/dist/types/theme/tokens/components/pagination.d.ts +48 -82
  36. package/dist/types/theme/tokens/components/placeholder.d.ts +15 -29
  37. package/dist/types/theme/tokens/components/radio.d.ts +72 -131
  38. package/dist/types/theme/tokens/components/rating.d.ts +19 -27
  39. package/dist/types/theme/tokens/components/select.d.ts +33 -60
  40. package/dist/types/theme/tokens/components/selectField.d.ts +5 -5
  41. package/dist/types/theme/tokens/components/sliderField.d.ts +61 -118
  42. package/dist/types/theme/tokens/components/stepperField.d.ts +10 -10
  43. package/dist/types/theme/tokens/components/switchField.d.ts +53 -78
  44. package/dist/types/theme/tokens/components/table.d.ts +61 -197
  45. package/dist/types/theme/tokens/components/tabs.d.ts +44 -84
  46. package/dist/types/theme/tokens/components/text.d.ts +16 -40
  47. package/dist/types/theme/tokens/components/toggleButton.d.ts +103 -154
  48. package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +7 -11
  49. package/dist/types/theme/tokens/index.d.ts +2 -1
  50. package/dist/types/theme/tokens/types/designToken.d.ts +41 -5
  51. package/dist/types/types/authenticator/stateMachine/context.d.ts +1 -0
  52. package/package.json +4 -2
  53. package/dist/esm/theme/tokens/components/phoneNumberField.js +0 -1
  54. package/dist/types/theme/tokens/components/phoneNumberField.d.ts +0 -1
package/dist/styles.css CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Thu, 07 Apr 2022 22:05:00 GMT
6
+ * Generated on Wed, 20 Apr 2022 01:36:14 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
@@ -247,7 +247,6 @@
247
247
  --amplify-components-menu-item-min-height: 2.5rem;
248
248
  --amplify-components-menu-min-width: 14rem;
249
249
  --amplify-components-menu-max-width: 30rem;
250
- --amplify-components-menu-gap: 0;
251
250
  --amplify-components-menu-flex-direction: column;
252
251
  --amplify-components-menu-border-style: solid;
253
252
  --amplify-components-loader-linear-animation-duration: 1s;
@@ -269,7 +268,6 @@
269
268
  --amplify-components-fieldmessages-description-font-style: italic;
270
269
  --amplify-components-fieldgroup-outer-align-items: center;
271
270
  --amplify-components-fieldgroup-vertical-align-items: center;
272
- --amplify-components-fieldgroup-gap: 0;
273
271
  --amplify-components-fieldcontrol-disabled-cursor: not-allowed;
274
272
  --amplify-components-fieldcontrol-quiet-border-radius: 0;
275
273
  --amplify-components-fieldcontrol-quiet-border-block-start: none;
@@ -288,7 +286,6 @@
288
286
  --amplify-components-expander-width: 100%;
289
287
  --amplify-components-expander-display: block;
290
288
  --amplify-components-divider-border-style: solid;
291
- --amplify-components-countrycodeselect-height: 100%;
292
289
  --amplify-components-checkboxfield-justify-content: center;
293
290
  --amplify-components-checkboxfield-flex-direction: column;
294
291
  --amplify-components-checkboxfield-align-content: center;
@@ -325,12 +322,10 @@
325
322
  --amplify-components-button-link-active-border-color: transparent;
326
323
  --amplify-components-button-link-focus-border-color: transparent;
327
324
  --amplify-components-button-link-hover-border-color: transparent;
328
- --amplify-components-button-link-background-color: transparent;
329
325
  --amplify-components-button-link-border-color: transparent;
330
- --amplify-components-button-link-border-width: 0;
326
+ --amplify-components-button-link-background-color: transparent;
331
327
  --amplify-components-button-menu-justify-content: start;
332
328
  --amplify-components-button-menu-background-color: transparent;
333
- --amplify-components-button-menu-border-width: 0;
334
329
  --amplify-components-button-primary-active-border-color: transparent;
335
330
  --amplify-components-button-primary-focus-border-color: transparent;
336
331
  --amplify-components-button-primary-hover-border-color: transparent;
@@ -347,9 +342,9 @@
347
342
  --amplify-components-authenticator-max-width: 60rem;
348
343
  --amplify-components-alert-justify-content: space-between;
349
344
  --amplify-components-alert-align-items: center;
350
- --amplify-shadows-large: [object Object];
351
- --amplify-shadows-medium: [object Object];
352
- --amplify-shadows-small: [object Object];
345
+ --amplify-shadows-large: 0px 4px 12px var(--amplify-colors-shadow-primary);
346
+ --amplify-shadows-medium: 0px 2px 6px var(--amplify-colors-shadow-secondary);
347
+ --amplify-shadows-small: 0px 2px 4px var(--amplify-colors-shadow-tertiary);
353
348
  --amplify-colors-border-error: var(--amplify-colors-red-80);
354
349
  --amplify-colors-border-tertiary: var(--amplify-colors-neutral-20);
355
350
  --amplify-colors-border-secondary: var(--amplify-colors-neutral-40);
@@ -490,6 +485,7 @@
490
485
  --amplify-components-menu-large-width: var(--amplify-font-sizes-xxxl);
491
486
  --amplify-components-menu-small-height: var(--amplify-font-sizes-medium);
492
487
  --amplify-components-menu-small-width: var(--amplify-font-sizes-medium);
488
+ --amplify-components-menu-gap: var(--amplify-space-zero);
493
489
  --amplify-components-menu-border-width: var(--amplify-border-widths-small);
494
490
  --amplify-components-menu-border-radius: var(--amplify-radii-medium);
495
491
  --amplify-components-menu-background-color: var(--amplify-colors-white);
@@ -528,6 +524,7 @@
528
524
  --amplify-components-flex-gap: var(--amplify-space-medium);
529
525
  --amplify-components-fieldmessages-description-font-size: var(--amplify-font-sizes-small);
530
526
  --amplify-components-fieldmessages-error-font-size: var(--amplify-font-sizes-small);
527
+ --amplify-components-fieldgroup-gap: var(--amplify-space-zero);
531
528
  --amplify-components-fieldcontrol-disabled-border-color: var(--amplify-colors-transparent);
532
529
  --amplify-components-fieldcontrol-quiet-border-block-end: var(--amplify-border-widths-small) solid var(--amplify-colors-border-primary);
533
530
  --amplify-components-fieldcontrol-large-padding-inline-end: var(--amplify-space-medium);
@@ -565,7 +562,7 @@
565
562
  --amplify-components-expander-trigger-hover-background-color: var(--amplify-colors-overlay-10);
566
563
  --amplify-components-expander-trigger-padding-inline-end: var(--amplify-space-large);
567
564
  --amplify-components-expander-trigger-padding-inline-start: var(--amplify-space-large);
568
- --amplify-components-expander-header-box-shadow: [object Object];
565
+ --amplify-components-expander-header-box-shadow: 0 1px 0 var(--amplify-colors-overlay-20);
569
566
  --amplify-components-expander-item-border-end-end-radius: var(--amplify-radii-medium);
570
567
  --amplify-components-expander-item-border-end-start-radius: var(--amplify-radii-medium);
571
568
  --amplify-components-expander-item-border-start-end-radius: var(--amplify-radii-medium);
@@ -582,6 +579,7 @@
582
579
  --amplify-components-divider-label-font-size: var(--amplify-font-sizes-small);
583
580
  --amplify-components-divider-label-padding-inline: var(--amplify-space-medium);
584
581
  --amplify-components-divider-border-width: var(--amplify-border-widths-medium);
582
+ --amplify-components-countrycodeselect-height: var(--amplify-space-relative-full);
585
583
  --amplify-components-copy-tool-tip-font-size: var(--amplify-font-sizes-xxs);
586
584
  --amplify-components-copy-tool-tip-color: var(--amplify-colors-teal-100);
587
585
  --amplify-components-copy-tool-tip-bottom: var(--amplify-space-large);
@@ -604,6 +602,8 @@
604
602
  --amplify-components-card-padding: var(--amplify-space-medium);
605
603
  --amplify-components-card-border-radius: var(--amplify-radii-xs);
606
604
  --amplify-components-button-loader-wrapper-gap: var(--amplify-space-xs);
605
+ --amplify-components-button-link-border-width: var(--amplify-space-zero);
606
+ --amplify-components-button-menu-border-width: var(--amplify-space-zero);
607
607
  --amplify-components-button-primary-border-width: var(--amplify-border-widths-small);
608
608
  --amplify-components-button-border-style: var(--amplify-components-fieldcontrol-border-style);
609
609
  --amplify-components-button-font-weight: 700;
@@ -671,10 +671,9 @@
671
671
  --amplify-components-switchfield-track-background-color: var(--amplify-colors-background-tertiary);
672
672
  --amplify-components-switchfield-thumb-border-color: var(--amplify-colors-border-tertiary);
673
673
  --amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
674
- --amplify-components-switchfield-focused-shadow: [object Object];
675
674
  --amplify-components-sliderfield-thumb-hover-background-color: var(--amplify-colors-background-primary);
676
675
  --amplify-components-sliderfield-thumb-border-color: var(--amplify-colors-border-primary);
677
- --amplify-components-sliderfield-thumb-box-shadow: [object Object];
676
+ --amplify-components-sliderfield-thumb-box-shadow: var(--amplify-shadows-small);
678
677
  --amplify-components-sliderfield-thumb-background-color: var(--amplify-colors-background-primary);
679
678
  --amplify-components-sliderfield-range-background-color: var(--amplify-colors-brand-primary-80);
680
679
  --amplify-components-sliderfield-track-background-color: var(--amplify-colors-background-tertiary);
@@ -689,7 +688,7 @@
689
688
  --amplify-components-placeholder-start-color: var(--amplify-colors-background-secondary);
690
689
  --amplify-components-pagination-button-hover-color: var(--amplify-colors-font-primary);
691
690
  --amplify-components-pagination-button-color: var(--amplify-colors-font-primary);
692
- --amplify-components-menu-box-shadow: [object Object];
691
+ --amplify-components-menu-box-shadow: var(--amplify-shadows-large);
693
692
  --amplify-components-menu-border-color: var(--amplify-colors-border-primary);
694
693
  --amplify-components-loader-text-fill: var(--amplify-colors-font-primary);
695
694
  --amplify-components-loader-linear-stroke-filled: var(--amplify-colors-brand-primary-80);
@@ -697,9 +696,9 @@
697
696
  --amplify-components-heading-color: var(--amplify-colors-font-primary);
698
697
  --amplify-components-fieldmessages-description-color: var(--amplify-colors-font-secondary);
699
698
  --amplify-components-fieldmessages-error-color: var(--amplify-colors-font-error);
700
- --amplify-components-fieldcontrol-error-focus-box-shadow: [object Object];
699
+ --amplify-components-fieldcontrol-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-error);
701
700
  --amplify-components-fieldcontrol-error-border-color: var(--amplify-colors-border-error);
702
- --amplify-components-fieldcontrol-quiet-error-focus-box-shadow: [object Object];
701
+ --amplify-components-fieldcontrol-quiet-error-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-error);
703
702
  --amplify-components-fieldcontrol-quiet-error-border-block-end-color: var(--amplify-colors-border-error);
704
703
  --amplify-components-fieldcontrol-large-font-size: var(--amplify-components-field-large-font-size);
705
704
  --amplify-components-fieldcontrol-small-font-size: var(--amplify-components-field-small-font-size);
@@ -708,17 +707,17 @@
708
707
  --amplify-components-fieldcontrol-border-color: var(--amplify-colors-border-primary);
709
708
  --amplify-components-field-label-color: var(--amplify-colors-font-secondary);
710
709
  --amplify-components-expander-content-text-color: var(--amplify-colors-font-secondary);
711
- --amplify-components-expander-item-box-shadow: [object Object];
712
- --amplify-components-expander-box-shadow: [object Object];
710
+ --amplify-components-expander-item-box-shadow: var(--amplify-shadows-small);
711
+ --amplify-components-expander-box-shadow: var(--amplify-shadows-large);
713
712
  --amplify-components-divider-label-background-color: var(--amplify-colors-background-primary);
714
713
  --amplify-components-divider-label-color: var(--amplify-colors-font-tertiary);
715
714
  --amplify-components-divider-border-color: var(--amplify-colors-border-primary);
716
715
  --amplify-components-copy-svg-path-fill: var(--amplify-colors-font-primary);
717
716
  --amplify-components-checkbox-icon-background-color: var(--amplify-colors-brand-primary-80);
718
- --amplify-components-checkbox-button-error-focus-box-shadow: [object Object];
717
+ --amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
719
718
  --amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
720
719
  --amplify-components-checkbox-button-before-border-color: var(--amplify-colors-border-primary);
721
- --amplify-components-card-elevated-box-shadow: [object Object];
720
+ --amplify-components-card-elevated-box-shadow: var(--amplify-shadows-medium);
722
721
  --amplify-components-card-outlined-border-color: var(--amplify-colors-border-primary);
723
722
  --amplify-components-card-background-color: var(--amplify-colors-background-primary);
724
723
  --amplify-components-button-large-padding-inline-end: var(--amplify-components-fieldcontrol-large-padding-inline-end);
@@ -774,7 +773,7 @@
774
773
  --amplify-components-badge-color: var(--amplify-colors-font-primary);
775
774
  --amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
776
775
  --amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
777
- --amplify-components-authenticator-router-box-shadow: [object Object];
776
+ --amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
778
777
  --amplify-components-authenticator-router-background-color: var(--amplify-colors-background-primary);
779
778
  --amplify-components-authenticator-router-border-color: var(--amplify-colors-border-primary);
780
779
  --amplify-components-alert-success-background-color: var(--amplify-colors-background-success);
@@ -799,13 +798,14 @@
799
798
  --amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
800
799
  --amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
801
800
  --amplify-components-tabs-item-hover-color: var(--amplify-colors-font-hover);
802
- --amplify-components-sliderfield-thumb-focus-box-shadow: [object Object];
801
+ --amplify-components-switchfield-focused-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
802
+ --amplify-components-sliderfield-thumb-focus-box-shadow: 0 0 0 3px var(--amplify-colors-border-focus);
803
803
  --amplify-components-sliderfield-thumb-hover-border-color: var(--amplify-colors-border-focus);
804
804
  --amplify-components-sliderfield-thumb-disabled-background-color: var(--amplify-colors-background-disabled);
805
805
  --amplify-components-sliderfield-range-disabled-background-color: var(--amplify-colors-background-disabled);
806
806
  --amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
807
807
  --amplify-components-radio-button-disabled-border-color: var(--amplify-colors-border-disabled);
808
- --amplify-components-radio-button-error-focus-box-shadow: [object Object];
808
+ --amplify-components-radio-button-error-focus-box-shadow: var(--amplify-components-fieldcontrol-error-focus-box-shadow);
809
809
  --amplify-components-radio-button-focus-border-color: var(--amplify-colors-border-focus);
810
810
  --amplify-components-radio-button-checked-disabled-color: var(--amplify-colors-background-disabled);
811
811
  --amplify-components-pagination-button-disabled-color: var(--amplify-colors-font-disabled);
@@ -816,15 +816,15 @@
816
816
  --amplify-components-link-active-color: var(--amplify-colors-font-active);
817
817
  --amplify-components-fieldcontrol-disabled-background-color: var(--amplify-colors-background-disabled);
818
818
  --amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
819
- --amplify-components-fieldcontrol-focus-box-shadow: [object Object];
819
+ --amplify-components-fieldcontrol-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-focus);
820
820
  --amplify-components-fieldcontrol-focus-border-color: var(--amplify-colors-border-focus);
821
- --amplify-components-fieldcontrol-quiet-focus-box-shadow: [object Object];
821
+ --amplify-components-fieldcontrol-quiet-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-focus);
822
822
  --amplify-components-fieldcontrol-quiet-focus-border-block-end-color: var(--amplify-colors-border-focus);
823
- --amplify-components-expander-item-focus-box-shadow: [object Object];
823
+ --amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
824
824
  --amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
825
825
  --amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
826
826
  --amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
827
- --amplify-components-checkbox-button-focus-box-shadow: [object Object];
827
+ --amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
828
828
  --amplify-components-card-elevated-background-color: var(--amplify-components-card-background-color);
829
829
  --amplify-components-card-outlined-background-color: var(--amplify-components-card-background-color);
830
830
  --amplify-components-button-large-font-size: var(--amplify-components-fieldcontrol-large-font-size);
@@ -848,11 +848,11 @@
848
848
  --amplify-components-button-hover-color: var(--amplify-colors-font-focus);
849
849
  --amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
850
850
  --amplify-components-button-font-size: var(--amplify-components-fieldcontrol-font-size);
851
- --amplify-components-togglebutton-primary-focus-box-shadow: [object Object];
852
- --amplify-components-radio-button-focus-box-shadow: [object Object];
853
- --amplify-components-button-link-focus-box-shadow: [object Object];
854
- --amplify-components-button-primary-focus-box-shadow: [object Object];
855
- --amplify-components-button-focus-box-shadow: [object Object];
851
+ --amplify-components-togglebutton-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
852
+ --amplify-components-radio-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
853
+ --amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
854
+ --amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
855
+ --amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
856
856
  }
857
857
 
858
858
  html {
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 07 Apr 2022 22:05:00 GMT
3
+ * Generated on Wed, 20 Apr 2022 01:36:14 GMT
4
4
  */
5
5
 
6
6
  :root, [data-amplify-theme] {
@@ -245,7 +245,6 @@
245
245
  --amplify-components-menu-item-min-height: 2.5rem;
246
246
  --amplify-components-menu-min-width: 14rem;
247
247
  --amplify-components-menu-max-width: 30rem;
248
- --amplify-components-menu-gap: 0;
249
248
  --amplify-components-menu-flex-direction: column;
250
249
  --amplify-components-menu-border-style: solid;
251
250
  --amplify-components-loader-linear-animation-duration: 1s;
@@ -267,7 +266,6 @@
267
266
  --amplify-components-fieldmessages-description-font-style: italic;
268
267
  --amplify-components-fieldgroup-outer-align-items: center;
269
268
  --amplify-components-fieldgroup-vertical-align-items: center;
270
- --amplify-components-fieldgroup-gap: 0;
271
269
  --amplify-components-fieldcontrol-disabled-cursor: not-allowed;
272
270
  --amplify-components-fieldcontrol-quiet-border-radius: 0;
273
271
  --amplify-components-fieldcontrol-quiet-border-block-start: none;
@@ -286,7 +284,6 @@
286
284
  --amplify-components-expander-width: 100%;
287
285
  --amplify-components-expander-display: block;
288
286
  --amplify-components-divider-border-style: solid;
289
- --amplify-components-countrycodeselect-height: 100%;
290
287
  --amplify-components-checkboxfield-justify-content: center;
291
288
  --amplify-components-checkboxfield-flex-direction: column;
292
289
  --amplify-components-checkboxfield-align-content: center;
@@ -323,12 +320,10 @@
323
320
  --amplify-components-button-link-active-border-color: transparent;
324
321
  --amplify-components-button-link-focus-border-color: transparent;
325
322
  --amplify-components-button-link-hover-border-color: transparent;
326
- --amplify-components-button-link-background-color: transparent;
327
323
  --amplify-components-button-link-border-color: transparent;
328
- --amplify-components-button-link-border-width: 0;
324
+ --amplify-components-button-link-background-color: transparent;
329
325
  --amplify-components-button-menu-justify-content: start;
330
326
  --amplify-components-button-menu-background-color: transparent;
331
- --amplify-components-button-menu-border-width: 0;
332
327
  --amplify-components-button-primary-active-border-color: transparent;
333
328
  --amplify-components-button-primary-focus-border-color: transparent;
334
329
  --amplify-components-button-primary-hover-border-color: transparent;
@@ -345,9 +340,9 @@
345
340
  --amplify-components-authenticator-max-width: 60rem;
346
341
  --amplify-components-alert-justify-content: space-between;
347
342
  --amplify-components-alert-align-items: center;
348
- --amplify-shadows-large: [object Object];
349
- --amplify-shadows-medium: [object Object];
350
- --amplify-shadows-small: [object Object];
343
+ --amplify-shadows-large: 0px 4px 12px var(--amplify-colors-shadow-primary);
344
+ --amplify-shadows-medium: 0px 2px 6px var(--amplify-colors-shadow-secondary);
345
+ --amplify-shadows-small: 0px 2px 4px var(--amplify-colors-shadow-tertiary);
351
346
  --amplify-colors-border-error: var(--amplify-colors-red-80);
352
347
  --amplify-colors-border-tertiary: var(--amplify-colors-neutral-20);
353
348
  --amplify-colors-border-secondary: var(--amplify-colors-neutral-40);
@@ -488,6 +483,7 @@
488
483
  --amplify-components-menu-large-width: var(--amplify-font-sizes-xxxl);
489
484
  --amplify-components-menu-small-height: var(--amplify-font-sizes-medium);
490
485
  --amplify-components-menu-small-width: var(--amplify-font-sizes-medium);
486
+ --amplify-components-menu-gap: var(--amplify-space-zero);
491
487
  --amplify-components-menu-border-width: var(--amplify-border-widths-small);
492
488
  --amplify-components-menu-border-radius: var(--amplify-radii-medium);
493
489
  --amplify-components-menu-background-color: var(--amplify-colors-white);
@@ -526,6 +522,7 @@
526
522
  --amplify-components-flex-gap: var(--amplify-space-medium);
527
523
  --amplify-components-fieldmessages-description-font-size: var(--amplify-font-sizes-small);
528
524
  --amplify-components-fieldmessages-error-font-size: var(--amplify-font-sizes-small);
525
+ --amplify-components-fieldgroup-gap: var(--amplify-space-zero);
529
526
  --amplify-components-fieldcontrol-disabled-border-color: var(--amplify-colors-transparent);
530
527
  --amplify-components-fieldcontrol-quiet-border-block-end: var(--amplify-border-widths-small) solid var(--amplify-colors-border-primary);
531
528
  --amplify-components-fieldcontrol-large-padding-inline-end: var(--amplify-space-medium);
@@ -563,7 +560,7 @@
563
560
  --amplify-components-expander-trigger-hover-background-color: var(--amplify-colors-overlay-10);
564
561
  --amplify-components-expander-trigger-padding-inline-end: var(--amplify-space-large);
565
562
  --amplify-components-expander-trigger-padding-inline-start: var(--amplify-space-large);
566
- --amplify-components-expander-header-box-shadow: [object Object];
563
+ --amplify-components-expander-header-box-shadow: 0 1px 0 var(--amplify-colors-overlay-20);
567
564
  --amplify-components-expander-item-border-end-end-radius: var(--amplify-radii-medium);
568
565
  --amplify-components-expander-item-border-end-start-radius: var(--amplify-radii-medium);
569
566
  --amplify-components-expander-item-border-start-end-radius: var(--amplify-radii-medium);
@@ -580,6 +577,7 @@
580
577
  --amplify-components-divider-label-font-size: var(--amplify-font-sizes-small);
581
578
  --amplify-components-divider-label-padding-inline: var(--amplify-space-medium);
582
579
  --amplify-components-divider-border-width: var(--amplify-border-widths-medium);
580
+ --amplify-components-countrycodeselect-height: var(--amplify-space-relative-full);
583
581
  --amplify-components-copy-tool-tip-font-size: var(--amplify-font-sizes-xxs);
584
582
  --amplify-components-copy-tool-tip-color: var(--amplify-colors-teal-100);
585
583
  --amplify-components-copy-tool-tip-bottom: var(--amplify-space-large);
@@ -602,6 +600,8 @@
602
600
  --amplify-components-card-padding: var(--amplify-space-medium);
603
601
  --amplify-components-card-border-radius: var(--amplify-radii-xs);
604
602
  --amplify-components-button-loader-wrapper-gap: var(--amplify-space-xs);
603
+ --amplify-components-button-link-border-width: var(--amplify-space-zero);
604
+ --amplify-components-button-menu-border-width: var(--amplify-space-zero);
605
605
  --amplify-components-button-primary-border-width: var(--amplify-border-widths-small);
606
606
  --amplify-components-button-border-style: var(--amplify-components-fieldcontrol-border-style);
607
607
  --amplify-components-button-font-weight: 700;
@@ -669,10 +669,9 @@
669
669
  --amplify-components-switchfield-track-background-color: var(--amplify-colors-background-tertiary);
670
670
  --amplify-components-switchfield-thumb-border-color: var(--amplify-colors-border-tertiary);
671
671
  --amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
672
- --amplify-components-switchfield-focused-shadow: [object Object];
673
672
  --amplify-components-sliderfield-thumb-hover-background-color: var(--amplify-colors-background-primary);
674
673
  --amplify-components-sliderfield-thumb-border-color: var(--amplify-colors-border-primary);
675
- --amplify-components-sliderfield-thumb-box-shadow: [object Object];
674
+ --amplify-components-sliderfield-thumb-box-shadow: var(--amplify-shadows-small);
676
675
  --amplify-components-sliderfield-thumb-background-color: var(--amplify-colors-background-primary);
677
676
  --amplify-components-sliderfield-range-background-color: var(--amplify-colors-brand-primary-80);
678
677
  --amplify-components-sliderfield-track-background-color: var(--amplify-colors-background-tertiary);
@@ -687,7 +686,7 @@
687
686
  --amplify-components-placeholder-start-color: var(--amplify-colors-background-secondary);
688
687
  --amplify-components-pagination-button-hover-color: var(--amplify-colors-font-primary);
689
688
  --amplify-components-pagination-button-color: var(--amplify-colors-font-primary);
690
- --amplify-components-menu-box-shadow: [object Object];
689
+ --amplify-components-menu-box-shadow: var(--amplify-shadows-large);
691
690
  --amplify-components-menu-border-color: var(--amplify-colors-border-primary);
692
691
  --amplify-components-loader-text-fill: var(--amplify-colors-font-primary);
693
692
  --amplify-components-loader-linear-stroke-filled: var(--amplify-colors-brand-primary-80);
@@ -695,9 +694,9 @@
695
694
  --amplify-components-heading-color: var(--amplify-colors-font-primary);
696
695
  --amplify-components-fieldmessages-description-color: var(--amplify-colors-font-secondary);
697
696
  --amplify-components-fieldmessages-error-color: var(--amplify-colors-font-error);
698
- --amplify-components-fieldcontrol-error-focus-box-shadow: [object Object];
697
+ --amplify-components-fieldcontrol-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-error);
699
698
  --amplify-components-fieldcontrol-error-border-color: var(--amplify-colors-border-error);
700
- --amplify-components-fieldcontrol-quiet-error-focus-box-shadow: [object Object];
699
+ --amplify-components-fieldcontrol-quiet-error-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-error);
701
700
  --amplify-components-fieldcontrol-quiet-error-border-block-end-color: var(--amplify-colors-border-error);
702
701
  --amplify-components-fieldcontrol-large-font-size: var(--amplify-components-field-large-font-size);
703
702
  --amplify-components-fieldcontrol-small-font-size: var(--amplify-components-field-small-font-size);
@@ -706,17 +705,17 @@
706
705
  --amplify-components-fieldcontrol-border-color: var(--amplify-colors-border-primary);
707
706
  --amplify-components-field-label-color: var(--amplify-colors-font-secondary);
708
707
  --amplify-components-expander-content-text-color: var(--amplify-colors-font-secondary);
709
- --amplify-components-expander-item-box-shadow: [object Object];
710
- --amplify-components-expander-box-shadow: [object Object];
708
+ --amplify-components-expander-item-box-shadow: var(--amplify-shadows-small);
709
+ --amplify-components-expander-box-shadow: var(--amplify-shadows-large);
711
710
  --amplify-components-divider-label-background-color: var(--amplify-colors-background-primary);
712
711
  --amplify-components-divider-label-color: var(--amplify-colors-font-tertiary);
713
712
  --amplify-components-divider-border-color: var(--amplify-colors-border-primary);
714
713
  --amplify-components-copy-svg-path-fill: var(--amplify-colors-font-primary);
715
714
  --amplify-components-checkbox-icon-background-color: var(--amplify-colors-brand-primary-80);
716
- --amplify-components-checkbox-button-error-focus-box-shadow: [object Object];
715
+ --amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
717
716
  --amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
718
717
  --amplify-components-checkbox-button-before-border-color: var(--amplify-colors-border-primary);
719
- --amplify-components-card-elevated-box-shadow: [object Object];
718
+ --amplify-components-card-elevated-box-shadow: var(--amplify-shadows-medium);
720
719
  --amplify-components-card-outlined-border-color: var(--amplify-colors-border-primary);
721
720
  --amplify-components-card-background-color: var(--amplify-colors-background-primary);
722
721
  --amplify-components-button-large-padding-inline-end: var(--amplify-components-fieldcontrol-large-padding-inline-end);
@@ -772,7 +771,7 @@
772
771
  --amplify-components-badge-color: var(--amplify-colors-font-primary);
773
772
  --amplify-components-authenticator-or-container-or-line-background-color: var(--amplify-colors-background-primary);
774
773
  --amplify-components-authenticator-state-inactive-background-color: var(--amplify-colors-background-secondary);
775
- --amplify-components-authenticator-router-box-shadow: [object Object];
774
+ --amplify-components-authenticator-router-box-shadow: var(--amplify-shadows-medium);
776
775
  --amplify-components-authenticator-router-background-color: var(--amplify-colors-background-primary);
777
776
  --amplify-components-authenticator-router-border-color: var(--amplify-colors-border-primary);
778
777
  --amplify-components-alert-success-background-color: var(--amplify-colors-background-success);
@@ -797,13 +796,14 @@
797
796
  --amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
798
797
  --amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
799
798
  --amplify-components-tabs-item-hover-color: var(--amplify-colors-font-hover);
800
- --amplify-components-sliderfield-thumb-focus-box-shadow: [object Object];
799
+ --amplify-components-switchfield-focused-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
800
+ --amplify-components-sliderfield-thumb-focus-box-shadow: 0 0 0 3px var(--amplify-colors-border-focus);
801
801
  --amplify-components-sliderfield-thumb-hover-border-color: var(--amplify-colors-border-focus);
802
802
  --amplify-components-sliderfield-thumb-disabled-background-color: var(--amplify-colors-background-disabled);
803
803
  --amplify-components-sliderfield-range-disabled-background-color: var(--amplify-colors-background-disabled);
804
804
  --amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
805
805
  --amplify-components-radio-button-disabled-border-color: var(--amplify-colors-border-disabled);
806
- --amplify-components-radio-button-error-focus-box-shadow: [object Object];
806
+ --amplify-components-radio-button-error-focus-box-shadow: var(--amplify-components-fieldcontrol-error-focus-box-shadow);
807
807
  --amplify-components-radio-button-focus-border-color: var(--amplify-colors-border-focus);
808
808
  --amplify-components-radio-button-checked-disabled-color: var(--amplify-colors-background-disabled);
809
809
  --amplify-components-pagination-button-disabled-color: var(--amplify-colors-font-disabled);
@@ -814,15 +814,15 @@
814
814
  --amplify-components-link-active-color: var(--amplify-colors-font-active);
815
815
  --amplify-components-fieldcontrol-disabled-background-color: var(--amplify-colors-background-disabled);
816
816
  --amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
817
- --amplify-components-fieldcontrol-focus-box-shadow: [object Object];
817
+ --amplify-components-fieldcontrol-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-focus);
818
818
  --amplify-components-fieldcontrol-focus-border-color: var(--amplify-colors-border-focus);
819
- --amplify-components-fieldcontrol-quiet-focus-box-shadow: [object Object];
819
+ --amplify-components-fieldcontrol-quiet-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-focus);
820
820
  --amplify-components-fieldcontrol-quiet-focus-border-block-end-color: var(--amplify-colors-border-focus);
821
- --amplify-components-expander-item-focus-box-shadow: [object Object];
821
+ --amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
822
822
  --amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
823
823
  --amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
824
824
  --amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
825
- --amplify-components-checkbox-button-focus-box-shadow: [object Object];
825
+ --amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
826
826
  --amplify-components-card-elevated-background-color: var(--amplify-components-card-background-color);
827
827
  --amplify-components-card-outlined-background-color: var(--amplify-components-card-background-color);
828
828
  --amplify-components-button-large-font-size: var(--amplify-components-fieldcontrol-large-font-size);
@@ -846,9 +846,9 @@
846
846
  --amplify-components-button-hover-color: var(--amplify-colors-font-focus);
847
847
  --amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
848
848
  --amplify-components-button-font-size: var(--amplify-components-fieldcontrol-font-size);
849
- --amplify-components-togglebutton-primary-focus-box-shadow: [object Object];
850
- --amplify-components-radio-button-focus-box-shadow: [object Object];
851
- --amplify-components-button-link-focus-box-shadow: [object Object];
852
- --amplify-components-button-primary-focus-box-shadow: [object Object];
853
- --amplify-components-button-focus-box-shadow: [object Object];
849
+ --amplify-components-togglebutton-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
850
+ --amplify-components-radio-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
851
+ --amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
852
+ --amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
853
+ --amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
854
854
  }
@@ -1,65 +1,28 @@
1
- export declare const alert: {
2
- alignItems: {
3
- value: string;
4
- };
5
- justifyContent: {
6
- value: string;
7
- };
8
- color: {
9
- value: string;
10
- };
11
- backgroundColor: {
12
- value: string;
13
- };
14
- paddingBlock: {
15
- value: string;
16
- };
17
- paddingInline: {
18
- value: string;
19
- };
20
- icon: {
21
- size: {
22
- value: string;
23
- };
24
- };
25
- heading: {
26
- fontSize: {
27
- value: string;
28
- };
29
- fontWeight: {
30
- value: string;
31
- };
32
- };
33
- info: {
34
- color: {
35
- value: string;
36
- };
37
- backgroundColor: {
38
- value: string;
39
- };
40
- };
41
- error: {
42
- color: {
43
- value: string;
44
- };
45
- backgroundColor: {
46
- value: string;
47
- };
48
- };
49
- warning: {
50
- color: {
51
- value: string;
52
- };
53
- backgroundColor: {
54
- value: string;
55
- };
56
- };
57
- success: {
58
- color: {
59
- value: string;
60
- };
61
- backgroundColor: {
62
- value: string;
63
- };
64
- };
65
- };
1
+ import { AlignItemsValue, BackgroundColorValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, JustifyContentValue, SpaceValue } from '../types/designToken';
2
+ interface AlertVariationTokens {
3
+ color: DesignToken<ColorValue>;
4
+ backgroundColor: DesignToken<BackgroundColorValue>;
5
+ }
6
+ interface AlertIconTokens {
7
+ size: DesignToken<FontSizeValue>;
8
+ }
9
+ interface AlertHeadingTokens {
10
+ fontSize: DesignToken<FontSizeValue>;
11
+ fontWeight: DesignToken<FontWeightValue>;
12
+ }
13
+ export interface AlertTokens {
14
+ alignItems: DesignToken<AlignItemsValue>;
15
+ justifyContent: DesignToken<JustifyContentValue>;
16
+ color: DesignToken<ColorValue>;
17
+ backgroundColor: DesignToken<BackgroundColorValue>;
18
+ paddingBlock: DesignToken<SpaceValue>;
19
+ paddingInline: DesignToken<SpaceValue>;
20
+ icon: AlertIconTokens;
21
+ heading: AlertHeadingTokens;
22
+ info: AlertVariationTokens;
23
+ error: AlertVariationTokens;
24
+ warning: AlertVariationTokens;
25
+ success: AlertVariationTokens;
26
+ }
27
+ export declare const alert: AlertTokens;
28
+ export {};
@@ -1,71 +1,47 @@
1
- export declare const authenticator: {
2
- maxWidth: {
3
- value: string;
4
- };
5
- modal: {
6
- width: {
7
- value: string;
8
- };
9
- height: {
10
- value: string;
11
- };
12
- backgroundColor: {
13
- value: string;
14
- };
15
- top: {
16
- value: string;
17
- };
18
- left: {
19
- value: string;
20
- };
21
- };
22
- container: {
23
- widthMax: {
24
- value: string;
25
- };
26
- };
27
- router: {
28
- borderWidth: {
29
- value: string;
30
- };
31
- borderStyle: {
32
- value: string;
33
- };
34
- borderColor: {
35
- value: string;
36
- };
37
- backgroundColor: {
38
- value: string;
39
- };
40
- boxShadow: {
41
- value: string;
42
- };
43
- };
44
- footer: {
45
- paddingBottom: {
46
- value: string;
47
- };
48
- };
49
- form: {
50
- padding: {
51
- value: string;
52
- };
53
- };
54
- state: {
55
- inactive: {
56
- backgroundColor: {
57
- value: string;
58
- };
59
- };
60
- };
61
- orContainer: {
62
- color: {
63
- value: string;
64
- };
65
- orLine: {
66
- backgroundColor: {
67
- value: string;
68
- };
69
- };
70
- };
71
- };
1
+ import { DesignToken, ColorValue, SpaceValue, BorderWidthValue, BorderColorValue, BackgroundColorValue, BorderStyleValue, BoxShadowValue } from '../types/designToken';
2
+ interface AuthenticatorModalTokens {
3
+ width: DesignToken<SpaceValue>;
4
+ height: DesignToken<SpaceValue>;
5
+ backgroundColor: DesignToken<BackgroundColorValue>;
6
+ top: DesignToken<SpaceValue>;
7
+ left: DesignToken<SpaceValue>;
8
+ }
9
+ interface AuthenticatorRouterTokens {
10
+ borderWidth: DesignToken<BorderWidthValue>;
11
+ borderStyle: DesignToken<BorderStyleValue>;
12
+ borderColor: DesignToken<BorderColorValue>;
13
+ backgroundColor: DesignToken<BackgroundColorValue>;
14
+ boxShadow: DesignToken<BoxShadowValue>;
15
+ }
16
+ interface AuthenticatorFooterTokens {
17
+ paddingBottom: DesignToken<SpaceValue>;
18
+ }
19
+ interface AuthenticatorFormTokens {
20
+ padding: DesignToken<SpaceValue>;
21
+ }
22
+ interface AuthenticatorStateTokens {
23
+ inactive: {
24
+ backgroundColor: DesignToken<BackgroundColorValue>;
25
+ };
26
+ }
27
+ interface AuthenticatorOrContainerTokens {
28
+ color: DesignToken<ColorValue>;
29
+ orLine: {
30
+ backgroundColor: DesignToken<BackgroundColorValue>;
31
+ };
32
+ }
33
+ interface AuthenticatorContainerToken {
34
+ widthMax: DesignToken<SpaceValue>;
35
+ }
36
+ export interface AuthenticatorTokens {
37
+ maxWidth: DesignToken<SpaceValue>;
38
+ modal: AuthenticatorModalTokens;
39
+ container: AuthenticatorContainerToken;
40
+ router: AuthenticatorRouterTokens;
41
+ footer: AuthenticatorFooterTokens;
42
+ form: AuthenticatorFormTokens;
43
+ state: AuthenticatorStateTokens;
44
+ orContainer: AuthenticatorOrContainerTokens;
45
+ }
46
+ export declare const authenticator: AuthenticatorTokens;
47
+ export {};