@aws-amplify/ui-react 6.11.1 → 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/esm/version.mjs +1 -1
- package/dist/index.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 +3 -3
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
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -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) => {
|
|
@@ -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.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ColorMode, Direction
|
|
1
|
+
export type { ColorMode, Direction } from './ThemeProvider';
|
|
2
|
+
export { ThemeProvider } from './ThemeProvider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Breakpoint } from '../primitives/types/responsive';
|
|
1
|
+
import type { Breakpoint } from '../primitives/types/responsive';
|
|
2
2
|
interface UseBreakpointValue<T = unknown> {
|
|
3
3
|
(values: Record<string, T> | T[], defaultBreakpoint?: Breakpoint, propKey?: string): T | string | number | null;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WebTheme } from '@aws-amplify/ui';
|
|
2
|
-
import { ColorMode } from '../components/ThemeProvider/ThemeProvider';
|
|
3
|
-
import { ThemeContextType } from '../components/ThemeProvider/ThemeContext';
|
|
1
|
+
import type { WebTheme } from '@aws-amplify/ui';
|
|
2
|
+
import type { ColorMode } from '../components/ThemeProvider/ThemeProvider';
|
|
3
|
+
import type { ThemeContextType } from '../components/ThemeProvider/ThemeContext';
|
|
4
4
|
/**
|
|
5
5
|
* Get current Theme object value from Amplify context.
|
|
6
6
|
* Returns a default theme if context is not available
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export { useDropZone } from '@aws-amplify/ui-react-core';
|
|
|
7
7
|
export * from './components/FilterChildren';
|
|
8
8
|
export { AlertIcon } from './primitives/Alert/AlertIcon';
|
|
9
9
|
export * from './primitives/Icon/internal';
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
10
|
+
export type { StorageBrowserIconType } from './primitives/Icon/context/StorageBrowserIcons';
|
|
11
|
+
export { STORAGE_BROWSER_ICON_PATHS } from './primitives/Icon/context/StorageBrowserIcons';
|
|
12
|
+
export type { FileSelectOptions, FileSelectProps, HandleFileSelect, UseFileSelect, } from './components/FileSelect';
|
|
13
|
+
export { FileSelect, useFileSelect } from './components/FileSelect';
|
|
12
14
|
export { Field } from './primitives/Field';
|
|
13
15
|
export { PrimitiveCatalog } from './PrimitiveCatalog';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseAccordionProps } from './types';
|
|
2
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
1
|
+
import type { BaseAccordionProps } from './types';
|
|
2
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
3
3
|
import { AccordionItem } from './AccordionItem';
|
|
4
4
|
import { AccordionContent } from './AccordionContent';
|
|
5
5
|
import { AccordionTrigger } from './AccordionTrigger';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
2
|
-
import { BaseAccordionProps } from './types';
|
|
1
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
2
|
+
import type { BaseAccordionProps } from './types';
|
|
3
3
|
type BaseAccordionContainerProps = Omit<BaseAccordionProps, 'items'>;
|
|
4
4
|
/**
|
|
5
5
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/accordion)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseViewProps } from '../types/view';
|
|
2
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
1
|
+
import type { BaseViewProps } from '../types/view';
|
|
2
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
3
3
|
interface BaseAccordionContentProps extends BaseViewProps {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseViewProps } from '../types/view';
|
|
2
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
1
|
+
import type { BaseViewProps } from '../types/view';
|
|
2
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
3
3
|
interface BaseAccordionIconProps extends BaseViewProps {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseAccordionItemProps } from './types';
|
|
2
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
1
|
+
import type { BaseAccordionItemProps } from './types';
|
|
2
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
3
3
|
/**
|
|
4
4
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/accordion)
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseViewProps } from '../types/view';
|
|
2
|
-
import { ForwardRefPrimitive } from '../types/view';
|
|
1
|
+
import type { BaseViewProps } from '../types/view';
|
|
2
|
+
import type { ForwardRefPrimitive } from '../types/view';
|
|
3
3
|
interface BaseAccordionTriggerProps extends BaseViewProps {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Accordion } from './Accordion';
|
|
2
|
-
export { AccordionProps, AccordionItemProps } from './types';
|
|
2
|
+
export type { AccordionProps, AccordionItemProps } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
3
3
|
export interface BaseAccordionProps extends BaseViewProps {
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AlertVariations, ViewProps } from '../types';
|
|
2
|
+
import type { AlertVariations, ViewProps } from '../types';
|
|
3
3
|
interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
|
|
4
4
|
variation?: AlertVariations;
|
|
5
5
|
ariaHidden?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardRefPrimitive } from '../types';
|
|
2
|
-
import { BaseAvatarProps } from './types';
|
|
1
|
+
import type { ForwardRefPrimitive } from '../types';
|
|
2
|
+
import type { BaseAvatarProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* [📖 Docs](https://ui.docs.amplify.aws/react/components/avatar)
|
|
5
5
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Avatar } from './Avatar';
|
|
2
|
-
export { AvatarProps } from './types';
|
|
2
|
+
export type { AvatarProps } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sizes } from '../types/base';
|
|
2
|
-
import { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
1
|
+
import type { Sizes } from '../types/base';
|
|
2
|
+
import type { ElementType, PrimitiveProps, BaseViewProps } from '../types/view';
|
|
3
3
|
type AvatarVariations = 'default' | 'filled' | 'outlined';
|
|
4
4
|
type AvatarColorThemes = 'info' | 'error' | 'warning' | 'success';
|
|
5
5
|
type AvatarSizes = Sizes;
|