@aws-amplify/ui-react 6.10.0 → 6.11.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.
@@ -1080,7 +1080,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
1080
1080
  isDeterminate ? (React__namespace.createElement("text", { "aria-live": "polite", className: ui.classNames(ui.ComponentClassName.LoaderLabel, isPercentageTextHidden ? ui.ComponentClassName.VisuallyHidden : null),
1081
1081
  // this x and y make text position look nicest
1082
1082
  x: "130%", y: "80%" }, percent)) : null));
1083
- return (React__namespace.createElement(View, { as: "svg", className: componentClasses, ref: ref, role: "img", ...rest }, variation === 'linear' ? linearLoader : circularLoader));
1083
+ return (React__namespace.createElement(View, { as: "svg", "aria-valuenow": isDeterminate ? percentage : undefined, className: componentClasses, ref: ref, role: "progressbar", ...rest }, variation === 'linear' ? linearLoader : circularLoader));
1084
1084
  };
1085
1085
  /**
1086
1086
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/loader)
@@ -15,6 +15,7 @@ export { IconCheck } from './primitives/Icon/icons/IconCheck.mjs';
15
15
  export { IconChevronLeft } from './primitives/Icon/icons/IconChevronLeft.mjs';
16
16
  export { IconChevronRight } from './primitives/Icon/icons/IconChevronRight.mjs';
17
17
  export { IconClose } from './primitives/Icon/icons/IconClose.mjs';
18
+ export { IconDocument } from './primitives/Icon/icons/IconDocument.mjs';
18
19
  export { IconEdit } from './primitives/Icon/icons/IconEdit.mjs';
19
20
  export { IconError } from './primitives/Icon/icons/IconError.mjs';
20
21
  export { IconExpandMore } from './primitives/Icon/icons/IconExpandMore.mjs';
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { classNames, ComponentClassName } from '@aws-amplify/ui';
3
+ import { View } from '../../View/View.mjs';
4
+
5
+ /**
6
+ * @internal For internal Amplify UI use only. May be removed in a future release.
7
+ */
8
+ const IconDocument = (props) => {
9
+ const { className, ...rest } = props;
10
+ return (React.createElement(View, { as: "span", width: "1em", height: "1em", className: classNames(ComponentClassName.Icon, className), ...rest },
11
+ React.createElement("svg", { width: "24", height: "24", viewBox: "0 -960 960 960", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
12
+ React.createElement("path", { d: "M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z", fill: "currentColor" }))));
13
+ };
14
+
15
+ export { IconDocument };
@@ -45,7 +45,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
45
45
  isDeterminate ? (React.createElement("text", { "aria-live": "polite", className: classNames(ComponentClassName.LoaderLabel, isPercentageTextHidden ? ComponentClassName.VisuallyHidden : null),
46
46
  // this x and y make text position look nicest
47
47
  x: "130%", y: "80%" }, percent)) : null));
48
- return (React.createElement(View, { as: "svg", className: componentClasses, ref: ref, role: "img", ...rest }, variation === 'linear' ? linearLoader : circularLoader));
48
+ return (React.createElement(View, { as: "svg", "aria-valuenow": isDeterminate ? percentage : undefined, className: componentClasses, ref: ref, role: "progressbar", ...rest }, variation === 'linear' ? linearLoader : circularLoader));
49
49
  };
50
50
  /**
51
51
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/loader)
@@ -1,3 +1,3 @@
1
- const VERSION = '6.10.0';
1
+ const VERSION = '6.11.0';
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-31Y_jcOe.js');
9
+ var Field = require('./Field-Bkpcn7E9.js');
10
10
  require('aws-amplify/storage');
11
11
  var debounce = require('lodash/debounce.js');
12
12
  var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
@@ -2469,7 +2469,7 @@ const defaultDeleteUserDisplayText = {
2469
2469
  warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
2470
2470
  };
2471
2471
 
2472
- const VERSION = '6.10.0';
2472
+ const VERSION = '6.11.0';
2473
2473
 
2474
2474
  const logger$2 = ui.getLogger('AccountSettings');
2475
2475
  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-31Y_jcOe.js');
5
+ var Field = require('./Field-Bkpcn7E9.js');
6
6
  var React = require('react');
7
7
  var Storage = require('aws-amplify/storage');
8
8
  var ui = require('@aws-amplify/ui');
@@ -114,6 +114,16 @@ const IconCheckCircleOutline = (props) => {
114
114
  return (React__namespace.createElement(Field.View, { as: "span", width: "1em", height: "1em", className: ui.classNames(ui.ComponentClassName.Icon, className), ...rest }));
115
115
  };
116
116
 
117
+ /**
118
+ * @internal For internal Amplify UI use only. May be removed in a future release.
119
+ */
120
+ const IconDocument = (props) => {
121
+ const { className, ...rest } = props;
122
+ return (React__namespace.createElement(Field.View, { as: "span", width: "1em", height: "1em", className: ui.classNames(ui.ComponentClassName.Icon, className), ...rest },
123
+ React__namespace.createElement("svg", { width: "24", height: "24", viewBox: "0 -960 960 960", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
124
+ React__namespace.createElement("path", { d: "M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z", fill: "currentColor" }))));
125
+ };
126
+
117
127
  /**
118
128
  * @internal For internal Amplify UI use only. May be removed in a future release.
119
129
  */
@@ -17129,6 +17139,7 @@ exports.FilterChildren = FilterChildren;
17129
17139
  exports.IconAssistant = IconAssistant;
17130
17140
  exports.IconAttach = IconAttach;
17131
17141
  exports.IconCheckCircleOutline = IconCheckCircleOutline;
17142
+ exports.IconDocument = IconDocument;
17132
17143
  exports.IconEdit = IconEdit;
17133
17144
  exports.IconFile = IconFile;
17134
17145
  exports.IconSend = IconSend;
@@ -7,7 +7,7 @@ export type IconsContextInterface = {
7
7
  accordion?: ComponentIcons<'more'>;
8
8
  alert?: ComponentIcons<'close' | 'info' | 'error' | 'success' | 'warning'>;
9
9
  avatar?: ComponentIcons<'user'>;
10
- aiConversation?: ComponentIcons<'attach' | 'close' | 'send' | 'remove' | 'assistant' | 'user'>;
10
+ aiConversation?: ComponentIcons<'attach' | 'close' | 'send' | 'remove' | 'assistant' | 'user' | 'document'>;
11
11
  checkbox?: ComponentIcons<'indeterminate' | 'checked'>;
12
12
  field?: ComponentIcons<'clear'>;
13
13
  menu?: ComponentIcons<'menu'>;
@@ -0,0 +1,5 @@
1
+ import { InternalIcon } from './types';
2
+ /**
3
+ * @internal For internal Amplify UI use only. May be removed in a future release.
4
+ */
5
+ export declare const IconDocument: InternalIcon;
@@ -7,6 +7,7 @@ export * from './IconCheck';
7
7
  export * from './IconChevronLeft';
8
8
  export * from './IconChevronRight';
9
9
  export * from './IconClose';
10
+ export * from './IconDocument';
10
11
  export * from './IconEdit';
11
12
  export * from './IconError';
12
13
  export * from './IconExpandMore';
@@ -1 +1 @@
1
- export declare const VERSION = "6.10.0";
1
+ export declare const VERSION = "6.11.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "6.10.0",
3
+ "version": "6.11.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -55,8 +55,8 @@
55
55
  "typecheck": "tsc --noEmit"
56
56
  },
57
57
  "dependencies": {
58
- "@aws-amplify/ui": "6.10.0",
59
- "@aws-amplify/ui-react-core": "3.4.0",
58
+ "@aws-amplify/ui": "6.10.1",
59
+ "@aws-amplify/ui-react-core": "3.4.1",
60
60
  "@radix-ui/react-direction": "^1.1.0",
61
61
  "@radix-ui/react-dropdown-menu": "^2.1.4",
62
62
  "@radix-ui/react-slider": "^1.2.2",