@aws-amplify/ui-react 4.3.4 → 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/{PrimitiveCatalog.js → PrimitiveCatalog.mjs} +0 -0
- package/dist/esm/components/AccountSettings/AccountSettings.mjs +1 -0
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.mjs +1 -0
- package/dist/esm/components/AccountSettings/ChangePassword/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.mjs +1 -0
- package/dist/esm/components/AccountSettings/DeleteUser/defaults.mjs +1 -0
- package/dist/esm/components/AccountSettings/{constants.js → constants.mjs} +0 -0
- package/dist/esm/components/AccountSettings/shared/Defaults.mjs +1 -0
- package/dist/esm/components/Authenticator/Authenticator.mjs +1 -0
- package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.mjs +1 -0
- package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.mjs +1 -0
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.mjs +1 -0
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.mjs +1 -0
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.mjs +1 -0
- package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.mjs +1 -0
- package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.mjs +1 -0
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.mjs +1 -0
- package/dist/esm/components/Authenticator/Router/Router.mjs +1 -0
- package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.mjs +1 -0
- package/dist/esm/components/Authenticator/SignIn/SignIn.mjs +1 -0
- package/dist/esm/components/Authenticator/SignUp/SignUp.mjs +1 -0
- package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.mjs +1 -0
- package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.mjs +1 -0
- package/dist/esm/components/Authenticator/hooks/useCustomComponents/defaultComponents.mjs +1 -0
- package/dist/esm/components/Authenticator/hooks/useCustomComponents/{index.js → index.mjs} +0 -0
- package/dist/esm/components/Authenticator/hooks/useFormHandlers/useFormHandlers.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/ConfirmSignInFooter.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/FormField.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/FormFields.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/RemoteErrorMessage.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/SignInSignUpTabs.mjs +1 -0
- package/dist/esm/components/Authenticator/shared/TwoButtonSubmitFooter.mjs +1 -0
- package/dist/esm/components/Authenticator/{utils.js → utils.mjs} +0 -0
- package/dist/esm/components/Authenticator/withAuthenticator.mjs +1 -0
- package/dist/esm/components/Geo/LocationSearch/index.mjs +1 -0
- package/dist/esm/components/Geo/MapView/index.mjs +1 -0
- package/dist/esm/components/InAppMessaging/Backdrop/Backdrop.mjs +1 -0
- package/dist/esm/components/InAppMessaging/Backdrop/withBackdrop.mjs +1 -0
- package/dist/esm/components/InAppMessaging/BannerMessage/BannerMessage.mjs +1 -0
- package/dist/esm/components/InAppMessaging/BannerMessage/{constants.js → constants.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/CloseIconButton/CloseIconButton.mjs +1 -0
- package/dist/esm/components/InAppMessaging/FullScreenMessage/FullScreenMessage.mjs +1 -0
- package/dist/esm/components/InAppMessaging/FullScreenMessage/{constants.js → constants.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.mjs +1 -0
- package/dist/esm/components/InAppMessaging/InAppMessageDisplay/{handleMessageLinkAction.js → handleMessageLinkAction.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/MessageLayout/MessageLayout.mjs +1 -0
- package/dist/esm/components/InAppMessaging/MessageLayout/constants.mjs +1 -0
- package/dist/esm/components/InAppMessaging/MessageLayout/{utils.js → utils.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/ModalMessage/ModalMessage.mjs +1 -0
- package/dist/esm/components/InAppMessaging/ModalMessage/{constants.js → constants.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/hooks/useMessageImage/{types.js → types.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/hooks/useMessageImage/useMessageImage.mjs +1 -0
- package/dist/esm/components/InAppMessaging/hooks/useMessageProps/useMessageProps.mjs +1 -0
- package/dist/esm/components/InAppMessaging/hooks/useMessageProps/{utils.js → utils.mjs} +0 -0
- package/dist/esm/components/InAppMessaging/withInAppMessaging/withInAppMessaging.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/FileUploader.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/UploadDropZone/index.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/UploadPreviewer/index.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/UploadTracker/UploadMessage.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/UploadTracker/index.mjs +1 -0
- package/dist/esm/components/Storage/FileUploader/hooks/useFileUploader/{useFileUploader.js → useFileUploader.mjs} +0 -0
- package/dist/esm/components/ThemeProvider/{AmplifyContext.js → AmplifyContext.mjs} +0 -0
- package/dist/esm/components/ThemeProvider/index.mjs +1 -0
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/components/shared/ValidationErrors.mjs +1 -0
- package/dist/esm/helpers/{constants.js → constants.mjs} +0 -0
- package/dist/esm/helpers/{utils.js → utils.mjs} +0 -0
- package/dist/esm/hooks/actions/{constants.js → constants.mjs} +0 -0
- package/dist/esm/hooks/actions/shared/{types.js → types.mjs} +0 -0
- package/dist/esm/hooks/actions/shared/useTypeCastFields.mjs +1 -0
- package/dist/esm/hooks/actions/useAuthSignOutAction.mjs +1 -0
- package/dist/esm/hooks/actions/useDataStoreCreateAction.mjs +1 -0
- package/dist/esm/hooks/actions/useDataStoreDeleteAction.mjs +1 -0
- package/dist/esm/hooks/actions/useDataStoreUpdateAction.mjs +1 -0
- package/dist/esm/hooks/actions/useNavigateAction.mjs +1 -0
- package/dist/esm/hooks/actions/useStateMutationAction.mjs +1 -0
- package/dist/esm/hooks/useAmplify.mjs +1 -0
- package/dist/esm/hooks/{useAuth.js → useAuth.mjs} +0 -0
- package/dist/esm/hooks/useBreakpointValue.mjs +1 -0
- package/dist/esm/hooks/{useComposeRefsCallback.js → useComposeRefsCallback.mjs} +0 -0
- package/dist/esm/hooks/{useDataStore.js → useDataStore.mjs} +0 -0
- package/dist/esm/hooks/{useDeprecationWarning.js → useDeprecationWarning.mjs} +0 -0
- package/dist/esm/hooks/{useStorageURL.js → useStorageURL.mjs} +0 -0
- package/dist/esm/hooks/useTheme.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/internal.mjs +1 -0
- package/dist/esm/primitives/Alert/Alert.mjs +1 -0
- package/dist/esm/primitives/Alert/AlertIcon.mjs +1 -0
- package/dist/esm/primitives/Autocomplete/Autocomplete.mjs +1 -0
- package/dist/esm/primitives/Autocomplete/AutocompleteMenu.mjs +1 -0
- package/dist/esm/primitives/Autocomplete/AutocompleteOption.mjs +1 -0
- package/dist/esm/primitives/Autocomplete/useAutocomplete.mjs +1 -0
- package/dist/esm/primitives/Badge/Badge.mjs +1 -0
- package/dist/esm/primitives/Button/Button.mjs +1 -0
- package/dist/esm/primitives/ButtonGroup/ButtonGroup.mjs +1 -0
- package/dist/esm/primitives/Card/Card.mjs +1 -0
- package/dist/esm/primitives/Checkbox/Checkbox.mjs +1 -0
- package/dist/esm/primitives/Checkbox/useCheckbox.mjs +1 -0
- package/dist/esm/primitives/CheckboxField/CheckboxField.mjs +1 -0
- package/dist/esm/primitives/Collection/Collection.mjs +1 -0
- package/dist/esm/primitives/Collection/utils.mjs +1 -0
- package/dist/esm/primitives/Divider/Divider.mjs +1 -0
- package/dist/esm/primitives/Expander/Expander.mjs +1 -0
- package/dist/esm/primitives/Expander/ExpanderItem.mjs +1 -0
- package/dist/esm/primitives/Field/FieldClearButton.mjs +1 -0
- package/dist/esm/primitives/Field/FieldDescription.mjs +1 -0
- package/dist/esm/primitives/Field/FieldErrorMessage.mjs +1 -0
- package/dist/esm/primitives/FieldGroup/FieldGroup.mjs +1 -0
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIcon.mjs +1 -0
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIconButton.mjs +1 -0
- package/dist/esm/primitives/Flex/Flex.mjs +1 -0
- package/dist/esm/primitives/Grid/Grid.mjs +1 -0
- package/dist/esm/primitives/Heading/Heading.mjs +1 -0
- package/dist/esm/primitives/HighlightMatch/HighlightMatch.mjs +1 -0
- package/dist/esm/primitives/Icon/Icon.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconAdd.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconCheck.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconCheckCircle.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconCheckCircleOutline.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconChevronLeft.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconChevronRight.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconClose.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconEdit.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconError.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconExpandMore.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconFile.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconIndeterminate.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconInfo.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconMenu.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconRemove.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconSearch.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconStar.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconUpload.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconVisibility.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconVisibilityOff.mjs +1 -0
- package/dist/esm/primitives/Icon/icons/IconWarning.mjs +1 -0
- package/dist/esm/primitives/Image/Image.mjs +1 -0
- package/dist/esm/primitives/Input/Input.mjs +1 -0
- package/dist/esm/primitives/Label/Label.mjs +1 -0
- package/dist/esm/primitives/Link/Link.mjs +1 -0
- package/dist/esm/primitives/Loader/Loader.mjs +1 -0
- package/dist/esm/primitives/Menu/Menu.mjs +1 -0
- package/dist/esm/primitives/Menu/MenuButton.mjs +1 -0
- package/dist/esm/primitives/Menu/MenuItem.mjs +1 -0
- package/dist/esm/primitives/Pagination/Pagination.mjs +1 -0
- package/dist/esm/primitives/Pagination/PaginationItem.mjs +1 -0
- package/dist/esm/primitives/Pagination/{usePagination.js → usePagination.mjs} +0 -0
- package/dist/esm/primitives/Pagination/usePaginationItems.mjs +1 -0
- package/dist/esm/primitives/Pagination/useRange.mjs +1 -0
- package/dist/esm/primitives/PasswordField/PasswordField.mjs +1 -0
- package/dist/esm/primitives/PasswordField/ShowPasswordButton.mjs +1 -0
- package/dist/esm/primitives/PhoneNumberField/CountryCodeSelect.mjs +1 -0
- package/dist/esm/primitives/PhoneNumberField/PhoneNumberField.mjs +1 -0
- package/dist/esm/primitives/Placeholder/Placeholder.mjs +1 -0
- package/dist/esm/primitives/Radio/Radio.mjs +1 -0
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.mjs +1 -0
- package/dist/esm/primitives/RadioGroupField/{context.js → context.mjs} +0 -0
- package/dist/esm/primitives/Rating/Rating.mjs +1 -0
- package/dist/esm/primitives/Rating/RatingIcon.mjs +1 -0
- package/dist/esm/primitives/Rating/RatingMixedIcon.mjs +1 -0
- package/dist/esm/primitives/Rating/{utils.js → utils.mjs} +0 -0
- package/dist/esm/primitives/ScrollView/ScrollView.mjs +1 -0
- package/dist/esm/primitives/SearchField/SearchField.mjs +1 -0
- package/dist/esm/primitives/SearchField/SearchFieldButton.mjs +1 -0
- package/dist/esm/primitives/SearchField/useSearchField.mjs +1 -0
- package/dist/esm/primitives/Select/Select.mjs +1 -0
- package/dist/esm/primitives/SelectField/SelectField.mjs +1 -0
- package/dist/esm/primitives/SliderField/SliderField.mjs +1 -0
- package/dist/esm/primitives/StepperField/StepperField.mjs +1 -0
- package/dist/esm/primitives/StepperField/useStepper.mjs +1 -0
- package/dist/esm/primitives/SwitchField/SwitchField.mjs +1 -0
- package/dist/esm/primitives/SwitchField/{useSwitch.js → useSwitch.mjs} +0 -0
- package/dist/esm/primitives/Table/Table.mjs +1 -0
- package/dist/esm/primitives/Table/TableBody.mjs +1 -0
- package/dist/esm/primitives/Table/TableCell.mjs +1 -0
- package/dist/esm/primitives/Table/TableFoot.mjs +1 -0
- package/dist/esm/primitives/Table/TableHead.mjs +1 -0
- package/dist/esm/primitives/Table/TableRow.mjs +1 -0
- package/dist/esm/primitives/Tabs/Tabs.mjs +1 -0
- package/dist/esm/primitives/Text/Text.mjs +1 -0
- package/dist/esm/primitives/TextArea/TextArea.mjs +1 -0
- package/dist/esm/primitives/TextAreaField/TextAreaField.mjs +1 -0
- package/dist/esm/primitives/TextField/TextField.mjs +1 -0
- package/dist/esm/primitives/ToggleButton/ToggleButton.mjs +1 -0
- package/dist/esm/primitives/ToggleButton/useToggleButton.mjs +1 -0
- package/dist/esm/primitives/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -0
- package/dist/esm/primitives/ToggleButtonGroup/useToggleButtonGroup.mjs +1 -0
- package/dist/esm/primitives/View/View.mjs +1 -0
- package/dist/esm/primitives/VisuallyHidden/VisuallyHidden.mjs +1 -0
- package/dist/esm/primitives/index.mjs +1 -0
- package/dist/esm/primitives/shared/{constants.js → constants.mjs} +0 -0
- package/dist/esm/primitives/shared/datastore.mjs +1 -0
- package/dist/esm/primitives/shared/responsive/{getMediaQueries.js → getMediaQueries.mjs} +0 -0
- package/dist/esm/primitives/shared/responsive/useBreakpoint.mjs +1 -0
- package/dist/esm/primitives/shared/responsive/utils.mjs +1 -0
- package/dist/esm/primitives/shared/styleUtils.mjs +1 -0
- package/dist/esm/primitives/shared/utils.mjs +1 -0
- package/dist/esm/primitives/types/{style.js → style.mjs} +0 -0
- package/dist/esm/primitives/utils/{getTestId.js → getTestId.mjs} +0 -0
- package/dist/esm/primitives/utils/splitPrimitiveProps.mjs +1 -0
- package/dist/esm/primitives/utils/{useLayoutEffect.js → useLayoutEffect.mjs} +0 -0
- package/dist/esm/primitives/utils/useStableId.mjs +1 -0
- package/dist/esm/studio/{findChildOverrides.js → findChildOverrides.mjs} +0 -0
- package/dist/esm/studio/{getOverrideProps.js → getOverrideProps.mjs} +0 -0
- package/dist/esm/studio/{getOverridesFromVariants.js → getOverridesFromVariants.mjs} +0 -0
- package/dist/esm/studio/{mergeVariantsAndOverrides.js → mergeVariantsAndOverrides.mjs} +0 -0
- package/dist/esm/version.mjs +1 -0
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +1 -0
- package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +1 -0
- package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +1 -0
- package/dist/types/components/AccountSettings/types.d.ts +1 -1
- package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +1 -0
- package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -0
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignIn.d.ts +1 -0
- package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +1 -0
- package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +1 -0
- package/dist/types/components/Authenticator/ResetPassword/ConfirmResetPassword.d.ts +1 -0
- package/dist/types/components/Authenticator/ResetPassword/ResetPassword.d.ts +1 -0
- package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +1 -0
- package/dist/types/components/Authenticator/Router/Router.d.ts +1 -0
- package/dist/types/components/Authenticator/SetupTOTP/SetupTOTP.d.ts +1 -0
- package/dist/types/components/Authenticator/SignIn/SignIn.d.ts +1 -0
- package/dist/types/components/Authenticator/SignUp/SignUp.d.ts +1 -0
- package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +1 -0
- package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +1 -0
- package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/ConfirmSignInFooter.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/ConfirmationCodeInput.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/FormField.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/FormFields.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/RemoteErrorMessage.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +1 -0
- package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +1 -0
- package/dist/types/components/Geo/LocationSearch/index.d.ts +1 -0
- package/dist/types/components/InAppMessaging/Backdrop/Backdrop.d.ts +1 -0
- package/dist/types/components/InAppMessaging/Backdrop/withBackdrop.d.ts +1 -0
- package/dist/types/components/InAppMessaging/BannerMessage/BannerMessage.d.ts +1 -0
- package/dist/types/components/InAppMessaging/CloseIconButton/CloseIconButton.d.ts +1 -0
- package/dist/types/components/InAppMessaging/FullScreenMessage/FullScreenMessage.d.ts +1 -0
- package/dist/types/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -0
- package/dist/types/components/InAppMessaging/MessageLayout/MessageLayout.d.ts +1 -0
- package/dist/types/components/InAppMessaging/MessageLayout/constants.d.ts +2 -0
- package/dist/types/components/InAppMessaging/ModalMessage/ModalMessage.d.ts +1 -0
- package/dist/types/components/Storage/FileUploader/FileUploader.d.ts +1 -0
- package/dist/types/components/Storage/FileUploader/UploadDropZone/index.d.ts +1 -0
- package/dist/types/components/Storage/FileUploader/UploadPreviewer/index.d.ts +2 -1
- package/dist/types/components/Storage/FileUploader/UploadTracker/UploadMessage.d.ts +1 -0
- package/dist/types/components/Storage/FileUploader/UploadTracker/index.d.ts +1 -0
- package/dist/types/components/Storage/FileUploader/types.d.ts +1 -0
- package/dist/types/components/shared/ValidationErrors.d.ts +2 -1
- package/dist/types/primitives/Collection/Collection.d.ts +1 -0
- package/dist/types/primitives/Icon/icons/types.d.ts +1 -0
- package/dist/types/primitives/Pagination/usePaginationItems.d.ts +1 -0
- package/dist/types/primitives/SliderField/SliderField.d.ts +2 -1
- package/dist/types/primitives/types/rating.d.ts +1 -0
- package/dist/types/primitives/utils/testUtils.d.ts +2 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/utils-d90f3de8.js +1 -0
- package/internal/package.json +1 -1
- package/package.json +13 -13
- package/dist/esm/components/AccountSettings/AccountSettings.js +0 -1
- package/dist/esm/components/AccountSettings/ChangePassword/ChangePassword.js +0 -1
- package/dist/esm/components/AccountSettings/ChangePassword/defaults.js +0 -1
- package/dist/esm/components/AccountSettings/DeleteUser/DeleteUser.js +0 -1
- package/dist/esm/components/AccountSettings/DeleteUser/defaults.js +0 -1
- package/dist/esm/components/AccountSettings/shared/Defaults.js +0 -1
- package/dist/esm/components/Authenticator/Authenticator.js +0 -1
- package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +0 -1
- package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +0 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +0 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.js +0 -1
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +0 -1
- package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +0 -1
- package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +0 -1
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.js +0 -1
- package/dist/esm/components/Authenticator/Router/Router.js +0 -1
- package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +0 -1
- package/dist/esm/components/Authenticator/SignIn/SignIn.js +0 -1
- package/dist/esm/components/Authenticator/SignUp/SignUp.js +0 -1
- package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +0 -1
- package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +0 -1
- package/dist/esm/components/Authenticator/hooks/useCustomComponents/defaultComponents.js +0 -1
- package/dist/esm/components/Authenticator/hooks/useFormHandlers/useFormHandlers.js +0 -1
- package/dist/esm/components/Authenticator/shared/ConfirmSignInFooter.js +0 -1
- package/dist/esm/components/Authenticator/shared/FormField.js +0 -1
- package/dist/esm/components/Authenticator/shared/FormFields.js +0 -1
- package/dist/esm/components/Authenticator/shared/RemoteErrorMessage.js +0 -1
- package/dist/esm/components/Authenticator/shared/SignInSignUpTabs.js +0 -1
- package/dist/esm/components/Authenticator/shared/TwoButtonSubmitFooter.js +0 -1
- package/dist/esm/components/Authenticator/withAuthenticator.js +0 -1
- package/dist/esm/components/Geo/LocationSearch/index.js +0 -1
- package/dist/esm/components/Geo/MapView/index.js +0 -1
- package/dist/esm/components/InAppMessaging/Backdrop/Backdrop.js +0 -1
- package/dist/esm/components/InAppMessaging/Backdrop/withBackdrop.js +0 -1
- package/dist/esm/components/InAppMessaging/BannerMessage/BannerMessage.js +0 -1
- package/dist/esm/components/InAppMessaging/CloseIconButton/CloseIconButton.js +0 -1
- package/dist/esm/components/InAppMessaging/FullScreenMessage/FullScreenMessage.js +0 -1
- package/dist/esm/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.js +0 -1
- package/dist/esm/components/InAppMessaging/MessageLayout/MessageLayout.js +0 -1
- package/dist/esm/components/InAppMessaging/MessageLayout/constants.js +0 -1
- package/dist/esm/components/InAppMessaging/ModalMessage/ModalMessage.js +0 -1
- package/dist/esm/components/InAppMessaging/hooks/useMessageImage/useMessageImage.js +0 -1
- package/dist/esm/components/InAppMessaging/hooks/useMessageProps/useMessageProps.js +0 -1
- package/dist/esm/components/InAppMessaging/withInAppMessaging/withInAppMessaging.js +0 -1
- package/dist/esm/components/Storage/FileUploader/FileUploader.js +0 -1
- package/dist/esm/components/Storage/FileUploader/UploadDropZone/index.js +0 -1
- package/dist/esm/components/Storage/FileUploader/UploadPreviewer/index.js +0 -1
- package/dist/esm/components/Storage/FileUploader/UploadTracker/UploadMessage.js +0 -1
- package/dist/esm/components/Storage/FileUploader/UploadTracker/index.js +0 -1
- package/dist/esm/components/ThemeProvider/index.js +0 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/components/shared/ValidationErrors.js +0 -1
- package/dist/esm/hooks/actions/shared/useTypeCastFields.js +0 -1
- package/dist/esm/hooks/actions/useAuthSignOutAction.js +0 -1
- package/dist/esm/hooks/actions/useDataStoreCreateAction.js +0 -1
- package/dist/esm/hooks/actions/useDataStoreDeleteAction.js +0 -1
- package/dist/esm/hooks/actions/useDataStoreUpdateAction.js +0 -1
- package/dist/esm/hooks/actions/useNavigateAction.js +0 -1
- package/dist/esm/hooks/actions/useStateMutationAction.js +0 -1
- package/dist/esm/hooks/useAmplify.js +0 -1
- package/dist/esm/hooks/useBreakpointValue.js +0 -1
- package/dist/esm/hooks/useTheme.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/internal.js +0 -1
- package/dist/esm/primitives/Alert/Alert.js +0 -1
- package/dist/esm/primitives/Alert/AlertIcon.js +0 -1
- package/dist/esm/primitives/Autocomplete/Autocomplete.js +0 -1
- package/dist/esm/primitives/Autocomplete/AutocompleteMenu.js +0 -1
- package/dist/esm/primitives/Autocomplete/AutocompleteOption.js +0 -1
- package/dist/esm/primitives/Autocomplete/useAutocomplete.js +0 -1
- package/dist/esm/primitives/Badge/Badge.js +0 -1
- package/dist/esm/primitives/Button/Button.js +0 -1
- package/dist/esm/primitives/ButtonGroup/ButtonGroup.js +0 -1
- package/dist/esm/primitives/Card/Card.js +0 -1
- package/dist/esm/primitives/Checkbox/Checkbox.js +0 -1
- package/dist/esm/primitives/Checkbox/useCheckbox.js +0 -1
- package/dist/esm/primitives/CheckboxField/CheckboxField.js +0 -1
- package/dist/esm/primitives/Collection/Collection.js +0 -1
- package/dist/esm/primitives/Collection/utils.js +0 -1
- package/dist/esm/primitives/Divider/Divider.js +0 -1
- package/dist/esm/primitives/Expander/Expander.js +0 -1
- package/dist/esm/primitives/Expander/ExpanderItem.js +0 -1
- package/dist/esm/primitives/Field/FieldClearButton.js +0 -1
- package/dist/esm/primitives/Field/FieldDescription.js +0 -1
- package/dist/esm/primitives/Field/FieldErrorMessage.js +0 -1
- package/dist/esm/primitives/FieldGroup/FieldGroup.js +0 -1
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIcon.js +0 -1
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIconButton.js +0 -1
- package/dist/esm/primitives/Flex/Flex.js +0 -1
- package/dist/esm/primitives/Grid/Grid.js +0 -1
- package/dist/esm/primitives/Heading/Heading.js +0 -1
- package/dist/esm/primitives/HighlightMatch/HighlightMatch.js +0 -1
- package/dist/esm/primitives/Icon/Icon.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconAdd.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconCheck.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconCheckCircle.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconCheckCircleOutline.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconChevronLeft.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconChevronRight.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconClose.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconEdit.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconError.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconExpandMore.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconFile.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconIndeterminate.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconInfo.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconMenu.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconRemove.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconSearch.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconStar.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconUpload.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconVisibility.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconVisibilityOff.js +0 -1
- package/dist/esm/primitives/Icon/icons/IconWarning.js +0 -1
- package/dist/esm/primitives/Image/Image.js +0 -1
- package/dist/esm/primitives/Input/Input.js +0 -1
- package/dist/esm/primitives/Label/Label.js +0 -1
- package/dist/esm/primitives/Link/Link.js +0 -1
- package/dist/esm/primitives/Loader/Loader.js +0 -1
- package/dist/esm/primitives/Menu/Menu.js +0 -1
- package/dist/esm/primitives/Menu/MenuButton.js +0 -1
- package/dist/esm/primitives/Menu/MenuItem.js +0 -1
- package/dist/esm/primitives/Pagination/Pagination.js +0 -1
- package/dist/esm/primitives/Pagination/PaginationItem.js +0 -1
- package/dist/esm/primitives/Pagination/usePaginationItems.js +0 -1
- package/dist/esm/primitives/Pagination/useRange.js +0 -1
- package/dist/esm/primitives/PasswordField/PasswordField.js +0 -1
- package/dist/esm/primitives/PasswordField/ShowPasswordButton.js +0 -1
- package/dist/esm/primitives/PhoneNumberField/CountryCodeSelect.js +0 -1
- package/dist/esm/primitives/PhoneNumberField/PhoneNumberField.js +0 -1
- package/dist/esm/primitives/Placeholder/Placeholder.js +0 -1
- package/dist/esm/primitives/Radio/Radio.js +0 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.js +0 -1
- package/dist/esm/primitives/Rating/Rating.js +0 -1
- package/dist/esm/primitives/Rating/RatingIcon.js +0 -1
- package/dist/esm/primitives/Rating/RatingMixedIcon.js +0 -1
- package/dist/esm/primitives/ScrollView/ScrollView.js +0 -1
- package/dist/esm/primitives/SearchField/SearchField.js +0 -1
- package/dist/esm/primitives/SearchField/SearchFieldButton.js +0 -1
- package/dist/esm/primitives/SearchField/useSearchField.js +0 -1
- package/dist/esm/primitives/Select/Select.js +0 -1
- package/dist/esm/primitives/SelectField/SelectField.js +0 -1
- package/dist/esm/primitives/SliderField/SliderField.js +0 -1
- package/dist/esm/primitives/StepperField/StepperField.js +0 -1
- package/dist/esm/primitives/StepperField/useStepper.js +0 -1
- package/dist/esm/primitives/SwitchField/SwitchField.js +0 -1
- package/dist/esm/primitives/Table/Table.js +0 -1
- package/dist/esm/primitives/Table/TableBody.js +0 -1
- package/dist/esm/primitives/Table/TableCell.js +0 -1
- package/dist/esm/primitives/Table/TableFoot.js +0 -1
- package/dist/esm/primitives/Table/TableHead.js +0 -1
- package/dist/esm/primitives/Table/TableRow.js +0 -1
- package/dist/esm/primitives/Tabs/Tabs.js +0 -1
- package/dist/esm/primitives/Text/Text.js +0 -1
- package/dist/esm/primitives/TextArea/TextArea.js +0 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.js +0 -1
- package/dist/esm/primitives/TextField/TextField.js +0 -1
- package/dist/esm/primitives/ToggleButton/ToggleButton.js +0 -1
- package/dist/esm/primitives/ToggleButton/useToggleButton.js +0 -1
- package/dist/esm/primitives/ToggleButtonGroup/ToggleButtonGroup.js +0 -1
- package/dist/esm/primitives/ToggleButtonGroup/useToggleButtonGroup.js +0 -1
- package/dist/esm/primitives/View/View.js +0 -1
- package/dist/esm/primitives/VisuallyHidden/VisuallyHidden.js +0 -1
- package/dist/esm/primitives/index.js +0 -1
- package/dist/esm/primitives/shared/datastore.js +0 -1
- package/dist/esm/primitives/shared/responsive/useBreakpoint.js +0 -1
- package/dist/esm/primitives/shared/responsive/utils.js +0 -1
- package/dist/esm/primitives/shared/styleUtils.js +0 -1
- package/dist/esm/primitives/shared/utils.js +0 -1
- package/dist/esm/primitives/utils/splitPrimitiveProps.js +0 -1
- package/dist/esm/primitives/utils/useStableId.js +0 -1
- package/dist/esm/version.js +0 -1
- package/dist/types/hooks/useControllable.d.ts +0 -69
- package/dist/utils-5fd28806.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import i from"classnames";import{View as o}from"../View/View.js";import{ComponentClassNames as s}from"../shared/constants.js";import{classNameModifierByFlag as r}from"../shared/utils.js";const m=m=>{var{children:a,className:c,isActive:l}=m,n=e(m,["children","className","isActive"]);return t(o,Object.assign({"aria-selected":l,as:"li",role:"option",className:i(s.AutocompleteMenuOption,r(s.AutocompleteMenuOption,"active",l),c)},n,{children:a}))};m.displayName="AutocompleteOption";export{m as AutocompleteOption};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{ARROW_UP as t,ARROW_DOWN as n,ENTER_KEY as o,ESCAPE_KEY as l}from"../shared/constants.js";import{isFunction as s,strHasLength as i}from"../shared/utils.js";import{useStableId as c}from"../utils/useStableId.js";const a=new Set([n,t,o,l]),u=({defaultValue:u="",value:r,options:d,optionFilter:m,onBlur:f,onChange:h,onClear:p,onClick:g,onSelect:b,onSubmit:C})=>{const I=void 0!==r,[v,k]=e.useState(u),w=I?r:v,[O,B]=e.useState(!1),[E,y]=e.useState(null),S=s(m),T=e.useMemo((()=>{const e=S?e=>m(e,w):e=>{const{label:t}=e;return null==t?void 0:t.toLocaleLowerCase().includes(null==w?void 0:w.toLocaleLowerCase())};return(null==d?void 0:d.filter(e))||[]}),[w,m,S,d]),H=c(),L=c(),M=c(),V=c(),j=T.findIndex((e=>e===E)),x=(null==E?void 0:E.id)||(-1!==j?`${V}-option-${j}`:void 0),D=e.useCallback((e=>{B(!1),y(null),s(f)&&f(e)}),[f]),F=e.useCallback((e=>{y(null),B(!0),I||k(e.target.value),s(h)&&h(e)}),[I,h]),R=e.useCallback((()=>{I||k(""),s(p)&&p()}),[I,p]),$=e.useCallback((e=>{B(!0),s(g)&&g(e)}),[g]);return e.useEffect((()=>{const e=document.getElementById(H),t=document.getElementById(M);if(t&&O&&e){const{bottom:n}=t.getBoundingClientRect(),{offsetParent:o,offsetTop:l}=e;o===document.body&&n>document.documentElement.clientHeight&&window.scrollTo({top:Math.min(n-document.documentElement.clientHeight+window.scrollY+20,l),behavior:"smooth"})}}),[H,O,M]),e.useEffect((()=>{const e=document.getElementById(L),t=i(x)?document.getElementById(x):null;if(t&&e){const{scrollTop:n,clientHeight:o}=e,{offsetHeight:l,offsetTop:s}=t,{top:i,bottom:c}=t.getBoundingClientRect();n>s&&(e.scrollTop=s),n+o<s+l&&(e.scrollTop=s+l-o),(i<0||c>document.documentElement.clientHeight)&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[x,L]),{activeOptionId:x,autocompleteId:H,composedValue:w,filteredOptions:T,handleOnBlur:D,handleOnClear:R,handleOnClick:$,handleOnChange:F,handleOnKeyDown:e=>{const{key:i}=e;if(a.has(i))switch(e.preventDefault(),i){case l:O?(B(!1),y(null)):R();break;case o:if(E){const{label:e}=E;I||k(e),s(b)&&b(E)}else s(C)&&C(w);B(!1),y(null);break;case n:{if(T.length<=0)return;B(!0);const e=j>=T.length-1?0:j+1;y(T[e]);break}case t:{if(T.length<=0)return;B(!0);const e=j<=0?T.length-1:j-1;y(T[e])}}},isControlled:I,isCustomFiltering:S,isMenuOpen:O,listboxId:L,menuId:M,optionBaseId:V,setActiveOption:y,setIsMenuOpen:B,setInternalValue:k}};export{u as useAutocomplete};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as a}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as s from"react";import e from"classnames";import{classNameModifier as i}from"../shared/utils.js";import{ComponentClassNames as t}from"../shared/constants.js";import{View as o}from"../View/View.js";const m=s.forwardRef(((s,m)=>{var{className:n,children:c,variation:d,size:f}=s,l=a(s,["className","children","variation","size"]);const p=e(t.Badge,n,i(t.Badge,d),i(t.Badge,f));return r(o,Object.assign({as:"span",className:p,"data-variation":d,"data-size":f,ref:m},l,{children:c}))}));m.displayName="Badge";export{m as Badge};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsx as a,jsxs as i}from"react/jsx-runtime";import s from"classnames";import*as o from"react";import{classNameModifier as e,classNameModifierByFlag as r}from"../shared/utils.js";import{ComponentClassNames as l}from"../shared/constants.js";import{Flex as n}from"../Flex/Flex.js";import{Loader as d}from"../Loader/Loader.js";import{View as m}from"../View/View.js";const u=o.forwardRef(((o,u)=>{var{className:p,children:c,isFullWidth:f=!1,isDisabled:b,isLoading:h,loadingText:g="",size:j,type:B="button",variation:x}=o,w=t(o,["className","children","isFullWidth","isDisabled","isLoading","loadingText","size","type","variation"]);const F=s(l.Button,l.FieldGroupControl,e(l.Button,x),e(l.Button,j),r(l.Button,"disabled",b||h||w.disabled),r(l.Button,"loading",h),r(l.Button,"fullwidth",f),p);return a(m,Object.assign({ref:u,as:"button",className:F,"data-fullwidth":f,"data-loading":h,"data-size":j,"data-variation":x,isDisabled:b||h,type:B},w,{children:h?i(n,Object.assign({as:"span",className:l.ButtonLoaderWrapper},{children:[a(d,{size:j}),g||null]})):c}))}));u.displayName="Button";export{u as Button};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import*as o from"react";import a from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import{Flex as s}from"../Flex/Flex.js";const t=o.forwardRef(((t,m)=>{var{className:l,children:n,role:c="group",size:p,variation:f}=t,d=r(t,["className","children","role","size","variation"]);return e(s,Object.assign({className:a(i.ButtonGroup,l),role:c,ref:m},d,{children:o.Children.map(n,(r=>o.isValidElement(r)?o.cloneElement(r,{size:p,variation:f}):r))}))}));t.displayName="ButtonGroup";export{t as ButtonGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as a}from"react/jsx-runtime";import s from"classnames";import*as i from"react";import{classNameModifier as t}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{View as e}from"../View/View.js";const m=i.forwardRef(((i,m)=>{var{className:n,children:c,variation:d}=i,f=r(i,["className","children","variation"]);return a(e,Object.assign({className:s(o.Card,t(o.Card,d),n),"data-variation":d,ref:m},f,{children:c}))}));m.displayName="Card";export{m as Card};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as t,jsxs as s}from"react/jsx-runtime";import*as a from"react";import o from"classnames";import{Flex as d}from"../Flex/Flex.js";import{ComponentClassNames as i}from"../shared/constants.js";import"../View/View.js";import{IconCheck as c}from"../Icon/icons/IconCheck.js";import{IconIndeterminate as r}from"../Icon/icons/IconIndeterminate.js";import{Input as n}from"../Input/Input.js";import{Text as l}from"../Text/Text.js";import{VisuallyHidden as m}from"../VisuallyHidden/VisuallyHidden.js";import{getTestId as b}from"../utils/getTestId.js";import{useStableId as h}from"../utils/useStableId.js";import{useCheckbox as u}from"./useCheckbox.js";import{splitPrimitiveProps as p}from"../utils/splitPrimitiveProps.js";import{classNameModifierByFlag as k}from"../shared/utils.js";const f=a.forwardRef(((f,C)=>{var{checked:x,className:I,defaultChecked:j,hasError:y,isDisabled:g,isIndeterminate:N,label:B,labelHidden:F,labelPosition:H,onChange:P,testId:V,inputStyles:v}=f,D=e(f,["checked","className","defaultChecked","hasError","isDisabled","isIndeterminate","label","labelHidden","labelPosition","onChange","testId","inputStyles"]);const{styleProps:E,rest:O}=p(D),S=void 0!==x?x:j,{dataChecked:w,dataFocus:T,onBlur:L,onChange:q,onFocus:M,setDataChecked:R}=u(S,P);a.useEffect((()=>{void 0!==x&&x!==w&&R(x)}),[x,w,R]);const $=h();a.useEffect((()=>{const e=document.querySelector(`[data-id="${$}"]`);e&&"boolean"==typeof N&&(e.indeterminate=N)}),[$,N]);const z=b(V,i.CheckboxButton),A=b(V,i.CheckboxIcon),G=b(V,i.CheckboxLabel),J=o(i.CheckboxButton,k(i.CheckboxButton,"disabled",g),k(i.CheckboxButton,"error",y),k(i.CheckboxButton,"focused",T)),K=o(i.CheckboxIcon,k(i.CheckboxIcon,"checked",w),k(i.CheckboxIcon,"disabled",g)),Q=a.useMemo((()=>N?t(r,{className:o(K,k(i.CheckboxIcon,"indeterminate",N)),"data-testid":A}):t(c,{className:K,"data-checked":w,"data-disabled":g,"data-testid":A})),[w,K,A,g,N]);return s(d,Object.assign({as:"label",className:o(i.Checkbox,k(i.Checkbox,"disabled",g),I),"data-disabled":g,"data-label-position":H,testId:V},E,{children:[t(m,{children:t(n,Object.assign({checked:x,className:i.CheckboxInput,"data-id":$,defaultChecked:j,isDisabled:g,onBlur:L,onChange:q,onFocus:M,ref:C,type:"checkbox"},O))}),B&&t(l,Object.assign({as:"span",className:o(i.CheckboxLabel,{[i.VisuallyHidden]:F}),"data-disabled":g,testId:G},{children:B})),t(d,Object.assign({"aria-hidden":"true",as:"span",className:J,"data-checked":w,"data-disabled":g,"data-focus":T,"data-error":y,testId:z},v,{children:Q}))]}))}));f.displayName="Checkbox";export{f as Checkbox};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useState as t}from"react";import{isFunction as e}from"../shared/utils.js";const o=(o,r)=>{const[a,c]=t(o),[s,n]=t(!1);return{dataChecked:a,dataFocus:s,onBlur:()=>{n(!1)},onChange:t=>{c(t.target.checked),e(r)&&r(t)},onFocus:()=>{n(!0)},setDataChecked:c}};export{o as useCheckbox};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as s}from"react/jsx-runtime";import*as o from"react";import i from"classnames";import{classNameModifier as t}from"../shared/utils.js";import{Checkbox as a}from"../Checkbox/Checkbox.js";import{ComponentClassNames as l}from"../shared/constants.js";import"../Field/FieldClearButton.js";import"../Field/FieldDescription.js";import{FieldErrorMessage as m}from"../Field/FieldErrorMessage.js";import{Flex as d}from"../Flex/Flex.js";import{getTestId as c}from"../utils/getTestId.js";const n=o.forwardRef(((o,n)=>{var{className:p,errorMessage:b,hasError:f=!1,labelHidden:h=!1,labelPosition:F,testId:j,size:x}=o,g=e(o,["className","errorMessage","hasError","labelHidden","labelPosition","testId","size"]);const C=c(j,l.Checkbox);return r(d,Object.assign({className:i(l.Field,l.CheckboxField,t(l.Field,x),p),"data-size":x,testId:j},{children:[s(a,Object.assign({hasError:f,labelHidden:h,testId:C,labelPosition:F,ref:n},g)),s(m,{hasError:f,errorMessage:b})]}))}));n.displayName="CheckboxField";export{n as CheckboxField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as s,jsxs as t}from"react/jsx-runtime";import r from"classnames";import a from"lodash/debounce";import*as i from"react";import{Flex as l}from"../Flex/Flex.js";import{Grid as o}from"../Grid/Grid.js";import{Text as n}from"../Text/Text.js";import{Pagination as c}from"../Pagination/Pagination.js";import{usePagination as m}from"../Pagination/usePagination.js";import{SearchField as d}from"../SearchField/SearchField.js";import{ComponentClassNames as h,ComponentText as u}from"../shared/constants.js";import{strHasLength as g}from"../shared/utils.js";import{getPageCount as p,getItemsAtPage as j,itemHasText as b}from"./utils.js";const f=10,P=t=>{var{children:r,direction:a="column",items:i}=t,o=e(t,["children","direction","items"]);return s(l,Object.assign({direction:a},o,{children:Array.isArray(i)?i.map(r):null}))},C=t=>{var{children:r,items:a}=t,i=e(t,["children","items"]);return s(o,Object.assign({},i,{children:Array.isArray(a)?a.map(r):null}))},N=(e,t,r)=>t.length?e:r||s(l,Object.assign({justifyContent:"center"},{children:s(n,{children:u.Collection.searchNoResultsFound})})),y=o=>{var{className:n,isSearchable:y,isPaginated:F,items:O,itemsPerPage:x=f,searchFilter:A=b,searchLabel:S=u.Collection.searchButtonLabel,searchNoResultsFound:I,searchPlaceholder:v,type:L="list",testId:R}=o,G=e(o,["className","isSearchable","isPaginated","items","itemsPerPage","searchFilter","searchLabel","searchNoResultsFound","searchPlaceholder","type","testId"]);const[T,k]=i.useState(),B=i.useCallback(a(k,300),[k]);O=Array.isArray(O)?O:[],y&&g(T)&&(O=O.filter((e=>A(e,T))));const q=m({totalPages:p(O.length,x)});F&&(O=j(O,q.currentPage,x));const w="list"===L?s(P,Object.assign({className:h.CollectionItems,items:O},G)):"grid"===L?s(C,Object.assign({className:h.CollectionItems,items:O},G)):null;return t(l,Object.assign({testId:R,className:r(h.Collection,n)},{children:[y?s(l,Object.assign({className:h.CollectionSearch},{children:s(d,{label:S,placeholder:v,onChange:e=>B(e.target.value),onClear:()=>k("")})})):null,N(w,O,I),F?s(l,Object.assign({className:h.CollectionPagination},{children:s(c,Object.assign({},q))})):null]}))};y.displayName="Collection";export{y as Collection};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{strHasLength as e}from"../shared/utils.js";const t=(e,t,o)=>{if(t<1||o<1)return[];const s=(t-1)*o;return e.slice(s,s+o)},o=(t,s)=>e(t)?t.toLowerCase().includes(s.toLowerCase()):"object"==typeof t&&null!==t&&Object.values(t).some((e=>o(e,s))),s=(e,t)=>Math.ceil(e/t);export{t as getItemsAtPage,s as getPageCount,o as itemHasText};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as i}from"react/jsx-runtime";import a from"classnames";import*as e from"react";import{classNameModifier as s}from"../shared/utils.js";import{ComponentClassNames as t}from"../shared/constants.js";import{View as o}from"../View/View.js";const m=e.forwardRef(((e,m)=>{var{className:l,orientation:n="horizontal",size:d,label:c}=e,f=r(e,["className","orientation","size","label"]);const p=a(t.Divider,s(t.Divider,n),s(t.Divider,d),c?t.DividerLabel:null,l);return i(o,Object.assign({"aria-orientation":n,as:"hr",className:p,"data-size":d,"data-label":c,ref:m},f))}));m.displayName="Divider";export{m as Divider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as l from"react";import{Root as r}from"@radix-ui/react-accordion";import s from"classnames";import{useDeprecationWarning as t}from"../../hooks/useDeprecationWarning.js";import{ComponentClassNames as n}from"../shared/constants.js";import{splitPrimitiveProps as o}from"../utils/splitPrimitiveProps.js";const i=l.forwardRef(((l,i)=>{var{children:p,className:m,defaultValue:u,isCollapsible:d,onChange:c,onValueChange:f,testId:h,type:g="single",value:C}=l,V=e(l,["children","className","defaultValue","isCollapsible","onChange","onValueChange","testId","type","value"]);const{rest:x}=o(V),b=null!=f?f:c;t({shouldWarn:!!c,message:"Expander `onChange` prop will be deprecated in the next major release of @aws-amplify/ui-react. Please replace usage with `onValueChange`."});return a(r,"multiple"===g?Object.assign({className:s(n.Expander,m),"data-testid":h,defaultValue:u,onValueChange:b,ref:i,type:g,value:C},x,{children:p}):Object.assign({className:s(n.Expander,m),collapsible:d,"data-testid":h,defaultValue:u,onValueChange:b,ref:i,type:g,value:C},x,{children:p}))}));i.displayName="Expander";export{i as Expander};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as a,jsx as r}from"react/jsx-runtime";import*as t from"react";import{Item as s,Header as i,Trigger as n,Content as d}from"@radix-ui/react-accordion";import o from"classnames";import{ComponentClassNames as c}from"../shared/constants.js";import{View as m}from"../View/View.js";import{IconExpandMore as l}from"../Icon/icons/IconExpandMore.js";import{splitPrimitiveProps as p}from"../utils/splitPrimitiveProps.js";import{useStableId as x}from"../utils/useStableId.js";const f="expander-item",h="expander-header",j="expander-icon",b="expander-content-text",u=t.forwardRef(((t,f)=>{var{children:h,className:j,title:b,value:u}=t,N=e(t,["children","className","title","value"]);const E=x(),g=x(),{rest:I}=p(N);return a(s,Object.assign({className:o(c.ExpanderItem,j),"data-testid":"expander-item",ref:f,value:u},I,{children:[r(i,Object.assign({className:c.ExpanderHeader,"data-testid":"expander-header"},{children:a(n,Object.assign({"aria-controls":g,className:c.ExpanderTrigger,id:E},{children:[b,r(l,{"aria-hidden":!0,className:c.ExpanderIcon,"data-testid":"expander-icon"})]}))})),r(d,Object.assign({"aria-labelledby":E,className:c.ExpanderContent,id:g},{children:r(m,Object.assign({className:c.ExpanderContentText,testId:"expander-content-text"},{children:h}))}))]}))}));u.displayName="ExpanderItem";export{b as EXPANDER_CONTENT_TEXT_TEST_ID,h as EXPANDER_HEADER_TEST_ID,j as EXPANDER_ICON_TEST_ID,f as EXPANDER_ITEM_TEST_ID,u as ExpanderItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as e from"react";import"../FieldGroupIcon/FieldGroupIcon.js";import{FieldGroupIconButton as i}from"../FieldGroupIcon/FieldGroupIconButton.js";import"classnames";import{ComponentText as t}from"../shared/constants.js";import"../View/View.js";import{IconClose as a}from"../Icon/icons/IconClose.js";const s=t.Fields.clearButtonLabel,m=e.forwardRef(((e,t)=>{var{ariaLabel:m=s,size:n}=e,l=r(e,["ariaLabel","size"]);return o(i,Object.assign({ariaLabel:m,ref:t},l,{children:o(a,{size:n})}))}));m.displayName="FieldClearButton";export{m as FieldClearButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import t from"classnames";import{Text as r}from"../Text/Text.js";import{ComponentClassNames as s}from"../shared/constants.js";const d="qa-field-description",a=d=>{var{descriptiveText:a,labelHidden:l}=d,o=e(d,["descriptiveText","labelHidden"]);return a?i(r,Object.assign({"data-testid":"qa-field-description",className:t(s.FieldDescription,{[s.VisuallyHidden]:l})},o,{children:a})):null};a.displayName="FieldDescription";export{a as FieldDescription,d as QA_FIELD_DESCRIPTION};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{Text as s}from"../Text/Text.js";import{ComponentClassNames as o}from"../shared/constants.js";const a=a=>{var{errorMessage:t,hasError:i}=a,m=r(a,["errorMessage","hasError"]);return i&&t?e(s,Object.assign({className:o.FieldErrorMessage},m,{children:t})):null};a.displayName="FieldErrorMessage";export{a as FieldErrorMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import*as t from"react";import o from"classnames";import{classNameModifier as i}from"../shared/utils.js";import{ComponentClassNames as a}from"../shared/constants.js";import{Flex as s}from"../Flex/Flex.js";import{View as l}from"../View/View.js";const d=t.forwardRef(((t,d)=>{var{children:m,className:p,innerEndComponent:c,innerStartComponent:u,orientation:F="horizontal",outerEndComponent:G,outerStartComponent:f,variation:h}=t,j=r(t,["children","className","innerEndComponent","innerStartComponent","orientation","outerEndComponent","outerStartComponent","variation"]);const O=null!=c,N=null!=u?a.FieldGroupHasInnerStart:null,C=O?a.FieldGroupHasInnerEnd:null,E=o(a.FieldGroup,N,C,i(a.FieldGroup,F),p);return e(s,Object.assign({className:E,"data-orientation":F,ref:d},j,{children:[f&&n(l,Object.assign({className:o(a.FieldGroupOuterStart,i(a.FieldGroupOuterStart,h))},{children:f})),e(l,Object.assign({className:o(a.FieldGroupFieldWrapper,i(a.FieldGroupFieldWrapper,F)),"data-orientation":F},{children:[u&&n(l,Object.assign({className:a.FieldGroupInnerStart},{children:u})),m,c&&n(l,Object.assign({className:a.FieldGroupInnerEnd},{children:c}))]})),G&&n(l,Object.assign({className:o(a.FieldGroupOuterEnd,i(a.FieldGroupOuterEnd,h))},{children:G}))]}))}));d.displayName="FieldGroup";export{d as FieldGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import*as s from"react";import i from"classnames";import{ComponentClassNames as o}from"../shared/constants.js";import{View as a}from"../View/View.js";const m=s.forwardRef(((s,m)=>{var{className:l,children:t,isVisible:c=!0,excludeFromTabOrder:d=!1}=s,n=r(s,["className","children","isVisible","excludeFromTabOrder"]);return c?e(a,Object.assign({className:i(o.FieldGroupIcon,l),ref:m,tabIndex:d?-1:void 0},n,{children:t})):null}));m.displayName="FieldGroupIcon";export{m as FieldGroupIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as t from"react";import s from"classnames";import{Button as e}from"../Button/Button.js";import{ComponentClassNames as m}from"../shared/constants.js";import{FieldGroupIcon as a}from"./FieldGroupIcon.js";const i=t.forwardRef(((t,i)=>{var{children:n,className:c}=t,l=r(t,["children","className"]);return o(a,Object.assign({as:e,className:s(m.FieldGroupIconButton,c),ref:i},l,{children:n}))}));i.displayName="FieldGroupIconButton";export{i as FieldGroupIconButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import*as s from"react";import a from"classnames";import{ComponentClassNames as m}from"../shared/constants.js";import{View as o}from"../View/View.js";const t=s.forwardRef(((s,t)=>{var{className:i,children:c}=s,l=r(s,["className","children"]);return e(o,Object.assign({className:a(m.Flex,i),ref:t},l,{children:c}))}));t.displayName="Flex";export{t as Flex};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as s}from"react/jsx-runtime";import*as e from"react";import a from"classnames";import{ComponentClassNames as m}from"../shared/constants.js";import{View as i}from"../View/View.js";const o=e.forwardRef(((e,o)=>{var{className:t,children:c}=e,n=r(e,["className","children"]);return s(i,Object.assign({className:a(m.Grid,t),ref:o},n,{children:c}))}));o.displayName="Grid";export{o as Grid};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import*as a from"react";import s from"classnames";import{classNameModifier as i,classNameModifierByFlag as t}from"../shared/utils.js";import{ComponentClassNames as m}from"../shared/constants.js";import{View as o}from"../View/View.js";const n={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},c=a.forwardRef(((a,c)=>{var{className:d,children:l,isTruncated:h,level:f=6}=a,p=r(a,["className","children","isTruncated","level"]);return e(o,Object.assign({as:n[f],className:s(m.Heading,i(m.Heading,f),t(m.Heading,"truncated",h),d),ref:c},p,{children:l}))}));c.displayName="Heading";export{c as Heading};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"classnames";import*as i from"react";import{View as a}from"../View/View.js";import{strHasLength as o}from"../shared/utils.js";import{getTestId as n}from"../utils/getTestId.js";import{ComponentClassNames as l}from"../shared/constants.js";const c=(i,c)=>{var{children:m,className:h,query:d,testId:g}=i,f=s(i,["children","className","query","testId"]);const p=n(g,"match"),u=null==m?void 0:m.toLocaleLowerCase().indexOf(null==d?void 0:d.toLocaleLowerCase());if(o(d)&&-1!==u){const s=m.substring(u,u+d.length);return t(a,Object.assign({as:"span",className:r(h,l.HighlightMatch),testId:g,ref:c},f,{children:[m.substring(0,u),e(a,Object.assign({as:"strong",className:l.HighlightMatchHighlighted,testId:p},{children:s})),m.substring(u+d.length)]}))}return e(a,Object.assign({as:"span",testId:g},{children:m}))},m=i.forwardRef(c);m.displayName="HighlightMatch";export{m as HighlightMatch,c as HighlightMatchPrimitive};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as i}from"tslib";import{jsx as t}from"react/jsx-runtime";import*as a from"react";import{createElement as r}from"react";import e from"classnames";import{ComponentClassNames as s}from"../shared/constants.js";import{View as m}from"../View/View.js";const o={minX:0,minY:0,width:24,height:24},n=a.forwardRef(((a,n)=>{var{className:h,as:c="svg",fill:l="currentColor",pathData:p,viewBox:f=o,children:d,paths:w}=a,g=i(a,["className","as","fill","pathData","viewBox","children","paths"]);const j=f.minX?f.minX:o.minX,v=f.minY?f.minY:o.minY,x=f.width?f.width:o.width,N=f.height?f.height:o.height;let X;return d&&(X=d),w&&(X=w.map(((i,t)=>r("path",Object.assign({},i,{key:t}))))),p&&(X=t("path",{d:p,fill:l})),t(m,Object.assign({as:c,className:e(s.Icon,h),ref:n,viewBox:`${j} ${v} ${x} ${N}`},g,{children:X}))}));n.displayName="Icon";export{n as Icon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}))}))};export{o as IconAdd};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M9.00016 16.1698L4.83016 11.9998L3.41016 13.4098L9.00016 18.9998L21.0002 6.99984L19.5902 5.58984L9.00016 16.1698Z",fill:"currentColor"})}))}))};export{o as IconCheck};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})}))}))};export{o as IconCheckCircle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as m}from"react/jsx-runtime";import t from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as e}from"../../View/View.js";const o=o=>{const{className:a}=o,i=s(o,["className"]);return m(e,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i))};export{o as IconCheckCircleOutline};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z",fill:"currentColor"})}))}))};export{o as IconChevronLeft};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M9.99984 6L8.58984 7.41L13.1698 12L8.58984 16.59L9.99984 18L15.9998 12L9.99984 6Z",fill:"currentColor"})}))}))};export{o as IconChevronRight};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as i}from"../../shared/constants.js";import{View as r}from"../../View/View.js";const o=o=>{const{className:m,size:n}=o,a=s(o,["className","size"]);return t(r,Object.assign({as:"span",width:n||"1em",height:n||"1em",className:e(i.Icon,m)},a,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n?{width:n,height:n}:void 0},{children:t("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}))}))};export{o as IconClose};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,a=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},a,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M3 21h3.75L17.81 9.94l-3.75-3.75L3 17.25V21zm2-2.92l9.06-9.06.92.92L5.92 19H5v-.92zM18.37 3.29a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 000-1.41l-2.34-2.34z",fill:"currentColor"})}))}))};export{o as IconEdit};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}))}))};export{o as IconError};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})}))}))};export{o as IconExpandMore};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,c=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},c,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z",fill:"currentColor"})}))}))};export{o as IconFile};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as o}from"../../View/View.js";const i=i=>{const{className:m}=i,n=s(i,["className"]);return t(o,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 0 24 24"},{children:t("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor",strokeWidth:"3"})}))}))};export{i as IconIndeterminate};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})}))}))};export{o as IconInfo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})}))}))};export{o as IconMenu};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M19 13H5V11H19V13Z",fill:"currentColor"})}))}))};export{o as IconRemove};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14V14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}))}))};export{o as IconSearch};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27Z",fill:"currentColor"})}))}))};export{o as IconStar};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,c=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},c,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11 8 15.01z",fill:"currentColor"})}))}))};export{o as IconUpload};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})}))}))};export{o as IconVisibility};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import C from"classnames";import{ComponentClassNames as e}from"../../shared/constants.js";import{View as r}from"../../View/View.js";const i=i=>{const{className:o}=i,m=s(i,["className"]);return t(r,Object.assign({as:"span",width:"1em",height:"1em",className:C(e.Icon,o)},m,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})}))}))};export{i as IconVisibilityOff};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as i}from"../../View/View.js";const o=o=>{const{className:m}=o,n=s(o,["className"]);return t(i,Object.assign({as:"span",width:"1em",height:"1em",className:e(r.Icon,m)},n,{children:t("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}))}))};export{o as IconWarning};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as s}from"react/jsx-runtime";import*as a from"react";import m from"classnames";import{ComponentClassNames as e}from"../shared/constants.js";import{View as o}from"../View/View.js";const t=a.forwardRef(((a,t)=>{var{className:i}=a,c=r(a,["className"]);return s(o,Object.assign({as:"img",ref:t,className:m(e.Image,i)},c))}));t.displayName="Image";export{t as Image};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as a from"react";import t from"classnames";import{classNameModifier as n,classNameModifierByFlag as r}from"../shared/utils.js";import{ComponentClassNames as s}from"../shared/constants.js";import{View as i}from"../View/View.js";const l=a.forwardRef(((a,l)=>{var{autoComplete:u,checked:d,className:p,defaultChecked:c,defaultValue:m,id:f,isDisabled:h,isReadOnly:C,isRequired:y,size:v,type:I="text",hasError:k=!1,value:b,variation:j,onBlur:R,onChange:V,onCopy:g,onCut:F,onFocus:N,onInput:O,onPaste:q,onSelect:w,onWheel:x}=a,z=e(a,["autoComplete","checked","className","defaultChecked","defaultValue","id","isDisabled","isReadOnly","isRequired","size","type","hasError","value","variation","onBlur","onChange","onCopy","onCut","onFocus","onInput","onPaste","onSelect","onWheel"]);const B=t(s.Input,s.FieldGroupControl,n(s.Input,j),r(s.Input,"error",k),n(s.Input,v),p);return o(i,Object.assign({"aria-invalid":k,as:"input",autoComplete:u,checked:d,className:B,"data-size":v,"data-variation":j,defaultChecked:c,defaultValue:m,isDisabled:h,id:f,onBlur:R,onChange:V,onCopy:g,onCut:F,onFocus:N,onInput:O,onPaste:q,onSelect:w,onWheel:x,readOnly:C,ref:l,required:y,type:I,value:b},z))}));l.displayName="Input";export{l as Input};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as e from"react";import s from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import{View as l}from"../View/View.js";const m=e.forwardRef(((e,m)=>{var{children:o,className:t,visuallyHidden:n}=e,c=r(e,["children","className","visuallyHidden"]);return a(l,Object.assign({as:"label",className:s(i.Label,t,{[i.VisuallyHidden]:n}),ref:m},c,{children:o}))}));m.displayName="Label";export{m as Label};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as o from"react";import s from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import{View as t}from"../View/View.js";import{useDeprecationWarning as a}from"../../hooks/useDeprecationWarning.js";const n=o.forwardRef(((o,n)=>{var{as:m,children:l,className:c,isExternal:p,to:f}=o,d=e(o,["as","children","className","isExternal","to"]);return a({shouldWarn:null!=f&&!m,message:"The Link component's to prop will soon be deprecated. Please see the Amplify UI documentation for using the Link component with routing libraries: https://ui.docs.amplify.aws/react/components/link#routing-libraries"}),r(t,Object.assign({as:m||"a",className:s(i.Link,c),ref:n,rel:p?"noopener noreferrer":void 0,target:p?"_blank":void 0,to:f},d,{children:l}))}));n.displayName="Link";export{n as Link};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import*as a from"react";import i from"classnames";import{classNameModifier as l}from"../shared/utils.js";import{ComponentClassNames as s}from"../shared/constants.js";import{View as o}from"../View/View.js";const n="linear-empty",d="linear-filled",c="circular-empty",m="circular-filled",y=8,p=42,f=84*Math.PI,g=a.forwardRef(((a,n)=>{var{className:d,filledColor:c,emptyColor:m,size:y,variation:p,isDeterminate:g=!1,isPercentageTextHidden:x=!1,percentage:h=0}=a,u=e(a,["className","filledColor","emptyColor","size","variation","isDeterminate","isPercentageTextHidden","percentage"]);h=Math.min(h,100);const v=`${h=Math.max(h,0)}%`,k=i(s.Loader,l(s.Loader,y),l(s.Loader,p),g?s.LoaderDeterminate:null,d),j=r("g",{children:[t("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(m)},"data-testid":"linear-empty"}),t("line",{x1:"0",x2:g?v:"100%",y1:"50%",y2:"50%",style:{stroke:g&&0===h?"none":c?String(c):void 0},"data-testid":"linear-filled"}),g?t("text",Object.assign({"aria-live":"polite",className:i(s.LoaderPercentageText,x?s.VisuallyHidden:null),x:`${-1+h}%`,y:"200%"},{children:v})):null]}),L=r("g",{children:[t("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(m)},"data-testid":"circular-empty"}),t("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(c),strokeDasharray:g?`${f}% ${f}%`:void 0,strokeDashoffset:g?f-f*h/100+"%":void 0},"data-testid":"circular-filled"}),g?t("text",Object.assign({"aria-live":"polite",className:i(s.LoaderPercentageText,x?s.VisuallyHidden:null),x:"130%",y:"80%"},{children:v})):null]});return t(o,Object.assign({as:"svg",className:k,"data-size":y,"data-variation":p,ref:n,role:"img"},u,{children:"linear"===p?j:L}))}));g.displayName="Loader";export{c as CIRCULAR_EMPTY,m as CIRCULAR_FILLED,y as CIRCULAR_STROKE_WIDTH,f as CIRCUMFERENCE,n as LINEAR_EMPTY,d as LINEAR_FILLED,g as Loader,p as RADIUS};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import*as n from"react";import s from"classnames";import{DropdownMenu as t,DropdownMenuTrigger as a,DropdownMenuContent as m}from"@radix-ui/react-dropdown-menu";import{ButtonGroup as o}from"../ButtonGroup/ButtonGroup.js";import{ComponentClassNames as l}from"../shared/constants.js";import"../View/View.js";import{IconMenu as p}from"../Icon/icons/IconMenu.js";import{MenuButton as g}from"./MenuButton.js";const c="amplify-menu-trigger-test-id",u="amplify-menu-items-group-test-id",d=n.forwardRef(((n,c)=>{var{menuAlign:u="start",children:d,className:f,isOpen:h,size:j,trigger:O,triggerClassName:b,ariaLabel:C,onOpenChange:N}=n,M=e(n,["menuAlign","children","className","isOpen","size","trigger","triggerClassName","ariaLabel","onOpenChange"]);return r(t,Object.assign({onOpenChange:N,open:h},{children:[i(a,Object.assign({asChild:!0},{children:null!=O?O:i(g,Object.assign({ariaLabel:C,size:j,testId:"amplify-menu-trigger-test-id",className:s(l.MenuTrigger,b)},{children:i(p,{size:j})}))})),i(m,Object.assign({align:u,className:l.MenuContentWrapper},{children:i(o,Object.assign({className:s(l.MenuContent,f),ref:c,size:j,testId:"amplify-menu-items-group-test-id"},M,{children:d}))}))]}))}));d.displayName="Menu";export{u as MENU_ITEMS_GROUP_TEST_ID,c as MENU_TRIGGER_TEST_ID,d as Menu};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as s from"react";import i from"classnames";import{Button as e}from"../Button/Button.js";import{classNameModifier as r}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{useStyles as l}from"../shared/styleUtils.js";const n=s.forwardRef(((s,n)=>{var{ariaLabel:d,className:m,children:p,isFullWidth:u=!1,isDisabled:c,isLoading:f,size:y,style:b,type:h="button",variation:j,testId:B}=s,g=t(s,["ariaLabel","className","children","isFullWidth","isDisabled","isLoading","size","style","type","variation","testId"]);const{propStyles:v,nonStyleProps:L}=l(g,b),N=i(o.Button,r(o.Button,y),r(o.Button,j),m);return a(e,Object.assign({ref:n,className:N,"data-fullwidth":u,"data-loading":f,"data-size":y,"data-variation":j,disabled:c||f,type:h,"data-testid":B,"aria-label":d,style:v},L,{children:p}))}));n.displayName="MenuButton";export{n as MenuButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as t from"react";import m from"classnames";import{DropdownMenuItem as i}from"@radix-ui/react-dropdown-menu";import{ComponentClassNames as s}from"../shared/constants.js";import{MenuButton as a}from"./MenuButton.js";const n="amplify-menu-item-test-id",o=t.forwardRef(((t,n)=>{var{children:o,className:c}=t,d=e(t,["children","className"]);return r(i,Object.assign({asChild:!0,ref:n},{children:r(a,Object.assign({className:m(s.MenuItem,c),testId:"amplify-menu-item-test-id"},d,{variation:"menu"},{children:o}))}))}));o.displayName="MenuItem";export{n as MENU_ITEM_TEST_ID,o as MenuItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as r from"react";import t from"classnames";import{Flex as n}from"../Flex/Flex.js";import{View as o}from"../View/View.js";import{usePaginationItems as s}from"./usePaginationItems.js";import{ComponentClassNames as i}from"../shared/constants.js";const l=r.forwardRef(((r,l)=>{var{className:g,currentPage:m=1,totalPages:c,hasMorePages:u=!1,siblingCount:b,currentPageLabel:P,pageLabel:p,previousLabel:f,nextLabel:L,onNext:h,onPrevious:x,onChange:j}=r,v=e(r,["className","currentPage","totalPages","hasMorePages","siblingCount","currentPageLabel","pageLabel","previousLabel","nextLabel","onNext","onPrevious","onChange"]);const C=s({currentPage:m,totalPages:c,hasMorePages:u,siblingCount:b,currentPageLabel:P,pageLabel:p,previousLabel:f,nextLabel:L,onNext:h,onPrevious:x,onChange:j});return a(o,Object.assign({as:"nav",className:t(i.Pagination,g),ref:l},v,{children:a(n,Object.assign({as:"ol",justifyContent:"center",alignItems:"center",gap:"inherit"},{children:C}))}))}));l.displayName="Pagination";export{l as Pagination};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as i}from"tslib";import{jsx as a,jsxs as e}from"react/jsx-runtime";import*as t from"react";import n from"classnames";import{Button as s}from"../Button/Button.js";import{Flex as l}from"../Flex/Flex.js";import{ComponentClassNames as r,ComponentText as o}from"../shared/constants.js";import{View as c}from"../View/View.js";import{IconChevronLeft as m}from"../Icon/icons/IconChevronLeft.js";import{IconChevronRight as u}from"../Icon/icons/IconChevronRight.js";import{VisuallyHidden as g}from"../VisuallyHidden/VisuallyHidden.js";import{classNameModifier as b,classNameModifierByFlag as d}from"../shared/utils.js";const p="current",j="ellipsis",I=p=>{var{type:j,page:I,currentPage:P,currentPageLabel:h=o.PaginationItem.currentPageLabel,isDisabled:k,onClick:f,ariaLabel:C}=p,B=i(p,["type","page","currentPage","currentPageLabel","isDisabled","onClick","ariaLabel"]);const L=t.useCallback((()=>{null==f||f(I,P)}),[I,P,f]),O=t.useCallback((()=>{null==f||f()}),[f]),v=t.useCallback((()=>{null==f||f()}),[f]),N=n(r.PaginationItemButton,b(r.PaginationItemButton,"link"),d(r.PaginationItemButton,"disabled",k)),x=n(r.PaginationItemButton,b(r.PaginationItemButton,"link"),d(r.PaginationItemButton,"disabled",k));switch(j){case"page":return a(c,Object.assign({as:"li"},{children:I===P?e(l,Object.assign({"aria-current":"page",as:"button",className:r.PaginationItemCurrent,testId:"current"},B,{children:[e(g,{children:[h,":"]}),I]})):a(s,Object.assign({className:n(r.PaginationItemButton,b(r.PaginationItemButton,"link")),size:"small",variation:"link",onClick:L,ariaLabel:C},B,{children:I}))}));case"next":return a(c,Object.assign({as:"li"},{children:a(s,Object.assign({className:N,size:"small",variation:"link",isDisabled:k,onClick:v,ariaLabel:C},B,{children:a(u,{size:"large"})}))}));case"previous":return a(c,Object.assign({as:"li"},{children:a(s,Object.assign({className:x,size:"small",variation:"link",isDisabled:k,onClick:O,ariaLabel:C},B,{children:a(m,{size:"large"})}))}));case"ellipsis":return a(c,Object.assign({as:"li"},{children:a(l,Object.assign({as:"span",className:r.PaginationItemEllipsis,testId:"ellipsis"},B,{children:"…"}))}))}return a(c,{as:"li"})};I.displayName="PaginationItem";export{p as PAGINATION_CURRENT_TEST_ID,j as PAGINATION_ELLIPSIS_TEST_ID,I as PaginationItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import*as a from"react";import{useRange as t,ELLIPSIS as r}from"./useRange.js";import{PaginationItem as i}from"./PaginationItem.js";import{ComponentText as n}from"../shared/constants.js";const o=({currentPage:o,totalPages:s,hasMorePages:l,siblingCount:p,currentPageLabel:g=n.PaginationItem.currentPageLabel,pageLabel:m=n.PaginationItem.pageLabel,previousLabel:u=n.PaginationItem.previousLabel,nextLabel:b=n.PaginationItem.nextLabel,onNext:c,onPrevious:P,onChange:L})=>{const x=e(i,{type:"previous",currentPage:o,onClick:P,isDisabled:o<=1,ariaLabel:u},"previous"),f=e(i,{type:"next",currentPage:o,onClick:c,isDisabled:o>=s&&!l,ariaLabel:b},"next"),v=t(o,s,p);return[x,...a.useMemo((()=>v.map(((a,t)=>a===r?e(i,{type:"ellipsis"},1===t?"start-ellipsis":"end-ellipsis"):e(i,{type:"page",page:a,currentPage:o,currentPageLabel:g,onClick:L,ariaLabel:`${m} ${a}`},a)))),[v,o,g,m,L]),f]};export{o as usePaginationItems};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{getConsecutiveIntArray as r}from"../shared/utils.js";const a="...",m=(a,m,e=1)=>t.useMemo((()=>{const t=Math.max(a,1),o=Math.max(e,1),n=Math.max(t,m),s=n;if(n<5+2*o)return r(1,n);const i=Math.max(t-o,1),h=Math.min(t+o,s),u=i>2,M=h<s-1;if(u&&!M){return[1,"...",...r(s-(3+2*o)+1,s)]}if(!u&&M){return[...r(1,3+2*o),"...",s]}return[1,"...",...r(i,h),"...",s]}),[a,m,e]);export{a as ELLIPSIS,m as useRange};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as o}from"react/jsx-runtime";import e from"classnames";import*as a from"react";import{ComponentClassNames as r}from"../shared/constants.js";import{ShowPasswordButton as t}from"./ShowPasswordButton.js";import{TextField as d}from"../TextField/TextField.js";const l=a.forwardRef(((l,w)=>{var{autoComplete:i="current-password",label:n,className:p,hideShowPassword:m=!1,passwordIsHiddenLabel:u,passwordIsShownLabel:b,showPasswordButtonLabel:f,showPasswordButtonRef:h,size:c}=l,P=s(l,["autoComplete","label","className","hideShowPassword","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","showPasswordButtonRef","size"]);const[L,S]=a.useState("password"),B=a.useCallback((()=>{S("password"===L?"text":"password")}),[S,L]);return o(d,Object.assign({autoComplete:i,outerEndComponent:m?null:o(t,{fieldType:L,onClick:B,passwordIsHiddenLabel:u,passwordIsShownLabel:b,ref:h,size:c,showPasswordButtonLabel:f}),size:c,type:L,label:n,className:e(r.PasswordField,p),ref:w},P))}));l.displayName="PasswordField";export{l as PasswordField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import*as r from"react";import{Button as a}from"../Button/Button.js";import{VisuallyHidden as e}from"../VisuallyHidden/VisuallyHidden.js";import{ComponentClassNames as d,ComponentText as t}from"../shared/constants.js";import"classnames";import"../View/View.js";import{IconVisibilityOff as n}from"../Icon/icons/IconVisibilityOff.js";import{IconVisibility as w}from"../Icon/icons/IconVisibility.js";const{passwordIsHidden:l,passwordIsShown:p,showPassword:m}=t.PasswordField,c=r.forwardRef(((r,t)=>{var{fieldType:c,passwordIsHiddenLabel:f=l,passwordIsShownLabel:h=p,showPasswordButtonLabel:b=m,size:I}=r,j=s(r,["fieldType","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","size"]);return o(a,Object.assign({"aria-checked":"password"!==c,ariaLabel:b,className:d.FieldShowPassword,ref:t,role:"switch",size:I},j,{children:[i(e,Object.assign({"aria-live":"polite"},{children:"password"===c?f:h})),i("password"===c?w:n,{size:I})]}))}));c.displayName="ShowPasswordButton";export{c as ShowPasswordButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as o from"react";import t from"classnames";import{countryDialCodes as s}from"@aws-amplify/ui";import{ComponentClassNames as r}from"../shared/constants.js";import{SelectField as i}from"../SelectField/SelectField.js";const l=o.forwardRef(((l,m)=>{var{className:d,dialCodeList:c,isReadOnly:n}=l,p=e(l,["className","dialCodeList","isReadOnly"]);const f=null!=c?c:s,u=o.useMemo((()=>f.map((e=>a("option",Object.assign({value:e,disabled:n},{children:e}),e)))),[f,n]);return a(i,Object.assign({"aria-disabled":n,autoComplete:"tel-country-code",className:t(r.CountryCodeSelect,r.DialCodeSelect,d),labelHidden:!0,ref:m},p,{children:u}))}));l.displayName="CountryCodeSelect";export{l as CountryCodeSelect};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as a from"react";import t from"classnames";import{ComponentClassNames as r,ComponentText as i}from"../shared/constants.js";import{CountryCodeSelect as d}from"./CountryCodeSelect.js";import{TextField as l}from"../TextField/TextField.js";const n=a.forwardRef(((a,n)=>{var{autoComplete:s="tel-national",className:C,countryCodeName:m,countryCodeLabel:u=i.PhoneNumberField.countryCodeLabel,countryCodeRef:c,defaultCountryCode:f,defaultDialCode:y,dialCodeLabel:b=i.PhoneNumberField.countryCodeLabel,dialCodeList:p,dialCodeName:h,dialCodeRef:N,hasError:L,isDisabled:R,isReadOnly:D,onCountryCodeChange:g,onDialCodeChange:F,onInput:j,size:v,variation:O}=a,x=e(a,["autoComplete","className","countryCodeName","countryCodeLabel","countryCodeRef","defaultCountryCode","defaultDialCode","dialCodeLabel","dialCodeList","dialCodeName","dialCodeRef","hasError","isDisabled","isReadOnly","onCountryCodeChange","onDialCodeChange","onInput","size","variation"]);const z=h||m,E=b||u,P=y||f,I=F||g,S=N||c;return o(l,Object.assign({outerStartComponent:o(d,{defaultValue:P,dialCodeList:p,className:C,hasError:L,isDisabled:R,isReadOnly:D,label:E,name:z,onChange:I,ref:S,size:v,variation:O}),autoComplete:s,className:t(r.PhoneNumberField,C),hasError:L,isDisabled:R,isReadOnly:D,onInput:j,ref:n,size:v,type:"tel",variation:O},x))}));n.displayName="PhoneNumberField";export{n as PhoneNumberField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e,Fragment as s}from"react/jsx-runtime";import*as a from"react";import o from"classnames";import{classNameModifier as i}from"../shared/utils.js";import{ComponentClassNames as m}from"../shared/constants.js";import{View as t}from"../View/View.js";const l=a.forwardRef(((a,l)=>{var{className:c,children:d,isLoaded:f,size:n}=a,p=r(a,["className","children","isLoaded","size"]);return f?e(s,{children:d}):e(t,Object.assign({className:o(m.Placeholder,i(m.Placeholder,n),c),"data-size":n,ref:l},p))}));l.displayName="Placeholder";export{l as Placeholder};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as i}from"tslib";import{jsxs as a,jsx as e}from"react/jsx-runtime";import*as t from"react";import s from"classnames";import{classNameModifierByFlag as o,classNameModifier as d}from"../shared/utils.js";import{ComponentClassNames as r}from"../shared/constants.js";import{Flex as l}from"../Flex/Flex.js";import{Input as n}from"../Input/Input.js";import{Text as m}from"../Text/Text.js";import{useRadioGroupContext as p}from"../RadioGroupField/context.js";const h=(t,h)=>{var{children:c,className:u,id:b,isDisabled:f,testId:g,value:R,labelPosition:j,height:v,width:x,bottom:N,left:I,position:y,padding:O,right:w,top:D}=t,C=i(t,["children","className","id","isDisabled","testId","value","labelPosition","height","width","bottom","left","position","padding","right","top"]);const{currentValue:F,defaultValue:P,name:V,hasError:k,isGroupDisabled:q,isRequired:z,isReadOnly:B,onChange:E,size:G,labelPosition:T}=p(),H=q||f||B&&P!==R,L=void 0!==F?R===F:void 0,A=void 0!==P?R===P:void 0,J=j||T;return a(l,Object.assign({as:"label",className:s(r.Radio,o(r.Radio,"disabled",H),u),"data-disabled":H,"data-label-position":J,height:v,width:x,bottom:N,top:D,right:w,left:I,position:y,padding:O},{children:[c&&e(m,Object.assign({as:"span",className:r.RadioLabel,"data-disabled":H},{children:c})),e(n,Object.assign({checked:L,className:s(r.VisuallyHidden,r.RadioInput),defaultChecked:A,hasError:k,id:b,isDisabled:H,isReadOnly:B,isRequired:z,onChange:E,ref:h,type:"radio",name:V,value:R},C)),e(l,{"aria-hidden":"true",as:"span",className:s(r.RadioButton,d(r.RadioButton,G)),"data-size":G,testId:g})]}))},c=t.forwardRef(h);c.displayName="Radio";export{c as Radio,h as RadioPrimitive};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import*as s from"react";import a from"classnames";import{ComponentClassNames as l}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as d}from"../Field/FieldDescription.js";import{FieldErrorMessage as o}from"../Field/FieldErrorMessage.js";import{Flex as t}from"../Flex/Flex.js";import{Label as n}from"../Label/Label.js";import{VisuallyHidden as m}from"../VisuallyHidden/VisuallyHidden.js";import{RadioGroupContext as u}from"./context.js";import{getTestId as c}from"../utils/getTestId.js";import{useStableId as p}from"../utils/useStableId.js";const b=s.forwardRef(((b,f)=>{var{children:h,className:j,defaultValue:g,descriptiveText:F,errorMessage:R,hasError:v=!1,id:x,isDisabled:y,isRequired:O,isReadOnly:H,label:I,labelHidden:V=!1,labelPosition:E,onChange:G,name:M,size:N,testId:z,value:C}=b,D=e(b,["children","className","defaultValue","descriptiveText","errorMessage","hasError","id","isDisabled","isRequired","isReadOnly","label","labelHidden","labelPosition","onChange","name","size","testId","value"]);const P=p(x),T=p(),q=F?T:void 0,L=c(z,l.RadioGroup),w=s.useMemo((()=>({currentValue:C,defaultValue:g,hasError:v,isRequired:O,isReadOnly:H,isGroupDisabled:y,onChange:G,size:N,name:M,labelPosition:E})),[g,v,y,O,H,G,N,M,C,E]);return i(t,Object.assign({as:"fieldset",className:a(l.Field,l.RadioGroupField,j),"data-size":N,ref:f,role:"radiogroup",testId:z},D,{children:[r(m,Object.assign({as:"legend"},{children:I})),r(n,Object.assign({"aria-hidden":!0,visuallyHidden:V},{children:I})),r(d,{id:T,labelHidden:V,descriptiveText:F}),r(t,Object.assign({"aria-describedby":q,className:l.RadioGroup,id:P,testId:L},{children:r(u.Provider,Object.assign({value:w},{children:h}))})),r(o,{hasError:v,errorMessage:R})]}))}));b.displayName="RadioGroupField";export{b as RadioGroupField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as o}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import*as t from"react";import a from"classnames";import{classNameModifier as l}from"../shared/utils.js";import{ComponentClassNames as e}from"../shared/constants.js";import{Flex as m}from"../Flex/Flex.js";import"../View/View.js";import{IconStar as s}from"../Icon/icons/IconStar.js";import{isIconFilled as n,isIconEmpty as c,isIconMixed as f}from"./utils.js";import{RatingIcon as p}from"./RatingIcon.js";import{RatingMixedIcon as d}from"./RatingMixedIcon.js";import{VisuallyHidden as u}from"../VisuallyHidden/VisuallyHidden.js";const y=5,g=0,j=t.forwardRef(((t,j)=>{var{className:I,emptyColor:x,emptyIcon:C,fillColor:N,icon:R=i(s,{}),maxValue:V=y,size:h,value:v=g}=t,w=o(t,["className","emptyColor","emptyIcon","fillColor","icon","maxValue","size","value"]);const S=new Array(Math.ceil(V)).fill(1).map(((o,r)=>{const t=r+1;return n(t,v)?i(p,{icon:R,fill:N,className:"amplify-rating-icon-filled"},r.toString()):c(t,v)?i(p,{icon:C||R,fill:x,className:"amplify-rating-icon-empty"},r.toString()):f(t,v)?i(d,{fillIcon:R,emptyIcon:C||R,value:v,fillColor:N,emptyColor:x},r.toString()):void 0}));return r(m,Object.assign({className:a(e.Rating,l(e.Rating,h),I),"data-size":h,ref:j},w,{children:[S,r(u,{children:[v," out of ",V," rating"]})]}))}));j.displayName="Rating";export{j as Rating};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import s from"classnames";import{View as i}from"../View/View.js";const e=({icon:e,fill:n,className:r})=>a(i,Object.assign({as:"span",className:"amplify-rating-icon-container","aria-hidden":"true"},{children:a(i,Object.assign({as:"span",className:s(r),color:n},{children:e}))}));e.displayName="RatingIcon";export{e as RatingIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as a,jsx as i}from"react/jsx-runtime";import n from"classnames";import{View as s}from"../View/View.js";const e=({emptyColor:e,emptyIcon:l,fillColor:c,fillIcon:r,value:t})=>{const o=t%1*100+"%";return a(s,Object.assign({as:"span",className:"amplify-rating-icon-container","aria-hidden":"true"},{children:[i(s,Object.assign({as:"span",className:"amplify-rating-label"},{children:i(s,Object.assign({as:"span",className:n("amplify-rating-icon","amplify-rating-icon-empty"),color:e},{children:l}))})),i(s,Object.assign({as:"span",className:"amplify-rating-label",width:o},{children:i(s,Object.assign({as:"span",className:n("amplify-rating-icon","amplify-rating-icon-filled"),color:c},{children:r}))}))]}))};e.displayName="RatingMixedIcon";export{e as RatingMixedIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as e from"react";import i from"classnames";import{classNameModifier as t}from"../shared/utils.js";import{ComponentClassNames as a}from"../shared/constants.js";import{View as s}from"../View/View.js";const m=e.forwardRef(((e,m)=>{var{children:l,className:n,orientation:c}=e,f=r(e,["children","className","orientation"]);return o(s,Object.assign({className:i(a.ScrollView,t(a.ScrollView,c),n),"data-orientation":c,ref:m},f,{children:l}))}));m.displayName="ScrollView";export{m as ScrollView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import a from"classnames";import*as r from"react";import{FieldClearButton as i}from"../Field/FieldClearButton.js";import"../Field/FieldDescription.js";import"../Field/FieldErrorMessage.js";import{FieldGroupIcon as n}from"../FieldGroupIcon/FieldGroupIcon.js";import"../FieldGroupIcon/FieldGroupIconButton.js";import{ComponentClassNames as t}from"../shared/constants.js";import"../View/View.js";import{IconSearch as l}from"../Icon/icons/IconSearch.js";import{SearchFieldButton as s}from"./SearchFieldButton.js";import{TextField as m}from"../TextField/TextField.js";import{useSearchField as d}from"./useSearchField.js";import{strHasLength as c}from"../shared/utils.js";const u=r.forwardRef(((r,u)=>{var{autoComplete:p="off",className:f,isDisabled:h,clearButtonLabel:C,labelHidden:b=!0,name:F="q",hasSearchButton:j=!0,hasSearchIcon:S=!1,onChange:B,onClear:v,onSubmit:I,searchButtonRef:g,size:D,defaultValue:V,value:x}=r,w=e(r,["autoComplete","className","isDisabled","clearButtonLabel","labelHidden","name","hasSearchButton","hasSearchIcon","onChange","onClear","onSubmit","searchButtonRef","size","defaultValue","value"]);const{composedValue:z,onClearHandler:R,onKeyDown:k,onClick:G,handleOnChange:H,composedRefs:N}=d({defaultValue:V,value:x,onChange:B,onClear:v,onSubmit:I,externalRef:u}),y=j?o(s,{isDisabled:h,onClick:G,ref:g,size:D}):void 0,E=S?o(n,{children:o(l,{})}):void 0;return o(m,Object.assign({autoComplete:p,className:a(t.SearchField,f),labelHidden:b,innerStartComponent:E,innerEndComponent:o(i,{ariaLabel:C,excludeFromTabOrder:!0,isVisible:c(z),onClick:R,size:D,variation:"link"}),isDisabled:h,name:F,onChange:H,onKeyDown:k,outerEndComponent:y,ref:N,size:D,value:z},w))}));u.displayName="SearchField";export{u as SearchField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import*as o from"react";import{ComponentClassNames as i,ComponentText as t}from"../shared/constants.js";import"../FieldGroupIcon/FieldGroupIcon.js";import{FieldGroupIconButton as s}from"../FieldGroupIcon/FieldGroupIconButton.js";import"classnames";import"../View/View.js";import{IconSearch as a}from"../Icon/icons/IconSearch.js";const c=t.SearchField.searchButtonLabel,m=o.forwardRef(((o,t)=>{var{size:m}=o,n=r(o,["size"]);return e(s,Object.assign({ariaLabel:c,className:i.SearchFieldSearch,ref:t,type:"submit"},n,{children:e(a,{size:m})}))}));m.displayName="SearchFieldButton";export{m as SearchFieldButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{ESCAPE_KEY as a,ENTER_KEY as l}from"../shared/constants.js";import{isFunction as o}from"../shared/utils.js";import{useComposeRefsCallback as n}from"../../hooks/useComposeRefsCallback.js";const s=new Set([a,l]),t=({defaultValue:t="",value:r,onChange:u,onClear:c,onSubmit:f,externalRef:m})=>{const C=void 0!==r,[i,d]=e.useState(t),k=C?r:i,p=e.useRef(null),b=n({externalRef:m,internalRef:p}),h=e.useCallback((()=>{var e;C||d(""),null===(e=null==p?void 0:p.current)||void 0===e||e.focus(),o(c)&&c()}),[C,d,c]),v=e.useCallback((e=>{o(f)&&f(e)}),[f]),R=e.useCallback((e=>{const{key:o}=e;s.has(o)&&(e.preventDefault(),o===a?h():o===l&&v(k))}),[k,h,v]),g=e.useCallback((e=>{C||d(e.target.value),o(u)&&u(e)}),[C,u,d]),j=e.useCallback((()=>{v(k)}),[v,k]);return{composedValue:k,onClearHandler:h,onKeyDown:R,onClick:j,handleOnChange:g,composedRefs:b}};export{t as useSearchField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as r,jsxs as a}from"react/jsx-runtime";import*as o from"react";import i from"classnames";import{classNameModifier as s,classNameModifierByFlag as l}from"../shared/utils.js";import{ComponentClassNames as t}from"../shared/constants.js";import{Flex as c}from"../Flex/Flex.js";import{View as n}from"../View/View.js";import{IconExpandMore as m}from"../Icon/icons/IconExpandMore.js";const d=o.forwardRef(((o,d)=>{var{autoComplete:p,className:u,size:f,variation:h,value:v,defaultValue:j,hasError:b,icon:S=r(m,{}),iconColor:C,children:N,placeholder:x,isDisabled:V,isRequired:g}=o,O=e(o,["autoComplete","className","size","variation","value","defaultValue","hasError","icon","iconColor","children","placeholder","isDisabled","isRequired"]);const q=void 0===v&&void 0===j&&x,w=i(t.Select,t.FieldGroupControl,s(t.Select,f),s(t.Select,h),l(t.Select,"error",b),u);return a(n,Object.assign({className:t.SelectWrapper},{children:[a(n,Object.assign({"aria-invalid":b,as:"select",autoComplete:p,value:v,defaultValue:q?"":j,isDisabled:V,required:g,"data-size":f,"data-variation":h,className:w,ref:d},O,{children:[x&&r("option",Object.assign({value:""},{children:x})),N]})),r(c,Object.assign({className:t.SelectIconWrapper,color:C},{children:S}))]}))}));d.displayName="Select";export{d as Select};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import*as s from"react";import t from"classnames";import{ComponentClassNames as o}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as l}from"../Field/FieldDescription.js";import{FieldErrorMessage as d}from"../Field/FieldErrorMessage.js";import{Flex as a}from"../Flex/Flex.js";import{Label as n}from"../Label/Label.js";import{Select as m}from"../Select/Select.js";import{splitPrimitiveProps as p}from"../utils/splitPrimitiveProps.js";import{useStableId as c}from"../utils/useStableId.js";const h=({children:e,options:r})=>e?((null==r?void 0:r.length)&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),e):null==r?void 0:r.map(((e,r)=>i("option",Object.assign({label:e,value:e},{children:e}),`${e}-${r}`))),f=s.forwardRef(((s,f)=>{const{children:b,className:j,descriptiveText:u,errorMessage:F,hasError:g=!1,id:v,label:S,labelHidden:x=!1,options:y,size:E,testId:I,inputStyles:z}=s,H=e(s,["children","className","descriptiveText","errorMessage","hasError","id","label","labelHidden","options","size","testId","inputStyles"]),M=c(v),N=c(),O=u?N:void 0,{styleProps:P,rest:T}=p(H);return r(a,Object.assign({className:t(o.Field,o.SelectField,j),"data-size":E,testId:I},P,{children:[i(n,Object.assign({htmlFor:M,visuallyHidden:x},{children:S})),i(l,{id:N,labelHidden:x,descriptiveText:u}),i(m,Object.assign({"aria-describedby":O,hasError:g,id:M,ref:f,size:E},T,z,{children:h({children:b,options:y})})),i(d,{hasError:g,errorMessage:F})]}))}));f.displayName="SelectField";export{f as SelectField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as r,jsxs as i}from"react/jsx-runtime";import l from"classnames";import{Root as a,Track as t,Range as o,Thumb as s}from"@radix-ui/react-slider";import*as d from"react";import{isFunction as n,classNameModifier as m}from"../shared/utils.js";import{ComponentClassNames as c}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as u}from"../Field/FieldDescription.js";import{FieldErrorMessage as p}from"../Field/FieldErrorMessage.js";import{FieldGroup as b}from"../FieldGroup/FieldGroup.js";import{Flex as f}from"../Flex/Flex.js";import{Label as g}from"../Label/Label.js";import{splitPrimitiveProps as F}from"../utils/splitPrimitiveProps.js";import{View as S}from"../View/View.js";import{useStableId as h}from"../utils/useStableId.js";const C="slider-label",j="slider-root",k="slider-track",v="slider-range",T=d.forwardRef(((C,j)=>{var{ariaValuetext:k,className:v,defaultValue:T=0,descriptiveText:V,emptyTrackColor:x,errorMessage:y,filledTrackColor:N,formatValue:E,hasError:O=!1,id:z,isDisabled:H,isValueHidden:R=!1,label:I,labelHidden:M=!1,onChange:w,orientation:D="horizontal",outerEndComponent:G,outerStartComponent:L,testId:P,thumbColor:B,trackSize:q,value:A,size:J}=C,K=e(C,["ariaValuetext","className","defaultValue","descriptiveText","emptyTrackColor","errorMessage","filledTrackColor","formatValue","hasError","id","isDisabled","isValueHidden","label","labelHidden","onChange","orientation","outerEndComponent","outerStartComponent","testId","thumbColor","trackSize","value","size"]);const Q=h(z),U=h(),W=h(),X=V?W:void 0,{styleProps:Y,rest:Z}=F(K),$=void 0!==A,[_,ee]=d.useState($?A:T),re=$?[A]:void 0,ie=$?void 0:[T],le=d.useCallback((e=>{ee(e[0]),n(w)&&w(e[0])}),[w]),ae=d.useMemo((()=>{const e=n(E)?E(_):_;return"string"==typeof E?r(S,Object.assign({as:"span"},{children:e})):e}),[_,E]),te="vertical"===D,oe=l(c.SliderFieldTrack,m(c.SliderFieldTrack,D),m(c.SliderFieldTrack,J)),se=l(c.SliderFieldRoot,m(c.SliderFieldRoot,D),m(c.SliderFieldRoot,J),v);return i(f,Object.assign({className:l(c.Field,c.SliderField),testId:P,"data-size":J},Y,{children:[i(g,Object.assign({className:c.SliderFieldLabel,id:U,testId:"slider-label",visuallyHidden:M},{children:[r(S,Object.assign({as:"span"},{children:I})),R?null:ae]})),r(u,{id:W,labelHidden:M,descriptiveText:V}),r(b,Object.assign({className:c.SliderFieldGroup,id:Q,orientation:D,outerStartComponent:L,outerEndComponent:G},{children:i(a,Object.assign({className:se,"data-testid":"slider-root",disabled:H,defaultValue:ie,onValueChange:le,orientation:D,ref:j,value:re},Z,{children:[r(t,Object.assign({className:oe,"data-testid":"slider-track",style:{backgroundColor:String(x),[""+(te?"width":"height")]:q}},{children:r(o,{className:l(c.SliderFieldRange,m(c.SliderFieldRange,D)),"data-testid":"slider-range",style:{backgroundColor:String(N)}})})),r(s,{"aria-describedby":X,"aria-labelledby":U,"aria-valuetext":k,className:l(c.SliderFieldThumb,m(c.SliderFieldThumb,J)),style:{backgroundColor:String(B)}})]}))})),r(p,{hasError:O,errorMessage:y})]}))}));T.displayName="SliderField";export{C as SLIDER_LABEL_TEST_ID,v as SLIDER_RANGE_TEST_ID,j as SLIDER_ROOT_TEST_ID,k as SLIDER_TRACK_TEST_ID,T as SliderField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import*as s from"react";import t from"classnames";import{useStepper as a}from"./useStepper.js";import"../Field/FieldClearButton.js";import{FieldDescription as o}from"../Field/FieldDescription.js";import{FieldErrorMessage as l}from"../Field/FieldErrorMessage.js";import{FieldGroup as n}from"../FieldGroup/FieldGroup.js";import"../FieldGroupIcon/FieldGroupIcon.js";import{FieldGroupIconButton as d}from"../FieldGroupIcon/FieldGroupIconButton.js";import{Flex as p}from"../Flex/Flex.js";import{IconAdd as c}from"../Icon/icons/IconAdd.js";import{ComponentClassNames as u,ComponentText as m}from"../shared/constants.js";import"../View/View.js";import{IconRemove as b}from"../Icon/icons/IconRemove.js";import{Input as F}from"../Input/Input.js";import{Label as f}from"../Label/Label.js";import{classNameModifier as h,classNameModifierByFlag as j}from"../shared/utils.js";import{splitPrimitiveProps as I}from"../utils/splitPrimitiveProps.js";import{useStableId as S}from"../utils/useStableId.js";const v="decrease-icon",B="increase-icon",g=s.forwardRef(((v,B)=>{const{className:g,defaultValue:O,descriptiveText:D,errorMessage:y,hasError:C=!1,id:L,inputStyles:R,isDisabled:x,isReadOnly:E,isRequired:N,increaseButtonLabel:V=m.StepperField.increaseButtonLabel,decreaseButtonLabel:z=m.StepperField.decreaseButtonLabel,label:G,labelHidden:H=!1,onStepChange:M,size:$,testId:q,value:w,variation:P}=v,T=e(v,["className","defaultValue","descriptiveText","errorMessage","hasError","id","inputStyles","isDisabled","isReadOnly","isRequired","increaseButtonLabel","decreaseButtonLabel","label","labelHidden","onStepChange","size","testId","value","variation"]),k=S(L),W=S(),A=D?W:void 0,{styleProps:J,rest:K}=I(T),{step:Q,value:U,inputValue:X,handleDecrease:Y,handleIncrease:Z,handleOnBlur:_,handleOnChange:ee,handleOnWheel:ie,setInputValue:re,shouldDisableDecreaseButton:se,shouldDisableIncreaseButton:te}=a(Object.assign(Object.assign({},v),{defaultValue:O,onStepChange:M}));return s.useEffect((()=>{void 0!==w&&re(w)}),[w,re]),i(p,Object.assign({className:t(u.Field,h(u.Field,$),u.StepperField,g),"data-size":$,"data-variation":P,testId:q},J,{children:[r(f,Object.assign({htmlFor:k,visuallyHidden:H},{children:G})),r(o,{id:W,labelHidden:H,descriptiveText:D}),r(n,Object.assign({outerStartComponent:r(d,Object.assign({"aria-controls":k,ariaLabel:`${z} ${U-Q}`,className:t(u.StepperFieldButtonDecrease,h(u.StepperFieldButtonDecrease,P),j(u.StepperFieldButtonDecrease,"disabled",se)),"data-invalid":C,isDisabled:se,onClick:Y,size:$},{children:r(b,{"data-testid":"decrease-icon"})})),outerEndComponent:r(d,Object.assign({"aria-controls":k,ariaLabel:`${V} ${U+Q}`,className:t(u.StepperFieldButtonIncrease,h(u.StepperFieldButtonIncrease,P),j(u.StepperFieldButtonIncrease,"disabled",te)),"data-invalid":C,isDisabled:te,onClick:Z,size:$},{children:r(c,{"data-testid":"increase-icon"})}))},{children:r(F,Object.assign({"aria-describedby":A,className:u.StepperFieldInput,hasError:C,id:k,isDisabled:x,isReadOnly:E,isRequired:N,onBlur:_,onChange:ee,onWheel:ie,ref:B,size:$,variation:P,type:"number",value:X},R,K))})),r(l,{hasError:C,errorMessage:y})]}))}));g.displayName="StepperField";export{v as DECREASE_ICON,B as INCREASE_ICON,g as StepperField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{isFunction as a}from"../shared/utils.js";const t=({max:e,min:a,step:t,value:n})=>{const s=(n-a)%t;return n=n-s+Math.round(s/t)*t,(n=Math.max(a,n))>e&&(n=e-(e-a)%t),n},n=({defaultValue:n=0,value:s,step:l=1,max:u=Number.MAX_SAFE_INTEGER,min:r=Number.MIN_SAFE_INTEGER,isDisabled:o,isReadOnly:c,onChange:i,onDecrease:m,onIncrease:h,onStepChange:p})=>{const d=void 0!==s;u=Math.max(r,u);const[b,v]=e.useState((()=>t({min:r,max:u,step:l,value:n}))),x=d?t({min:r,max:u,step:l,value:s}):b,C=o||c||x+l>u,I=o||c||x-l<r,[N,f]=e.useState(x),g=e.useCallback((e=>{f(e.target.value),"function"==typeof i&&i(e)}),[i]),D=e.useCallback((e=>{const n=parseFloat(e.target.value);if(isNaN(n))return;const s=t({min:r,max:u,step:l,value:n});d||v(s),a(p)&&p(s),f(s)}),[r,u,l,d,p]),E=e.useCallback((()=>{d||v(x+l),a(p)&&p(x+l),a(h)&&h(),f(x+l)}),[l,x,d,h,p]),k=e.useCallback((()=>{d||v(x-l),a(p)&&p(x-l),a(m)&&m(),f(x-l)}),[l,x,d,m,p]),M=e.useCallback((e=>{e.currentTarget.blur()}),[]);return{step:l,value:x,inputValue:N,handleDecrease:k,handleIncrease:E,handleOnBlur:D,handleOnChange:g,handleOnWheel:M,setInputValue:f,shouldDisableDecreaseButton:I,shouldDisableIncreaseButton:C}};export{n as useStepper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as a,jsx as s}from"react/jsx-runtime";import*as r from"react";import i from"classnames";import{classNameModifierByFlag as o,classNameModifier as t}from"../shared/utils.js";import{ComponentClassNames as l}from"../shared/constants.js";import{Flex as c}from"../Flex/Flex.js";import"../Field/FieldClearButton.js";import"../Field/FieldDescription.js";import{FieldErrorMessage as d}from"../Field/FieldErrorMessage.js";import{Input as h}from"../Input/Input.js";import{Label as m}from"../Label/Label.js";import{useStableId as n}from"../utils/useStableId.js";import{useSwitch as b}from"./useSwitch.js";import{View as p}from"../View/View.js";import{VisuallyHidden as u}from"../VisuallyHidden/VisuallyHidden.js";const k=r.forwardRef(((r,k)=>{var{className:f,defaultChecked:C,id:w,isChecked:j,isDisabled:S,isLabelHidden:g,label:F,labelPosition:N,name:T,onChange:x,size:H,thumbColor:L,trackCheckedColor:O,trackColor:v,value:y,hasError:D,errorMessage:E}=r,I=e(r,["className","defaultChecked","id","isChecked","isDisabled","isLabelHidden","label","labelPosition","name","onChange","size","thumbColor","trackCheckedColor","trackColor","value","hasError","errorMessage"]);const{isOn:M,changeHandler:V,isFocused:z,setIsFocused:B}=b({onChange:x,isChecked:j,defaultChecked:C,isDisabled:S}),P=n(w),W=g?u:p,R=i(l.SwitchTrack,o(l.SwitchTrack,"checked",M),o(l.SwitchTrack,"disabled",S),o(l.SwitchTrack,"focused",z),o(l.SwitchTrack,"error",D)),q=i(l.SwitchThumb,o(l.SwitchThumb,"checked",M),o(l.SwitchThumb,"disabled",S));return a(c,Object.assign({className:i(l.SwitchField,t(l.SwitchField,H),f),"data-size":H,"data-label-position":N,ref:k},I,{children:[s(u,{children:s(h,{role:"switch",type:"checkbox",id:P,onChange:V,disabled:S,name:T,checked:M,value:y,onFocus:()=>{B(!0)},onBlur:()=>{B(!1)}})}),a(m,Object.assign({htmlFor:P,className:i(l.SwitchWrapper,t(l.SwitchWrapper,N)),"data-label-position":N},{children:[s(W,Object.assign({as:"span",className:l.SwitchLabel},{children:F})),s(p,Object.assign({as:"span",className:R,"data-checked":M,"data-disabled":S,"data-focused":z,backgroundColor:M?O:v},{children:s(p,{as:"span",className:q,"data-checked":M,"data-disabled":S,backgroundColor:L})}))]})),s(d,{hasError:D,errorMessage:E})]}))}));k.displayName="SwitchField";export{k as SwitchField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as a}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import*as e from"react";import s from"classnames";import{classNameModifier as t}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{View as n}from"../View/View.js";const l=e.forwardRef(((e,l)=>{var{caption:m,children:c,className:h,highlightOnHover:p=!1,size:d,variation:f}=e,b=a(e,["caption","children","className","highlightOnHover","size","variation"]);const g=s(o.Table,t(o.Table,d),t(o.Table,f),h);return i(n,Object.assign({as:"table",className:g,"data-highlightonhover":p,"data-size":d,"data-variation":f,ref:l},b,{children:[m&&r(n,Object.assign({as:"caption",className:o.TableCaption},{children:m})),c]}))}));l.displayName="Table";export{l as Table};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as s}from"react/jsx-runtime";import*as a from"react";import e from"classnames";import{ComponentClassNames as o}from"../shared/constants.js";import{View as m}from"../View/View.js";const t=a.forwardRef(((a,t)=>{var{children:i,className:c}=a,l=r(a,["children","className"]);return s(m,Object.assign({as:"tbody",className:e(o.TableBody,c),ref:t},l,{children:i}))}));t.displayName="TableBody";export{t as TableBody};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as s from"react";import e from"classnames";import{ComponentClassNames as m}from"../shared/constants.js";import{View as t}from"../View/View.js";const o=s.forwardRef(((s,o)=>{var{as:i="td",children:l,className:c}=s,n=r(s,["as","children","className"]);return a(t,Object.assign({as:i,className:e("td"===i?m.TableTd:m.TableTh,c),ref:o},n,{children:l}))}));o.displayName="TableCell";export{o as TableCell};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import*as s from"react";import a from"classnames";import{ComponentClassNames as e}from"../shared/constants.js";import{View as t}from"../View/View.js";const m=s.forwardRef(((s,m)=>{var{children:i,className:c}=s,l=r(s,["children","className"]);return o(t,Object.assign({as:"tfoot",className:a(e.TableFoot,c),ref:m},l,{children:i}))}));m.displayName="TableFoot";export{m as TableFoot};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as e from"react";import s from"classnames";import{ComponentClassNames as m}from"../shared/constants.js";import{View as t}from"../View/View.js";const o=e.forwardRef(((e,o)=>{var{children:i,className:c}=e,l=r(e,["children","className"]);return a(t,Object.assign({as:"thead",className:s(m.TableHead,c),ref:o},l,{children:i}))}));o.displayName="TableHead";export{o as TableHead};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as s}from"react/jsx-runtime";import a from"classnames";import*as e from"react";import{ComponentClassNames as m}from"../shared/constants.js";import{View as o}from"../View/View.js";const t=e.forwardRef(((e,t)=>{var{children:i,className:c}=e,l=r(e,["children","className"]);return s(o,Object.assign({as:"tr",className:a(m.TableRow,c),ref:t},l,{children:i}))}));t.displayName="TableRow";export{t as TableRow};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as a}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import i from"classnames";import{Root as t,List as n,Content as s,Trigger as l}from"@radix-ui/react-tabs";import*as o from"react";import{ComponentClassNames as c}from"../shared/constants.js";import{Flex as m}from"../Flex/Flex.js";import{View as d}from"../View/View.js";const f=a=>o.isValidElement(a),p=o.forwardRef(((l,d)=>{var{ariaLabel:p,children:u,className:h,defaultIndex:b=0,currentIndex:g,onChange:j,indicatorPosition:x,spacing:N}=l,v=a(l,["ariaLabel","children","className","defaultIndex","currentIndex","onChange","indicatorPosition","spacing"]);const C={defaultValue:b.toString(),value:null!=g?g.toString():void 0,onValueChange:j},I=o.Children.toArray(u).filter((a=>!!a));return e(t,Object.assign({},C,{children:[r(n,Object.assign({"aria-label":p},{children:r(m,Object.assign({className:i(c.Tabs,h),"data-indicator-position":x,ref:d},v,{children:o.Children.map(I,((a,e)=>{if(f(a))return o.cloneElement(a,{"data-spacing":N,key:e,value:`${e}`})}))}))})),o.Children.map(I,((a,e)=>{if(f(a))return r(s,Object.assign({value:`${e}`},{children:a.props.children}),e)}))]}))})),u=o.forwardRef(((e,t)=>{var{className:n,title:s}=e,o=a(e,["className","title"]);return r(d,Object.assign({as:l,className:i(c.TabItems,n),ref:t},o,{children:s}))}));p.displayName="Tabs",u.displayName="TabItem";export{u as TabItem,p as Tabs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as a}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as t from"react";import s from"classnames";import{classNameModifier as e,classNameModifierByFlag as i}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{View as m}from"../View/View.js";const n=t.forwardRef(((t,n)=>{var{as:c="p",className:d,children:f,isTruncated:l,variation:p}=t,u=a(t,["as","className","children","isTruncated","variation"]);const x=s(o.Text,e(o.Text,p),i(o.Text,"truncated",l),d);return r(m,Object.assign({as:c,className:x,"data-truncate":l,"data-variation":p,ref:n},u,{children:f}))}));n.displayName="Text";export{n as Text};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as a}from"react/jsx-runtime";import*as e from"react";import s from"classnames";import{classNameModifier as i,classNameModifierByFlag as t}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{View as m}from"../View/View.js";const n=e.forwardRef(((e,n)=>{var{className:d,isReadOnly:l,isRequired:c,size:f,hasError:p=!1,variation:x}=e,u=r(e,["className","isReadOnly","isRequired","size","hasError","variation"]);const j=s(o.Textarea,o.FieldGroupControl,i(o.Textarea,x),i(o.Textarea,f),t(o.Textarea,"error",p),d);return a(m,Object.assign({"aria-invalid":p,as:"textarea",className:j,"data-size":f,"data-variation":x,readOnly:l,ref:n,required:c},u))}));n.displayName="TextArea";export{n as TextArea};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as s}from"react/jsx-runtime";import*as i from"react";import t from"classnames";import{ComponentClassNames as o}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as a}from"../Field/FieldDescription.js";import{FieldErrorMessage as l}from"../Field/FieldErrorMessage.js";import{Flex as d}from"../Flex/Flex.js";import{Label as m}from"../Label/Label.js";import{splitPrimitiveProps as p}from"../utils/splitPrimitiveProps.js";import{TextArea as n}from"../TextArea/TextArea.js";import{useStableId as c}from"../utils/useStableId.js";const f=3,b=i.forwardRef(((i,f)=>{const{className:b,descriptiveText:j,errorMessage:F,hasError:x=!1,id:u,label:h,labelHidden:g=!1,rows:z,size:T,testId:v,inputStyles:y,resize:E}=i,w=e(i,["className","descriptiveText","errorMessage","hasError","id","label","labelHidden","rows","size","testId","inputStyles","resize"]),A=c(u),H=c(),I=j?H:void 0,{styleProps:M,rest:N}=p(w);return r(d,Object.assign({className:t(o.Field,o.TextAreaField,b),"data-size":T,testId:v},M,{children:[s(m,Object.assign({htmlFor:A,visuallyHidden:g},{children:h})),s(a,{id:H,labelHidden:g,descriptiveText:j}),s(n,Object.assign({"aria-describedby":I,hasError:x,id:A,ref:f,rows:null!=z?z:3,size:T,resize:E},N,y)),s(l,{hasError:x,errorMessage:F})]}))}));b.displayName="TextAreaField";export{f as DEFAULT_ROW_COUNT,b as TextAreaField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import*as i from"react";import o from"classnames";import{classNameModifier as s}from"../shared/utils.js";import{ComponentClassNames as n}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as a}from"../Field/FieldDescription.js";import{FieldErrorMessage as m}from"../Field/FieldErrorMessage.js";import{FieldGroup as d}from"../FieldGroup/FieldGroup.js";import{Flex as l}from"../Flex/Flex.js";import{Input as p}from"../Input/Input.js";import{Label as c}from"../Label/Label.js";import{splitPrimitiveProps as u}from"../utils/splitPrimitiveProps.js";import{useStableId as f}from"../utils/useStableId.js";const j=i.forwardRef(((i,j)=>{const{className:b,descriptiveText:F,errorMessage:C,hasError:E=!1,id:h,innerEndComponent:v,innerStartComponent:x,label:S,labelHidden:g=!1,outerEndComponent:y,outerStartComponent:I,size:T,testId:z,variation:H,inputStyles:M}=i,N=e(i,["className","descriptiveText","errorMessage","hasError","id","innerEndComponent","innerStartComponent","label","labelHidden","outerEndComponent","outerStartComponent","size","testId","variation","inputStyles"]),O=f(h),P=f(),G=F?P:void 0,{styleProps:L,rest:w}=u(N);return r(l,Object.assign({className:o(n.Field,s(n.Field,T),n.TextField,b),"data-size":T,testId:z},L,{children:[t(c,Object.assign({htmlFor:O,visuallyHidden:g},{children:S})),t(a,{id:P,labelHidden:g,descriptiveText:F}),t(d,Object.assign({outerStartComponent:I,outerEndComponent:y,innerStartComponent:x,innerEndComponent:v,variation:H},{children:t(p,Object.assign({"aria-describedby":G,hasError:E,id:O,ref:j,size:T,variation:H},M,w))})),t(m,{hasError:E,errorMessage:C})]}))}));j.displayName="TextField";export{j as TextField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as s}from"react/jsx-runtime";import o from"classnames";import*as r from"react";import{classNameModifier as t,classNameModifierByFlag as i}from"../shared/utils.js";import{Button as a}from"../Button/Button.js";import{ComponentClassNames as n}from"../shared/constants.js";import{useToggleButton as l}from"./useToggleButton.js";const d=r.forwardRef(((r,d)=>{var{className:m,children:c,defaultPressed:u=!1,isDisabled:f,isPressed:g,onChange:p,onClick:h,size:C,value:v,variation:B}=r,P=e(r,["className","children","defaultPressed","isDisabled","isPressed","onChange","onClick","size","value","variation"]);const{isPressed:b,handleClick:j}=l({isPressed:g,defaultPressed:u,onChange:p,onClick:h,value:v}),k=o(n.ToggleButton,t(n.ToggleButton,B),i(n.ToggleButton,"pressed",b),m);return s(a,Object.assign({"aria-pressed":b,className:k,isDisabled:f,onClick:j,ref:d,size:C,type:"button",variation:B},P,{children:c}))}));d.displayName="ToggleButton";export{d as ToggleButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{isFunction as s}from"../shared/utils.js";const r=({isPressed:r,defaultPressed:t,onClick:a,onChange:o,value:i})=>{const l=void 0!==r,[d,n]=e.useState(t);return{isPressed:r=l?r:d,handleClick:e.useCallback((e=>{s(a)&&a(e),l||n(!d),l&&s(o)&&o(i)}),[l,a,o,d,i])}};export{r as useToggleButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import o from"classnames";import*as r from"react";import{ComponentClassNames as s}from"../shared/constants.js";import{Flex as a}from"../Flex/Flex.js";import{useToggleButtonGroup as n}from"./useToggleButtonGroup.js";const l=r.forwardRef(((l,t)=>{var{children:m,className:u,isExclusive:c,isSelectionRequired:p,onChange:d,size:g,value:v,variation:f}=l,h=e(l,["children","className","isExclusive","isSelectionRequired","onChange","size","value","variation"]);const x=n({onChange:d,value:v,isExclusive:c,isSelectionRequired:p});return i(a,Object.assign({className:o(s.ToggleButtonGroup,u),ref:t,role:"group"},h,{children:r.Children.map(m,(e=>r.isValidElement(e)?r.cloneElement(e,{isPressed:c?v===e.props.value:v.includes(e.props.value),onChange:x,size:g,variation:f}):e))}))}));l.displayName="ToggleButtonGroup";export{l as ToggleButtonGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{isFunction as r}from"../shared/utils.js";const s=({onChange:s,value:l,isExclusive:t=!1,isSelectionRequired:i=!1})=>{const a=e.useCallback((e=>{if(!r(s)||!Array.isArray(l))return;const t=l.indexOf(e);let a;t>=0?(a=[...l],(!i||a.length>1)&&a.splice(t,1)):a=[...l,e],s(a)}),[s,l,i]),n=e.useCallback((e=>{r(s)&&s(l!==e||i?e:null)}),[s,l,i]);return t?n:a};export{s as useToggleButtonGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import*as t from"react";import{useStyles as r}from"../shared/styleUtils.js";const s=t.forwardRef(((s,a)=>{var{as:i="div",children:l,testId:d,ariaLabel:n,isDisabled:o,style:b,inert:m}=s,p=e(s,["as","children","testId","ariaLabel","isDisabled","style","inert"]);const{propStyles:c,nonStyleProps:y}=r(p,b);return t.createElement(i,Object.assign({"aria-label":n,"data-testid":d,disabled:o,ref:a,inert:m?"":null,style:c},y),l)}));s.displayName="View";export{s as View};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as a from"react";import e from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import{View as m}from"../View/View.js";const o=a.forwardRef(((a,o)=>{var{as:t="span",children:l,className:n}=a,c=s(a,["as","children","className"]);return r(m,Object.assign({as:t,className:e(i.VisuallyHidden,n),ref:o},c,{children:l}))}));o.displayName="VisuallyHidden";export{o as VisuallyHidden};
|