@aws-amplify/ui 5.7.2 → 5.8.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/theme.css CHANGED
@@ -528,6 +528,40 @@
528
528
  --amplify-components-divider-small-border-width: var(--amplify-border-widths-small);
529
529
  --amplify-components-divider-large-border-width: var(--amplify-border-widths-large);
530
530
  --amplify-components-divider-opacity: var(--amplify-opacities-60);
531
+ --amplify-components-dropzone-background-color: var(--amplify-colors-background-primary);
532
+ --amplify-components-dropzone-border-radius: var(--amplify-radii-small);
533
+ --amplify-components-dropzone-border-color: var(--amplify-colors-border-primary);
534
+ --amplify-components-dropzone-border-style: dashed;
535
+ --amplify-components-dropzone-border-width: var(--amplify-border-widths-small);
536
+ --amplify-components-dropzone-color: var(--amplify-colors-font-primary);
537
+ --amplify-components-dropzone-gap: var(--amplify-space-small);
538
+ --amplify-components-dropzone-padding-block: var(--amplify-space-xl);
539
+ --amplify-components-dropzone-padding-inline: var(--amplify-space-large);
540
+ --amplify-components-dropzone-text-align: center;
541
+ --amplify-components-dropzone-active-background-color: var(--amplify-colors-brand-primary-10);
542
+ --amplify-components-dropzone-active-border-radius: var(--amplify-components-dropzone-border-radius);
543
+ --amplify-components-dropzone-active-border-color: var(--amplify-colors-border-pressed);
544
+ --amplify-components-dropzone-active-border-style: var(--amplify-components-dropzone-border-style);
545
+ --amplify-components-dropzone-active-border-width: var(--amplify-components-dropzone-border-width);
546
+ --amplify-components-dropzone-active-color: var(--amplify-colors-font-primary);
547
+ --amplify-components-dropzone-disabled-background-color: var(--amplify-colors-background-disabled);
548
+ --amplify-components-dropzone-disabled-border-radius: var(--amplify-components-dropzone-border-radius);
549
+ --amplify-components-dropzone-disabled-border-color: var(--amplify-colors-border-disabled);
550
+ --amplify-components-dropzone-disabled-border-style: var(--amplify-components-dropzone-border-style);
551
+ --amplify-components-dropzone-disabled-border-width: var(--amplify-components-dropzone-border-width);
552
+ --amplify-components-dropzone-disabled-color: var(--amplify-colors-font-disabled);
553
+ --amplify-components-dropzone-accepted-background-color: var(--amplify-colors-background-success);
554
+ --amplify-components-dropzone-accepted-border-radius: var(--amplify-components-dropzone-border-radius);
555
+ --amplify-components-dropzone-accepted-border-color: var(--amplify-colors-border-success);
556
+ --amplify-components-dropzone-accepted-border-style: var(--amplify-components-dropzone-border-style);
557
+ --amplify-components-dropzone-accepted-border-width: var(--amplify-components-dropzone-border-width);
558
+ --amplify-components-dropzone-accepted-color: var(--amplify-colors-font-success);
559
+ --amplify-components-dropzone-rejected-background-color: var(--amplify-colors-background-error);
560
+ --amplify-components-dropzone-rejected-border-radius: var(--amplify-components-dropzone-border-radius);
561
+ --amplify-components-dropzone-rejected-border-color: var(--amplify-colors-border-pressed);
562
+ --amplify-components-dropzone-rejected-border-style: var(--amplify-components-dropzone-border-style);
563
+ --amplify-components-dropzone-rejected-border-width: var(--amplify-components-dropzone-border-width);
564
+ --amplify-components-dropzone-rejected-color: var(--amplify-colors-font-error);
531
565
  --amplify-components-expander-display: block;
532
566
  --amplify-components-expander-background-color: var(--amplify-colors-background-primary);
533
567
  --amplify-components-expander-border-radius: var(--amplify-radii-medium);
@@ -622,6 +656,24 @@
622
656
  --amplify-components-fieldmessages-description-color: var(--amplify-colors-font-secondary);
623
657
  --amplify-components-fieldmessages-description-font-style: italic;
624
658
  --amplify-components-fieldmessages-description-font-size: var(--amplify-font-sizes-small);
659
+ --amplify-components-fieldset-background-color: transparent;
660
+ --amplify-components-fieldset-border-radius: var(--amplify-radii-xs);
661
+ --amplify-components-fieldset-flex-direction: column;
662
+ --amplify-components-fieldset-gap: var(--amplify-components-field-gap);
663
+ --amplify-components-fieldset-legend-color: var(--amplify-colors-font-primary);
664
+ --amplify-components-fieldset-legend-font-size: var(--amplify-components-field-font-size);
665
+ --amplify-components-fieldset-legend-font-weight: var(--amplify-font-weights-bold);
666
+ --amplify-components-fieldset-legend-line-height: var(--amplify-line-heights-medium);
667
+ --amplify-components-fieldset-legend-small-font-size: var(--amplify-components-field-small-font-size);
668
+ --amplify-components-fieldset-legend-large-font-size: var(--amplify-components-field-large-font-size);
669
+ --amplify-components-fieldset-outlined-padding: var(--amplify-space-medium);
670
+ --amplify-components-fieldset-outlined-border-color: var(--amplify-colors-neutral-40);
671
+ --amplify-components-fieldset-outlined-border-width: var(--amplify-border-widths-small);
672
+ --amplify-components-fieldset-outlined-border-style: solid;
673
+ --amplify-components-fieldset-outlined-small-padding: var(--amplify-space-small);
674
+ --amplify-components-fieldset-outlined-large-padding: var(--amplify-space-large);
675
+ --amplify-components-fieldset-small-gap: var(--amplify-components-field-small-gap);
676
+ --amplify-components-fieldset-large-gap: var(--amplify-components-field-large-gap);
625
677
  --amplify-components-fileuploader-dropzone-background-color: var(--amplify-colors-background-primary);
626
678
  --amplify-components-fileuploader-dropzone-border-radius: var(--amplify-radii-small);
627
679
  --amplify-components-fileuploader-dropzone-border-color: var(--amplify-colors-border-primary);
@@ -723,6 +775,10 @@
723
775
  --amplify-components-inappmessaging-dialog-width: 30vw;
724
776
  --amplify-components-inappmessaging-header-font-size: var(--amplify-font-sizes-medium);
725
777
  --amplify-components-inappmessaging-header-font-weight: var(--amplify-font-weights-extrabold);
778
+ --amplify-components-input-color: var(--amplify-components-fieldcontrol-color);
779
+ --amplify-components-input-border-color: var(--amplify-components-fieldcontrol-border-color);
780
+ --amplify-components-input-font-size: var(--amplify-components-fieldcontrol-font-size);
781
+ --amplify-components-input-focus-border-color: var(--amplify-components-fieldcontrol-focus-border-color);
726
782
  --amplify-components-link-active-color: var(--amplify-colors-font-active);
727
783
  --amplify-components-link-color: var(--amplify-colors-font-interactive);
728
784
  --amplify-components-link-focus-color: var(--amplify-colors-font-focus);
@@ -772,6 +828,66 @@
772
828
  --amplify-components-menu-item-min-height: 2.5rem;
773
829
  --amplify-components-menu-item-padding-inline-start: var(--amplify-space-medium);
774
830
  --amplify-components-menu-item-padding-inline-end: var(--amplify-space-medium);
831
+ --amplify-components-message-align-items: center;
832
+ --amplify-components-message-background-color: var(--amplify-colors-background-tertiary);
833
+ --amplify-components-message-border-color: transparent;
834
+ --amplify-components-message-border-style: solid;
835
+ --amplify-components-message-border-width: var(--amplify-border-widths-small);
836
+ --amplify-components-message-border-radius: var(--amplify-radii-xs);
837
+ --amplify-components-message-color: var(--amplify-colors-font-primary);
838
+ --amplify-components-message-justify-content: flex-start;
839
+ --amplify-components-message-padding-block: var(--amplify-space-small);
840
+ --amplify-components-message-padding-inline: var(--amplify-space-medium);
841
+ --amplify-components-message-line-height: var(--amplify-line-heights-small);
842
+ --amplify-components-message-icon-size: var(--amplify-font-sizes-xl);
843
+ --amplify-components-message-heading-font-size: var(--amplify-font-sizes-medium);
844
+ --amplify-components-message-heading-font-weight: var(--amplify-font-weights-bold);
845
+ --amplify-components-message-dismiss-gap: var(--amplify-space-xxs);
846
+ --amplify-components-message-plain-color: var(--amplify-colors-font-primary);
847
+ --amplify-components-message-plain-background-color: var(--amplify-colors-background-primary);
848
+ --amplify-components-message-plain-border-color: transparent;
849
+ --amplify-components-message-plain-info-color: var(--amplify-colors-font-info);
850
+ --amplify-components-message-plain-info-background-color: var(--amplify-colors-background-primary);
851
+ --amplify-components-message-plain-info-border-color: transparent;
852
+ --amplify-components-message-plain-error-color: var(--amplify-colors-font-error);
853
+ --amplify-components-message-plain-error-background-color: var(--amplify-colors-background-primary);
854
+ --amplify-components-message-plain-error-border-color: transparent;
855
+ --amplify-components-message-plain-success-color: var(--amplify-colors-font-success);
856
+ --amplify-components-message-plain-success-background-color: var(--amplify-colors-background-primary);
857
+ --amplify-components-message-plain-success-border-color: transparent;
858
+ --amplify-components-message-plain-warning-color: var(--amplify-colors-font-warning);
859
+ --amplify-components-message-plain-warning-background-color: var(--amplify-colors-background-primary);
860
+ --amplify-components-message-plain-warning-border-color: transparent;
861
+ --amplify-components-message-outlined-color: var(--amplify-colors-font-primary);
862
+ --amplify-components-message-outlined-background-color: var(--amplify-colors-background-primary);
863
+ --amplify-components-message-outlined-border-color: var(--amplify-colors-border-primary);
864
+ --amplify-components-message-outlined-info-color: var(--amplify-colors-font-info);
865
+ --amplify-components-message-outlined-info-background-color: var(--amplify-colors-background-primary);
866
+ --amplify-components-message-outlined-info-border-color: var(--amplify-colors-border-info);
867
+ --amplify-components-message-outlined-error-color: var(--amplify-colors-font-error);
868
+ --amplify-components-message-outlined-error-background-color: var(--amplify-colors-background-primary);
869
+ --amplify-components-message-outlined-error-border-color: var(--amplify-colors-border-error);
870
+ --amplify-components-message-outlined-success-color: var(--amplify-colors-font-success);
871
+ --amplify-components-message-outlined-success-background-color: var(--amplify-colors-background-primary);
872
+ --amplify-components-message-outlined-success-border-color: var(--amplify-colors-border-success);
873
+ --amplify-components-message-outlined-warning-color: var(--amplify-colors-font-warning);
874
+ --amplify-components-message-outlined-warning-background-color: var(--amplify-colors-background-primary);
875
+ --amplify-components-message-outlined-warning-border-color: var(--amplify-colors-border-warning);
876
+ --amplify-components-message-filled-color: var(--amplify-colors-font-primary);
877
+ --amplify-components-message-filled-background-color: var(--amplify-colors-background-secondary);
878
+ --amplify-components-message-filled-border-color: transparent;
879
+ --amplify-components-message-filled-info-color: var(--amplify-colors-font-info);
880
+ --amplify-components-message-filled-info-background-color: var(--amplify-colors-background-info);
881
+ --amplify-components-message-filled-info-border-color: transparent;
882
+ --amplify-components-message-filled-error-color: var(--amplify-colors-font-error);
883
+ --amplify-components-message-filled-error-background-color: var(--amplify-colors-background-error);
884
+ --amplify-components-message-filled-error-border-color: transparent;
885
+ --amplify-components-message-filled-success-color: var(--amplify-colors-font-success);
886
+ --amplify-components-message-filled-success-background-color: var(--amplify-colors-background-success);
887
+ --amplify-components-message-filled-success-border-color: transparent;
888
+ --amplify-components-message-filled-warning-color: var(--amplify-colors-font-warning);
889
+ --amplify-components-message-filled-warning-background-color: var(--amplify-colors-background-warning);
890
+ --amplify-components-message-filled-warning-border-color: transparent;
775
891
  --amplify-components-pagination-current-align-items: center;
776
892
  --amplify-components-pagination-current-justify-content: center;
777
893
  --amplify-components-pagination-current-color: var(--amplify-colors-font-inverse);
@@ -881,7 +997,11 @@
881
997
  --amplify-components-searchfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
882
998
  --amplify-components-searchfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
883
999
  --amplify-components-searchfield-button-hover-color: var(--amplify-components-button-hover-color);
1000
+ --amplify-components-select-color: var(--amplify-components-fieldcontrol-color);
1001
+ --amplify-components-select-background-color: var(--amplify-colors-background-primary);
884
1002
  --amplify-components-select-padding-inline-end: var(--amplify-space-xxl);
1003
+ --amplify-components-select-disabled-color: var(--amplify-colors-font-disabled);
1004
+ --amplify-components-select-disabled-background-color: var(--amplify-colors-background-disabled);
885
1005
  --amplify-components-select-wrapper-flex: 1;
886
1006
  --amplify-components-select-wrapper-display: block;
887
1007
  --amplify-components-select-wrapper-position: relative;
@@ -894,15 +1014,20 @@
894
1014
  --amplify-components-select-icon-wrapper-pointer-events: none;
895
1015
  --amplify-components-select-icon-wrapper-small-right: var(--amplify-space-xs);
896
1016
  --amplify-components-select-icon-wrapper-large-right: var(--amplify-space-medium);
897
- --amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
1017
+ --amplify-components-select-option-background-color: transparent;
898
1018
  --amplify-components-select-option-color: var(--amplify-colors-font-primary);
899
1019
  --amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
1020
+ --amplify-components-select-option-disabled-background-color: transparent;
900
1021
  --amplify-components-select-white-space: nowrap;
901
1022
  --amplify-components-select-min-width: 6.5rem;
902
1023
  --amplify-components-select-small-min-width: 5.5rem;
903
1024
  --amplify-components-select-small-padding-inline-end: var(--amplify-space-xl);
904
1025
  --amplify-components-select-large-min-width: 7.5rem;
905
1026
  --amplify-components-select-large-padding-inline-end: var(--amplify-space-xxl);
1027
+ --amplify-components-select-expanded-padding-block: var(--amplify-space-xs);
1028
+ --amplify-components-select-expanded-padding-inline: var(--amplify-space-small);
1029
+ --amplify-components-select-expanded-option-padding-block: var(--amplify-space-xs);
1030
+ --amplify-components-select-expanded-option-padding-inline: var(--amplify-space-small);
906
1031
  --amplify-components-selectfield-border-color: var(--amplify-components-fieldcontrol-border-color);
907
1032
  --amplify-components-selectfield-color: var(--amplify-components-fieldcontrol-color);
908
1033
  --amplify-components-selectfield-flex-direction: column;
@@ -1011,12 +1136,7 @@
1011
1136
  --amplify-components-storagemanager-previewer-body-padding-block: var(--amplify-space-medium);
1012
1137
  --amplify-components-storagemanager-previewer-body-padding-inline: var(--amplify-space-medium);
1013
1138
  --amplify-components-storagemanager-previewer-body-gap: var(--amplify-space-small);
1014
- --amplify-components-storagemanager-previewer-footer-border-color: var(--amplify-colors-border-secondary);
1015
- --amplify-components-storagemanager-previewer-footer-border-style: solid;
1016
- --amplify-components-storagemanager-previewer-footer-border-width: var(--amplify-border-widths-small);
1017
- --amplify-components-storagemanager-previewer-footer-padding-block: var(--amplify-space-medium);
1018
- --amplify-components-storagemanager-previewer-footer-padding-inline: var(--amplify-space-medium);
1019
- --amplify-components-storagemanager-previewer-footer-justify-content: space-between;
1139
+ --amplify-components-storagemanager-previewer-footer-justify-content: flex-end;
1020
1140
  --amplify-components-storagemanager-filelist-flex-direction: column;
1021
1141
  --amplify-components-storagemanager-filelist-gap: var(--amplify-space-small);
1022
1142
  --amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
@@ -1276,10 +1396,10 @@
1276
1396
  --amplify-colors-background-tertiary: var(--amplify-colors-neutral-20);
1277
1397
  --amplify-colors-background-quaternary: var(--amplify-colors-neutral-60);
1278
1398
  --amplify-colors-background-disabled: var(--amplify-colors-background-tertiary);
1279
- --amplify-colors-background-info: var(--amplify-colors-blue-20);
1280
- --amplify-colors-background-warning: var(--amplify-colors-orange-20);
1281
- --amplify-colors-background-error: var(--amplify-colors-red-20);
1282
- --amplify-colors-background-success: var(--amplify-colors-green-20);
1399
+ --amplify-colors-background-info: var(--amplify-colors-blue-10);
1400
+ --amplify-colors-background-warning: var(--amplify-colors-orange-10);
1401
+ --amplify-colors-background-error: var(--amplify-colors-red-10);
1402
+ --amplify-colors-background-success: var(--amplify-colors-green-10);
1283
1403
  --amplify-colors-border-primary: var(--amplify-colors-neutral-60);
1284
1404
  --amplify-colors-border-secondary: var(--amplify-colors-neutral-40);
1285
1405
  --amplify-colors-border-tertiary: var(--amplify-colors-neutral-20);
@@ -1287,6 +1407,9 @@
1287
1407
  --amplify-colors-border-pressed: var(--amplify-colors-brand-primary-100);
1288
1408
  --amplify-colors-border-focus: var(--amplify-colors-brand-primary-100);
1289
1409
  --amplify-colors-border-error: var(--amplify-colors-red-80);
1410
+ --amplify-colors-border-info: var(--amplify-colors-blue-80);
1411
+ --amplify-colors-border-success: var(--amplify-colors-green-80);
1412
+ --amplify-colors-border-warning: var(--amplify-colors-orange-80);
1290
1413
  --amplify-colors-shadow-primary: hsla(210, 50%, 10%, 0.25);
1291
1414
  --amplify-colors-shadow-secondary: hsla(210, 50%, 10%, 0.15);
1292
1415
  --amplify-colors-shadow-tertiary: hsla(210, 50%, 10%, 0.05);
@@ -22,7 +22,7 @@ type StateVariantKey<Platform> = Platform extends 'react-native' ? ReactNativeSt
22
22
  type BrandVariantKey = Extract<OrderVariantKey, 'primary' | 'secondary'>;
23
23
  type FontVariantKey<Output, Platform> = 'inverse' | 'interactive' | Extract<StateVariantKey<Platform>, 'active' | 'disabled' | 'hover' | 'focus'> | OrderVariantKey<Output> | InformationVariantKey;
24
24
  type BackgroundColorKey<Platform> = Extract<StateVariantKey<Platform>, 'disabled'> | OrderVariantKey | InformationVariantKey | 'quaternary';
25
- type BorderColorKey<Output, Platform> = Extract<StateVariantKey<Platform>, 'disabled' | 'error'> | OrderVariantKey<Output> | (Output extends 'default' ? Exclude<StateVariantKey<Platform>, 'active' | 'hover'> : StateVariantKey<Platform>);
25
+ type BorderColorKey<Output, Platform> = Extract<StateVariantKey<Platform>, 'disabled'> | OrderVariantKey<Output> | InformationVariantKey | (Output extends 'default' ? Exclude<StateVariantKey<Platform>, 'active' | 'hover'> : StateVariantKey<Platform>);
26
26
  type PaletteValues<Output, Platform> = ColorValueScale<ColorPaletteKey, Output, Platform>;
27
27
  type GreyscaleColors<Output, Platform> = ColorValues<GreyscalePaletteKey, Output, Platform>;
28
28
  type BaseColors<Output extends OutputVariantKey = unknown, Platform = unknown> = PaletteValues<Output, Platform> & GreyscaleColors<Output, Platform> & {
@@ -0,0 +1,10 @@
1
+ import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
2
+ type BaseDropZoneTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'color', OutputType>;
3
+ export type DropZoneTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<'gap' | 'paddingBlock' | 'paddingInline' | 'textAlign', OutputType> & BaseDropZoneTokens<OutputType> & {
4
+ _active?: BaseDropZoneTokens<OutputType>;
5
+ _disabled?: BaseDropZoneTokens<OutputType>;
6
+ accepted?: BaseDropZoneTokens<OutputType>;
7
+ rejected?: BaseDropZoneTokens<OutputType>;
8
+ };
9
+ export declare const dropzone: Required<DropZoneTokens<'default'>>;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
2
+ export type FieldsetSizeTokens<Output> = DesignTokenProperties<'gap', Output>;
3
+ export type FieldsetOutlinedTokens<Output> = DesignTokenProperties<'padding' | 'borderColor' | 'borderWidth' | 'borderStyle', Output> & {
4
+ small?: DesignTokenProperties<'padding', Output>;
5
+ large?: DesignTokenProperties<'padding', Output>;
6
+ };
7
+ export type FieldsetLegendTokens<Output> = DesignTokenProperties<'fontSize' | 'color' | 'fontWeight' | 'lineHeight', Output> & {
8
+ small?: DesignTokenProperties<'fontSize', Output>;
9
+ large?: DesignTokenProperties<'fontSize', Output>;
10
+ };
11
+ export type FieldsetTokens<Output extends OutputVariantKey> = DesignTokenProperties<'backgroundColor' | 'gap' | 'flexDirection' | 'borderRadius', Output> & {
12
+ legend?: FieldsetLegendTokens<Output>;
13
+ outlined?: FieldsetOutlinedTokens<Output>;
14
+ small?: FieldsetSizeTokens<Output>;
15
+ large?: FieldsetSizeTokens<Output>;
16
+ };
17
+ export declare const fieldset: Required<FieldsetTokens<'default'>>;
@@ -11,22 +11,26 @@ import { CollectionTokens } from './collection';
11
11
  import { CopyTokens } from './copy';
12
12
  import { DialCodeSelectTokens } from './dialCodeSelect';
13
13
  import { DividerTokens } from './divider';
14
+ import { DropZoneTokens } from './dropZone';
14
15
  import { ExpanderTokens } from './expander';
15
16
  import { FieldTokens } from './field';
16
17
  import { FieldControlTokens } from './fieldControl';
17
18
  import { FieldGroupTokens } from './fieldGroup';
19
+ import { FieldsetTokens } from './fieldset';
18
20
  import { FieldMessagesTokens } from './fieldMessages';
19
21
  import { FileUploaderTokens } from './fileUploader';
20
22
  import { FlexTokens } from './flex';
21
23
  import { HeadingTokens } from './heading';
22
24
  import { HighlightMatchTokens } from './highlightMatch';
23
25
  import { IconTokens } from './icon';
26
+ import { InputTokens } from './input';
24
27
  import { ImageTokens } from './image';
25
28
  import { InAppMessagingTokens } from './inAppMessaging';
26
29
  import { LinkTokens } from './link';
27
30
  import { LivenessTokens } from './liveness';
28
31
  import { LoaderTokens } from './loader';
29
32
  import { MenuTokens } from './menu';
33
+ import { MessageTokens } from './message';
30
34
  import { PaginationTokens } from './pagination';
31
35
  import { PasswordFieldTokens } from './passwordField';
32
36
  import { PhoneNumberFieldTokens } from './phoneNumberField';
@@ -63,8 +67,10 @@ type BaseComponentTokens<Output extends OutputVariantKey> = {
63
67
  copy?: CopyTokens<Output>;
64
68
  countrycodeselect?: DialCodeSelectTokens<Output>;
65
69
  divider?: DividerTokens<Output>;
70
+ dropzone?: DropZoneTokens<Output>;
66
71
  expander?: ExpanderTokens<Output>;
67
72
  field?: FieldTokens<Output>;
73
+ fieldset?: FieldsetTokens<Output>;
68
74
  fieldcontrol?: FieldControlTokens<Output>;
69
75
  fieldgroup?: FieldGroupTokens<Output>;
70
76
  fieldmessages?: FieldMessagesTokens<Output>;
@@ -75,10 +81,12 @@ type BaseComponentTokens<Output extends OutputVariantKey> = {
75
81
  icon?: IconTokens<Output>;
76
82
  image?: ImageTokens<Output>;
77
83
  inappmessaging?: InAppMessagingTokens<Output>;
84
+ input?: InputTokens<Output>;
78
85
  link?: LinkTokens<Output>;
79
86
  liveness?: LivenessTokens<Output>;
80
87
  loader?: LoaderTokens<Output>;
81
88
  menu?: MenuTokens<Output>;
89
+ message?: MessageTokens<Output>;
82
90
  pagination?: PaginationTokens<Output>;
83
91
  passwordfield?: PasswordFieldTokens<Output>;
84
92
  phonenumberfield?: PhoneNumberFieldTokens<Output>;
@@ -0,0 +1,5 @@
1
+ import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
2
+ export type InputTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'borderColor' | 'fontSize', Output> & {
3
+ _focus?: DesignTokenProperties<'borderColor', Output>;
4
+ };
5
+ export declare const input: Required<InputTokens<'default'>>;
@@ -0,0 +1,19 @@
1
+ import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
2
+ type MessageColorThemeTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color' | 'borderColor', OutputType>;
3
+ type MessageVariationTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color' | 'borderColor', OutputType> & {
4
+ info?: MessageColorThemeTokens<OutputType>;
5
+ error?: MessageColorThemeTokens<OutputType>;
6
+ warning?: MessageColorThemeTokens<OutputType>;
7
+ success?: MessageColorThemeTokens<OutputType>;
8
+ };
9
+ type MessageTokenKey = 'alignItems' | 'justifyContent' | 'color' | 'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'lineHeight' | 'paddingBlock' | 'paddingInline';
10
+ export type MessageTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<MessageTokenKey, OutputType> & {
11
+ icon?: DesignTokenProperties<'size', OutputType>;
12
+ heading?: DesignTokenProperties<'fontSize' | 'fontWeight', OutputType>;
13
+ dismiss?: DesignTokenProperties<'gap', OutputType>;
14
+ plain?: MessageVariationTokens<OutputType>;
15
+ outlined?: MessageVariationTokens<OutputType>;
16
+ filled?: MessageVariationTokens<OutputType>;
17
+ };
18
+ export declare const message: Required<MessageTokens<'default'>>;
19
+ export {};
@@ -4,14 +4,18 @@ type SelectIconWrapperTokens<Output> = DesignTokenProperties<'alignItems' | 'pos
4
4
  small?: DesignTokenProperties<'right', Output>;
5
5
  large?: DesignTokenProperties<'right', Output>;
6
6
  };
7
- export type SelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'paddingInlineEnd' | 'whiteSpace' | 'minWidth', Output> & {
7
+ export type SelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'backgroundColor' | 'color' | 'paddingInlineEnd' | 'whiteSpace' | 'minWidth', Output> & {
8
8
  wrapper?: DesignTokenProperties<'cursor' | 'display' | 'flex' | 'position', Output>;
9
9
  iconWrapper?: SelectIconWrapperTokens<Output>;
10
10
  option?: DesignTokenProperties<'backgroundColor' | 'color', Output> & {
11
- _disabled?: DesignTokenProperties<'color', Output>;
11
+ _disabled?: DesignTokenProperties<'color' | 'backgroundColor', Output>;
12
12
  };
13
13
  small?: SelectSizeTokens<Output>;
14
14
  large?: SelectSizeTokens<Output>;
15
+ expanded?: DesignTokenProperties<'paddingBlock' | 'paddingInline', Output> & {
16
+ option?: DesignTokenProperties<'paddingBlock' | 'paddingInline', Output>;
17
+ };
18
+ _disabled?: DesignTokenProperties<'backgroundColor' | 'color', Output>;
15
19
  };
16
20
  export declare const select: Required<SelectTokens<'default'>>;
17
21
  export {};
@@ -1,6 +1,9 @@
1
1
  import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
2
2
  import { FileUploaderTokens } from './fileUploader';
3
- export interface StorageManagerTokens<OutputType extends OutputVariantKey> extends Omit<FileUploaderTokens<OutputType>, 'body' | 'footer'> {
3
+ export interface StorageManagerTokens<OutputType extends OutputVariantKey> extends Omit<FileUploaderTokens<OutputType>, 'body' | 'previewer'> {
4
4
  filelist?: DesignTokenProperties<'flexDirection' | 'gap'>;
5
+ previewer?: {
6
+ footer?: DesignTokenProperties<'justifyContent', OutputType>;
7
+ };
5
8
  }
6
9
  export declare const storagemanager: Required<StorageManagerTokens<'default'>>;
@@ -36,6 +36,7 @@ export declare enum ComponentClassName {
36
36
  DialCodeSelect = "amplify-dialcodeselect",
37
37
  Divider = "amplify-divider",
38
38
  DividerLabel = "amplify-divider--label",
39
+ DropZone = "amplify-dropzone",
39
40
  Expander = "amplify-expander",
40
41
  ExpanderContent = "amplify-expander__content",
41
42
  ExpanderContentText = "amplify-expander__content__text",
@@ -58,6 +59,8 @@ export declare enum ComponentClassName {
58
59
  FieldGroupHasInnerStart = "amplify-field-group--has-inner-start",
59
60
  FieldShowPassword = "amplify-field__show-password",
60
61
  FieldGroupFieldWrapper = "amplify-field-group__field-wrapper",
62
+ Fieldset = "amplify-fieldset",
63
+ FieldsetLegend = "amplify-fieldset__legend",
61
64
  FileUploaderDropZone = "amplify-fileuploader__dropzone",
62
65
  FileUploaderDropZoneIcon = "amplify-fileuploader__dropzone__icon",
63
66
  FileUploaderDropZoneText = "amplify-fileuploader__dropzone__text",
@@ -93,6 +96,12 @@ export declare enum ComponentClassName {
93
96
  MenuContentWrapper = "amplify-menu-content-wrapper",
94
97
  MenuItem = "amplify-menu-content__item",
95
98
  MenuTrigger = "amplify-menu-trigger",
99
+ Message = "amplify-message",
100
+ MessageIcon = "amplify-message__icon",
101
+ MessageHeading = "amplify-message__heading",
102
+ MessageBody = "amplify-message__body",
103
+ MessageContent = "amplify-message__content",
104
+ MessageDismiss = "amplify-message__dismiss",
96
105
  Pagination = "amplify-pagination",
97
106
  PaginationItemButton = "amplify-pagination__item-button",
98
107
  PaginationItemCurrent = "amplify-pagination__item-current",
@@ -144,6 +153,8 @@ export declare enum ComponentClassName {
144
153
  StorageManagerLoader = "amplify-storagemanager__loader",
145
154
  StorageManagerPreviewer = "amplify-storagemanager__previewer",
146
155
  StorageManagerPreviewerText = "amplify-storagemanager__previewer__text",
156
+ StorageManagerPreviewerActions = "amplify-storagemanager__previewer__actions",
157
+ StorageManagerPreviewerFooter = "amplify-storagemanager__previewer__footer",
147
158
  SwitchField = "amplify-switchfield",
148
159
  SwitchLabel = "amplify-switch-label",
149
160
  SwitchThumb = "amplify-switch-thumb",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "5.7.2",
3
+ "version": "5.8.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {