@aws-amplify/ui-react 6.11.1 → 6.12.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/README.md +14 -15
- package/dist/esm/primitives/Collection/Collection.mjs +10 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +39 -36
- package/dist/styles/liveness.css +17 -2
- package/dist/styles/liveness.layer.css +17 -2
- package/dist/styles.css +17 -2
- package/dist/styles.layer.css +17 -2
- 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 +15 -6
- 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
|
|
@@ -10,11 +10,20 @@ import { SearchField } from '../SearchField/SearchField.mjs';
|
|
|
10
10
|
import { ComponentText } from '../shared/constants.mjs';
|
|
11
11
|
import { strHasLength } from '../shared/utils.mjs';
|
|
12
12
|
import { itemHasText, getPageCount, getItemsAtPage } from './utils.mjs';
|
|
13
|
+
import { Table } from '../Table/Table.mjs';
|
|
14
|
+
import { TableBody } from '../Table/TableBody.mjs';
|
|
15
|
+
import '../Table/TableCell.mjs';
|
|
16
|
+
import '../Table/TableFoot.mjs';
|
|
17
|
+
import '../Table/TableHead.mjs';
|
|
18
|
+
import '../Table/TableRow.mjs';
|
|
13
19
|
|
|
14
20
|
const DEFAULT_PAGE_SIZE = 10;
|
|
15
21
|
const TYPEAHEAD_DELAY_MS = 300;
|
|
16
22
|
const ListCollection = ({ children, direction = 'column', items, ...rest }) => (React.createElement(Flex, { direction: direction, ...rest }, Array.isArray(items) ? items.map(children) : null));
|
|
17
23
|
const GridCollection = ({ children, items, ...rest }) => (React.createElement(Grid, { ...rest }, Array.isArray(items) ? items.map(children) : null));
|
|
24
|
+
const TableCollection = ({ children, items, tableHeader: TableHeader, ...rest }) => (React.createElement(Table, { ...rest },
|
|
25
|
+
React.createElement(TableHeader, null),
|
|
26
|
+
React.createElement(TableBody, null, Array.isArray(items) ? items.map(children) : null)));
|
|
18
27
|
const renderCollectionOrNoResultsFound = (collection, items, searchNoResultsFound) => {
|
|
19
28
|
if (items.length) {
|
|
20
29
|
return collection;
|
|
@@ -45,7 +54,7 @@ const Collection = ({ className, isSearchable, isPaginated, items, itemsPerPage
|
|
|
45
54
|
if (isPaginated) {
|
|
46
55
|
items = getItemsAtPage(items, pagination.currentPage, itemsPerPage);
|
|
47
56
|
}
|
|
48
|
-
const collection = type === 'list' ? (React.createElement(ListCollection, { className: ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'grid' ? (React.createElement(GridCollection, { className: ComponentClassName.CollectionItems, items: items, ...rest })) : null;
|
|
57
|
+
const collection = type === 'list' ? (React.createElement(ListCollection, { className: ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'grid' ? (React.createElement(GridCollection, { className: ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'table' ? (React.createElement(TableCollection, { className: ComponentClassName.CollectionItems, items: items, tableHeader: rest.tableHeader, ...rest })) : null;
|
|
49
58
|
return (React.createElement(Flex, { testId: testId, className: classNames(ComponentClassName.Collection, className) },
|
|
50
59
|
isSearchable ? (React.createElement(Flex, { className: ComponentClassName.CollectionSearch },
|
|
51
60
|
React.createElement(SearchField, { label: searchLabel, placeholder: searchPlaceholder, onChange: (e) => onSearch(e.target.value), onClear: () => setSearchText('') }))) : null,
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1062,10 +1062,47 @@ const itemHasText = (item, text) => {
|
|
|
1062
1062
|
*/
|
|
1063
1063
|
const getPageCount = (totalItems, itemsPerPage) => Math.ceil(totalItems / itemsPerPage);
|
|
1064
1064
|
|
|
1065
|
+
const TablePrimitive = ({ caption, children, className, highlightOnHover = false, size, variation, ...rest }, ref) => {
|
|
1066
|
+
const componentClasses = ui.classNames(ui.ComponentClassName.Table, ui.classNameModifier(ui.ComponentClassName.Table, size), ui.classNameModifier(ui.ComponentClassName.Table, variation), className);
|
|
1067
|
+
return (React__namespace.createElement(Field.View, { as: "table", className: componentClasses, "data-highlightonhover": highlightOnHover, ref: ref, ...rest },
|
|
1068
|
+
caption && (React__namespace.createElement(Field.View, { as: "caption", className: ui.ComponentClassName.TableCaption }, caption)),
|
|
1069
|
+
children));
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* [📖 Docs](https://ui.docs.amplify.aws/react/components/table)
|
|
1073
|
+
*/
|
|
1074
|
+
const Table = Field.primitiveWithForwardRef(TablePrimitive);
|
|
1075
|
+
Table.displayName = 'Table';
|
|
1076
|
+
|
|
1077
|
+
const TableBodyPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tbody", className: ui.classNames(ui.ComponentClassName.TableBody, className), ref: ref, ...rest }, children));
|
|
1078
|
+
const TableBody = Field.primitiveWithForwardRef(TableBodyPrimitive);
|
|
1079
|
+
TableBody.displayName = 'TableBody';
|
|
1080
|
+
|
|
1081
|
+
const TableCellPrimitive = ({ as: asElementTag = 'td', children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: asElementTag, className: ui.classNames(asElementTag === 'td'
|
|
1082
|
+
? ui.ComponentClassName.TableTd
|
|
1083
|
+
: ui.ComponentClassName.TableTh, className), ref: ref, ...rest }, children));
|
|
1084
|
+
const TableCell = Field.primitiveWithForwardRef(TableCellPrimitive);
|
|
1085
|
+
TableCell.displayName = 'TableCell';
|
|
1086
|
+
|
|
1087
|
+
const TableFootPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tfoot", className: ui.classNames(ui.ComponentClassName.TableFoot, className), ref: ref, ...rest }, children));
|
|
1088
|
+
const TableFoot = Field.primitiveWithForwardRef(TableFootPrimitive);
|
|
1089
|
+
TableFoot.displayName = 'TableFoot';
|
|
1090
|
+
|
|
1091
|
+
const TableHeadPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "thead", className: ui.classNames(ui.ComponentClassName.TableHead, className), ref: ref, ...rest }, children));
|
|
1092
|
+
const TableHead = Field.primitiveWithForwardRef(TableHeadPrimitive);
|
|
1093
|
+
TableHead.displayName = 'TableHead';
|
|
1094
|
+
|
|
1095
|
+
const TableRowPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tr", className: ui.classNames(ui.ComponentClassName.TableRow, className), ref: ref, ...rest }, children));
|
|
1096
|
+
const TableRow = Field.primitiveWithForwardRef(TableRowPrimitive);
|
|
1097
|
+
TableRow.displayName = 'TableRow';
|
|
1098
|
+
|
|
1065
1099
|
const DEFAULT_PAGE_SIZE = 10;
|
|
1066
1100
|
const TYPEAHEAD_DELAY_MS = 300;
|
|
1067
1101
|
const ListCollection = ({ children, direction = 'column', items, ...rest }) => (React__namespace.createElement(Field.Flex, { direction: direction, ...rest }, Array.isArray(items) ? items.map(children) : null));
|
|
1068
1102
|
const GridCollection = ({ children, items, ...rest }) => (React__namespace.createElement(Grid, { ...rest }, Array.isArray(items) ? items.map(children) : null));
|
|
1103
|
+
const TableCollection = ({ children, items, tableHeader: TableHeader, ...rest }) => (React__namespace.createElement(Table, { ...rest },
|
|
1104
|
+
React__namespace.createElement(TableHeader, null),
|
|
1105
|
+
React__namespace.createElement(TableBody, null, Array.isArray(items) ? items.map(children) : null)));
|
|
1069
1106
|
const renderCollectionOrNoResultsFound = (collection, items, searchNoResultsFound) => {
|
|
1070
1107
|
if (items.length) {
|
|
1071
1108
|
return collection;
|
|
@@ -1096,7 +1133,7 @@ const Collection = ({ className, isSearchable, isPaginated, items, itemsPerPage
|
|
|
1096
1133
|
if (isPaginated) {
|
|
1097
1134
|
items = getItemsAtPage(items, pagination.currentPage, itemsPerPage);
|
|
1098
1135
|
}
|
|
1099
|
-
const collection = type === 'list' ? (React__namespace.createElement(ListCollection, { className: ui.ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'grid' ? (React__namespace.createElement(GridCollection, { className: ui.ComponentClassName.CollectionItems, items: items, ...rest })) : null;
|
|
1136
|
+
const collection = type === 'list' ? (React__namespace.createElement(ListCollection, { className: ui.ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'grid' ? (React__namespace.createElement(GridCollection, { className: ui.ComponentClassName.CollectionItems, items: items, ...rest })) : type === 'table' ? (React__namespace.createElement(TableCollection, { className: ui.ComponentClassName.CollectionItems, items: items, tableHeader: rest.tableHeader, ...rest })) : null;
|
|
1100
1137
|
return (React__namespace.createElement(Field.Flex, { testId: testId, className: ui.classNames(ui.ComponentClassName.Collection, className) },
|
|
1101
1138
|
isSearchable ? (React__namespace.createElement(Field.Flex, { className: ui.ComponentClassName.CollectionSearch },
|
|
1102
1139
|
React__namespace.createElement(SearchField, { label: searchLabel, placeholder: searchPlaceholder, onChange: (e) => onSearch(e.target.value), onClear: () => setSearchText('') }))) : null,
|
|
@@ -1985,40 +2022,6 @@ const SwitchFieldPrimitive = ({ className, defaultChecked, id, isChecked, isDisa
|
|
|
1985
2022
|
const SwitchField = Field.primitiveWithForwardRef(SwitchFieldPrimitive);
|
|
1986
2023
|
SwitchField.displayName = 'SwitchField';
|
|
1987
2024
|
|
|
1988
|
-
const TablePrimitive = ({ caption, children, className, highlightOnHover = false, size, variation, ...rest }, ref) => {
|
|
1989
|
-
const componentClasses = ui.classNames(ui.ComponentClassName.Table, ui.classNameModifier(ui.ComponentClassName.Table, size), ui.classNameModifier(ui.ComponentClassName.Table, variation), className);
|
|
1990
|
-
return (React__namespace.createElement(Field.View, { as: "table", className: componentClasses, "data-highlightonhover": highlightOnHover, ref: ref, ...rest },
|
|
1991
|
-
caption && (React__namespace.createElement(Field.View, { as: "caption", className: ui.ComponentClassName.TableCaption }, caption)),
|
|
1992
|
-
children));
|
|
1993
|
-
};
|
|
1994
|
-
/**
|
|
1995
|
-
* [📖 Docs](https://ui.docs.amplify.aws/react/components/table)
|
|
1996
|
-
*/
|
|
1997
|
-
const Table = Field.primitiveWithForwardRef(TablePrimitive);
|
|
1998
|
-
Table.displayName = 'Table';
|
|
1999
|
-
|
|
2000
|
-
const TableBodyPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tbody", className: ui.classNames(ui.ComponentClassName.TableBody, className), ref: ref, ...rest }, children));
|
|
2001
|
-
const TableBody = Field.primitiveWithForwardRef(TableBodyPrimitive);
|
|
2002
|
-
TableBody.displayName = 'TableBody';
|
|
2003
|
-
|
|
2004
|
-
const TableCellPrimitive = ({ as: asElementTag = 'td', children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: asElementTag, className: ui.classNames(asElementTag === 'td'
|
|
2005
|
-
? ui.ComponentClassName.TableTd
|
|
2006
|
-
: ui.ComponentClassName.TableTh, className), ref: ref, ...rest }, children));
|
|
2007
|
-
const TableCell = Field.primitiveWithForwardRef(TableCellPrimitive);
|
|
2008
|
-
TableCell.displayName = 'TableCell';
|
|
2009
|
-
|
|
2010
|
-
const TableFootPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tfoot", className: ui.classNames(ui.ComponentClassName.TableFoot, className), ref: ref, ...rest }, children));
|
|
2011
|
-
const TableFoot = Field.primitiveWithForwardRef(TableFootPrimitive);
|
|
2012
|
-
TableFoot.displayName = 'TableFoot';
|
|
2013
|
-
|
|
2014
|
-
const TableHeadPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "thead", className: ui.classNames(ui.ComponentClassName.TableHead, className), ref: ref, ...rest }, children));
|
|
2015
|
-
const TableHead = Field.primitiveWithForwardRef(TableHeadPrimitive);
|
|
2016
|
-
TableHead.displayName = 'TableHead';
|
|
2017
|
-
|
|
2018
|
-
const TableRowPrimitive = ({ children, className, ...rest }, ref) => (React__namespace.createElement(Field.View, { as: "tr", className: ui.classNames(ui.ComponentClassName.TableRow, className), ref: ref, ...rest }, children));
|
|
2019
|
-
const TableRow = Field.primitiveWithForwardRef(TableRowPrimitive);
|
|
2020
|
-
TableRow.displayName = 'TableRow';
|
|
2021
|
-
|
|
2022
2025
|
const TabsContext = React__namespace.createContext({
|
|
2023
2026
|
groupId: '',
|
|
2024
2027
|
activeTab: '',
|
|
@@ -2469,7 +2472,7 @@ const defaultDeleteUserDisplayText = {
|
|
|
2469
2472
|
warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
|
|
2470
2473
|
};
|
|
2471
2474
|
|
|
2472
|
-
const VERSION = '6.
|
|
2475
|
+
const VERSION = '6.12.0';
|
|
2473
2476
|
|
|
2474
2477
|
const logger$2 = ui.getLogger('AccountSettings');
|
|
2475
2478
|
const getIsDisabled = (formValues, validationError) => {
|
package/dist/styles/liveness.css
CHANGED
|
@@ -67,11 +67,26 @@
|
|
|
67
67
|
z-index: 1;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.amplify-liveness-loader {
|
|
70
|
+
.amplify-liveness-loader .amplify-liveness-centered-loader {
|
|
71
|
+
transform: translate(-50%, -50%);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.amplify-liveness-centered-loader {
|
|
71
75
|
position: absolute;
|
|
72
76
|
left: 50%;
|
|
73
77
|
top: 50%;
|
|
74
|
-
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.amplify-liveness-connecting-loader {
|
|
81
|
+
display: flex;
|
|
82
|
+
position: absolute;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
z-index: 3;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
background-color: var(--amplify-colors-background-primary);
|
|
75
90
|
}
|
|
76
91
|
|
|
77
92
|
.amplify-liveness-oval-canvas {
|
|
@@ -68,11 +68,26 @@
|
|
|
68
68
|
z-index: 1;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.amplify-liveness-loader {
|
|
71
|
+
.amplify-liveness-loader .amplify-liveness-centered-loader {
|
|
72
|
+
transform: translate(-50%, -50%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.amplify-liveness-centered-loader {
|
|
72
76
|
position: absolute;
|
|
73
77
|
left: 50%;
|
|
74
78
|
top: 50%;
|
|
75
|
-
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.amplify-liveness-connecting-loader {
|
|
82
|
+
display: flex;
|
|
83
|
+
position: absolute;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
z-index: 3;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
background-color: var(--amplify-colors-background-primary);
|
|
76
91
|
}
|
|
77
92
|
|
|
78
93
|
.amplify-liveness-oval-canvas {
|
package/dist/styles.css
CHANGED
|
@@ -4250,11 +4250,26 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4250
4250
|
z-index: 1;
|
|
4251
4251
|
}
|
|
4252
4252
|
|
|
4253
|
-
.amplify-liveness-loader {
|
|
4253
|
+
.amplify-liveness-loader .amplify-liveness-centered-loader {
|
|
4254
|
+
transform: translate(-50%, -50%);
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
.amplify-liveness-centered-loader {
|
|
4254
4258
|
position: absolute;
|
|
4255
4259
|
left: 50%;
|
|
4256
4260
|
top: 50%;
|
|
4257
|
-
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4263
|
+
.amplify-liveness-connecting-loader {
|
|
4264
|
+
display: flex;
|
|
4265
|
+
position: absolute;
|
|
4266
|
+
flex-direction: column;
|
|
4267
|
+
justify-content: center;
|
|
4268
|
+
align-items: center;
|
|
4269
|
+
z-index: 3;
|
|
4270
|
+
width: 100%;
|
|
4271
|
+
height: 100%;
|
|
4272
|
+
background-color: var(--amplify-colors-background-primary);
|
|
4258
4273
|
}
|
|
4259
4274
|
|
|
4260
4275
|
.amplify-liveness-oval-canvas {
|
package/dist/styles.layer.css
CHANGED
|
@@ -4251,11 +4251,26 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4251
4251
|
z-index: 1;
|
|
4252
4252
|
}
|
|
4253
4253
|
|
|
4254
|
-
.amplify-liveness-loader {
|
|
4254
|
+
.amplify-liveness-loader .amplify-liveness-centered-loader {
|
|
4255
|
+
transform: translate(-50%, -50%);
|
|
4256
|
+
}
|
|
4257
|
+
|
|
4258
|
+
.amplify-liveness-centered-loader {
|
|
4255
4259
|
position: absolute;
|
|
4256
4260
|
left: 50%;
|
|
4257
4261
|
top: 50%;
|
|
4258
|
-
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
.amplify-liveness-connecting-loader {
|
|
4265
|
+
display: flex;
|
|
4266
|
+
position: absolute;
|
|
4267
|
+
flex-direction: column;
|
|
4268
|
+
justify-content: center;
|
|
4269
|
+
align-items: center;
|
|
4270
|
+
z-index: 3;
|
|
4271
|
+
width: 100%;
|
|
4272
|
+
height: 100%;
|
|
4273
|
+
background-color: var(--amplify-colors-background-primary);
|
|
4259
4274
|
}
|
|
4260
4275
|
|
|
4261
4276
|
.amplify-liveness-oval-canvas {
|
|
@@ -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';
|