@aws-amplify/ui 5.7.1 → 5.8.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.
package/dist/theme.css CHANGED
@@ -110,6 +110,7 @@
110
110
  --amplify-components-button-padding-block-end: var(--amplify-components-fieldcontrol-padding-block-end);
111
111
  --amplify-components-button-padding-inline-start: var(--amplify-components-fieldcontrol-padding-inline-start);
112
112
  --amplify-components-button-padding-inline-end: var(--amplify-components-fieldcontrol-padding-inline-end);
113
+ --amplify-components-button-background-color: transparent;
113
114
  --amplify-components-button-border-color: var(--amplify-components-fieldcontrol-border-color);
114
115
  --amplify-components-button-border-width: var(--amplify-components-fieldcontrol-border-width);
115
116
  --amplify-components-button-border-style: var(--amplify-components-fieldcontrol-border-style);
@@ -527,6 +528,40 @@
527
528
  --amplify-components-divider-small-border-width: var(--amplify-border-widths-small);
528
529
  --amplify-components-divider-large-border-width: var(--amplify-border-widths-large);
529
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);
530
565
  --amplify-components-expander-display: block;
531
566
  --amplify-components-expander-background-color: var(--amplify-colors-background-primary);
532
567
  --amplify-components-expander-border-radius: var(--amplify-radii-medium);
@@ -621,6 +656,24 @@
621
656
  --amplify-components-fieldmessages-description-color: var(--amplify-colors-font-secondary);
622
657
  --amplify-components-fieldmessages-description-font-style: italic;
623
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);
624
677
  --amplify-components-fileuploader-dropzone-background-color: var(--amplify-colors-background-primary);
625
678
  --amplify-components-fileuploader-dropzone-border-radius: var(--amplify-radii-small);
626
679
  --amplify-components-fileuploader-dropzone-border-color: var(--amplify-colors-border-primary);
@@ -722,6 +775,10 @@
722
775
  --amplify-components-inappmessaging-dialog-width: 30vw;
723
776
  --amplify-components-inappmessaging-header-font-size: var(--amplify-font-sizes-medium);
724
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);
725
782
  --amplify-components-link-active-color: var(--amplify-colors-font-active);
726
783
  --amplify-components-link-color: var(--amplify-colors-font-interactive);
727
784
  --amplify-components-link-focus-color: var(--amplify-colors-font-focus);
@@ -771,6 +828,66 @@
771
828
  --amplify-components-menu-item-min-height: 2.5rem;
772
829
  --amplify-components-menu-item-padding-inline-start: var(--amplify-space-medium);
773
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;
774
891
  --amplify-components-pagination-current-align-items: center;
775
892
  --amplify-components-pagination-current-justify-content: center;
776
893
  --amplify-components-pagination-current-color: var(--amplify-colors-font-inverse);
@@ -1010,12 +1127,7 @@
1010
1127
  --amplify-components-storagemanager-previewer-body-padding-block: var(--amplify-space-medium);
1011
1128
  --amplify-components-storagemanager-previewer-body-padding-inline: var(--amplify-space-medium);
1012
1129
  --amplify-components-storagemanager-previewer-body-gap: var(--amplify-space-small);
1013
- --amplify-components-storagemanager-previewer-footer-border-color: var(--amplify-colors-border-secondary);
1014
- --amplify-components-storagemanager-previewer-footer-border-style: solid;
1015
- --amplify-components-storagemanager-previewer-footer-border-width: var(--amplify-border-widths-small);
1016
- --amplify-components-storagemanager-previewer-footer-padding-block: var(--amplify-space-medium);
1017
- --amplify-components-storagemanager-previewer-footer-padding-inline: var(--amplify-space-medium);
1018
- --amplify-components-storagemanager-previewer-footer-justify-content: space-between;
1130
+ --amplify-components-storagemanager-previewer-footer-justify-content: flex-end;
1019
1131
  --amplify-components-storagemanager-filelist-flex-direction: column;
1020
1132
  --amplify-components-storagemanager-filelist-gap: var(--amplify-space-small);
1021
1133
  --amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
@@ -1275,10 +1387,10 @@
1275
1387
  --amplify-colors-background-tertiary: var(--amplify-colors-neutral-20);
1276
1388
  --amplify-colors-background-quaternary: var(--amplify-colors-neutral-60);
1277
1389
  --amplify-colors-background-disabled: var(--amplify-colors-background-tertiary);
1278
- --amplify-colors-background-info: var(--amplify-colors-blue-20);
1279
- --amplify-colors-background-warning: var(--amplify-colors-orange-20);
1280
- --amplify-colors-background-error: var(--amplify-colors-red-20);
1281
- --amplify-colors-background-success: var(--amplify-colors-green-20);
1390
+ --amplify-colors-background-info: var(--amplify-colors-blue-10);
1391
+ --amplify-colors-background-warning: var(--amplify-colors-orange-10);
1392
+ --amplify-colors-background-error: var(--amplify-colors-red-10);
1393
+ --amplify-colors-background-success: var(--amplify-colors-green-10);
1282
1394
  --amplify-colors-border-primary: var(--amplify-colors-neutral-60);
1283
1395
  --amplify-colors-border-secondary: var(--amplify-colors-neutral-40);
1284
1396
  --amplify-colors-border-tertiary: var(--amplify-colors-neutral-20);
@@ -1286,6 +1398,9 @@
1286
1398
  --amplify-colors-border-pressed: var(--amplify-colors-brand-primary-100);
1287
1399
  --amplify-colors-border-focus: var(--amplify-colors-brand-primary-100);
1288
1400
  --amplify-colors-border-error: var(--amplify-colors-red-80);
1401
+ --amplify-colors-border-info: var(--amplify-colors-blue-80);
1402
+ --amplify-colors-border-success: var(--amplify-colors-green-80);
1403
+ --amplify-colors-border-warning: var(--amplify-colors-orange-80);
1289
1404
  --amplify-colors-shadow-primary: hsla(210, 50%, 10%, 0.25);
1290
1405
  --amplify-colors-shadow-secondary: hsla(210, 50%, 10%, 0.15);
1291
1406
  --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> & {
@@ -45,7 +45,7 @@ type OutlinedVariationTokens<Output> = {
45
45
  overlay?: ColorThemeTokens<Output>;
46
46
  };
47
47
  type ButtonSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
48
- export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
48
+ export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'backgroundColor' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
49
49
  _hover?: StateTokens<Output>;
50
50
  _focus?: StateWithShadowTokens<Output>;
51
51
  _active?: StateTokens<Output>;
@@ -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 {};
@@ -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.1",
3
+ "version": "5.8.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {