@aws-amplify/ui-react 6.11.0 → 6.11.2
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/README.md +14 -15
- package/dist/{Field-Bkpcn7E9.js → Field-BjInyX0G.js} +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.mjs +1 -1
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.mjs +1 -9
- package/dist/esm/components/Authenticator/Router/Router.mjs +2 -2
- package/dist/esm/primitives/Collection/Collection.mjs +1 -1
- package/dist/esm/primitives/DropZone/DropZone.mjs +1 -1
- package/dist/esm/primitives/Loader/Loader.mjs +1 -1
- package/dist/esm/primitives/PhoneNumberField/DialCodeSelect.mjs +1 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.mjs +1 -1
- package/dist/esm/primitives/SelectField/SelectField.mjs +1 -1
- package/dist/esm/primitives/SliderField/SliderField.mjs +1 -1
- package/dist/esm/primitives/StepperField/StepperField.mjs +1 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +1 -1
- package/dist/esm/primitives/shared/utils.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +3 -11
- package/dist/internal.js +1 -1
- package/dist/types/PrimitiveCatalog.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/ChangePassword/types.d.ts +3 -3
- package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +1 -1
- package/dist/types/components/AccountSettings/DeleteUser/defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/DeleteUser/types.d.ts +4 -4
- package/dist/types/components/AccountSettings/shared/Defaults.d.ts +1 -1
- package/dist/types/components/AccountSettings/types.d.ts +2 -2
- package/dist/types/components/AccountSettings/utils/displayText.d.ts +1 -1
- package/dist/types/components/AccountSettings/utils/index.d.ts +2 -1
- package/dist/types/components/Authenticator/Authenticator.d.ts +6 -5
- package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +1 -1
- package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +1 -1
- package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/ForgotPassword/ConfirmResetPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/ForgotPassword/ForgotPassword.d.ts +1 -1
- package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +1 -1
- package/dist/types/components/Authenticator/RouteContainer/index.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/Router.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/index.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/types.d.ts +1 -1
- package/dist/types/components/Authenticator/SelectMfaType/SelectMfaType.d.ts +1 -1
- package/dist/types/components/Authenticator/SetupEmail/SetupEmail.d.ts +1 -1
- package/dist/types/components/Authenticator/SetupTotp/SetupTotp.d.ts +1 -1
- package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +1 -1
- package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +1 -1
- package/dist/types/components/Authenticator/hooks/useCustomComponents/index.d.ts +2 -1
- package/dist/types/components/Authenticator/hooks/useCustomComponents/useCustomComponents.d.ts +1 -1
- package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +1 -1
- package/dist/types/components/Authenticator/index.d.ts +6 -3
- package/dist/types/components/Authenticator/shared/FormField.d.ts +1 -1
- package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +1 -1
- package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +1 -1
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
- package/dist/types/components/FileSelect/index.d.ts +2 -1
- package/dist/types/components/FilterChildren/index.d.ts +2 -1
- package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +2 -2
- package/dist/types/components/ThemeProvider/ThemeContext.d.ts +2 -2
- package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +1 -1
- package/dist/types/components/ThemeProvider/index.d.ts +2 -1
- package/dist/types/hooks/useAuth.d.ts +1 -1
- package/dist/types/hooks/useBreakpointValue.d.ts +1 -1
- package/dist/types/hooks/useDeprecationWarning.d.ts +1 -1
- package/dist/types/hooks/useTheme.d.ts +3 -3
- package/dist/types/hooks/useThemeBreakpoint.d.ts +1 -1
- package/dist/types/internal.d.ts +4 -2
- package/dist/types/primitives/Accordion/Accordion.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionContainer.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionContent.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionIcon.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionItem.d.ts +2 -2
- package/dist/types/primitives/Accordion/AccordionTrigger.d.ts +2 -2
- package/dist/types/primitives/Accordion/index.d.ts +1 -1
- package/dist/types/primitives/Accordion/types.d.ts +2 -2
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Alert/AlertIcon.d.ts +1 -1
- package/dist/types/primitives/Avatar/Avatar.d.ts +2 -2
- package/dist/types/primitives/Avatar/index.d.ts +1 -1
- package/dist/types/primitives/Avatar/types.d.ts +2 -2
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbContainer.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbLink.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/BreadcrumbSeparator.d.ts +1 -1
- package/dist/types/primitives/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +2 -2
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Collection/Collection.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/DropZone/DropZone.d.ts +3 -3
- package/dist/types/primitives/DropZone/DropZoneContainer.d.ts +2 -2
- package/dist/types/primitives/DropZone/index.d.ts +1 -1
- package/dist/types/primitives/DropZone/types.d.ts +3 -3
- package/dist/types/primitives/Field/Field.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/Field/FieldDescription.d.ts +1 -1
- package/dist/types/primitives/Field/FieldErrorMessage.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Fieldset/Fieldset.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Icon/context/IconsContext.d.ts +1 -1
- package/dist/types/primitives/Icon/context/IconsProvider.d.ts +2 -2
- package/dist/types/primitives/Icon/context/index.d.ts +2 -1
- package/dist/types/primitives/Icon/context/useIcons.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAdd.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAssistant.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconAttach.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheck.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheckCircle.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconCheckCircleOutline.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconChevronLeft.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconChevronRight.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconClose.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconDocument.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconEdit.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconError.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconExpandMore.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconFile.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconIndeterminate.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconInfo.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconMenu.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconRemove.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconSearch.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconSend.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconStar.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconUpload.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconUser.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconVisibility.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconVisibilityOff.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/IconWarning.d.ts +1 -1
- package/dist/types/primitives/Icon/icons/types.d.ts +1 -1
- package/dist/types/primitives/Icon/index.d.ts +2 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +2 -2
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuItem.d.ts +1 -1
- package/dist/types/primitives/Message/Message.d.ts +1 -1
- package/dist/types/primitives/Message/MessageContainer.d.ts +1 -1
- package/dist/types/primitives/Message/MessageContent.d.ts +1 -1
- package/dist/types/primitives/Message/MessageDismiss.d.ts +1 -1
- package/dist/types/primitives/Message/MessageHeading.d.ts +1 -1
- package/dist/types/primitives/Message/MessageIcon.d.ts +1 -1
- package/dist/types/primitives/Message/useMessage.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/Pagination/PaginationItem.d.ts +1 -1
- package/dist/types/primitives/Pagination/usePagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/DialCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/context.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/Rating/RatingIcon.d.ts +2 -2
- package/dist/types/primitives/Rating/RatingMixedIcon.d.ts +2 -2
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/SearchField/useSearchField.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +2 -2
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +2 -2
- package/dist/types/primitives/StepperField/StepperField.d.ts +2 -2
- package/dist/types/primitives/StepperField/useStepper.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/useSwitch.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsContainer.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsItem.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsList.d.ts +2 -2
- package/dist/types/primitives/Tabs/TabsPanel.d.ts +2 -2
- package/dist/types/primitives/Tabs/index.d.ts +1 -1
- package/dist/types/primitives/Tabs/types.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/AutoresizeTextarea.d.ts +2 -2
- package/dist/types/primitives/TextArea/TextArea.d.ts +2 -2
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +2 -2
- package/dist/types/primitives/TextField/TextField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/useToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/useToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +1 -1
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/components.d.ts +8 -4
- package/dist/types/primitives/index.d.ts +2 -1
- package/dist/types/primitives/shared/constants.d.ts +1 -1
- package/dist/types/primitives/shared/getStyleValue.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/getMediaQueries.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/useBreakpoint.d.ts +1 -1
- package/dist/types/primitives/shared/responsive/utils.d.ts +1 -1
- package/dist/types/primitives/shared/styleUtils.d.ts +3 -3
- package/dist/types/primitives/shared/utils.d.ts +2 -1
- package/dist/types/primitives/types/alert.d.ts +3 -3
- package/dist/types/primitives/types/autocomplete.d.ts +3 -3
- package/dist/types/primitives/types/badge.d.ts +2 -2
- package/dist/types/primitives/types/base.d.ts +2 -1
- package/dist/types/primitives/types/breadcrumbs.d.ts +3 -3
- package/dist/types/primitives/types/button.d.ts +3 -3
- package/dist/types/primitives/types/buttonGroup.d.ts +6 -6
- package/dist/types/primitives/types/card.d.ts +1 -1
- package/dist/types/primitives/types/checkbox.d.ts +6 -6
- package/dist/types/primitives/types/checkboxField.d.ts +3 -3
- package/dist/types/primitives/types/collection.d.ts +5 -5
- package/dist/types/primitives/types/divider.d.ts +2 -2
- package/dist/types/primitives/types/field.d.ts +5 -5
- package/dist/types/primitives/types/fieldGroup.d.ts +3 -3
- package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -2
- package/dist/types/primitives/types/fieldset.d.ts +5 -5
- package/dist/types/primitives/types/flex.d.ts +3 -3
- package/dist/types/primitives/types/grid.d.ts +3 -3
- package/dist/types/primitives/types/heading.d.ts +2 -2
- package/dist/types/primitives/types/highlightMatch.d.ts +1 -1
- package/dist/types/primitives/types/icon.d.ts +4 -4
- package/dist/types/primitives/types/image.d.ts +3 -3
- package/dist/types/primitives/types/input.d.ts +4 -4
- package/dist/types/primitives/types/label.d.ts +1 -1
- package/dist/types/primitives/types/link.d.ts +2 -2
- package/dist/types/primitives/types/loader.d.ts +4 -4
- package/dist/types/primitives/types/menu.d.ts +5 -5
- package/dist/types/primitives/types/message.d.ts +4 -4
- package/dist/types/primitives/types/pagination.d.ts +3 -3
- package/dist/types/primitives/types/passwordField.d.ts +5 -5
- package/dist/types/primitives/types/phoneNumberField.d.ts +4 -4
- package/dist/types/primitives/types/placeholder.d.ts +4 -4
- package/dist/types/primitives/types/radio.d.ts +3 -3
- package/dist/types/primitives/types/radioGroupField.d.ts +6 -6
- package/dist/types/primitives/types/rating.d.ts +5 -5
- package/dist/types/primitives/types/responsive.d.ts +1 -1
- package/dist/types/primitives/types/scrollView.d.ts +1 -1
- package/dist/types/primitives/types/searchField.d.ts +4 -4
- package/dist/types/primitives/types/select.d.ts +3 -3
- package/dist/types/primitives/types/selectField.d.ts +4 -4
- package/dist/types/primitives/types/sliderField.d.ts +5 -5
- package/dist/types/primitives/types/stepperField.d.ts +2 -2
- package/dist/types/primitives/types/style.d.ts +6 -6
- package/dist/types/primitives/types/switchField.d.ts +6 -6
- package/dist/types/primitives/types/table.d.ts +3 -3
- package/dist/types/primitives/types/text.d.ts +1 -1
- package/dist/types/primitives/types/textArea.d.ts +4 -4
- package/dist/types/primitives/types/textAreaField.d.ts +5 -5
- package/dist/types/primitives/types/textField.d.ts +5 -5
- package/dist/types/primitives/types/toggleButton.d.ts +2 -2
- package/dist/types/primitives/types/toggleButtonGroup.d.ts +4 -4
- package/dist/types/primitives/types/view.d.ts +4 -4
- package/dist/types/primitives/types/visuallyHidden.d.ts +1 -1
- package/dist/types/primitives/utils/primitiveWithForwardRef.d.ts +1 -1
- package/dist/types/primitives/utils/splitPrimitiveProps.d.ts +1 -1
- package/dist/types/primitives/utils/testUtils.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
+
# Amplify UI React
|
|
2
|
+
|
|
1
3
|
[](https://www.npmjs.com/package/@aws-amplify/ui-react) [](https://www.npmjs.com/package/@aws-amplify/ui-react)
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
The React package provides components and utilities for building Amplify connected applications on React.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Contents
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
2. Primitive components that create consistency across Amplify UI and allow you to build complete applications that fit your brand, like Buttons and Badges.
|
|
9
|
-
3. Data-bound components that make it easy to display dynamic data, like DataStoreCollections.
|
|
10
|
-
4. Theming capabilities that allow you to customize the appearance of Amplify UI to match your brand.
|
|
9
|
+
### Connected Components
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
- Authentication components for React applications
|
|
12
|
+
- Data-bound components for displaying dynamic data
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
### Primitive Components
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
- UI components like Buttons, Badges, and more for building React applications
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
- **Endlessly customizable** Every detail of Amplify UI is customizable to match your brand. Style all of Amplify UI with themes, override components with your own, or build your own UI and use Amplify for complex state management.
|
|
20
|
-
- **Accessible** Amplify UI components follow [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) and [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) best practices and guidelines such as color contrast, keyboard navigation, accessible labels, and focus management.
|
|
21
|
-
- **Primitive components (React only right now)** Primitive components are used in the connected components, like Authenticator, you can also customize them and use them to build the rest of your UI.
|
|
18
|
+
### Theming
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
- Theming capabilities for customizing the appearance of Amplify UI
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
## React Documentation
|
|
23
|
+
|
|
24
|
+
- https://ui.docs.amplify.aws/react
|
|
@@ -1064,7 +1064,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
|
|
|
1064
1064
|
}, "data-testid": LINEAR_FILLED }),
|
|
1065
1065
|
isDeterminate ? (React__namespace.createElement("text", { "aria-live": "polite", className: ui.classNames(ui.ComponentClassName.LoaderLabel, isPercentageTextHidden ? ui.ComponentClassName.VisuallyHidden : null),
|
|
1066
1066
|
// -1% offset makes the text position look nicest
|
|
1067
|
-
x: `${-1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
1067
|
+
x: `${ -1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
1068
1068
|
// r + stroke-width should add up to 50% to avoid overflow
|
|
1069
1069
|
const circularLoader = (React__namespace.createElement("g", null,
|
|
1070
1070
|
React__namespace.createElement("circle", { cx: "50%", cy: "50%", r: `${RADIUS}%`, strokeWidth: `${CIRCULAR_STROKE_WIDTH}%`, style: { stroke: String(emptyColor) }, "data-testid": CIRCULAR_EMPTY }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { authenticatorTextUtil, FederatedIdentityProviders } from '@aws-amplify/ui';
|
|
3
3
|
import { Divider } from '../../../primitives/Divider/Divider.mjs';
|
|
4
4
|
import { Flex } from '../../../primitives/Flex/Flex.mjs';
|
|
5
5
|
import { useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
@@ -3,14 +3,6 @@ import { View } from '../../../primitives/View/View.mjs';
|
|
|
3
3
|
import { useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
4
4
|
import { useCustomComponents } from '../hooks/useCustomComponents/useCustomComponents.mjs';
|
|
5
5
|
|
|
6
|
-
// TODO replace usage of this util with the `isSignInOrSignUpRoute` util in v3.
|
|
7
|
-
// Currently `hasTabs` always returns `undefined` as the right condition always
|
|
8
|
-
// resolves to truthy. This prevents the "data-amplify-router-content" attribute
|
|
9
|
-
// from being applied below. Fixing it will cause consumer snapshot tests to break,
|
|
10
|
-
// so wait to update.
|
|
11
|
-
const hasTabs = (route) => {
|
|
12
|
-
return route === 'signIn' || 'signUp';
|
|
13
|
-
};
|
|
14
6
|
function RouteContainer({ children, className, variation = 'default', }) {
|
|
15
7
|
const { route } = useAuthenticator(({ route }) => [route]);
|
|
16
8
|
const {
|
|
@@ -19,7 +11,7 @@ function RouteContainer({ children, className, variation = 'default', }) {
|
|
|
19
11
|
return (React__default.createElement(View, { className: className, "data-amplify-authenticator": "", "data-variation": variation },
|
|
20
12
|
React__default.createElement(View, { "data-amplify-container": "" },
|
|
21
13
|
React__default.createElement(Header, null),
|
|
22
|
-
React__default.createElement(View, { "data-amplify-router": "", "data-amplify-router-content":
|
|
14
|
+
React__default.createElement(View, { "data-amplify-router": "", "data-amplify-router-content": undefined }, children),
|
|
23
15
|
React__default.createElement(Footer, null))));
|
|
24
16
|
}
|
|
25
17
|
|
|
@@ -5,8 +5,8 @@ import { ForceNewPassword } from '../ForceNewPassword/ForceNewPassword.mjs';
|
|
|
5
5
|
import { SetupTotp } from '../SetupTotp/SetupTotp.mjs';
|
|
6
6
|
import '@aws-amplify/ui';
|
|
7
7
|
import '../../../primitives/TextField/TextField.mjs';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
8
|
+
import '../shared/ConfirmSignInFooter.mjs';
|
|
9
|
+
import '../shared/TwoButtonSubmitFooter.mjs';
|
|
10
10
|
import '../../../primitives/Alert/Alert.mjs';
|
|
11
11
|
import { SignInSignUpTabs } from '../shared/SignInSignUpTabs.mjs';
|
|
12
12
|
import { ConfirmVerifyUser } from '../VerifyUser/ConfirmVerifyUser.mjs';
|
|
@@ -9,7 +9,7 @@ import { usePagination } from '../Pagination/usePagination.mjs';
|
|
|
9
9
|
import { SearchField } from '../SearchField/SearchField.mjs';
|
|
10
10
|
import { ComponentText } from '../shared/constants.mjs';
|
|
11
11
|
import { strHasLength } from '../shared/utils.mjs';
|
|
12
|
-
import { getPageCount, getItemsAtPage
|
|
12
|
+
import { itemHasText, getPageCount, getItemsAtPage } from './utils.mjs';
|
|
13
13
|
|
|
14
14
|
const DEFAULT_PAGE_SIZE = 10;
|
|
15
15
|
const TYPEAHEAD_DELAY_MS = 300;
|
|
@@ -3,7 +3,7 @@ import { useDropZone } from '@aws-amplify/ui-react-core';
|
|
|
3
3
|
import { DropZoneProvider } from './DropZoneProvider.mjs';
|
|
4
4
|
import { DropZoneContainer } from './DropZoneContainer.mjs';
|
|
5
5
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { Default, Rejected, Accepted } from './DropZoneChildren.mjs';
|
|
7
7
|
|
|
8
8
|
const DropZonePrimitive = ({ children, testId, isDisabled, acceptedFileTypes, onDropComplete, ...rest }, ref) => {
|
|
9
9
|
const { dragState, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, } = useDropZone({
|
|
@@ -29,7 +29,7 @@ const LoaderPrimitive = ({ className, filledColor, emptyColor, size, variation,
|
|
|
29
29
|
}, "data-testid": LINEAR_FILLED }),
|
|
30
30
|
isDeterminate ? (React.createElement("text", { "aria-live": "polite", className: classNames(ComponentClassName.LoaderLabel, isPercentageTextHidden ? ComponentClassName.VisuallyHidden : null),
|
|
31
31
|
// -1% offset makes the text position look nicest
|
|
32
|
-
x: `${-1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
32
|
+
x: `${ -1 + percentage}%`, y: "200%" }, percent)) : null));
|
|
33
33
|
// r + stroke-width should add up to 50% to avoid overflow
|
|
34
34
|
const circularLoader = (React.createElement("g", null,
|
|
35
35
|
React.createElement("circle", { cx: "50%", cy: "50%", r: `${RADIUS}%`, strokeWidth: `${CIRCULAR_STROKE_WIDTH}%`, style: { stroke: String(emptyColor) }, "data-testid": CIRCULAR_EMPTY }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { classNames, ComponentClassName
|
|
2
|
+
import { countryDialCodes, classNames, ComponentClassName } from '@aws-amplify/ui';
|
|
3
3
|
import { SelectField } from '../SelectField/SelectField.mjs';
|
|
4
4
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
|
12
12
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
13
13
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
14
14
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
15
|
-
import {
|
|
15
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
16
16
|
|
|
17
17
|
const RadioGroupFieldPrimitive = ({ children, className, defaultValue, descriptiveText, errorMessage, hasError = false, id, isDisabled, isRequired, isReadOnly, legend, legendHidden = false, labelPosition, onChange, name, size, testId, value, variation, ...rest }, ref) => {
|
|
18
18
|
const fieldId = useStableId(id);
|
|
@@ -11,7 +11,7 @@ import { splitPrimitiveProps } from '../utils/splitPrimitiveProps.mjs';
|
|
|
11
11
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
12
12
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
13
13
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
14
|
-
import {
|
|
14
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
15
15
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
16
16
|
|
|
17
17
|
const selectFieldChildren = ({ children, options, }) => {
|
|
@@ -14,7 +14,7 @@ import { useStableId } from '../utils/useStableId.mjs';
|
|
|
14
14
|
import { useFieldset } from '../Fieldset/useFieldset.mjs';
|
|
15
15
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
16
16
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
17
|
-
import {
|
|
17
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
18
18
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
19
19
|
|
|
20
20
|
const SLIDER_LABEL_TEST_ID = 'slider-label';
|
|
@@ -22,7 +22,7 @@ import { splitPrimitiveProps } from '../utils/splitPrimitiveProps.mjs';
|
|
|
22
22
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
23
23
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
24
24
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
25
|
-
import {
|
|
25
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
26
26
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
27
27
|
|
|
28
28
|
const DECREASE_ICON = 'decrease-icon';
|
|
@@ -12,7 +12,7 @@ import { AutoresizeTextArea } from '../TextArea/AutoresizeTextarea.mjs';
|
|
|
12
12
|
import { useStableId } from '../utils/useStableId.mjs';
|
|
13
13
|
import { primitiveWithForwardRef } from '../utils/primitiveWithForwardRef.mjs';
|
|
14
14
|
import { createSpaceSeparatedIds } from '../utils/createSpaceSeparatedIds.mjs';
|
|
15
|
-
import {
|
|
15
|
+
import { ERROR_SUFFIX, DESCRIPTION_SUFFIX } from '../../helpers/constants.mjs';
|
|
16
16
|
import { getUniqueComponentId } from '../utils/getUniqueComponentId.mjs';
|
|
17
17
|
|
|
18
18
|
const DEFAULT_ROW_COUNT = 3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cssNameTransform, isDesignToken } from '@aws-amplify/ui';
|
|
2
2
|
export { classNameModifier, classNameModifierByFlag } from '@aws-amplify/ui';
|
|
3
3
|
import { isThemeStylePropKey } from '../types/theme.mjs';
|
|
4
4
|
import { stylePropsToThemeKeys } from './constants.mjs';
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var isEqual = require('lodash/isEqual.js');
|
|
7
7
|
var uiReactCore = require('@aws-amplify/ui-react-core');
|
|
8
8
|
var ui = require('@aws-amplify/ui');
|
|
9
|
-
var Field = require('./Field-
|
|
9
|
+
var Field = require('./Field-BjInyX0G.js');
|
|
10
10
|
require('aws-amplify/storage');
|
|
11
11
|
var debounce = require('lodash/debounce.js');
|
|
12
12
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
@@ -2469,7 +2469,7 @@ const defaultDeleteUserDisplayText = {
|
|
|
2469
2469
|
warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
|
|
2470
2470
|
};
|
|
2471
2471
|
|
|
2472
|
-
const VERSION = '6.11.
|
|
2472
|
+
const VERSION = '6.11.2';
|
|
2473
2473
|
|
|
2474
2474
|
const logger$2 = ui.getLogger('AccountSettings');
|
|
2475
2475
|
const getIsDisabled = (formValues, validationError) => {
|
|
@@ -2719,14 +2719,6 @@ const useCustomComponents = () => {
|
|
|
2719
2719
|
return context;
|
|
2720
2720
|
};
|
|
2721
2721
|
|
|
2722
|
-
// TODO replace usage of this util with the `isSignInOrSignUpRoute` util in v3.
|
|
2723
|
-
// Currently `hasTabs` always returns `undefined` as the right condition always
|
|
2724
|
-
// resolves to truthy. This prevents the "data-amplify-router-content" attribute
|
|
2725
|
-
// from being applied below. Fixing it will cause consumer snapshot tests to break,
|
|
2726
|
-
// so wait to update.
|
|
2727
|
-
const hasTabs = (route) => {
|
|
2728
|
-
return route === 'signIn' || 'signUp';
|
|
2729
|
-
};
|
|
2730
2722
|
function RouteContainer({ children, className, variation = 'default', }) {
|
|
2731
2723
|
const { route } = uiReactCore.useAuthenticator(({ route }) => [route]);
|
|
2732
2724
|
const {
|
|
@@ -2735,7 +2727,7 @@ function RouteContainer({ children, className, variation = 'default', }) {
|
|
|
2735
2727
|
return (React__namespace["default"].createElement(Field.View, { className: className, "data-amplify-authenticator": "", "data-variation": variation },
|
|
2736
2728
|
React__namespace["default"].createElement(Field.View, { "data-amplify-container": "" },
|
|
2737
2729
|
React__namespace["default"].createElement(Header, null),
|
|
2738
|
-
React__namespace["default"].createElement(Field.View, { "data-amplify-router": "", "data-amplify-router-content":
|
|
2730
|
+
React__namespace["default"].createElement(Field.View, { "data-amplify-router": "", "data-amplify-router-content": undefined }, children),
|
|
2739
2731
|
React__namespace["default"].createElement(Footer, null))));
|
|
2740
2732
|
}
|
|
2741
2733
|
|
package/dist/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Field = require('./Field-
|
|
5
|
+
var Field = require('./Field-BjInyX0G.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Storage = require('aws-amplify/storage');
|
|
8
8
|
var ui = require('@aws-amplify/ui');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PrimitiveCatalogType } from './types/catalog';
|
|
1
|
+
import type { PrimitiveCatalogType } from './types/catalog';
|
|
2
2
|
export declare const PrimitiveCatalog: PrimitiveCatalogType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ChangePasswordProps } from './types';
|
|
2
|
+
import type { ChangePasswordProps } from './types';
|
|
3
3
|
declare function ChangePassword({ components, displayText: overrideDisplayText, onError, onSuccess, validators, }: ChangePasswordProps): React.JSX.Element | null;
|
|
4
4
|
declare namespace ChangePassword {
|
|
5
5
|
var CurrentPasswordField: import("../types").PasswordFieldComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputEventType, ValidatorOptions } from '@aws-amplify/ui';
|
|
2
|
-
import { SubmitButtonComponent, ErrorMessageComponent, PasswordFieldComponent, FormValues } from '../types';
|
|
3
|
-
import { ChangePasswordDisplayText } from '../utils';
|
|
1
|
+
import type { InputEventType, ValidatorOptions } from '@aws-amplify/ui';
|
|
2
|
+
import type { SubmitButtonComponent, ErrorMessageComponent, PasswordFieldComponent, FormValues } from '../types';
|
|
3
|
+
import type { ChangePasswordDisplayText } from '../utils';
|
|
4
4
|
export interface ChangePasswordComponents {
|
|
5
5
|
ConfirmPasswordField?: PasswordFieldComponent;
|
|
6
6
|
CurrentPasswordField?: PasswordFieldComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DeleteUserProps } from './types';
|
|
2
|
+
import type { DeleteUserProps } from './types';
|
|
3
3
|
declare function DeleteUser({ components, displayText: overrideDisplayText, handleDelete, onError, onSuccess, }: DeleteUserProps): React.JSX.Element | null;
|
|
4
4
|
declare namespace DeleteUser {
|
|
5
5
|
var ErrorMessage: import("../types").ErrorMessageComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AuthUser } from 'aws-amplify/auth';
|
|
3
|
-
import { ButtonComponent, ErrorMessageComponent } from '../types';
|
|
4
|
-
import { DeleteUserDisplayText } from '../utils';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AuthUser } from 'aws-amplify/auth';
|
|
3
|
+
import type { ButtonComponent, ErrorMessageComponent } from '../types';
|
|
4
|
+
import type { DeleteUserDisplayText } from '../utils';
|
|
5
5
|
export interface WarningViewProps {
|
|
6
6
|
/** called when end user cancels account deletion */
|
|
7
7
|
onCancel: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ErrorMessageComponent } from '../types';
|
|
1
|
+
import type { ErrorMessageComponent } from '../types';
|
|
2
2
|
export declare const DefaultErrorMessage: ErrorMessageComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AlertProps, ButtonProps, PasswordFieldProps } from '../../primitives/types';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AlertProps, ButtonProps, PasswordFieldProps } from '../../primitives/types';
|
|
3
3
|
type CommonPasswordFieldProps = Partial<PasswordFieldProps> & Required<Pick<PasswordFieldProps, 'onBlur' | 'onChange' | 'name'>> & {
|
|
4
4
|
fieldValidationErrors?: string[];
|
|
5
5
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { ChangePasswordDisplayText, DeleteUserDisplayText, } from './displayText';
|
|
2
|
+
export { defaultChangePasswordDisplayText, defaultDeleteUserDisplayText, } from './displayText';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AuthenticatorMachineOptions, FormFieldComponents, FormFieldOptions } from '@aws-amplify/ui';
|
|
3
|
-
import { AuthUser } from 'aws-amplify/auth';
|
|
4
|
-
import { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
5
|
-
import { ComponentsProviderProps } from './hooks/useCustomComponents';
|
|
6
|
-
import { RouterProps } from './Router';
|
|
2
|
+
import type { AuthenticatorMachineOptions, FormFieldComponents, FormFieldOptions } from '@aws-amplify/ui';
|
|
3
|
+
import type { AuthUser } from 'aws-amplify/auth';
|
|
4
|
+
import type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
5
|
+
import type { ComponentsProviderProps } from './hooks/useCustomComponents';
|
|
6
|
+
import type { RouterProps } from './Router';
|
|
7
7
|
export type SignOut = UseAuthenticator['signOut'];
|
|
8
8
|
export type AuthenticatorProps = Partial<Omit<AuthenticatorMachineOptions, 'formFields'> & ComponentsProviderProps & RouterProps & {
|
|
9
9
|
children: React.ReactNode | ((props: {
|
|
@@ -61,6 +61,7 @@ export declare namespace Authenticator {
|
|
|
61
61
|
var SetupEmail: {
|
|
62
62
|
({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
|
|
63
63
|
Header(): JSX.Element;
|
|
64
|
+
/** isReadOnly maps to readonly HTML type */
|
|
64
65
|
Footer(): JSX.Element;
|
|
65
66
|
};
|
|
66
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RouteProps } from '../RouteContainer';
|
|
2
|
+
import type { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare function ConfirmSignUp({ className, variation, }: RouteProps): React.JSX.Element;
|
|
4
4
|
export declare namespace ConfirmSignUp {
|
|
5
5
|
var Header: () => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FederatedIdentityProviders, SocialProvider } from '@aws-amplify/ui';
|
|
2
|
+
import type { FederatedIdentityProviders, SocialProvider } from '@aws-amplify/ui';
|
|
3
3
|
export interface FederatedSignInButtonProps {
|
|
4
4
|
icon?: SocialProvider;
|
|
5
5
|
provider: FederatedIdentityProviders;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RouteProps } from '../RouteContainer';
|
|
2
|
+
import type { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ForceNewPassword: {
|
|
4
4
|
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
5
|
FormFields(): React.JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RouteProps } from '../RouteContainer';
|
|
2
|
+
import type { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const ConfirmResetPassword: {
|
|
4
4
|
({ className, variation, }: RouteProps): React.JSX.Element;
|
|
5
5
|
Header(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { RouteContainer } from './RouteContainer';
|
|
2
|
-
export { RouteContainerProps, RouteProps } from './types';
|
|
2
|
+
export type { RouteContainerProps, RouteProps } from './types';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ComponentsProviderProps
|
|
1
|
+
export type { ComponentsProviderProps } from './useCustomComponents';
|
|
2
|
+
export { CustomComponentsContext, useCustomComponents, } from './useCustomComponents';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export type { AuthenticatorProps } from './Authenticator';
|
|
2
|
+
export { Authenticator } from './Authenticator';
|
|
3
|
+
export type { WithAuthenticatorOptions, WithAuthenticatorProps, } from './withAuthenticator';
|
|
4
|
+
export { withAuthenticator } from './withAuthenticator';
|
|
5
|
+
export type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
6
|
+
export { useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RouteProps } from '../RouteContainer';
|
|
2
|
+
import type { RouteProps } from '../RouteContainer';
|
|
3
3
|
export declare const SignInSignUpTabs: ({ className, hideSignUp, variation, }: {
|
|
4
4
|
hideSignUp: boolean;
|
|
5
5
|
} & RouteProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AuthUser } from 'aws-amplify/auth';
|
|
3
|
-
import { AuthenticatorProps, SignOut } from './Authenticator';
|
|
2
|
+
import type { AuthUser } from 'aws-amplify/auth';
|
|
3
|
+
import type { AuthenticatorProps, SignOut } from './Authenticator';
|
|
4
4
|
export type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
|
|
5
5
|
export interface WithAuthenticatorProps {
|
|
6
6
|
signOut?: SignOut;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { FileSelectOptions, FileSelectProps, HandleFileSelect, UseFileSelect, } from './FileSelect';
|
|
2
|
+
export { FileSelect, useFileSelect } from './FileSelect';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { FilterChildrenProps } from './FilterChildren';
|
|
2
|
+
export { FilterChildren } from './FilterChildren';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { WebTheme } from '@aws-amplify/ui';
|
|
3
|
-
import { BaseComponentTheme } from '@aws-amplify/ui';
|
|
2
|
+
import type { WebTheme } from '@aws-amplify/ui';
|
|
3
|
+
import type { BaseComponentTheme } from '@aws-amplify/ui';
|
|
4
4
|
interface ComponentStyleProps extends React.ComponentProps<'style'> {
|
|
5
5
|
/**
|
|
6
6
|
* Provide a server generated nonce which matches your CSP `style-src` rule.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { WebTheme } from '@aws-amplify/ui';
|
|
3
|
-
import { ColorMode } from './ThemeProvider';
|
|
2
|
+
import type { WebTheme } from '@aws-amplify/ui';
|
|
3
|
+
import type { ColorMode } from './ThemeProvider';
|
|
4
4
|
export interface ThemeContextType {
|
|
5
5
|
theme: WebTheme;
|
|
6
6
|
colorMode?: ColorMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Theme, WebTheme } from '@aws-amplify/ui';
|
|
2
|
+
import type { Theme, WebTheme } from '@aws-amplify/ui';
|
|
3
3
|
export type ColorMode = 'system' | 'light' | 'dark';
|
|
4
4
|
export type Direction = 'ltr' | 'rtl';
|
|
5
5
|
interface ThemeProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { WebTheme } from '@aws-amplify/ui';
|
|
2
|
+
import type { WebTheme } from '@aws-amplify/ui';
|
|
3
3
|
interface ThemeStyleProps extends React.ComponentProps<'style'> {
|
|
4
4
|
/**
|
|
5
5
|
* Provide a server generated nonce which matches your CSP `style-src` rule.
|