@aws-amplify/ui 5.8.0 → 6.0.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/helpers/accountSettings/utils.mjs +33 -1
- package/dist/esm/helpers/accountSettings/validator.mjs +120 -1
- package/dist/esm/helpers/authenticator/actor.mjs +20 -1
- package/dist/esm/helpers/authenticator/constants.mjs +144 -1
- package/dist/esm/helpers/authenticator/defaultAuthHubHandler.mjs +52 -0
- package/dist/esm/helpers/authenticator/facade.mjs +137 -1
- package/dist/esm/helpers/authenticator/form.mjs +43 -1
- package/dist/esm/helpers/authenticator/formFields/defaults.mjs +132 -1
- package/dist/esm/helpers/authenticator/formFields/formFields.mjs +62 -1
- package/dist/esm/helpers/authenticator/formFields/utils.mjs +35 -0
- package/dist/esm/helpers/authenticator/getRoute.mjs +47 -0
- package/dist/esm/helpers/authenticator/textUtil.mjs +112 -1
- package/dist/esm/helpers/authenticator/utils.mjs +38 -1
- package/dist/esm/helpers/utils.mjs +5 -1
- package/dist/esm/i18n/country-dial-codes.mjs +210 -1
- package/dist/esm/i18n/dictionaries/authenticator/de.mjs +87 -1
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.mjs +83 -1
- package/dist/esm/i18n/dictionaries/authenticator/en.mjs +74 -1
- package/dist/esm/i18n/dictionaries/authenticator/es.mjs +83 -1
- package/dist/esm/i18n/dictionaries/authenticator/fr.mjs +92 -1
- package/dist/esm/i18n/dictionaries/authenticator/he.mjs +54 -1
- package/dist/esm/i18n/dictionaries/authenticator/id.mjs +96 -1
- package/dist/esm/i18n/dictionaries/authenticator/it.mjs +82 -1
- package/dist/esm/i18n/dictionaries/authenticator/ja.mjs +86 -1
- package/dist/esm/i18n/dictionaries/authenticator/kr.mjs +71 -1
- package/dist/esm/i18n/dictionaries/authenticator/nb.mjs +95 -1
- package/dist/esm/i18n/dictionaries/authenticator/nl.mjs +67 -1
- package/dist/esm/i18n/dictionaries/authenticator/pl.mjs +71 -1
- package/dist/esm/i18n/dictionaries/authenticator/pt.mjs +61 -1
- package/dist/esm/i18n/dictionaries/authenticator/ru.mjs +61 -1
- package/dist/esm/i18n/dictionaries/authenticator/sv.mjs +82 -1
- package/dist/esm/i18n/dictionaries/authenticator/tr.mjs +76 -1
- package/dist/esm/i18n/dictionaries/authenticator/ua.mjs +84 -1
- package/dist/esm/i18n/dictionaries/authenticator/zh.mjs +74 -1
- package/dist/esm/i18n/dictionaries/index.mjs +47 -1
- package/dist/esm/i18n/translations.mjs +67 -1
- package/dist/esm/index.mjs +28 -1
- package/dist/esm/machines/authenticator/actions.mjs +188 -1
- package/dist/esm/machines/authenticator/actors/forgotPassword.mjs +184 -0
- package/dist/esm/machines/authenticator/actors/signIn.mjs +328 -1
- package/dist/esm/machines/authenticator/actors/signOut.mjs +28 -1
- package/dist/esm/machines/authenticator/actors/signUp.mjs +295 -0
- package/dist/esm/machines/authenticator/actors/verifyUserAttributes.mjs +106 -0
- package/dist/esm/machines/authenticator/defaultServices.mjs +102 -1
- package/dist/esm/machines/authenticator/guards.mjs +70 -0
- package/dist/esm/machines/authenticator/index.mjs +368 -1
- package/dist/esm/machines/authenticator/utils.mjs +71 -0
- package/dist/esm/theme/breakpoints.mjs +14 -1
- package/dist/esm/theme/createTheme.mjs +156 -1
- package/dist/esm/theme/defaultDarkModeOverride.mjs +128 -1
- package/dist/esm/theme/defaultTheme.mjs +10 -1
- package/dist/esm/theme/tokens/borderWidths.mjs +7 -1
- package/dist/esm/theme/tokens/colors.mjs +166 -1
- package/dist/esm/theme/tokens/components/accordion.mjs +47 -0
- package/dist/esm/theme/tokens/components/alert.mjs +35 -1
- package/dist/esm/theme/tokens/components/authenticator.mjs +39 -1
- package/dist/esm/theme/tokens/components/autocomplete.mjs +42 -1
- package/dist/esm/theme/tokens/components/badge.mjs +44 -1
- package/dist/esm/theme/tokens/components/breadcrumbs.mjs +34 -1
- package/dist/esm/theme/tokens/components/button.mjs +685 -1
- package/dist/esm/theme/tokens/components/card.mjs +27 -1
- package/dist/esm/theme/tokens/components/checkbox.mjs +87 -1
- package/dist/esm/theme/tokens/components/checkboxField.mjs +8 -1
- package/dist/esm/theme/tokens/components/collection.mjs +72 -1
- package/dist/esm/theme/tokens/components/copy.mjs +18 -1
- package/dist/esm/theme/tokens/components/dialCodeSelect.mjs +7 -1
- package/dist/esm/theme/tokens/components/divider.mjs +22 -1
- package/dist/esm/theme/tokens/components/dropZone.mjs +46 -1
- package/dist/esm/theme/tokens/components/field.mjs +20 -1
- package/dist/esm/theme/tokens/components/fieldControl.mjs +131 -1
- package/dist/esm/theme/tokens/components/fieldGroup.mjs +11 -1
- package/dist/esm/theme/tokens/components/fieldMessages.mjs +13 -1
- package/dist/esm/theme/tokens/components/fieldset.mjs +40 -1
- package/dist/esm/theme/tokens/components/flex.mjs +9 -1
- package/dist/esm/theme/tokens/components/heading.mjs +30 -1
- package/dist/esm/theme/tokens/components/highlightMatch.mjs +7 -1
- package/dist/esm/theme/tokens/components/icon.mjs +6 -1
- package/dist/esm/theme/tokens/components/image.mjs +8 -1
- package/dist/esm/theme/tokens/components/inAppMessaging.mjs +23 -1
- package/dist/esm/theme/tokens/components/index.mjs +111 -1
- package/dist/esm/theme/tokens/components/input.mjs +12 -1
- package/dist/esm/theme/tokens/components/link.mjs +9 -1
- package/dist/esm/theme/tokens/components/liveness.mjs +7 -1
- package/dist/esm/theme/tokens/components/loader.mjs +42 -1
- package/dist/esm/theme/tokens/components/menu.mjs +27 -1
- package/dist/esm/theme/tokens/components/message.mjs +102 -1
- package/dist/esm/theme/tokens/components/pagination.mjs +40 -1
- package/dist/esm/theme/tokens/components/passwordField.mjs +38 -1
- package/dist/esm/theme/tokens/components/phoneNumberField.mjs +10 -1
- package/dist/esm/theme/tokens/components/placeholder.mjs +18 -1
- package/dist/esm/theme/tokens/components/radio.mjs +67 -1
- package/dist/esm/theme/tokens/components/radioGroup.mjs +19 -1
- package/dist/esm/theme/tokens/components/rating.mjs +9 -1
- package/dist/esm/theme/tokens/components/searchField.mjs +39 -1
- package/dist/esm/theme/tokens/components/select.mjs +63 -1
- package/dist/esm/theme/tokens/components/selectField.mjs +16 -1
- package/dist/esm/theme/tokens/components/sliderField.mjs +70 -1
- package/dist/esm/theme/tokens/components/stepperField.mjs +33 -1
- package/dist/esm/theme/tokens/components/storagemanager.mjs +97 -1
- package/dist/esm/theme/tokens/components/switchField.mjs +61 -1
- package/dist/esm/theme/tokens/components/table.mjs +105 -1
- package/dist/esm/theme/tokens/components/tabs.mjs +59 -1
- package/dist/esm/theme/tokens/components/text.mjs +28 -1
- package/dist/esm/theme/tokens/components/textAreaField.mjs +11 -1
- package/dist/esm/theme/tokens/components/textField.mjs +12 -1
- package/dist/esm/theme/tokens/components/toggleButton.mjs +96 -1
- package/dist/esm/theme/tokens/components/toggleButtonGroup.mjs +7 -1
- package/dist/esm/theme/tokens/fontSizes.mjs +14 -1
- package/dist/esm/theme/tokens/fontWeights.mjs +13 -1
- package/dist/esm/theme/tokens/fonts.mjs +19 -1
- package/dist/esm/theme/tokens/index.mjs +65 -1
- package/dist/esm/theme/tokens/lineHeights.mjs +7 -1
- package/dist/esm/theme/tokens/opacities.mjs +15 -1
- package/dist/esm/theme/tokens/outlineOffsets.mjs +7 -1
- package/dist/esm/theme/tokens/outlineWidths.mjs +7 -1
- package/dist/esm/theme/tokens/radii.mjs +11 -1
- package/dist/esm/theme/tokens/shadows.mjs +28 -1
- package/dist/esm/theme/tokens/space.mjs +29 -1
- package/dist/esm/theme/tokens/time.mjs +7 -1
- package/dist/esm/theme/tokens/transforms.mjs +10 -1
- package/dist/esm/theme/utils.mjs +81 -1
- package/dist/esm/types/authenticator/attributes.mjs +41 -1
- package/dist/esm/types/authenticator/user.mjs +18 -1
- package/dist/esm/types/authenticator/utils.mjs +5 -1
- package/dist/esm/types/primitives/componentClassName.mjs +164 -1
- package/dist/esm/utils/classNames.mjs +39 -0
- package/dist/esm/utils/setUserAgent/constants.mjs +43 -0
- package/dist/esm/utils/setUserAgent/setUserAgent.mjs +65 -0
- package/dist/esm/utils/utils.mjs +227 -0
- package/dist/esm/validators/index.mjs +19 -1
- package/dist/index.js +8396 -1
- package/dist/styles/StorageManager.css +138 -0
- package/dist/styles/StorageManager.layer.css +140 -0
- package/dist/styles/_fieldControl.css +0 -0
- package/dist/styles/_fieldControl.layer.css +3 -0
- package/dist/styles/accordion.css +64 -0
- package/dist/styles/accordion.layer.css +66 -0
- package/dist/styles/alert.css +44 -0
- package/dist/styles/alert.layer.css +46 -0
- package/dist/styles/authenticator.css +72 -0
- package/dist/styles/authenticator.layer.css +74 -0
- package/dist/styles/autocomplete.css +48 -0
- package/dist/styles/autocomplete.layer.css +50 -0
- package/dist/styles/badge.css +35 -0
- package/dist/styles/badge.layer.css +37 -0
- package/dist/styles/base.css +1491 -0
- package/dist/styles/base.layer.css +1493 -0
- package/dist/styles/breadcrumbs.css +40 -0
- package/dist/styles/breadcrumbs.layer.css +42 -0
- package/dist/styles/button.css +1122 -0
- package/dist/styles/button.layer.css +1124 -0
- package/dist/styles/card.css +26 -0
- package/dist/styles/card.layer.css +28 -0
- package/dist/styles/checkbox.css +95 -0
- package/dist/styles/checkbox.layer.css +97 -0
- package/dist/styles/checkboxField.css +6 -0
- package/dist/styles/checkboxField.layer.css +8 -0
- package/dist/styles/collection.css +70 -0
- package/dist/styles/collection.layer.css +72 -0
- package/dist/styles/copy.css +27 -0
- package/dist/styles/copy.layer.css +29 -0
- package/dist/styles/dialCodeSelect.css +3 -0
- package/dist/styles/dialCodeSelect.layer.css +5 -0
- package/dist/styles/divider.css +47 -0
- package/dist/styles/divider.layer.css +49 -0
- package/dist/styles/dropZone.css +45 -0
- package/dist/styles/dropZone.layer.css +47 -0
- package/dist/styles/field.css +17 -0
- package/dist/styles/field.layer.css +19 -0
- package/dist/styles/fieldGroup.css +130 -0
- package/dist/styles/fieldGroup.layer.css +132 -0
- package/dist/styles/fieldMessages.css +10 -0
- package/dist/styles/fieldMessages.layer.css +12 -0
- package/dist/styles/fieldModifiers.css +15 -0
- package/dist/styles/fieldModifiers.layer.css +17 -0
- package/dist/styles/fieldset.css +37 -0
- package/dist/styles/fieldset.layer.css +39 -0
- package/dist/styles/flex.css +8 -0
- package/dist/styles/flex.layer.css +10 -0
- package/dist/styles/grid.css +3 -0
- package/dist/styles/grid.layer.css +5 -0
- package/dist/styles/heading.css +40 -0
- package/dist/styles/heading.layer.css +42 -0
- package/dist/styles/highlightMatch.css +3 -0
- package/dist/styles/highlightMatch.layer.css +5 -0
- package/dist/styles/icon.css +14 -0
- package/dist/styles/icon.layer.css +16 -0
- package/dist/styles/image.css +9 -0
- package/dist/styles/image.layer.css +11 -0
- package/dist/styles/inAppMessaging.css +179 -0
- package/dist/styles/inAppMessaging.layer.css +181 -0
- package/dist/styles/input.css +83 -0
- package/dist/styles/input.layer.css +85 -0
- package/dist/styles/link.css +26 -0
- package/dist/styles/link.layer.css +28 -0
- package/dist/styles/liveness.css +374 -0
- package/dist/styles/liveness.layer.css +376 -0
- package/dist/styles/loader.css +108 -0
- package/dist/styles/loader.layer.css +110 -0
- package/dist/styles/menu.css +54 -0
- package/dist/styles/menu.layer.css +56 -0
- package/dist/styles/message.css +111 -0
- package/dist/styles/message.layer.css +113 -0
- package/dist/styles/pagination.css +41 -0
- package/dist/styles/pagination.layer.css +43 -0
- package/dist/styles/passwordField.css +49 -0
- package/dist/styles/passwordField.layer.css +51 -0
- package/dist/styles/phoneNumberField.css +30 -0
- package/dist/styles/phoneNumberField.layer.css +32 -0
- package/dist/styles/placeholder.css +31 -0
- package/dist/styles/placeholder.layer.css +33 -0
- package/dist/styles/radio.css +82 -0
- package/dist/styles/radio.layer.css +84 -0
- package/dist/styles/radioGroupField.css +25 -0
- package/dist/styles/radioGroupField.layer.css +27 -0
- package/dist/styles/radiogroup.css +5 -0
- package/dist/styles/radiogroup.layer.css +7 -0
- package/dist/styles/rating.css +33 -0
- package/dist/styles/rating.layer.css +35 -0
- package/dist/styles/reset.css +76 -0
- package/dist/styles/reset.layer.css +78 -0
- package/dist/styles/scrollView.css +4 -0
- package/dist/styles/scrollView.layer.css +6 -0
- package/dist/styles/searchField.css +29 -0
- package/dist/styles/searchField.layer.css +31 -0
- package/dist/styles/select.css +128 -0
- package/dist/styles/select.layer.css +130 -0
- package/dist/styles/selectField.css +18 -0
- package/dist/styles/selectField.layer.css +20 -0
- package/dist/styles/sliderField.css +143 -0
- package/dist/styles/sliderField.layer.css +145 -0
- package/dist/styles/stepperField.css +77 -0
- package/dist/styles/stepperField.layer.css +79 -0
- package/dist/styles/switchField.css +76 -0
- package/dist/styles/switchField.layer.css +78 -0
- package/dist/styles/table.css +146 -0
- package/dist/styles/table.layer.css +148 -0
- package/dist/styles/tabs.css +87 -0
- package/dist/styles/tabs.layer.css +89 -0
- package/dist/styles/text.css +40 -0
- package/dist/styles/text.layer.css +42 -0
- package/dist/styles/textArea.css +71 -0
- package/dist/styles/textArea.layer.css +73 -0
- package/dist/styles/textAreaField.css +12 -0
- package/dist/styles/textAreaField.layer.css +14 -0
- package/dist/styles/textField.css +14 -0
- package/dist/styles/textField.layer.css +16 -0
- package/dist/styles/toggleButton.css +280 -0
- package/dist/styles/toggleButton.layer.css +282 -0
- package/dist/styles/toggleButtonGroup.css +31 -0
- package/dist/styles/toggleButtonGroup.layer.css +33 -0
- package/dist/styles/visuallyHidden.css +12 -0
- package/dist/styles/visuallyHidden.layer.css +14 -0
- package/dist/styles.css +423 -869
- package/dist/styles.layer.css +6115 -0
- package/dist/theme.css +103 -157
- package/dist/types/helpers/accountSettings/utils.d.ts +1 -3
- package/dist/types/helpers/authenticator/actor.d.ts +1 -1
- package/dist/types/helpers/authenticator/constants.d.ts +5 -0
- package/dist/types/helpers/authenticator/defaultAuthHubHandler.d.ts +15 -0
- package/dist/types/helpers/authenticator/facade.d.ts +35 -6
- package/dist/types/helpers/authenticator/formFields/defaults.d.ts +3 -1
- package/dist/types/helpers/authenticator/formFields/formFields.d.ts +2 -1
- package/dist/types/helpers/authenticator/formFields/index.d.ts +1 -1
- package/dist/types/helpers/authenticator/formFields/{util.d.ts → utils.d.ts} +2 -0
- package/dist/types/helpers/authenticator/getRoute.d.ts +2 -0
- package/dist/types/helpers/authenticator/index.d.ts +2 -1
- package/dist/types/helpers/authenticator/textUtil.d.ts +8 -7
- package/dist/types/{types/authenticator/stateMachine/authMachine.d.ts → helpers/authenticator/types.d.ts} +5 -5
- package/dist/types/helpers/authenticator/utils.d.ts +0 -25
- package/dist/types/helpers/index.d.ts +0 -1
- package/dist/types/helpers/utils.d.ts +2 -2
- package/dist/types/i18n/translations.d.ts +2 -3
- package/dist/types/machines/authenticator/actions.d.ts +4 -62
- package/dist/types/machines/authenticator/actors/{resetPassword.d.ts → forgotPassword.d.ts} +3 -3
- package/dist/types/machines/authenticator/actors/index.d.ts +3 -1
- package/dist/types/machines/authenticator/actors/signIn.d.ts +3 -3
- package/dist/types/machines/authenticator/actors/signOut.d.ts +2 -2
- package/dist/types/machines/authenticator/{signUp.d.ts → actors/signUp.d.ts} +3 -3
- package/dist/types/machines/authenticator/actors/verifyUserAttributes.d.ts +5 -0
- package/dist/types/machines/authenticator/defaultServices.d.ts +208 -28
- package/dist/types/machines/authenticator/getAuthenticatorConfig.d.ts +14 -0
- package/dist/types/machines/authenticator/guards.d.ts +4 -0
- package/dist/types/machines/authenticator/index.d.ts +4 -2
- package/dist/types/machines/authenticator/types.d.ts +125 -0
- package/dist/types/machines/authenticator/utils.d.ts +7 -0
- package/dist/types/machines/index.d.ts +1 -0
- package/dist/types/theme/tokens/borderWidths.d.ts +2 -2
- package/dist/types/theme/tokens/colors.d.ts +7 -9
- package/dist/types/theme/tokens/components/accordion.d.ts +12 -0
- package/dist/types/theme/tokens/components/index.d.ts +2 -4
- package/dist/types/theme/tokens/components/radioGroup.d.ts +1 -1
- package/dist/types/theme/tokens/components/select.d.ts +6 -2
- package/dist/types/theme/tokens/components/storagemanager.d.ts +18 -3
- package/dist/types/theme/tokens/components/tabs.d.ts +4 -3
- package/dist/types/theme/tokens/fontSizes.d.ts +2 -2
- package/dist/types/theme/tokens/fontWeights.d.ts +2 -2
- package/dist/types/theme/tokens/fonts.d.ts +2 -2
- package/dist/types/theme/tokens/lineHeights.d.ts +2 -2
- package/dist/types/theme/tokens/opacities.d.ts +2 -2
- package/dist/types/theme/tokens/outlineOffsets.d.ts +2 -2
- package/dist/types/theme/tokens/outlineWidths.d.ts +2 -2
- package/dist/types/theme/tokens/radii.d.ts +2 -2
- package/dist/types/theme/tokens/shadows.d.ts +2 -2
- package/dist/types/theme/tokens/space.d.ts +2 -2
- package/dist/types/theme/tokens/time.d.ts +2 -2
- package/dist/types/theme/tokens/types/designToken.d.ts +12 -6
- package/dist/types/theme/types.d.ts +5 -1
- package/dist/types/types/authenticator/attributes.d.ts +10 -4
- package/dist/types/types/authenticator/form.d.ts +7 -6
- package/dist/types/types/authenticator/index.d.ts +0 -1
- package/dist/types/types/authenticator/user.d.ts +3 -29
- package/dist/types/types/authenticator/validator.d.ts +2 -2
- package/dist/types/types/displayText.d.ts +84 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/primitives/componentClassName.d.ts +162 -180
- package/dist/types/types/util.d.ts +0 -5
- package/dist/types/utils/classNames.d.ts +4 -0
- package/dist/types/utils/index.d.ts +3 -135
- package/dist/types/utils/setUserAgent/constants.d.ts +7 -0
- package/dist/types/utils/setUserAgent/index.d.ts +1 -0
- package/dist/types/utils/setUserAgent/setUserAgent.d.ts +19 -0
- package/dist/types/utils/utils.d.ts +147 -0
- package/dist/types/validators/index.d.ts +2 -2
- package/package.json +5 -19
- package/dist/esm/helpers/authenticator/context.mjs +0 -1
- package/dist/esm/helpers/authenticator/formFields/util.mjs +0 -1
- package/dist/esm/helpers/storage/fileUploader/utils/uploader.mjs +0 -1
- package/dist/esm/machines/authenticator/actors/resetPassword.mjs +0 -1
- package/dist/esm/machines/authenticator/signUp.mjs +0 -1
- package/dist/esm/theme/tokens/components/expander.mjs +0 -1
- package/dist/esm/theme/tokens/components/fileUploader.mjs +0 -1
- package/dist/esm/utils/index.mjs +0 -1
- package/dist/types/helpers/authenticator/context.d.ts +0 -13
- package/dist/types/helpers/storage/fileUploader/index.d.ts +0 -1
- package/dist/types/helpers/storage/fileUploader/utils/index.d.ts +0 -1
- package/dist/types/helpers/storage/fileUploader/utils/uploader.d.ts +0 -28
- package/dist/types/helpers/storage/index.d.ts +0 -1
- package/dist/types/theme/tokens/components/expander.d.ts +0 -22
- package/dist/types/theme/tokens/components/fileUploader.d.ts +0 -23
- package/dist/types/types/authenticator/stateMachine/context.d.ts +0 -109
- package/dist/types/types/authenticator/stateMachine/event.d.ts +0 -17
- package/dist/types/types/authenticator/stateMachine/index.d.ts +0 -4
- package/dist/types/types/authenticator/stateMachine/state.d.ts +0 -10
|
@@ -1,35 +1,12 @@
|
|
|
1
|
-
import { ChallengeName, CognitoUser } from 'amazon-cognito-identity-js';
|
|
2
|
-
/** Known challenge names */
|
|
3
|
-
export type AuthChallengeName = ChallengeName;
|
|
4
1
|
/** Contact destinations that we can send user confirmation code to */
|
|
5
2
|
export type ContactMethod = 'Email' | 'Phone Number';
|
|
6
3
|
/** Federated IDPs that Authenticator supports */
|
|
7
4
|
export declare enum FederatedIdentityProviders {
|
|
8
|
-
Apple = "
|
|
9
|
-
Amazon = "
|
|
5
|
+
Apple = "Apple",
|
|
6
|
+
Amazon = "Amazon",
|
|
10
7
|
Facebook = "Facebook",
|
|
11
8
|
Google = "Google"
|
|
12
9
|
}
|
|
13
|
-
/** Known cognito user attributes */
|
|
14
|
-
export interface CognitoAttributes {
|
|
15
|
-
email: string;
|
|
16
|
-
phone_number: string;
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Amplify User Interface
|
|
21
|
-
*/
|
|
22
|
-
export interface AmplifyUser extends CognitoUser {
|
|
23
|
-
username?: string;
|
|
24
|
-
attributes?: CognitoAttributes;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated please use `AmplifyUser`
|
|
28
|
-
*
|
|
29
|
-
* Cognito User Interface
|
|
30
|
-
*/
|
|
31
|
-
export interface CognitoUserAmplify extends AmplifyUser {
|
|
32
|
-
}
|
|
33
10
|
/**
|
|
34
11
|
* Cognito user contact method types that have not been verified as valid
|
|
35
12
|
*/
|
|
@@ -37,10 +14,7 @@ export declare enum UnverifiedContactMethodType {
|
|
|
37
14
|
Email = "email",
|
|
38
15
|
PhoneNumber = "phone_number"
|
|
39
16
|
}
|
|
40
|
-
|
|
41
|
-
* Cognito user contact methods that have not been verified as valid
|
|
42
|
-
*/
|
|
43
|
-
export interface UnverifiedContactMethods {
|
|
17
|
+
export interface UnverifiedUserAttributes {
|
|
44
18
|
email?: string;
|
|
45
19
|
phone_number?: string;
|
|
46
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordSettings } from '.';
|
|
2
|
-
import { AuthFormData } from './form';
|
|
2
|
+
import { AuthFormData, AuthTouchData } from './form';
|
|
3
3
|
/**
|
|
4
4
|
* Maps each input to its validation error, if any
|
|
5
5
|
*/
|
|
@@ -12,4 +12,4 @@ export type SignInResult = string;
|
|
|
12
12
|
/**
|
|
13
13
|
* Validates the given formData. This can be synchronous or asynchronous.
|
|
14
14
|
*/
|
|
15
|
-
export type Validator = (formData: AuthFormData, touchData?:
|
|
15
|
+
export type Validator = (formData: AuthFormData, touchData?: AuthTouchData, passwordSettings?: PasswordSettings) => ValidatorResult | Promise<ValidatorResult>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
type FieldLabelSuffix = 'FieldLabel';
|
|
2
|
+
type FieldPlaceholderSuffix = 'FieldPlaceholder';
|
|
3
|
+
/**
|
|
4
|
+
* For field component display text keys, customizable text properties use
|
|
5
|
+
* either the label or placeholder suffixes respectively, example:
|
|
6
|
+
* ```ts
|
|
7
|
+
* type UsernameFieldPlaceholderKey = `username${FieldSuffix}`;
|
|
8
|
+
*
|
|
9
|
+
* const usernameFieldPlaceholderKey: UsernameFieldPlaceholderKey =
|
|
10
|
+
* 'usernameFieldPlaceholder';
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
type FieldSuffix = FieldLabelSuffix | FieldPlaceholderSuffix;
|
|
14
|
+
/**
|
|
15
|
+
* Non-field display text keys (button titles, descriptive text, etc) are suffixed
|
|
16
|
+
* with `'Text'`, example:
|
|
17
|
+
* ```ts
|
|
18
|
+
* type SubmitButtonTextKey = `submitButton${TextSuffix}`;
|
|
19
|
+
*
|
|
20
|
+
* const submitButtonTextKey: SubmitButtonTextKey = 'submitButtonText';
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
type TextSuffix = 'Text';
|
|
24
|
+
/**
|
|
25
|
+
* Dynamic display text function keys are prefixed with `'get'`, example:
|
|
26
|
+
* ```ts
|
|
27
|
+
* type GetCopyButtonTextKey = `${GetPrefix}CopyButton${TextSuffix}`;
|
|
28
|
+
*
|
|
29
|
+
* const getCopyButtonTextKey: GetCopyButtonTextKey = 'getCopyButtonText';
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
type GetPrefix = 'get';
|
|
33
|
+
/**
|
|
34
|
+
* `DisplayTextBody` is intentionally unrestricted, but should describe
|
|
35
|
+
* the context of its usage, for example the component name that renders
|
|
36
|
+
* the text:
|
|
37
|
+
* ```ts
|
|
38
|
+
* type GetCopyButtonTextKey = `${GetPrefix}${DisplayTextBody}${TextSuffix}`;
|
|
39
|
+
*
|
|
40
|
+
* const getCopyButtonTextKey: GetCopyButtonTextKey = 'getCopyButtonText';
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* An additional caveat of `DisplayTextBody` is that it functions as
|
|
44
|
+
* the prefix for generic display text as there is no additonal prefix
|
|
45
|
+
* required, example:
|
|
46
|
+
* ```ts
|
|
47
|
+
* type SubmitButtonTextKey = `${DisplayTextBody}${TextSuffix}`;
|
|
48
|
+
*
|
|
49
|
+
* const submitButtonText: SubmitButtonTextKey = 'submitButtonText';
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
type DisplayTextBody = string;
|
|
53
|
+
type DisplayTextSuffix = FieldSuffix | TextSuffix;
|
|
54
|
+
type GetDisplayTextKey = `${GetPrefix}${DisplayTextBody}${DisplayTextSuffix}`;
|
|
55
|
+
type DisplayTextKey = `${DisplayTextBody}${DisplayTextSuffix}`;
|
|
56
|
+
type DisplayTextBase = Record<GetDisplayTextKey, (...args: any) => string | undefined> | Record<DisplayTextKey, string>;
|
|
57
|
+
/**
|
|
58
|
+
* Display Text type utility for creating standardized `DisplayText` interfaces
|
|
59
|
+
* for usage as public exports and extended with `Required` for default values.
|
|
60
|
+
*
|
|
61
|
+
* Example:
|
|
62
|
+
* ```ts
|
|
63
|
+
* type GetCopyButtonText = (hasCopied: boolean) => string | undefined;
|
|
64
|
+
*
|
|
65
|
+
* // public export, allows optional key/values
|
|
66
|
+
* type SomeComponentDisplayText = DisplayTextTemplate<{
|
|
67
|
+
* getCopyButtonText?: GetCopyButtonText;
|
|
68
|
+
* submitButtonText?: string;
|
|
69
|
+
* }>;
|
|
70
|
+
*
|
|
71
|
+
* // default interface
|
|
72
|
+
* type SomeComponentDisplayTextDefault = Required<SomeComponentDisplayText>;
|
|
73
|
+
*
|
|
74
|
+
* // default values
|
|
75
|
+
* const someComponentDisplayText: SomeComponentDisplayTextDefault = {
|
|
76
|
+
* getCopyButtonText: (hasCopied) => (hasCopied ? 'Copied' : 'Copy'),
|
|
77
|
+
* submitButtonText: 'Submit'
|
|
78
|
+
* };
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export type DisplayTextTemplate<T extends DisplayTextBase> = {
|
|
82
|
+
[K in keyof T]: K extends GetDisplayTextKey | DisplayTextKey ? T[K] : never;
|
|
83
|
+
};
|
|
84
|
+
export {};
|
|
@@ -1,181 +1,163 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
Table = "amplify-table",
|
|
164
|
-
TableCaption = "amplify-table__caption",
|
|
165
|
-
TableBody = "amplify-table__body",
|
|
166
|
-
TableTd = "amplify-table__td",
|
|
167
|
-
TableTh = "amplify-table__th",
|
|
168
|
-
TableFoot = "amplify-table__foot",
|
|
169
|
-
TableHead = "amplify-table__head",
|
|
170
|
-
TableRow = "amplify-table__row",
|
|
171
|
-
Tabs = "amplify-tabs",
|
|
172
|
-
TabItems = "amplify-tabs-item",
|
|
173
|
-
Text = "amplify-text",
|
|
174
|
-
Textarea = "amplify-textarea",
|
|
175
|
-
TextAreaField = "amplify-textareafield",
|
|
176
|
-
TextField = "amplify-textfield",
|
|
177
|
-
ToggleButton = "amplify-togglebutton",
|
|
178
|
-
ToggleButtonGroup = "amplify-togglebuttongroup",
|
|
179
|
-
VisuallyHidden = "amplify-visually-hidden"
|
|
180
|
-
}
|
|
1
|
+
export declare const ComponentClassName: {
|
|
2
|
+
readonly Accordion: "amplify-accordion";
|
|
3
|
+
readonly AccordionItem: "amplify-accordion__item";
|
|
4
|
+
readonly AccordionItemTrigger: "amplify-accordion__item__trigger";
|
|
5
|
+
readonly AccordionItemContent: "amplify-accordion__item__content";
|
|
6
|
+
readonly AccordionItemIcon: "amplify-accordion__item__icon";
|
|
7
|
+
readonly Alert: "amplify-alert";
|
|
8
|
+
readonly AlertIcon: "amplify-alert__icon";
|
|
9
|
+
readonly AlertHeading: "amplify-alert__heading";
|
|
10
|
+
readonly AlertBody: "amplify-alert__body";
|
|
11
|
+
readonly AlertDismiss: "amplify-alert__dismiss";
|
|
12
|
+
readonly Autocomplete: "amplify-autocomplete";
|
|
13
|
+
readonly AutocompleteMenu: "amplify-autocomplete__menu";
|
|
14
|
+
readonly AutocompleteMenuEmpty: "amplify-autocomplete__menu--empty";
|
|
15
|
+
readonly AutocompleteMenuFooter: "amplify-autocomplete__menu__footer";
|
|
16
|
+
readonly AutocompleteMenuHeader: "amplify-autocomplete__menu__header";
|
|
17
|
+
readonly AutocompleteMenuLoading: "amplify-autocomplete__menu--loading";
|
|
18
|
+
readonly AutocompleteMenuOption: "amplify-autocomplete__menu__option";
|
|
19
|
+
readonly AutocompleteMenuOptions: "amplify-autocomplete__menu__options";
|
|
20
|
+
readonly Badge: "amplify-badge";
|
|
21
|
+
readonly Breadcrumbs: "amplify-breadcrumbs";
|
|
22
|
+
readonly BreadcrumbsList: "amplify-breadcrumbs__list";
|
|
23
|
+
readonly BreadcrumbsItem: "amplify-breadcrumbs__item";
|
|
24
|
+
readonly BreadcrumbsSeparator: "amplify-breadcrumbs__separator";
|
|
25
|
+
readonly BreadcrumbsLink: "amplify-breadcrumbs__link";
|
|
26
|
+
readonly Button: "amplify-button";
|
|
27
|
+
readonly ButtonGroup: "amplify-buttongroup";
|
|
28
|
+
readonly ButtonLoaderWrapper: "amplify-button__loader-wrapper";
|
|
29
|
+
readonly Card: "amplify-card";
|
|
30
|
+
readonly Checkbox: "amplify-checkbox";
|
|
31
|
+
readonly CheckboxButton: "amplify-checkbox__button";
|
|
32
|
+
readonly CheckboxIcon: "amplify-checkbox__icon";
|
|
33
|
+
readonly CheckboxInput: "amplify-checkbox__input";
|
|
34
|
+
readonly CheckboxLabel: "amplify-checkbox__label";
|
|
35
|
+
readonly CheckboxField: "amplify-checkboxfield";
|
|
36
|
+
readonly Collection: "amplify-collection";
|
|
37
|
+
readonly CollectionItems: "amplify-collection-items";
|
|
38
|
+
readonly CollectionSearch: "amplify-collection-search";
|
|
39
|
+
readonly CollectionPagination: "amplify-collection-pagination";
|
|
40
|
+
readonly CountryCodeSelect: "amplify-countrycodeselect";
|
|
41
|
+
readonly DialCodeSelect: "amplify-dialcodeselect";
|
|
42
|
+
readonly Divider: "amplify-divider";
|
|
43
|
+
readonly DividerLabel: "amplify-divider--label";
|
|
44
|
+
readonly DropZone: "amplify-dropzone";
|
|
45
|
+
readonly Field: "amplify-field";
|
|
46
|
+
readonly FieldDescription: "amplify-field__description";
|
|
47
|
+
readonly FieldErrorMessage: "amplify-field__error-message";
|
|
48
|
+
readonly FieldGroup: "amplify-field-group";
|
|
49
|
+
readonly FieldGroupControl: "amplify-field-group__control";
|
|
50
|
+
readonly FieldGroupOuterEnd: "amplify-field-group__outer-end";
|
|
51
|
+
readonly FieldGroupOuterStart: "amplify-field-group__outer-start";
|
|
52
|
+
readonly FieldGroupInnerEnd: "amplify-field-group__inner-end";
|
|
53
|
+
readonly FieldGroupInnerStart: "amplify-field-group__inner-start";
|
|
54
|
+
readonly FieldGroupIcon: "amplify-field-group__icon";
|
|
55
|
+
readonly FieldGroupIconButton: "amplify-field-group__icon-button";
|
|
56
|
+
readonly FieldGroupHasInnerEnd: "amplify-field-group--has-inner-end";
|
|
57
|
+
readonly FieldGroupHasInnerStart: "amplify-field-group--has-inner-start";
|
|
58
|
+
readonly FieldShowPassword: "amplify-field__show-password";
|
|
59
|
+
readonly FieldGroupFieldWrapper: "amplify-field-group__field-wrapper";
|
|
60
|
+
readonly Fieldset: "amplify-fieldset";
|
|
61
|
+
readonly FieldsetLegend: "amplify-fieldset__legend";
|
|
62
|
+
readonly Flex: "amplify-flex";
|
|
63
|
+
readonly Grid: "amplify-grid";
|
|
64
|
+
readonly Heading: "amplify-heading";
|
|
65
|
+
readonly HighlightMatch: "amplify-highlightmatch";
|
|
66
|
+
readonly HighlightMatchHighlighted: "amplify-highlightmatch__highlighted";
|
|
67
|
+
readonly Icon: "amplify-icon";
|
|
68
|
+
readonly Image: "amplify-image";
|
|
69
|
+
readonly Input: "amplify-input";
|
|
70
|
+
readonly Label: "amplify-label";
|
|
71
|
+
readonly Link: "amplify-link";
|
|
72
|
+
readonly Loader: "amplify-loader";
|
|
73
|
+
readonly LoaderLabel: "amplify-loader__label";
|
|
74
|
+
readonly MenuContent: "amplify-menu__content";
|
|
75
|
+
readonly MenuItem: "amplify-menu__content__item";
|
|
76
|
+
readonly MenuTrigger: "amplify-menu__trigger";
|
|
77
|
+
readonly MenuWrapper: "amplify-menu__wrapper";
|
|
78
|
+
readonly Message: "amplify-message";
|
|
79
|
+
readonly MessageIcon: "amplify-message__icon";
|
|
80
|
+
readonly MessageHeading: "amplify-message__heading";
|
|
81
|
+
readonly MessageBody: "amplify-message__body";
|
|
82
|
+
readonly MessageContent: "amplify-message__content";
|
|
83
|
+
readonly MessageDismiss: "amplify-message__dismiss";
|
|
84
|
+
readonly Pagination: "amplify-pagination";
|
|
85
|
+
readonly PaginationItem: "amplify-pagination__item";
|
|
86
|
+
readonly PasswordField: "amplify-passwordfield";
|
|
87
|
+
readonly PhoneNumberField: "amplify-phonenumberfield";
|
|
88
|
+
readonly Placeholder: "amplify-placeholder";
|
|
89
|
+
readonly Radio: "amplify-radio";
|
|
90
|
+
readonly RadioButton: "amplify-radio__button";
|
|
91
|
+
readonly RadioInput: "amplify-radio__input";
|
|
92
|
+
readonly RadioLabel: "amplify-radio__label";
|
|
93
|
+
readonly RadioGroupField: "amplify-radiogroupfield";
|
|
94
|
+
readonly RadioGroup: "amplify-radiogroup";
|
|
95
|
+
readonly Rating: "amplify-rating";
|
|
96
|
+
readonly RatingItem: "amplify-rating__item";
|
|
97
|
+
readonly RatingIcon: "amplify-rating__icon";
|
|
98
|
+
readonly RatingLabel: "amplify-rating__label";
|
|
99
|
+
readonly ScrollView: "amplify-scrollview";
|
|
100
|
+
readonly SearchField: "amplify-searchfield";
|
|
101
|
+
readonly SearchFieldClear: "amplify-searchfield__clear";
|
|
102
|
+
readonly SearchFieldSearch: "amplify-searchfield__search";
|
|
103
|
+
readonly Select: "amplify-select";
|
|
104
|
+
readonly SelectField: "amplify-selectfield";
|
|
105
|
+
readonly SelectWrapper: "amplify-select__wrapper";
|
|
106
|
+
readonly SelectIcon: "amplify-select__icon";
|
|
107
|
+
readonly SliderField: "amplify-sliderfield";
|
|
108
|
+
readonly SliderFieldGroup: "amplify-sliderfield__group";
|
|
109
|
+
readonly SliderFieldLabel: "amplify-sliderfield__label";
|
|
110
|
+
readonly SliderFieldRange: "amplify-sliderfield__range";
|
|
111
|
+
readonly SliderFieldRoot: "amplify-sliderfield__root";
|
|
112
|
+
readonly SliderFieldThumb: "amplify-sliderfield__thumb";
|
|
113
|
+
readonly SliderFieldTrack: "amplify-sliderfield__track";
|
|
114
|
+
readonly StepperField: "amplify-stepperfield";
|
|
115
|
+
readonly StepperFieldButtonDecrease: "amplify-stepperfield__button--decrease";
|
|
116
|
+
readonly StepperFieldButtonIncrease: "amplify-stepperfield__button--increase";
|
|
117
|
+
readonly StepperFieldInput: "amplify-stepperfield__input";
|
|
118
|
+
readonly StorageImage: "amplify-storageimage";
|
|
119
|
+
readonly StorageManager: "amplify-storagemanager";
|
|
120
|
+
readonly StorageManagerDropZone: "amplify-storagemanager__dropzone";
|
|
121
|
+
readonly StorageManagerDropZoneIcon: "amplify-storagemanager__dropzone__icon";
|
|
122
|
+
readonly StorageManagerDropZoneText: "amplify-storagemanager__dropzone__text";
|
|
123
|
+
readonly StorageManagerFilePicker: "amplify-storagemanager__file__picker";
|
|
124
|
+
readonly StorageManagerFile: "amplify-storagemanager__file";
|
|
125
|
+
readonly StorageManagerFileWrapper: "amplify-storagemanager__file__wrapper";
|
|
126
|
+
readonly StorageManagerFileList: "amplify-storagemanager__file__list";
|
|
127
|
+
readonly StorageManagerFileName: "amplify-storagemanager__file__name";
|
|
128
|
+
readonly StorageManagerFileSize: "amplify-storagemanager__file__size";
|
|
129
|
+
readonly StorageManagerFileInfo: "amplify-storagemanager__file__info";
|
|
130
|
+
readonly StorageManagerFileImage: "amplify-storagemanager__file__image";
|
|
131
|
+
readonly StorageManagerFileMain: "amplify-storagemanager__file__main";
|
|
132
|
+
readonly StorageManagerFileStatus: "amplify-storagemanager__file__status";
|
|
133
|
+
readonly StorageManagerLoader: "amplify-storagemanager__loader";
|
|
134
|
+
readonly StorageManagerPreviewer: "amplify-storagemanager__previewer";
|
|
135
|
+
readonly StorageManagerPreviewerText: "amplify-storagemanager__previewer__text";
|
|
136
|
+
readonly StorageManagerPreviewerActions: "amplify-storagemanager__previewer__actions";
|
|
137
|
+
readonly StorageManagerPreviewerFooter: "amplify-storagemanager__previewer__footer";
|
|
138
|
+
readonly SwitchField: "amplify-switchfield";
|
|
139
|
+
readonly SwitchLabel: "amplify-switch__label";
|
|
140
|
+
readonly SwitchThumb: "amplify-switch__thumb";
|
|
141
|
+
readonly SwitchTrack: "amplify-switch__track";
|
|
142
|
+
readonly SwitchWrapper: "amplify-switch__wrapper";
|
|
143
|
+
readonly Table: "amplify-table";
|
|
144
|
+
readonly TableCaption: "amplify-table__caption";
|
|
145
|
+
readonly TableBody: "amplify-table__body";
|
|
146
|
+
readonly TableTd: "amplify-table__td";
|
|
147
|
+
readonly TableTh: "amplify-table__th";
|
|
148
|
+
readonly TableFoot: "amplify-table__foot";
|
|
149
|
+
readonly TableHead: "amplify-table__head";
|
|
150
|
+
readonly TableRow: "amplify-table__row";
|
|
151
|
+
readonly Tabs: "amplify-tabs";
|
|
152
|
+
readonly TabsList: "amplify-tabs__list";
|
|
153
|
+
readonly TabsItem: "amplify-tabs__item";
|
|
154
|
+
readonly TabsPanel: "amplify-tabs__panel";
|
|
155
|
+
readonly Text: "amplify-text";
|
|
156
|
+
readonly Textarea: "amplify-textarea";
|
|
157
|
+
readonly TextAreaField: "amplify-textareafield";
|
|
158
|
+
readonly TextField: "amplify-textfield";
|
|
159
|
+
readonly ToggleButton: "amplify-togglebutton";
|
|
160
|
+
readonly ToggleButtonGroup: "amplify-togglebuttongroup";
|
|
161
|
+
readonly VisuallyHidden: "amplify-visually-hidden";
|
|
162
|
+
};
|
|
181
163
|
export type Modifiers = string | number | null;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Prevents usage of T from being automatically inferred.
|
|
3
|
-
* see: https://github.com/Microsoft/TypeScript/issues/14829#issuecomment-504042546
|
|
4
|
-
*/
|
|
5
|
-
export type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
6
1
|
/**
|
|
7
2
|
* Improves readability of enumerable properties of an `Object` created from another `Object`,
|
|
8
3
|
* for example types that have been created using `Omit` or `Pick`.
|