@aws-amplify/ui 3.10.0 → 3.11.1
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/helpers/authenticator/constants.js +1 -1
- package/dist/esm/helpers/authenticator/utils.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/machines/authenticator/defaultServices.js +1 -1
- package/dist/esm/theme/createTheme.js +1 -1
- package/dist/esm/theme/defaultDarkModeOverride.js +1 -1
- package/dist/esm/theme/tokens/colors.js +1 -1
- package/dist/esm/theme/tokens/components/checkbox.js +1 -1
- package/dist/esm/theme/tokens/components/expander.js +1 -1
- package/dist/esm/theme/tokens/components/index.js +1 -1
- package/dist/esm/theme/tokens/components/menu.js +1 -1
- package/dist/esm/theme/tokens/components/pagination.js +1 -1
- package/dist/esm/theme/tokens/components/passwordField.js +1 -0
- package/dist/esm/theme/tokens/components/radio.js +1 -1
- package/dist/esm/theme/tokens/components/textAreaField.js +1 -0
- package/dist/esm/theme/tokens/components/textField.js +1 -0
- package/dist/esm/theme/tokens/components/toggleButton.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +117 -30
- package/dist/theme.css +50 -30
- package/dist/types/helpers/authenticator/constants.d.ts +6 -0
- package/dist/types/helpers/authenticator/utils.d.ts +1 -0
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/theme/tokens/components/index.d.ts +6 -0
- package/dist/types/theme/tokens/components/passwordField.d.ts +15 -0
- package/dist/types/theme/tokens/components/textAreaField.d.ts +11 -0
- package/dist/types/theme/tokens/components/textField.d.ts +11 -0
- package/dist/types/theme/tokens/space.d.ts +1 -2
- package/dist/types/theme/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 21 Jun 2022 22:00: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);
|
|
@@ -458,8 +456,6 @@
|
|
|
458
456
|
--amplify-components-radio-button-outline-width: var(--amplify-outline-widths-medium);
|
|
459
457
|
--amplify-components-radio-button-outline-color: var(--amplify-colors-transparent);
|
|
460
458
|
--amplify-components-radio-button-transition-duration: var(--amplify-time-medium);
|
|
461
|
-
--amplify-components-radio-button-background-color: var(--amplify-colors-white);
|
|
462
|
-
--amplify-components-radio-button-color: var(--amplify-colors-white);
|
|
463
459
|
--amplify-components-radio-button-border-width: var(--amplify-border-widths-medium);
|
|
464
460
|
--amplify-components-radio-button-height: var(--amplify-font-sizes-medium);
|
|
465
461
|
--amplify-components-radio-button-width: var(--amplify-font-sizes-medium);
|
|
@@ -468,6 +464,7 @@
|
|
|
468
464
|
--amplify-components-placeholder-small-height: var(--amplify-space-small);
|
|
469
465
|
--amplify-components-placeholder-transition-duration: var(--amplify-time-long);
|
|
470
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);
|
|
471
468
|
--amplify-components-pagination-item-shared-border-radius: var(--amplify-font-sizes-medium);
|
|
472
469
|
--amplify-components-pagination-item-shared-min-width: var(--amplify-font-sizes-xxl);
|
|
473
470
|
--amplify-components-pagination-item-shared-height: var(--amplify-font-sizes-xxl);
|
|
@@ -481,7 +478,6 @@
|
|
|
481
478
|
--amplify-components-pagination-button-padding-inline-start: var(--amplify-space-xxs);
|
|
482
479
|
--amplify-components-pagination-current-background-color: var(--amplify-colors-overlay-40);
|
|
483
480
|
--amplify-components-pagination-current-font-size: var(--amplify-font-sizes-small);
|
|
484
|
-
--amplify-components-pagination-current-color: var(--amplify-colors-white);
|
|
485
481
|
--amplify-components-menu-item-padding-inline-end: var(--amplify-space-medium);
|
|
486
482
|
--amplify-components-menu-item-padding-inline-start: var(--amplify-space-medium);
|
|
487
483
|
--amplify-components-menu-large-height: var(--amplify-font-sizes-xxxl);
|
|
@@ -491,7 +487,6 @@
|
|
|
491
487
|
--amplify-components-menu-gap: var(--amplify-space-zero);
|
|
492
488
|
--amplify-components-menu-border-width: var(--amplify-border-widths-small);
|
|
493
489
|
--amplify-components-menu-border-radius: var(--amplify-radii-medium);
|
|
494
|
-
--amplify-components-menu-background-color: var(--amplify-colors-white);
|
|
495
490
|
--amplify-components-loader-linear-large-font-size: var(--amplify-font-sizes-large);
|
|
496
491
|
--amplify-components-loader-linear-large-stroke-width: var(--amplify-font-sizes-large);
|
|
497
492
|
--amplify-components-loader-linear-small-font-size: var(--amplify-font-sizes-small);
|
|
@@ -573,7 +568,6 @@
|
|
|
573
568
|
--amplify-components-expander-item-border-bottom-right-radius: var(--amplify-radii-medium);
|
|
574
569
|
--amplify-components-expander-item-border-bottom-left-radius: var(--amplify-radii-medium);
|
|
575
570
|
--amplify-components-expander-border-radius: var(--amplify-radii-medium);
|
|
576
|
-
--amplify-components-expander-background-color: var(--amplify-colors-white);
|
|
577
571
|
--amplify-components-divider-opacity: var(--amplify-opacities-60);
|
|
578
572
|
--amplify-components-divider-large-border-width: var(--amplify-border-widths-large);
|
|
579
573
|
--amplify-components-divider-small-border-width: var(--amplify-border-widths-small);
|
|
@@ -595,7 +589,6 @@
|
|
|
595
589
|
--amplify-components-checkbox-button-focus-outline-width: var(--amplify-outline-widths-medium);
|
|
596
590
|
--amplify-components-checkbox-button-focus-outline-color: var(--amplify-colors-transparent);
|
|
597
591
|
--amplify-components-checkbox-button-before-border-width: var(--amplify-border-widths-medium);
|
|
598
|
-
--amplify-components-checkbox-button-color: var(--amplify-colors-white);
|
|
599
592
|
--amplify-components-card-elevated-border-radius: var(--amplify-radii-xs);
|
|
600
593
|
--amplify-components-card-outlined-box-shadow: var(--amplify-components-card-box-shadow);
|
|
601
594
|
--amplify-components-card-outlined-border-width: var(--amplify-border-widths-small);
|
|
@@ -641,15 +634,20 @@
|
|
|
641
634
|
--amplify-colors-font-focus: var(--amplify-colors-brand-primary-100);
|
|
642
635
|
--amplify-colors-font-hover: var(--amplify-colors-brand-primary-90);
|
|
643
636
|
--amplify-colors-font-interactive: var(--amplify-colors-brand-primary-80);
|
|
644
|
-
--amplify-
|
|
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);
|
|
645
639
|
--amplify-components-togglebutton-primary-pressed-hover-box-shadow: var(--amplify-colors-brand-primary-60);
|
|
646
640
|
--amplify-components-togglebutton-primary-pressed-hover-background-color: var(--amplify-colors-brand-primary-60);
|
|
647
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);
|
|
648
644
|
--amplify-components-togglebutton-primary-pressed-border-color: var(--amplify-colors-brand-primary-80);
|
|
649
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);
|
|
650
647
|
--amplify-components-togglebutton-primary-hover-color: var(--amplify-colors-font-primary);
|
|
651
648
|
--amplify-components-togglebutton-primary-focus-color: var(--amplify-colors-font-primary);
|
|
652
649
|
--amplify-components-togglebutton-pressed-color: var(--amplify-colors-font-primary);
|
|
650
|
+
--amplify-components-togglebutton-disabled-color: var(--amplify-colors-font-disabled);
|
|
653
651
|
--amplify-components-togglebutton-focus-color: var(--amplify-colors-font-primary);
|
|
654
652
|
--amplify-components-togglebutton-color: var(--amplify-colors-font-primary);
|
|
655
653
|
--amplify-components-togglebutton-border-color: var(--amplify-colors-border-primary);
|
|
@@ -662,6 +660,7 @@
|
|
|
662
660
|
--amplify-components-text-primary-color: var(--amplify-colors-font-primary);
|
|
663
661
|
--amplify-components-text-color: var(--amplify-colors-font-primary);
|
|
664
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);
|
|
665
664
|
--amplify-components-tabs-item-color: var(--amplify-colors-font-secondary);
|
|
666
665
|
--amplify-components-tabs-item-border-color: var(--amplify-colors-border-secondary);
|
|
667
666
|
--amplify-components-tabs-border-color: var(--amplify-colors-border-secondary);
|
|
@@ -685,16 +684,22 @@
|
|
|
685
684
|
--amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
|
|
686
685
|
--amplify-components-rating-empty-color: var(--amplify-colors-background-tertiary);
|
|
687
686
|
--amplify-components-rating-filled-color: var(--amplify-colors-brand-secondary-80);
|
|
687
|
+
--amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
|
|
688
688
|
--amplify-components-radio-button-disabled-background-color: var(--amplify-colors-background-primary);
|
|
689
689
|
--amplify-components-radio-button-error-border-color: var(--amplify-colors-border-error);
|
|
690
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);
|
|
691
693
|
--amplify-components-radio-button-border-color: var(--amplify-colors-border-primary);
|
|
692
694
|
--amplify-components-placeholder-end-color: var(--amplify-colors-background-tertiary);
|
|
693
695
|
--amplify-components-placeholder-start-color: var(--amplify-colors-background-secondary);
|
|
696
|
+
--amplify-components-pagination-button-disabled-color: var(--amplify-colors-font-disabled);
|
|
694
697
|
--amplify-components-pagination-button-hover-color: var(--amplify-colors-font-primary);
|
|
695
698
|
--amplify-components-pagination-button-color: var(--amplify-colors-font-primary);
|
|
699
|
+
--amplify-components-pagination-current-color: var(--amplify-colors-font-inverse);
|
|
696
700
|
--amplify-components-menu-box-shadow: var(--amplify-shadows-large);
|
|
697
701
|
--amplify-components-menu-border-color: var(--amplify-colors-border-primary);
|
|
702
|
+
--amplify-components-menu-background-color: var(--amplify-colors-background-primary);
|
|
698
703
|
--amplify-components-loader-text-fill: var(--amplify-colors-font-primary);
|
|
699
704
|
--amplify-components-loader-linear-stroke-filled: var(--amplify-colors-brand-primary-80);
|
|
700
705
|
--amplify-components-loader-stroke-filled: var(--amplify-colors-brand-primary-80);
|
|
@@ -703,6 +708,7 @@
|
|
|
703
708
|
--amplify-components-fieldmessages-error-color: var(--amplify-colors-font-error);
|
|
704
709
|
--amplify-components-fieldcontrol-error-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-error);
|
|
705
710
|
--amplify-components-fieldcontrol-error-border-color: var(--amplify-colors-border-error);
|
|
711
|
+
--amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
|
|
706
712
|
--amplify-components-fieldcontrol-quiet-error-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-error);
|
|
707
713
|
--amplify-components-fieldcontrol-quiet-error-border-block-end-color: var(--amplify-colors-border-error);
|
|
708
714
|
--amplify-components-fieldcontrol-large-font-size: var(--amplify-components-field-large-font-size);
|
|
@@ -714,6 +720,7 @@
|
|
|
714
720
|
--amplify-components-expander-content-text-color: var(--amplify-colors-font-secondary);
|
|
715
721
|
--amplify-components-expander-item-box-shadow: var(--amplify-shadows-small);
|
|
716
722
|
--amplify-components-expander-box-shadow: var(--amplify-shadows-large);
|
|
723
|
+
--amplify-components-expander-background-color: var(--amplify-colors-background-primary);
|
|
717
724
|
--amplify-components-divider-label-background-color: var(--amplify-colors-background-primary);
|
|
718
725
|
--amplify-components-divider-label-color: var(--amplify-colors-font-tertiary);
|
|
719
726
|
--amplify-components-divider-border-color: var(--amplify-colors-border-primary);
|
|
@@ -721,11 +728,12 @@
|
|
|
721
728
|
--amplify-components-collection-search-button-disabled-background-color: var(--amplify-components-searchfield-button-disabled-background-color);
|
|
722
729
|
--amplify-components-collection-pagination-button-hover-background-color: var(--amplify-components-pagination-button-hover-background-color);
|
|
723
730
|
--amplify-components-collection-pagination-current-background-color: var(--amplify-components-pagination-current-background-color);
|
|
724
|
-
--amplify-components-
|
|
731
|
+
--amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
|
|
725
732
|
--amplify-components-checkbox-icon-background-color: var(--amplify-colors-brand-primary-80);
|
|
726
733
|
--amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
|
|
727
734
|
--amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
|
|
728
735
|
--amplify-components-checkbox-button-before-border-color: var(--amplify-colors-border-primary);
|
|
736
|
+
--amplify-components-checkbox-button-color: var(--amplify-colors-font-inverse);
|
|
729
737
|
--amplify-components-card-elevated-box-shadow: var(--amplify-shadows-medium);
|
|
730
738
|
--amplify-components-card-outlined-border-color: var(--amplify-colors-border-primary);
|
|
731
739
|
--amplify-components-card-background-color: var(--amplify-colors-background-primary);
|
|
@@ -737,9 +745,12 @@
|
|
|
737
745
|
--amplify-components-button-small-padding-inline-start: var(--amplify-components-fieldcontrol-small-padding-inline-start);
|
|
738
746
|
--amplify-components-button-small-padding-block-end: var(--amplify-components-fieldcontrol-small-padding-block-end);
|
|
739
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);
|
|
740
750
|
--amplify-components-button-link-active-background-color: var(--amplify-colors-brand-primary-20);
|
|
741
751
|
--amplify-components-button-link-focus-background-color: var(--amplify-colors-brand-primary-10);
|
|
742
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);
|
|
743
754
|
--amplify-components-button-menu-active-background-color: var(--amplify-colors-brand-primary-90);
|
|
744
755
|
--amplify-components-button-menu-active-color: var(--amplify-colors-font-inverse);
|
|
745
756
|
--amplify-components-button-menu-focus-background-color: var(--amplify-colors-brand-primary-80);
|
|
@@ -752,10 +763,14 @@
|
|
|
752
763
|
--amplify-components-button-primary-focus-background-color: var(--amplify-colors-brand-primary-90);
|
|
753
764
|
--amplify-components-button-primary-hover-color: var(--amplify-colors-font-inverse);
|
|
754
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);
|
|
755
768
|
--amplify-components-button-primary-color: var(--amplify-colors-font-inverse);
|
|
756
769
|
--amplify-components-button-primary-background-color: var(--amplify-colors-brand-primary-80);
|
|
757
770
|
--amplify-components-button-disabled-border-color: var(--amplify-colors-border-tertiary);
|
|
771
|
+
--amplify-components-button-disabled-color: var(--amplify-colors-font-disabled);
|
|
758
772
|
--amplify-components-button-loading-border-color: var(--amplify-colors-border-tertiary);
|
|
773
|
+
--amplify-components-button-loading-color: var(--amplify-colors-font-disabled);
|
|
759
774
|
--amplify-components-button-active-border-color: var(--amplify-colors-brand-primary-100);
|
|
760
775
|
--amplify-components-button-active-background-color: var(--amplify-colors-brand-primary-20);
|
|
761
776
|
--amplify-components-button-focus-background-color: var(--amplify-colors-brand-primary-10);
|
|
@@ -795,18 +810,18 @@
|
|
|
795
810
|
--amplify-components-alert-info-color: var(--amplify-colors-font-info);
|
|
796
811
|
--amplify-components-alert-background-color: var(--amplify-colors-background-tertiary);
|
|
797
812
|
--amplify-components-alert-color: var(--amplify-colors-font-primary);
|
|
798
|
-
--amplify-components-togglebutton-link-disabled-color: var(--amplify-colors-font-disabled);
|
|
799
813
|
--amplify-components-togglebutton-primary-pressed-focus-border-color: var(--amplify-colors-border-focus);
|
|
800
814
|
--amplify-components-togglebutton-primary-pressed-focus-background-color: var(--amplify-colors-border-focus);
|
|
801
|
-
--amplify-components-togglebutton-primary-disabled-color: var(--amplify-colors-font-disabled);
|
|
802
815
|
--amplify-components-togglebutton-primary-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
803
816
|
--amplify-components-togglebutton-primary-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
804
817
|
--amplify-components-togglebutton-primary-focus-border-color: var(--amplify-colors-border-focus);
|
|
805
818
|
--amplify-components-togglebutton-pressed-border-color: var(--amplify-colors-border-pressed);
|
|
806
|
-
--amplify-components-togglebutton-disabled-color: var(--amplify-colors-font-disabled);
|
|
807
819
|
--amplify-components-togglebutton-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
808
820
|
--amplify-components-togglebutton-focus-border-color: var(--amplify-colors-border-focus);
|
|
809
|
-
--amplify-components-
|
|
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);
|
|
810
825
|
--amplify-components-tabs-item-active-border-color: var(--amplify-colors-font-interactive);
|
|
811
826
|
--amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
|
|
812
827
|
--amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
|
|
@@ -820,32 +835,40 @@
|
|
|
820
835
|
--amplify-components-searchfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
|
|
821
836
|
--amplify-components-searchfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
|
|
822
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);
|
|
823
839
|
--amplify-components-searchfield-button-disabled-border-color: var(--amplify-components-button-disabled-border-color);
|
|
824
840
|
--amplify-components-searchfield-button-active-border-color: var(--amplify-components-button-active-border-color);
|
|
825
841
|
--amplify-components-searchfield-button-active-background-color: var(--amplify-components-button-active-background-color);
|
|
826
842
|
--amplify-components-searchfield-button-color: var(--amplify-components-button-color);
|
|
827
843
|
--amplify-components-searchfield-color: var(--amplify-components-fieldcontrol-color);
|
|
828
|
-
--amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
|
|
829
844
|
--amplify-components-radio-button-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
830
845
|
--amplify-components-radio-button-error-focus-box-shadow: var(--amplify-components-fieldcontrol-error-focus-box-shadow);
|
|
831
846
|
--amplify-components-radio-button-focus-border-color: var(--amplify-colors-border-focus);
|
|
832
847
|
--amplify-components-radio-button-checked-disabled-color: var(--amplify-colors-background-disabled);
|
|
833
|
-
--amplify-components-
|
|
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);
|
|
834
857
|
--amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
|
|
835
858
|
--amplify-components-link-hover-color: var(--amplify-colors-font-hover);
|
|
836
859
|
--amplify-components-link-focus-color: var(--amplify-colors-font-focus);
|
|
837
860
|
--amplify-components-link-color: var(--amplify-colors-font-interactive);
|
|
838
861
|
--amplify-components-link-active-color: var(--amplify-colors-font-active);
|
|
839
862
|
--amplify-components-fieldcontrol-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
840
|
-
--amplify-components-fieldcontrol-disabled-color: var(--amplify-colors-font-disabled);
|
|
841
863
|
--amplify-components-fieldcontrol-focus-box-shadow: 0px 0px 0px 1px var(--amplify-colors-border-focus);
|
|
842
864
|
--amplify-components-fieldcontrol-focus-border-color: var(--amplify-colors-border-focus);
|
|
843
865
|
--amplify-components-fieldcontrol-quiet-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-focus);
|
|
844
866
|
--amplify-components-fieldcontrol-quiet-focus-border-block-end-color: var(--amplify-colors-border-focus);
|
|
845
867
|
--amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
|
|
868
|
+
--amplify-components-collection-pagination-button-disabled-color: var(--amplify-components-pagination-button-disabled-color);
|
|
846
869
|
--amplify-components-collection-pagination-button-hover-color: var(--amplify-components-pagination-button-hover-color);
|
|
847
870
|
--amplify-components-collection-pagination-button-color: var(--amplify-components-pagination-button-color);
|
|
848
|
-
--amplify-components-
|
|
871
|
+
--amplify-components-collection-pagination-current-color: var(--amplify-components-pagination-current-color);
|
|
849
872
|
--amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
850
873
|
--amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
851
874
|
--amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
|
|
@@ -853,19 +876,12 @@
|
|
|
853
876
|
--amplify-components-card-outlined-background-color: var(--amplify-components-card-background-color);
|
|
854
877
|
--amplify-components-button-large-font-size: var(--amplify-components-fieldcontrol-large-font-size);
|
|
855
878
|
--amplify-components-button-small-font-size: var(--amplify-components-fieldcontrol-small-font-size);
|
|
856
|
-
--amplify-components-button-link-loading-color: var(--amplify-colors-font-disabled);
|
|
857
|
-
--amplify-components-button-link-disabled-color: var(--amplify-colors-font-disabled);
|
|
858
879
|
--amplify-components-button-link-active-color: var(--amplify-colors-font-active);
|
|
859
880
|
--amplify-components-button-link-focus-color: var(--amplify-colors-font-focus);
|
|
860
881
|
--amplify-components-button-link-hover-color: var(--amplify-colors-font-hover);
|
|
861
882
|
--amplify-components-button-link-color: var(--amplify-colors-font-interactive);
|
|
862
|
-
--amplify-components-button-menu-disabled-color: var(--amplify-colors-font-disabled);
|
|
863
|
-
--amplify-components-button-primary-loading-color: var(--amplify-colors-font-disabled);
|
|
864
883
|
--amplify-components-button-primary-loading-background-color: var(--amplify-colors-background-disabled);
|
|
865
|
-
--amplify-components-button-primary-disabled-color: var(--amplify-colors-font-disabled);
|
|
866
884
|
--amplify-components-button-primary-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
867
|
-
--amplify-components-button-disabled-color: var(--amplify-colors-font-disabled);
|
|
868
|
-
--amplify-components-button-loading-color: var(--amplify-colors-font-disabled);
|
|
869
885
|
--amplify-components-button-active-color: var(--amplify-colors-font-active);
|
|
870
886
|
--amplify-components-button-focus-border-color: var(--amplify-colors-border-focus);
|
|
871
887
|
--amplify-components-button-focus-color: var(--amplify-colors-font-focus);
|
|
@@ -873,27 +889,31 @@
|
|
|
873
889
|
--amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
|
|
874
890
|
--amplify-components-button-font-size: var(--amplify-components-fieldcontrol-font-size);
|
|
875
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);
|
|
876
894
|
--amplify-components-searchfield-button-hover-color: var(--amplify-components-button-hover-color);
|
|
877
895
|
--amplify-components-searchfield-button-focus-color: var(--amplify-components-button-focus-color);
|
|
878
896
|
--amplify-components-searchfield-button-focus-border-color: var(--amplify-components-button-focus-border-color);
|
|
879
|
-
--amplify-components-searchfield-button-disabled-color: var(--amplify-components-button-disabled-color);
|
|
880
897
|
--amplify-components-searchfield-button-active-color: var(--amplify-components-button-active-color);
|
|
881
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);
|
|
882
903
|
--amplify-components-collection-search-button-hover-border-color: var(--amplify-components-searchfield-button-hover-border-color);
|
|
883
904
|
--amplify-components-collection-search-button-hover-background-color: var(--amplify-components-searchfield-button-hover-background-color);
|
|
884
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);
|
|
885
907
|
--amplify-components-collection-search-button-disabled-border-color: var(--amplify-components-searchfield-button-disabled-border-color);
|
|
886
908
|
--amplify-components-collection-search-button-active-border-color: var(--amplify-components-searchfield-button-active-border-color);
|
|
887
909
|
--amplify-components-collection-search-button-active-background-color: var(--amplify-components-searchfield-button-active-background-color);
|
|
888
910
|
--amplify-components-collection-search-button-color: var(--amplify-components-searchfield-button-color);
|
|
889
911
|
--amplify-components-collection-search-input-color: var(--amplify-components-searchfield-color);
|
|
890
|
-
--amplify-components-collection-pagination-button-disabled-color: var(--amplify-components-pagination-button-disabled-color);
|
|
891
912
|
--amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
892
913
|
--amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
893
914
|
--amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
894
915
|
--amplify-components-collection-search-button-hover-color: var(--amplify-components-searchfield-button-hover-color);
|
|
895
916
|
--amplify-components-collection-search-button-focus-color: var(--amplify-components-searchfield-button-focus-color);
|
|
896
917
|
--amplify-components-collection-search-button-focus-border-color: var(--amplify-components-searchfield-button-focus-border-color);
|
|
897
|
-
--amplify-components-collection-search-button-disabled-color: var(--amplify-components-searchfield-button-disabled-color);
|
|
898
918
|
--amplify-components-collection-search-button-active-color: var(--amplify-components-searchfield-button-active-color);
|
|
899
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;
|
|
@@ -22,6 +22,7 @@ import { LinkTokens } from './link';
|
|
|
22
22
|
import { LoaderTokens } from './loader';
|
|
23
23
|
import { MenuTokens } from './menu';
|
|
24
24
|
import { PaginationTokens } from './pagination';
|
|
25
|
+
import { PasswordFieldTokens } from './passwordField';
|
|
25
26
|
import { PlaceholderTokens } from './placeholder';
|
|
26
27
|
import { RadioTokens } from './radio';
|
|
27
28
|
import { RatingTokens } from './rating';
|
|
@@ -34,6 +35,8 @@ import { SwitchFieldTokens } from './switchField';
|
|
|
34
35
|
import { TableTokens } from './table';
|
|
35
36
|
import { TabsTokens } from './tabs';
|
|
36
37
|
import { TextTokens } from './text';
|
|
38
|
+
import { TextAreaFieldTokens } from './textAreaField';
|
|
39
|
+
import { TextFieldTokens } from './textField';
|
|
37
40
|
import { ToggleButtonTokens } from './toggleButton';
|
|
38
41
|
import { ToggleButtonGroupTokens } from './toggleButtonGroup';
|
|
39
42
|
export interface ComponentTokens {
|
|
@@ -61,6 +64,7 @@ export interface ComponentTokens {
|
|
|
61
64
|
loader: LoaderTokens;
|
|
62
65
|
menu: MenuTokens;
|
|
63
66
|
pagination: PaginationTokens;
|
|
67
|
+
passwordfield: PasswordFieldTokens;
|
|
64
68
|
placeholder: PlaceholderTokens;
|
|
65
69
|
radio: RadioTokens;
|
|
66
70
|
rating: RatingTokens;
|
|
@@ -73,6 +77,8 @@ export interface ComponentTokens {
|
|
|
73
77
|
table: TableTokens;
|
|
74
78
|
tabs: TabsTokens;
|
|
75
79
|
text: TextTokens;
|
|
80
|
+
textareafield: TextAreaFieldTokens;
|
|
81
|
+
textfield: TextFieldTokens;
|
|
76
82
|
togglebutton: ToggleButtonTokens;
|
|
77
83
|
togglebuttongroup: ToggleButtonGroupTokens;
|
|
78
84
|
}
|
|
@@ -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,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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ColorValue, DesignToken, BorderColorValue } from '../types/designToken';
|
|
2
|
+
interface TextFieldStateToken {
|
|
3
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
4
|
+
}
|
|
5
|
+
export interface TextFieldTokens {
|
|
6
|
+
color: DesignToken<ColorValue>;
|
|
7
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
8
|
+
_focus: TextFieldStateToken;
|
|
9
|
+
}
|
|
10
|
+
export declare const textfield: TextFieldTokens;
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignToken, WebDesignToken, SpaceValue } from './types/designToken';
|
|
2
|
-
declare type SpaceSizes = {
|
|
2
|
+
export declare type SpaceSizes = {
|
|
3
3
|
xxxs: DesignToken<SpaceValue>;
|
|
4
4
|
xxs: DesignToken<SpaceValue>;
|
|
5
5
|
xs: DesignToken<SpaceValue>;
|
|
@@ -24,4 +24,3 @@ export declare type WebSpace = {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare const space: Space;
|
|
27
|
-
export {};
|
|
@@ -2,6 +2,12 @@ import { PartialDeep } from 'type-fest';
|
|
|
2
2
|
import { Tokens, WebTokens } from './tokens';
|
|
3
3
|
import { Breakpoints } from './breakpoints';
|
|
4
4
|
export * from './tokens/types/designToken';
|
|
5
|
+
export type { FontSizes } from './tokens/fontSizes';
|
|
6
|
+
export type { FontWeights } from './tokens/fontWeights';
|
|
7
|
+
export type { LineHeights } from './tokens/lineHeights';
|
|
8
|
+
export type { Radii } from './tokens/radii';
|
|
9
|
+
export type { Shadows } from './tokens/shadows';
|
|
10
|
+
export type { SpaceSizes } from './tokens/space';
|
|
5
11
|
/**
|
|
6
12
|
* An override is a set of tokens that override others
|
|
7
13
|
* in certain contexts. On Android, these are like resource
|