@aws-amplify/ui-react 6.1.0 → 6.1.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.
@@ -864,21 +864,21 @@ const IconWarning = (props) => {
864
864
  /**
865
865
  * @internal For internal Amplify UI use only. May be removed in a future release.
866
866
  */
867
- const AlertIcon = ({ variation, ariaHidden, }) => {
867
+ const AlertIcon = ({ variation, ariaHidden, ariaLabel, role, }) => {
868
868
  const icons = useIcons('alert');
869
869
  let icon;
870
870
  switch (variation) {
871
871
  case 'info':
872
- icon = icons?.info ?? React__namespace.createElement(IconInfo, { "aria-hidden": ariaHidden });
872
+ icon = icons?.info ?? (React__namespace.createElement(IconInfo, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
873
873
  break;
874
874
  case 'error':
875
- icon = icons?.error ?? React__namespace.createElement(IconError, { "aria-hidden": ariaHidden });
875
+ icon = icons?.error ?? (React__namespace.createElement(IconError, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
876
876
  break;
877
877
  case 'warning':
878
- icon = icons?.warning ?? React__namespace.createElement(IconWarning, { "aria-hidden": ariaHidden });
878
+ icon = icons?.warning ?? (React__namespace.createElement(IconWarning, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
879
879
  break;
880
880
  case 'success':
881
- icon = icons?.success ?? React__namespace.createElement(IconCheckCircle, { "aria-hidden": ariaHidden });
881
+ icon = icons?.success ?? (React__namespace.createElement(IconCheckCircle, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
882
882
  break;
883
883
  }
884
884
  return icon ? (React__namespace.createElement("span", { className: ui.ComponentClassName.AlertIcon }, icon)) : null;
@@ -12,21 +12,21 @@ import { IconWarning } from '../Icon/icons/IconWarning.mjs';
12
12
  /**
13
13
  * @internal For internal Amplify UI use only. May be removed in a future release.
14
14
  */
15
- const AlertIcon = ({ variation, ariaHidden, }) => {
15
+ const AlertIcon = ({ variation, ariaHidden, ariaLabel, role, }) => {
16
16
  const icons = useIcons('alert');
17
17
  let icon;
18
18
  switch (variation) {
19
19
  case 'info':
20
- icon = icons?.info ?? React.createElement(IconInfo, { "aria-hidden": ariaHidden });
20
+ icon = icons?.info ?? (React.createElement(IconInfo, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
21
21
  break;
22
22
  case 'error':
23
- icon = icons?.error ?? React.createElement(IconError, { "aria-hidden": ariaHidden });
23
+ icon = icons?.error ?? (React.createElement(IconError, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
24
24
  break;
25
25
  case 'warning':
26
- icon = icons?.warning ?? React.createElement(IconWarning, { "aria-hidden": ariaHidden });
26
+ icon = icons?.warning ?? (React.createElement(IconWarning, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
27
27
  break;
28
28
  case 'success':
29
- icon = icons?.success ?? React.createElement(IconCheckCircle, { "aria-hidden": ariaHidden });
29
+ icon = icons?.success ?? (React.createElement(IconCheckCircle, { "aria-hidden": ariaHidden, "aria-label": ariaLabel, role: role }));
30
30
  break;
31
31
  }
32
32
  return icon ? (React.createElement("span", { className: ComponentClassName.AlertIcon }, icon)) : null;
@@ -1,3 +1,3 @@
1
- const VERSION = '6.1.0';
1
+ const VERSION = '6.1.1';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var isEqual = require('lodash/isEqual.js');
7
7
  var uiReactCore = require('@aws-amplify/ui-react-core');
8
8
  var ui = require('@aws-amplify/ui');
9
- var Field = require('./Field-0ebfe8d5.js');
9
+ var Field = require('./Field-e99a3ed1.js');
10
10
  require('aws-amplify/storage');
11
11
  var debounce = require('lodash/debounce.js');
12
12
  var Dropdown = require('@radix-ui/react-dropdown-menu');
@@ -2383,7 +2383,7 @@ const defaultDeleteUserDisplayText = {
2383
2383
  warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
2384
2384
  };
2385
2385
 
2386
- const VERSION = '6.1.0';
2386
+ const VERSION = '6.1.1';
2387
2387
 
2388
2388
  const logger$2 = ui.getLogger('AccountSettings');
2389
2389
  const getIsDisabled = (formValues, validationError) => {
package/dist/internal.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Field = require('./Field-0ebfe8d5.js');
5
+ var Field = require('./Field-e99a3ed1.js');
6
6
  var React = require('react');
7
7
  var Storage = require('aws-amplify/storage');
8
8
  var ui = require('@aws-amplify/ui');
@@ -5,6 +5,12 @@
5
5
  right: var(--amplify-space-medium);
6
6
  }
7
7
 
8
+ .liveness-detector .amplify-button--primary:focus {
9
+ box-shadow: unset;
10
+ outline: var(--amplify-components-button-focus-color) solid 2px;
11
+ outline-offset: 2px;
12
+ }
13
+
8
14
  .amplify-liveness-cancel-button {
9
15
  background-color: #fff;
10
16
  color: hsl(190, 95%, 30%);
@@ -39,6 +45,7 @@
39
45
  left: 0;
40
46
  height: 100%;
41
47
  width: 100%;
48
+ z-index: 2;
42
49
  }
43
50
 
44
51
  .amplify-liveness-video {
@@ -108,7 +115,7 @@
108
115
  }
109
116
 
110
117
  .amplify-liveness-instruction-overlay {
111
- z-index: 1;
118
+ z-index: 2;
112
119
  }
113
120
 
114
121
  .amplify-liveness-countdown-container {
@@ -342,6 +349,10 @@
342
349
  font-weight: var(--amplify-font-weights-bold);
343
350
  }
344
351
 
352
+ .amplify-liveness-hint--mobile {
353
+ margin-top: var(--amplify-space-xxxl);
354
+ }
355
+
345
356
  .amplify-liveness-hint__text {
346
357
  align-items: center;
347
358
  gap: var(--amplify-space-xs);
@@ -419,5 +430,6 @@
419
430
  flex-direction: column;
420
431
  align-items: center;
421
432
  justify-content: center;
433
+ text-align: center;
422
434
  height: 480px;
423
435
  }
@@ -6,6 +6,12 @@
6
6
  right: var(--amplify-space-medium);
7
7
  }
8
8
 
9
+ .liveness-detector .amplify-button--primary:focus {
10
+ box-shadow: unset;
11
+ outline: var(--amplify-components-button-focus-color) solid 2px;
12
+ outline-offset: 2px;
13
+ }
14
+
9
15
  .amplify-liveness-cancel-button {
10
16
  background-color: #fff;
11
17
  color: hsl(190, 95%, 30%);
@@ -40,6 +46,7 @@
40
46
  left: 0;
41
47
  height: 100%;
42
48
  width: 100%;
49
+ z-index: 2;
43
50
  }
44
51
 
45
52
  .amplify-liveness-video {
@@ -109,7 +116,7 @@
109
116
  }
110
117
 
111
118
  .amplify-liveness-instruction-overlay {
112
- z-index: 1;
119
+ z-index: 2;
113
120
  }
114
121
 
115
122
  .amplify-liveness-countdown-container {
@@ -343,6 +350,10 @@
343
350
  font-weight: var(--amplify-font-weights-bold);
344
351
  }
345
352
 
353
+ .amplify-liveness-hint--mobile {
354
+ margin-top: var(--amplify-space-xxxl);
355
+ }
356
+
346
357
  .amplify-liveness-hint__text {
347
358
  align-items: center;
348
359
  gap: var(--amplify-space-xs);
@@ -420,6 +431,7 @@
420
431
  flex-direction: column;
421
432
  align-items: center;
422
433
  justify-content: center;
434
+ text-align: center;
423
435
  height: 480px;
424
436
  }
425
437
  }
@@ -80,6 +80,9 @@
80
80
  var(--amplify-components-table-header-border-width)
81
81
  var(--amplify-components-table-header-border-width);
82
82
  }
83
+ .amplify-table--striped .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
84
+ background-color: var(--amplify-components-table-row-striped-background-color);
85
+ }
83
86
  .amplify-table__caption {
84
87
  caption-side: var(--amplify-components-table-caption-caption-side);
85
88
  color: var(--amplify-components-table-caption-color);
@@ -138,9 +141,6 @@
138
141
  .amplify-table__td:last-child {
139
142
  border-right-width: var(--amplify-components-table-data-border-width);
140
143
  }
141
- .amplify-table[data-variation=striped] .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
142
- background-color: var(--amplify-components-table-row-striped-background-color);
143
- }
144
144
  .amplify-table[data-highlightonhover=true] .amplify-table__row:not(.amplify-table__head *):hover {
145
145
  background-color: var(--amplify-components-table-row-hover-background-color);
146
146
  }
@@ -81,6 +81,9 @@
81
81
  var(--amplify-components-table-header-border-width)
82
82
  var(--amplify-components-table-header-border-width);
83
83
  }
84
+ .amplify-table--striped .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
85
+ background-color: var(--amplify-components-table-row-striped-background-color);
86
+ }
84
87
  .amplify-table__caption {
85
88
  caption-side: var(--amplify-components-table-caption-caption-side);
86
89
  color: var(--amplify-components-table-caption-color);
@@ -139,9 +142,6 @@
139
142
  .amplify-table__td:last-child {
140
143
  border-right-width: var(--amplify-components-table-data-border-width);
141
144
  }
142
- .amplify-table[data-variation=striped] .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
143
- background-color: var(--amplify-components-table-row-striped-background-color);
144
- }
145
145
  .amplify-table[data-highlightonhover=true] .amplify-table__row:not(.amplify-table__head *):hover {
146
146
  background-color: var(--amplify-components-table-row-hover-background-color);
147
147
  }
package/dist/styles.css CHANGED
@@ -3911,6 +3911,12 @@ html[dir=rtl] .amplify-field-group__inner-start {
3911
3911
  right: var(--amplify-space-medium);
3912
3912
  }
3913
3913
 
3914
+ .liveness-detector .amplify-button--primary:focus {
3915
+ box-shadow: unset;
3916
+ outline: var(--amplify-components-button-focus-color) solid 2px;
3917
+ outline-offset: 2px;
3918
+ }
3919
+
3914
3920
  .amplify-liveness-cancel-button {
3915
3921
  background-color: #fff;
3916
3922
  color: hsl(190, 95%, 30%);
@@ -3945,6 +3951,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
3945
3951
  left: 0;
3946
3952
  height: 100%;
3947
3953
  width: 100%;
3954
+ z-index: 2;
3948
3955
  }
3949
3956
 
3950
3957
  .amplify-liveness-video {
@@ -4014,7 +4021,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4014
4021
  }
4015
4022
 
4016
4023
  .amplify-liveness-instruction-overlay {
4017
- z-index: 1;
4024
+ z-index: 2;
4018
4025
  }
4019
4026
 
4020
4027
  .amplify-liveness-countdown-container {
@@ -4248,6 +4255,10 @@ html[dir=rtl] .amplify-field-group__inner-start {
4248
4255
  font-weight: var(--amplify-font-weights-bold);
4249
4256
  }
4250
4257
 
4258
+ .amplify-liveness-hint--mobile {
4259
+ margin-top: var(--amplify-space-xxxl);
4260
+ }
4261
+
4251
4262
  .amplify-liveness-hint__text {
4252
4263
  align-items: center;
4253
4264
  gap: var(--amplify-space-xs);
@@ -4325,6 +4336,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4325
4336
  flex-direction: column;
4326
4337
  align-items: center;
4327
4338
  justify-content: center;
4339
+ text-align: center;
4328
4340
  height: 480px;
4329
4341
  }
4330
4342
 
@@ -5327,6 +5339,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
5327
5339
  var(--amplify-components-table-header-border-width)
5328
5340
  var(--amplify-components-table-header-border-width);
5329
5341
  }
5342
+ .amplify-table--striped .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
5343
+ background-color: var(--amplify-components-table-row-striped-background-color);
5344
+ }
5330
5345
  .amplify-table__caption {
5331
5346
  caption-side: var(--amplify-components-table-caption-caption-side);
5332
5347
  color: var(--amplify-components-table-caption-color);
@@ -5385,9 +5400,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
5385
5400
  .amplify-table__td:last-child {
5386
5401
  border-right-width: var(--amplify-components-table-data-border-width);
5387
5402
  }
5388
- .amplify-table[data-variation=striped] .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
5389
- background-color: var(--amplify-components-table-row-striped-background-color);
5390
- }
5391
5403
  .amplify-table[data-highlightonhover=true] .amplify-table__row:not(.amplify-table__head *):hover {
5392
5404
  background-color: var(--amplify-components-table-row-hover-background-color);
5393
5405
  }
@@ -3912,6 +3912,12 @@ html[dir=rtl] .amplify-field-group__inner-start {
3912
3912
  right: var(--amplify-space-medium);
3913
3913
  }
3914
3914
 
3915
+ .liveness-detector .amplify-button--primary:focus {
3916
+ box-shadow: unset;
3917
+ outline: var(--amplify-components-button-focus-color) solid 2px;
3918
+ outline-offset: 2px;
3919
+ }
3920
+
3915
3921
  .amplify-liveness-cancel-button {
3916
3922
  background-color: #fff;
3917
3923
  color: hsl(190, 95%, 30%);
@@ -3946,6 +3952,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
3946
3952
  left: 0;
3947
3953
  height: 100%;
3948
3954
  width: 100%;
3955
+ z-index: 2;
3949
3956
  }
3950
3957
 
3951
3958
  .amplify-liveness-video {
@@ -4015,7 +4022,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4015
4022
  }
4016
4023
 
4017
4024
  .amplify-liveness-instruction-overlay {
4018
- z-index: 1;
4025
+ z-index: 2;
4019
4026
  }
4020
4027
 
4021
4028
  .amplify-liveness-countdown-container {
@@ -4249,6 +4256,10 @@ html[dir=rtl] .amplify-field-group__inner-start {
4249
4256
  font-weight: var(--amplify-font-weights-bold);
4250
4257
  }
4251
4258
 
4259
+ .amplify-liveness-hint--mobile {
4260
+ margin-top: var(--amplify-space-xxxl);
4261
+ }
4262
+
4252
4263
  .amplify-liveness-hint__text {
4253
4264
  align-items: center;
4254
4265
  gap: var(--amplify-space-xs);
@@ -4326,6 +4337,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4326
4337
  flex-direction: column;
4327
4338
  align-items: center;
4328
4339
  justify-content: center;
4340
+ text-align: center;
4329
4341
  height: 480px;
4330
4342
  }
4331
4343
 
@@ -5328,6 +5340,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
5328
5340
  var(--amplify-components-table-header-border-width)
5329
5341
  var(--amplify-components-table-header-border-width);
5330
5342
  }
5343
+ .amplify-table--striped .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
5344
+ background-color: var(--amplify-components-table-row-striped-background-color);
5345
+ }
5331
5346
  .amplify-table__caption {
5332
5347
  caption-side: var(--amplify-components-table-caption-caption-side);
5333
5348
  color: var(--amplify-components-table-caption-color);
@@ -5386,9 +5401,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
5386
5401
  .amplify-table__td:last-child {
5387
5402
  border-right-width: var(--amplify-components-table-data-border-width);
5388
5403
  }
5389
- .amplify-table[data-variation=striped] .amplify-table__row:not(.amplify-table__head *):nth-child(odd) {
5390
- background-color: var(--amplify-components-table-row-striped-background-color);
5391
- }
5392
5404
  .amplify-table[data-highlightonhover=true] .amplify-table__row:not(.amplify-table__head *):hover {
5393
5405
  background-color: var(--amplify-components-table-row-hover-background-color);
5394
5406
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { AlertVariations } from '../types';
3
- interface AlertIconProps {
2
+ import { AlertVariations, ViewProps } from '../types';
3
+ interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
4
4
  variation?: AlertVariations;
5
5
  ariaHidden?: boolean;
6
6
  }
@@ -8,7 +8,7 @@ interface AlertIconProps {
8
8
  * @internal For internal Amplify UI use only. May be removed in a future release.
9
9
  */
10
10
  export declare const AlertIcon: {
11
- ({ variation, ariaHidden, }: AlertIconProps): JSX.Element | null;
11
+ ({ variation, ariaHidden, ariaLabel, role, }: AlertIconProps): JSX.Element | null;
12
12
  displayName: string;
13
13
  };
14
14
  export {};
@@ -1 +1 @@
1
- export declare const VERSION = "6.1.0";
1
+ export declare const VERSION = "6.1.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -49,8 +49,8 @@
49
49
  "typecheck": "tsc --noEmit"
50
50
  },
51
51
  "dependencies": {
52
- "@aws-amplify/ui": "6.0.6",
53
- "@aws-amplify/ui-react-core": "3.0.6",
52
+ "@aws-amplify/ui": "6.0.7",
53
+ "@aws-amplify/ui-react-core": "3.0.7",
54
54
  "@radix-ui/react-direction": "1.0.0",
55
55
  "@radix-ui/react-dropdown-menu": "1.0.0",
56
56
  "@radix-ui/react-slider": "1.0.0",