@aws-amplify/ui-react 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IconWarning-1f5018d3.js +1 -0
- package/dist/esm/PrimitiveCatalog.js +1 -1
- 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/useAuthenticator/index.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/Authenticator/shared/ValidationErrors.js +1 -1
- package/dist/esm/components/Authenticator/withAuthenticator.js +1 -1
- package/dist/esm/components/Geo/LocationSearch/index.js +1 -1
- package/dist/esm/components/Geo/MapView/index.js +1 -1
- package/dist/esm/components/ThemeProvider/index.js +1 -1
- package/dist/esm/primitives/Alert/Alert.js +1 -1
- package/dist/esm/primitives/Alert/AlertIcon.js +1 -1
- package/dist/esm/primitives/Badge/Badge.js +1 -1
- package/dist/esm/primitives/Button/Button.js +1 -1
- package/dist/esm/primitives/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/esm/primitives/Card/Card.js +1 -1
- package/dist/esm/primitives/Checkbox/Checkbox.js +1 -1
- package/dist/esm/primitives/CheckboxField/CheckboxField.js +1 -1
- package/dist/esm/primitives/Collection/Collection.js +1 -1
- package/dist/esm/primitives/Divider/Divider.js +1 -1
- package/dist/esm/primitives/Expander/Expander.js +1 -1
- package/dist/esm/primitives/Expander/ExpanderItem.js +1 -1
- package/dist/esm/primitives/Field/FieldClearButton.js +1 -1
- package/dist/esm/primitives/Field/FieldDescription.js +1 -1
- package/dist/esm/primitives/Field/FieldErrorMessage.js +1 -1
- package/dist/esm/primitives/FieldGroup/FieldGroup.js +1 -1
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIcon.js +1 -1
- package/dist/esm/primitives/FieldGroupIcon/FieldGroupIconButton.js +1 -1
- package/dist/esm/primitives/Flex/Flex.js +1 -1
- package/dist/esm/primitives/Grid/Grid.js +1 -1
- package/dist/esm/primitives/Heading/Heading.js +1 -1
- package/dist/esm/primitives/Icon/Icon.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconAdd.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconCheck.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconCheckCircle.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconCheckCircleOutline.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconChevronLeft.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconChevronRight.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconClose.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconError.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconExpandMore.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconFiberManualRecord.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconHighlightOff.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconIndeterminate.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconInfo.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconMenu.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconRemove.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconSearch.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconStar.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconVisibility.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconVisibilityOff.js +1 -1
- package/dist/esm/primitives/Icon/icons/IconWarning.js +1 -1
- package/dist/esm/primitives/Image/Image.js +1 -1
- package/dist/esm/primitives/Input/Input.js +1 -1
- package/dist/esm/primitives/Label/Label.js +1 -1
- package/dist/esm/primitives/Link/Link.js +1 -1
- package/dist/esm/primitives/Loader/Loader.js +1 -1
- package/dist/esm/primitives/Menu/Menu.js +1 -1
- package/dist/esm/primitives/Menu/MenuButton.js +1 -1
- package/dist/esm/primitives/Menu/MenuItem.js +1 -1
- package/dist/esm/primitives/Pagination/Pagination.js +1 -1
- package/dist/esm/primitives/Pagination/PaginationItem.js +1 -1
- package/dist/esm/primitives/Pagination/usePaginationItems.js +1 -1
- package/dist/esm/primitives/PasswordField/PasswordField.js +1 -1
- package/dist/esm/primitives/PasswordField/ShowPasswordButton.js +1 -1
- package/dist/esm/primitives/PhoneNumberField/CountryCodeSelect.js +1 -1
- package/dist/esm/primitives/PhoneNumberField/PhoneNumberField.js +1 -1
- package/dist/esm/primitives/Placeholder/Placeholder.js +1 -1
- package/dist/esm/primitives/Radio/Radio.js +1 -1
- package/dist/esm/primitives/RadioGroupField/RadioGroupField.js +1 -1
- package/dist/esm/primitives/Rating/Rating.js +1 -1
- package/dist/esm/primitives/Rating/RatingIcon.js +1 -1
- package/dist/esm/primitives/Rating/RatingMixedIcon.js +1 -1
- package/dist/esm/primitives/ScrollView/ScrollView.js +1 -1
- package/dist/esm/primitives/SearchField/SearchField.js +1 -1
- package/dist/esm/primitives/SearchField/SearchFieldButton.js +1 -1
- package/dist/esm/primitives/Select/Select.js +1 -1
- package/dist/esm/primitives/SelectField/SelectField.js +1 -1
- package/dist/esm/primitives/SliderField/SliderField.js +1 -1
- package/dist/esm/primitives/StepperField/StepperField.js +1 -1
- package/dist/esm/primitives/SwitchField/SwitchField.js +1 -1
- package/dist/esm/primitives/Table/Table.js +1 -1
- package/dist/esm/primitives/Table/TableBody.js +1 -1
- package/dist/esm/primitives/Table/TableCell.js +1 -1
- package/dist/esm/primitives/Table/TableFoot.js +1 -1
- package/dist/esm/primitives/Table/TableHead.js +1 -1
- package/dist/esm/primitives/Table/TableRow.js +1 -1
- package/dist/esm/primitives/Tabs/Tabs.js +1 -1
- package/dist/esm/primitives/Text/Text.js +1 -1
- package/dist/esm/primitives/TextArea/TextArea.js +1 -1
- package/dist/esm/primitives/TextAreaField/TextAreaField.js +1 -1
- package/dist/esm/primitives/TextField/TextField.js +1 -1
- package/dist/esm/primitives/ToggleButton/ToggleButton.js +1 -1
- package/dist/esm/primitives/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/esm/primitives/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/esm/primitives/shared/constants.js +1 -1
- package/dist/esm/primitives/shared/types.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +2 -2
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Rating/RatingMixedIcon.d.ts +1 -1
- package/dist/types/primitives/shared/types.d.ts +2 -1
- package/dist/types/primitives/types/phoneNumberField.d.ts +65 -10
- package/package.json +2 -2
- package/dist/IconWarning-47c8dc76.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import t from"classnames";import{classNameModifier as n}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{Flex as a}from"../Flex/Flex.js";import{View as i}from"../View/View.js";const l=r.forwardRef(((l,m)=>{var{children:s,className:p,innerEndComponent:d,innerStartComponent:u,orientation:c="horizontal",outerEndComponent:F,outerStartComponent:E,variation:G}=l,f=e(l,["children","className","innerEndComponent","innerStartComponent","orientation","outerEndComponent","outerStartComponent","variation"]);const N=null!=d,C=null!=u?o.FieldGroupHasInnerStart:null,S=N?o.FieldGroupHasInnerEnd:null,h=t(o.FieldGroup,C,S,n(o.FieldGroup,c),p);return r.createElement(a,Object.assign({className:h,"data-orientation":c,ref:m},f),E&&r.createElement(i,{className:t(o.FieldGroupOuterStart,n(o.FieldGroupOuterStart,G))},E),r.createElement(i,{className:t(o.FieldGroupFieldWrapper,n(o.FieldGroupFieldWrapper,c)),"data-orientation":c},u&&r.createElement(i,{className:o.FieldGroupInnerStart},u),s,d&&r.createElement(i,{className:o.FieldGroupInnerEnd},d)),F&&r.createElement(i,{className:t(o.FieldGroupOuterEnd,n(o.FieldGroupOuterEnd,G))},F))}));l.displayName="FieldGroup";export{l as FieldGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import s from"classnames";import{ComponentClassNames as a}from"../shared/constants.js";import{View as i}from"../View/View.js";const o=r.forwardRef(((o,m)=>{var{className:l,children:t,isVisible:c=!0,excludeFromTabOrder:d=!1}=o,n=e(o,["className","children","isVisible","excludeFromTabOrder"]);return c?r.createElement(i,Object.assign({className:s(a.FieldGroupIcon,l),ref:m,tabIndex:d?-1:void 0},n),t):null}));o.displayName="FieldGroupIcon";export{o as FieldGroupIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import
|
|
1
|
+
import{__rest as r}from"tslib";import*as o from"react";import t from"classnames";import{Button as s}from"../Button/Button.js";import{ComponentClassNames as e}from"../shared/constants.js";import{FieldGroupIcon as a}from"./FieldGroupIcon.js";const m=o.forwardRef(((m,n)=>{var{children:c,className:i}=m,l=r(m,["children","className"]);return o.createElement(a,Object.assign({as:s,className:t(e.FieldGroupIconButton,i),ref:n},l),c)}));m.displayName="FieldGroupIconButton";export{m as FieldGroupIconButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import s from"classnames";import{ComponentClassNames as a}from"../shared/constants.js";import{View as m}from"../View/View.js";const t=r.forwardRef(((t,o)=>{var{className:i,children:c}=t,l=e(t,["className","children"]);return r.createElement(m,Object.assign({className:s(a.Flex,i),ref:o},l),c)}));t.displayName="Flex";export{t as Flex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import
|
|
1
|
+
import{__rest as r}from"tslib";import*as e from"react";import s from"classnames";import{ComponentClassNames as a}from"../shared/constants.js";import{View as m}from"../View/View.js";const t=e.forwardRef(((t,i)=>{var{className:o,children:c}=t,l=r(t,["className","children"]);return e.createElement(m,Object.assign({className:s(a.Grid,o),ref:i},l),c)}));t.displayName="Grid";export{t as Grid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import a from"classnames";import{classNameModifier as s,classNameModifierByFlag as t}from"../shared/utils.js";import{ComponentClassNames as i}from"../shared/constants.js";import{View as m}from"../View/View.js";const n={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},o=r.forwardRef(((o,c)=>{var{className:l,children:d,isTruncated:h,level:f=6}=o,p=e(o,["className","children","isTruncated","level"]);return r.createElement(m,Object.assign({as:n[f],className:a(i.Heading,s(i.Heading,f),t(i.Heading,"truncated",h),l),ref:c},p),d)}));o.displayName="Heading";export{o as Heading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as t from"react";import a from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import{View as s}from"../View/View.js";const m={minX:0,minY:0,width:24,height:24},r=t.forwardRef(((r,n)=>{var{className:o,as:h="svg",fill:l="currentColor",pathData:c,viewBox:p=m,children:f,paths:d}=r,w=e(r,["className","as","fill","pathData","viewBox","children","paths"]);const g=p.minX?p.minX:m.minX,v=p.minY?p.minY:m.minY,j=p.width?p.width:m.width,x=p.height?p.height:m.height;let N;return f&&(N=f),d&&(N=d.map(((e,a)=>t.createElement("path",Object.assign({},e,{key:a}))))),c&&(N=t.createElement("path",{d:c,fill:l})),t.createElement(s,Object.assign({as:h,className:a(i.Icon,o),ref:n,viewBox:`${g} ${v} ${j} ${x}`},w),N)}));r.displayName="Icon";export{r as Icon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})))};export{o as IconAdd};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconCheck};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconCheckCircle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import
|
|
1
|
+
import{__rest as s}from"tslib";import e from"classnames";import*as t from"react";import{ComponentClassNames as m}from"../../shared/constants.js";import{View as a}from"../../View/View.js";const r=r=>{const{className:o}=r,c=s(r,["className"]);return t.createElement(a,Object.assign({as:"span",width:"1em",height:"1em",className:e(m.Icon,o)},c))};export{r as IconCheckCircleOutline};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z",fill:"currentColor"})))};export{o as IconChevronLeft};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M9.99984 6L8.58984 7.41L13.1698 12L8.58984 16.59L9.99984 18L15.9998 12L9.99984 6Z",fill:"currentColor"})))};export{o as IconChevronRight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconClose};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))};export{o as IconExpandMore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import
|
|
1
|
+
import{__rest as s}from"tslib";import e from"classnames";import*as t from"react";import{ComponentClassNames as m}from"../../shared/constants.js";import{View as a}from"../../View/View.js";const r=r=>{const{className:o}=r,c=s(r,["className"]);return t.createElement(a,Object.assign({as:"span",width:"1em",height:"1em",className:e(m.Icon,o)},c))};export{r as IconFiberManualRecord};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import
|
|
1
|
+
import{__rest as s}from"tslib";import e from"classnames";import*as t from"react";import{ComponentClassNames as m}from"../../shared/constants.js";import{View as a}from"../../View/View.js";const r=r=>{const{className:o}=r,c=s(r,["className"]);return t.createElement(a,Object.assign({as:"span",width:"1em",height:"1em",className:e(m.Icon,o)},c))};export{r as IconHighlightOff};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as o}from"../../View/View.js";const m=m=>{const{className:a}=m,i=e(m,["className"]);return s.createElement(o,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 0 24 24"},s.createElement("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor",strokeWidth:"3"})))};export{m as IconIndeterminate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})))};export{o as IconMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M19 13H5V11H19V13Z",fill:"currentColor"})))};export{o as IconRemove};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconSearch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconStar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,C=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},C),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{o as IconVisibility};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as C}from"../../shared/constants.js";import{View as r}from"../../View/View.js";const m=m=>{const{className:o}=m,a=e(m,["className"]);return s.createElement(r,Object.assign({as:"span",width:"1em",height:"1em",className:t(C.Icon,o)},a),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.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"})))};export{m as IconVisibilityOff};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import t from"classnames";import*as s from"react";import{ComponentClassNames as r}from"../../shared/constants.js";import{View as m}from"../../View/View.js";const o=o=>{const{className:a}=o,i=e(o,["className"]);return s.createElement(m,Object.assign({as:"span",width:"1em",height:"1em",className:t(r.Icon,a)},i),s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))};export{o as IconWarning};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as a}from"tslib";import*as s from"react";import e from"classnames";import{ComponentClassNames as r}from"../shared/constants.js";import{View as m}from"../View/View.js";const t=s.forwardRef(((t,o)=>{var{className:i}=t,c=a(t,["className"]);return s.createElement(m,Object.assign({as:"img",ref:o,className:e(r.Image,i)},c))}));t.displayName="Image";export{t as Image};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as o from"react";import a from"classnames";import{classNameModifier as t,classNameModifierByFlag as n}from"../shared/utils.js";import{ComponentClassNames as r}from"../shared/constants.js";import{View as s}from"../View/View.js";const i=o.forwardRef(((i,l)=>{var{autoComplete:u,checked:d,className:p,defaultChecked:c,defaultValue:m,id:h,isDisabled:C,isReadOnly:f,isRequired:y,size:v,type:I="text",hasError:k=!1,value:b,variation:R,onBlur:V,onChange:g,onCopy:j,onCut:F,onFocus:N,onInput:O,onPaste:q,onSelect:w,onWheel:z}=i,B=e(i,["autoComplete","checked","className","defaultChecked","defaultValue","id","isDisabled","isReadOnly","isRequired","size","type","hasError","value","variation","onBlur","onChange","onCopy","onCut","onFocus","onInput","onPaste","onSelect","onWheel"]);const D=a(r.Input,r.FieldGroupControl,t(r.Input,R),n(r.Input,"error",k),t(r.Input,v),p);return o.createElement(s,Object.assign({"aria-invalid":k,as:"input",autoComplete:u,checked:d,className:D,"data-size":v,"data-variation":R,defaultChecked:c,defaultValue:m,isDisabled:C,id:h,onBlur:V,onChange:g,onCopy:j,onCut:F,onFocus:N,onInput:O,onPaste:q,onSelect:w,onWheel:z,readOnly:f,ref:l,required:y,type:I,value:b},B))}));i.displayName="Input";export{i as Input};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import s from"classnames";import{ComponentClassNames as r}from"../shared/constants.js";import{View as l}from"../View/View.js";const i=a.forwardRef(((i,m)=>{var{children:t,className:o,visuallyHidden:n}=i,c=e(i,["children","className","visuallyHidden"]);return a.createElement(l,Object.assign({as:"label",className:s(r.Label,o,{[r.VisuallyHidden]:n}),ref:m},c),t)}));i.displayName="Label";export{i as Label};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import o from"classnames";import{ComponentClassNames as s}from"../shared/constants.js";import{View as t}from"../View/View.js";import{useDeprecationWarning as a}from"../../hooks/useDeprecationWarning.js";const i=r.forwardRef(((i,n)=>{var{as:m="a",children:l,className:c,isExternal:p,to:f}=i,d=e(i,["as","children","className","isExternal","to"]);return a({shouldWarn:null!=f,message:"The Link component's to prop will soon be deprecated. Please see the Amplify UI documentation for using the Link component with routing libraries: https://ui.docs.amplify.aws/react/components/link#routing-libraries"}),r.createElement(t,Object.assign({as:m,className:o(s.Link,c),ref:n,rel:p?"noopener noreferrer":void 0,target:p?"_blank":void 0,to:f},d),l)}));i.displayName="Link";export{i as Link};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as t from"react";import a from"classnames";import{classNameModifier as r}from"../shared/utils.js";import{ComponentClassNames as i}from"../shared/constants.js";import{View as l}from"../View/View.js";const s="linear-empty",n="linear-filled",o="circular-empty",c="circular-filled",d=8,m=42,y=84*Math.PI,p=t.forwardRef(((s,n)=>{var{className:o,filledColor:c,emptyColor:d,size:m,variation:p,isDeterminate:f=!1,isPercentageTextHidden:x=!1,percentage:g=0}=s,u=e(s,["className","filledColor","emptyColor","size","variation","isDeterminate","isPercentageTextHidden","percentage"]);g=Math.min(g,100);const v=`${g=Math.max(g,0)}%`,h=a(i.Loader,r(i.Loader,m),r(i.Loader,p),f?i.LoaderDeterminate:null,o),E=t.createElement("g",null,t.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(d)},"data-testid":"linear-empty"}),t.createElement("line",{x1:"0",x2:f?v:"100%",y1:"50%",y2:"50%",style:{stroke:f&&0===g?"none":c?String(c):void 0},"data-testid":"linear-filled"}),f?t.createElement("text",{"aria-live":"polite",className:a(i.LoaderPercentageText,x?i.VisuallyHidden:null),x:`${-1+g}%`,y:"200%"},v):null),k=t.createElement("g",null,t.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(d)},"data-testid":"circular-empty"}),t.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(c),strokeDasharray:f?`${y}% ${y}%`:void 0,strokeDashoffset:f?y-y*g/100+"%":void 0},"data-testid":"circular-filled"}),f?t.createElement("text",{"aria-live":"polite",className:a(i.LoaderPercentageText,x?i.VisuallyHidden:null),x:"130%",y:"80%"},v):null);return t.createElement(l,Object.assign({as:"svg",className:h,"data-size":m,"data-variation":p,ref:n,role:"img"},u),"linear"===p?E:k)}));p.displayName="Loader";export{o as CIRCULAR_EMPTY,c as CIRCULAR_FILLED,d as CIRCULAR_STROKE_WIDTH,y as CIRCUMFERENCE,s as LINEAR_EMPTY,n as LINEAR_FILLED,p as Loader,m as RADIUS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as t from"react";import r from"classnames";import{DropdownMenu as a,DropdownMenuTrigger as n,DropdownMenuContent as i}from"@radix-ui/react-dropdown-menu";import{ButtonGroup as s}from"../ButtonGroup/ButtonGroup.js";import{ComponentClassNames as m}from"../shared/constants.js";import"../View/View.js";import{IconMenu as o}from"../Icon/icons/IconMenu.js";import{MenuButton as l}from"./MenuButton.js";const p="amplify-menu-trigger-test-id",g="amplify-menu-items-group-test-id",u=t.forwardRef(((p,g)=>{var{menuAlign:u="start",children:c,className:d,isOpen:f,size:h,trigger:C,triggerClassName:N,ariaLabel:j,onOpenChange:E}=p,O=e(p,["menuAlign","children","className","isOpen","size","trigger","triggerClassName","ariaLabel","onOpenChange"]);return t.createElement(a,{onOpenChange:E,open:f},t.createElement(n,{asChild:!0},null!=C?C:t.createElement(l,{ariaLabel:j,size:h,testId:"amplify-menu-trigger-test-id",className:r(m.MenuTrigger,N)},t.createElement(o,{size:h}))),t.createElement(i,{align:u,portalled:!1},t.createElement(s,Object.assign({className:r(m.MenuContent,d),ref:g,size:h,testId:"amplify-menu-items-group-test-id"},O),c)))}));u.displayName="Menu";export{g as MENU_ITEMS_GROUP_TEST_ID,p as MENU_TRIGGER_TEST_ID,u as Menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import
|
|
1
|
+
import{__rest as t}from"tslib";import*as a from"react";import s from"classnames";import{Button as e}from"../Button/Button.js";import{classNameModifier as i}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{useStyles as r}from"../shared/styleUtils.js";const l=a.forwardRef(((l,n)=>{var{ariaLabel:d,className:m,children:p,isFullWidth:u=!1,isDisabled:c,isLoading:f,loadingText:y="",size:b,style:h,type:g="button",variation:B,testId:j}=l,v=t(l,["ariaLabel","className","children","isFullWidth","isDisabled","isLoading","loadingText","size","style","type","variation","testId"]);const{propStyles:L,nonStyleProps:N}=r(v,h),x=s(o.Button,i(o.Button,b),i(o.Button,B),m);return a.createElement(e,Object.assign({ref:n,className:x,"data-fullwidth":u,"data-loading":f,"data-size":b,"data-variation":B,disabled:c||f,type:g,"data-testid":j,"aria-label":d,style:L},N),p)}));l.displayName="MenuButton";export{l as MenuButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as t from"react";import r from"classnames";import{DropdownMenuItem as a}from"@radix-ui/react-dropdown-menu";import{ComponentClassNames as m}from"../shared/constants.js";import{MenuButton as i}from"./MenuButton.js";const s="amplify-menu-item-test-id",n=t.forwardRef(((s,n)=>{var{children:o,className:c,variation:l}=s,d=e(s,["children","className","variation"]);return t.createElement(a,{asChild:!0,ref:n},t.createElement(i,Object.assign({className:r(m.MenuItem,c),testId:"amplify-menu-item-test-id"},d,{variation:"menu"}),o))}));n.displayName="MenuItem";export{s as MENU_ITEM_TEST_ID,n as MenuItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import t from"classnames";import{Flex as r}from"../Flex/Flex.js";import{View as s}from"../View/View.js";import{usePaginationItems as n}from"./usePaginationItems.js";import{ComponentClassNames as o}from"../shared/constants.js";const i=a.forwardRef(((i,l)=>{var{className:m,currentPage:g=1,totalPages:c,hasMorePages:p=!1,siblingCount:u,currentPageLabel:P,pageLabel:b,previousLabel:f,nextLabel:L,onNext:x,onPrevious:h,onChange:j}=i,v=e(i,["className","currentPage","totalPages","hasMorePages","siblingCount","currentPageLabel","pageLabel","previousLabel","nextLabel","onNext","onPrevious","onChange"]);const N=n(g,c,p,u,P,b,f,L,x,h,j);return a.createElement(s,Object.assign({as:"nav",className:t(o.Pagination,m),ref:l},v),a.createElement(r,{as:"ol",justifyContent:"center",alignItems:"center",gap:"inherit"},N))}));i.displayName="Pagination";export{i as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import t from"classnames";import{Button as i}from"../Button/Button.js";import{Flex as n}from"../Flex/Flex.js";import{ComponentClassNames as s,ComponentText as l}from"../shared/constants.js";import{View as r}from"../View/View.js";import{IconChevronLeft as o}from"../Icon/icons/IconChevronLeft.js";import{IconChevronRight as m}from"../Icon/icons/IconChevronRight.js";import{VisuallyHidden as c}from"../VisuallyHidden/VisuallyHidden.js";import{classNameModifier as u,classNameModifierByFlag as g}from"../shared/utils.js";const p="current",b="ellipsis",I=p=>{var{type:b,page:I,currentPage:d,currentPageLabel:P=l.PaginationItem.currentPageLabel,isDisabled:k,onClick:E,ariaLabel:j}=p,f=e(p,["type","page","currentPage","currentPageLabel","isDisabled","onClick","ariaLabel"]);const C=a.useCallback((()=>{E(I,d)}),[I,d,E]),B=a.useCallback((()=>{E()}),[E]),L=a.useCallback((()=>{E()}),[E]),v=t(s.PaginationItemButton,u(s.PaginationItemButton,"link"),g(s.PaginationItemButton,"disabled",k)),h=t(s.PaginationItemButton,u(s.PaginationItemButton,"link"),g(s.PaginationItemButton,"disabled",k));switch(b){case"page":return a.createElement(r,{as:"li"},I===d?a.createElement(n,Object.assign({"aria-current":"page",as:"button",className:s.PaginationItemCurrent,testId:"current"},f),a.createElement(c,null,P,":"),I):a.createElement(i,Object.assign({className:t(s.PaginationItemButton,u(s.PaginationItemButton,"link")),size:"small",variation:"link",onClick:C,ariaLabel:j},f),I));case"next":return a.createElement(r,{as:"li"},a.createElement(i,Object.assign({className:v,size:"small",variation:"link",isDisabled:k,onClick:L,ariaLabel:j},f),a.createElement(m,{size:"large"})));case"previous":return a.createElement(r,{as:"li"},a.createElement(i,Object.assign({className:h,size:"small",variation:"link",isDisabled:k,onClick:B,ariaLabel:j},f),a.createElement(o,{size:"large"})));case"ellipsis":return a.createElement(r,{as:"li"},a.createElement(n,Object.assign({as:"span",className:s.PaginationItemEllipsis,testId:"ellipsis"},f),"…"))}return a.createElement(r,{as:"li"})};I.displayName="PaginationItem";export{p as PAGINATION_CURRENT_TEST_ID,b as PAGINATION_ELLIPSIS_TEST_ID,I as PaginationItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as e from"react";import{useRange as a,ELLIPSIS as t}from"./useRange.js";import{PaginationItem as r}from"./PaginationItem.js";import{ComponentText as i}from"../shared/constants.js";const n=(n,s,o,l,m=i.PaginationItem.currentPageLabel,p=i.PaginationItem.pageLabel,c=i.PaginationItem.previousLabel,g=i.PaginationItem.nextLabel,u,b,P)=>{const y=e.createElement(r,{type:"previous",key:"previous",currentPage:n,onClick:b,isDisabled:n<=1,ariaLabel:c}),L=e.createElement(r,{type:"next",key:"next",currentPage:n,onClick:u,isDisabled:n>=s&&!o,ariaLabel:g}),k=a(n,s,l);return[y,...e.useMemo((()=>k.map(((a,i)=>a===t?e.createElement(r,{type:"ellipsis",key:1===i?"start-ellipsis":"end-ellipsis"}):e.createElement(r,{key:a,type:"page",page:a,currentPage:n,currentPageLabel:m,onClick:P,ariaLabel:`${p} ${a}`})))),[k,n,m,p,P]),L]};export{n as usePaginationItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import
|
|
1
|
+
import{__rest as s}from"tslib";import e from"classnames";import*as o from"react";import{ComponentClassNames as a}from"../shared/constants.js";import{ShowPasswordButton as t}from"./ShowPasswordButton.js";import{TextField as r}from"../TextField/TextField.js";const l=o.forwardRef(((l,d)=>{var{autoComplete:w="current-password",label:n,className:i,hideShowPassword:p=!1,passwordIsHiddenLabel:m,passwordIsShownLabel:u,showPasswordButtonLabel:b,showPasswordButtonRef:c,size:h}=l,f=s(l,["autoComplete","label","className","hideShowPassword","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","showPasswordButtonRef","size"]);const[P,L]=o.useState("password"),S=o.useCallback((()=>{L("password"===P?"text":"password")}),[L,P]);return o.createElement(r,Object.assign({autoComplete:w,isMultiline:!1,outerEndComponent:p?null:o.createElement(t,{fieldType:P,onClick:S,passwordIsHiddenLabel:m,passwordIsShownLabel:u,ref:c,size:h,showPasswordButtonLabel:b}),size:h,type:P,label:n,className:e(a.PasswordField,i),ref:d},f))}));l.displayName="PasswordField";export{l as PasswordField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as s}from"tslib";import
|
|
1
|
+
import{__rest as s}from"tslib";import*as e from"react";import{Button as o}from"../Button/Button.js";import{VisuallyHidden as r}from"../VisuallyHidden/VisuallyHidden.js";import{ComponentClassNames as a,ComponentText as i}from"../shared/constants.js";import"classnames";import"../View/View.js";import{IconVisibilityOff as t}from"../Icon/icons/IconVisibilityOff.js";import{IconVisibility as d}from"../Icon/icons/IconVisibility.js";const{passwordIsHidden:n,passwordIsShown:l,showPassword:w}=i.PasswordField,m=e.forwardRef(((i,m)=>{var{fieldType:p,passwordIsHiddenLabel:c=n,passwordIsShownLabel:f=l,showPasswordButtonLabel:b=w,size:h}=i,I=s(i,["fieldType","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","size"]);return e.createElement(o,Object.assign({"aria-checked":"password"!==p,ariaLabel:b,className:a.FieldShowPassword,ref:m,role:"switch",size:h},I),e.createElement(r,{"aria-live":"polite"},"password"===p?c:f),"password"===p?e.createElement(d,{size:h}):e.createElement(t,{size:h}))}));m.displayName="ShowPasswordButton";export{m as ShowPasswordButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import t from"classnames";import{countryDialCodes as o}from"@aws-amplify/ui";import{ComponentClassNames as l}from"../shared/constants.js";import{SelectField as s}from"../SelectField/SelectField.js";const r=a.forwardRef(((r,i)=>{var{className:m,dialCodeList:d,isReadOnly:c}=r,n=e(r,["className","dialCodeList","isReadOnly"]);const p=null!=d?d:o,f=a.useMemo((()=>p.map((e=>a.createElement("option",{key:e,value:e,disabled:c},e)))),[p,c]);return a.createElement(s,Object.assign({"aria-disabled":c,autoComplete:"tel-country-code",className:t(l.CountryCodeSelect,l.DialCodeSelect,m),labelHidden:!0,ref:i},n),f)}));r.displayName="CountryCodeSelect";export{r as CountryCodeSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as o from"react";import a from"classnames";import{ComponentClassNames as t,ComponentText as i}from"../shared/constants.js";import{CountryCodeSelect as l}from"./CountryCodeSelect.js";import{TextField as r}from"../TextField/TextField.js";const d=o.forwardRef(((d,n)=>{var{autoComplete:s="tel-national",className:C,countryCodeName:m,countryCodeLabel:u=i.PhoneNumberField.countryCodeLabel,countryCodeRef:c,defaultCountryCode:y,defaultDialCode:f,dialCodeLabel:p=i.PhoneNumberField.countryCodeLabel,dialCodeList:b,dialCodeName:h,dialCodeRef:N,hasError:L,isDisabled:R,isReadOnly:D,onCountryCodeChange:g,onDialCodeChange:E,onInput:F,size:v,type:O,variation:j}=d,z=e(d,["autoComplete","className","countryCodeName","countryCodeLabel","countryCodeRef","defaultCountryCode","defaultDialCode","dialCodeLabel","dialCodeList","dialCodeName","dialCodeRef","hasError","isDisabled","isReadOnly","onCountryCodeChange","onDialCodeChange","onInput","size","type","variation"]);const P=h||m,x=p||u,I=f||y,S=E||g,T=N||c;return o.createElement(r,Object.assign({outerStartComponent:o.createElement(l,{defaultValue:I,dialCodeList:b,className:C,hasError:L,isDisabled:R,isReadOnly:D,label:x,name:P,onChange:S,ref:T,size:v,variation:j}),autoComplete:s,className:a(t.PhoneNumberField,C),hasError:L,isDisabled:R,isReadOnly:D,isMultiline:!1,onInput:F,ref:n,size:v,type:"tel",variation:j},z))}));d.displayName="PhoneNumberField";export{d as PhoneNumberField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import a from"classnames";import{classNameModifier as s}from"../shared/utils.js";import{ComponentClassNames as o}from"../shared/constants.js";import{View as t}from"../View/View.js";const m=r.forwardRef(((m,i)=>{var{className:l,children:c,isLoaded:d,size:n}=m,f=e(m,["className","children","isLoaded","size"]);return d?r.createElement(r.Fragment,null,c):r.createElement(t,Object.assign({className:a(o.Placeholder,s(o.Placeholder,n),l),"data-size":n,ref:i},f))}));m.displayName="Placeholder";export{m as Placeholder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import i from"classnames";import{classNameModifierByFlag as t,classNameModifier as o}from"../shared/utils.js";import{ComponentClassNames as s}from"../shared/constants.js";import{Flex as d}from"../Flex/Flex.js";import{Input as r}from"../Input/Input.js";import{Text as l}from"../Text/Text.js";import{useRadioGroupContext as n}from"../RadioGroupField/context.js";const m=(m,p)=>{var{children:c,className:h,id:u,isDisabled:b,testId:f,value:R,labelPosition:g,height:v,width:j,bottom:N,left:x,position:E,padding:I,right:y,top:w}=m,D=e(m,["children","className","id","isDisabled","testId","value","labelPosition","height","width","bottom","left","position","padding","right","top"]);const{currentValue:C,defaultValue:F,name:O,hasError:P,isGroupDisabled:V,isRequired:k,isReadOnly:q,onChange:z,size:B,labelPosition:G}=n(),T=V||b||q&&F!==R,H=void 0!==C?R===C:void 0,L=void 0!==F?R===F:void 0,A=g||G;return a.createElement(d,{as:"label",className:i(s.Radio,t(s.Radio,"disabled",T),h),"data-disabled":T,"data-label-position":A,width:j,bottom:N,top:w,right:y,left:x,position:E,padding:I},c&&a.createElement(l,{as:"span",className:s.RadioLabel,"data-disabled":T},c),a.createElement(r,Object.assign({checked:H,className:i(s.VisuallyHidden,s.RadioInput),defaultChecked:L,hasError:P,id:u,isDisabled:T,isReadOnly:q,isRequired:k,onChange:z,ref:p,type:"radio",name:O,value:R},D)),a.createElement(d,{"aria-hidden":"true",as:"span",className:i(s.RadioButton,o(s.RadioButton,B)),"data-size":B,testId:f}))},p=a.forwardRef(m);p.displayName="Radio";export{p as Radio,m as RadioPrimitive};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import a from"classnames";import{ComponentClassNames as i}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as l}from"../Field/FieldDescription.js";import{FieldErrorMessage as s}from"../Field/FieldErrorMessage.js";import{Flex as o}from"../Flex/Flex.js";import{Label as d}from"../Label/Label.js";import{RadioGroupContext as t}from"./context.js";import{useStableId as n}from"../utils/useStableId.js";const m=r.forwardRef(((m,c)=>{var{children:u,className:p,defaultValue:b,descriptiveText:f,errorMessage:E,hasError:F=!1,id:h,isDisabled:v,isRequired:R,isReadOnly:g,label:j,labelHidden:x=!1,labelPosition:y,onChange:M,name:N,size:z,value:C}=m,D=e(m,["children","className","defaultValue","descriptiveText","errorMessage","hasError","id","isDisabled","isRequired","isReadOnly","label","labelHidden","labelPosition","onChange","name","size","value"]);const G=n(h),H=n(),O=n(),P=f?O:void 0,V=r.useMemo((()=>({currentValue:C,defaultValue:b,hasError:F,isRequired:R,isReadOnly:g,isGroupDisabled:v,onChange:M,size:z,name:N,labelPosition:y})),[b,F,v,R,g,M,z,N,C,y]);return r.createElement(o,Object.assign({className:a(i.Field,i.RadioGroupField,p),"data-size":z,ref:c},D),r.createElement(d,{id:H,visuallyHidden:x},j),r.createElement(l,{id:O,labelHidden:x,descriptiveText:f}),r.createElement(o,{"aria-describedby":P,"aria-labelledby":H,className:i.RadioGroup,id:G,role:"radiogroup"},r.createElement(t.Provider,{value:V},u)),r.createElement(s,{hasError:F,errorMessage:E}))}));m.displayName="RadioGroupField";export{m as RadioGroupField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import*as o from"react";import t from"classnames";import{classNameModifier as i}from"../shared/utils.js";import{ComponentClassNames as l}from"../shared/constants.js";import{Flex as r}from"../Flex/Flex.js";import"../View/View.js";import{IconStar as a}from"../Icon/icons/IconStar.js";import{isIconFilled as m,isIconEmpty as n,isIconMixed as s}from"./utils.js";import{RatingIcon as c}from"./RatingIcon.js";import{RatingMixedIcon as f}from"./RatingMixedIcon.js";import{VisuallyHidden as p}from"../VisuallyHidden/VisuallyHidden.js";const y=5,u=0,d=o.forwardRef(((d,g)=>{var{className:j,emptyColor:I,emptyIcon:x,fillColor:C,icon:E=o.createElement(a,null),maxValue:N=y,size:R,value:V=u}=d,v=e(d,["className","emptyColor","emptyIcon","fillColor","icon","maxValue","size","value"]);const w=new Array(Math.ceil(N)).fill(1).map(((e,t)=>{const i=t+1;return m(i,V)?o.createElement(c,{key:t.toString(),icon:E,fill:C,className:"amplify-rating-icon-filled"}):n(i,V)?o.createElement(c,{key:t.toString(),icon:x||E,fill:I,className:"amplify-rating-icon-empty"}):s(i,V)?o.createElement(f,{key:t.toString(),fillIcon:E,emptyIcon:x||E,value:V,fillColor:C,emptyColor:I}):void 0}));return o.createElement(r,Object.assign({className:t(l.Rating,i(l.Rating,R),j),"data-size":R,ref:g},v),w,o.createElement(p,null,V," out of ",N," rating"))}));d.displayName="Rating";export{d as Rating};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as a from"react";import e from"classnames";import{View as s}from"../View/View.js";const i=({icon:i,fill:r,className:m})=>a.createElement(s,{as:"span",className:"amplify-rating-icon-container","aria-hidden":"true"},a.createElement(s,{as:"span",className:e(m),color:r},i));i.displayName="RatingIcon";export{i as RatingIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as a from"react";import e from"classnames";import{View as i}from"../View/View.js";const l=({emptyColor:l,emptyIcon:n,fillColor:t,fillIcon:r,value:m})=>{const s=m%1*100+"%";return a.createElement(i,{as:"span",className:"amplify-rating-icon-container","aria-hidden":"true"},a.createElement(i,{as:"span",className:"amplify-rating-label"},a.createElement(i,{as:"span",className:e("amplify-rating-icon","amplify-rating-icon-empty"),color:l},n)),a.createElement(i,{as:"span",className:"amplify-rating-label",width:s},a.createElement(i,{as:"span",className:e("amplify-rating-icon","amplify-rating-icon-filled"),color:t},r)))};l.displayName="RatingMixedIcon";export{l as RatingMixedIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import
|
|
1
|
+
import{__rest as r}from"tslib";import*as e from"react";import o from"classnames";import{classNameModifier as a}from"../shared/utils.js";import{ComponentClassNames as t}from"../shared/constants.js";import{View as i}from"../View/View.js";const s=e.forwardRef(((s,m)=>{var{children:l,className:n,orientation:c}=s,f=r(s,["children","className","orientation"]);return e.createElement(i,Object.assign({className:o(t.ScrollView,a(t.ScrollView,c),n),"data-orientation":c,ref:m},f),l)}));s.displayName="ScrollView";export{s as ScrollView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import o from"classnames";import*as i from"react";import{ComponentClassNames as a}from"../shared/constants.js";import{FieldClearButton as r}from"../Field/FieldClearButton.js";import"../Field/FieldDescription.js";import"../Field/FieldErrorMessage.js";import{strHasLength as t}from"../shared/utils.js";import{SearchFieldButton as l}from"./SearchFieldButton.js";import{TextField as n}from"../TextField/TextField.js";import{useSearchField as s}from"./useSearchField.js";const m=i.forwardRef(((m,d)=>{var{autoComplete:c="off",className:p,isDisabled:u,clearButtonLabel:f,labelHidden:b=!0,name:C="q",onSubmit:F,onClear:j,searchButtonRef:h,size:D}=m,S=e(m,["autoComplete","className","isDisabled","clearButtonLabel","labelHidden","name","onSubmit","onClear","searchButtonRef","size"]);const{value:B,onClearHandler:E,onInput:x,onKeyDown:z,onClick:R,composedRefs:k}=s({onSubmit:F,onClear:j,externalRef:d});return i.createElement(n,Object.assign({autoComplete:c,className:o(a.SearchField,p),labelHidden:b,innerEndComponent:i.createElement(r,{ariaLabel:f,excludeFromTabOrder:!0,isVisible:t(B),onClick:E,size:D,variation:"link"}),isDisabled:u,isMultiline:!1,name:C,onInput:x,onKeyDown:z,outerEndComponent:i.createElement(l,{isDisabled:u,onClick:R,ref:h,size:D}),ref:k,size:D,value:B},S))}));m.displayName="SearchField";export{m as SearchField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as e from"react";import{ComponentClassNames as r,ComponentText as o}from"../shared/constants.js";import"../FieldGroupIcon/FieldGroupIcon.js";import{FieldGroupIconButton as t}from"../FieldGroupIcon/FieldGroupIconButton.js";import"tslib";import"classnames";import"../View/View.js";import{IconSearch as i}from"../Icon/icons/IconSearch.js";const a=o.SearchField.searchButtonLabel,s=e.forwardRef(((o,s)=>e.createElement(t,Object.assign({ariaLabel:a,className:r.SearchFieldSearch,ref:s,type:"submit"},o),e.createElement(i,{size:o.size}))));s.displayName="SearchFieldButton";export{s as SearchFieldButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as a from"react";import r from"classnames";import{classNameModifier as o,classNameModifierByFlag as l}from"../shared/utils.js";import{ComponentClassNames as t}from"../shared/constants.js";import{Flex as i}from"../Flex/Flex.js";import{View as s}from"../View/View.js";import{IconExpandMore as c}from"../Icon/icons/IconExpandMore.js";const m=a.forwardRef(((m,n)=>{var{autoComplete:d,className:p,size:u,variation:f,value:v,defaultValue:h,hasError:E,icon:S=a.createElement(c,null),iconColor:j,children:C,placeholder:N,isDisabled:b,isRequired:V}=m,x=e(m,["autoComplete","className","size","variation","value","defaultValue","hasError","icon","iconColor","children","placeholder","isDisabled","isRequired"]);const q=void 0===v&&void 0===h&&N,w=r(t.Select,t.FieldGroupControl,o(t.Select,u),o(t.Select,f),l(t.Select,"error",E),p);return a.createElement(s,{className:t.SelectWrapper},a.createElement(s,Object.assign({"aria-invalid":E,as:"select",autoComplete:d,value:v,defaultValue:q?"":h,isDisabled:b,required:V,"data-size":u,"data-variation":f,className:w,ref:n},x),N&&a.createElement("option",{value:""},N),C),a.createElement(i,{className:t.SelectIconWrapper,color:j},S))}));m.displayName="Select";export{m as Select};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import
|
|
1
|
+
import{__rest as e}from"tslib";import*as r from"react";import t from"classnames";import{ComponentClassNames as s}from"../shared/constants.js";import"../Field/FieldClearButton.js";import{FieldDescription as i}from"../Field/FieldDescription.js";import{FieldErrorMessage as l}from"../Field/FieldErrorMessage.js";import{Flex as o}from"../Flex/Flex.js";import{Label as a}from"../Label/Label.js";import{Select as d}from"../Select/Select.js";import{splitPrimitiveProps as n}from"../shared/styleUtils.js";import{useStableId as m}from"../utils/useStableId.js";const c=r.forwardRef(((c,p)=>{const{children:f,className:h,descriptiveText:b,errorMessage:F,hasError:j=!1,id:E,label:u,labelHidden:g=!1,options:v,size:y,testId:S}=c,x=e(c,["children","className","descriptiveText","errorMessage","hasError","id","label","labelHidden","options","size","testId"]),I=m(E),z=m(),H=b?z:void 0,{flexContainerStyleProps:M,baseStyleProps:N,rest:T}=n(x);return r.createElement(o,Object.assign({className:t(s.Field,s.SelectField,h),"data-size":y,testId:S},N,M),r.createElement(a,{htmlFor:I,visuallyHidden:g},u),r.createElement(i,{id:z,labelHidden:g,descriptiveText:b}),r.createElement(d,Object.assign({"aria-describedby":H,hasError:j,id:I,ref:p,size:y},T),(({children:e,options:t})=>e?((null==t?void 0:t.length)&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),e):null==t?void 0:t.map(((e,t)=>r.createElement("option",{label:e,value:e,key:`${e}-${t}`},e))))({children:f,options:v})),r.createElement(l,{hasError:j,errorMessage:F}))}));c.displayName="SelectField";export{c as SelectField};
|