@aws-amplify/ui 3.9.0 → 3.10.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 (28) hide show
  1. package/dist/esm/helpers/authenticator/facade.js +1 -1
  2. package/dist/esm/machines/authenticator/actors/signIn.js +1 -1
  3. package/dist/esm/machines/authenticator/index.js +1 -1
  4. package/dist/esm/machines/authenticator/signUp.js +1 -1
  5. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -14
  6. package/dist/esm/theme/tokens/colors.js +1 -1
  7. package/dist/esm/theme/tokens/components/collection.js +1 -0
  8. package/dist/esm/theme/tokens/components/index.js +1 -1
  9. package/dist/esm/theme/tokens/components/searchField.js +1 -0
  10. package/dist/esm/theme/tokens/components/sliderField.js +1 -1
  11. package/dist/esm/theme/tokens/components/toggleButton.js +1 -1
  12. package/dist/index.js +1 -16
  13. package/dist/styles.css +240 -127
  14. package/dist/theme.css +55 -9
  15. package/dist/types/machines/authenticator/actors/resetPassword.d.ts +1 -21
  16. package/dist/types/machines/authenticator/actors/signIn.d.ts +1 -21
  17. package/dist/types/machines/authenticator/actors/signOut.d.ts +1 -21
  18. package/dist/types/machines/authenticator/index.d.ts +1 -21
  19. package/dist/types/machines/authenticator/signUp.d.ts +1 -21
  20. package/dist/types/theme/tokens/colors.d.ts +1 -0
  21. package/dist/types/theme/tokens/components/button.d.ts +1 -1
  22. package/dist/types/theme/tokens/components/collection.d.ts +32 -0
  23. package/dist/types/theme/tokens/components/index.d.ts +4 -0
  24. package/dist/types/theme/tokens/components/pagination.d.ts +2 -2
  25. package/dist/types/theme/tokens/components/searchField.d.ts +15 -0
  26. package/dist/types/theme/tokens/components/sliderField.d.ts +1 -0
  27. package/dist/types/theme/tokens/components/toggleButton.d.ts +13 -0
  28. 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, 17 May 2022 21:59:14 GMT
3
+ * Generated on Wed, 08 Jun 2022 19:50:16 GMT
4
4
  */
5
5
 
6
6
  :root, [data-amplify-theme] {
@@ -378,17 +378,22 @@
378
378
  --amplify-colors-brand-primary-20: var(--amplify-colors-teal-20);
379
379
  --amplify-colors-brand-primary-10: var(--amplify-colors-teal-10);
380
380
  --amplify-components-togglebutton-link-pressed-hover-background-color: var(--amplify-colors-transparent);
381
+ --amplify-components-togglebutton-link-pressed-hover-color: var(--amplify-colors-overlay-90);
382
+ --amplify-components-togglebutton-link-pressed-focus-color: var(--amplify-colors-overlay-90);
383
+ --amplify-components-togglebutton-link-pressed-focus-background-color: var(--amplify-colors-transparent);
381
384
  --amplify-components-togglebutton-link-pressed-color: var(--amplify-colors-overlay-90);
382
385
  --amplify-components-togglebutton-link-pressed-background-color: var(--amplify-colors-transparent);
386
+ --amplify-components-togglebutton-link-disabled-background-color: var(--amplify-colors-transparent);
383
387
  --amplify-components-togglebutton-link-focus-color: var(--amplify-colors-overlay-50);
384
388
  --amplify-components-togglebutton-link-focus-background-color: var(--amplify-colors-transparent);
385
389
  --amplify-components-togglebutton-link-hover-color: var(--amplify-colors-overlay-50);
386
390
  --amplify-components-togglebutton-link-hover-background-color: var(--amplify-colors-transparent);
387
391
  --amplify-components-togglebutton-link-color: var(--amplify-colors-overlay-50);
392
+ --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);
388
395
  --amplify-components-togglebutton-primary-pressed-color: var(--amplify-colors-white);
389
- --amplify-components-togglebutton-primary-hover-color: var(--amplify-colors-overlay-50);
390
396
  --amplify-components-togglebutton-primary-hover-background-color: var(--amplify-colors-overlay-10);
391
- --amplify-components-togglebutton-primary-focus-color: var(--amplify-colors-overlay-50);
392
397
  --amplify-components-togglebutton-primary-focus-background-color: var(--amplify-colors-transparent);
393
398
  --amplify-components-togglebutton-primary-border-width: var(--amplify-border-widths-small);
394
399
  --amplify-components-togglebutton-primary-background-color: var(--amplify-colors-transparent);
@@ -396,9 +401,7 @@
396
401
  --amplify-components-togglebutton-pressed-background-color: var(--amplify-colors-overlay-20);
397
402
  --amplify-components-togglebutton-disabled-background-color: var(--amplify-colors-transparent);
398
403
  --amplify-components-togglebutton-active-background-color: var(--amplify-colors-transparent);
399
- --amplify-components-togglebutton-focus-color: var(--amplify-colors-overlay-50);
400
404
  --amplify-components-togglebutton-hover-background-color: var(--amplify-colors-overlay-10);
401
- --amplify-components-togglebutton-color: var(--amplify-colors-overlay-50);
402
405
  --amplify-components-tabs-item-transition-duration: var(--amplify-time-medium);
403
406
  --amplify-components-tabs-item-padding-horizontal: var(--amplify-space-medium);
404
407
  --amplify-components-tabs-item-padding-vertical: var(--amplify-space-small);
@@ -438,10 +441,11 @@
438
441
  --amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
439
442
  --amplify-components-switchfield-large-font-size: var(--amplify-font-sizes-large);
440
443
  --amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
441
- --amplify-components-sliderfield-thumb-border-width: var(--amplify-border-widths-small);
444
+ --amplify-components-sliderfield-thumb-border-width: var(--amplify-border-widths-medium);
442
445
  --amplify-components-sliderfield-padding-block: var(--amplify-space-xs);
443
446
  --amplify-components-select-icon-wrapper-right: var(--amplify-space-medium);
444
447
  --amplify-components-select-padding-inline-end: var(--amplify-space-xxl);
448
+ --amplify-components-searchfield-button-disabled-background-color: var(--amplify-components-button-disabled-background-color);
445
449
  --amplify-components-rating-small-size: var(--amplify-font-sizes-small);
446
450
  --amplify-components-rating-default-size: var(--amplify-font-sizes-xl);
447
451
  --amplify-components-rating-large-size: var(--amplify-font-sizes-xxxl);
@@ -630,6 +634,7 @@
630
634
  --amplify-components-alert-padding-inline: var(--amplify-space-medium);
631
635
  --amplify-components-alert-padding-block: var(--amplify-space-small);
632
636
  --amplify-colors-border-focus: var(--amplify-colors-brand-primary-100);
637
+ --amplify-colors-border-pressed: var(--amplify-colors-brand-primary-100);
633
638
  --amplify-colors-border-disabled: var(--amplify-colors-border-tertiary);
634
639
  --amplify-colors-background-disabled: var(--amplify-colors-background-tertiary);
635
640
  --amplify-colors-font-active: var(--amplify-colors-brand-primary-100);
@@ -637,13 +642,16 @@
637
642
  --amplify-colors-font-hover: var(--amplify-colors-brand-primary-90);
638
643
  --amplify-colors-font-interactive: var(--amplify-colors-brand-primary-80);
639
644
  --amplify-colors-font-disabled: var(--amplify-colors-font-tertiary);
645
+ --amplify-components-togglebutton-primary-pressed-hover-box-shadow: var(--amplify-colors-brand-primary-60);
640
646
  --amplify-components-togglebutton-primary-pressed-hover-background-color: var(--amplify-colors-brand-primary-60);
641
647
  --amplify-components-togglebutton-primary-pressed-hover-border-color: var(--amplify-colors-brand-primary-60);
642
648
  --amplify-components-togglebutton-primary-pressed-border-color: var(--amplify-colors-brand-primary-80);
643
649
  --amplify-components-togglebutton-primary-pressed-background-color: var(--amplify-colors-brand-primary-80);
644
- --amplify-components-togglebutton-primary-disabled-background-color: var(--amplify-colors-background-tertiary);
650
+ --amplify-components-togglebutton-primary-hover-color: var(--amplify-colors-font-primary);
651
+ --amplify-components-togglebutton-primary-focus-color: var(--amplify-colors-font-primary);
645
652
  --amplify-components-togglebutton-pressed-color: var(--amplify-colors-font-primary);
646
- --amplify-components-togglebutton-disabled-border-color: var(--amplify-colors-border-secondary);
653
+ --amplify-components-togglebutton-focus-color: var(--amplify-colors-font-primary);
654
+ --amplify-components-togglebutton-color: var(--amplify-colors-font-primary);
647
655
  --amplify-components-togglebutton-border-color: var(--amplify-colors-border-primary);
648
656
  --amplify-components-text-info-color: var(--amplify-colors-font-info);
649
657
  --amplify-components-text-success-color: var(--amplify-colors-font-success);
@@ -710,6 +718,10 @@
710
718
  --amplify-components-divider-label-color: var(--amplify-colors-font-tertiary);
711
719
  --amplify-components-divider-border-color: var(--amplify-colors-border-primary);
712
720
  --amplify-components-copy-svg-path-fill: var(--amplify-colors-font-primary);
721
+ --amplify-components-collection-search-button-disabled-background-color: var(--amplify-components-searchfield-button-disabled-background-color);
722
+ --amplify-components-collection-pagination-button-hover-background-color: var(--amplify-components-pagination-button-hover-background-color);
723
+ --amplify-components-collection-pagination-current-background-color: var(--amplify-components-pagination-current-background-color);
724
+ --amplify-components-collection-pagination-current-color: var(--amplify-components-pagination-current-color);
713
725
  --amplify-components-checkbox-icon-background-color: var(--amplify-colors-brand-primary-80);
714
726
  --amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
715
727
  --amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
@@ -787,8 +799,12 @@
787
799
  --amplify-components-togglebutton-primary-pressed-focus-border-color: var(--amplify-colors-border-focus);
788
800
  --amplify-components-togglebutton-primary-pressed-focus-background-color: var(--amplify-colors-border-focus);
789
801
  --amplify-components-togglebutton-primary-disabled-color: var(--amplify-colors-font-disabled);
802
+ --amplify-components-togglebutton-primary-disabled-background-color: var(--amplify-colors-background-disabled);
803
+ --amplify-components-togglebutton-primary-disabled-border-color: var(--amplify-colors-border-disabled);
790
804
  --amplify-components-togglebutton-primary-focus-border-color: var(--amplify-colors-border-focus);
805
+ --amplify-components-togglebutton-pressed-border-color: var(--amplify-colors-border-pressed);
791
806
  --amplify-components-togglebutton-disabled-color: var(--amplify-colors-font-disabled);
807
+ --amplify-components-togglebutton-disabled-border-color: var(--amplify-colors-border-disabled);
792
808
  --amplify-components-togglebutton-focus-border-color: var(--amplify-colors-border-focus);
793
809
  --amplify-components-tabs-item-disabled-color: var(--amplify-colors-font-disabled);
794
810
  --amplify-components-tabs-item-active-border-color: var(--amplify-colors-font-interactive);
@@ -796,10 +812,19 @@
796
812
  --amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
797
813
  --amplify-components-tabs-item-hover-color: var(--amplify-colors-font-hover);
798
814
  --amplify-components-switchfield-focused-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
799
- --amplify-components-sliderfield-thumb-focus-box-shadow: 0 0 0 3px var(--amplify-colors-border-focus);
815
+ --amplify-components-sliderfield-thumb-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
816
+ --amplify-components-sliderfield-thumb-focus-border-color: var(--amplify-colors-border-focus);
800
817
  --amplify-components-sliderfield-thumb-hover-border-color: var(--amplify-colors-border-focus);
801
818
  --amplify-components-sliderfield-thumb-disabled-background-color: var(--amplify-colors-background-disabled);
802
819
  --amplify-components-sliderfield-range-disabled-background-color: var(--amplify-colors-background-disabled);
820
+ --amplify-components-searchfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
821
+ --amplify-components-searchfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
822
+ --amplify-components-searchfield-button-focus-background-color: var(--amplify-components-button-focus-background-color);
823
+ --amplify-components-searchfield-button-disabled-border-color: var(--amplify-components-button-disabled-border-color);
824
+ --amplify-components-searchfield-button-active-border-color: var(--amplify-components-button-active-border-color);
825
+ --amplify-components-searchfield-button-active-background-color: var(--amplify-components-button-active-background-color);
826
+ --amplify-components-searchfield-button-color: var(--amplify-components-button-color);
827
+ --amplify-components-searchfield-color: var(--amplify-components-fieldcontrol-color);
803
828
  --amplify-components-radio-label-disabled-color: var(--amplify-colors-font-disabled);
804
829
  --amplify-components-radio-button-disabled-border-color: var(--amplify-colors-border-disabled);
805
830
  --amplify-components-radio-button-error-focus-box-shadow: var(--amplify-components-fieldcontrol-error-focus-box-shadow);
@@ -818,6 +843,8 @@
818
843
  --amplify-components-fieldcontrol-quiet-focus-box-shadow: 0px 1px 0px var(--amplify-colors-border-focus);
819
844
  --amplify-components-fieldcontrol-quiet-focus-border-block-end-color: var(--amplify-colors-border-focus);
820
845
  --amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
846
+ --amplify-components-collection-pagination-button-hover-color: var(--amplify-components-pagination-button-hover-color);
847
+ --amplify-components-collection-pagination-button-color: var(--amplify-components-pagination-button-color);
821
848
  --amplify-components-checkbox-label-disabled-color: var(--amplify-colors-font-disabled);
822
849
  --amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
823
850
  --amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
@@ -846,8 +873,27 @@
846
873
  --amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
847
874
  --amplify-components-button-font-size: var(--amplify-components-fieldcontrol-font-size);
848
875
  --amplify-components-togglebutton-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
876
+ --amplify-components-searchfield-button-hover-color: var(--amplify-components-button-hover-color);
877
+ --amplify-components-searchfield-button-focus-color: var(--amplify-components-button-focus-color);
878
+ --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
+ --amplify-components-searchfield-button-active-color: var(--amplify-components-button-active-color);
849
881
  --amplify-components-radio-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
882
+ --amplify-components-collection-search-button-hover-border-color: var(--amplify-components-searchfield-button-hover-border-color);
883
+ --amplify-components-collection-search-button-hover-background-color: var(--amplify-components-searchfield-button-hover-background-color);
884
+ --amplify-components-collection-search-button-focus-background-color: var(--amplify-components-searchfield-button-focus-background-color);
885
+ --amplify-components-collection-search-button-disabled-border-color: var(--amplify-components-searchfield-button-disabled-border-color);
886
+ --amplify-components-collection-search-button-active-border-color: var(--amplify-components-searchfield-button-active-border-color);
887
+ --amplify-components-collection-search-button-active-background-color: var(--amplify-components-searchfield-button-active-background-color);
888
+ --amplify-components-collection-search-button-color: var(--amplify-components-searchfield-button-color);
889
+ --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);
850
891
  --amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
851
892
  --amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
852
893
  --amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
894
+ --amplify-components-collection-search-button-hover-color: var(--amplify-components-searchfield-button-hover-color);
895
+ --amplify-components-collection-search-button-focus-color: var(--amplify-components-searchfield-button-focus-color);
896
+ --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
+ --amplify-components-collection-search-button-active-color: var(--amplify-components-searchfield-button-active-color);
853
899
  }
@@ -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>>;
@@ -21,6 +21,7 @@ declare type BackgroundColors<DesignTokenType = DesignToken<ColorValue>> = {
21
21
  } & OrdinalScale<DesignTokenType> & OrdinalVariation<DesignTokenType>;
22
22
  declare type BorderColors<DesignTokenType = DesignToken<ColorValue>> = {
23
23
  disabled: DesignTokenType;
24
+ pressed: DesignTokenType;
24
25
  focus: DesignTokenType;
25
26
  error: DesignTokenType;
26
27
  } & OrdinalScale<DesignTokenType>;
@@ -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';
@@ -24,6 +25,7 @@ import { PaginationTokens } from './pagination';
24
25
  import { PlaceholderTokens } from './placeholder';
25
26
  import { RadioTokens } from './radio';
26
27
  import { RatingTokens } from './rating';
28
+ import { SearchFieldTokens } from './searchField';
27
29
  import { SelectTokens } from './select';
28
30
  import { SelectFieldTokens } from './selectField';
29
31
  import { SliderFieldTokens } from './sliderField';
@@ -42,6 +44,7 @@ export interface ComponentTokens {
42
44
  card: CardTokens;
43
45
  checkbox: CheckboxTokens;
44
46
  checkboxfield: CheckboxFieldTokens;
47
+ collection: CollectionTokens;
45
48
  copy: CopyTokens;
46
49
  countrycodeselect: CountryCodeSelectTokens;
47
50
  divider: DividerTokens;
@@ -61,6 +64,7 @@ export interface ComponentTokens {
61
64
  placeholder: PlaceholderTokens;
62
65
  radio: RadioTokens;
63
66
  rating: RatingTokens;
67
+ searchfield: SearchFieldTokens;
64
68
  select: SelectTokens;
65
69
  selectfield: SelectFieldTokens;
66
70
  sliderfield: SliderFieldTokens;
@@ -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 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 {};
@@ -36,6 +36,7 @@ interface SliderFieldThumbHoverTokens {
36
36
  borderColor: DesignToken<BorderColorValue>;
37
37
  }
38
38
  interface SliderFieldThumbFocusTokens {
39
+ borderColor: DesignToken<BorderColorValue>;
39
40
  boxShadow: DesignToken<BoxShadowValue>;
40
41
  }
41
42
  interface SliderFieldSizeTokens {
@@ -15,6 +15,7 @@ interface ToggleButtonDisabledTokens {
15
15
  color: DesignToken<ColorValue>;
16
16
  }
17
17
  interface ToggleButtonPressedTokens {
18
+ borderColor: DesignToken<BorderColorValue>;
18
19
  color: DesignToken<ColorValue>;
19
20
  backgroundColor: DesignToken<BackgroundColorValue>;
20
21
  _hover: ToggleButtonPressedHoverTokens;
@@ -41,6 +42,7 @@ interface ToggleButtonPrimaryHoverTokens {
41
42
  color: DesignToken<ColorValue>;
42
43
  }
43
44
  interface ToggleButtonPrimaryDisabledTokens {
45
+ borderColor: DesignToken<BorderColorValue>;
44
46
  backgroundColor: DesignToken<BackgroundColorValue>;
45
47
  color: DesignToken<ColorValue>;
46
48
  }
@@ -57,12 +59,16 @@ interface ToggleButtonPrimaryPressedTokens {
57
59
  interface TogglButtonPrimaryPressedFocusTokens {
58
60
  backgroundColor: DesignToken<BackgroundColorValue>;
59
61
  borderColor: DesignToken<BorderColorValue>;
62
+ color: DesignToken<ColorValue>;
60
63
  }
61
64
  interface TogglButtonPrimaryPressedHoverTokens {
62
65
  backgroundColor: DesignToken<BackgroundColorValue>;
63
66
  borderColor: DesignToken<BorderColorValue>;
67
+ boxShadow: DesignToken<BoxShadowValue>;
68
+ color: DesignToken<ColorValue>;
64
69
  }
65
70
  interface ToggleButtonLinkTokens {
71
+ backgroundColor: DesignToken<BackgroundColorValue>;
66
72
  color: DesignToken<ColorValue>;
67
73
  _hover: ToggleButtonLinkHoverTokens;
68
74
  _focus: ToggleButtonLinkFocusTokens;
@@ -78,14 +84,21 @@ interface ToggleButtonLinkFocusTokens {
78
84
  color: DesignToken<ColorValue>;
79
85
  }
80
86
  interface ToggleButtonLinkDisabledTokens {
87
+ backgroundColor: DesignToken<BackgroundColorValue>;
81
88
  color: DesignToken<ColorValue>;
82
89
  }
83
90
  interface ToggleButtonLinkPressedTokens {
84
91
  backgroundColor: DesignToken<BackgroundColorValue>;
85
92
  color: DesignToken<ColorValue>;
93
+ _focus: ToggleButtonLinkPressedFocusTokens;
86
94
  _hover: ToggleButtonLinkPressedHoverTokens;
87
95
  }
96
+ interface ToggleButtonLinkPressedFocusTokens {
97
+ color: DesignToken<ColorValue>;
98
+ backgroundColor: DesignToken<BackgroundColorValue>;
99
+ }
88
100
  interface ToggleButtonLinkPressedHoverTokens {
101
+ color: DesignToken<ColorValue>;
89
102
  backgroundColor: DesignToken<BackgroundColorValue>;
90
103
  }
91
104
  export interface ToggleButtonTokens {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "files": [
26
26
  "dist",
27
+ "dist/esm/node_modules",
27
28
  "LICENSE"
28
29
  ],
29
30
  "scripts": {