@aws-amplify/ui-react 6.7.1 → 6.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/esm/PrimitiveCatalog.mjs +34 -13
- package/dist/esm/primitives/DropZone/DropZoneChildren.mjs +3 -7
- package/dist/esm/primitives/Placeholder/Placeholder.mjs +8 -3
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +11 -10
- package/dist/internal.js +34 -13
- package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +2 -2
- package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +2 -2
- package/dist/types/components/Authenticator/Authenticator.d.ts +13 -13
- package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +2 -2
- package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +2 -2
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignIn.d.ts +2 -2
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +2 -2
- package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +5 -5
- package/dist/types/components/Authenticator/ForgotPassword/ConfirmResetPassword.d.ts +4 -4
- package/dist/types/components/Authenticator/ForgotPassword/ForgotPassword.d.ts +4 -4
- package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +2 -2
- package/dist/types/components/Authenticator/RouteContainer/types.d.ts +0 -1
- package/dist/types/components/Authenticator/Router/Router.d.ts +2 -2
- package/dist/types/components/Authenticator/SetupTotp/SetupTotp.d.ts +4 -4
- package/dist/types/components/Authenticator/SignIn/SignIn.d.ts +2 -2
- package/dist/types/components/Authenticator/SignUp/SignUp.d.ts +3 -3
- package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +2 -2
- package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +4 -4
- package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts +3 -4
- package/dist/types/components/Authenticator/shared/ConfirmSignInFooter.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/ConfirmationCodeInput.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/FormField.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/FormFields.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/RemoteErrorMessage.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +3 -3
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +1 -1
- package/dist/types/components/FilterChildren/FilterChildren.d.ts +1 -1
- package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +1 -1
- package/dist/types/components/ThemeProvider/GlobalStyle.d.ts +1 -1
- package/dist/types/components/ThemeProvider/Style.d.ts +1 -1
- package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +1 -1
- package/dist/types/components/shared/ValidationErrors.d.ts +2 -2
- package/dist/types/primitives/Alert/AlertIcon.d.ts +2 -2
- package/dist/types/primitives/Collection/Collection.d.ts +2 -2
- package/dist/types/primitives/DropZone/DropZone.d.ts +4 -4
- package/dist/types/primitives/DropZone/DropZoneChildren.d.ts +10 -9
- package/dist/types/primitives/DropZone/DropZoneProvider.d.ts +1 -1
- package/dist/types/primitives/Icon/context/IconsProvider.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/types.d.ts +1 -2
- package/dist/types/primitives/Pagination/usePaginationItems.d.ts +2 -2
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +2 -0
- package/dist/types/primitives/types/autocomplete.d.ts +1 -1
- package/dist/types/primitives/types/button.d.ts +0 -1
- package/dist/types/primitives/types/collection.d.ts +2 -2
- package/dist/types/primitives/types/field.d.ts +0 -1
- package/dist/types/primitives/types/fieldGroup.d.ts +0 -1
- package/dist/types/primitives/types/image.d.ts +0 -1
- package/dist/types/primitives/types/label.d.ts +0 -1
- package/dist/types/primitives/types/placeholder.d.ts +12 -0
- package/dist/types/primitives/types/rating.d.ts +2 -3
- package/dist/types/primitives/types/style.d.ts +0 -1
- package/dist/types/primitives/types/switchField.d.ts +0 -1
- package/dist/types/primitives/types/textArea.d.ts +0 -1
- package/dist/types/primitives/types/view.d.ts +3 -3
- package/dist/types/primitives/utils/primitiveWithForwardRef.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -7
|
@@ -1407,6 +1407,9 @@ const PrimitiveCatalog = {
|
|
|
1407
1407
|
"role": {
|
|
1408
1408
|
"type": "string"
|
|
1409
1409
|
},
|
|
1410
|
+
"ref": {
|
|
1411
|
+
"type": "string"
|
|
1412
|
+
},
|
|
1410
1413
|
"key": {
|
|
1411
1414
|
"type": "string"
|
|
1412
1415
|
}
|
|
@@ -3683,6 +3686,9 @@ const PrimitiveCatalog = {
|
|
|
3683
3686
|
"role": {
|
|
3684
3687
|
"type": "string"
|
|
3685
3688
|
},
|
|
3689
|
+
"ref": {
|
|
3690
|
+
"type": "string"
|
|
3691
|
+
},
|
|
3686
3692
|
"key": {
|
|
3687
3693
|
"type": "string"
|
|
3688
3694
|
}
|
|
@@ -3933,6 +3939,9 @@ const PrimitiveCatalog = {
|
|
|
3933
3939
|
"role": {
|
|
3934
3940
|
"type": "string"
|
|
3935
3941
|
},
|
|
3942
|
+
"ref": {
|
|
3943
|
+
"type": "string"
|
|
3944
|
+
},
|
|
3936
3945
|
"key": {
|
|
3937
3946
|
"type": "string"
|
|
3938
3947
|
}
|
|
@@ -9450,9 +9459,8 @@ const PrimitiveCatalog = {
|
|
|
9450
9459
|
"defaultValue": {
|
|
9451
9460
|
"type": "string"
|
|
9452
9461
|
},
|
|
9453
|
-
"
|
|
9454
|
-
"type": "string"
|
|
9455
|
-
"priority": true
|
|
9462
|
+
"enterKeyHint": {
|
|
9463
|
+
"type": "string"
|
|
9456
9464
|
},
|
|
9457
9465
|
"inputMode": {
|
|
9458
9466
|
"type": "string"
|
|
@@ -9536,9 +9544,6 @@ const PrimitiveCatalog = {
|
|
|
9536
9544
|
"hasError": {
|
|
9537
9545
|
"type": "boolean"
|
|
9538
9546
|
},
|
|
9539
|
-
"enterKeyHint": {
|
|
9540
|
-
"type": "string"
|
|
9541
|
-
},
|
|
9542
9547
|
"isReadOnly": {
|
|
9543
9548
|
"type": "boolean"
|
|
9544
9549
|
},
|
|
@@ -9548,12 +9553,19 @@ const PrimitiveCatalog = {
|
|
|
9548
9553
|
"name": {
|
|
9549
9554
|
"type": "string"
|
|
9550
9555
|
},
|
|
9556
|
+
"placeholder": {
|
|
9557
|
+
"type": "string",
|
|
9558
|
+
"priority": true
|
|
9559
|
+
},
|
|
9551
9560
|
"countryCodeLabel": {
|
|
9552
9561
|
"type": "string"
|
|
9553
9562
|
},
|
|
9554
9563
|
"countryCodeName": {
|
|
9555
9564
|
"type": "string"
|
|
9556
9565
|
},
|
|
9566
|
+
"ref": {
|
|
9567
|
+
"type": "string"
|
|
9568
|
+
},
|
|
9557
9569
|
"key": {
|
|
9558
9570
|
"type": "string"
|
|
9559
9571
|
},
|
|
@@ -9596,6 +9608,9 @@ const PrimitiveCatalog = {
|
|
|
9596
9608
|
"accessKey": {
|
|
9597
9609
|
"type": "string"
|
|
9598
9610
|
},
|
|
9611
|
+
"autoCapitalize": {
|
|
9612
|
+
"type": "string"
|
|
9613
|
+
},
|
|
9599
9614
|
"autoFocus": {
|
|
9600
9615
|
"type": "boolean"
|
|
9601
9616
|
},
|
|
@@ -9656,9 +9671,6 @@ const PrimitiveCatalog = {
|
|
|
9656
9671
|
"vocab": {
|
|
9657
9672
|
"type": "string"
|
|
9658
9673
|
},
|
|
9659
|
-
"autoCapitalize": {
|
|
9660
|
-
"type": "string"
|
|
9661
|
-
},
|
|
9662
9674
|
"autoCorrect": {
|
|
9663
9675
|
"type": "string"
|
|
9664
9676
|
},
|
|
@@ -9900,12 +9912,18 @@ const PrimitiveCatalog = {
|
|
|
9900
9912
|
},
|
|
9901
9913
|
"Placeholder": {
|
|
9902
9914
|
"properties": {
|
|
9915
|
+
"endColor": {
|
|
9916
|
+
"type": "string"
|
|
9917
|
+
},
|
|
9903
9918
|
"isLoaded": {
|
|
9904
9919
|
"type": "boolean"
|
|
9905
9920
|
},
|
|
9906
9921
|
"size": {
|
|
9907
9922
|
"type": "string"
|
|
9908
9923
|
},
|
|
9924
|
+
"startColor": {
|
|
9925
|
+
"type": "string"
|
|
9926
|
+
},
|
|
9909
9927
|
"isDisabled": {
|
|
9910
9928
|
"type": "boolean"
|
|
9911
9929
|
},
|
|
@@ -10756,7 +10774,7 @@ const PrimitiveCatalog = {
|
|
|
10756
10774
|
"defaultChecked": {
|
|
10757
10775
|
"type": "boolean"
|
|
10758
10776
|
},
|
|
10759
|
-
"
|
|
10777
|
+
"enterKeyHint": {
|
|
10760
10778
|
"type": "string"
|
|
10761
10779
|
},
|
|
10762
10780
|
"inputMode": {
|
|
@@ -10774,14 +10792,14 @@ const PrimitiveCatalog = {
|
|
|
10774
10792
|
"hasError": {
|
|
10775
10793
|
"type": "boolean"
|
|
10776
10794
|
},
|
|
10777
|
-
"enterKeyHint": {
|
|
10778
|
-
"type": "string"
|
|
10779
|
-
},
|
|
10780
10795
|
"isReadOnly": {
|
|
10781
10796
|
"type": "boolean"
|
|
10782
10797
|
},
|
|
10783
10798
|
"isRequired": {
|
|
10784
10799
|
"type": "boolean"
|
|
10800
|
+
},
|
|
10801
|
+
"placeholder": {
|
|
10802
|
+
"type": "string"
|
|
10785
10803
|
}
|
|
10786
10804
|
}
|
|
10787
10805
|
},
|
|
@@ -13333,6 +13351,9 @@ const PrimitiveCatalog = {
|
|
|
13333
13351
|
"role": {
|
|
13334
13352
|
"type": "string"
|
|
13335
13353
|
},
|
|
13354
|
+
"ref": {
|
|
13355
|
+
"type": "string"
|
|
13356
|
+
},
|
|
13336
13357
|
"key": {
|
|
13337
13358
|
"type": "string"
|
|
13338
13359
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DropZoneContext } from './DropZoneProvider.mjs';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* These are syntactic sugar components that make it easy to compose children
|
|
6
|
-
* in DropZone without having to expose the DropZoneContext.
|
|
7
|
-
*/
|
|
8
4
|
/**
|
|
9
5
|
* This component renders when the user is dragging ONLY accepted files on the DropZone.
|
|
10
6
|
*/
|
|
11
|
-
const Accepted = ({ children
|
|
7
|
+
const Accepted = ({ children }) => {
|
|
12
8
|
const dragState = React.useContext(DropZoneContext);
|
|
13
9
|
if (!dragState) {
|
|
14
10
|
throw new Error('`DropZone.Accept` must be used inside a DropZone');
|
|
@@ -18,7 +14,7 @@ const Accepted = ({ children, }) => {
|
|
|
18
14
|
/**
|
|
19
15
|
* This component renders when the user is dragging ANY rejected files on the DropZone.
|
|
20
16
|
*/
|
|
21
|
-
const Rejected = ({ children
|
|
17
|
+
const Rejected = ({ children }) => {
|
|
22
18
|
const dragState = React.useContext(DropZoneContext);
|
|
23
19
|
if (!dragState) {
|
|
24
20
|
throw new Error('`DropZone.Rejected` must be used inside a DropZone');
|
|
@@ -28,7 +24,7 @@ const Rejected = ({ children, }) => {
|
|
|
28
24
|
/**
|
|
29
25
|
* This component renders by default when the user is not dragging.
|
|
30
26
|
*/
|
|
31
|
-
const Default = ({ children
|
|
27
|
+
const Default = ({ children }) => {
|
|
32
28
|
const dragState = React.useContext(DropZoneContext);
|
|
33
29
|
if (!dragState) {
|
|
34
30
|
throw new Error('`DropZone.Default` must be used inside a DropZone');
|
|
@@ -3,11 +3,16 @@ import { classNames, ComponentClassName, classNameModifier } from '@aws-amplify/
|
|
|
3
3
|
import { View } from '../View/View.mjs';
|
|
4
4
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const CSS_VAR_START_COLOR = '--amplify-components-placeholder-start-color';
|
|
7
|
+
const CSS_VAR_END_COLOR = '--amplify-components-placeholder-end-color';
|
|
8
|
+
const PlaceholderPrimitive = ({ className, children, endColor, isLoaded, size, startColor, ...rest }, ref) => {
|
|
7
9
|
if (isLoaded) {
|
|
8
10
|
return React.createElement(React.Fragment, null, children);
|
|
9
11
|
}
|
|
10
|
-
return (React.createElement(View, { className: classNames(ComponentClassName.Placeholder, classNameModifier(ComponentClassName.Placeholder, size), className), ref: ref,
|
|
12
|
+
return (React.createElement(View, { className: classNames(ComponentClassName.Placeholder, classNameModifier(ComponentClassName.Placeholder, size), className), ref: ref, style: {
|
|
13
|
+
[CSS_VAR_START_COLOR]: startColor && `${startColor}`,
|
|
14
|
+
[CSS_VAR_END_COLOR]: endColor && `${endColor}`,
|
|
15
|
+
}, ...rest }));
|
|
11
16
|
};
|
|
12
17
|
/**
|
|
13
18
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/placeholder)
|
|
@@ -15,4 +20,4 @@ const PlaceholderPrimitive = ({ className, children, isLoaded, size, ...rest },
|
|
|
15
20
|
const Placeholder = primitiveWithForwardRef(PlaceholderPrimitive);
|
|
16
21
|
Placeholder.displayName = 'Placeholder';
|
|
17
22
|
|
|
18
|
-
export { Placeholder };
|
|
23
|
+
export { CSS_VAR_END_COLOR, CSS_VAR_START_COLOR, Placeholder };
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1135,14 +1135,10 @@ const Container = ({ className, children, testId, isDisabled, onDragEnter, onDra
|
|
|
1135
1135
|
const DropZoneContainer = Field.primitiveWithForwardRef(Container);
|
|
1136
1136
|
DropZoneContainer.displayName = 'DropZoneContainer';
|
|
1137
1137
|
|
|
1138
|
-
/**
|
|
1139
|
-
* These are syntactic sugar components that make it easy to compose children
|
|
1140
|
-
* in DropZone without having to expose the DropZoneContext.
|
|
1141
|
-
*/
|
|
1142
1138
|
/**
|
|
1143
1139
|
* This component renders when the user is dragging ONLY accepted files on the DropZone.
|
|
1144
1140
|
*/
|
|
1145
|
-
const Accepted = ({ children
|
|
1141
|
+
const Accepted = ({ children }) => {
|
|
1146
1142
|
const dragState = React__namespace.useContext(DropZoneContext);
|
|
1147
1143
|
if (!dragState) {
|
|
1148
1144
|
throw new Error('`DropZone.Accept` must be used inside a DropZone');
|
|
@@ -1152,7 +1148,7 @@ const Accepted = ({ children, }) => {
|
|
|
1152
1148
|
/**
|
|
1153
1149
|
* This component renders when the user is dragging ANY rejected files on the DropZone.
|
|
1154
1150
|
*/
|
|
1155
|
-
const Rejected = ({ children
|
|
1151
|
+
const Rejected = ({ children }) => {
|
|
1156
1152
|
const dragState = React__namespace.useContext(DropZoneContext);
|
|
1157
1153
|
if (!dragState) {
|
|
1158
1154
|
throw new Error('`DropZone.Rejected` must be used inside a DropZone');
|
|
@@ -1162,7 +1158,7 @@ const Rejected = ({ children, }) => {
|
|
|
1162
1158
|
/**
|
|
1163
1159
|
* This component renders by default when the user is not dragging.
|
|
1164
1160
|
*/
|
|
1165
|
-
const Default = ({ children
|
|
1161
|
+
const Default = ({ children }) => {
|
|
1166
1162
|
const dragState = React__namespace.useContext(DropZoneContext);
|
|
1167
1163
|
if (!dragState) {
|
|
1168
1164
|
throw new Error('`DropZone.Default` must be used inside a DropZone');
|
|
@@ -1581,11 +1577,16 @@ const PhoneNumberFieldPrimitive = ({ autoComplete = 'tel-national', className, d
|
|
|
1581
1577
|
const PhoneNumberField = Field.primitiveWithForwardRef(PhoneNumberFieldPrimitive);
|
|
1582
1578
|
PhoneNumberField.displayName = 'PhoneNumberField';
|
|
1583
1579
|
|
|
1584
|
-
const
|
|
1580
|
+
const CSS_VAR_START_COLOR = '--amplify-components-placeholder-start-color';
|
|
1581
|
+
const CSS_VAR_END_COLOR = '--amplify-components-placeholder-end-color';
|
|
1582
|
+
const PlaceholderPrimitive = ({ className, children, endColor, isLoaded, size, startColor, ...rest }, ref) => {
|
|
1585
1583
|
if (isLoaded) {
|
|
1586
1584
|
return React__namespace.createElement(React__namespace.Fragment, null, children);
|
|
1587
1585
|
}
|
|
1588
|
-
return (React__namespace.createElement(Field.View, { className: ui.classNames(ui.ComponentClassName.Placeholder, ui.classNameModifier(ui.ComponentClassName.Placeholder, size), className), ref: ref,
|
|
1586
|
+
return (React__namespace.createElement(Field.View, { className: ui.classNames(ui.ComponentClassName.Placeholder, ui.classNameModifier(ui.ComponentClassName.Placeholder, size), className), ref: ref, style: {
|
|
1587
|
+
[CSS_VAR_START_COLOR]: startColor && `${startColor}`,
|
|
1588
|
+
[CSS_VAR_END_COLOR]: endColor && `${endColor}`,
|
|
1589
|
+
}, ...rest }));
|
|
1589
1590
|
};
|
|
1590
1591
|
/**
|
|
1591
1592
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/placeholder)
|
|
@@ -2482,7 +2483,7 @@ const defaultDeleteUserDisplayText = {
|
|
|
2482
2483
|
warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
|
|
2483
2484
|
};
|
|
2484
2485
|
|
|
2485
|
-
const VERSION = '6.
|
|
2486
|
+
const VERSION = '6.8.0';
|
|
2486
2487
|
|
|
2487
2488
|
const logger$2 = ui.getLogger('AccountSettings');
|
|
2488
2489
|
const getIsDisabled = (formValues, validationError) => {
|
package/dist/internal.js
CHANGED
|
@@ -1630,6 +1630,9 @@ const PrimitiveCatalog = {
|
|
|
1630
1630
|
"role": {
|
|
1631
1631
|
"type": "string"
|
|
1632
1632
|
},
|
|
1633
|
+
"ref": {
|
|
1634
|
+
"type": "string"
|
|
1635
|
+
},
|
|
1633
1636
|
"key": {
|
|
1634
1637
|
"type": "string"
|
|
1635
1638
|
}
|
|
@@ -3906,6 +3909,9 @@ const PrimitiveCatalog = {
|
|
|
3906
3909
|
"role": {
|
|
3907
3910
|
"type": "string"
|
|
3908
3911
|
},
|
|
3912
|
+
"ref": {
|
|
3913
|
+
"type": "string"
|
|
3914
|
+
},
|
|
3909
3915
|
"key": {
|
|
3910
3916
|
"type": "string"
|
|
3911
3917
|
}
|
|
@@ -4156,6 +4162,9 @@ const PrimitiveCatalog = {
|
|
|
4156
4162
|
"role": {
|
|
4157
4163
|
"type": "string"
|
|
4158
4164
|
},
|
|
4165
|
+
"ref": {
|
|
4166
|
+
"type": "string"
|
|
4167
|
+
},
|
|
4159
4168
|
"key": {
|
|
4160
4169
|
"type": "string"
|
|
4161
4170
|
}
|
|
@@ -9673,9 +9682,8 @@ const PrimitiveCatalog = {
|
|
|
9673
9682
|
"defaultValue": {
|
|
9674
9683
|
"type": "string"
|
|
9675
9684
|
},
|
|
9676
|
-
"
|
|
9677
|
-
"type": "string"
|
|
9678
|
-
"priority": true
|
|
9685
|
+
"enterKeyHint": {
|
|
9686
|
+
"type": "string"
|
|
9679
9687
|
},
|
|
9680
9688
|
"inputMode": {
|
|
9681
9689
|
"type": "string"
|
|
@@ -9759,9 +9767,6 @@ const PrimitiveCatalog = {
|
|
|
9759
9767
|
"hasError": {
|
|
9760
9768
|
"type": "boolean"
|
|
9761
9769
|
},
|
|
9762
|
-
"enterKeyHint": {
|
|
9763
|
-
"type": "string"
|
|
9764
|
-
},
|
|
9765
9770
|
"isReadOnly": {
|
|
9766
9771
|
"type": "boolean"
|
|
9767
9772
|
},
|
|
@@ -9771,12 +9776,19 @@ const PrimitiveCatalog = {
|
|
|
9771
9776
|
"name": {
|
|
9772
9777
|
"type": "string"
|
|
9773
9778
|
},
|
|
9779
|
+
"placeholder": {
|
|
9780
|
+
"type": "string",
|
|
9781
|
+
"priority": true
|
|
9782
|
+
},
|
|
9774
9783
|
"countryCodeLabel": {
|
|
9775
9784
|
"type": "string"
|
|
9776
9785
|
},
|
|
9777
9786
|
"countryCodeName": {
|
|
9778
9787
|
"type": "string"
|
|
9779
9788
|
},
|
|
9789
|
+
"ref": {
|
|
9790
|
+
"type": "string"
|
|
9791
|
+
},
|
|
9780
9792
|
"key": {
|
|
9781
9793
|
"type": "string"
|
|
9782
9794
|
},
|
|
@@ -9819,6 +9831,9 @@ const PrimitiveCatalog = {
|
|
|
9819
9831
|
"accessKey": {
|
|
9820
9832
|
"type": "string"
|
|
9821
9833
|
},
|
|
9834
|
+
"autoCapitalize": {
|
|
9835
|
+
"type": "string"
|
|
9836
|
+
},
|
|
9822
9837
|
"autoFocus": {
|
|
9823
9838
|
"type": "boolean"
|
|
9824
9839
|
},
|
|
@@ -9879,9 +9894,6 @@ const PrimitiveCatalog = {
|
|
|
9879
9894
|
"vocab": {
|
|
9880
9895
|
"type": "string"
|
|
9881
9896
|
},
|
|
9882
|
-
"autoCapitalize": {
|
|
9883
|
-
"type": "string"
|
|
9884
|
-
},
|
|
9885
9897
|
"autoCorrect": {
|
|
9886
9898
|
"type": "string"
|
|
9887
9899
|
},
|
|
@@ -10123,12 +10135,18 @@ const PrimitiveCatalog = {
|
|
|
10123
10135
|
},
|
|
10124
10136
|
"Placeholder": {
|
|
10125
10137
|
"properties": {
|
|
10138
|
+
"endColor": {
|
|
10139
|
+
"type": "string"
|
|
10140
|
+
},
|
|
10126
10141
|
"isLoaded": {
|
|
10127
10142
|
"type": "boolean"
|
|
10128
10143
|
},
|
|
10129
10144
|
"size": {
|
|
10130
10145
|
"type": "string"
|
|
10131
10146
|
},
|
|
10147
|
+
"startColor": {
|
|
10148
|
+
"type": "string"
|
|
10149
|
+
},
|
|
10132
10150
|
"isDisabled": {
|
|
10133
10151
|
"type": "boolean"
|
|
10134
10152
|
},
|
|
@@ -10979,7 +10997,7 @@ const PrimitiveCatalog = {
|
|
|
10979
10997
|
"defaultChecked": {
|
|
10980
10998
|
"type": "boolean"
|
|
10981
10999
|
},
|
|
10982
|
-
"
|
|
11000
|
+
"enterKeyHint": {
|
|
10983
11001
|
"type": "string"
|
|
10984
11002
|
},
|
|
10985
11003
|
"inputMode": {
|
|
@@ -10997,14 +11015,14 @@ const PrimitiveCatalog = {
|
|
|
10997
11015
|
"hasError": {
|
|
10998
11016
|
"type": "boolean"
|
|
10999
11017
|
},
|
|
11000
|
-
"enterKeyHint": {
|
|
11001
|
-
"type": "string"
|
|
11002
|
-
},
|
|
11003
11018
|
"isReadOnly": {
|
|
11004
11019
|
"type": "boolean"
|
|
11005
11020
|
},
|
|
11006
11021
|
"isRequired": {
|
|
11007
11022
|
"type": "boolean"
|
|
11023
|
+
},
|
|
11024
|
+
"placeholder": {
|
|
11025
|
+
"type": "string"
|
|
11008
11026
|
}
|
|
11009
11027
|
}
|
|
11010
11028
|
},
|
|
@@ -13556,6 +13574,9 @@ const PrimitiveCatalog = {
|
|
|
13556
13574
|
"role": {
|
|
13557
13575
|
"type": "string"
|
|
13558
13576
|
},
|
|
13577
|
+
"ref": {
|
|
13578
|
+
"type": "string"
|
|
13579
|
+
},
|
|
13559
13580
|
"key": {
|
|
13560
13581
|
"type": "string"
|
|
13561
13582
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ChangePasswordProps } from './types';
|
|
3
|
-
declare function ChangePassword({ components, displayText: overrideDisplayText, onError, onSuccess, validators, }: ChangePasswordProps): JSX.Element | null;
|
|
3
|
+
declare function ChangePassword({ components, displayText: overrideDisplayText, onError, onSuccess, validators, }: ChangePasswordProps): React.JSX.Element | null;
|
|
4
4
|
declare namespace ChangePassword {
|
|
5
5
|
var CurrentPasswordField: import("../types").PasswordFieldComponent;
|
|
6
6
|
var NewPasswordField: import("../types").PasswordFieldComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DeleteUserProps } from './types';
|
|
3
|
-
declare function DeleteUser({ components, displayText: overrideDisplayText, handleDelete, onError, onSuccess, }: DeleteUserProps): JSX.Element | null;
|
|
3
|
+
declare function DeleteUser({ components, displayText: overrideDisplayText, handleDelete, onError, onSuccess, }: DeleteUserProps): React.JSX.Element | null;
|
|
4
4
|
declare namespace DeleteUser {
|
|
5
5
|
var ErrorMessage: import("../types").ErrorMessageComponent;
|
|
6
6
|
var DeleteButton: import("../types").ButtonComponent;
|
|
@@ -9,7 +9,7 @@ export type AuthenticatorProps = Partial<Omit<AuthenticatorMachineOptions, 'form
|
|
|
9
9
|
children: React.ReactNode | ((props: {
|
|
10
10
|
signOut?: SignOut;
|
|
11
11
|
user?: AuthUser;
|
|
12
|
-
}) => JSX.Element);
|
|
12
|
+
}) => React.JSX.Element);
|
|
13
13
|
formFields: {
|
|
14
14
|
[key in FormFieldComponents]?: {
|
|
15
15
|
[field_name: string]: ReactFormFieldOptions;
|
|
@@ -28,30 +28,30 @@ interface ReactFormFieldOptions extends FormFieldOptions {
|
|
|
28
28
|
/** Desired HTML maxLength type */
|
|
29
29
|
maxLength?: number;
|
|
30
30
|
}
|
|
31
|
-
export declare function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, passwordSettings, signUpAttributes, services, socialProviders, variation, }: AuthenticatorProps): JSX.Element;
|
|
31
|
+
export declare function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, passwordSettings, signUpAttributes, services, socialProviders, variation, }: AuthenticatorProps): React.JSX.Element;
|
|
32
32
|
/**
|
|
33
33
|
* [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
|
|
34
34
|
*/
|
|
35
|
-
export declare function Authenticator(props: AuthenticatorProps): JSX.Element;
|
|
35
|
+
export declare function Authenticator(props: AuthenticatorProps): React.JSX.Element;
|
|
36
36
|
export declare namespace Authenticator {
|
|
37
37
|
var Provider: typeof import("@aws-amplify/ui-react-core").AuthenticatorProvider;
|
|
38
38
|
var ForgotPassword: {
|
|
39
|
-
({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
|
|
40
|
-
Header(): JSX.Element;
|
|
41
|
-
Footer(): JSX.Element;
|
|
39
|
+
({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
|
|
40
|
+
Header(): React.JSX.Element;
|
|
41
|
+
Footer(): React.JSX.Element;
|
|
42
42
|
};
|
|
43
43
|
var SetupTotp: {
|
|
44
|
-
({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
|
|
45
|
-
Header(): JSX.Element;
|
|
46
|
-
Footer(): JSX.Element;
|
|
44
|
+
({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
|
|
45
|
+
Header(): React.JSX.Element;
|
|
46
|
+
Footer(): React.JSX.Element;
|
|
47
47
|
};
|
|
48
48
|
var SignIn: typeof import("./SignIn").SignIn;
|
|
49
49
|
var SignUp: typeof import("./SignUp").SignUp;
|
|
50
50
|
var ForceNewPassword: {
|
|
51
|
-
({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
|
|
52
|
-
FormFields(): JSX.Element | null;
|
|
53
|
-
Header(): JSX.Element | null;
|
|
54
|
-
Footer(): JSX.Element | null;
|
|
51
|
+
({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
|
|
52
|
+
FormFields(): React.JSX.Element | null;
|
|
53
|
+
Header(): React.JSX.Element | null;
|
|
54
|
+
Footer(): React.JSX.Element | null;
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ConfirmSignIn: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
5
|
Header: typeof Header;
|
|
6
|
-
Footer(): JSX.Element;
|
|
6
|
+
Footer(): React.JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
declare function Header(): React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
|
-
export declare function ConfirmSignUp({ className, variation, }: RouteProps): JSX.Element;
|
|
3
|
+
export declare function ConfirmSignUp({ className, variation, }: RouteProps): React.JSX.Element;
|
|
4
4
|
export declare namespace ConfirmSignUp {
|
|
5
5
|
var Header: () => React.JSX.Element;
|
|
6
|
-
var Footer: () => JSX.Element;
|
|
6
|
+
var Footer: () => React.JSX.Element;
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function FederatedSignIn(): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function FederatedSignIn(): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FederatedIdentityProviders, SocialProvider } from '@aws-amplify/ui';
|
|
3
3
|
export interface FederatedSignInButtonProps {
|
|
4
4
|
icon?: SocialProvider;
|
|
5
5
|
provider: FederatedIdentityProviders;
|
|
6
6
|
text: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const FederatedSignInButton: (props: FederatedSignInButtonProps) => JSX.Element;
|
|
8
|
+
export declare const FederatedSignInButton: (props: FederatedSignInButtonProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ForceNewPassword: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
FormFields(): JSX.Element | null;
|
|
6
|
-
Header(): JSX.Element | null;
|
|
7
|
-
Footer(): JSX.Element | null;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
|
+
FormFields(): React.JSX.Element | null;
|
|
6
|
+
Header(): React.JSX.Element | null;
|
|
7
|
+
Footer(): React.JSX.Element | null;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ConfirmResetPassword: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
Header(): JSX.Element;
|
|
6
|
-
Footer(): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
|
+
Header(): React.JSX.Element;
|
|
6
|
+
Footer(): React.JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ForgotPassword: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
Header(): JSX.Element;
|
|
6
|
-
Footer(): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
|
+
Header(): React.JSX.Element;
|
|
6
|
+
Footer(): React.JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteContainerProps } from './types';
|
|
3
|
-
export declare function RouteContainer({ children, className, variation, }: RouteContainerProps): JSX.Element;
|
|
3
|
+
export declare function RouteContainer({ children, className, variation, }: RouteContainerProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouterProps } from './types';
|
|
3
|
-
export declare function Router({ className, hideSignUp, variation, }: RouterProps): JSX.Element;
|
|
3
|
+
export declare function Router({ className, hideSignUp, variation, }: RouterProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const SetupTotp: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
Header(): JSX.Element;
|
|
6
|
-
Footer(): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
|
+
Header(): React.JSX.Element;
|
|
6
|
+
Footer(): React.JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function SignIn(): JSX.Element;
|
|
2
|
+
export declare function SignIn(): React.JSX.Element;
|
|
3
3
|
export declare namespace SignIn {
|
|
4
4
|
var Footer: () => React.JSX.Element;
|
|
5
|
-
var Header: () => JSX.Element;
|
|
5
|
+
var Header: () => React.JSX.Element;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function SignUp(): JSX.Element;
|
|
2
|
+
export declare function SignUp(): React.JSX.Element;
|
|
3
3
|
export declare namespace SignUp {
|
|
4
|
-
var Header: () => JSX.Element;
|
|
4
|
+
var Header: () => React.JSX.Element;
|
|
5
5
|
var FormFields: () => React.JSX.Element;
|
|
6
|
-
var Footer: () => JSX.Element;
|
|
6
|
+
var Footer: () => React.JSX.Element;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ConfirmVerifyUser: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
5
|
Header(): React.JSX.Element;
|
|
6
|
-
Footer(): JSX.Element | null;
|
|
6
|
+
Footer(): React.JSX.Element | null;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const VerifyUser: {
|
|
4
|
-
({ className, variation, }: RouteProps): JSX.Element;
|
|
5
|
-
Header(): JSX.Element;
|
|
6
|
-
Footer(): JSX.Element;
|
|
4
|
+
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
|
+
Header(): React.JSX.Element;
|
|
6
|
+
Footer(): React.JSX.Element;
|
|
7
7
|
};
|
package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Components {
|
|
3
|
-
Footer?: () => JSX.Element | null;
|
|
4
|
-
FormFields?: () => JSX.Element | null;
|
|
5
|
-
Header?: () => JSX.Element | null;
|
|
2
|
+
Footer?: () => React.JSX.Element | null;
|
|
3
|
+
FormFields?: () => React.JSX.Element | null;
|
|
4
|
+
Header?: () => React.JSX.Element | null;
|
|
6
5
|
}
|
|
7
6
|
export interface DefaultComponents extends Omit<Components, 'FormFields'> {
|
|
8
7
|
ConfirmSignIn?: Omit<Components, 'FormFields'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ConfirmSignInFooter: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ConfirmSignInFooter: () => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface ConfirmationCodeInputProps {
|
|
3
3
|
errorText?: string;
|
|
4
4
|
labelHidden?: boolean;
|
|
@@ -7,4 +7,4 @@ export interface ConfirmationCodeInputProps {
|
|
|
7
7
|
required?: boolean;
|
|
8
8
|
type?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const ConfirmationCodeInput: (props: ConfirmationCodeInputProps) => JSX.Element;
|
|
10
|
+
export declare const ConfirmationCodeInput: (props: ConfirmationCodeInputProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { FormFieldOptions } from '@aws-amplify/ui';
|
|
3
3
|
export interface FormFieldProps extends Omit<FormFieldOptions, 'label'> {
|
|
4
4
|
label: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function FormField({ autocomplete: autoComplete, dialCode, name, type, ...props }: FormFieldProps): JSX.Element;
|
|
7
|
+
export declare function FormField({ autocomplete: autoComplete, dialCode, name, type, ...props }: FormFieldProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function FormFields(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function FormFields(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const RemoteErrorMessage: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const RemoteErrorMessage: () => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const SignInSignUpTabs: ({ className, hideSignUp, variation, }: {
|
|
4
4
|
hideSignUp: boolean;
|
|
5
|
-
} & RouteProps) => JSX.Element;
|
|
5
|
+
} & RouteProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AuthEventTypes } from '@aws-amplify/ui';
|
|
3
3
|
export interface TwoButtonSubmitFooterProps {
|
|
4
4
|
cancelButtonSendType: AuthEventTypes;
|
|
5
5
|
cancelButtonText: string;
|
|
6
|
-
submitButtonText?: JSX.Element;
|
|
6
|
+
submitButtonText?: React.JSX.Element;
|
|
7
7
|
}
|
|
8
|
-
export declare const TwoButtonSubmitFooter: (props: TwoButtonSubmitFooterProps) => JSX.Element;
|
|
8
|
+
export declare const TwoButtonSubmitFooter: (props: TwoButtonSubmitFooterProps) => React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface WithAuthenticatorProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
|
|
11
11
|
*/
|
|
12
|
-
export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & WithAuthenticatorProps>, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
|
|
12
|
+
export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & WithAuthenticatorProps>, options?: WithAuthenticatorOptions): (props: Props) => React.JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface FilterChildrenProps {
|
|
|
7
7
|
allowedFilters?: string[];
|
|
8
8
|
targetFilter?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const FilterChildren: ({ allowedFilters, children, targetFilter, }: FilterChildrenProps) => JSX.Element | null;
|
|
10
|
+
export declare const FilterChildren: ({ allowedFilters, children, targetFilter, }: FilterChildrenProps) => React.JSX.Element | null;
|
|
@@ -12,7 +12,7 @@ interface ComponentStyleProps extends React.ComponentProps<'style'> {
|
|
|
12
12
|
componentThemes: BaseComponentTheme[];
|
|
13
13
|
}
|
|
14
14
|
export declare const ComponentStyle: {
|
|
15
|
-
({ theme, componentThemes, ...rest }: ComponentStyleProps): JSX.Element | null;
|
|
15
|
+
({ theme, componentThemes, ...rest }: ComponentStyleProps): React.JSX.Element | null;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
@@ -10,7 +10,7 @@ interface GlobalStyleProps extends React.ComponentProps<'style'> {
|
|
|
10
10
|
styles: Parameters<typeof createGlobalCSS>[0];
|
|
11
11
|
}
|
|
12
12
|
export declare const GlobalStyle: {
|
|
13
|
-
({ styles, ...rest }: GlobalStyleProps): JSX.Element | null;
|
|
13
|
+
({ styles, ...rest }: GlobalStyleProps): React.JSX.Element | null;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -3,7 +3,7 @@ interface StyleProps extends React.ComponentProps<'style'> {
|
|
|
3
3
|
cssText?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const Style: {
|
|
6
|
-
({ cssText, ...rest }: StyleProps): JSX.Element | null;
|
|
6
|
+
({ cssText, ...rest }: StyleProps): React.JSX.Element | null;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -27,5 +27,5 @@ interface ThemeProviderProps {
|
|
|
27
27
|
/**
|
|
28
28
|
* [📖 Docs](https://ui.docs.amplify.aws/react/theming)
|
|
29
29
|
*/
|
|
30
|
-
export declare function ThemeProvider({ children, colorMode, direction, nonce, theme, }: ThemeProviderProps): JSX.Element;
|
|
30
|
+
export declare function ThemeProvider({ children, colorMode, direction, nonce, theme, }: ThemeProviderProps): React.JSX.Element;
|
|
31
31
|
export {};
|
|
@@ -10,7 +10,7 @@ interface ThemeStyleProps extends React.ComponentProps<'style'> {
|
|
|
10
10
|
theme?: WebTheme;
|
|
11
11
|
}
|
|
12
12
|
export declare const ThemeStyle: {
|
|
13
|
-
({ theme, ...rest }: ThemeStyleProps): JSX.Element | null;
|
|
13
|
+
({ theme, ...rest }: ThemeStyleProps): React.JSX.Element | null;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface ValidationErrorsProps {
|
|
3
3
|
errors: string[];
|
|
4
4
|
id?: string;
|
|
5
5
|
dataAttr?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const ValidationErrors: ({ errors, id, dataAttr, }: ValidationErrorsProps) => JSX.Element | null;
|
|
7
|
+
export declare const ValidationErrors: ({ errors, id, dataAttr, }: ValidationErrorsProps) => React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { AlertVariations, ViewProps } from '../types';
|
|
3
3
|
interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
|
|
4
4
|
variation?: AlertVariations;
|
|
@@ -8,7 +8,7 @@ interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
|
|
|
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, ariaLabel, role, }: AlertIconProps): JSX.Element | null;
|
|
11
|
+
({ variation, ariaHidden, ariaLabel, role, }: AlertIconProps): React.JSX.Element | null;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BaseCollectionProps, ElementType } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/collection)
|
|
5
5
|
*/
|
|
6
6
|
export declare const Collection: {
|
|
7
|
-
<Item, Element_1 extends ElementType>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchNoResultsFound, searchPlaceholder, type, testId, ...rest }: BaseCollectionProps<Item, Element_1>): JSX.Element;
|
|
7
|
+
<Item, Element_1 extends ElementType>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchNoResultsFound, searchPlaceholder, type, testId, ...rest }: BaseCollectionProps<Item, Element_1>): React.JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ForwardRefPrimitive } from '../types';
|
|
2
2
|
import { BaseDropZoneProps } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { AcceptedType, DefaultType, RejectedType } from './DropZoneChildren';
|
|
4
4
|
type DropZoneType = ForwardRefPrimitive<BaseDropZoneProps, 'div'> & {
|
|
5
|
-
Accepted:
|
|
6
|
-
Rejected:
|
|
7
|
-
Default:
|
|
5
|
+
Accepted: AcceptedType;
|
|
6
|
+
Rejected: RejectedType;
|
|
7
|
+
Default: DefaultType;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/dropzone)
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Primitive } from '../types';
|
|
3
2
|
/**
|
|
4
3
|
* These are syntactic sugar components that make it easy to compose children
|
|
5
4
|
* in DropZone without having to expose the DropZoneContext.
|
|
6
5
|
*/
|
|
6
|
+
export type AcceptedType = (props: {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}) => React.JSX.Element | null;
|
|
7
9
|
/**
|
|
8
10
|
* This component renders when the user is dragging ONLY accepted files on the DropZone.
|
|
9
11
|
*/
|
|
10
|
-
declare const Accepted:
|
|
12
|
+
export declare const Accepted: AcceptedType;
|
|
13
|
+
export type RejectedType = (props: {
|
|
11
14
|
children?: React.ReactNode;
|
|
12
|
-
}
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
13
16
|
/**
|
|
14
17
|
* This component renders when the user is dragging ANY rejected files on the DropZone.
|
|
15
18
|
*/
|
|
16
|
-
declare const Rejected:
|
|
19
|
+
export declare const Rejected: RejectedType;
|
|
20
|
+
export type DefaultType = (props: {
|
|
17
21
|
children?: React.ReactNode;
|
|
18
|
-
}
|
|
22
|
+
}) => React.JSX.Element | null;
|
|
19
23
|
/**
|
|
20
24
|
* This component renders by default when the user is not dragging.
|
|
21
25
|
*/
|
|
22
|
-
declare const Default:
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
}, 'div'>;
|
|
25
|
-
export { Accepted, Rejected, Default };
|
|
26
|
+
export declare const Default: DefaultType;
|
|
@@ -5,4 +5,4 @@ interface IconProviderProps {
|
|
|
5
5
|
icons?: IconsContextInterface;
|
|
6
6
|
}
|
|
7
7
|
export { IconsContextInterface };
|
|
8
|
-
export declare function IconsProvider({ children, icons, }: IconProviderProps): JSX.Element;
|
|
8
|
+
export declare function IconsProvider({ children, icons, }: IconProviderProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface UsePaginationItemsProps {
|
|
3
3
|
currentPage: number;
|
|
4
4
|
totalPages: number;
|
|
@@ -22,5 +22,5 @@ interface UsePaginationItemsProps {
|
|
|
22
22
|
* @param onChange callback function triggered every time the page changes
|
|
23
23
|
* @returns an array of pagination items
|
|
24
24
|
*/
|
|
25
|
-
export declare const usePaginationItems: ({ currentPage, totalPages, hasMorePages, siblingCount, currentPageLabel, pageLabel, previousLabel, nextLabel, onNext, onPrevious, onChange, }: UsePaginationItemsProps) => JSX.Element[];
|
|
25
|
+
export declare const usePaginationItems: ({ currentPage, totalPages, hasMorePages, siblingCount, currentPageLabel, pageLabel, previousLabel, nextLabel, onNext, onPrevious, onChange, }: UsePaginationItemsProps) => React.JSX.Element[];
|
|
26
26
|
export {};
|
|
@@ -56,7 +56,7 @@ interface CollectionChildren<Item> {
|
|
|
56
56
|
* The component to be repeated
|
|
57
57
|
* Same interface as Array.prototype.map
|
|
58
58
|
*/
|
|
59
|
-
children: (item: Item, index: number) => JSX.Element;
|
|
59
|
+
children: (item: Item, index: number) => React.JSX.Element;
|
|
60
60
|
}
|
|
61
61
|
export interface CollectionBaseProps<Item> extends CollectionChildren<Item> {
|
|
62
62
|
/**
|
|
@@ -69,7 +69,7 @@ export type ListCollectionProps<Item> = Omit<BaseFlexProps, 'children'> & Collec
|
|
|
69
69
|
export type GridCollectionProps<Item> = Omit<BaseGridProps, 'children'> & CollectionBaseProps<Item>;
|
|
70
70
|
/**
|
|
71
71
|
* Omits `React.ReactNode` as children to prevent intersection type for `children` of
|
|
72
|
-
* `React.ReactNode & (item: Item, index: number) => JSX.Element`
|
|
72
|
+
* `React.ReactNode & (item: Item, index: number) => React.JSX.Element`
|
|
73
73
|
* and replaces with `CollectionChildren`
|
|
74
74
|
*/
|
|
75
75
|
type ReplaceChildren<T, Item> = Omit<T, 'children'> & CollectionChildren<Item>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
import { Sizes } from './base';
|
|
3
|
+
import { StyleToken } from './style';
|
|
2
4
|
import { ElementType, PrimitiveProps, BaseViewProps } from './view';
|
|
3
5
|
export type PlaceholderSizes = Sizes;
|
|
4
6
|
/** @deprecated For internal use only */
|
|
5
7
|
export interface BasePlaceholderProps extends BaseViewProps {
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* This property will change the animation end color of the placeholder component
|
|
11
|
+
*/
|
|
12
|
+
endColor?: StyleToken<Property.Color>;
|
|
6
13
|
/**
|
|
7
14
|
* @description
|
|
8
15
|
* If true, the placeholder won't show, if false the placeholder will show.
|
|
@@ -15,5 +22,10 @@ export interface BasePlaceholderProps extends BaseViewProps {
|
|
|
15
22
|
* Controls the display size of placeholder
|
|
16
23
|
*/
|
|
17
24
|
size?: PlaceholderSizes;
|
|
25
|
+
/**
|
|
26
|
+
* @description
|
|
27
|
+
* This property will change the animation start color of the placeholder component
|
|
28
|
+
*/
|
|
29
|
+
startColor?: StyleToken<Property.Color>;
|
|
18
30
|
}
|
|
19
31
|
export type PlaceholderProps<Element extends ElementType = 'div'> = PrimitiveProps<BasePlaceholderProps, Element>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Property } from 'csstype';
|
|
3
2
|
import { BaseFlexProps } from './flex';
|
|
4
3
|
import { Sizes } from './base';
|
|
@@ -18,7 +17,7 @@ export interface RatingOptions {
|
|
|
18
17
|
* override the empty icon an will create a rating component that uses
|
|
19
18
|
* different icons for filled and empty icons.
|
|
20
19
|
*/
|
|
21
|
-
emptyIcon?: JSX.Element;
|
|
20
|
+
emptyIcon?: React.JSX.Element;
|
|
22
21
|
/**
|
|
23
22
|
* @description
|
|
24
23
|
* The CSS color to use on the filled rating icon
|
|
@@ -32,7 +31,7 @@ export interface RatingOptions {
|
|
|
32
31
|
* with the emptyIcon prop
|
|
33
32
|
* Default is <IconStar />
|
|
34
33
|
*/
|
|
35
|
-
icon?: JSX.Element;
|
|
34
|
+
icon?: React.JSX.Element;
|
|
36
35
|
/**
|
|
37
36
|
* @description
|
|
38
37
|
* The max rating integer value
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Property } from 'csstype';
|
|
3
2
|
import { WebDesignToken } from '@aws-amplify/ui';
|
|
4
3
|
import type { BoxShadowKeys, BorderWidthKeys, ColorKeys, FontFamilyKeys, FontSizeKeys, FontWeightKeys, LineHeightKeys, OpacityKeys, RadiiKeys, SpaceKeys, TransformKeys } from './theme';
|
|
@@ -28,7 +28,7 @@ export type PrimitiveProps<Props extends BaseViewProps, Element extends ElementT
|
|
|
28
28
|
* to allow usage in React 16
|
|
29
29
|
*/
|
|
30
30
|
interface JSElementForwardRefRenderFunction<T, P = {}> {
|
|
31
|
-
(props: P, ref: React.ForwardedRef<T>): JSX.Element | null;
|
|
31
|
+
(props: P, ref: React.ForwardedRef<T>): React.JSX.Element | null;
|
|
32
32
|
displayName?: string | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* defaultProps are not supported on render functions
|
|
@@ -50,11 +50,11 @@ interface JSXElementForwardRefExoticComponent<P = {}> {
|
|
|
50
50
|
(props: P): React.ReactElement | null;
|
|
51
51
|
defaultProps?: Partial<P> | undefined;
|
|
52
52
|
displayName?: string | undefined;
|
|
53
|
-
propTypes?:
|
|
53
|
+
propTypes?: any;
|
|
54
54
|
readonly $$typeof: symbol;
|
|
55
55
|
}
|
|
56
56
|
export interface ForwardRefPrimitive<Props extends BaseViewProps, DefaultElement extends ElementType> extends JSXElementForwardRefExoticComponent<PrimitiveProps<Props, DefaultElement>> {
|
|
57
|
-
<Element extends ElementType = DefaultElement>(props: PrimitiveProps<Props, Element>): React.ReactElement | null;
|
|
57
|
+
<Element extends ElementType = DefaultElement>(props: PrimitiveProps<Props, Element>): React.ReactElement<Props, Element> | null;
|
|
58
58
|
}
|
|
59
59
|
/** @deprecated For internal use only */
|
|
60
60
|
export interface BaseViewProps extends BaseComponentProps, BaseStyleProps, AriaProps {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { BaseViewProps, ElementType, ForwardRefPrimitive, Primitive } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* Updates the return type for primitives wrapped in `React.forwardRef` to
|
|
@@ -8,4 +9,4 @@ import { BaseViewProps, ElementType, ForwardRefPrimitive, Primitive } from '../t
|
|
|
8
9
|
* @param primitive UI Primitive to be wrapped with `React.forwardRef`
|
|
9
10
|
* @returns ForwaredRef wrapped UI Primitive
|
|
10
11
|
*/
|
|
11
|
-
export declare const primitiveWithForwardRef: <P extends BaseViewProps, E extends ElementType>(primitive: Primitive<P
|
|
12
|
+
export declare const primitiveWithForwardRef: <P extends BaseViewProps, E extends ElementType>(primitive: Primitive<React.PropsWithoutRef<P>, E>) => ForwardRefPrimitive<P, E>;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.8.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.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.7.
|
|
59
|
-
"@aws-amplify/ui-react-core": "3.
|
|
58
|
+
"@aws-amplify/ui": "6.7.2",
|
|
59
|
+
"@aws-amplify/ui-react-core": "3.2.0",
|
|
60
60
|
"@radix-ui/react-direction": "1.0.0",
|
|
61
61
|
"@radix-ui/react-dropdown-menu": "1.0.0",
|
|
62
62
|
"@radix-ui/react-slider": "1.0.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@aws-amplify/core": "*",
|
|
70
70
|
"aws-amplify": "^6.9.0",
|
|
71
|
-
"react": "^16.14.0 || ^17.0 || ^18.0",
|
|
72
|
-
"react-dom": "^16.14
|
|
71
|
+
"react": "^16.14.0 || ^17.0 || ^18.0 || ^19",
|
|
72
|
+
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"aws-amplify": {
|
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@svgr/core": "^5.5.0",
|
|
81
81
|
"@types/qrcode": "^1.4.2",
|
|
82
|
-
"jest-matchmedia-mock": "^1.1.0"
|
|
83
|
-
"react-router-dom": "^6.2.1"
|
|
82
|
+
"jest-matchmedia-mock": "^1.1.0"
|
|
84
83
|
},
|
|
85
84
|
"sideEffects": [
|
|
86
85
|
"dist/**/*.css"
|