@aws-amplify/ui 3.9.2 → 3.11.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.
Files changed (41) hide show
  1. package/dist/esm/helpers/authenticator/constants.js +1 -1
  2. package/dist/esm/helpers/authenticator/utils.js +1 -1
  3. package/dist/esm/index.js +1 -1
  4. package/dist/esm/machines/authenticator/defaultServices.js +1 -1
  5. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -14
  6. package/dist/esm/theme/defaultDarkModeOverride.js +1 -1
  7. package/dist/esm/theme/tokens/colors.js +1 -1
  8. package/dist/esm/theme/tokens/components/checkbox.js +1 -1
  9. package/dist/esm/theme/tokens/components/collection.js +1 -0
  10. package/dist/esm/theme/tokens/components/expander.js +1 -1
  11. package/dist/esm/theme/tokens/components/index.js +1 -1
  12. package/dist/esm/theme/tokens/components/menu.js +1 -1
  13. package/dist/esm/theme/tokens/components/pagination.js +1 -1
  14. package/dist/esm/theme/tokens/components/passwordField.js +1 -0
  15. package/dist/esm/theme/tokens/components/radio.js +1 -1
  16. package/dist/esm/theme/tokens/components/searchField.js +1 -0
  17. package/dist/esm/theme/tokens/components/textAreaField.js +1 -0
  18. package/dist/esm/theme/tokens/components/textField.js +1 -0
  19. package/dist/esm/theme/tokens/components/toggleButton.js +1 -1
  20. package/dist/index.js +1 -16
  21. package/dist/styles.css +239 -31
  22. package/dist/theme.css +80 -26
  23. package/dist/types/helpers/authenticator/constants.d.ts +6 -0
  24. package/dist/types/helpers/authenticator/utils.d.ts +1 -0
  25. package/dist/types/machines/authenticator/actors/resetPassword.d.ts +1 -21
  26. package/dist/types/machines/authenticator/actors/signIn.d.ts +1 -21
  27. package/dist/types/machines/authenticator/actors/signOut.d.ts +1 -21
  28. package/dist/types/machines/authenticator/index.d.ts +1 -21
  29. package/dist/types/machines/authenticator/signUp.d.ts +1 -21
  30. package/dist/types/theme/index.d.ts +1 -0
  31. package/dist/types/theme/tokens/components/button.d.ts +1 -1
  32. package/dist/types/theme/tokens/components/collection.d.ts +32 -0
  33. package/dist/types/theme/tokens/components/index.d.ts +10 -0
  34. package/dist/types/theme/tokens/components/pagination.d.ts +2 -2
  35. package/dist/types/theme/tokens/components/passwordField.d.ts +15 -0
  36. package/dist/types/theme/tokens/components/searchField.d.ts +15 -0
  37. package/dist/types/theme/tokens/components/textAreaField.d.ts +11 -0
  38. package/dist/types/theme/tokens/components/textField.d.ts +11 -0
  39. package/dist/types/theme/tokens/space.d.ts +1 -2
  40. package/dist/types/theme/types.d.ts +6 -0
  41. package/package.json +2 -1
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 24 May 2022 22:52:46 GMT
3
+ * Generated on Fri, 17 Jun 2022 21:04:04 GMT
4
4
  */
5
5
 
6
6
  :root, [data-amplify-theme] {
@@ -360,6 +360,7 @@
360
360
  --amplify-colors-font-warning: var(--amplify-colors-orange-90);
361
361
  --amplify-colors-font-info: var(--amplify-colors-blue-90);
362
362
  --amplify-colors-font-inverse: var(--amplify-colors-white);
363
+ --amplify-colors-font-disabled: var(--amplify-colors-neutral-60);
363
364
  --amplify-colors-font-tertiary: var(--amplify-colors-neutral-80);
364
365
  --amplify-colors-font-secondary: var(--amplify-colors-neutral-90);
365
366
  --amplify-colors-font-primary: var(--amplify-colors-neutral-100);
@@ -390,9 +391,6 @@
390
391
  --amplify-components-togglebutton-link-hover-background-color: var(--amplify-colors-transparent);
391
392
  --amplify-components-togglebutton-link-color: var(--amplify-colors-overlay-50);
392
393
  --amplify-components-togglebutton-link-background-color: var(--amplify-colors-transparent);
393
- --amplify-components-togglebutton-primary-pressed-hover-color: var(--amplify-colors-white);
394
- --amplify-components-togglebutton-primary-pressed-focus-color: var(--amplify-colors-white);
395
- --amplify-components-togglebutton-primary-pressed-color: var(--amplify-colors-white);
396
394
  --amplify-components-togglebutton-primary-hover-background-color: var(--amplify-colors-overlay-10);
397
395
  --amplify-components-togglebutton-primary-focus-background-color: var(--amplify-colors-transparent);
398
396
  --amplify-components-togglebutton-primary-border-width: var(--amplify-border-widths-small);
@@ -445,6 +443,7 @@
445
443
  --amplify-components-sliderfield-padding-block: var(--amplify-space-xs);
446
444
  --amplify-components-select-icon-wrapper-right: var(--amplify-space-medium);
447
445
  --amplify-components-select-padding-inline-end: var(--amplify-space-xxl);
446
+ --amplify-components-searchfield-button-disabled-background-color: var(--amplify-components-button-disabled-background-color);
448
447
  --amplify-components-rating-small-size: var(--amplify-font-sizes-small);
449
448
  --amplify-components-rating-default-size: var(--amplify-font-sizes-xl);
450
449
  --amplify-components-rating-large-size: var(--amplify-font-sizes-xxxl);
@@ -457,8 +456,6 @@
457
456
  --amplify-components-radio-button-outline-width: var(--amplify-outline-widths-medium);
458
457
  --amplify-components-radio-button-outline-color: var(--amplify-colors-transparent);
459
458
  --amplify-components-radio-button-transition-duration: var(--amplify-time-medium);
460
- --amplify-components-radio-button-background-color: var(--amplify-colors-white);
461
- --amplify-components-radio-button-color: var(--amplify-colors-white);
462
459
  --amplify-components-radio-button-border-width: var(--amplify-border-widths-medium);
463
460
  --amplify-components-radio-button-height: var(--amplify-font-sizes-medium);
464
461
  --amplify-components-radio-button-width: var(--amplify-font-sizes-medium);
@@ -467,6 +464,7 @@
467
464
  --amplify-components-placeholder-small-height: var(--amplify-space-small);
468
465
  --amplify-components-placeholder-transition-duration: var(--amplify-time-long);
469
466
  --amplify-components-placeholder-border-radius: var(--amplify-radii-small);
467
+ --amplify-components-passwordfield-button-disabled-background-color: var(--amplify-components-button-disabled-background-color);
470
468
  --amplify-components-pagination-item-shared-border-radius: var(--amplify-font-sizes-medium);
471
469
  --amplify-components-pagination-item-shared-min-width: var(--amplify-font-sizes-xxl);
472
470
  --amplify-components-pagination-item-shared-height: var(--amplify-font-sizes-xxl);
@@ -480,7 +478,6 @@
480
478
  --amplify-components-pagination-button-padding-inline-start: var(--amplify-space-xxs);
481
479
  --amplify-components-pagination-current-background-color: var(--amplify-colors-overlay-40);
482
480
  --amplify-components-pagination-current-font-size: var(--amplify-font-sizes-small);
483
- --amplify-components-pagination-current-color: var(--amplify-colors-white);
484
481
  --amplify-components-menu-item-padding-inline-end: var(--amplify-space-medium);
485
482
  --amplify-components-menu-item-padding-inline-start: var(--amplify-space-medium);
486
483
  --amplify-components-menu-large-height: var(--amplify-font-sizes-xxxl);
@@ -490,7 +487,6 @@
490
487
  --amplify-components-menu-gap: var(--amplify-space-zero);
491
488
  --amplify-components-menu-border-width: var(--amplify-border-widths-small);
492
489
  --amplify-components-menu-border-radius: var(--amplify-radii-medium);
493
- --amplify-components-menu-background-color: var(--amplify-colors-white);
494
490
  --amplify-components-loader-linear-large-font-size: var(--amplify-font-sizes-large);
495
491
  --amplify-components-loader-linear-large-stroke-width: var(--amplify-font-sizes-large);
496
492
  --amplify-components-loader-linear-small-font-size: var(--amplify-font-sizes-small);
@@ -572,7 +568,6 @@
572
568
  --amplify-components-expander-item-border-bottom-right-radius: var(--amplify-radii-medium);
573
569
  --amplify-components-expander-item-border-bottom-left-radius: var(--amplify-radii-medium);
574
570
  --amplify-components-expander-border-radius: var(--amplify-radii-medium);
575
- --amplify-components-expander-background-color: var(--amplify-colors-white);
576
571
  --amplify-components-divider-opacity: var(--amplify-opacities-60);
577
572
  --amplify-components-divider-large-border-width: var(--amplify-border-widths-large);
578
573
  --amplify-components-divider-small-border-width: var(--amplify-border-widths-small);
@@ -594,7 +589,6 @@
594
589
  --amplify-components-checkbox-button-focus-outline-width: var(--amplify-outline-widths-medium);
595
590
  --amplify-components-checkbox-button-focus-outline-color: var(--amplify-colors-transparent);
596
591
  --amplify-components-checkbox-button-before-border-width: var(--amplify-border-widths-medium);
597
- --amplify-components-checkbox-button-color: var(--amplify-colors-white);
598
592
  --amplify-components-card-elevated-border-radius: var(--amplify-radii-xs);
599
593
  --amplify-components-card-outlined-box-shadow: var(--amplify-components-card-box-shadow);
600
594
  --amplify-components-card-outlined-border-width: var(--amplify-border-widths-small);
@@ -640,15 +634,20 @@
640
634
  --amplify-colors-font-focus: var(--amplify-colors-brand-primary-100);
641
635
  --amplify-colors-font-hover: var(--amplify-colors-brand-primary-90);
642
636
  --amplify-colors-font-interactive: var(--amplify-colors-brand-primary-80);
643
- --amplify-colors-font-disabled: var(--amplify-colors-font-tertiary);
637
+ --amplify-components-togglebutton-link-disabled-color: var(--amplify-colors-font-disabled);
638
+ --amplify-components-togglebutton-primary-pressed-hover-color: var(--amplify-colors-background-primary);
644
639
  --amplify-components-togglebutton-primary-pressed-hover-box-shadow: var(--amplify-colors-brand-primary-60);
645
640
  --amplify-components-togglebutton-primary-pressed-hover-background-color: var(--amplify-colors-brand-primary-60);
646
641
  --amplify-components-togglebutton-primary-pressed-hover-border-color: var(--amplify-colors-brand-primary-60);
642
+ --amplify-components-togglebutton-primary-pressed-focus-color: var(--amplify-colors-background-primary);
643
+ --amplify-components-togglebutton-primary-pressed-color: var(--amplify-colors-background-primary);
647
644
  --amplify-components-togglebutton-primary-pressed-border-color: var(--amplify-colors-brand-primary-80);
648
645
  --amplify-components-togglebutton-primary-pressed-background-color: var(--amplify-colors-brand-primary-80);
646
+ --amplify-components-togglebutton-primary-disabled-color: var(--amplify-colors-font-disabled);
649
647
  --amplify-components-togglebutton-primary-hover-color: var(--amplify-colors-font-primary);
650
648
  --amplify-components-togglebutton-primary-focus-color: var(--amplify-colors-font-primary);
651
649
  --amplify-components-togglebutton-pressed-color: var(--amplify-colors-font-primary);
650
+ --amplify-components-togglebutton-disabled-color: var(--amplify-colors-font-disabled);
652
651
  --amplify-components-togglebutton-focus-color: var(--amplify-colors-font-primary);
653
652
  --amplify-components-togglebutton-color: var(--amplify-colors-font-primary);
654
653
  --amplify-components-togglebutton-border-color: var(--amplify-colors-border-primary);
@@ -661,6 +660,7 @@
661
660
  --amplify-components-text-primary-color: var(--amplify-colors-font-primary);
662
661
  --amplify-components-text-color: var(--amplify-colors-font-primary);
663
662
  --amplify-components-tabs-item-disabled-border-color: var(--amplify-colors-border-tertiary);
663
+ --amplify-components-tabs-item-disabled-color: var(--amplify-colors-font-disabled);
664
664
  --amplify-components-tabs-item-color: var(--amplify-colors-font-secondary);
665
665
  --amplify-components-tabs-item-border-color: var(--amplify-colors-border-secondary);
666
666
  --amplify-components-tabs-border-color: var(--amplify-colors-border-secondary);
@@ -684,16 +684,22 @@
684
684
  --amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
685
685
  --amplify-components-rating-empty-color: var(--amplify-colors-background-tertiary);
686
686
  --amplify-components-rating-filled-color: var(--amplify-colors-brand-secondary-80);
687
+ --amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
687
688
  --amplify-components-radio-button-disabled-background-color: var(--amplify-colors-background-primary);
688
689
  --amplify-components-radio-button-error-border-color: var(--amplify-colors-border-error);
689
690
  --amplify-components-radio-button-checked-color: var(--amplify-colors-brand-primary-80);
691
+ --amplify-components-radio-button-background-color: var(--amplify-colors-background-primary);
692
+ --amplify-components-radio-button-color: var(--amplify-colors-background-primary);
690
693
  --amplify-components-radio-button-border-color: var(--amplify-colors-border-primary);
691
694
  --amplify-components-placeholder-end-color: var(--amplify-colors-background-tertiary);
692
695
  --amplify-components-placeholder-start-color: var(--amplify-colors-background-secondary);
696
+ --amplify-components-pagination-button-disabled-color: var(--amplify-colors-font-disabled);
693
697
  --amplify-components-pagination-button-hover-color: var(--amplify-colors-font-primary);
694
698
  --amplify-components-pagination-button-color: var(--amplify-colors-font-primary);
699
+ --amplify-components-pagination-current-color: var(--amplify-colors-font-inverse);
695
700
  --amplify-components-menu-box-shadow: var(--amplify-shadows-large);
696
701
  --amplify-components-menu-border-color: var(--amplify-colors-border-primary);
702
+ --amplify-components-menu-background-color: var(--amplify-colors-background-primary);
697
703
  --amplify-components-loader-text-fill: var(--amplify-colors-font-primary);
698
704
  --amplify-components-loader-linear-stroke-filled: var(--amplify-colors-brand-primary-80);
699
705
  --amplify-components-loader-stroke-filled: var(--amplify-colors-brand-primary-80);
@@ -702,6 +708,7 @@
702
708
  --amplify-components-fieldmessages-error-color: var(--amplify-colors-font-error);
703
709
  --amplify-components-fieldcontrol-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-error);
704
710
  --amplify-components-fieldcontrol-error-border-color: var(--amplify-colors-border-error);
711
+ --amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
705
712
  --amplify-components-fieldcontrol-quiet-error-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-error);
706
713
  --amplify-components-fieldcontrol-quiet-error-border-block-end-color: var(--amplify-colors-border-error);
707
714
  --amplify-components-fieldcontrol-large-font-size: var(--amplify-components-field-large-font-size);
@@ -713,14 +720,20 @@
713
720
  --amplify-components-expander-content-text-color: var(--amplify-colors-font-secondary);
714
721
  --amplify-components-expander-item-box-shadow: var(--amplify-shadows-small);
715
722
  --amplify-components-expander-box-shadow: var(--amplify-shadows-large);
723
+ --amplify-components-expander-background-color: var(--amplify-colors-background-primary);
716
724
  --amplify-components-divider-label-background-color: var(--amplify-colors-background-primary);
717
725
  --amplify-components-divider-label-color: var(--amplify-colors-font-tertiary);
718
726
  --amplify-components-divider-border-color: var(--amplify-colors-border-primary);
719
727
  --amplify-components-copy-svg-path-fill: var(--amplify-colors-font-primary);
728
+ --amplify-components-collection-search-button-disabled-background-color: var(--amplify-components-searchfield-button-disabled-background-color);
729
+ --amplify-components-collection-pagination-button-hover-background-color: var(--amplify-components-pagination-button-hover-background-color);
730
+ --amplify-components-collection-pagination-current-background-color: var(--amplify-components-pagination-current-background-color);
731
+ --amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
720
732
  --amplify-components-checkbox-icon-background-color: var(--amplify-colors-brand-primary-80);
721
733
  --amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
722
734
  --amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
723
735
  --amplify-components-checkbox-button-before-border-color: var(--amplify-colors-border-primary);
736
+ --amplify-components-checkbox-button-color: var(--amplify-colors-font-inverse);
724
737
  --amplify-components-card-elevated-box-shadow: var(--amplify-shadows-medium);
725
738
  --amplify-components-card-outlined-border-color: var(--amplify-colors-border-primary);
726
739
  --amplify-components-card-background-color: var(--amplify-colors-background-primary);
@@ -732,9 +745,12 @@
732
745
  --amplify-components-button-small-padding-inline-start: var(--amplify-components-fieldcontrol-small-padding-inline-start);
733
746
  --amplify-components-button-small-padding-block-end: var(--amplify-components-fieldcontrol-small-padding-block-end);
734
747
  --amplify-components-button-small-padding-block-start: var(--amplify-components-fieldcontrol-small-padding-block-start);
748
+ --amplify-components-button-link-loading-color: var(--amplify-colors-font-disabled);
749
+ --amplify-components-button-link-disabled-color: var(--amplify-colors-font-disabled);
735
750
  --amplify-components-button-link-active-background-color: var(--amplify-colors-brand-primary-20);
736
751
  --amplify-components-button-link-focus-background-color: var(--amplify-colors-brand-primary-10);
737
752
  --amplify-components-button-link-hover-background-color: var(--amplify-colors-brand-primary-10);
753
+ --amplify-components-button-menu-disabled-color: var(--amplify-colors-font-disabled);
738
754
  --amplify-components-button-menu-active-background-color: var(--amplify-colors-brand-primary-90);
739
755
  --amplify-components-button-menu-active-color: var(--amplify-colors-font-inverse);
740
756
  --amplify-components-button-menu-focus-background-color: var(--amplify-colors-brand-primary-80);
@@ -747,10 +763,14 @@
747
763
  --amplify-components-button-primary-focus-background-color: var(--amplify-colors-brand-primary-90);
748
764
  --amplify-components-button-primary-hover-color: var(--amplify-colors-font-inverse);
749
765
  --amplify-components-button-primary-hover-background-color: var(--amplify-colors-brand-primary-90);
766
+ --amplify-components-button-primary-loading-color: var(--amplify-colors-font-disabled);
767
+ --amplify-components-button-primary-disabled-color: var(--amplify-colors-font-disabled);
750
768
  --amplify-components-button-primary-color: var(--amplify-colors-font-inverse);
751
769
  --amplify-components-button-primary-background-color: var(--amplify-colors-brand-primary-80);
752
770
  --amplify-components-button-disabled-border-color: var(--amplify-colors-border-tertiary);
771
+ --amplify-components-button-disabled-color: var(--amplify-colors-font-disabled);
753
772
  --amplify-components-button-loading-border-color: var(--amplify-colors-border-tertiary);
773
+ --amplify-components-button-loading-color: var(--amplify-colors-font-disabled);
754
774
  --amplify-components-button-active-border-color: var(--amplify-colors-brand-primary-100);
755
775
  --amplify-components-button-active-background-color: var(--amplify-colors-brand-primary-20);
756
776
  --amplify-components-button-focus-background-color: var(--amplify-colors-brand-primary-10);
@@ -790,18 +810,18 @@
790
810
  --amplify-components-alert-info-color: var(--amplify-colors-font-info);
791
811
  --amplify-components-alert-background-color: var(--amplify-colors-background-tertiary);
792
812
  --amplify-components-alert-color: var(--amplify-colors-font-primary);
793
- --amplify-components-togglebutton-link-disabled-color: var(--amplify-colors-font-disabled);
794
813
  --amplify-components-togglebutton-primary-pressed-focus-border-color: var(--amplify-colors-border-focus);
795
814
  --amplify-components-togglebutton-primary-pressed-focus-background-color: var(--amplify-colors-border-focus);
796
- --amplify-components-togglebutton-primary-disabled-color: var(--amplify-colors-font-disabled);
797
815
  --amplify-components-togglebutton-primary-disabled-background-color: var(--amplify-colors-background-disabled);
798
816
  --amplify-components-togglebutton-primary-disabled-border-color: var(--amplify-colors-border-disabled);
799
817
  --amplify-components-togglebutton-primary-focus-border-color: var(--amplify-colors-border-focus);
800
818
  --amplify-components-togglebutton-pressed-border-color: var(--amplify-colors-border-pressed);
801
- --amplify-components-togglebutton-disabled-color: var(--amplify-colors-font-disabled);
802
819
  --amplify-components-togglebutton-disabled-border-color: var(--amplify-colors-border-disabled);
803
820
  --amplify-components-togglebutton-focus-border-color: var(--amplify-colors-border-focus);
804
- --amplify-components-tabs-item-disabled-color: var(--amplify-colors-font-disabled);
821
+ --amplify-components-textfield-border-color: var(--amplify-components-fieldcontrol-border-color);
822
+ --amplify-components-textfield-color: var(--amplify-components-fieldcontrol-color);
823
+ --amplify-components-textareafield-border-color: var(--amplify-components-fieldcontrol-border-color);
824
+ --amplify-components-textareafield-color: var(--amplify-components-fieldcontrol-color);
805
825
  --amplify-components-tabs-item-active-border-color: var(--amplify-colors-font-interactive);
806
826
  --amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
807
827
  --amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
@@ -812,25 +832,43 @@
812
832
  --amplify-components-sliderfield-thumb-hover-border-color: var(--amplify-colors-border-focus);
813
833
  --amplify-components-sliderfield-thumb-disabled-background-color: var(--amplify-colors-background-disabled);
814
834
  --amplify-components-sliderfield-range-disabled-background-color: var(--amplify-colors-background-disabled);
815
- --amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
835
+ --amplify-components-searchfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
836
+ --amplify-components-searchfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
837
+ --amplify-components-searchfield-button-focus-background-color: var(--amplify-components-button-focus-background-color);
838
+ --amplify-components-searchfield-button-disabled-color: var(--amplify-components-button-disabled-color);
839
+ --amplify-components-searchfield-button-disabled-border-color: var(--amplify-components-button-disabled-border-color);
840
+ --amplify-components-searchfield-button-active-border-color: var(--amplify-components-button-active-border-color);
841
+ --amplify-components-searchfield-button-active-background-color: var(--amplify-components-button-active-background-color);
842
+ --amplify-components-searchfield-button-color: var(--amplify-components-button-color);
843
+ --amplify-components-searchfield-color: var(--amplify-components-fieldcontrol-color);
816
844
  --amplify-components-radio-button-disabled-border-color: var(--amplify-colors-border-disabled);
817
845
  --amplify-components-radio-button-error-focus-box-shadow: var(--amplify-components-fieldcontrol-error-focus-box-shadow);
818
846
  --amplify-components-radio-button-focus-border-color: var(--amplify-colors-border-focus);
819
847
  --amplify-components-radio-button-checked-disabled-color: var(--amplify-colors-background-disabled);
820
- --amplify-components-pagination-button-disabled-color: var(--amplify-colors-font-disabled);
848
+ --amplify-components-passwordfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
849
+ --amplify-components-passwordfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
850
+ --amplify-components-passwordfield-button-focus-background-color: var(--amplify-components-button-focus-background-color);
851
+ --amplify-components-passwordfield-button-disabled-color: var(--amplify-components-button-disabled-color);
852
+ --amplify-components-passwordfield-button-disabled-border-color: var(--amplify-components-button-disabled-border-color);
853
+ --amplify-components-passwordfield-button-active-border-color: var(--amplify-components-button-active-border-color);
854
+ --amplify-components-passwordfield-button-active-background-color: var(--amplify-components-button-active-background-color);
855
+ --amplify-components-passwordfield-button-color: var(--amplify-components-button-color);
856
+ --amplify-components-passwordfield-color: var(--amplify-components-fieldcontrol-color);
821
857
  --amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
822
858
  --amplify-components-link-hover-color: var(--amplify-colors-font-hover);
823
859
  --amplify-components-link-focus-color: var(--amplify-colors-font-focus);
824
860
  --amplify-components-link-color: var(--amplify-colors-font-interactive);
825
861
  --amplify-components-link-active-color: var(--amplify-colors-font-active);
826
862
  --amplify-components-fieldcontrol-disabled-background-color: var(--amplify-colors-background-disabled);
827
- --amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
828
863
  --amplify-components-fieldcontrol-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-focus);
829
864
  --amplify-components-fieldcontrol-focus-border-color: var(--amplify-colors-border-focus);
830
865
  --amplify-components-fieldcontrol-quiet-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-focus);
831
866
  --amplify-components-fieldcontrol-quiet-focus-border-block-end-color: var(--amplify-colors-border-focus);
832
867
  --amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
833
- --amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
868
+ --amplify-components-collection-pagination-button-disabled-color: var(--amplify-components-pagination-button-disabled-color);
869
+ --amplify-components-collection-pagination-button-hover-color: var(--amplify-components-pagination-button-hover-color);
870
+ --amplify-components-collection-pagination-button-color: var(--amplify-components-pagination-button-color);
871
+ --amplify-components-collection-pagination-current-color: var(--amplify-components-pagination-current-color);
834
872
  --amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
835
873
  --amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
836
874
  --amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
@@ -838,19 +876,12 @@
838
876
  --amplify-components-card-outlined-background-color: var(--amplify-components-card-background-color);
839
877
  --amplify-components-button-large-font-size: var(--amplify-components-fieldcontrol-large-font-size);
840
878
  --amplify-components-button-small-font-size: var(--amplify-components-fieldcontrol-small-font-size);
841
- --amplify-components-button-link-loading-color: var(--amplify-colors-font-disabled);
842
- --amplify-components-button-link-disabled-color: var(--amplify-colors-font-disabled);
843
879
  --amplify-components-button-link-active-color: var(--amplify-colors-font-active);
844
880
  --amplify-components-button-link-focus-color: var(--amplify-colors-font-focus);
845
881
  --amplify-components-button-link-hover-color: var(--amplify-colors-font-hover);
846
882
  --amplify-components-button-link-color: var(--amplify-colors-font-interactive);
847
- --amplify-components-button-menu-disabled-color: var(--amplify-colors-font-disabled);
848
- --amplify-components-button-primary-loading-color: var(--amplify-colors-font-disabled);
849
883
  --amplify-components-button-primary-loading-background-color: var(--amplify-colors-background-disabled);
850
- --amplify-components-button-primary-disabled-color: var(--amplify-colors-font-disabled);
851
884
  --amplify-components-button-primary-disabled-background-color: var(--amplify-colors-background-disabled);
852
- --amplify-components-button-disabled-color: var(--amplify-colors-font-disabled);
853
- --amplify-components-button-loading-color: var(--amplify-colors-font-disabled);
854
885
  --amplify-components-button-active-color: var(--amplify-colors-font-active);
855
886
  --amplify-components-button-focus-border-color: var(--amplify-colors-border-focus);
856
887
  --amplify-components-button-focus-color: var(--amplify-colors-font-focus);
@@ -858,8 +889,31 @@
858
889
  --amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
859
890
  --amplify-components-button-font-size: var(--amplify-components-fieldcontrol-font-size);
860
891
  --amplify-components-togglebutton-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
892
+ --amplify-components-textfield-focus-border-color: var(--amplify-components-fieldcontrol-focus-border-color);
893
+ --amplify-components-textareafield-focus-border-color: var(--amplify-components-fieldcontrol-focus-border-color);
894
+ --amplify-components-searchfield-button-hover-color: var(--amplify-components-button-hover-color);
895
+ --amplify-components-searchfield-button-focus-color: var(--amplify-components-button-focus-color);
896
+ --amplify-components-searchfield-button-focus-border-color: var(--amplify-components-button-focus-border-color);
897
+ --amplify-components-searchfield-button-active-color: var(--amplify-components-button-active-color);
861
898
  --amplify-components-radio-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
899
+ --amplify-components-passwordfield-button-hover-color: var(--amplify-components-button-hover-color);
900
+ --amplify-components-passwordfield-button-focus-color: var(--amplify-components-button-focus-color);
901
+ --amplify-components-passwordfield-button-focus-border-color: var(--amplify-components-button-focus-border-color);
902
+ --amplify-components-passwordfield-button-active-color: var(--amplify-components-button-active-color);
903
+ --amplify-components-collection-search-button-hover-border-color: var(--amplify-components-searchfield-button-hover-border-color);
904
+ --amplify-components-collection-search-button-hover-background-color: var(--amplify-components-searchfield-button-hover-background-color);
905
+ --amplify-components-collection-search-button-focus-background-color: var(--amplify-components-searchfield-button-focus-background-color);
906
+ --amplify-components-collection-search-button-disabled-color: var(--amplify-components-searchfield-button-disabled-color);
907
+ --amplify-components-collection-search-button-disabled-border-color: var(--amplify-components-searchfield-button-disabled-border-color);
908
+ --amplify-components-collection-search-button-active-border-color: var(--amplify-components-searchfield-button-active-border-color);
909
+ --amplify-components-collection-search-button-active-background-color: var(--amplify-components-searchfield-button-active-background-color);
910
+ --amplify-components-collection-search-button-color: var(--amplify-components-searchfield-button-color);
911
+ --amplify-components-collection-search-input-color: var(--amplify-components-searchfield-color);
862
912
  --amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
863
913
  --amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
864
914
  --amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
915
+ --amplify-components-collection-search-button-hover-color: var(--amplify-components-searchfield-button-hover-color);
916
+ --amplify-components-collection-search-button-focus-color: var(--amplify-components-searchfield-button-focus-color);
917
+ --amplify-components-collection-search-button-focus-border-color: var(--amplify-components-searchfield-button-focus-border-color);
918
+ --amplify-components-collection-search-button-active-color: var(--amplify-components-searchfield-button-active-color);
865
919
  }
@@ -3,3 +3,9 @@
3
3
  */
4
4
  import { DefaultFormFieldOptions } from '../../types';
5
5
  export declare const defaultFormFieldOptions: DefaultFormFieldOptions;
6
+ /**
7
+ * List of special characters that Cognito allows.
8
+ *
9
+ * Adapted from https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-policies.html
10
+ */
11
+ export declare const ALLOWED_SPECIAL_CHARACTERS: string[];
@@ -15,3 +15,4 @@ export declare const defaultAuthHubHandler: HubHandler;
15
15
  * @returns function that unsubscribes to the hub evenmt
16
16
  */
17
17
  export declare const listenToAuthHub: (service: AuthInterpreter, handler?: HubHandler) => () => void;
18
+ export declare const hasSpecialChars: (password: string) => boolean;
@@ -6,24 +6,4 @@ export declare type ResetPasswordMachineOptions = {
6
6
  export declare function resetPasswordActor({ services }: ResetPasswordMachineOptions): import("xstate").StateMachine<ResetPasswordContext, any, AuthEvent, {
7
7
  value: any;
8
8
  context: ResetPasswordContext;
9
- }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").TypegenDisabled & {
10
- missingImplementations: {
11
- actions: never;
12
- delays: never;
13
- guards: never;
14
- services: never;
15
- };
16
- } & {
17
- eventsCausingActions: Record<string, string>;
18
- eventsCausingDelays: Record<string, string>;
19
- eventsCausingGuards: Record<string, string>;
20
- eventsCausingServices: Record<string, string>;
21
- } & {
22
- indexedActions: import("xstate").IndexByType<import("xstate").BaseActionObject>;
23
- indexedEvents: Record<string, AuthEvent> & {
24
- __XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__: {
25
- data: any;
26
- };
27
- };
28
- invokeSrcNameMap: Record<string, "__XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__">;
29
- }>;
9
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, AuthEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -6,24 +6,4 @@ export declare type SignInMachineOptions = {
6
6
  export declare function signInActor({ services }: SignInMachineOptions): import("xstate").StateMachine<SignInContext, any, AuthEvent, {
7
7
  value: any;
8
8
  context: SignInContext;
9
- }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").TypegenDisabled & {
10
- missingImplementations: {
11
- actions: never;
12
- delays: never;
13
- guards: never;
14
- services: never;
15
- };
16
- } & {
17
- eventsCausingActions: Record<string, string>;
18
- eventsCausingDelays: Record<string, string>;
19
- eventsCausingGuards: Record<string, string>;
20
- eventsCausingServices: Record<string, string>;
21
- } & {
22
- indexedActions: import("xstate").IndexByType<import("xstate").BaseActionObject>;
23
- indexedEvents: Record<string, AuthEvent> & {
24
- __XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__: {
25
- data: any;
26
- };
27
- };
28
- invokeSrcNameMap: Record<string, "__XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__">;
29
- }>;
9
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, AuthEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -2,24 +2,4 @@ import { AuthEvent, SignOutContext } from '../../../types';
2
2
  export declare const signOutActor: import("xstate").StateMachine<SignOutContext, any, AuthEvent, {
3
3
  value: any;
4
4
  context: SignOutContext;
5
- }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").TypegenDisabled & {
6
- missingImplementations: {
7
- actions: never;
8
- delays: never;
9
- guards: never;
10
- services: never;
11
- };
12
- } & {
13
- eventsCausingActions: Record<string, string>;
14
- eventsCausingDelays: Record<string, string>;
15
- eventsCausingGuards: Record<string, string>;
16
- eventsCausingServices: Record<string, string>;
17
- } & {
18
- indexedActions: import("xstate").IndexByType<import("xstate").BaseActionObject>;
19
- indexedEvents: Record<string, AuthEvent> & {
20
- __XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__: {
21
- data: any;
22
- };
23
- };
24
- invokeSrcNameMap: Record<string, "__XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__">;
25
- }>;
5
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, AuthEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -5,24 +5,4 @@ export declare type AuthenticatorMachineOptions = AuthContext['config'] & {
5
5
  export declare function createAuthenticatorMachine(): import("xstate").StateMachine<AuthContext, any, AuthEvent, {
6
6
  value: any;
7
7
  context: AuthContext;
8
- }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").TypegenDisabled & {
9
- missingImplementations: {
10
- actions: never;
11
- delays: never;
12
- guards: never;
13
- services: never;
14
- };
15
- } & {
16
- eventsCausingActions: Record<string, string>;
17
- eventsCausingDelays: Record<string, string>;
18
- eventsCausingGuards: Record<string, string>;
19
- eventsCausingServices: Record<string, string>;
20
- } & {
21
- indexedActions: import("xstate").IndexByType<import("xstate").BaseActionObject>;
22
- indexedEvents: Record<string, AuthEvent> & {
23
- __XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__: {
24
- data: any;
25
- };
26
- };
27
- invokeSrcNameMap: Record<string, "__XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__">;
28
- }>;
8
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, AuthEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -6,24 +6,4 @@ export declare type SignUpMachineOptions = {
6
6
  export declare function createSignUpMachine({ services }: SignUpMachineOptions): import("xstate").StateMachine<SignUpContext, any, AuthEvent, {
7
7
  value: any;
8
8
  context: SignUpContext;
9
- }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").TypegenDisabled & {
10
- missingImplementations: {
11
- actions: never;
12
- delays: never;
13
- guards: never;
14
- services: never;
15
- };
16
- } & {
17
- eventsCausingActions: Record<string, string>;
18
- eventsCausingDelays: Record<string, string>;
19
- eventsCausingGuards: Record<string, string>;
20
- eventsCausingServices: Record<string, string>;
21
- } & {
22
- indexedActions: import("xstate").IndexByType<import("xstate").BaseActionObject>;
23
- indexedEvents: Record<string, AuthEvent> & {
24
- __XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__: {
25
- data: any;
26
- };
27
- };
28
- invokeSrcNameMap: Record<string, "__XSTATE_ALLOW_ANY_INVOKE_DATA_HACK__">;
29
- }>;
9
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, AuthEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -2,3 +2,4 @@ export { createTheme } from './createTheme';
2
2
  export { defaultTheme } from './defaultTheme';
3
3
  export { defaultDarkModeOverride } from './defaultDarkModeOverride';
4
4
  export * from './types';
5
+ export { cssNameTransform } from './utils';
@@ -1,5 +1,5 @@
1
1
  import { AlignItemsValue, BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderWidthValue, BoxShadowValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, JustifyContentValue, LineHeightValue, SpaceValue, TransitionDurationValue } from '../types/designToken';
2
- interface StateTokens {
2
+ export interface StateTokens {
3
3
  color: DesignToken<ColorValue>;
4
4
  backgroundColor: DesignToken<BackgroundColorValue>;
5
5
  borderColor: DesignToken<BorderColorValue>;
@@ -0,0 +1,32 @@
1
+ import { PaginationButtonDisabledTokens, PaginationButtonHoverTokens } from './pagination';
2
+ import { StateTokens } from './button';
3
+ import { BackgroundColorValue, ColorValue, DesignToken } from '../types/designToken';
4
+ interface PaginationTokens {
5
+ current: {
6
+ color: DesignToken<ColorValue>;
7
+ backgroundColor: DesignToken<BackgroundColorValue>;
8
+ };
9
+ button: {
10
+ color: DesignToken<ColorValue>;
11
+ _hover: PaginationButtonHoverTokens;
12
+ _disabled: PaginationButtonDisabledTokens;
13
+ };
14
+ }
15
+ export interface SearchTokens {
16
+ input: {
17
+ color: DesignToken<ColorValue>;
18
+ };
19
+ button: {
20
+ color: DesignToken<ColorValue>;
21
+ _active: StateTokens;
22
+ _disabled: StateTokens;
23
+ _focus: StateTokens;
24
+ _hover: StateTokens;
25
+ };
26
+ }
27
+ export interface CollectionTokens {
28
+ pagination: PaginationTokens;
29
+ search: SearchTokens;
30
+ }
31
+ export declare const collection: CollectionTokens;
32
+ export {};
@@ -5,6 +5,7 @@ import { ButtonTokens } from './button';
5
5
  import { CardTokens } from './card';
6
6
  import { CheckboxTokens } from './checkbox';
7
7
  import { CheckboxFieldTokens } from './checkboxField';
8
+ import { CollectionTokens } from './collection';
8
9
  import { CopyTokens } from './copy';
9
10
  import { CountryCodeSelectTokens } from './countryCodeSelect';
10
11
  import { DividerTokens } from './divider';
@@ -21,9 +22,11 @@ import { LinkTokens } from './link';
21
22
  import { LoaderTokens } from './loader';
22
23
  import { MenuTokens } from './menu';
23
24
  import { PaginationTokens } from './pagination';
25
+ import { PasswordFieldTokens } from './passwordField';
24
26
  import { PlaceholderTokens } from './placeholder';
25
27
  import { RadioTokens } from './radio';
26
28
  import { RatingTokens } from './rating';
29
+ import { SearchFieldTokens } from './searchField';
27
30
  import { SelectTokens } from './select';
28
31
  import { SelectFieldTokens } from './selectField';
29
32
  import { SliderFieldTokens } from './sliderField';
@@ -32,6 +35,8 @@ import { SwitchFieldTokens } from './switchField';
32
35
  import { TableTokens } from './table';
33
36
  import { TabsTokens } from './tabs';
34
37
  import { TextTokens } from './text';
38
+ import { TextAreaFieldTokens } from './textAreaField';
39
+ import { TextFieldTokens } from './textField';
35
40
  import { ToggleButtonTokens } from './toggleButton';
36
41
  import { ToggleButtonGroupTokens } from './toggleButtonGroup';
37
42
  export interface ComponentTokens {
@@ -42,6 +47,7 @@ export interface ComponentTokens {
42
47
  card: CardTokens;
43
48
  checkbox: CheckboxTokens;
44
49
  checkboxfield: CheckboxFieldTokens;
50
+ collection: CollectionTokens;
45
51
  copy: CopyTokens;
46
52
  countrycodeselect: CountryCodeSelectTokens;
47
53
  divider: DividerTokens;
@@ -58,9 +64,11 @@ export interface ComponentTokens {
58
64
  loader: LoaderTokens;
59
65
  menu: MenuTokens;
60
66
  pagination: PaginationTokens;
67
+ passwordfield: PasswordFieldTokens;
61
68
  placeholder: PlaceholderTokens;
62
69
  radio: RadioTokens;
63
70
  rating: RatingTokens;
71
+ searchfield: SearchFieldTokens;
64
72
  select: SelectTokens;
65
73
  selectfield: SelectFieldTokens;
66
74
  sliderfield: SliderFieldTokens;
@@ -69,6 +77,8 @@ export interface ComponentTokens {
69
77
  table: TableTokens;
70
78
  tabs: TabsTokens;
71
79
  text: TextTokens;
80
+ textareafield: TextAreaFieldTokens;
81
+ textfield: TextFieldTokens;
72
82
  togglebutton: ToggleButtonTokens;
73
83
  togglebuttongroup: ToggleButtonGroupTokens;
74
84
  }
@@ -15,11 +15,11 @@ interface PaginationButtonTokens {
15
15
  hover: PaginationButtonHoverTokens;
16
16
  disabled: PaginationButtonDisabledTokens;
17
17
  }
18
- interface PaginationButtonHoverTokens {
18
+ export interface PaginationButtonHoverTokens {
19
19
  backgroundColor: DesignToken<BackgroundColorValue>;
20
20
  color: DesignToken<ColorValue>;
21
21
  }
22
- interface PaginationButtonDisabledTokens {
22
+ export interface PaginationButtonDisabledTokens {
23
23
  color: DesignToken<ColorValue>;
24
24
  }
25
25
  interface PaginationEllipsisTokens {
@@ -0,0 +1,15 @@
1
+ import { ColorValue, DesignToken } from '../types/designToken';
2
+ import { StateTokens } from './button';
3
+ interface ButtonTokens {
4
+ color: DesignToken<ColorValue>;
5
+ _active: StateTokens;
6
+ _disabled: StateTokens;
7
+ _focus: StateTokens;
8
+ _hover: StateTokens;
9
+ }
10
+ export interface PasswordFieldTokens {
11
+ color: DesignToken<ColorValue>;
12
+ button: ButtonTokens;
13
+ }
14
+ export declare const passwordfield: PasswordFieldTokens;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ColorValue, DesignToken } from '../types/designToken';
2
+ import { StateTokens } from './button';
3
+ interface SearchTokens {
4
+ color: DesignToken<ColorValue>;
5
+ _active: StateTokens;
6
+ _disabled: StateTokens;
7
+ _focus: StateTokens;
8
+ _hover: StateTokens;
9
+ }
10
+ export interface SearchFieldTokens {
11
+ color: DesignToken<ColorValue>;
12
+ button: SearchTokens;
13
+ }
14
+ export declare const searchfield: SearchFieldTokens;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ColorValue, DesignToken, BorderColorValue } from '../types/designToken';
2
+ interface TextAreaFieldStateToken {
3
+ borderColor: DesignToken<BorderColorValue>;
4
+ }
5
+ export interface TextAreaFieldTokens {
6
+ color: DesignToken<ColorValue>;
7
+ borderColor: DesignToken<BorderColorValue>;
8
+ _focus: TextAreaFieldStateToken;
9
+ }
10
+ export declare const textareafield: TextAreaFieldTokens;
11
+ export {};