@aws-amplify/ui-react 3.5.4 → 3.5.5
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/IconWarning-7029201b.js +1 -0
- package/dist/esm/components/Authenticator/Authenticator.js +1 -1
- package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +1 -1
- package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.js +1 -1
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/RouteContainer/RouteContainer.js +1 -1
- package/dist/esm/components/Authenticator/Router/Router.js +1 -1
- package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +1 -1
- package/dist/esm/components/Authenticator/SignIn/SignIn.js +1 -1
- package/dist/esm/components/Authenticator/SignUp/SignUp.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/hooks/useFormHandlers/useFormHandlers.js +1 -1
- package/dist/esm/components/Authenticator/shared/ConfirmSignInFooter.js +1 -1
- package/dist/esm/components/Authenticator/shared/FormField.js +1 -1
- package/dist/esm/components/Authenticator/shared/FormFields.js +1 -1
- package/dist/esm/components/Authenticator/shared/RemoteErrorMessage.js +1 -1
- package/dist/esm/components/Authenticator/shared/SignInSignUpTabs.js +1 -1
- package/dist/esm/components/Authenticator/shared/TwoButtonSubmitFooter.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/primitives/Expander/Expander.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Authenticator/Authenticator.d.ts +2 -4
- package/dist/types/components/Authenticator/hooks/index.d.ts +0 -1
- package/dist/types/components/Authenticator/index.d.ts +1 -1
- package/dist/types/helpers/utils.d.ts +0 -5
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/Expander/Expander.d.ts +1 -1
- package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +1 -1
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +1 -1
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
- package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +2 -2
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/types/expander.d.ts +5 -1
- package/package.json +2 -1
- package/dist/IconWarning-1f5018d3.js +0 -1
- package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +0 -1
- package/dist/types/components/Authenticator/hooks/useAuthenticator/index.d.ts +0 -45
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("classnames"),a=require("react"),i=require("@aws-amplify/ui");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var o=l(t),r=n(a);const s=r.createContext({theme:i.createTheme()}),p={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},c=Object.keys(p);var d;!function(e){e.Alert="amplify-alert",e.AlertIcon="amplify-alert__icon",e.AlertHeading="amplify-alert__heading",e.AlertBody="amplify-alert__body",e.AlertDismiss="amplify-alert__dismiss",e.Badge="amplify-badge",e.Button="amplify-button",e.ButtonGroup="amplify-buttongroup",e.ButtonLoaderWrapper="amplify-button__loader-wrapper",e.Card="amplify-card",e.Checkbox="amplify-checkbox",e.CheckboxButton="amplify-checkbox__button",e.CheckboxIcon="amplify-checkbox__icon",e.CheckboxInput="amplify-checkbox__input",e.CheckboxLabel="amplify-checkbox__label",e.CheckboxField="amplify-checkboxfield",e.Collection="amplify-collection",e.CollectionItems="amplify-collection-items",e.CollectionSearch="amplify-collection-search",e.CollectionPagination="amplify-collection-pagination",e.CountryCodeSelect="amplify-countrycodeselect",e.DialCodeSelect="amplify-dialcodeselect",e.Divider="amplify-divider",e.DividerLabel="amplify-divider--label",e.Expander="amplify-expander",e.ExpanderContent="amplify-expander__content",e.ExpanderContentText="amplify-expander__content__text",e.ExpanderHeader="amplify-expander__header",e.ExpanderIcon="amplify-expander__icon",e.ExpanderItem="amplify-expander__item",e.ExpanderTrigger="amplify-expander__trigger",e.Field="amplify-field",e.FieldDescription="amplify-field__description",e.FieldErrorMessage="amplify-field__error-message",e.FieldGroup="amplify-field-group",e.FieldGroupControl="amplify-field-group__control",e.FieldGroupOuterEnd="amplify-field-group__outer-end",e.FieldGroupOuterStart="amplify-field-group__outer-start",e.FieldGroupInnerEnd="amplify-field-group__inner-end",e.FieldGroupInnerStart="amplify-field-group__inner-start",e.FieldGroupIcon="amplify-field-group__icon",e.FieldGroupIconButton="amplify-field-group__icon-button",e.FieldGroupHasInnerEnd="amplify-field-group--has-inner-end",e.FieldGroupHasInnerStart="amplify-field-group--has-inner-start",e.FieldShowPassword="amplify-field__show-password",e.FieldGroupFieldWrapper="amplify-field-group__field-wrapper",e.Flex="amplify-flex",e.Grid="amplify-grid",e.Heading="amplify-heading",e.Icon="amplify-icon",e.Image="amplify-image",e.Input="amplify-input",e.Label="amplify-label",e.Link="amplify-link",e.Loader="amplify-loader",e.LoaderDeterminate="amplify-loader--determinate",e.LoaderPercentageText="amplify-loader__percentage-text",e.MenuContent="amplify-menu-content",e.MenuItem="amplify-menu-content__item",e.MenuTrigger="amplify-menu-trigger",e.Pagination="amplify-pagination",e.PaginationItemButton="amplify-pagination__item-button",e.PaginationItemCurrent="amplify-pagination__item-current",e.PaginationItemEllipsis="amplify-pagination__item-ellipsis",e.PasswordField="amplify-passwordfield",e.PhoneNumberField="amplify-phonenumberfield",e.Placeholder="amplify-placeholder",e.Radio="amplify-radio",e.RadioButton="amplify-radio__button",e.RadioInput="amplify-radio__input",e.RadioLabel="amplify-radio__label",e.RadioGroupField="amplify-radiogroupfield",e.RadioGroup="amplify-radiogroup",e.Rating="amplify-rating",e.ScrollView="amplify-scrollview",e.SearchField="amplify-searchfield",e.SearchFieldClear="amplify-searchfield__clear",e.SearchFieldSearch="amplify-searchfield__search",e.Select="amplify-select",e.SelectField="amplify-selectfield",e.SelectWrapper="amplify-select__wrapper",e.SelectIconWrapper="amplify-select__icon-wrapper",e.SliderField="amplify-sliderfield",e.SliderFieldGroup="amplify-sliderfield__group",e.SliderFieldLabel="amplify-sliderfield__label",e.SliderFieldRange="amplify-sliderfield__range",e.SliderFieldRoot="amplify-sliderfield__root",e.SliderFieldThumb="amplify-sliderfield__thumb",e.SliderFieldTrack="amplify-sliderfield__track",e.StepperField="amplify-stepperfield",e.StepperFieldButtonDecrease="amplify-stepperfield__button--decrease",e.StepperFieldButtonIncrease="amplify-stepperfield__button--increase",e.StepperFieldInput="amplify-stepperfield__input",e.SwitchField="amplify-switchfield",e.SwitchLabel="amplify-switch-label",e.SwitchThumb="amplify-switch-thumb",e.SwitchTrack="amplify-switch-track",e.SwitchWrapper="amplify-switch__wrapper",e.Table="amplify-table",e.TableCaption="amplify-table__caption",e.TableBody="amplify-table__body",e.TableTd="amplify-table__td",e.TableTh="amplify-table__th",e.TableFoot="amplify-table__foot",e.TableHead="amplify-table__head",e.TableRow="amplify-table__row",e.Tabs="amplify-tabs",e.TabItems="amplify-tabs-item",e.Text="amplify-text",e.Textarea="amplify-textarea",e.TextAreaField="amplify-textareafield",e.TextField="amplify-textfield",e.ToggleButton="amplify-togglebutton",e.ToggleButtonGroup="amplify-togglebuttongroup",e.VisuallyHidden="amplify-visually-hidden"}(d||(d={}));const m={Alert:{className:d.Alert,components:["Alert"],description:"Top level element that wraps the Alert primitive"},AlertIcon:{className:d.AlertIcon,components:["Alert"],description:"Class applied to Icon component within the Alert primitive"},AlertHeading:{className:d.AlertHeading,components:["Alert"],description:"Class applied to the heading View"},AlertBody:{className:d.AlertBody,components:["Alert"],description:"Class applied to the body View"},AlertDismiss:{className:d.AlertDismiss,components:["Alert"],description:"Class applied to the close Button"},Badge:{className:d.Badge,components:["Badge"],description:"Top level element that wraps the Badge component"},Button:{className:d.Button,components:["Button"],description:"Top level element that wraps the Button primitive"},ButtonGroup:{className:d.ButtonGroup},ButtonLoaderWrapper:{className:d.ButtonLoaderWrapper,components:["Button"],description:"Class applied to the Loader component within the Button Loading state"},Card:{className:d.Card,components:["Card"],description:"Top level element that wraps the Card primitive"},Checkbox:{className:d.Checkbox,components:["Checkbox"],description:"Top level element that wraps the Checkbox primitive"},CheckboxButton:{className:d.CheckboxButton,components:["Checkbox"],description:"Wrapper for the checked icon within the Checkbox primitive"},CheckboxIcon:{className:d.CheckboxIcon,components:["Checkbox"],description:"Class applied to the checked icon within the Checkbox primitive"},CheckboxInput:{className:d.CheckboxInput,components:["Checkbox"],description:"Class applied to the visually hidden checkbox input within the Checkbox primitive"},CheckboxLabel:{className:d.CheckboxLabel,components:["Checkbox"],description:"Class applied to the label within the Checkbox primitive"},CheckboxField:{className:d.CheckboxField,components:["CheckboxField"],description:"Top level element that wraps the CheckboxField primitive"},Collection:{className:d.Collection,components:["Collection"],description:"Top level element that wraps the Collection primitive"},CollectionItems:{className:d.CollectionItems,components:["Collection"],description:"Class applied to the element that wraps all the items in a collection"},CollectionSearch:{className:d.CollectionSearch,components:["Collection"],description:"Class applied to the element that wraps the collection search box"},CollectionPagination:{className:d.CollectionPagination,components:["Collection"],description:"Class applied to the element that wraps the pagination component in a collection"},CountryCodeSelect:{className:d.CountryCodeSelect,components:["PhoneNumberField"],description:"Class applied to the Dial Code Select within the PhoneNumberField primitive"},DialCodeSelect:{className:d.DialCodeSelect,components:["PhoneNumberField"],description:"Class applied to the Dial Code Select within the PhoneNumberField primitive"},Divider:{className:d.Divider,components:["Divider"],description:"Top level element that wraps the Divider primitive"},DividerLabel:{className:d.DividerLabel,components:["Divider"],description:"Class applied to the label of the Divider component"},Expander:{className:d.Expander,components:["Expander"],description:"Top level element that wraps the Expander primitive"},ExpanderContent:{className:d.ExpanderContent,components:["Expander"],description:"Expander content container"},ExpanderContentText:{className:d.ExpanderContentText,components:["Expander"],description:"Expander content text"},ExpanderHeader:{className:d.ExpanderHeader,components:["Expander"],description:"Expander item header"},ExpanderIcon:{className:d.ExpanderIcon,components:["Expander"],description:"Icon to indicate whether an item is expanded or collapsed"},ExpanderItem:{className:d.ExpanderItem,components:["Expander"],description:"Expander item(containier for header, trigger, and content)"},ExpanderTrigger:{className:d.ExpanderTrigger,components:["Expander"],description:"Expander item trigger(button)"},Field:{className:d.Field},FieldDescription:{className:d.FieldDescription},FieldErrorMessage:{className:d.FieldErrorMessage},FieldGroup:{className:d.FieldGroup},FieldGroupControl:{className:d.FieldGroupControl},FieldGroupOuterEnd:{className:d.FieldGroupOuterEnd},FieldGroupOuterStart:{className:d.FieldGroupOuterStart},FieldGroupInnerEnd:{className:d.FieldGroupInnerEnd},FieldGroupInnerStart:{className:d.FieldGroupInnerStart},FieldGroupIcon:{className:d.FieldGroupIcon},FieldGroupIconButton:{className:d.FieldGroupIconButton},FieldGroupHasInnerEnd:{className:d.FieldGroupHasInnerEnd},FieldGroupHasInnerStart:{className:d.FieldGroupHasInnerStart},FieldShowPassword:{className:d.FieldShowPassword},FieldGroupFieldWrapper:{className:d.FieldGroupFieldWrapper},Flex:{className:d.Flex,components:["Flex"],description:"Top level element that wraps the Flex primitive"},Grid:{className:d.Grid,components:["Grid"],description:"Top level element that wraps the Grid primitive"},Heading:{className:d.Heading,components:["Heading"],description:"Top level element that wraps the Heading primitive"},Icon:{className:d.Icon,components:["Icon"],description:"Top level element that wraps the Icon primitive"},Image:{className:d.Image,components:["Image"],description:"Top level element that wraps the Image primitive"},Input:{className:d.Input},Label:{className:d.Label},Link:{className:d.Link,components:["Link"],description:"Top level element that wraps the Link primitive"},Loader:{className:d.Loader,components:["Loader"],description:"Top level element that wraps the Loader primitive"},LoaderDeterminate:{className:d.LoaderDeterminate,components:["Loader"],description:"Class applied to a determinate loader"},LoaderPercentageText:{className:d.LoaderPercentageText,components:["Loader"],description:"Class applied to the percentage text of loader"},MenuContent:{className:d.MenuContent,components:["Menu"],description:"Menu content container (Flex)"},MenuItem:{className:d.MenuItem,components:["Menu"],description:"Menu item button (MenuButton, wrapped in amplify-menu-content class)"},MenuTrigger:{className:d.MenuTrigger,components:["Menu"],description:"Menu trigger button (MenuButton, not wrapped in amplify-menu-content class)"},Pagination:{className:d.Pagination,components:["Pagination"],description:"Top level element that wraps the Pagination primitive"},PaginationItemButton:{className:d.PaginationItemButton,components:["Pagination"],description:"Class applied to the pagination buttons"},PaginationItemCurrent:{className:d.PaginationItemCurrent,components:["Pagination"],description:"Class applied to the currently selected pagination button"},PaginationItemEllipsis:{className:d.PaginationItemEllipsis,components:["Pagination"],description:"Class applied to the ellipsis within the Pagination primitive"},PasswordField:{className:d.PasswordField,components:["PasswordField"],description:"Top level element that wraps the PasswordField primitive"},PhoneNumberField:{className:d.PhoneNumberField,components:["PhoneNumberField"],description:"Top level element that wraps the PhoneNumberField primitive"},Placeholder:{className:d.Placeholder,components:["Placeholder"],description:"Top level element that wraps the Placeholder primitive"},Radio:{className:d.Radio,components:["RadioGroupField","Radio"],description:"Top level element that wraps the Radio primitive"},RadioButton:{className:d.RadioButton,components:["RadioGroupField","Radio"],description:"Class applied to the displayed radio button"},RadioInput:{className:d.RadioInput,components:["RadioGroupField","Radio"],description:"Class applied to the visually hidden radio input"},RadioLabel:{className:d.RadioLabel,components:["RadioGroupField","Radio"],description:"Class applied to the radio label"},RadioGroupField:{className:d.RadioGroupField,components:["RadioGroupField"],description:"Top level element that wraps the RadioGroupField primitive"},RadioGroup:{className:d.RadioGroup,components:["RadioGroupField"],description:"Class applied to the radio group wrapper"},Rating:{className:d.Rating,components:["Rating"],description:"Top level element that wraps the Rating primitive"},ScrollView:{className:d.ScrollView,components:["ScrollView"],description:"Top level element that wraps the ScrollView primitive"},SearchField:{className:d.SearchField,components:["SearchField"],description:"Top level element that wraps the SearchField primitive"},SearchFieldClear:{className:d.SearchFieldClear,components:["SearchField"],description:"Class applied to the search field clear button"},SearchFieldSearch:{className:d.SearchFieldSearch,components:["SearchField"],description:"Class applied to the search button"},Select:{className:d.Select,components:["Select","SelectField"],description:"Class applied to the select element"},SelectField:{className:d.SelectField,components:["SelectField"],description:"Top level element that wraps the SelectField primitive"},SelectWrapper:{className:d.SelectWrapper,components:["Select","SelectField"],description:"Class applied to the select wrapper"},SelectIconWrapper:{className:d.SelectIconWrapper,components:["Select","SelectField"],description:"Class applied to the select icon wrapper"},SliderField:{className:d.SliderField,components:["SliderField"],description:"Top level element that wraps the SliderField primitive"},SliderFieldGroup:{className:d.SliderFieldGroup,components:["SliderField"],description:"Class applied to the element that wraps the slider root"},SliderFieldLabel:{className:d.SliderFieldLabel,components:["SliderField"],description:"Class applied to the slider label"},SliderFieldRange:{className:d.SliderFieldRange,components:["SliderField"],description:"Class applied to the filled in portion of the slider track"},SliderFieldRoot:{className:d.SliderFieldRoot,components:["SliderField"],description:"Class applied to the slider root which wraps the track and thumb"},SliderFieldThumb:{className:d.SliderFieldThumb,components:["SliderField"],description:"Class applied to the slider thumb"},SliderFieldTrack:{className:d.SliderFieldTrack,components:["SliderField"],description:"Class applied to the slider track"},StepperField:{className:d.StepperField,components:["StepperField"],description:"Top level element that wraps the StepperField primitive"},StepperFieldButtonDecrease:{className:d.StepperFieldButtonDecrease,components:["StepperField"],description:"Class applied to the decrease button"},StepperFieldButtonIncrease:{className:d.StepperFieldButtonIncrease,components:["StepperField"],description:"Class applied to the increase button"},StepperFieldInput:{className:d.StepperFieldInput,components:["StepperField"],description:"Class applied to the StepperField input"},SwitchField:{className:d.SwitchField,components:["SwitchField"],description:"Top level element that wraps the SwitchField primitive"},SwitchLabel:{className:d.SwitchLabel,components:["SwitchField"],description:"Class applied to the SwitchField label text"},SwitchThumb:{className:d.SwitchThumb,components:["SwitchField"],description:"Class applied to the SwitchField thumb"},SwitchTrack:{className:d.SwitchTrack,components:["SwitchField"],description:"Class applied to the SwitchField track"},SwitchWrapper:{className:d.SwitchWrapper,components:["SwitchField"],description:"Class applied to the label element that wraps the SwitchField label and track"},Table:{className:d.Table,components:["Table"],description:"Top level element that wraps the Table primitive"},TableCaption:{className:d.TableCaption,components:["Table"],description:"Class applied to the content provided as the caption prop"},TableBody:{className:d.TableBody,components:["Table"],description:"Class applied to TableBody component"},TableTd:{className:d.TableTd,components:["Table"],description:'Class applied to TableCell component rendered as a <td> element (<TableCell as="td" />)'},TableTh:{className:d.TableTh,components:["Table"],description:'Class applied to TableCell comopnent rendered as a <th> element (<TableCell as="th" />)'},TableFoot:{className:d.TableFoot,components:["Table"],description:"Class applied to TableFoot component"},TableHead:{className:d.TableHead,components:["Table"],description:"Class applied to TableHead component"},TableRow:{className:d.TableRow,components:["Table"],description:"Class applied to TableRow component"},Tabs:{className:d.Tabs,components:["Tabs"],description:"Top level element that wraps the Tabs primitive"},TabItems:{className:d.TabItems,components:["Tabs"],description:"Top level element that wraps the TabItem primitive"},Text:{className:d.Text,components:["Text"],description:"Top level element that wraps the Text primitive"},Textarea:{className:d.Textarea,components:["TextAreaField"],description:"Class applied to the text area"},TextAreaField:{className:d.TextAreaField,components:["TextAreaField"],description:"Top level element that wraps the TextAreaField primitive"},TextField:{className:d.TextField,components:["TextField"],description:"Top level element that wraps the TextField primitive"},ToggleButton:{className:d.ToggleButton,components:["ToggleButton"],description:"Top level element that wraps the ToggleButton primitive"},ToggleButtonGroup:{className:d.ToggleButtonGroup,components:["ToggleButton","ToggleButtonGroup"],description:"Top level element that wraps the ToggleButtonGroup primitive"},VisuallyHidden:{className:d.VisuallyHidden,components:["VisuallyHidden"],description:"Top level element that wraps the VisuallyHidden primitive"}},h={Alert:m.Alert.className,AlertIcon:m.AlertIcon.className,AlertHeading:m.AlertHeading.className,AlertBody:m.AlertBody.className,AlertDismiss:m.AlertDismiss.className,Badge:m.Badge.className,Button:m.Button.className,ButtonGroup:m.ButtonGroup.className,ButtonLoaderWrapper:m.ButtonLoaderWrapper.className,Card:m.Card.className,Checkbox:m.Checkbox.className,CheckboxButton:m.CheckboxButton.className,CheckboxIcon:m.CheckboxIcon.className,CheckboxInput:m.CheckboxInput.className,CheckboxLabel:m.CheckboxLabel.className,CheckboxField:m.CheckboxField.className,Collection:m.Collection.className,CollectionItems:m.CollectionItems.className,CollectionSearch:m.CollectionSearch.className,CollectionPagination:m.CollectionPagination.className,CountryCodeSelect:m.CountryCodeSelect.className,DialCodeSelect:m.DialCodeSelect.className,Divider:m.Divider.className,DividerLabel:m.DividerLabel.className,Expander:m.Expander.className,ExpanderContent:m.ExpanderContent.className,ExpanderContentText:m.ExpanderContentText.className,ExpanderHeader:m.ExpanderHeader.className,ExpanderIcon:m.ExpanderIcon.className,ExpanderItem:m.ExpanderItem.className,ExpanderTrigger:m.ExpanderTrigger.className,Field:m.Field.className,FieldDescription:m.FieldDescription.className,FieldErrorMessage:m.FieldErrorMessage.className,FieldGroup:m.FieldGroup.className,FieldGroupControl:m.FieldGroupControl.className,FieldGroupOuterEnd:m.FieldGroupOuterEnd.className,FieldGroupOuterStart:m.FieldGroupOuterStart.className,FieldGroupInnerEnd:m.FieldGroupInnerEnd.className,FieldGroupInnerStart:m.FieldGroupInnerStart.className,FieldGroupIcon:m.FieldGroupIcon.className,FieldGroupIconButton:m.FieldGroupIconButton.className,FieldGroupHasInnerEnd:m.FieldGroupHasInnerEnd.className,FieldGroupHasInnerStart:m.FieldGroupHasInnerStart.className,FieldShowPassword:m.FieldShowPassword.className,FieldGroupFieldWrapper:m.FieldGroupFieldWrapper.className,Flex:m.Flex.className,Grid:m.Grid.className,Heading:m.Heading.className,Icon:m.Icon.className,Image:m.Image.className,Input:m.Input.className,Label:m.Label.className,Link:m.Link.className,Loader:m.Loader.className,LoaderDeterminate:m.LoaderDeterminate.className,LoaderPercentageText:m.LoaderPercentageText.className,MenuContent:m.MenuContent.className,MenuItem:m.MenuItem.className,MenuTrigger:m.MenuTrigger.className,Pagination:m.Pagination.className,PaginationItemButton:m.PaginationItemButton.className,PaginationItemCurrent:m.PaginationItemCurrent.className,PaginationItemEllipsis:m.PaginationItemEllipsis.className,PasswordField:m.PasswordField.className,PhoneNumberField:m.PhoneNumberField.className,Placeholder:m.Placeholder.className,Radio:m.Radio.className,RadioButton:m.RadioButton.className,RadioInput:m.RadioInput.className,RadioLabel:m.RadioLabel.className,RadioGroupField:m.RadioGroupField.className,RadioGroup:m.RadioGroup.className,Rating:m.Rating.className,ScrollView:m.ScrollView.className,SearchField:m.SearchField.className,SearchFieldClear:m.SearchFieldClear.className,SearchFieldSearch:m.SearchFieldSearch.className,Select:m.Select.className,SelectField:m.SelectField.className,SelectWrapper:m.SelectWrapper.className,SelectIconWrapper:m.SelectIconWrapper.className,SliderField:m.SliderField.className,SliderFieldGroup:m.SliderFieldGroup.className,SliderFieldLabel:m.SliderFieldLabel.className,SliderFieldRange:m.SliderFieldRange.className,SliderFieldRoot:m.SliderFieldRoot.className,SliderFieldThumb:m.SliderFieldThumb.className,SliderFieldTrack:m.SliderFieldTrack.className,StepperField:m.StepperField.className,StepperFieldButtonDecrease:m.StepperFieldButtonDecrease.className,StepperFieldButtonIncrease:m.StepperFieldButtonIncrease.className,StepperFieldInput:m.StepperFieldInput.className,SwitchField:m.SwitchField.className,SwitchLabel:m.SwitchLabel.className,SwitchThumb:m.SwitchThumb.className,SwitchTrack:m.SwitchTrack.className,SwitchWrapper:m.SwitchWrapper.className,Table:m.Table.className,TableCaption:m.TableCaption.className,TableBody:m.TableBody.className,TableTd:m.TableTd.className,TableTh:m.TableTh.className,TableFoot:m.TableFoot.className,TableHead:m.TableHead.className,TableRow:m.TableRow.className,Tabs:m.Tabs.className,TabItems:m.TabItems.className,Text:m.Text.className,Textarea:m.Textarea.className,TextAreaField:m.TextAreaField.className,TextField:m.TextField.className,ToggleButton:m.ToggleButton.className,ToggleButtonGroup:m.ToggleButtonGroup.className,VisuallyHidden:m.VisuallyHidden.className},u={backgroundColor:"colors",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},g=e=>"string"==typeof e&&0===e.length,f=e=>null==e||g(e),b=(e,t)=>{if("string"!=typeof t)return t;if(t.includes(" "))return t.split(" ").map((t=>b(e,t))).join(" ");const a=t.split("."),l=u[e];let n=i.defaultTheme.tokens[l];for(let e=0;e<a.length&&n;e++)n=n[a[e]];return i.isDesignToken(n)?`var(--${i.cssNameTransform({path:[u[e],...a]})})`:t},w=({breakpoint:e,breakpoints:t,propKey:a,values:l})=>{if(i.isDesignToken(l))return l.toString();if("object"!=typeof l)return b(a,l);let n={};const o=Object.keys(t).sort(((e,a)=>t[e]-t[a]));return Array.isArray(l)?l.map(((e,t)=>{n[o[t]]=e})):n=l,(({breakpoint:e,breakpoints:t,propKey:a,values:l})=>{if(void 0!==l[e]){const t=l[e];return i.isDesignToken(t)?t.toString():b(a,t)}const n=Object.keys(t).sort(((e,a)=>t[a]-t[e])),o=n.slice(n.indexOf(e));for(const e of o)if(void 0!==l[e]){const t=l[e];return i.isDesignToken(t)?t.toString():b(a,t)}return null})({breakpoint:e,breakpoints:t,propKey:a,values:n})},C="undefined"==typeof window?r.useEffect:r.useLayoutEffect,N=({breakpoints:e,defaultBreakpoint:t})=>{const a="undefined"!=typeof window&&void 0!==window.matchMedia?window.matchMedia:null,i=r.useMemo((()=>(({breakpoints:e})=>{const t=Object.keys(e).sort(((t,a)=>e[a]-e[t]));return t.map(((a,i)=>{let l="";const n=e[a],o=t[i-1],r=o?e[o]-1:null;return n>=0&&(l=`(min-width: ${n}px)`),null!==r&&(l&&(l+=" and "),l+=`(max-width: ${r}px)`),{breakpoint:a,query:l,maxWidth:r,minWidth:n}}))})({breakpoints:e})),[e]),[l,n]=r.useState(t),o=r.useCallback(((e,t)=>{e&&n(t)}),[n]);return C((()=>{if(!a)return;const e=i.map((({query:e,breakpoint:t})=>{const i=a(e);o(i.matches,t);const l=e=>{e.matches&&n(t)};return i.addEventListener("change",l),()=>i.removeEventListener("change",l)}));return()=>{e.forEach((e=>e()))}}),[e,n,a,i]),r.useDebugValue(l,(e=>e)),l},S=e=>void 0===e||void 0===e.theme?i.createTheme():e.theme,F=()=>{const e=r.useContext(s);return S(e)},x=e=>"auto"===e?"auto":`span ${e}`,y=e=>{if((e=>"auto"===e||"number"==typeof e&&!isNaN(e)||"string"==typeof e&&!isNaN(parseFloat(e)))(e))return x(e);if(Array.isArray(e))return e.map((e=>x(e)));if("object"==typeof e&&null!=e){const t={};return Object.entries(e).forEach((([e,a])=>{t[e]=x(a)})),t}return null},T=(t,a)=>{const{breakpoints:{values:i,defaultBreakpoint:l}}=F(),n=N({breakpoints:i,defaultBreakpoint:l}),o=(t=>{const{rowSpan:a,columnSpan:i,row:l,column:n}=t,o=e.__rest(t,["rowSpan","columnSpan","row","column"]),{rowFromSpanValue:s,columnFromSpanValue:p}=r.useMemo((()=>({rowFromSpanValue:y(a),columnFromSpanValue:y(i)})),[a,i]);return Object.assign({row:f(l)?s:l,column:f(n)?p:n},o)})(t);return r.useMemo((()=>(({props:e={},style:t={},breakpoint:a,breakpoints:i})=>{const l={};return Object.keys(e).filter((t=>null!=e[t])).forEach((n=>{if(n in p){if(!g(e[n])){const l=e[n],o=p[n];t=Object.assign(Object.assign({},t),{[o]:w({values:l,breakpoint:a,breakpoints:i,propKey:n})})}}else l[n]=e[n]})),{propStyles:t,nonStyleProps:l}})({props:o,style:a,breakpoint:n,breakpoints:i})),[o,a,i,n])},I={alignContent:!0,alignItems:!0,direction:!0,gap:!0,justifyContent:!0,wrap:!0,columnGap:!0,rowGap:!0},v={alignSelf:!0,area:!0,backgroundColor:!0,backgroundImage:!0,basis:!0,border:!0,borderRadius:!0,bottom:!0,boxShadow:!0,color:!0,column:!0,columnEnd:!0,columnSpan:!0,columnStart:!0,display:!0,flex:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,grow:!0,height:!0,left:!0,letterSpacing:!0,lineHeight:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginBottom:!0,marginInline:!0,marginInlineEnd:!0,marginInlineStart:!0,marginLeft:!0,marginRight:!0,marginTop:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,opacity:!0,order:!0,overflow:!0,padding:!0,paddingBlock:!0,paddingBlockEnd:!0,paddingBlockStart:!0,paddingBottom:!0,paddingInline:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,position:!0,right:!0,row:!0,rowEnd:!0,rowSpan:!0,rowStart:!0,shrink:!0,textAlign:!0,textDecoration:!0,textTransform:!0,top:!0,transform:!0,transformOrigin:!0,width:!0,whiteSpace:!0},E=r.forwardRef(((t,a)=>{var{as:i="div",children:l,testId:n,ariaLabel:o,isDisabled:s,style:p}=t,c=e.__rest(t,["as","children","testId","ariaLabel","isDisabled","style"]);const{propStyles:d,nonStyleProps:m}=T(c,p);return r.createElement(i,Object.assign({"aria-label":o,"data-testid":n,disabled:s,ref:a,style:d},m),l)}));E.displayName="View";exports.AmplifyContext=s,exports.ComponentClassNames=h,exports.ComponentClassObject=m,exports.ComponentPropsToStylePropsMap=p,exports.ComponentPropsToStylePropsMapKeys=c,exports.ComponentText={Alert:{dismissButtonLabel:"Dismiss alert"},Collection:{searchButtonLabel:"Search",searchNoResultsFound:"No results found"},Fields:{clearButtonLabel:"Clear input"},PaginationItem:{currentPageLabel:"Page",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},exports.IconAdd=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})))},exports.IconCheck=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconCheckCircle=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconChevronLeft=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z",fill:"currentColor"})))},exports.IconChevronRight=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M9.99984 6L8.58984 7.41L13.1698 12L8.58984 16.59L9.99984 18L15.9998 12L9.99984 6Z",fill:"currentColor"})))},exports.IconClose=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconError=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconExpandMore=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},exports.IconIndeterminate=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 0 24 24"},r.createElement("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor",strokeWidth:"3"})))},exports.IconInfo=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconMenu=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})))},exports.IconRemove=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M19 13H5V11H19V13Z",fill:"currentColor"})))},exports.IconSearch=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconStar=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconVisibility=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconVisibilityOff=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("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"})))},exports.IconWarning=t=>{const{className:a}=t,i=e.__rest(t,["className"]);return r.createElement(E,Object.assign({as:"span",width:"1em",height:"1em",className:o.default(h.Icon,a)},i),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},exports.View=E,exports.classNameModifier=(e,t)=>t?`${e}--${t}`:null,exports.classNameModifierByFlag=(e,t,a)=>a?`${e}--${t}`:null,exports.getConsecutiveIntArray=(e,t)=>{const a=t-e+1;return Array.from({length:a},((t,a)=>a+e))},exports.getErrorMessage=e=>(e=>{if("object"==typeof(t=e)&&null!==t&&"message"in t&&"string"==typeof t.message)return e;var t;try{return new Error(JSON.stringify(e))}catch(t){return new Error(String(e))}})(e).message,exports.getFormDataFromEvent=e=>{const t=new FormData(e.target);return Object.fromEntries(t)},exports.getThemeFromContext=S,exports.getValueAtCurrentBreakpoint=w,exports.isFunction=e=>"function"==typeof e,exports.splitPrimitiveProps=e=>{const t={flexContainerStyleProps:{},baseStyleProps:{},rest:{}};return Object.keys(e).forEach((a=>{a in I?t.flexContainerStyleProps[a]=e[a]:a in v?t.baseStyleProps[a]=e[a]:t.rest[a]=e[a]})),t},exports.strHasLength=e=>"string"==typeof e&&e.length>0,exports.useBreakpoint=N,exports.useStyles=T,exports.useTheme=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{
|
|
1
|
+
import*as e from"react";import{AuthenticatorProvider as t,useAuthenticator as s}from"@aws-amplify/ui-react-core";import{CustomComponentsContext as o}from"./hooks/useCustomComponents/index.js";import"../../primitives/View/View.js";import{Router as r}from"./Router/Router.js";import{SetupTOTP as i}from"./SetupTOTP/SetupTOTP.js";import{SignIn as n}from"./SignIn/SignIn.js";import{SignUp as m}from"./SignUp/SignUp.js";import{ForceNewPassword as a}from"./ForceNewPassword/ForceNewPassword.js";import"./ResetPassword/ConfirmResetPassword.js";import{ResetPassword as u}from"./ResetPassword/ResetPassword.js";import{defaultComponents as c}from"./hooks/useCustomComponents/defaultComponents.js";function p({children:t,className:i,components:n,formFields:m,hideSignUp:a,initialState:u,loginMechanisms:p,signUpAttributes:l,services:f,socialProviders:d,variation:g}){const{route:P,signOut:w,user:j}=s((({route:e,signOut:t,user:s})=>[e,t,s]));!function(t){const{route:o,initializeMachine:r}=s((({route:e})=>[e])),i=e.useRef(!1);e.useEffect((()=>{i.current||"setup"!==o||(r(t),i.current=!0)}),[r,o,t])}({initialState:u,loginMechanisms:p,services:f,signUpAttributes:l,socialProviders:d,formFields:m});const S=e.useMemo((()=>({components:Object.assign(Object.assign({},c),n)})),[n]);return"authenticated"===P||"signOut"===P?t?e.createElement(e.Fragment,null,"function"==typeof t?t({signOut:w,user:j}):t):null:e.createElement(o.Provider,{value:S},e.createElement(r,{className:i,hideSignUp:a,variation:g}))}function l(s){return e.createElement(t,null,e.createElement(p,Object.assign({},s)))}l.Provider=t,l.ResetPassword=u,l.SetupTOTP=i,l.SignIn=n,l.SignUp=m,l.ForceNewPassword=a;export{l as Authenticator,p as AuthenticatorInternal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{
|
|
1
|
+
import e from"react";import{translate as r}from"@aws-amplify/ui";import{Flex as o}from"../../../primitives/Flex/Flex.js";import{Heading as n}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as t}from"@aws-amplify/ui-react-core";import{useCustomComponents as i}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as m}from"../hooks/useFormHandlers/useFormHandlers.js";import{FormFields as a}from"../shared/FormFields.js";import{ConfirmSignInFooter as l}from"../shared/ConfirmSignInFooter.js";import{RemoteErrorMessage as s}from"../shared/RemoteErrorMessage.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";const d=({className:r,variation:n})=>{const{isPending:f}=t((e=>[e.isPending])),{handleChange:u,handleSubmit:p}=m(),{components:{ConfirmSignIn:{Header:h=d.Header,Footer:E=d.Footer}}}=i();return e.createElement(c,{className:r,variation:n},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:u,onSubmit:p},e.createElement(o,{as:"fieldset",direction:"column",isDisabled:f},e.createElement(h,null),e.createElement(o,{direction:"column"},e.createElement(a,null),e.createElement(s,null)),e.createElement(l,null),e.createElement(E,null))))};d.Header=function(){const{user:o}=t(),{challengeName:i}=o;let m;switch(i){case"SMS_MFA":m=r("Confirm SMS Code");break;case"SOFTWARE_TOKEN_MFA":m=r("Confirm TOTP Code");break;default:throw new Error(`${r("Unexpected challengeName encountered in ConfirmSignIn:")} ${i}`)}return e.createElement(n,{level:3},m)},d.Footer=function(){return null};export{d as ConfirmSignIn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Button as o}from"../../../primitives/Button/Button.js";import{Flex as i}from"../../../primitives/Flex/Flex.js";import{Heading as r}from"../../../primitives/Heading/Heading.js";import{Text as n}from"../../../primitives/Text/Text.js";import{useAuthenticator as a}from"
|
|
1
|
+
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Button as o}from"../../../primitives/Button/Button.js";import{Flex as i}from"../../../primitives/Flex/Flex.js";import{Heading as r}from"../../../primitives/Heading/Heading.js";import{Text as n}from"../../../primitives/Text/Text.js";import{useAuthenticator as a}from"@aws-amplify/ui-react-core";import{useCustomComponents as m}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as l}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as s}from"../shared/RemoteErrorMessage.js";import{FormFields as d}from"../shared/FormFields.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";function u({className:r,variation:p}){const{isPending:f,resendCode:y,codeDeliveryDetails:{DeliveryMedium:h,Destination:g}={}}=a((e=>[e.isPending,e.resendCode,e.codeDeliveryDetails])),{handleChange:v,handleSubmit:E}=l(),{components:{ConfirmSignUp:{Header:C=u.Header,Footer:D=u.Footer}}}=m(),j=t("Your code is on the way. To log in, enter the code we emailed to"),x=t("Your code is on the way. To log in, enter the code we texted to"),F=t("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),w=t("It may take a minute to arrive."),S="EMAIL"===h?`${j} ${g}. ${w}`:"SMS"===h?`${x} ${g}. ${w}`:t(`${F}`);return e.createElement(c,{className:r,variation:p},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:v,onSubmit:E},e.createElement(i,{as:"fieldset",direction:"column",isDisabled:f},e.createElement(C,null),e.createElement(i,{direction:"column"},e.createElement(n,{className:"amplify-authenticator__subtitle"},S),e.createElement(d,null),e.createElement(s,null),e.createElement(o,{variation:"primary",isDisabled:f,type:"submit",loadingText:t("Confirming"),isLoading:f,fontWeight:"normal"},t("Confirm")),e.createElement(o,{onClick:y,type:"button",fontWeight:"normal"},t("Resend Code"))),e.createElement(D,null))))}u.Header=()=>{const{codeDeliveryDetails:{DeliveryMedium:o}={}}=a((e=>[e.codeDeliveryDetails])),i=t("EMAIL"===o?"We Emailed You":"SMS"===o?"We Texted You":"We Sent A Code");return e.createElement(r,{level:4},i)},u.Footer=function(){return null};export{u as ConfirmSignUp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{FederatedIdentityProviders as
|
|
1
|
+
import e from"react";import{FederatedIdentityProviders as o,translate as t}from"@aws-amplify/ui";import{Divider as r}from"../../../primitives/Divider/Divider.js";import{Flex as i}from"../../../primitives/Flex/Flex.js";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{FederatedSignInButton as a}from"./FederatedSignInButtons/FederatedSignInButton.js";function s(){const{route:s,socialProviders:c}=n((({route:e,socialProviders:o})=>[e,o]));if(0===c.length)return null;const l="signUp"===s?"Up":"In";return e.createElement(i,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},c.map((r=>{switch(r){case"amazon":return e.createElement(a,{icon:"amazon",key:r,provider:o.Amazon,text:t(`Sign ${l} with Amazon`)});case"apple":return e.createElement(a,{icon:"apple",key:r,provider:o.Apple,text:t(`Sign ${l} with Apple`)});case"facebook":return e.createElement(a,{icon:"facebook",key:r,provider:o.Facebook,text:t(`Sign ${l} with Facebook`)});case"google":return e.createElement(a,{icon:"google",key:r,provider:o.Google,text:t(`Sign ${l} with Google`)});default:console.error(`Authenticator does not support ${r}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}})),e.createElement(r,{size:"small",label:"or"}))}export{s as FederatedSignIn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{useAuthenticator as t}from"
|
|
1
|
+
import e from"react";import{useAuthenticator as t}from"@aws-amplify/ui-react-core";import{Button as l}from"../../../../primitives/Button/Button.js";import{Icon as a}from"../../../../primitives/Icon/Icon.js";import{Text as i}from"../../../../primitives/Text/Text.js";const n=()=>e.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),r=()=>e.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},e.createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),e.createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),e.createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),e.createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),o=()=>e.createElement(a,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),c=()=>e.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},e.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),m=a=>{const{icon:m,provider:s,text:C}=a,{toFederatedSignIn:p}=t();let d;return"facebook"===m?d=e.createElement(o,null):"google"===m?d=e.createElement(r,null):"amazon"===m?d=e.createElement(c,null):"apple"===m&&(d=e.createElement(n,null)),e.createElement(l,{onClick:e=>{e.preventDefault(),p({data:{provider:s}})},className:"federated-sign-in-button",fontWeight:"normal",gap:"1rem"},d,e.createElement(i,{as:"span"},C))};export{m as FederatedSignInButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as o}from"@aws-amplify/ui";import{Button as t}from"../../../primitives/Button/Button.js";import{Flex as r}from"../../../primitives/Flex/Flex.js";import{Heading as
|
|
1
|
+
import e from"react";import{translate as o}from"@aws-amplify/ui";import{Button as t}from"../../../primitives/Button/Button.js";import{Flex as r}from"../../../primitives/Flex/Flex.js";import{Heading as i}from"../../../primitives/Heading/Heading.js";import{RemoteErrorMessage as n}from"../shared/RemoteErrorMessage.js";import{useAuthenticator as a}from"@aws-amplify/ui-react-core";import{useCustomComponents as m}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as s}from"../hooks/useFormHandlers/useFormHandlers.js";import{FormFields as l}from"../shared/FormFields.js";import{RouteContainer as d}from"../RouteContainer/RouteContainer.js";const p=({className:l,variation:c})=>{const{isPending:u,toSignIn:f}=a((e=>[e.isPending,e.toSignIn])),{handleBlur:g,handleChange:h,handleSubmit:F}=s(),{components:{ForceNewPassword:{FormFields:C=p.FormFields}}}=m();return e.createElement(d,{className:l,variation:c},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:h,onSubmit:F,onBlur:g},e.createElement(r,{as:"fieldset",direction:"column",isDisabled:u},e.createElement(i,{level:3},o("Change Password")),e.createElement(C,null),e.createElement(n,null),e.createElement(t,{isDisabled:u,type:"submit",variation:"primary",isLoading:u,loadingText:o("Changing"),fontWeight:"normal"},o("Change Password")),e.createElement(t,{onClick:f,type:"button",fontWeight:"normal",variation:"link",size:"small"},o("Back to Sign In")))))};p.FormFields=function(){return e.createElement(l,null)};export{p as ForceNewPassword};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Flex as o}from"../../../primitives/Flex/Flex.js";import{Heading as r}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as n}from"
|
|
1
|
+
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Flex as o}from"../../../primitives/Flex/Flex.js";import{Heading as r}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{useCustomComponents as a}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as m}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as i}from"../shared/RemoteErrorMessage.js";import{TwoButtonSubmitFooter as s}from"../shared/TwoButtonSubmitFooter.js";import{FormFields as l}from"../shared/FormFields.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";const d=({className:r,variation:u})=>{const{isPending:p}=n((e=>[e.isPending])),{handleBlur:f,handleChange:E,handleSubmit:h}=m(),{components:{ConfirmResetPassword:{Header:F=d.Header,Footer:j=d.Footer}}}=a();return e.createElement(c,{className:r,variation:u},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:h,onChange:E,onBlur:f},e.createElement(o,{as:"fieldset",direction:"column",isDisabled:p},e.createElement(F,null),e.createElement(o,{direction:"column"},e.createElement(l,null)),e.createElement(i,null),e.createElement(s,{cancelButtonSendType:"RESEND",cancelButtonText:t("Resend Code")}),e.createElement(j,null))))};d.Header=function(){const o=t("Reset your password");return e.createElement(r,{level:3},o)},d.Footer=function(){return null};export{d as ConfirmResetPassword};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Flex as
|
|
1
|
+
import e from"react";import{translate as t}from"@aws-amplify/ui";import{Flex as r}from"../../../primitives/Flex/Flex.js";import{Heading as o}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{useCustomComponents as a}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as m}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as i}from"../shared/RemoteErrorMessage.js";import{TwoButtonSubmitFooter as s}from"../shared/TwoButtonSubmitFooter.js";import{FormFields as l}from"../shared/FormFields.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";const u=({className:o,variation:d})=>{const{isPending:p}=n((e=>[e.isPending])),{handleChange:f,handleSubmit:E}=m(),{components:{ResetPassword:{Header:F=u.Header,Footer:g=u.Footer}}}=a();return e.createElement(c,{className:o,variation:d},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-resetpassword":"",method:"post",onChange:f,onSubmit:E},e.createElement(r,{as:"fieldset",direction:"column",isDisabled:p},e.createElement(F,null),e.createElement(r,{direction:"column"},e.createElement(l,null)),e.createElement(i,null),e.createElement(s,{cancelButtonText:t("Back to Sign In"),cancelButtonSendType:"SIGN_IN",submitButtonText:p?e.createElement(e.Fragment,null,t("Sending"),"…"):e.createElement(e.Fragment,null,t("Send code"))}),e.createElement(g,null))))};u.Header=function(){return e.createElement(o,{level:3},t("Reset your password"))},u.Footer=function(){return null};export{u as ResetPassword};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{View as t}from"../../../primitives/View/View.js";import{useAuthenticator as a}from"
|
|
1
|
+
import e from"react";import{View as t}from"../../../primitives/View/View.js";import{useAuthenticator as a}from"@aws-amplify/ui-react-core";import{useCustomComponents as r}from"../hooks/useCustomComponents/index.js";const o=e=>"signIn"===e||"signUp";function n({children:n,className:i,variation:m="default"}){const{route:c}=a((({route:e})=>[e])),{components:{Header:l,Footer:s}}=r();return e.createElement(t,{className:i,"data-amplify-authenticator":"","data-variation":m},e.createElement(t,{"data-amplify-container":""},e.createElement(l,null),e.createElement(t,{"data-amplify-router":"","data-amplify-router-content":o(c)?void 0:""},n),e.createElement(s,null)))}export{n as RouteContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r,{useMemo as e}from"react";import{useAuthenticator as s}from"
|
|
1
|
+
import r,{useMemo as e}from"react";import{useAuthenticator as s}from"@aws-amplify/ui-react-core";import{ConfirmSignUp as i}from"../ConfirmSignUp/ConfirmSignUp.js";import{ForceNewPassword as t}from"../ForceNewPassword/ForceNewPassword.js";import{SetupTOTP as o}from"../SetupTOTP/SetupTOTP.js";import"@aws-amplify/ui";import"../../../primitives/TextField/TextField.js";import"../../../primitives/Button/Button.js";import"../../../primitives/Flex/Flex.js";import"../../../primitives/Alert/Alert.js";import{SignInSignUpTabs as n}from"../shared/SignInSignUpTabs.js";import{ConfirmVerifyUser as a}from"../VerifyUser/ConfirmVerifyUser.js";import{VerifyUser as m}from"../VerifyUser/VerifyUser.js";import{ConfirmSignIn as p}from"../ConfirmSignIn/ConfirmSignIn.js";import{ConfirmResetPassword as c}from"../ResetPassword/ConfirmResetPassword.js";import{ResetPassword as f}from"../ResetPassword/ResetPassword.js";import{isSignInOrSignUpRoute as u}from"../utils.js";function d(){return null}function l({className:l,hideSignUp:w,variation:j}){const{route:U}=s((({route:r})=>[r])),g=e((()=>(r=>{switch(r){case"authenticated":case"idle":case"setup":case"autoSignIn":return d;case"confirmSignUp":return i;case"confirmSignIn":return p;case"setupTOTP":return o;case"signIn":case"signUp":return n;case"forceNewPassword":return t;case"resetPassword":return f;case"confirmResetPassword":return c;case"verifyUser":return m;case"confirmVerifyUser":return a;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${r}`),d}})(U)),[U]);return r.createElement(g,{className:l,hideSignUp:u(U)?w:void 0,variation:j})}export{l as Router};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e}from"tslib";import t from"qrcode";import*as o from"react";import{Logger as r
|
|
1
|
+
import{__awaiter as e}from"tslib";import t from"qrcode";import*as o from"react";import{Logger as r}from"aws-amplify";import{translate as a,getTotpCodeURL as i}from"@aws-amplify/ui";import{Flex as n}from"../../../primitives/Flex/Flex.js";import{Heading as l}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as m}from"@aws-amplify/ui-react-core";import{useCustomComponents as s}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as c}from"../hooks/useFormHandlers/useFormHandlers.js";import{ConfirmSignInFooter as d}from"../shared/ConfirmSignInFooter.js";import{RemoteErrorMessage as p}from"../shared/RemoteErrorMessage.js";import{FormFields as u}from"../shared/FormFields.js";import{RouteContainer as f}from"../RouteContainer/RouteContainer.js";const g=new r("SetupTOTP-logger"),E=({className:r,variation:l})=>{var h;const{fields:v,getTotpSecretCode:C,isPending:y,user:H}=m((e=>[e.isPending])),{handleChange:w,handleSubmit:S}=c(),{components:{SetupTOTP:{Header:F=E.Header,Footer:j=E.Footer}}}=s(),[T,x]=o.useState(!0),[P,V]=o.useState(),[b,O]=o.useState("COPY"),[R,k]=o.useState(""),{totpIssuer:L="AWSCognito",totpUsername:M=(null==H?void 0:H.username)}=null!==(h=null==v?void 0:v.QR)&&void 0!==h?h:{},q=o.useCallback((()=>e(void 0,void 0,void 0,(function*(){try{const e=yield C();k(e);const o=i(L,M,e),r=yield t.toDataURL(o);V(r)}catch(e){g.error(e)}finally{x(!1)}}))),[C,L,M]);o.useEffect((()=>{P||q()}),[q,P]);return o.createElement(f,{className:r,variation:l},o.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:w,onSubmit:S},o.createElement(n,{as:"fieldset",direction:"column",isDisabled:y},o.createElement(F,null),o.createElement(n,{direction:"column"},T?o.createElement("p",null,a("Loading"),"…"):o.createElement("img",{"data-amplify-qrcode":!0,src:P,alt:"qr code",width:"228",height:"228"}),o.createElement(n,{"data-amplify-copy":!0},o.createElement("div",null,R),o.createElement(n,{"data-amplify-copy-svg":!0,onClick:()=>{navigator.clipboard.writeText(R),O(a("COPIED"))}},o.createElement("div",{"data-amplify-copy-tooltip":!0},b),o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),o.createElement(u,null),o.createElement(p,null)),o.createElement(d,null),o.createElement(j,null))))};E.Header=function(){return o.createElement(l,{level:3},a("Setup TOTP"))},E.Footer=function(){return null};export{E as SetupTOTP};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as t,hasTranslation as r}from"@aws-amplify/ui";import{Button as o}from"../../../primitives/Button/Button.js";import{Flex as i}from"../../../primitives/Flex/Flex.js";import{View as n}from"../../../primitives/View/View.js";import{VisuallyHidden as m}from"../../../primitives/VisuallyHidden/VisuallyHidden.js";import{FederatedSignIn as
|
|
1
|
+
import e from"react";import{translate as t,hasTranslation as r}from"@aws-amplify/ui";import{Button as o}from"../../../primitives/Button/Button.js";import{Flex as i}from"../../../primitives/Flex/Flex.js";import{View as n}from"../../../primitives/View/View.js";import{VisuallyHidden as m}from"../../../primitives/VisuallyHidden/VisuallyHidden.js";import{FederatedSignIn as a}from"../FederatedSignIn/FederatedSignIn.js";import{useAuthenticator as l}from"@aws-amplify/ui-react-core";import{useCustomComponents as s}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as d}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as u}from"../shared/RemoteErrorMessage.js";import{FormFields as p}from"../shared/FormFields.js";function c(){const{isPending:r}=l((e=>[e.isPending])),{handleChange:f,handleSubmit:g}=d(),{components:{SignIn:{Header:E=c.Header,Footer:F=c.Footer}}}=s();return e.createElement(n,null,e.createElement(E,null),e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:g,onChange:f},e.createElement(a,null),e.createElement(i,{direction:"column"},e.createElement(i,{as:"fieldset",direction:"column",isDisabled:r},e.createElement(m,null,e.createElement("legend",null,t("Sign in"))),e.createElement(p,null)),e.createElement(u,null),e.createElement(o,{isDisabled:r,isFullWidth:!0,type:"submit",variation:"primary",isLoading:r,loadingText:t("Signing in")},t("Sign in")))),e.createElement(F,null))}c.Footer=()=>{const{toResetPassword:i}=l((e=>[e.toResetPassword])),m=r("Forgot your password? ")?t("Forgot your password? "):t("Forgot your password?");return e.createElement(n,{"data-amplify-footer":""},e.createElement(o,{fontWeight:"normal",onClick:i,size:"small",variation:"link"},m))},c.Header=function(){return null};export{c as SignIn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as r}from"@aws-amplify/ui";import{Button as t}from"../../../primitives/Button/Button.js";import{Flex as o}from"../../../primitives/Flex/Flex.js";import{View as n}from"../../../primitives/View/View.js";import{FederatedSignIn as i}from"../FederatedSignIn/FederatedSignIn.js";import{useAuthenticator as m}from"
|
|
1
|
+
import e from"react";import{translate as r}from"@aws-amplify/ui";import{Button as t}from"../../../primitives/Button/Button.js";import{Flex as o}from"../../../primitives/Flex/Flex.js";import{View as n}from"../../../primitives/View/View.js";import{FederatedSignIn as i}from"../FederatedSignIn/FederatedSignIn.js";import{useAuthenticator as m}from"@aws-amplify/ui-react-core";import{useCustomComponents as a}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as l}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as s}from"../shared/RemoteErrorMessage.js";import{FormFields as u}from"../shared/FormFields.js";function d(){const{hasValidationErrors:u,isPending:c}=m((e=>[e.hasValidationErrors,e.isPending])),{handleChange:p,handleBlur:f,handleSubmit:F}=l(),{components:{SignUp:{Header:h=d.Header,FormFields:E=d.FormFields,Footer:g=d.Footer}}}=a();return e.createElement(n,null,e.createElement(h,null),e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:p,onSubmit:F,onBlur:f},e.createElement(i,null),e.createElement(o,{as:"fieldset",direction:"column",isDisabled:c},e.createElement(o,{direction:"column"},e.createElement(E,null),e.createElement(s,null)),e.createElement(t,{isDisabled:u||c,isFullWidth:!0,type:"submit",variation:"primary",isLoading:c,loadingText:r("Creating Account")},r("Create Account")))),e.createElement(g,null))}d.Header=function(){return null},d.FormFields=function(){return e.createElement(u,null)},d.Footer=function(){return null};export{d as SignUp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as
|
|
1
|
+
import e from"react";import{translate as r}from"@aws-amplify/ui";import{Flex as t}from"../../../primitives/Flex/Flex.js";import{Heading as o}from"../../../primitives/Heading/Heading.js";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{useCustomComponents as i}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as m}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as a}from"../shared/RemoteErrorMessage.js";import{TwoButtonSubmitFooter as s}from"../shared/TwoButtonSubmitFooter.js";import{FormFields as l}from"../shared/FormFields.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";const u=({className:o,variation:f})=>{const{isPending:d}=n((e=>[e.isPending])),{handleChange:p,handleSubmit:h}=m(),{components:{ConfirmVerifyUser:{Header:E=u.Header,Footer:F=u.Footer}}}=i();return e.createElement(c,{className:o,variation:f},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:p,onSubmit:h},e.createElement(t,{as:"fieldset",direction:"column",isDisabled:d},e.createElement(E,null),e.createElement(t,{direction:"column"},e.createElement(l,null)),e.createElement(a,null),e.createElement(s,{cancelButtonText:r("Skip"),cancelButtonSendType:"SKIP"}),e.createElement(F,null))))};u.Header=function(){return e.createElement(o,{level:3},r("Account recovery requires verified contact information"))},u.Footer=function(){return null};export{u as ConfirmVerifyUser};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{
|
|
1
|
+
import e from"react";import{translate as t,defaultFormFieldOptions as r,censorPhoneNumber as o,censorAllButFirstAndLast as i}from"@aws-amplify/ui";import{Flex as n}from"../../../primitives/Flex/Flex.js";import{Heading as a}from"../../../primitives/Heading/Heading.js";import{Radio as m}from"../../../primitives/Radio/Radio.js";import{RadioGroupField as l}from"../../../primitives/RadioGroupField/RadioGroupField.js";import{useAuthenticator as s}from"@aws-amplify/ui-react-core";import{useCustomComponents as c}from"../hooks/useCustomComponents/index.js";import{useFormHandlers as u}from"../hooks/useFormHandlers/useFormHandlers.js";import{RemoteErrorMessage as d}from"../shared/RemoteErrorMessage.js";import{TwoButtonSubmitFooter as f}from"../shared/TwoButtonSubmitFooter.js";import{RouteContainer as p}from"../RouteContainer/RouteContainer.js";const v=n=>Object.entries(n).map((([n,a])=>e.createElement(m,{name:"unverifiedAttr",value:n,key:n},((e,r)=>{const n=t(e);let a=r;if("Phone Number"===e)a=o(r);else if("Email"===e){const e=r.split("@");a=`${i(e[0])}@${e[1]}`}return`${n}: ${a}`})(r[n].label,a)))),E=({className:r,variation:o})=>{const{components:{VerifyUser:{Header:i=E.Header,Footer:a=E.Footer}}}=c(),{isPending:m,unverifiedContactMethods:h}=s((({isPending:e,unverifiedContactMethods:t})=>[e,t])),{handleChange:y,handleSubmit:F}=u(),b=m?e.createElement(e.Fragment,null,"Verifying…"):e.createElement(e.Fragment,null,t("Verify")),g=e.createElement(l,{label:t("Verify Contact"),labelHidden:!0,name:"verify_context",isDisabled:m},v(h));return e.createElement(p,{className:r,variation:o},e.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:y,onSubmit:F},e.createElement(n,{as:"fieldset",direction:"column",isDisabled:m},e.createElement(i,null),g,e.createElement(d,null),e.createElement(f,{cancelButtonText:t("Skip"),cancelButtonSendType:"SKIP",submitButtonText:b}),e.createElement(a,null))))};E.Header=function(){return e.createElement(a,{level:3},t("Account recovery requires verified contact information"))},E.Footer=function(){return null};export{E as VerifyUser};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as e}from"react";import{getFormDataFromEvent as t}from"../../../../helpers/utils.js";import{useAuthenticator as r}from"
|
|
1
|
+
import{useCallback as e}from"react";import{getFormDataFromEvent as t}from"../../../../helpers/utils.js";import{useAuthenticator as r}from"@aws-amplify/ui-react-core";function a(){const{submitForm:a,updateBlur:m,updateForm:u}=r((e=>[e.submitForm,e.updateBlur,e.updateForm]));return{handleBlur:e((({target:{name:e}})=>{m({name:e})}),[m]),handleChange:e((({target:{checked:e,name:t,type:r,value:a}})=>{u({name:t,value:"checkbox"===r&&!e?void 0:a})}),[u]),handleSubmit:e((e=>{e.preventDefault(),a(t(e))}),[a])}}export{a as useFormHandlers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"react";import{translate as t}from"@aws-amplify/ui";import{useAuthenticator as n}from"
|
|
1
|
+
import i from"react";import{translate as t}from"@aws-amplify/ui";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{Button as o}from"../../../primitives/Button/Button.js";import{Flex as e}from"../../../primitives/Flex/Flex.js";const r=()=>{const{isPending:r,toSignIn:m}=n((i=>[i.isPending,i.toSignIn]));return i.createElement(e,{direction:"column"},i.createElement(o,{isDisabled:r,type:"submit",variation:"primary",fontWeight:"normal",isLoading:r,loadingText:t("Confirming")},t("Confirm")),i.createElement(o,{onClick:m,type:"button",variation:"link",fontWeight:"normal",size:"small"},t("Back to Sign In")))};export{r as ConfirmSignInFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import*as r from"react";import{getErrors as t}from"@aws-amplify/ui";import{PasswordField as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import{getErrors as t}from"@aws-amplify/ui";import{PasswordField as a}from"../../../primitives/PasswordField/PasswordField.js";import{PhoneNumberField as i}from"../../../primitives/PhoneNumberField/PhoneNumberField.js";import{TextField as o}from"../../../primitives/TextField/TextField.js";import{useAuthenticator as m}from"@aws-amplify/ui-react-core";import{ValidationErrors as l}from"./ValidationErrors.js";import{useStableId as s}from"../../../primitives/utils/useStableId.js";function n(n){var{autocomplete:d,dialCode:p,name:c,type:u}=n,E=e(n,["autocomplete","dialCode","name","type"]);const{validationErrors:b}=m((({validationErrors:e})=>[e])),f=r.useMemo((()=>t(b[c])),[c,b]),v=(null==f?void 0:f.length)>0,y=s(),F=v?y:void 0;return"tel"===u?r.createElement(r.Fragment,null,r.createElement(i,Object.assign({},E,{name:c,defaultDialCode:p,dialCodeName:"country_code",autoComplete:d,hasError:v,"aria-describedby":F})),r.createElement(l,{errors:f,id:y})):"password"===u?r.createElement(r.Fragment,null,r.createElement(a,Object.assign({},E,{name:c,autoComplete:d,hasError:v,"aria-describedby":F})),r.createElement(l,{errors:f,id:y})):r.createElement(r.Fragment,null,r.createElement(o,Object.assign({},E,{name:c,autoComplete:d,hasError:v,type:u,"aria-describedby":F})),r.createElement(l,{errors:f,id:y}))}export{n as FormField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{
|
|
1
|
+
import*as e from"react";import{FormField as r}from"./FormField.js";import{useAuthenticator as t}from"@aws-amplify/ui-react-core";function m(){const{fields:m}=t((({route:e})=>[e])),o=e.useRef(m.map(((t,m)=>e.createElement(r,Object.assign({key:m},t))))).current;return e.createElement(e.Fragment,null,o)}export{m as FormFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"react";import{translate as e}from"@aws-amplify/ui";import{useAuthenticator as t}from"
|
|
1
|
+
import r from"react";import{translate as e}from"@aws-amplify/ui";import{useAuthenticator as t}from"@aws-amplify/ui-react-core";import{Alert as i}from"../../../primitives/Alert/Alert.js";const o=()=>{const{error:o}=t((r=>[r.error]));return r.createElement(r.Fragment,null,o?r.createElement(i,{variation:"error",isDismissible:!0},e(o)):null)};export{o as RemoteErrorMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{translate as t}from"@aws-amplify/ui";import{useAuthenticator as n}from"
|
|
1
|
+
import e from"react";import{translate as t}from"@aws-amplify/ui";import{useAuthenticator as n}from"@aws-amplify/ui-react-core";import{Tabs as i,TabItem as r}from"../../../primitives/Tabs/Tabs.js";import{View as o}from"../../../primitives/View/View.js";import{SignIn as a}from"../SignIn/SignIn.js";import{SignUp as m}from"../SignUp/SignUp.js";import{RouteContainer as c}from"../RouteContainer/RouteContainer.js";const l=({className:l,hideSignUp:s,variation:p})=>{const{route:g,toSignIn:u,toSignUp:f}=n((e=>[e.route,e.toSignIn,e.toSignUp]));return e.createElement(c,{className:l,variation:p},s?e.createElement(o,{"data-amplify-router-content":""},"signIn"===g&&e.createElement(a,null)):e.createElement(i,{indicatorPosition:"top",currentIndex:"signIn"===g?0:1,spacing:"equal",justifyContent:"center",onChange:()=>"signIn"===g?f():u()},e.createElement(r,{title:t("Sign In")},e.createElement(o,{"data-amplify-router-content":""},"signIn"===g&&e.createElement(a,null))),e.createElement(r,{title:t("Create Account")},e.createElement(o,{"data-amplify-router-content":""},"signUp"===g&&e.createElement(m,null)))))};export{l as SignInSignUpTabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{translate as t}from"@aws-amplify/ui";import{useAuthenticator as i}from"@aws-amplify/ui-react-core";import{Button as n}from"../../../primitives/Button/Button.js";import{Flex as r}from"../../../primitives/Flex/Flex.js";const a=a=>{const{cancelButtonSendType:o,cancelButtonText:m,submitButtonText:l}=a,{isPending:c,resendCode:s,skipVerification:u,toSignIn:p}=i((e=>[e.isPending])),f=c?e.createElement(e.Fragment,null,t("Submitting"),"…"):e.createElement(e.Fragment,null,t("Submit")),b=l||f;return e.createElement(r,{direction:"column"},e.createElement(n,{fontWeight:"normal",variation:"primary",isDisabled:c,type:"submit"},b),e.createElement(n,{onClick:()=>{switch(o){case"SKIP":u();break;case"RESEND":s();break;case"SIGN_IN":p();break;default:return}},type:"button",variation:"link",fontWeight:"normal",size:"small"},m))};export{a as TwoButtonSubmitFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AmplifyProvider,ThemeProvider}from"./ThemeProvider/index.js";export{Authenticator}from"./Authenticator/Authenticator.js";
|
|
1
|
+
export{AmplifyProvider,ThemeProvider}from"./ThemeProvider/index.js";export{Authenticator}from"./Authenticator/Authenticator.js";export{withAuthenticator}from"./Authenticator/withAuthenticator.js";export{useAuthenticator}from"@aws-amplify/ui-react-core";export{MapView}from"./Geo/MapView/index.js";export{Geocoder,LocationSearch}from"./Geo/LocationSearch/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const r=r=>"object"==typeof r&&null!==r&&"message"in r&&"string"==typeof r.message,e=e=>{if(r(e))return e;try{return new Error(JSON.stringify(e))}catch(r){return new Error(String(e))}},t=r=>e(r).message,n=r=>{const e=new FormData(r.target);return Object.fromEntries(e)};export{t as getErrorMessage,n as getFormDataFromEvent,r as isErrorWithMessage,e as toErrorWithMessage};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"./components/index.js";export{e as components};export{useAmplify}from"./hooks/useAmplify.js";export{useTheme}from"./hooks/useTheme.js";export{useBreakpointValue}from"./hooks/useBreakpointValue.js";import*as i from"./primitives/index.js";export{i as primitives};export{createTheme,defaultDarkModeOverride,defaultTheme,translations}from"@aws-amplify/ui";export{AmplifyProvider,ThemeProvider}from"./components/ThemeProvider/index.js";export{Authenticator}from"./components/Authenticator/Authenticator.js";export{
|
|
1
|
+
import*as e from"./components/index.js";export{e as components};export{useAmplify}from"./hooks/useAmplify.js";export{useTheme}from"./hooks/useTheme.js";export{useBreakpointValue}from"./hooks/useBreakpointValue.js";import*as i from"./primitives/index.js";export{i as primitives};export{createTheme,defaultDarkModeOverride,defaultTheme,translations}from"@aws-amplify/ui";export{AmplifyProvider,ThemeProvider}from"./components/ThemeProvider/index.js";export{Authenticator}from"./components/Authenticator/Authenticator.js";export{withAuthenticator}from"./components/Authenticator/withAuthenticator.js";export{useAuthenticator}from"@aws-amplify/ui-react-core";export{MapView}from"./components/Geo/MapView/index.js";export{Geocoder,LocationSearch}from"./components/Geo/LocationSearch/index.js";export{Alert}from"./primitives/Alert/Alert.js";export{Badge}from"./primitives/Badge/Badge.js";export{Button}from"./primitives/Button/Button.js";export{ButtonGroup}from"./primitives/ButtonGroup/ButtonGroup.js";export{Card}from"./primitives/Card/Card.js";export{CheckboxField}from"./primitives/CheckboxField/CheckboxField.js";export{Collection}from"./primitives/Collection/Collection.js";export{Divider}from"./primitives/Divider/Divider.js";export{Expander}from"./primitives/Expander/Expander.js";export{ExpanderItem}from"./primitives/Expander/ExpanderItem.js";export{FieldGroupIcon}from"./primitives/FieldGroupIcon/FieldGroupIcon.js";export{FieldGroupIconButton}from"./primitives/FieldGroupIcon/FieldGroupIconButton.js";export{Flex}from"./primitives/Flex/Flex.js";export{Grid}from"./primitives/Grid/Grid.js";export{Heading}from"./primitives/Heading/Heading.js";export{Icon}from"./primitives/Icon/Icon.js";export{Image}from"./primitives/Image/Image.js";export{Link}from"./primitives/Link/Link.js";export{Loader}from"./primitives/Loader/Loader.js";export{Menu}from"./primitives/Menu/Menu.js";export{MenuButton}from"./primitives/Menu/MenuButton.js";export{MenuItem}from"./primitives/Menu/MenuItem.js";export{Pagination}from"./primitives/Pagination/Pagination.js";export{PasswordField}from"./primitives/PasswordField/PasswordField.js";export{PhoneNumberField}from"./primitives/PhoneNumberField/PhoneNumberField.js";export{Placeholder}from"./primitives/Placeholder/Placeholder.js";export{Radio}from"./primitives/Radio/Radio.js";export{RadioGroupField}from"./primitives/RadioGroupField/RadioGroupField.js";export{Rating}from"./primitives/Rating/Rating.js";export{ScrollView}from"./primitives/ScrollView/ScrollView.js";export{SearchField}from"./primitives/SearchField/SearchField.js";export{SelectField}from"./primitives/SelectField/SelectField.js";export{SliderField}from"./primitives/SliderField/SliderField.js";export{StepperField}from"./primitives/StepperField/StepperField.js";export{SwitchField}from"./primitives/SwitchField/SwitchField.js";export{TabItem,Tabs}from"./primitives/Tabs/Tabs.js";export{Text}from"./primitives/Text/Text.js";export{TextAreaField}from"./primitives/TextAreaField/TextAreaField.js";export{TextField}from"./primitives/TextField/TextField.js";export{ToggleButton}from"./primitives/ToggleButton/ToggleButton.js";export{ToggleButtonGroup}from"./primitives/ToggleButtonGroup/ToggleButtonGroup.js";export{View}from"./primitives/View/View.js";export{VisuallyHidden}from"./primitives/VisuallyHidden/VisuallyHidden.js";export{Table}from"./primitives/Table/Table.js";export{TableBody}from"./primitives/Table/TableBody.js";export{TableCell}from"./primitives/Table/TableCell.js";export{TableFoot}from"./primitives/Table/TableFoot.js";export{TableHead}from"./primitives/Table/TableHead.js";export{TableRow}from"./primitives/Table/TableRow.js";export{usePagination}from"./primitives/Pagination/usePagination.js";export{ComponentClassNames,ComponentClassObject}from"./primitives/shared/constants.js";export{ComponentPropsToStylePropsMap,ComponentPropsToStylePropsMapKeys}from"./primitives/types/style.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import*as a from"react";import{Root as
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import{Root as l}from"@radix-ui/react-accordion";import t from"classnames";import{useDeprecationWarning as s}from"../../hooks/useDeprecationWarning.js";import{ComponentClassNames as r}from"../shared/constants.js";import{splitPrimitiveProps as n}from"../shared/styleUtils.js";const o=a.forwardRef(((o,i)=>{var{children:p,className:m,defaultValue:d,isCollapsible:u,onChange:c,onValueChange:f,testId:h,type:g="single",value:C}=o,V=e(o,["children","className","defaultValue","isCollapsible","onChange","onValueChange","testId","type","value"]);const{rest:b}=n(V),x=null!=f?f:c;s({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"multiple"===g?a.createElement(l,Object.assign({className:t(r.Expander,m),"data-testid":h,defaultValue:d,onValueChange:x,ref:i,type:g,value:C},b),p):a.createElement(l,Object.assign({className:t(r.Expander,m),collapsible:u,"data-testid":h,defaultValue:d,onValueChange:x,ref:i,type:g,value:C},b),p)}));o.displayName="Expander";export{o as Expander};
|