@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.
Files changed (261) hide show
  1. package/README.md +14 -15
  2. package/dist/esm/primitives/Collection/Collection.mjs +10 -1
  3. package/dist/esm/version.mjs +1 -1
  4. package/dist/index.js +39 -36
  5. package/dist/styles/liveness.css +17 -2
  6. package/dist/styles/liveness.layer.css +17 -2
  7. package/dist/styles.css +17 -2
  8. package/dist/styles.layer.css +17 -2
  9. package/dist/types/PrimitiveCatalog.d.ts +1 -1
  10. package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +1 -1
  11. package/dist/types/components/AccountSettings/ChangePassword/defaults.d.ts +1 -1
  12. package/dist/types/components/AccountSettings/ChangePassword/types.d.ts +3 -3
  13. package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +1 -1
  14. package/dist/types/components/AccountSettings/DeleteUser/defaults.d.ts +1 -1
  15. package/dist/types/components/AccountSettings/DeleteUser/types.d.ts +4 -4
  16. package/dist/types/components/AccountSettings/shared/Defaults.d.ts +1 -1
  17. package/dist/types/components/AccountSettings/types.d.ts +2 -2
  18. package/dist/types/components/AccountSettings/utils/displayText.d.ts +1 -1
  19. package/dist/types/components/AccountSettings/utils/index.d.ts +2 -1
  20. package/dist/types/components/Authenticator/Authenticator.d.ts +6 -5
  21. package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +1 -1
  22. package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
  23. package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +1 -1
  24. package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +1 -1
  25. package/dist/types/components/Authenticator/ForgotPassword/ConfirmResetPassword.d.ts +1 -1
  26. package/dist/types/components/Authenticator/ForgotPassword/ForgotPassword.d.ts +1 -1
  27. package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +1 -1
  28. package/dist/types/components/Authenticator/RouteContainer/index.d.ts +1 -1
  29. package/dist/types/components/Authenticator/Router/Router.d.ts +1 -1
  30. package/dist/types/components/Authenticator/Router/index.d.ts +1 -1
  31. package/dist/types/components/Authenticator/Router/types.d.ts +1 -1
  32. package/dist/types/components/Authenticator/SelectMfaType/SelectMfaType.d.ts +1 -1
  33. package/dist/types/components/Authenticator/SetupEmail/SetupEmail.d.ts +1 -1
  34. package/dist/types/components/Authenticator/SetupTotp/SetupTotp.d.ts +1 -1
  35. package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +1 -1
  36. package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +1 -1
  37. package/dist/types/components/Authenticator/hooks/useCustomComponents/index.d.ts +2 -1
  38. package/dist/types/components/Authenticator/hooks/useCustomComponents/useCustomComponents.d.ts +1 -1
  39. package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +1 -1
  40. package/dist/types/components/Authenticator/index.d.ts +6 -3
  41. package/dist/types/components/Authenticator/shared/FormField.d.ts +1 -1
  42. package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +1 -1
  43. package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +1 -1
  44. package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
  45. package/dist/types/components/FileSelect/index.d.ts +2 -1
  46. package/dist/types/components/FilterChildren/index.d.ts +2 -1
  47. package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +2 -2
  48. package/dist/types/components/ThemeProvider/ThemeContext.d.ts +2 -2
  49. package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  50. package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +1 -1
  51. package/dist/types/components/ThemeProvider/index.d.ts +2 -1
  52. package/dist/types/hooks/useAuth.d.ts +1 -1
  53. package/dist/types/hooks/useBreakpointValue.d.ts +1 -1
  54. package/dist/types/hooks/useDeprecationWarning.d.ts +1 -1
  55. package/dist/types/hooks/useTheme.d.ts +3 -3
  56. package/dist/types/hooks/useThemeBreakpoint.d.ts +1 -1
  57. package/dist/types/internal.d.ts +4 -2
  58. package/dist/types/primitives/Accordion/Accordion.d.ts +2 -2
  59. package/dist/types/primitives/Accordion/AccordionContainer.d.ts +2 -2
  60. package/dist/types/primitives/Accordion/AccordionContent.d.ts +2 -2
  61. package/dist/types/primitives/Accordion/AccordionIcon.d.ts +2 -2
  62. package/dist/types/primitives/Accordion/AccordionItem.d.ts +2 -2
  63. package/dist/types/primitives/Accordion/AccordionTrigger.d.ts +2 -2
  64. package/dist/types/primitives/Accordion/index.d.ts +1 -1
  65. package/dist/types/primitives/Accordion/types.d.ts +2 -2
  66. package/dist/types/primitives/Alert/Alert.d.ts +1 -1
  67. package/dist/types/primitives/Alert/AlertIcon.d.ts +1 -1
  68. package/dist/types/primitives/Avatar/Avatar.d.ts +2 -2
  69. package/dist/types/primitives/Avatar/index.d.ts +1 -1
  70. package/dist/types/primitives/Avatar/types.d.ts +2 -2
  71. package/dist/types/primitives/Badge/Badge.d.ts +1 -1
  72. package/dist/types/primitives/Breadcrumbs/BreadcrumbContainer.d.ts +1 -1
  73. package/dist/types/primitives/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
  74. package/dist/types/primitives/Breadcrumbs/BreadcrumbLink.d.ts +1 -1
  75. package/dist/types/primitives/Breadcrumbs/BreadcrumbSeparator.d.ts +1 -1
  76. package/dist/types/primitives/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  77. package/dist/types/primitives/Button/Button.d.ts +1 -1
  78. package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
  79. package/dist/types/primitives/Card/Card.d.ts +1 -1
  80. package/dist/types/primitives/Checkbox/Checkbox.d.ts +2 -2
  81. package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
  82. package/dist/types/primitives/Collection/Collection.d.ts +1 -1
  83. package/dist/types/primitives/Divider/Divider.d.ts +1 -1
  84. package/dist/types/primitives/DropZone/DropZone.d.ts +3 -3
  85. package/dist/types/primitives/DropZone/DropZoneContainer.d.ts +2 -2
  86. package/dist/types/primitives/DropZone/index.d.ts +1 -1
  87. package/dist/types/primitives/DropZone/types.d.ts +3 -3
  88. package/dist/types/primitives/Field/Field.d.ts +1 -1
  89. package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
  90. package/dist/types/primitives/Field/FieldDescription.d.ts +1 -1
  91. package/dist/types/primitives/Field/FieldErrorMessage.d.ts +1 -1
  92. package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
  93. package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
  94. package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
  95. package/dist/types/primitives/Fieldset/Fieldset.d.ts +1 -1
  96. package/dist/types/primitives/Flex/Flex.d.ts +1 -1
  97. package/dist/types/primitives/Grid/Grid.d.ts +1 -1
  98. package/dist/types/primitives/Heading/Heading.d.ts +1 -1
  99. package/dist/types/primitives/Icon/Icon.d.ts +1 -1
  100. package/dist/types/primitives/Icon/context/IconsContext.d.ts +1 -1
  101. package/dist/types/primitives/Icon/context/IconsProvider.d.ts +2 -2
  102. package/dist/types/primitives/Icon/context/index.d.ts +2 -1
  103. package/dist/types/primitives/Icon/context/useIcons.d.ts +1 -1
  104. package/dist/types/primitives/Icon/icons/IconAdd.d.ts +1 -1
  105. package/dist/types/primitives/Icon/icons/IconAssistant.d.ts +1 -1
  106. package/dist/types/primitives/Icon/icons/IconAttach.d.ts +1 -1
  107. package/dist/types/primitives/Icon/icons/IconCheck.d.ts +1 -1
  108. package/dist/types/primitives/Icon/icons/IconCheckCircle.d.ts +1 -1
  109. package/dist/types/primitives/Icon/icons/IconCheckCircleOutline.d.ts +1 -1
  110. package/dist/types/primitives/Icon/icons/IconChevronLeft.d.ts +1 -1
  111. package/dist/types/primitives/Icon/icons/IconChevronRight.d.ts +1 -1
  112. package/dist/types/primitives/Icon/icons/IconClose.d.ts +1 -1
  113. package/dist/types/primitives/Icon/icons/IconDocument.d.ts +1 -1
  114. package/dist/types/primitives/Icon/icons/IconEdit.d.ts +1 -1
  115. package/dist/types/primitives/Icon/icons/IconError.d.ts +1 -1
  116. package/dist/types/primitives/Icon/icons/IconExpandMore.d.ts +1 -1
  117. package/dist/types/primitives/Icon/icons/IconFile.d.ts +1 -1
  118. package/dist/types/primitives/Icon/icons/IconIndeterminate.d.ts +1 -1
  119. package/dist/types/primitives/Icon/icons/IconInfo.d.ts +1 -1
  120. package/dist/types/primitives/Icon/icons/IconMenu.d.ts +1 -1
  121. package/dist/types/primitives/Icon/icons/IconRemove.d.ts +1 -1
  122. package/dist/types/primitives/Icon/icons/IconSearch.d.ts +1 -1
  123. package/dist/types/primitives/Icon/icons/IconSend.d.ts +1 -1
  124. package/dist/types/primitives/Icon/icons/IconStar.d.ts +1 -1
  125. package/dist/types/primitives/Icon/icons/IconUpload.d.ts +1 -1
  126. package/dist/types/primitives/Icon/icons/IconUser.d.ts +1 -1
  127. package/dist/types/primitives/Icon/icons/IconVisibility.d.ts +1 -1
  128. package/dist/types/primitives/Icon/icons/IconVisibilityOff.d.ts +1 -1
  129. package/dist/types/primitives/Icon/icons/IconWarning.d.ts +1 -1
  130. package/dist/types/primitives/Icon/icons/types.d.ts +1 -1
  131. package/dist/types/primitives/Icon/index.d.ts +2 -1
  132. package/dist/types/primitives/Image/Image.d.ts +1 -1
  133. package/dist/types/primitives/Input/Input.d.ts +1 -1
  134. package/dist/types/primitives/Label/Label.d.ts +1 -1
  135. package/dist/types/primitives/Link/Link.d.ts +1 -1
  136. package/dist/types/primitives/Loader/Loader.d.ts +2 -2
  137. package/dist/types/primitives/Menu/Menu.d.ts +1 -1
  138. package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
  139. package/dist/types/primitives/Menu/MenuItem.d.ts +1 -1
  140. package/dist/types/primitives/Message/Message.d.ts +1 -1
  141. package/dist/types/primitives/Message/MessageContainer.d.ts +1 -1
  142. package/dist/types/primitives/Message/MessageContent.d.ts +1 -1
  143. package/dist/types/primitives/Message/MessageDismiss.d.ts +1 -1
  144. package/dist/types/primitives/Message/MessageHeading.d.ts +1 -1
  145. package/dist/types/primitives/Message/MessageIcon.d.ts +1 -1
  146. package/dist/types/primitives/Message/useMessage.d.ts +1 -1
  147. package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
  148. package/dist/types/primitives/Pagination/PaginationItem.d.ts +1 -1
  149. package/dist/types/primitives/Pagination/usePagination.d.ts +1 -1
  150. package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
  151. package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
  152. package/dist/types/primitives/PhoneNumberField/DialCodeSelect.d.ts +1 -1
  153. package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  154. package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
  155. package/dist/types/primitives/Radio/Radio.d.ts +1 -1
  156. package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
  157. package/dist/types/primitives/RadioGroupField/context.d.ts +1 -1
  158. package/dist/types/primitives/Rating/Rating.d.ts +1 -1
  159. package/dist/types/primitives/Rating/RatingIcon.d.ts +2 -2
  160. package/dist/types/primitives/Rating/RatingMixedIcon.d.ts +2 -2
  161. package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
  162. package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
  163. package/dist/types/primitives/SearchField/useSearchField.d.ts +1 -1
  164. package/dist/types/primitives/Select/Select.d.ts +2 -2
  165. package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
  166. package/dist/types/primitives/SliderField/SliderField.d.ts +2 -2
  167. package/dist/types/primitives/StepperField/StepperField.d.ts +2 -2
  168. package/dist/types/primitives/StepperField/useStepper.d.ts +1 -1
  169. package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
  170. package/dist/types/primitives/SwitchField/useSwitch.d.ts +1 -1
  171. package/dist/types/primitives/Table/Table.d.ts +1 -1
  172. package/dist/types/primitives/Table/TableBody.d.ts +1 -1
  173. package/dist/types/primitives/Table/TableCell.d.ts +1 -1
  174. package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
  175. package/dist/types/primitives/Table/TableHead.d.ts +1 -1
  176. package/dist/types/primitives/Table/TableRow.d.ts +1 -1
  177. package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
  178. package/dist/types/primitives/Tabs/TabsContainer.d.ts +2 -2
  179. package/dist/types/primitives/Tabs/TabsItem.d.ts +2 -2
  180. package/dist/types/primitives/Tabs/TabsList.d.ts +2 -2
  181. package/dist/types/primitives/Tabs/TabsPanel.d.ts +2 -2
  182. package/dist/types/primitives/Tabs/index.d.ts +1 -1
  183. package/dist/types/primitives/Tabs/types.d.ts +2 -2
  184. package/dist/types/primitives/Text/Text.d.ts +1 -1
  185. package/dist/types/primitives/TextArea/AutoresizeTextarea.d.ts +2 -2
  186. package/dist/types/primitives/TextArea/TextArea.d.ts +2 -2
  187. package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +2 -2
  188. package/dist/types/primitives/TextField/TextField.d.ts +1 -1
  189. package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
  190. package/dist/types/primitives/ToggleButton/useToggleButton.d.ts +1 -1
  191. package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  192. package/dist/types/primitives/ToggleButtonGroup/useToggleButtonGroup.d.ts +1 -1
  193. package/dist/types/primitives/View/View.d.ts +1 -1
  194. package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  195. package/dist/types/primitives/components.d.ts +8 -4
  196. package/dist/types/primitives/index.d.ts +2 -1
  197. package/dist/types/primitives/shared/constants.d.ts +1 -1
  198. package/dist/types/primitives/shared/getStyleValue.d.ts +1 -1
  199. package/dist/types/primitives/shared/responsive/getMediaQueries.d.ts +1 -1
  200. package/dist/types/primitives/shared/responsive/useBreakpoint.d.ts +1 -1
  201. package/dist/types/primitives/shared/responsive/utils.d.ts +1 -1
  202. package/dist/types/primitives/shared/styleUtils.d.ts +3 -3
  203. package/dist/types/primitives/shared/utils.d.ts +2 -1
  204. package/dist/types/primitives/types/alert.d.ts +3 -3
  205. package/dist/types/primitives/types/autocomplete.d.ts +3 -3
  206. package/dist/types/primitives/types/badge.d.ts +2 -2
  207. package/dist/types/primitives/types/base.d.ts +2 -1
  208. package/dist/types/primitives/types/breadcrumbs.d.ts +3 -3
  209. package/dist/types/primitives/types/button.d.ts +3 -3
  210. package/dist/types/primitives/types/buttonGroup.d.ts +6 -6
  211. package/dist/types/primitives/types/card.d.ts +1 -1
  212. package/dist/types/primitives/types/checkbox.d.ts +6 -6
  213. package/dist/types/primitives/types/checkboxField.d.ts +3 -3
  214. package/dist/types/primitives/types/collection.d.ts +15 -6
  215. package/dist/types/primitives/types/divider.d.ts +2 -2
  216. package/dist/types/primitives/types/field.d.ts +5 -5
  217. package/dist/types/primitives/types/fieldGroup.d.ts +3 -3
  218. package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -2
  219. package/dist/types/primitives/types/fieldset.d.ts +5 -5
  220. package/dist/types/primitives/types/flex.d.ts +3 -3
  221. package/dist/types/primitives/types/grid.d.ts +3 -3
  222. package/dist/types/primitives/types/heading.d.ts +2 -2
  223. package/dist/types/primitives/types/highlightMatch.d.ts +1 -1
  224. package/dist/types/primitives/types/icon.d.ts +4 -4
  225. package/dist/types/primitives/types/image.d.ts +3 -3
  226. package/dist/types/primitives/types/input.d.ts +4 -4
  227. package/dist/types/primitives/types/label.d.ts +1 -1
  228. package/dist/types/primitives/types/link.d.ts +2 -2
  229. package/dist/types/primitives/types/loader.d.ts +4 -4
  230. package/dist/types/primitives/types/menu.d.ts +5 -5
  231. package/dist/types/primitives/types/message.d.ts +4 -4
  232. package/dist/types/primitives/types/pagination.d.ts +3 -3
  233. package/dist/types/primitives/types/passwordField.d.ts +5 -5
  234. package/dist/types/primitives/types/phoneNumberField.d.ts +4 -4
  235. package/dist/types/primitives/types/placeholder.d.ts +4 -4
  236. package/dist/types/primitives/types/radio.d.ts +3 -3
  237. package/dist/types/primitives/types/radioGroupField.d.ts +6 -6
  238. package/dist/types/primitives/types/rating.d.ts +5 -5
  239. package/dist/types/primitives/types/responsive.d.ts +1 -1
  240. package/dist/types/primitives/types/scrollView.d.ts +1 -1
  241. package/dist/types/primitives/types/searchField.d.ts +4 -4
  242. package/dist/types/primitives/types/select.d.ts +3 -3
  243. package/dist/types/primitives/types/selectField.d.ts +4 -4
  244. package/dist/types/primitives/types/sliderField.d.ts +5 -5
  245. package/dist/types/primitives/types/stepperField.d.ts +2 -2
  246. package/dist/types/primitives/types/style.d.ts +6 -6
  247. package/dist/types/primitives/types/switchField.d.ts +6 -6
  248. package/dist/types/primitives/types/table.d.ts +3 -3
  249. package/dist/types/primitives/types/text.d.ts +1 -1
  250. package/dist/types/primitives/types/textArea.d.ts +4 -4
  251. package/dist/types/primitives/types/textAreaField.d.ts +5 -5
  252. package/dist/types/primitives/types/textField.d.ts +5 -5
  253. package/dist/types/primitives/types/toggleButton.d.ts +2 -2
  254. package/dist/types/primitives/types/toggleButtonGroup.d.ts +4 -4
  255. package/dist/types/primitives/types/view.d.ts +4 -4
  256. package/dist/types/primitives/types/visuallyHidden.d.ts +1 -1
  257. package/dist/types/primitives/utils/primitiveWithForwardRef.d.ts +1 -1
  258. package/dist/types/primitives/utils/splitPrimitiveProps.d.ts +1 -1
  259. package/dist/types/primitives/utils/testUtils.d.ts +1 -1
  260. package/dist/types/version.d.ts +1 -1
  261. package/package.json +3 -3
package/README.md CHANGED
@@ -1,25 +1,24 @@
1
+ # Amplify UI React
2
+
1
3
  [![@aws-amplify/ui-react Weekly Downloads stat badge](https://img.shields.io/npm/dw/@aws-amplify/ui-react?label=Download&logo=Amplify&style=flat)](https://www.npmjs.com/package/@aws-amplify/ui-react) [![@aws-amplify/ui-react version badge](https://img.shields.io/npm/v/@aws-amplify/ui-react/latest)](https://www.npmjs.com/package/@aws-amplify/ui-react)
2
4
 
3
- # Amplify UI
5
+ The React package provides components and utilities for building Amplify connected applications on React.
4
6
 
5
- Amplify UI is an open-source UI library with cloud-connected components that are endlessly customizable, accessible, and can integrate into _any_ application. Amplify UI consists of:
7
+ ## Contents
6
8
 
7
- 1. Connected components that simplify complex cloud-connected workflows, like Authenticator.
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
- ## React Documentation
11
+ - Authentication components for React applications
12
+ - Data-bound components for displaying dynamic data
13
13
 
14
- - https://ui.docs.amplify.aws/react
14
+ ### Primitive Components
15
15
 
16
- ## Features 🚀
16
+ - UI components like Buttons, Badges, and more for building React applications
17
17
 
18
- - **Better developer experience** Connected-components like Authenticator are being written with framework-specific implementations so that they follow framework conventions and are easier to integrate into your application.
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
- ## We love contributors!!
20
+ - Theming capabilities for customizing the appearance of Amplify UI
24
21
 
25
- See our contributing guide [CONTRIBUTING.md](/CONTRIBUTING.md) to help us scale Amplify UI!
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,
@@ -1,3 +1,3 @@
1
- const VERSION = '6.11.1';
1
+ const VERSION = '6.12.0';
2
2
 
3
3
  export { VERSION };
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.11.1';
2475
+ const VERSION = '6.12.0';
2473
2476
 
2474
2477
  const logger$2 = ui.getLogger('AccountSettings');
2475
2478
  const getIsDisabled = (formValues, validationError) => {
@@ -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
- transform: translate(-50%, -50%);
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
- transform: translate(-50%, -50%);
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
- transform: translate(-50%, -50%);
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 {
@@ -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
- transform: translate(-50%, -50%);
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,3 +1,3 @@
1
- import { ChangePasswordComponents } from './types';
1
+ import type { ChangePasswordComponents } from './types';
2
2
  declare const DEFAULTS: Required<ChangePasswordComponents>;
3
3
  export default DEFAULTS;
@@ -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,3 +1,3 @@
1
- import { DeleteUserComponents } from './types';
1
+ import type { DeleteUserComponents } from './types';
2
2
  declare const DEFAULTS: Required<DeleteUserComponents>;
3
3
  export default DEFAULTS;
@@ -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,4 +1,4 @@
1
- import { DisplayTextTemplate } from '@aws-amplify/ui';
1
+ import type { DisplayTextTemplate } from '@aws-amplify/ui';
2
2
  export type ChangePasswordDisplayText = DisplayTextTemplate<{
3
3
  confirmPasswordFieldLabel?: string;
4
4
  currentPasswordFieldLabel?: string;
@@ -1 +1,2 @@
1
- export { defaultChangePasswordDisplayText, defaultDeleteUserDisplayText, ChangePasswordDisplayText, DeleteUserDisplayText, } from './displayText';
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 const ConfirmSignIn: {
4
4
  ({ className, variation, }: RouteProps): React.JSX.Element;
5
5
  Header: typeof Header;
@@ -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,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 ForgotPassword: {
4
4
  ({ className, variation, }: RouteProps): React.JSX.Element;
5
5
  Header(): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { RouteContainerProps } from './types';
2
+ import type { RouteContainerProps } from './types';
3
3
  export declare function RouteContainer({ children, className, variation, }: RouteContainerProps): 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,3 +1,3 @@
1
1
  import React from 'react';
2
- import { RouterProps } from './types';
2
+ import type { RouterProps } from './types';
3
3
  export declare function Router({ className, hideSignUp, variation, }: RouterProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export { RouteContainer } from '../RouteContainer/RouteContainer';
2
2
  export { Router } from './Router';
3
- export { RouterProps } from './types';
3
+ export type { RouterProps } from './types';
@@ -1,4 +1,4 @@
1
- import { RouteProps } from '../RouteContainer';
1
+ import type { RouteProps } from '../RouteContainer';
2
2
  export type RouterProps = {
3
3
  hideSignUp: boolean;
4
4
  } & RouteProps;
@@ -1,4 +1,4 @@
1
- import { RouteProps } from '../RouteContainer';
1
+ import type { RouteProps } from '../RouteContainer';
2
2
  export declare const SelectMfaType: {
3
3
  ({ className, variation, }: RouteProps): JSX.Element;
4
4
  Header(): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { RouteProps } from '../RouteContainer';
1
+ import type { RouteProps } from '../RouteContainer';
2
2
  export declare const SetupEmail: {
3
3
  ({ className, variation, }: RouteProps): JSX.Element;
4
4
  Header(): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RouteProps } from '../RouteContainer';
2
+ import type { RouteProps } from '../RouteContainer';
3
3
  export declare const SetupTotp: {
4
4
  ({ className, variation, }: RouteProps): React.JSX.Element;
5
5
  Header(): React.JSX.Element;
@@ -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 ConfirmVerifyUser: {
4
4
  ({ className, variation, }: RouteProps): React.JSX.Element;
5
5
  Header(): React.JSX.Element;
@@ -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 VerifyUser: {
4
4
  ({ className, variation, }: RouteProps): React.JSX.Element;
5
5
  Header(): React.JSX.Element;
@@ -1 +1,2 @@
1
- export { ComponentsProviderProps, CustomComponentsContext, useCustomComponents, } from './useCustomComponents';
1
+ export type { ComponentsProviderProps } from './useCustomComponents';
2
+ export { CustomComponentsContext, useCustomComponents, } from './useCustomComponents';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DefaultComponents } from './defaultComponents';
2
+ import type { DefaultComponents } from './defaultComponents';
3
3
  export interface ComponentsProviderProps {
4
4
  components?: DefaultComponents;
5
5
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export declare function useFormHandlers(): {
3
3
  handleBlur: (event: React.FocusEvent<HTMLFormElement>) => void;
4
4
  handleChange: (event: React.ChangeEvent<HTMLFormElement>) => void;
@@ -1,3 +1,6 @@
1
- export { Authenticator, AuthenticatorProps } from './Authenticator';
2
- export { withAuthenticator, WithAuthenticatorOptions, WithAuthenticatorProps, } from './withAuthenticator';
3
- export { useAuthenticator, UseAuthenticator } from '@aws-amplify/ui-react-core';
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 * as React from 'react';
2
- import { FormFieldOptions } from '@aws-amplify/ui';
2
+ import type { FormFieldOptions } from '@aws-amplify/ui';
3
3
  export interface FormFieldProps extends Omit<FormFieldOptions, 'label'> {
4
4
  label: string;
5
5
  name: string;
@@ -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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AuthEventTypes } from '@aws-amplify/ui';
2
+ import type { AuthEventTypes } from '@aws-amplify/ui';
3
3
  export interface TwoButtonSubmitFooterProps {
4
4
  cancelButtonSendType: AuthEventTypes;
5
5
  cancelButtonText: string;
@@ -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 { FileSelect, FileSelectOptions, FileSelectProps, HandleFileSelect, useFileSelect, UseFileSelect, } from './FileSelect';
1
+ export type { FileSelectOptions, FileSelectProps, HandleFileSelect, UseFileSelect, } from './FileSelect';
2
+ export { FileSelect, useFileSelect } from './FileSelect';
@@ -1 +1,2 @@
1
- export { FilterChildren, FilterChildrenProps } from './FilterChildren';
1
+ export type { FilterChildrenProps } from './FilterChildren';
2
+ export { FilterChildren } from './FilterChildren';