@aws-amplify/ui-react 6.10.0 → 6.11.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/{Field-31Y_jcOe.js → Field-BjInyX0G.js} +2 -2
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.mjs +1 -1
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.mjs +1 -9
- package/dist/esm/components/Authenticator/Router/Router.mjs +2 -2
- package/dist/esm/internal.mjs +1 -0
- package/dist/esm/primitives/Collection/Collection.mjs +1 -1
- package/dist/esm/primitives/DropZone/DropZone.mjs +1 -1
- package/dist/esm/primitives/Icon/icons/IconDocument.mjs +15 -0
- package/dist/esm/primitives/Loader/Loader.mjs +2 -2
- package/dist/esm/primitives/PhoneNumberField/DialCodeSelect.mjs +1 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.mjs +1 -1
- package/dist/esm/primitives/SelectField/SelectField.mjs +1 -1
- package/dist/esm/primitives/SliderField/SliderField.mjs +1 -1
- package/dist/esm/primitives/StepperField/StepperField.mjs +1 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +1 -1
- package/dist/esm/primitives/shared/utils.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +3 -11
- package/dist/internal.js +12 -1
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +2 -2
- package/dist/types/primitives/Icon/icons/IconDocument.d.ts +5 -0
- package/dist/types/primitives/Icon/icons/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +9 -8
|
@@ -1064,7 +1064,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
|
|
|
1064
1064
|
}, "data-testid": LINEAR_FILLED }),
|
|
1065
1065
|
isDeterminate ? (React__namespace.createElement("text", { "aria-live": "polite", className: ui.classNames(ui.ComponentClassName.LoaderLabel, isPercentageTextHidden ? ui.ComponentClassName.VisuallyHidden : null),
|
|
1066
1066
|
// -1% offset makes the text position look nicest
|
|
1067
|
-
x: `${-1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
1067
|
+
x: `${ -1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
1068
1068
|
// r + stroke-width should add up to 50% to avoid overflow
|
|
1069
1069
|
const circularLoader = (React__namespace.createElement("g", null,
|
|
1070
1070
|
React__namespace.createElement("circle", { cx: "50%", cy: "50%", r: `${RADIUS}%`, strokeWidth: `${CIRCULAR_STROKE_WIDTH}%`, style: { stroke: String(emptyColor) }, "data-testid": CIRCULAR_EMPTY }),
|
|
@@ -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: "
|
|
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)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { authenticatorTextUtil, FederatedIdentityProviders } from '@aws-amplify/ui';
|
|
3
3
|
import { Divider } from '../../../primitives/Divider/Divider.mjs';
|
|
4
4
|
import { Flex } from '../../../primitives/Flex/Flex.mjs';
|
|
5
5
|
import { useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
@@ -3,14 +3,6 @@ import { View } from '../../../primitives/View/View.mjs';
|
|
|
3
3
|
import { useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
4
4
|
import { useCustomComponents } from '../hooks/useCustomComponents/useCustomComponents.mjs';
|
|
5
5
|
|
|
6
|
-
// TODO replace usage of this util with the `isSignInOrSignUpRoute` util in v3.
|
|
7
|
-
// Currently `hasTabs` always returns `undefined` as the right condition always
|
|
8
|
-
// resolves to truthy. This prevents the "data-amplify-router-content" attribute
|
|
9
|
-
// from being applied below. Fixing it will cause consumer snapshot tests to break,
|
|
10
|
-
// so wait to update.
|
|
11
|
-
const hasTabs = (route) => {
|
|
12
|
-
return route === 'signIn' || 'signUp';
|
|
13
|
-
};
|
|
14
6
|
function RouteContainer({ children, className, variation = 'default', }) {
|
|
15
7
|
const { route } = useAuthenticator(({ route }) => [route]);
|
|
16
8
|
const {
|
|
@@ -19,7 +11,7 @@ function RouteContainer({ children, className, variation = 'default', }) {
|
|
|
19
11
|
return (React__default.createElement(View, { className: className, "data-amplify-authenticator": "", "data-variation": variation },
|
|
20
12
|
React__default.createElement(View, { "data-amplify-container": "" },
|
|
21
13
|
React__default.createElement(Header, null),
|
|
22
|
-
React__default.createElement(View, { "data-amplify-router": "", "data-amplify-router-content":
|
|
14
|
+
React__default.createElement(View, { "data-amplify-router": "", "data-amplify-router-content": undefined }, children),
|
|
23
15
|
React__default.createElement(Footer, null))));
|
|
24
16
|
}
|
|
25
17
|
|
|
@@ -5,8 +5,8 @@ import { ForceNewPassword } from '../ForceNewPassword/ForceNewPassword.mjs';
|
|
|
5
5
|
import { SetupTotp } from '../SetupTotp/SetupTotp.mjs';
|
|
6
6
|
import '@aws-amplify/ui';
|
|
7
7
|
import '../../../primitives/TextField/TextField.mjs';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
8
|
+
import '../shared/ConfirmSignInFooter.mjs';
|
|
9
|
+
import '../shared/TwoButtonSubmitFooter.mjs';
|
|
10
10
|
import '../../../primitives/Alert/Alert.mjs';
|
|
11
11
|
import { SignInSignUpTabs } from '../shared/SignInSignUpTabs.mjs';
|
|
12
12
|
import { ConfirmVerifyUser } from '../VerifyUser/ConfirmVerifyUser.mjs';
|
package/dist/esm/internal.mjs
CHANGED
|
@@ -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';
|
|
@@ -9,7 +9,7 @@ import { usePagination } from '../Pagination/usePagination.mjs';
|
|
|
9
9
|
import { SearchField } from '../SearchField/SearchField.mjs';
|
|
10
10
|
import { ComponentText } from '../shared/constants.mjs';
|
|
11
11
|
import { strHasLength } from '../shared/utils.mjs';
|
|
12
|
-
import { getPageCount, getItemsAtPage
|
|
12
|
+
import { itemHasText, getPageCount, getItemsAtPage } from './utils.mjs';
|
|
13
13
|
|
|
14
14
|
const DEFAULT_PAGE_SIZE = 10;
|
|
15
15
|
const TYPEAHEAD_DELAY_MS = 300;
|
|
@@ -3,7 +3,7 @@ import { useDropZone } from '@aws-amplify/ui-react-core';
|
|
|
3
3
|
import { DropZoneProvider } from './DropZoneProvider.mjs';
|
|
4
4
|
import { DropZoneContainer } from './DropZoneContainer.mjs';
|
|
5
5
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { Default, Rejected, Accepted } from './DropZoneChildren.mjs';
|
|
7
7
|
|
|
8
8
|
const DropZonePrimitive = ({ children, testId, isDisabled, acceptedFileTypes, onDropComplete, ...rest }, ref) => {
|
|
9
9
|
const { dragState, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, } = useDropZone({
|
|
@@ -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 };
|
|
@@ -29,7 +29,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
|
|
|
29
29
|
}, "data-testid": LINEAR_FILLED }),
|
|
30
30
|
isDeterminate ? (React.createElement("text", { "aria-live": "polite", className: classNames(ComponentClassName.LoaderLabel, isPercentageTextHidden ? ComponentClassName.VisuallyHidden : null),
|
|
31
31
|
// -1% offset makes the text position look nicest
|
|
32
|
-
x: `${-1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
32
|
+
x: `${ -1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
33
33
|
// r + stroke-width should add up to 50% to avoid overflow
|
|
34
34
|
const circularLoader = (React.createElement("g", null,
|
|
35
35
|
React.createElement("circle", { cx: "50%", cy: "50%", r: `${RADIUS}%`, strokeWidth: `${CIRCULAR_STROKE_WIDTH}%`, style: { stroke: String(emptyColor) }, "data-testid": CIRCULAR_EMPTY }),
|
|
@@ -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: "
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { classNames, ComponentClassName
|
|
2
|
+
import { countryDialCodes, classNames, ComponentClassName } from '@aws-amplify/ui';
|
|
3
3
|
import { SelectField } from '../SelectField/SelectField.mjs';
|
|
4
4
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
|
12
12
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
13
13
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
14
14
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
15
|
-
import {
|
|
15
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
16
16
|
|
|
17
17
|
const RadioGroupFieldPrimitive = ({ children, className, defaultValue, descriptiveText, errorMessage, hasError = false, id, isDisabled, isRequired, isReadOnly, legend, legendHidden = false, labelPosition, onChange, name, size, testId, value, variation, ...rest }, ref) => {
|
|
18
18
|
const fieldId = useStableId(id);
|
|
@@ -11,7 +11,7 @@ import { splitPrimitiveProps } from '../utils/splitPrimitiveProps.mjs';
|
|
|
11
11
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
12
12
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
13
13
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
14
|
-
import {
|
|
14
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
15
15
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
16
16
|
|
|
17
17
|
const selectFieldChildren = ({ children, options, }) => {
|
|
@@ -14,7 +14,7 @@ import { useStableId } from '../utils/useStableId.mjs';
|
|
|
14
14
|
import { useFieldset } from '../Fieldset/useFieldset.mjs';
|
|
15
15
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
16
16
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
17
|
-
import {
|
|
17
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
18
18
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
19
19
|
|
|
20
20
|
const SLIDER_LABEL_TEST_ID = 'slider-label';
|
|
@@ -22,7 +22,7 @@ import { splitPrimitiveProps } from '../utils/splitPrimitiveProps.mjs';
|
|
|
22
22
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
23
23
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
24
24
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
25
|
-
import {
|
|
25
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
26
26
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
27
27
|
|
|
28
28
|
const DECREASE_ICON = 'decrease-icon';
|
|
@@ -12,7 +12,7 @@ import { AutoresizeTextArea } from '../TextArea/AutoresizeTextarea.mjs';
|
|
|
12
12
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
13
13
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
14
14
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
15
|
-
import {
|
|
15
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
16
16
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
17
17
|
|
|
18
18
|
const DEFAULT_ROW_COUNT = 3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cssNameTransform, isDesignToken } from '@aws-amplify/ui';
|
|
2
2
|
export { classNameModifier, classNameModifierByFlag } from '@aws-amplify/ui';
|
|
3
3
|
import { isThemeStylePropKey } from '../types/theme.mjs';
|
|
4
4
|
import { stylePropsToThemeKeys } from './constants.mjs';
|
package/dist/esm/version.mjs
CHANGED
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-
|
|
9
|
+
var Field = require('./Field-BjInyX0G.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.
|
|
2472
|
+
const VERSION = '6.11.1';
|
|
2473
2473
|
|
|
2474
2474
|
const logger$2 = ui.getLogger('AccountSettings');
|
|
2475
2475
|
const getIsDisabled = (formValues, validationError) => {
|
|
@@ -2719,14 +2719,6 @@ const useCustomComponents = () => {
|
|
|
2719
2719
|
return context;
|
|
2720
2720
|
};
|
|
2721
2721
|
|
|
2722
|
-
// TODO replace usage of this util with the `isSignInOrSignUpRoute` util in v3.
|
|
2723
|
-
// Currently `hasTabs` always returns `undefined` as the right condition always
|
|
2724
|
-
// resolves to truthy. This prevents the "data-amplify-router-content" attribute
|
|
2725
|
-
// from being applied below. Fixing it will cause consumer snapshot tests to break,
|
|
2726
|
-
// so wait to update.
|
|
2727
|
-
const hasTabs = (route) => {
|
|
2728
|
-
return route === 'signIn' || 'signUp';
|
|
2729
|
-
};
|
|
2730
2722
|
function RouteContainer({ children, className, variation = 'default', }) {
|
|
2731
2723
|
const { route } = uiReactCore.useAuthenticator(({ route }) => [route]);
|
|
2732
2724
|
const {
|
|
@@ -2735,7 +2727,7 @@ function RouteContainer({ children, className, variation = 'default', }) {
|
|
|
2735
2727
|
return (React__namespace["default"].createElement(Field.View, { className: className, "data-amplify-authenticator": "", "data-variation": variation },
|
|
2736
2728
|
React__namespace["default"].createElement(Field.View, { "data-amplify-container": "" },
|
|
2737
2729
|
React__namespace["default"].createElement(Header, null),
|
|
2738
|
-
React__namespace["default"].createElement(Field.View, { "data-amplify-router": "", "data-amplify-router-content":
|
|
2730
|
+
React__namespace["default"].createElement(Field.View, { "data-amplify-router": "", "data-amplify-router-content": undefined }, children),
|
|
2739
2731
|
React__namespace["default"].createElement(Footer, null))));
|
|
2740
2732
|
}
|
|
2741
2733
|
|
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-
|
|
5
|
+
var Field = require('./Field-BjInyX0G.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { StorageBrowserIconType } from './StorageBrowserIcons';
|
|
3
3
|
type ComponentIcons<Keys extends string> = {
|
|
4
4
|
[Key in Keys]?: React.ReactNode;
|
|
5
5
|
};
|
|
@@ -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'>;
|
|
@@ -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';
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.11.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./internal": {
|
|
13
13
|
"import": "./dist/esm/internal.mjs",
|
|
14
|
-
"require": "./dist/internal.js"
|
|
14
|
+
"require": "./dist/internal.js",
|
|
15
|
+
"types": "./dist/types/internal.d.ts"
|
|
15
16
|
},
|
|
16
17
|
"./server": {
|
|
17
18
|
"types": "./dist/types/server.d.ts",
|
|
@@ -55,11 +56,11 @@
|
|
|
55
56
|
"typecheck": "tsc --noEmit"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
|
-
"@aws-amplify/ui": "6.10.
|
|
59
|
-
"@aws-amplify/ui-react-core": "3.4.
|
|
59
|
+
"@aws-amplify/ui": "6.10.2",
|
|
60
|
+
"@aws-amplify/ui-react-core": "3.4.2",
|
|
60
61
|
"@radix-ui/react-direction": "^1.1.0",
|
|
61
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
62
|
-
"@radix-ui/react-slider": "^1.
|
|
62
|
+
"@radix-ui/react-dropdown-menu": "^2.1.10",
|
|
63
|
+
"@radix-ui/react-slider": "^1.3.2",
|
|
63
64
|
"@xstate/react": "^3.2.2",
|
|
64
65
|
"lodash": "4.17.21",
|
|
65
66
|
"qrcode": "1.5.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"@aws-amplify/core": "*",
|
|
70
|
-
"aws-amplify": "^6.
|
|
71
|
+
"aws-amplify": "^6.14.3",
|
|
71
72
|
"react": "^16.14.0 || ^17.0 || ^18.0 || ^19",
|
|
72
73
|
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
73
74
|
},
|
|
@@ -98,4 +99,4 @@
|
|
|
98
99
|
"limit": "25 kB"
|
|
99
100
|
}
|
|
100
101
|
]
|
|
101
|
-
}
|
|
102
|
+
}
|