@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
package/dist/theme.css
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
:root, [data-amplify-theme] {
|
|
2
|
+
--amplify-components-accordion-background-color: var(--amplify-colors-background-primary);
|
|
3
|
+
--amplify-components-accordion-item-border-color: var(--amplify-colors-border-secondary);
|
|
4
|
+
--amplify-components-accordion-item-border-width: var(--amplify-border-widths-small);
|
|
5
|
+
--amplify-components-accordion-item-border-style: solid;
|
|
6
|
+
--amplify-components-accordion-item-border-radius: var(--amplify-radii-small);
|
|
7
|
+
--amplify-components-accordion-item-trigger-align-items: center;
|
|
8
|
+
--amplify-components-accordion-item-trigger-background-color: var(--amplify-colors-background-primary);
|
|
9
|
+
--amplify-components-accordion-item-trigger-color: inherit;
|
|
10
|
+
--amplify-components-accordion-item-trigger-gap: var(--amplify-space-small);
|
|
11
|
+
--amplify-components-accordion-item-trigger-justify-content: space-between;
|
|
12
|
+
--amplify-components-accordion-item-trigger-padding-block: var(--amplify-space-xs);
|
|
13
|
+
--amplify-components-accordion-item-trigger-padding-inline: var(--amplify-space-small);
|
|
14
|
+
--amplify-components-accordion-item-trigger-hover-color: inherit;
|
|
15
|
+
--amplify-components-accordion-item-trigger-hover-background-color: var(--amplify-colors-overlay-5);
|
|
16
|
+
--amplify-components-accordion-item-trigger-focus-border-color: var(--amplify-colors-border-focus);
|
|
17
|
+
--amplify-components-accordion-item-trigger-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
|
|
18
|
+
--amplify-components-accordion-item-content-color: inherit;
|
|
19
|
+
--amplify-components-accordion-item-content-padding-inline: var(--amplify-space-small);
|
|
20
|
+
--amplify-components-accordion-item-content-padding-block-end: var(--amplify-space-small);
|
|
21
|
+
--amplify-components-accordion-item-content-padding-block-start: var(--amplify-space-xxxs);
|
|
22
|
+
--amplify-components-accordion-item-icon-color: var(--amplify-colors-font-tertiary);
|
|
23
|
+
--amplify-components-accordion-item-icon-transition-duration: var(--amplify-time-medium);
|
|
24
|
+
--amplify-components-accordion-item-icon-transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
2
25
|
--amplify-components-alert-align-items: center;
|
|
3
26
|
--amplify-components-alert-justify-content: space-between;
|
|
4
27
|
--amplify-components-alert-color: var(--amplify-colors-font-primary);
|
|
@@ -49,7 +72,7 @@
|
|
|
49
72
|
--amplify-components-autocomplete-menu-option-transition-duration: var(--amplify-time-short);
|
|
50
73
|
--amplify-components-autocomplete-menu-option-transition-property: background-color, color;
|
|
51
74
|
--amplify-components-autocomplete-menu-option-transition-timing-function: ease;
|
|
52
|
-
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-
|
|
75
|
+
--amplify-components-autocomplete-menu-option-active-background-color: var(--amplify-colors-primary-80);
|
|
53
76
|
--amplify-components-autocomplete-menu-option-active-color: var(--amplify-colors-white);
|
|
54
77
|
--amplify-components-autocomplete-menu-empty-display: flex;
|
|
55
78
|
--amplify-components-autocomplete-menu-loading-align-items: center;
|
|
@@ -117,15 +140,15 @@
|
|
|
117
140
|
--amplify-components-button-border-radius: var(--amplify-components-fieldcontrol-border-radius);
|
|
118
141
|
--amplify-components-button-color: var(--amplify-colors-font-primary);
|
|
119
142
|
--amplify-components-button-hover-color: var(--amplify-colors-font-focus);
|
|
120
|
-
--amplify-components-button-hover-background-color: var(--amplify-colors-
|
|
121
|
-
--amplify-components-button-hover-border-color: var(--amplify-colors-
|
|
143
|
+
--amplify-components-button-hover-background-color: var(--amplify-colors-primary-10);
|
|
144
|
+
--amplify-components-button-hover-border-color: var(--amplify-colors-primary-60);
|
|
122
145
|
--amplify-components-button-focus-color: var(--amplify-colors-font-focus);
|
|
123
|
-
--amplify-components-button-focus-background-color: var(--amplify-colors-
|
|
146
|
+
--amplify-components-button-focus-background-color: var(--amplify-colors-primary-10);
|
|
124
147
|
--amplify-components-button-focus-border-color: var(--amplify-colors-border-focus);
|
|
125
148
|
--amplify-components-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
126
149
|
--amplify-components-button-active-color: var(--amplify-colors-font-active);
|
|
127
|
-
--amplify-components-button-active-background-color: var(--amplify-colors-
|
|
128
|
-
--amplify-components-button-active-border-color: var(--amplify-colors-
|
|
150
|
+
--amplify-components-button-active-background-color: var(--amplify-colors-primary-20);
|
|
151
|
+
--amplify-components-button-active-border-color: var(--amplify-colors-primary-100);
|
|
129
152
|
--amplify-components-button-loading-color: var(--amplify-colors-font-disabled);
|
|
130
153
|
--amplify-components-button-loading-background-color: transparent;
|
|
131
154
|
--amplify-components-button-loading-border-color: var(--amplify-colors-border-tertiary);
|
|
@@ -200,7 +223,7 @@
|
|
|
200
223
|
--amplify-components-button-primary-border-color: transparent;
|
|
201
224
|
--amplify-components-button-primary-border-width: var(--amplify-border-widths-small);
|
|
202
225
|
--amplify-components-button-primary-border-style: solid;
|
|
203
|
-
--amplify-components-button-primary-background-color: var(--amplify-colors-
|
|
226
|
+
--amplify-components-button-primary-background-color: var(--amplify-colors-primary-80);
|
|
204
227
|
--amplify-components-button-primary-color: var(--amplify-colors-font-inverse);
|
|
205
228
|
--amplify-components-button-primary-disabled-border-color: transparent;
|
|
206
229
|
--amplify-components-button-primary-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
@@ -209,14 +232,14 @@
|
|
|
209
232
|
--amplify-components-button-primary-loading-background-color: var(--amplify-colors-background-disabled);
|
|
210
233
|
--amplify-components-button-primary-loading-color: var(--amplify-colors-font-disabled);
|
|
211
234
|
--amplify-components-button-primary-hover-border-color: transparent;
|
|
212
|
-
--amplify-components-button-primary-hover-background-color: var(--amplify-colors-
|
|
235
|
+
--amplify-components-button-primary-hover-background-color: var(--amplify-colors-primary-90);
|
|
213
236
|
--amplify-components-button-primary-hover-color: var(--amplify-colors-font-inverse);
|
|
214
237
|
--amplify-components-button-primary-focus-border-color: transparent;
|
|
215
|
-
--amplify-components-button-primary-focus-background-color: var(--amplify-colors-
|
|
238
|
+
--amplify-components-button-primary-focus-background-color: var(--amplify-colors-primary-90);
|
|
216
239
|
--amplify-components-button-primary-focus-color: var(--amplify-colors-font-inverse);
|
|
217
240
|
--amplify-components-button-primary-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
218
241
|
--amplify-components-button-primary-active-border-color: transparent;
|
|
219
|
-
--amplify-components-button-primary-active-background-color: var(--amplify-colors-
|
|
242
|
+
--amplify-components-button-primary-active-background-color: var(--amplify-colors-primary-100);
|
|
220
243
|
--amplify-components-button-primary-active-color: var(--amplify-colors-font-inverse);
|
|
221
244
|
--amplify-components-button-primary-info-border-color: transparent;
|
|
222
245
|
--amplify-components-button-primary-info-background-color: var(--amplify-colors-blue-80);
|
|
@@ -287,25 +310,25 @@
|
|
|
287
310
|
--amplify-components-button-menu-background-color: transparent;
|
|
288
311
|
--amplify-components-button-menu-justify-content: start;
|
|
289
312
|
--amplify-components-button-menu-hover-color: var(--amplify-colors-font-inverse);
|
|
290
|
-
--amplify-components-button-menu-hover-background-color: var(--amplify-colors-
|
|
313
|
+
--amplify-components-button-menu-hover-background-color: var(--amplify-colors-primary-80);
|
|
291
314
|
--amplify-components-button-menu-focus-color: var(--amplify-colors-font-inverse);
|
|
292
|
-
--amplify-components-button-menu-focus-background-color: var(--amplify-colors-
|
|
315
|
+
--amplify-components-button-menu-focus-background-color: var(--amplify-colors-primary-80);
|
|
293
316
|
--amplify-components-button-menu-active-color: var(--amplify-colors-font-inverse);
|
|
294
|
-
--amplify-components-button-menu-active-background-color: var(--amplify-colors-
|
|
317
|
+
--amplify-components-button-menu-active-background-color: var(--amplify-colors-primary-90);
|
|
295
318
|
--amplify-components-button-menu-disabled-color: var(--amplify-colors-font-disabled);
|
|
296
319
|
--amplify-components-button-link-background-color: transparent;
|
|
297
320
|
--amplify-components-button-link-border-color: transparent;
|
|
298
321
|
--amplify-components-button-link-border-width: var(--amplify-border-widths-small);
|
|
299
322
|
--amplify-components-button-link-color: var(--amplify-colors-font-interactive);
|
|
300
323
|
--amplify-components-button-link-hover-border-color: transparent;
|
|
301
|
-
--amplify-components-button-link-hover-background-color: var(--amplify-colors-
|
|
324
|
+
--amplify-components-button-link-hover-background-color: var(--amplify-colors-primary-10);
|
|
302
325
|
--amplify-components-button-link-hover-color: var(--amplify-colors-font-hover);
|
|
303
326
|
--amplify-components-button-link-focus-border-color: transparent;
|
|
304
|
-
--amplify-components-button-link-focus-background-color: var(--amplify-colors-
|
|
327
|
+
--amplify-components-button-link-focus-background-color: var(--amplify-colors-primary-10);
|
|
305
328
|
--amplify-components-button-link-focus-color: var(--amplify-colors-font-focus);
|
|
306
329
|
--amplify-components-button-link-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
307
330
|
--amplify-components-button-link-active-border-color: transparent;
|
|
308
|
-
--amplify-components-button-link-active-background-color: var(--amplify-colors-
|
|
331
|
+
--amplify-components-button-link-active-background-color: var(--amplify-colors-primary-20);
|
|
309
332
|
--amplify-components-button-link-active-color: var(--amplify-colors-font-active);
|
|
310
333
|
--amplify-components-button-link-disabled-border-color: transparent;
|
|
311
334
|
--amplify-components-button-link-disabled-background-color: transparent;
|
|
@@ -473,7 +496,7 @@
|
|
|
473
496
|
--amplify-components-checkbox-button-error-border-color: var(--amplify-colors-border-error);
|
|
474
497
|
--amplify-components-checkbox-button-error-focus-border-color: var(--amplify-colors-transparent);
|
|
475
498
|
--amplify-components-checkbox-button-error-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-error);
|
|
476
|
-
--amplify-components-checkbox-icon-background-color: var(--amplify-colors-
|
|
499
|
+
--amplify-components-checkbox-icon-background-color: var(--amplify-colors-primary-80);
|
|
477
500
|
--amplify-components-checkbox-icon-border-radius: 20%;
|
|
478
501
|
--amplify-components-checkbox-icon-opacity: var(--amplify-opacities-0);
|
|
479
502
|
--amplify-components-checkbox-icon-transform: scale(0);
|
|
@@ -538,7 +561,7 @@
|
|
|
538
561
|
--amplify-components-dropzone-padding-block: var(--amplify-space-xl);
|
|
539
562
|
--amplify-components-dropzone-padding-inline: var(--amplify-space-large);
|
|
540
563
|
--amplify-components-dropzone-text-align: center;
|
|
541
|
-
--amplify-components-dropzone-active-background-color: var(--amplify-colors-
|
|
564
|
+
--amplify-components-dropzone-active-background-color: var(--amplify-colors-primary-10);
|
|
542
565
|
--amplify-components-dropzone-active-border-radius: var(--amplify-components-dropzone-border-radius);
|
|
543
566
|
--amplify-components-dropzone-active-border-color: var(--amplify-colors-border-pressed);
|
|
544
567
|
--amplify-components-dropzone-active-border-style: var(--amplify-components-dropzone-border-style);
|
|
@@ -562,40 +585,6 @@
|
|
|
562
585
|
--amplify-components-dropzone-rejected-border-style: var(--amplify-components-dropzone-border-style);
|
|
563
586
|
--amplify-components-dropzone-rejected-border-width: var(--amplify-components-dropzone-border-width);
|
|
564
587
|
--amplify-components-dropzone-rejected-color: var(--amplify-colors-font-error);
|
|
565
|
-
--amplify-components-expander-display: block;
|
|
566
|
-
--amplify-components-expander-background-color: var(--amplify-colors-background-primary);
|
|
567
|
-
--amplify-components-expander-border-radius: var(--amplify-radii-medium);
|
|
568
|
-
--amplify-components-expander-box-shadow: var(--amplify-shadows-large);
|
|
569
|
-
--amplify-components-expander-width: 100%;
|
|
570
|
-
--amplify-components-expander-item-margin-top: 1px;
|
|
571
|
-
--amplify-components-expander-item-box-shadow: var(--amplify-shadows-small);
|
|
572
|
-
--amplify-components-expander-item-border-bottom-left-radius: var(--amplify-radii-medium);
|
|
573
|
-
--amplify-components-expander-item-border-bottom-right-radius: var(--amplify-radii-medium);
|
|
574
|
-
--amplify-components-expander-item-border-top-left-radius: var(--amplify-radii-medium);
|
|
575
|
-
--amplify-components-expander-item-border-top-right-radius: var(--amplify-radii-medium);
|
|
576
|
-
--amplify-components-expander-item-border-start-start-radius: var(--amplify-radii-medium);
|
|
577
|
-
--amplify-components-expander-item-border-start-end-radius: var(--amplify-radii-medium);
|
|
578
|
-
--amplify-components-expander-item-border-end-start-radius: var(--amplify-radii-medium);
|
|
579
|
-
--amplify-components-expander-item-border-end-end-radius: var(--amplify-radii-medium);
|
|
580
|
-
--amplify-components-expander-item-focus-box-shadow: 0 0 0 2px var(--amplify-colors-border-focus);
|
|
581
|
-
--amplify-components-expander-header-box-shadow: 0 1px 0 var(--amplify-colors-overlay-20);
|
|
582
|
-
--amplify-components-expander-trigger-min-height: 3rem;
|
|
583
|
-
--amplify-components-expander-trigger-padding-inline-start: var(--amplify-space-large);
|
|
584
|
-
--amplify-components-expander-trigger-padding-inline-end: var(--amplify-space-large);
|
|
585
|
-
--amplify-components-expander-trigger-align-items: center;
|
|
586
|
-
--amplify-components-expander-trigger-justify-content: space-between;
|
|
587
|
-
--amplify-components-expander-trigger-hover-background-color: var(--amplify-colors-overlay-10);
|
|
588
|
-
--amplify-components-expander-content-padding-inline-start: var(--amplify-space-large);
|
|
589
|
-
--amplify-components-expander-content-padding-inline-end: var(--amplify-space-large);
|
|
590
|
-
--amplify-components-expander-content-text-color: var(--amplify-colors-font-secondary);
|
|
591
|
-
--amplify-components-expander-content-text-padding-block-start: var(--amplify-space-medium);
|
|
592
|
-
--amplify-components-expander-content-text-padding-block-end: var(--amplify-space-medium);
|
|
593
|
-
--amplify-components-expander-content-open-animation-duration: var(--amplify-time-medium);
|
|
594
|
-
--amplify-components-expander-content-open-animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
595
|
-
--amplify-components-expander-content-closed-animation-duration: var(--amplify-time-medium);
|
|
596
|
-
--amplify-components-expander-content-closed-animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
597
|
-
--amplify-components-expander-icon-transition-duration: var(--amplify-time-medium);
|
|
598
|
-
--amplify-components-expander-icon-transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
599
588
|
--amplify-components-field-gap: var(--amplify-space-xs);
|
|
600
589
|
--amplify-components-field-font-size: var(--amplify-font-sizes-medium);
|
|
601
590
|
--amplify-components-field-flex-direction: column;
|
|
@@ -674,70 +663,6 @@
|
|
|
674
663
|
--amplify-components-fieldset-outlined-large-padding: var(--amplify-space-large);
|
|
675
664
|
--amplify-components-fieldset-small-gap: var(--amplify-components-field-small-gap);
|
|
676
665
|
--amplify-components-fieldset-large-gap: var(--amplify-components-field-large-gap);
|
|
677
|
-
--amplify-components-fileuploader-dropzone-background-color: var(--amplify-colors-background-primary);
|
|
678
|
-
--amplify-components-fileuploader-dropzone-border-radius: var(--amplify-radii-small);
|
|
679
|
-
--amplify-components-fileuploader-dropzone-border-color: var(--amplify-colors-border-primary);
|
|
680
|
-
--amplify-components-fileuploader-dropzone-border-style: dashed;
|
|
681
|
-
--amplify-components-fileuploader-dropzone-border-width: var(--amplify-border-widths-small);
|
|
682
|
-
--amplify-components-fileuploader-dropzone-gap: var(--amplify-space-small);
|
|
683
|
-
--amplify-components-fileuploader-dropzone-padding-block: var(--amplify-space-xl);
|
|
684
|
-
--amplify-components-fileuploader-dropzone-padding-inline: var(--amplify-space-large);
|
|
685
|
-
--amplify-components-fileuploader-dropzone-text-align: center;
|
|
686
|
-
--amplify-components-fileuploader-dropzone-active-background-color: var(--amplify-colors-brand-primary-10);
|
|
687
|
-
--amplify-components-fileuploader-dropzone-active-border-radius: var(--amplify-components-fileuploader-dropzone-border-radius);
|
|
688
|
-
--amplify-components-fileuploader-dropzone-active-border-color: var(--amplify-colors-border-pressed);
|
|
689
|
-
--amplify-components-fileuploader-dropzone-active-border-style: var(--amplify-components-fileuploader-dropzone-border-style);
|
|
690
|
-
--amplify-components-fileuploader-dropzone-active-border-width: var(--amplify-border-widths-medium);
|
|
691
|
-
--amplify-components-fileuploader-dropzone-icon-color: var(--amplify-colors-border-primary);
|
|
692
|
-
--amplify-components-fileuploader-dropzone-icon-font-size: var(--amplify-font-sizes-xxl);
|
|
693
|
-
--amplify-components-fileuploader-dropzone-text-color: var(--amplify-colors-font-tertiary);
|
|
694
|
-
--amplify-components-fileuploader-dropzone-text-font-size: var(--amplify-font-sizes-medium);
|
|
695
|
-
--amplify-components-fileuploader-dropzone-text-font-weight: var(--amplify-font-weights-bold);
|
|
696
|
-
--amplify-components-fileuploader-file-background-color: var(--amplify-colors-background-primary);
|
|
697
|
-
--amplify-components-fileuploader-file-border-radius: var(--amplify-radii-small);
|
|
698
|
-
--amplify-components-fileuploader-file-border-color: var(--amplify-colors-border-primary);
|
|
699
|
-
--amplify-components-fileuploader-file-border-style: solid;
|
|
700
|
-
--amplify-components-fileuploader-file-border-width: var(--amplify-border-widths-small);
|
|
701
|
-
--amplify-components-fileuploader-file-padding-block: var(--amplify-space-xs);
|
|
702
|
-
--amplify-components-fileuploader-file-padding-inline: var(--amplify-space-small);
|
|
703
|
-
--amplify-components-fileuploader-file-gap: var(--amplify-space-small);
|
|
704
|
-
--amplify-components-fileuploader-file-align-items: baseline;
|
|
705
|
-
--amplify-components-fileuploader-file-name-font-size: var(--amplify-font-sizes-medium);
|
|
706
|
-
--amplify-components-fileuploader-file-name-font-weight: var(--amplify-font-weights-bold);
|
|
707
|
-
--amplify-components-fileuploader-file-name-color: var(--amplify-colors-font-primary);
|
|
708
|
-
--amplify-components-fileuploader-file-size-font-size: var(--amplify-font-sizes-small);
|
|
709
|
-
--amplify-components-fileuploader-file-size-font-weight: var(--amplify-font-weights-normal);
|
|
710
|
-
--amplify-components-fileuploader-file-size-color: var(--amplify-colors-font-tertiary);
|
|
711
|
-
--amplify-components-fileuploader-file-image-width: var(--amplify-space-xxl);
|
|
712
|
-
--amplify-components-fileuploader-file-image-height: var(--amplify-space-xxl);
|
|
713
|
-
--amplify-components-fileuploader-file-image-background-color: var(--amplify-colors-background-secondary);
|
|
714
|
-
--amplify-components-fileuploader-file-image-color: var(--amplify-colors-font-tertiary);
|
|
715
|
-
--amplify-components-fileuploader-file-image-border-radius: var(--amplify-radii-small);
|
|
716
|
-
--amplify-components-fileuploader-loader-stroke-linecap: round;
|
|
717
|
-
--amplify-components-fileuploader-loader-stroke-empty: var(--amplify-colors-border-secondary);
|
|
718
|
-
--amplify-components-fileuploader-loader-stroke-filled: var(--amplify-components-loader-stroke-filled);
|
|
719
|
-
--amplify-components-fileuploader-loader-stroke-width: var(--amplify-border-widths-large);
|
|
720
|
-
--amplify-components-fileuploader-previewer-background-color: var(--amplify-colors-background-primary);
|
|
721
|
-
--amplify-components-fileuploader-previewer-border-color: var(--amplify-colors-border-primary);
|
|
722
|
-
--amplify-components-fileuploader-previewer-border-style: solid;
|
|
723
|
-
--amplify-components-fileuploader-previewer-border-width: var(--amplify-border-widths-small);
|
|
724
|
-
--amplify-components-fileuploader-previewer-border-radius: var(--amplify-radii-small);
|
|
725
|
-
--amplify-components-fileuploader-previewer-padding-block: var(--amplify-space-zero);
|
|
726
|
-
--amplify-components-fileuploader-previewer-padding-inline: var(--amplify-space-zero);
|
|
727
|
-
--amplify-components-fileuploader-previewer-max-height: 40rem;
|
|
728
|
-
--amplify-components-fileuploader-previewer-max-width: auto;
|
|
729
|
-
--amplify-components-fileuploader-previewer-text-font-size: var(--amplify-font-sizes-medium);
|
|
730
|
-
--amplify-components-fileuploader-previewer-text-font-weight: var(--amplify-font-weights-bold);
|
|
731
|
-
--amplify-components-fileuploader-previewer-text-color: var(--amplify-colors-font-primary);
|
|
732
|
-
--amplify-components-fileuploader-previewer-body-padding-block: var(--amplify-space-medium);
|
|
733
|
-
--amplify-components-fileuploader-previewer-body-padding-inline: var(--amplify-space-medium);
|
|
734
|
-
--amplify-components-fileuploader-previewer-body-gap: var(--amplify-space-small);
|
|
735
|
-
--amplify-components-fileuploader-previewer-footer-border-color: var(--amplify-colors-border-secondary);
|
|
736
|
-
--amplify-components-fileuploader-previewer-footer-border-style: solid;
|
|
737
|
-
--amplify-components-fileuploader-previewer-footer-border-width: var(--amplify-border-widths-small);
|
|
738
|
-
--amplify-components-fileuploader-previewer-footer-padding-block: var(--amplify-space-medium);
|
|
739
|
-
--amplify-components-fileuploader-previewer-footer-padding-inline: var(--amplify-space-medium);
|
|
740
|
-
--amplify-components-fileuploader-previewer-footer-justify-content: space-between;
|
|
741
666
|
--amplify-components-flex-gap: var(--amplify-space-medium);
|
|
742
667
|
--amplify-components-flex-justify-content: normal;
|
|
743
668
|
--amplify-components-flex-align-items: stretch;
|
|
@@ -789,7 +714,7 @@
|
|
|
789
714
|
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
|
|
790
715
|
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
|
|
791
716
|
--amplify-components-loader-stroke-empty: var(--amplify-colors-neutral-20);
|
|
792
|
-
--amplify-components-loader-stroke-filled: var(--amplify-colors-
|
|
717
|
+
--amplify-components-loader-stroke-filled: var(--amplify-colors-primary-80);
|
|
793
718
|
--amplify-components-loader-stroke-linecap: round;
|
|
794
719
|
--amplify-components-loader-animation-duration: 1s;
|
|
795
720
|
--amplify-components-loader-small-width: var(--amplify-font-sizes-small);
|
|
@@ -802,7 +727,7 @@
|
|
|
802
727
|
--amplify-components-loader-linear-min-width: 5rem;
|
|
803
728
|
--amplify-components-loader-linear-font-size: var(--amplify-font-sizes-xxs);
|
|
804
729
|
--amplify-components-loader-linear-stroke-width: var(--amplify-font-sizes-xxs);
|
|
805
|
-
--amplify-components-loader-linear-stroke-filled: var(--amplify-colors-
|
|
730
|
+
--amplify-components-loader-linear-stroke-filled: var(--amplify-colors-primary-80);
|
|
806
731
|
--amplify-components-loader-linear-stroke-empty: var(--amplify-colors-neutral-20);
|
|
807
732
|
--amplify-components-loader-linear-stroke-linecap: round;
|
|
808
733
|
--amplify-components-loader-linear-animation-duration: 1s;
|
|
@@ -961,7 +886,7 @@
|
|
|
961
886
|
--amplify-components-radio-button-small-height: var(--amplify-font-sizes-small);
|
|
962
887
|
--amplify-components-radio-button-large-width: var(--amplify-font-sizes-large);
|
|
963
888
|
--amplify-components-radio-button-large-height: var(--amplify-font-sizes-large);
|
|
964
|
-
--amplify-components-radio-button-checked-color: var(--amplify-colors-
|
|
889
|
+
--amplify-components-radio-button-checked-color: var(--amplify-colors-primary-80);
|
|
965
890
|
--amplify-components-radio-button-checked-disabled-color: var(--amplify-colors-background-disabled);
|
|
966
891
|
--amplify-components-radio-button-focus-border-color: var(--amplify-colors-border-focus);
|
|
967
892
|
--amplify-components-radio-button-focus-box-shadow: var(--amplify-components-fieldcontrol-focus-box-shadow);
|
|
@@ -976,11 +901,12 @@
|
|
|
976
901
|
--amplify-components-radiogroup-radio-background-color: var(--amplify-components-radio-button-background-color);
|
|
977
902
|
--amplify-components-radiogroup-radio-checked-color: var(--amplify-components-radio-button-checked-color);
|
|
978
903
|
--amplify-components-radiogroup-radio-label-color: var(--amplify-components-radio-label-color);
|
|
979
|
-
--amplify-components-radiogroup-
|
|
904
|
+
--amplify-components-radiogroup-legend-color: var(--amplify-components-fieldset-legend-color);
|
|
905
|
+
--amplify-components-radiogroup-legend-font-weight: var(--amplify-font-weights-normal);
|
|
980
906
|
--amplify-components-rating-large-size: var(--amplify-font-sizes-xxxl);
|
|
981
907
|
--amplify-components-rating-default-size: var(--amplify-font-sizes-xl);
|
|
982
908
|
--amplify-components-rating-small-size: var(--amplify-font-sizes-small);
|
|
983
|
-
--amplify-components-rating-filled-color: var(--amplify-colors-
|
|
909
|
+
--amplify-components-rating-filled-color: var(--amplify-colors-secondary-80);
|
|
984
910
|
--amplify-components-rating-empty-color: var(--amplify-colors-background-tertiary);
|
|
985
911
|
--amplify-components-searchfield-color: var(--amplify-components-fieldcontrol-color);
|
|
986
912
|
--amplify-components-searchfield-button-color: var(--amplify-components-button-color);
|
|
@@ -997,7 +923,11 @@
|
|
|
997
923
|
--amplify-components-searchfield-button-hover-background-color: var(--amplify-components-button-hover-background-color);
|
|
998
924
|
--amplify-components-searchfield-button-hover-border-color: var(--amplify-components-button-hover-border-color);
|
|
999
925
|
--amplify-components-searchfield-button-hover-color: var(--amplify-components-button-hover-color);
|
|
926
|
+
--amplify-components-select-color: var(--amplify-components-fieldcontrol-color);
|
|
927
|
+
--amplify-components-select-background-color: var(--amplify-colors-background-primary);
|
|
1000
928
|
--amplify-components-select-padding-inline-end: var(--amplify-space-xxl);
|
|
929
|
+
--amplify-components-select-disabled-color: var(--amplify-colors-font-disabled);
|
|
930
|
+
--amplify-components-select-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
1001
931
|
--amplify-components-select-wrapper-flex: 1;
|
|
1002
932
|
--amplify-components-select-wrapper-display: block;
|
|
1003
933
|
--amplify-components-select-wrapper-position: relative;
|
|
@@ -1010,15 +940,20 @@
|
|
|
1010
940
|
--amplify-components-select-icon-wrapper-pointer-events: none;
|
|
1011
941
|
--amplify-components-select-icon-wrapper-small-right: var(--amplify-space-xs);
|
|
1012
942
|
--amplify-components-select-icon-wrapper-large-right: var(--amplify-space-medium);
|
|
1013
|
-
--amplify-components-select-option-background-color:
|
|
943
|
+
--amplify-components-select-option-background-color: transparent;
|
|
1014
944
|
--amplify-components-select-option-color: var(--amplify-colors-font-primary);
|
|
1015
945
|
--amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
|
|
946
|
+
--amplify-components-select-option-disabled-background-color: transparent;
|
|
1016
947
|
--amplify-components-select-white-space: nowrap;
|
|
1017
948
|
--amplify-components-select-min-width: 6.5rem;
|
|
1018
949
|
--amplify-components-select-small-min-width: 5.5rem;
|
|
1019
950
|
--amplify-components-select-small-padding-inline-end: var(--amplify-space-xl);
|
|
1020
951
|
--amplify-components-select-large-min-width: 7.5rem;
|
|
1021
952
|
--amplify-components-select-large-padding-inline-end: var(--amplify-space-xxl);
|
|
953
|
+
--amplify-components-select-expanded-padding-block: var(--amplify-space-xs);
|
|
954
|
+
--amplify-components-select-expanded-padding-inline: var(--amplify-space-small);
|
|
955
|
+
--amplify-components-select-expanded-option-padding-block: var(--amplify-space-xs);
|
|
956
|
+
--amplify-components-select-expanded-option-padding-inline: var(--amplify-space-small);
|
|
1022
957
|
--amplify-components-selectfield-border-color: var(--amplify-components-fieldcontrol-border-color);
|
|
1023
958
|
--amplify-components-selectfield-color: var(--amplify-components-fieldcontrol-color);
|
|
1024
959
|
--amplify-components-selectfield-flex-direction: column;
|
|
@@ -1030,7 +965,7 @@
|
|
|
1030
965
|
--amplify-components-sliderfield-track-border-radius: 9999px;
|
|
1031
966
|
--amplify-components-sliderfield-track-height: 0.375rem;
|
|
1032
967
|
--amplify-components-sliderfield-track-min-width: 10rem;
|
|
1033
|
-
--amplify-components-sliderfield-range-background-color: var(--amplify-colors-
|
|
968
|
+
--amplify-components-sliderfield-range-background-color: var(--amplify-colors-primary-80);
|
|
1034
969
|
--amplify-components-sliderfield-range-border-radius: 9999px;
|
|
1035
970
|
--amplify-components-sliderfield-range-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
1036
971
|
--amplify-components-sliderfield-thumb-width: 1.25rem;
|
|
@@ -1078,10 +1013,10 @@
|
|
|
1078
1013
|
--amplify-components-storagemanager-dropzone-padding-block: var(--amplify-space-xl);
|
|
1079
1014
|
--amplify-components-storagemanager-dropzone-padding-inline: var(--amplify-space-large);
|
|
1080
1015
|
--amplify-components-storagemanager-dropzone-text-align: center;
|
|
1081
|
-
--amplify-components-storagemanager-dropzone-active-background-color: var(--amplify-colors-
|
|
1082
|
-
--amplify-components-storagemanager-dropzone-active-border-radius: var(--amplify-components-
|
|
1016
|
+
--amplify-components-storagemanager-dropzone-active-background-color: var(--amplify-colors-primary-10);
|
|
1017
|
+
--amplify-components-storagemanager-dropzone-active-border-radius: var(--amplify-components-storagemanager-dropzone-border-radius);
|
|
1083
1018
|
--amplify-components-storagemanager-dropzone-active-border-color: var(--amplify-colors-border-pressed);
|
|
1084
|
-
--amplify-components-storagemanager-dropzone-active-border-style: var(--amplify-components-
|
|
1019
|
+
--amplify-components-storagemanager-dropzone-active-border-style: var(--amplify-components-storagemanager-dropzone-border-style);
|
|
1085
1020
|
--amplify-components-storagemanager-dropzone-active-border-width: var(--amplify-border-widths-medium);
|
|
1086
1021
|
--amplify-components-storagemanager-dropzone-icon-color: var(--amplify-colors-border-primary);
|
|
1087
1022
|
--amplify-components-storagemanager-dropzone-icon-font-size: var(--amplify-font-sizes-xxl);
|
|
@@ -1108,6 +1043,8 @@
|
|
|
1108
1043
|
--amplify-components-storagemanager-file-image-background-color: var(--amplify-colors-background-secondary);
|
|
1109
1044
|
--amplify-components-storagemanager-file-image-color: var(--amplify-colors-font-tertiary);
|
|
1110
1045
|
--amplify-components-storagemanager-file-image-border-radius: var(--amplify-radii-small);
|
|
1046
|
+
--amplify-components-storagemanager-filelist-flex-direction: column;
|
|
1047
|
+
--amplify-components-storagemanager-filelist-gap: var(--amplify-space-small);
|
|
1111
1048
|
--amplify-components-storagemanager-loader-stroke-linecap: round;
|
|
1112
1049
|
--amplify-components-storagemanager-loader-stroke-empty: var(--amplify-colors-border-secondary);
|
|
1113
1050
|
--amplify-components-storagemanager-loader-stroke-filled: var(--amplify-components-loader-stroke-filled);
|
|
@@ -1128,8 +1065,6 @@
|
|
|
1128
1065
|
--amplify-components-storagemanager-previewer-body-padding-inline: var(--amplify-space-medium);
|
|
1129
1066
|
--amplify-components-storagemanager-previewer-body-gap: var(--amplify-space-small);
|
|
1130
1067
|
--amplify-components-storagemanager-previewer-footer-justify-content: flex-end;
|
|
1131
|
-
--amplify-components-storagemanager-filelist-flex-direction: column;
|
|
1132
|
-
--amplify-components-storagemanager-filelist-gap: var(--amplify-space-small);
|
|
1133
1068
|
--amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
|
|
1134
1069
|
--amplify-components-switchfield-focused-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
|
|
1135
1070
|
--amplify-components-switchfield-font-size: var(--amplify-font-sizes-medium);
|
|
@@ -1146,7 +1081,7 @@
|
|
|
1146
1081
|
--amplify-components-switchfield-thumb-width: var(--amplify-space-relative-medium);
|
|
1147
1082
|
--amplify-components-switchfield-track-background-color: var(--amplify-colors-background-quaternary);
|
|
1148
1083
|
--amplify-components-switchfield-track-border-radius: var(--amplify-radii-xxxl);
|
|
1149
|
-
--amplify-components-switchfield-track-checked-background-color: var(--amplify-colors-
|
|
1084
|
+
--amplify-components-switchfield-track-checked-background-color: var(--amplify-colors-primary-80);
|
|
1150
1085
|
--amplify-components-switchfield-track-height: var(--amplify-space-relative-medium);
|
|
1151
1086
|
--amplify-components-switchfield-track-padding: var(--amplify-outline-widths-medium);
|
|
1152
1087
|
--amplify-components-switchfield-track-transition-duration: var(--amplify-time-short);
|
|
@@ -1215,14 +1150,25 @@
|
|
|
1215
1150
|
--amplify-components-tabs-item-padding-horizontal: var(--amplify-space-medium);
|
|
1216
1151
|
--amplify-components-tabs-item-text-align: center;
|
|
1217
1152
|
--amplify-components-tabs-item-transition-duration: var(--amplify-time-medium);
|
|
1153
|
+
--amplify-components-tabs-item-hover-background-color: transparent;
|
|
1154
|
+
--amplify-components-tabs-item-hover-border-color: var(--amplify-colors-border-focus);
|
|
1155
|
+
--amplify-components-tabs-item-hover-box-shadow: none;
|
|
1218
1156
|
--amplify-components-tabs-item-hover-color: var(--amplify-colors-font-hover);
|
|
1157
|
+
--amplify-components-tabs-item-focus-background-color: transparent;
|
|
1158
|
+
--amplify-components-tabs-item-focus-border-color: var(--amplify-colors-border-focus);
|
|
1159
|
+
--amplify-components-tabs-item-focus-box-shadow: 0px 0px 0px var(--amplify-border-widths-medium) var(--amplify-colors-border-focus);
|
|
1219
1160
|
--amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
|
|
1220
|
-
--amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
|
|
1221
|
-
--amplify-components-tabs-item-active-border-color: var(--amplify-colors-font-interactive);
|
|
1222
1161
|
--amplify-components-tabs-item-active-background-color: transparent;
|
|
1223
|
-
--amplify-components-tabs-item-
|
|
1162
|
+
--amplify-components-tabs-item-active-border-color: var(--amplify-colors-font-interactive);
|
|
1163
|
+
--amplify-components-tabs-item-active-box-shadow: none;
|
|
1164
|
+
--amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
|
|
1224
1165
|
--amplify-components-tabs-item-disabled-background-color: transparent;
|
|
1225
1166
|
--amplify-components-tabs-item-disabled-border-color: var(--amplify-colors-border-tertiary);
|
|
1167
|
+
--amplify-components-tabs-item-disabled-box-shadow: none;
|
|
1168
|
+
--amplify-components-tabs-item-disabled-color: var(--amplify-colors-font-disabled);
|
|
1169
|
+
--amplify-components-tabs-panel-background-color: transparent;
|
|
1170
|
+
--amplify-components-tabs-panel-padding-inline: 0;
|
|
1171
|
+
--amplify-components-tabs-panel-padding-block: var(--amplify-space-small);
|
|
1226
1172
|
--amplify-components-text-color: var(--amplify-colors-font-primary);
|
|
1227
1173
|
--amplify-components-text-primary-color: var(--amplify-colors-font-primary);
|
|
1228
1174
|
--amplify-components-text-secondary-color: var(--amplify-colors-font-secondary);
|
|
@@ -1262,15 +1208,15 @@
|
|
|
1262
1208
|
--amplify-components-togglebutton-primary-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
1263
1209
|
--amplify-components-togglebutton-primary-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
1264
1210
|
--amplify-components-togglebutton-primary-disabled-color: var(--amplify-colors-font-disabled);
|
|
1265
|
-
--amplify-components-togglebutton-primary-pressed-background-color: var(--amplify-colors-
|
|
1266
|
-
--amplify-components-togglebutton-primary-pressed-border-color: var(--amplify-colors-
|
|
1211
|
+
--amplify-components-togglebutton-primary-pressed-background-color: var(--amplify-colors-primary-80);
|
|
1212
|
+
--amplify-components-togglebutton-primary-pressed-border-color: var(--amplify-colors-primary-80);
|
|
1267
1213
|
--amplify-components-togglebutton-primary-pressed-color: var(--amplify-colors-background-primary);
|
|
1268
1214
|
--amplify-components-togglebutton-primary-pressed-focus-background-color: var(--amplify-colors-border-focus);
|
|
1269
1215
|
--amplify-components-togglebutton-primary-pressed-focus-border-color: var(--amplify-colors-border-focus);
|
|
1270
1216
|
--amplify-components-togglebutton-primary-pressed-focus-color: var(--amplify-colors-background-primary);
|
|
1271
|
-
--amplify-components-togglebutton-primary-pressed-hover-border-color: var(--amplify-colors-
|
|
1272
|
-
--amplify-components-togglebutton-primary-pressed-hover-background-color: var(--amplify-colors-
|
|
1273
|
-
--amplify-components-togglebutton-primary-pressed-hover-box-shadow: var(--amplify-colors-
|
|
1217
|
+
--amplify-components-togglebutton-primary-pressed-hover-border-color: var(--amplify-colors-primary-60);
|
|
1218
|
+
--amplify-components-togglebutton-primary-pressed-hover-background-color: var(--amplify-colors-primary-60);
|
|
1219
|
+
--amplify-components-togglebutton-primary-pressed-hover-box-shadow: var(--amplify-colors-primary-60);
|
|
1274
1220
|
--amplify-components-togglebutton-primary-pressed-hover-color: var(--amplify-colors-background-primary);
|
|
1275
1221
|
--amplify-components-togglebutton-link-background-color: var(--amplify-colors-transparent);
|
|
1276
1222
|
--amplify-components-togglebutton-link-color: var(--amplify-colors-overlay-50);
|
|
@@ -1355,29 +1301,29 @@
|
|
|
1355
1301
|
--amplify-colors-neutral-80: hsl(210, 10%, 40%);
|
|
1356
1302
|
--amplify-colors-neutral-90: hsl(210, 25%, 25%);
|
|
1357
1303
|
--amplify-colors-neutral-100: hsl(210, 50%, 10%);
|
|
1358
|
-
--amplify-colors-
|
|
1359
|
-
--amplify-colors-
|
|
1360
|
-
--amplify-colors-
|
|
1361
|
-
--amplify-colors-
|
|
1362
|
-
--amplify-colors-
|
|
1363
|
-
--amplify-colors-
|
|
1364
|
-
--amplify-colors-
|
|
1365
|
-
--amplify-colors-
|
|
1366
|
-
--amplify-colors-
|
|
1367
|
-
--amplify-colors-
|
|
1368
|
-
--amplify-colors-
|
|
1369
|
-
--amplify-colors-
|
|
1370
|
-
--amplify-colors-
|
|
1371
|
-
--amplify-colors-
|
|
1304
|
+
--amplify-colors-primary-10: var(--amplify-colors-teal-10);
|
|
1305
|
+
--amplify-colors-primary-20: var(--amplify-colors-teal-20);
|
|
1306
|
+
--amplify-colors-primary-40: var(--amplify-colors-teal-40);
|
|
1307
|
+
--amplify-colors-primary-60: var(--amplify-colors-teal-60);
|
|
1308
|
+
--amplify-colors-primary-80: var(--amplify-colors-teal-80);
|
|
1309
|
+
--amplify-colors-primary-90: var(--amplify-colors-teal-90);
|
|
1310
|
+
--amplify-colors-primary-100: var(--amplify-colors-teal-100);
|
|
1311
|
+
--amplify-colors-secondary-10: var(--amplify-colors-purple-10);
|
|
1312
|
+
--amplify-colors-secondary-20: var(--amplify-colors-purple-20);
|
|
1313
|
+
--amplify-colors-secondary-40: var(--amplify-colors-purple-40);
|
|
1314
|
+
--amplify-colors-secondary-60: var(--amplify-colors-purple-60);
|
|
1315
|
+
--amplify-colors-secondary-80: var(--amplify-colors-purple-80);
|
|
1316
|
+
--amplify-colors-secondary-90: var(--amplify-colors-purple-90);
|
|
1317
|
+
--amplify-colors-secondary-100: var(--amplify-colors-purple-100);
|
|
1372
1318
|
--amplify-colors-font-primary: var(--amplify-colors-neutral-100);
|
|
1373
1319
|
--amplify-colors-font-secondary: var(--amplify-colors-neutral-90);
|
|
1374
1320
|
--amplify-colors-font-tertiary: var(--amplify-colors-neutral-80);
|
|
1375
1321
|
--amplify-colors-font-disabled: var(--amplify-colors-neutral-60);
|
|
1376
1322
|
--amplify-colors-font-inverse: var(--amplify-colors-white);
|
|
1377
|
-
--amplify-colors-font-interactive: var(--amplify-colors-
|
|
1378
|
-
--amplify-colors-font-hover: var(--amplify-colors-
|
|
1379
|
-
--amplify-colors-font-focus: var(--amplify-colors-
|
|
1380
|
-
--amplify-colors-font-active: var(--amplify-colors-
|
|
1323
|
+
--amplify-colors-font-interactive: var(--amplify-colors-primary-80);
|
|
1324
|
+
--amplify-colors-font-hover: var(--amplify-colors-primary-90);
|
|
1325
|
+
--amplify-colors-font-focus: var(--amplify-colors-primary-100);
|
|
1326
|
+
--amplify-colors-font-active: var(--amplify-colors-primary-100);
|
|
1381
1327
|
--amplify-colors-font-info: var(--amplify-colors-blue-90);
|
|
1382
1328
|
--amplify-colors-font-warning: var(--amplify-colors-orange-90);
|
|
1383
1329
|
--amplify-colors-font-error: var(--amplify-colors-red-90);
|
|
@@ -1395,8 +1341,8 @@
|
|
|
1395
1341
|
--amplify-colors-border-secondary: var(--amplify-colors-neutral-40);
|
|
1396
1342
|
--amplify-colors-border-tertiary: var(--amplify-colors-neutral-20);
|
|
1397
1343
|
--amplify-colors-border-disabled: var(--amplify-colors-border-tertiary);
|
|
1398
|
-
--amplify-colors-border-pressed: var(--amplify-colors-
|
|
1399
|
-
--amplify-colors-border-focus: var(--amplify-colors-
|
|
1344
|
+
--amplify-colors-border-pressed: var(--amplify-colors-primary-100);
|
|
1345
|
+
--amplify-colors-border-focus: var(--amplify-colors-primary-100);
|
|
1400
1346
|
--amplify-colors-border-error: var(--amplify-colors-red-80);
|
|
1401
1347
|
--amplify-colors-border-info: var(--amplify-colors-blue-80);
|
|
1402
1348
|
--amplify-colors-border-success: var(--amplify-colors-green-80);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { AmplifyUser } from '../../types';
|
|
2
1
|
type ChangePasswordInput = {
|
|
3
|
-
user: AmplifyUser;
|
|
4
2
|
currentPassword: string;
|
|
5
3
|
newPassword: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const changePassword: ({
|
|
5
|
+
export declare const changePassword: ({ currentPassword, newPassword, }: ChangePasswordInput) => Promise<void>;
|
|
8
6
|
export declare const deleteUser: () => Promise<void>;
|
|
9
7
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file contains helpers that lets you easily access current actor's state
|
|
3
3
|
* and context.
|
|
4
4
|
*/
|
|
5
|
-
import { AuthActorContext, AuthActorState, AuthMachineState } from '../../types';
|
|
5
|
+
import { AuthActorContext, AuthActorState, AuthMachineState } from '../../machines/authenticator/types';
|
|
6
6
|
/**
|
|
7
7
|
* Get the state of current actor. This is useful for checking which screen
|
|
8
8
|
* to render: e.g. `getActorState(state).matches('confirmSignUp.edit').
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file contains helpers related to forms and input attributes.
|
|
3
3
|
*/
|
|
4
4
|
import { DefaultFormFieldOptions } from '../../types';
|
|
5
|
+
import { AuthEventTypes, NavigableRoute } from '../../machines/authenticator/types';
|
|
5
6
|
export declare const defaultFormFieldOptions: DefaultFormFieldOptions;
|
|
6
7
|
/**
|
|
7
8
|
* List of special characters that Cognito allows.
|
|
@@ -15,3 +16,7 @@ export declare const ALLOWED_SPECIAL_CHARACTERS: string[];
|
|
|
15
16
|
* source: HTML5 spec https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
|
|
16
17
|
*/
|
|
17
18
|
export declare const emailRegex: RegExp;
|
|
19
|
+
/**
|
|
20
|
+
+ * map navigable route keys to auth event names
|
|
21
|
+
+ */
|
|
22
|
+
export declare const NAVIGABLE_ROUTE_EVENT: Record<NavigableRoute, AuthEventTypes>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthInterpreter, AuthMachineHubHandler } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Handles Amplify JS Auth hub events, by forwarding hub events as appropriate
|
|
4
|
+
* xstate events.
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultAuthHubHandler: AuthMachineHubHandler;
|
|
7
|
+
/**
|
|
8
|
+
* Listens to external auth Hub events and sends corresponding event to
|
|
9
|
+
* the `authService` of interest
|
|
10
|
+
*
|
|
11
|
+
* @param send - `send` function associated with the `authService` of interest
|
|
12
|
+
*
|
|
13
|
+
* @returns function that unsubscribes to the hub evenmt
|
|
14
|
+
*/
|
|
15
|
+
export declare const listenToAuthHub: (service: AuthInterpreter, handler?: AuthMachineHubHandler) => import("@aws-amplify/core/dist/esm/Hub/types").StopListenerCallback;
|
|
@@ -4,27 +4,51 @@
|
|
|
4
4
|
* `useAuthenticator` hook/composable/service.
|
|
5
5
|
*/
|
|
6
6
|
import { Sender } from 'xstate';
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { AuthUser } from 'aws-amplify/auth';
|
|
8
|
+
import { FederatedProvider, LoginMechanism, SocialProvider, UnverifiedUserAttributes, ValidationError } from '../../types';
|
|
9
|
+
import { AuthEvent, AuthEventData, AuthMachineState, ChallengeName, NavigableRoute, V5CodeDeliveryDetails } from '../../machines/authenticator/types';
|
|
10
|
+
export type AuthenticatorRoute = 'authenticated' | 'confirmResetPassword' | 'confirmSignIn' | 'confirmSignUp' | 'confirmVerifyUser' | 'forceNewPassword' | 'idle' | 'forgotPassword' | 'setup' | 'signOut' | 'setupTotp' | 'signIn' | 'signUp' | 'transition' | 'verifyUser';
|
|
9
11
|
type AuthenticatorValidationErrors = ValidationError;
|
|
10
12
|
export type AuthStatus = 'configuring' | 'authenticated' | 'unauthenticated';
|
|
11
13
|
interface AuthenticatorServiceContextFacade {
|
|
12
14
|
authStatus: AuthStatus;
|
|
13
|
-
|
|
15
|
+
challengeName: ChallengeName | undefined;
|
|
16
|
+
codeDeliveryDetails: V5CodeDeliveryDetails;
|
|
14
17
|
error: string;
|
|
15
18
|
hasValidationErrors: boolean;
|
|
16
19
|
isPending: boolean;
|
|
17
20
|
route: AuthenticatorRoute;
|
|
18
21
|
socialProviders: SocialProvider[];
|
|
19
22
|
totpSecretCode: string | null;
|
|
20
|
-
|
|
21
|
-
user:
|
|
23
|
+
unverifiedUserAttributes: UnverifiedUserAttributes;
|
|
24
|
+
user: AuthUser;
|
|
25
|
+
username: string;
|
|
22
26
|
validationErrors: AuthenticatorValidationErrors;
|
|
23
27
|
}
|
|
24
|
-
type SendEventAlias = 'initializeMachine' | 'resendCode' | 'signOut' | 'submitForm' | 'updateForm' | 'updateBlur' | 'toFederatedSignIn' | '
|
|
28
|
+
type SendEventAlias = 'initializeMachine' | 'resendCode' | 'signOut' | 'submitForm' | 'updateForm' | 'updateBlur' | 'toFederatedSignIn' | 'toForgotPassword' | 'toSignIn' | 'toSignUp' | 'skipVerification';
|
|
25
29
|
type AuthenticatorSendEventAliases = Record<SendEventAlias, (data?: AuthEventData) => void>;
|
|
26
30
|
export interface AuthenticatorServiceFacade extends AuthenticatorSendEventAliases, AuthenticatorServiceContextFacade {
|
|
27
31
|
}
|
|
32
|
+
interface NextAuthenticatorServiceContextFacade {
|
|
33
|
+
challengeName: ChallengeName | undefined;
|
|
34
|
+
codeDeliveryDetails: V5CodeDeliveryDetails | undefined;
|
|
35
|
+
errorMessage: string | undefined;
|
|
36
|
+
federatedProviders: FederatedProvider[] | undefined;
|
|
37
|
+
loginMechanism: LoginMechanism | undefined;
|
|
38
|
+
isPending: boolean;
|
|
39
|
+
route: AuthenticatorRoute;
|
|
40
|
+
totpSecretCode: string | undefined;
|
|
41
|
+
username: string | undefined;
|
|
42
|
+
unverifiedUserAttributes: UnverifiedUserAttributes | undefined;
|
|
43
|
+
}
|
|
44
|
+
interface NextAuthenticatorSendEventAliases extends Pick<AuthenticatorSendEventAliases, 'toFederatedSignIn'> {
|
|
45
|
+
handleSubmit: AuthenticatorSendEventAliases['submitForm'];
|
|
46
|
+
resendConfirmationCode: () => void;
|
|
47
|
+
setRoute: (route: NavigableRoute) => void;
|
|
48
|
+
skipAttributeVerification: () => void;
|
|
49
|
+
}
|
|
50
|
+
export interface NextAuthenticatorServiceFacade extends NextAuthenticatorSendEventAliases, NextAuthenticatorServiceContextFacade {
|
|
51
|
+
}
|
|
28
52
|
/**
|
|
29
53
|
* Creates public facing auth helpers that abstracts out xstate implementation
|
|
30
54
|
* detail. Each framework implementation can export these helpers so that
|
|
@@ -38,8 +62,13 @@ export interface AuthenticatorServiceFacade extends AuthenticatorSendEventAliase
|
|
|
38
62
|
*/
|
|
39
63
|
export declare const getSendEventAliases: (send: Sender<AuthEvent>) => AuthenticatorSendEventAliases;
|
|
40
64
|
export declare const getServiceContextFacade: (state: AuthMachineState) => AuthenticatorServiceContextFacade;
|
|
65
|
+
export declare const getNextServiceContextFacade: (state: AuthMachineState) => NextAuthenticatorServiceContextFacade;
|
|
41
66
|
export declare const getServiceFacade: ({ send, state, }: {
|
|
42
67
|
send: Sender<AuthEvent>;
|
|
43
68
|
state: AuthMachineState;
|
|
44
69
|
}) => AuthenticatorServiceFacade;
|
|
70
|
+
export declare const getNextServiceFacade: ({ send, state, }: {
|
|
71
|
+
send: Sender<AuthEvent>;
|
|
72
|
+
state: AuthMachineState;
|
|
73
|
+
}) => NextAuthenticatorServiceFacade;
|
|
45
74
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormFields, FormFieldOptions, FormFieldComponents } from '../../../types';
|
|
2
|
+
import { AuthMachineState } from '../../../machines/authenticator/types';
|
|
3
|
+
export declare const DEFAULT_COUNTRY_CODE = "+1";
|
|
2
4
|
export declare const getAliasDefaultFormField: (state: AuthMachineState) => FormFieldOptions;
|
|
3
5
|
/** Collect all the defaultFormFields getters */
|
|
4
6
|
export declare const defaultFormFieldsGetters: Record<FormFieldComponents, (state: AuthMachineState) => FormFields>;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* This file contains helpers that generate default form fields, given the
|
|
3
3
|
* current Authenticator / Zero Config configuration.
|
|
4
4
|
*/
|
|
5
|
-
import { AuthMachineState
|
|
5
|
+
import { AuthMachineState } from '../../../machines/authenticator/types';
|
|
6
|
+
import { FormFields, FormFieldComponents, FormFieldsArray } from '../../../types';
|
|
6
7
|
export declare const getDefaultFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFields;
|
|
7
8
|
export declare const getCustomFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFields;
|
|
8
9
|
export declare const getFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFields;
|