@aws-amplify/ui-react 6.11.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-Bkpcn7E9.js → Field-BjInyX0G.js} +1 -1
- 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/primitives/Collection/Collection.mjs +1 -1
- package/dist/esm/primitives/DropZone/DropZone.mjs +1 -1
- package/dist/esm/primitives/Loader/Loader.mjs +1 -1
- 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 +1 -1
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +1 -1
- 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 }),
|
|
@@ -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';
|
|
@@ -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({
|
|
@@ -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 }),
|
|
@@ -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.11.
|
|
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');
|
|
@@ -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
|
};
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.11.
|
|
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.11.
|
|
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
|
+
}
|