@aws-amplify/ui 5.4.2 → 5.5.1

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.
@@ -1 +1 @@
1
- import{getActorState as r}from"../actor.js";import{defaultFormFieldsGetters as o}from"./defaults.js";import{applyTranslation as t,applyDefaults as i,sortFormFields as n}from"./util.js";var e=function(r,i){var n=(0,o[r])(i);return t(n)},u=function(o,t){var n,u,f=e(o,t),l=(null===(u=null===(n=r(t).context)||void 0===n?void 0:n.formFields)||void 0===u?void 0:u[o])||{},v=i(f,l);return delete v.QR,v},f=function(r,o){var t=u(r,o);return n(t)};export{e as getDefaultFormFields,u as getFormFields,f as getSortedFormFields};
1
+ import{__assign as r}from"tslib";import{getActorState as o}from"../actor.js";import{defaultFormFieldsGetters as t}from"./defaults.js";import{applyTranslation as n,applyDefaults as i,sortFormFields as u}from"./util.js";var e=function(r,o){var i=(0,t[r])(o);return n(i)},f=function(r,t){var n,u,f=e(r,t),m=(null===(u=null===(n=o(t).context)||void 0===n?void 0:n.formFields)||void 0===u?void 0:u[r])||{},d=i(f,m);return delete d.QR,d},m=function(o){return o.map((function(o){return[o[0],r(r({},o[1]),{order:void 0})]}))},d=function(r,o){var t=f(r,o);return m(u(t))};export{e as getDefaultFormFields,f as getFormFields,d as getSortedFormFields,m as removeOrderKeys};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as n}from"tslib";import{Hub as e}from"aws-amplify";import{appendToCognitoUserAgent as r}from"@aws-amplify/auth";import{waitFor as a}from"xstate/lib/waitFor";import{ALLOWED_SPECIAL_CHARACTERS as o}from"./constants.js";import{getActorState as c}from"./actor.js";var u=function(t){var n=t.packageName,e=t.version;r("".concat(n,"/").concat(e))},i=function(t){for(var n=t.trim().split(""),e=0;e<n.length;e++)e>0&&e<n.length-1&&(n[e]="*");return n.join("")},s=function(t){if(t.length<4)return t;for(var n=t.split(""),e=0;e<n.length-4;e++)n[e]="*";return n.join("")},f=function(e){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,a(e,(function(t){return c(t).matches("autoSignIn")}))];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},h=function(e,r){return t(void 0,void 0,void 0,(function(){var t,a,o,u;return n(this,(function(n){switch(n.label){case 0:switch(t=r.send,a=r.getSnapshot(),e.payload.event){case"tokenRefresh":return[3,1];case"autoSignIn":return[3,2];case"autoSignIn_failure":return[3,5];case"signOut":case"tokenRefresh_failure":return[3,7]}return[3,8];case 1:return a.matches("authenticated.idle")&&t("TOKEN_REFRESH"),[3,9];case 2:return a.matches("authenticated")?[3,4]:[4,f(r)];case 3:n.sent(),(null==(o=c(r.getSnapshot()))?void 0:o.matches("autoSignIn"))&&t({type:"AUTO_SIGN_IN",data:e.payload.data}),n.label=4;case 4:return[3,9];case 5:return[4,f(r)];case 6:return n.sent(),(null==(u=c(r.getSnapshot()))?void 0:u.matches("autoSignIn"))&&t({type:"AUTO_SIGN_IN_FAILURE",data:e.payload.data}),[3,9];case 7:return a.matches("authenticated.idle")&&t("SIGN_OUT"),[3,9];case 8:return[3,9];case 9:return[2]}}))}))},l=function(t,n){return void 0===n&&(n=h),e.listen("auth",function(t,n){return function(e){n(e,t)}}(t,n),"authenticator-hub-handler")},d=function(t){return o.some((function(n){return t.includes(n)}))},m=function(t,n,e){return encodeURI("otpauth://totp/".concat(t,":").concat(n,"?secret=").concat(e,"&issuer=").concat(t))};export{i as censorAllButFirstAndLast,s as censorPhoneNumber,u as configureComponent,h as defaultAuthHubHandler,m as getTotpCodeURL,d as hasSpecialChars,l as listenToAuthHub};
1
+ import{__awaiter as t,__generator as n,__assign as e}from"tslib";import{Hub as r}from"aws-amplify";import{appendToCognitoUserAgent as a}from"@aws-amplify/auth";import{waitFor as o}from"xstate/lib/waitFor";import{ALLOWED_SPECIAL_CHARACTERS as u}from"./constants.js";import{getActorState as c}from"./actor.js";var i=function(t){var n=t.packageName,e=t.version;a("".concat(n,"/").concat(e))},s=function(t){for(var n=t.trim().split(""),e=0;e<n.length;e++)e>0&&e<n.length-1&&(n[e]="*");return n.join("")},f=function(t){if(t.length<4)return t;for(var n=t.split(""),e=0;e<n.length-4;e++)n[e]="*";return n.join("")},l=function(e){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,o(e,(function(t){return c(t).matches("autoSignIn")}))];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},h=function(e,r){return t(void 0,void 0,void 0,(function(){var t,a,o,u;return n(this,(function(n){switch(n.label){case 0:switch(t=r.send,a=r.getSnapshot(),e.payload.event){case"tokenRefresh":return[3,1];case"autoSignIn":return[3,2];case"autoSignIn_failure":return[3,5];case"signOut":case"tokenRefresh_failure":return[3,7]}return[3,8];case 1:return a.matches("authenticated.idle")&&t("TOKEN_REFRESH"),[3,9];case 2:return a.matches("authenticated")?[3,4]:[4,l(r)];case 3:n.sent(),(null==(o=c(r.getSnapshot()))?void 0:o.matches("autoSignIn"))&&t({type:"AUTO_SIGN_IN",data:e.payload.data}),n.label=4;case 4:return[3,9];case 5:return[4,l(r)];case 6:return n.sent(),(null==(u=c(r.getSnapshot()))?void 0:u.matches("autoSignIn"))&&t({type:"AUTO_SIGN_IN_FAILURE",data:e.payload.data}),[3,9];case 7:return a.matches("authenticated.idle")&&t("SIGN_OUT"),[3,9];case 8:return[3,9];case 9:return[2]}}))}))},d=function(t,n){return void 0===n&&(n=h),r.listen("auth",function(t,n){return function(e){n(e,t)}}(t,n),"authenticator-hub-handler")},m=function(t){return u.some((function(n){return t.includes(n)}))},p=function(t,n,e){return encodeURI("otpauth://totp/".concat(t,":").concat(n,"?secret=").concat(e,"&issuer=").concat(t))};function v(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return Object.entries(t).reduce((function(t,r){var a,o=r[0],u=r[1];return e(e({},t),((a={})[o]=n.includes(o)?u:null==u?void 0:u.trim(),a))}),{})}export{s as censorAllButFirstAndLast,f as censorPhoneNumber,i as configureComponent,h as defaultAuthHubHandler,p as getTotpCodeURL,m as hasSpecialChars,d as listenToAuthHub,v as trimValues};
@@ -1 +1 @@
1
- import{__rest as e,__assign as r}from"tslib";import{Storage as a}from"aws-amplify";import{translate as l}from"../../../../i18n/translations.js";function t(l){var t=l.file,i=l.fileName,o=l.level,n=void 0===o?"private":o,s=l.progressCallback,p=l.errorCallback,c=l.completeCallback,u=l.isResumable,m=void 0!==u&&u,b=e(l,["file","fileName","level","progressCallback","errorCallback","completeCallback","isResumable"]);return!0===m?a.put(i,t,r({level:n,resumable:m,progressCallback:s,errorCallback:p,completeCallback:c},b)):a.put(i,t,r({level:n,resumable:!1,progressCallback:s},b)).then(c,p)}function i(e,r,a){void 0===r&&(r=!1),void 0===a&&(a=1);var l=r?1e3:1024;if(Math.abs(e)<l)return e+" B";var t=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=-1,o=Math.pow(10,a);do{e/=l,++i}while(Math.round(Math.abs(e)*o)/o>=l&&i<t.length-1);return e.toFixed(a)+" "+t[i]}var o=function(e,r){return e&&r.size>e?l("Above max ")+i(e,!0):null},n=function(e,r){return e.filter((function(e){var a=e.name||"",l=(e.type||"").toLowerCase(),t=l.replace(/\/.*$/,"");return r.some((function(e){var r=e.trim().toLowerCase();return"."===r.charAt(0)?a.toLowerCase().endsWith(r):r.endsWith("/*")?t===r.replace(/\/.*$/,""):l===r}))}))},s=function(e,r){var a=e.split(".").pop();return r.split(".").pop()===a};export{o as checkMaxSize,i as humanFileSize,s as isValidExtension,n as returnAcceptedFiles,t as uploadFile};
1
+ import{__rest as e,__assign as r}from"tslib";import{Storage as l}from"aws-amplify";import{translate as a}from"../../../../i18n/translations.js";function t(a){var t=a.file,i=a.fileName,o=a.level,n=void 0===o?"private":o,s=a.progressCallback,p=a.errorCallback,u=a.completeCallback,c=a.isResumable,m=void 0!==c&&c,b=e(a,["file","fileName","level","progressCallback","errorCallback","completeCallback","isResumable"]);return!0===m?l.put(i,t,r({level:n,resumable:m,progressCallback:s,errorCallback:p,completeCallback:u},b)):l.put(i,t,r({level:n,resumable:!1,progressCallback:s},b)).then(u,p)}function i(e,r,l){void 0===r&&(r=!1),void 0===l&&(l=1);var a=r?1e3:1024;if(Math.abs(e)<a)return e+" B";var t=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=-1,o=Math.pow(10,l);do{e/=a,++i}while(Math.round(Math.abs(e)*o)/o>=a&&i<t.length-1);return e.toFixed(l)+" "+t[i]}var o=function(e,r){return e&&r.size>e?a("File size must be below ")+i(e,!0):null},n=function(e,r){return e.filter((function(e){var l=e.name||"",a=(e.type||"").toLowerCase(),t=a.replace(/\/.*$/,"");return r.some((function(e){var r=e.trim().toLowerCase();return"."===r.charAt(0)?l.toLowerCase().endsWith(r):r.endsWith("/*")?t===r.replace(/\/.*$/,""):a===r}))}))},s=function(e,r){var l=e.split(".").pop();return r.split(".").pop()===l};export{o as checkMaxSize,i as humanFileSize,s as isValidExtension,n as returnAcceptedFiles,t as uploadFile};
@@ -0,0 +1 @@
1
+ var e={"Account recovery requires verified contact information":"Відновлення облікового запису потребує контактної інформації","Back to Sign In":"Назад на сторінку входу","Change Password":"Змінити пароль",Changing:"Змінюємо",Code:"Код","Confirm Password":"Підтвердіть пароль","Confirm Sign Up":"Підтвердіть реєстрацію","Confirm SMS Code":"Підтвердіть SMS код","Confirm TOTP Code":"Підтвердіть TOTP код",Confirm:"Підтвердити","Confirmation Code":"Код підтвердження",Confirming:"Підтверджуємо","Create a new account":"Зареєструватися","Create Account":"Зареєструватися","Creating Account":"Реєструємо","Dismiss alert":"Відхилити сповіщення",Email:"Email","Enter your code":"Введіть код","Enter your email":"Введіть ваш email","Enter your phone number":"Введіть ваш номер телефону","Enter your username":"Введіть ваше імʼя користувача","Forgot password?":"Забули пароль?","Forgot your password?":"Забули ваш пароль?","Hide password":"Сховати пароль","It may take a minute to arrive":"Доставка може тривати хвилину",Loading:"Загружаємо","New password":"Новий пароль",Password:"Пароль","Phone Number":"Номер Телефону","Resend Code":"Відправити код повторно","Reset your password":"Скинути пароль","Reset your Password":"Скинути пароль","Send code":"Відправити код","Send Code":"Відправити код",Sending:"Відправляємо","Setup TOTP":"Налаштувати TOTP","Show password":"Показати пароль","Sign in to your account":"Увійти у ваш обліковий запис","Sign In with Amazon":"Увійти з Amazon","Sign In with Apple":"Увійти з Apple","Sign In with Facebook":"Увійти з Facebook","Sign In with Google":"Увійти з Google","Sign in":"Увійти","Sign In":"Увійти","Signing in":"Входимо",Skip:"Пропустити",Submit:"Відправити",Submitting:"Відправляємо",Username:"Імʼя користувача","Verify Contact":"Підтвердити Контакт",Verify:"Підтвердити","We Emailed You":"Ми відправили вам Email","We Sent A Code":"Ми відправили код","We Texted You":"Ми відправили вам текстове повідомлення","Your code is on the way. To log in, enter the code we emailed to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам на Email","Your code is on the way. To log in, enter the code we sent you":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми вам відправили","Your code is on the way. To log in, enter the code we texted to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам текстовим повідомленням","An account with the given email already exists.":"Обліковий запис з цим Email вже існує.","Confirm a Code":"Підтвердіть код","Confirm Sign In":"Підтвердіть вхід","Forgot Password":"Забули пароль","Incorrect username or password.":"Невірне імʼя користувача або пароль","Invalid password format":"Невірний формат паролю","Invalid phone number format":"Невірний формат номеру телефону","Loading...":"Загружаємо...","New Password":"Новий пароль",or:"або","Resend a Code":"Відправити код повторно","Reset Password":"Скинути пароль","Sign Out":"Вийти","Sign Up with Amazon":"Зареєструватися з Amazon","Sign Up with Apple":"Зареєструватися з Apple","Sign Up with Facebook":"Зареєструватися з Facebook","Sign Up with Google":"Зареєструватися з Google","Sign Up":"Зареєструватися","User already exists":"Користувач вже існує","User does not exist":"Такий користувач не існує","Username cannot be empty":"Імʼя користувача не може бути пустим","Your passwords must match":"Паролі мають збігатися"};export{e as uaDict};
@@ -1 +1 @@
1
- import{__assign as t}from"tslib";import{deDict as r}from"./authenticator/de.js";import{enDict as a}from"./authenticator/en.js";import{esDict as i}from"./authenticator/es.js";import{frDict as o}from"./authenticator/fr.js";import{itDict as s}from"./authenticator/it.js";import{jaDict as m}from"./authenticator/ja.js";import{krDict as c}from"./authenticator/kr.js";import{nlDict as e}from"./authenticator/nl.js";import{plDict as p}from"./authenticator/pl.js";import{ptDict as f}from"./authenticator/pt.js";import{zhDict as h}from"./authenticator/zh.js";import{svDict as n}from"./authenticator/sv.js";import{idDict as u}from"./authenticator/id.js";import{trDict as j}from"./authenticator/tr.js";import{ruDict as D}from"./authenticator/ru.js";import{heDict as l}from"./authenticator/he.js";import{defaultTexts as d}from"./authenticator/defaultTexts.js";var v=t({},r),x=t({},a),k=t({},i),z=t({},o),T=t({},s),b=t({},m),g=t({},c),q=t({},e),w=t({},p),y=t({},f),A=t({},h),B=t({},n),C=t({},u),E=t({},j),F=t({},D),G=t({},l),H=t({},d);export{v as deDict,H as defaultTexts,x as enDict,k as esDict,z as frDict,G as heDict,C as idDict,T as itDict,b as jaDict,g as krDict,q as nlDict,w as plDict,y as ptDict,F as ruDict,B as svDict,E as trDict,A as zhDict};
1
+ import{__assign as t}from"tslib";import{deDict as r}from"./authenticator/de.js";import{enDict as a}from"./authenticator/en.js";import{esDict as i}from"./authenticator/es.js";import{frDict as o}from"./authenticator/fr.js";import{itDict as s}from"./authenticator/it.js";import{jaDict as m}from"./authenticator/ja.js";import{krDict as c}from"./authenticator/kr.js";import{nlDict as e}from"./authenticator/nl.js";import{plDict as p}from"./authenticator/pl.js";import{ptDict as u}from"./authenticator/pt.js";import{zhDict as f}from"./authenticator/zh.js";import{svDict as h}from"./authenticator/sv.js";import{idDict as n}from"./authenticator/id.js";import{trDict as j}from"./authenticator/tr.js";import{ruDict as D}from"./authenticator/ru.js";import{heDict as l}from"./authenticator/he.js";import{uaDict as d}from"./authenticator/ua.js";import{defaultTexts as v}from"./authenticator/defaultTexts.js";var x=t({},r),k=t({},a),z=t({},i),T=t({},o),b=t({},s),g=t({},m),q=t({},c),w=t({},e),y=t({},p),A=t({},u),B=t({},f),C=t({},h),E=t({},n),F=t({},j),G=t({},D),H=t({},l),I=t({},d),J=t({},v);export{x as deDict,J as defaultTexts,k as enDict,z as esDict,T as frDict,H as heDict,E as idDict,b as itDict,g as jaDict,q as krDict,w as nlDict,y as plDict,A as ptDict,G as ruDict,C as svDict,F as trDict,I as uaDict,B as zhDict};
@@ -1 +1 @@
1
- import{__assign as r}from"tslib";import{I18n as t}from"aws-amplify";import{defaultTexts as i,deDict as e,enDict as n,esDict as o,frDict as f,idDict as m,itDict as p,jaDict as a,krDict as s,nlDict as u,plDict as d,ptDict as l,zhDict as c,svDict as v,trDict as g,ruDict as h,heDict as j}from"./dictionaries/index.js";var x=r({},i);function b(r){return t.get(r)}function k(r){return t.get(r)!==r}var w={de:e,en:n,es:o,fr:f,id:m,it:p,ja:a,kr:s,nl:u,pl:d,pt:l,zh:c,sv:v,tr:g,ru:h,he:j};export{x as DefaultTexts,k as hasTranslation,b as translate,w as translations};
1
+ import{__assign as r}from"tslib";import{I18n as t}from"aws-amplify";import{defaultTexts as i,deDict as e,enDict as n,esDict as o,frDict as a,idDict as f,itDict as m,jaDict as p,krDict as s,nlDict as u,plDict as d,ptDict as l,zhDict as c,svDict as v,trDict as g,ruDict as h,heDict as j,uaDict as x}from"./dictionaries/index.js";var b=r({},i);function k(r){return t.get(r)}function w(r){return t.get(r)!==r}var y={de:e,en:n,es:o,fr:a,id:f,it:m,ja:p,kr:s,nl:u,pl:d,pt:l,zh:c,sv:v,tr:g,ru:h,he:j,ua:x};export{b as DefaultTexts,w as hasTranslation,k as translate,y as translations};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{getActorContext,getActorState}from"./helpers/authenticator/actor.js";export{getConfiguredAliases,getPrimaryAlias}from"./helpers/authenticator/context.js";export{getSendEventAliases,getServiceContextFacade,getServiceFacade}from"./helpers/authenticator/facade.js";export{ALLOWED_SPECIAL_CHARACTERS,defaultFormFieldOptions}from"./helpers/authenticator/constants.js";export{getErrors,getFormDataFromEvent,isAuthFieldWithDefaults,setFormOrder}from"./helpers/authenticator/form.js";export{censorAllButFirstAndLast,censorPhoneNumber,configureComponent,defaultAuthHubHandler,getTotpCodeURL,hasSpecialChars,listenToAuthHub}from"./helpers/authenticator/utils.js";export{getDefaultFormFields,getFormFields,getSortedFormFields}from"./helpers/authenticator/formFields/formFields.js";export{defaultFormFieldsGetters}from"./helpers/authenticator/formFields/defaults.js";export{applyDefaults,applyTranslation,sortFormFields}from"./helpers/authenticator/formFields/util.js";export{authenticatorTextUtil}from"./helpers/authenticator/textUtil.js";export{changePassword,deleteUser}from"./helpers/accountSettings/utils.js";export{getDefaultConfirmPasswordValidators,getDefaultPasswordValidators,runFieldValidators}from"./helpers/accountSettings/validator.js";export{checkMaxSize,humanFileSize,isValidExtension,returnAcceptedFiles,uploadFile}from"./helpers/storage/fileUploader/utils/uploader.js";export{getLogger}from"./helpers/utils.js";export{countryDialCodes}from"./i18n/country-dial-codes.js";export{DefaultTexts,hasTranslation,translate,translations}from"./i18n/translations.js";export{createAuthenticatorMachine}from"./machines/authenticator/index.js";export{createTheme}from"./theme/createTheme.js";export{defaultTheme}from"./theme/defaultTheme.js";export{defaultDarkModeOverride,reactNativeDarkTokens}from"./theme/defaultDarkModeOverride.js";export{reactNativeTokens}from"./theme/tokens/index.js";export{cssNameTransform,isDesignToken,setupTokens}from"./theme/utils.js";export{FederatedIdentityProviders,UnverifiedContactMethodType}from"./types/authenticator/user.js";export{isUnverifiedContactMethodType}from"./types/authenticator/utils.js";export{LoginMechanismArray,authFieldsWithDefaults,signUpFieldsWithDefault,signUpFieldsWithoutDefault}from"./types/authenticator/attributes.js";export{ComponentClassName}from"./types/primitives/componentClassName.js";
1
+ export{getActorContext,getActorState}from"./helpers/authenticator/actor.js";export{getConfiguredAliases,getPrimaryAlias}from"./helpers/authenticator/context.js";export{getSendEventAliases,getServiceContextFacade,getServiceFacade}from"./helpers/authenticator/facade.js";export{ALLOWED_SPECIAL_CHARACTERS,defaultFormFieldOptions}from"./helpers/authenticator/constants.js";export{getErrors,getFormDataFromEvent,isAuthFieldWithDefaults,setFormOrder}from"./helpers/authenticator/form.js";export{censorAllButFirstAndLast,censorPhoneNumber,configureComponent,defaultAuthHubHandler,getTotpCodeURL,hasSpecialChars,listenToAuthHub,trimValues}from"./helpers/authenticator/utils.js";export{getDefaultFormFields,getFormFields,getSortedFormFields,removeOrderKeys}from"./helpers/authenticator/formFields/formFields.js";export{defaultFormFieldsGetters}from"./helpers/authenticator/formFields/defaults.js";export{applyDefaults,applyTranslation,sortFormFields}from"./helpers/authenticator/formFields/util.js";export{authenticatorTextUtil}from"./helpers/authenticator/textUtil.js";export{changePassword,deleteUser}from"./helpers/accountSettings/utils.js";export{getDefaultConfirmPasswordValidators,getDefaultPasswordValidators,runFieldValidators}from"./helpers/accountSettings/validator.js";export{checkMaxSize,humanFileSize,isValidExtension,returnAcceptedFiles,uploadFile}from"./helpers/storage/fileUploader/utils/uploader.js";export{getLogger}from"./helpers/utils.js";export{countryDialCodes}from"./i18n/country-dial-codes.js";export{DefaultTexts,hasTranslation,translate,translations}from"./i18n/translations.js";export{createAuthenticatorMachine}from"./machines/authenticator/index.js";export{createTheme}from"./theme/createTheme.js";export{defaultTheme}from"./theme/defaultTheme.js";export{defaultDarkModeOverride,reactNativeDarkTokens}from"./theme/defaultDarkModeOverride.js";export{reactNativeTokens}from"./theme/tokens/index.js";export{cssNameTransform,isDesignToken,setupTokens}from"./theme/utils.js";export{FederatedIdentityProviders,UnverifiedContactMethodType}from"./types/authenticator/user.js";export{isUnverifiedContactMethodType}from"./types/authenticator/utils.js";export{LoginMechanismArray,authFieldsWithDefaults,signUpFieldsWithDefault,signUpFieldsWithoutDefault}from"./types/authenticator/attributes.js";export{ComponentClassName}from"./types/primitives/componentClassName.js";
@@ -1 +1 @@
1
- import{__assign as r,__awaiter as e,__generator as n}from"tslib";import{Auth as t}from"aws-amplify";import{assign as o,stop as u}from"xstate/lib/actions";var a=function(r){return u(r)},i=o({attributeToVerify:function(r){}}),c=o({challengeName:function(r){}}),s=o({requiredAttributes:function(r){}}),d=o({remoteError:function(r){return""}}),f=o({formValues:function(r){return{}}}),l=o({touched:function(r){return{}}}),m=o({unverifiedContactMethods:function(r){}}),v=o({username:function(r){}}),h=o({validationError:function(r){return{}}}),V=o({challengeName:function(r,e){var n;return null===(n=e.data)||void 0===n?void 0:n.challengeName}}),p=o({requiredAttributes:function(r,e){var n,t;return null===(t=null===(n=e.data)||void 0===n?void 0:n.challengeParam)||void 0===t?void 0:t.requiredAttributes}}),b=o({redirectIntent:function(r){return"confirmPasswordReset"}}),g=o({redirectIntent:function(r){return"confirmSignUp"}}),y=o({authAttributes:function(r,e){var n,t,o=r.loginMechanisms[0];return{username:null!==(n=r.formValues[o])&&void 0!==n?n:r.formValues.username,password:null===(t=r.formValues)||void 0===t?void 0:t.password}}}),_=o({validationError:function(r,e){return e.data}}),w=o({remoteError:function(r,e){var n;return"NoUserPoolError"===e.data.name?"Configuration error (see console) – please contact the administrator":(null===(n=e.data)||void 0===n?void 0:n.message)||e.data}}),A=o({unverifiedContactMethods:function(r,e){return e.data.unverified}}),E=o({user:function(r,e){return e.data.user||e.data}}),D=o({username:function(r,e){var n=r.formValues,t=n.username,o=n.country_code;return o&&(t="".concat(o).concat(t)),t}}),M=o({codeDeliveryDetails:function(r,e){return e.data.codeDeliveryDetails}}),N=o({authAttributes:function(r,e){return{username:r.formValues.username}}}),P=o({formValues:function(e,n){var t,o=n.data,u=o.name,a=o.value;return r(r({},e.formValues),((t={})[u]=a,t))}}),q=o({formValues:function(e,n){return r(r({},e.formValues),n.data)}}),C=o({touched:function(e,n){var t,o=n.data.name;return r(r({},e.touched),((t={})["".concat(o)]=!0,t))}}),x=function(r){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return e=r.username,[4,t.forgotPassword(e)];case 1:return[2,n.sent()]}}))}))},I=o({formValues:function(e,n){var t,o,u=e.loginMechanisms[0],a=void 0===u?"username":u;if(!e.formValues.phone_number&&"phone_number"!==a)return e.formValues;var i=e.formValues,c=e.country_code,s=i.phone_number?"phone_number":"username",d="".concat(null!==(o=i.country_code)&&void 0!==o?o:c).concat(i[s]).replace(/[^A-Z0-9+]/gi,""),f=r(r({},i),((t={})[s]=d,t));return delete f.country_code,f}});export{i as clearAttributeToVerify,c as clearChallengeName,d as clearError,f as clearFormValues,s as clearRequiredAttributes,l as clearTouched,m as clearUnverifiedContactMethods,v as clearUsername,h as clearValidationError,C as handleBlur,P as handleInput,q as handleSubmit,I as parsePhoneNumber,x as resendCode,V as setChallengeName,M as setCodeDeliveryDetails,b as setConfirmResetPasswordIntent,g as setConfirmSignUpIntent,y as setCredentials,_ as setFieldErrors,w as setRemoteError,p as setRequiredAttributes,A as setUnverifiedContactMethods,E as setUser,D as setUsername,N as setUsernameAuthAttributes,a as stopActor};
1
+ import{__assign as r,__awaiter as e,__generator as t}from"tslib";import{Auth as n}from"aws-amplify";import{assign as o,stop as a}from"xstate/lib/actions";import"lodash/includes";import"../../types/authenticator/user.js";import"../../types/authenticator/attributes.js";import"../../types/primitives/componentClassName.js";import"../../i18n/translations.js";import{trimValues as u}from"../../helpers/authenticator/utils.js";import"lodash/cloneDeep";import"../../helpers/accountSettings/utils.js";var i=function(r){return a(r)},s=o({attributeToVerify:function(r){}}),c=o({challengeName:function(r){}}),l=o({requiredAttributes:function(r){}}),m=o({remoteError:function(r){return""}}),d=o({formValues:function(r){return{}}}),f=o({touched:function(r){return{}}}),v=o({unverifiedContactMethods:function(r){}}),p=o({username:function(r){}}),h=o({validationError:function(r){return{}}}),V=o({challengeName:function(r,e){var t;return null===(t=e.data)||void 0===t?void 0:t.challengeName}}),b=o({requiredAttributes:function(r,e){var t,n;return null===(n=null===(t=e.data)||void 0===t?void 0:t.challengeParam)||void 0===n?void 0:n.requiredAttributes}}),g=o({redirectIntent:function(r){return"confirmPasswordReset"}}),y=o({redirectIntent:function(r){return"confirmSignUp"}}),_=o({authAttributes:function(r,e){var t,n,o=r.loginMechanisms[0];return{username:null!==(t=r.formValues[o])&&void 0!==t?t:r.formValues.username,password:null===(n=r.formValues)||void 0===n?void 0:n.password}}}),w=o({validationError:function(r,e){return e.data}}),j=o({remoteError:function(r,e){var t;return"NoUserPoolError"===e.data.name?"Configuration error (see console) – please contact the administrator":(null===(t=e.data)||void 0===t?void 0:t.message)||e.data}}),A=o({unverifiedContactMethods:function(r,e){return e.data.unverified}}),D=o({user:function(r,e){return e.data.user||e.data}}),E=o({username:function(r,e){var t=r.formValues,n=t.username,o=t.country_code;return o&&(n="".concat(o).concat(n)),n}}),N=o({codeDeliveryDetails:function(r,e){return e.data.codeDeliveryDetails}}),C=o({authAttributes:function(r,e){return{username:r.formValues.username}}}),M=o({formValues:function(e,t){var n,o=t.data,a=o.name,u=o.value;return r(r({},e.formValues),((n={})[a]=u,n))}}),P=o({formValues:function(e,t){var n=r(r({},e.formValues),t.data);return u(n,"password")}}),q=o({touched:function(e,t){var n,o=t.data.name;return r(r({},e.touched),((n={})["".concat(o)]=!0,n))}}),x=function(r){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e=r.username,[4,n.forgotPassword(e)];case 1:return[2,t.sent()]}}))}))},I=o({formValues:function(e,t){var n,o,a=e.loginMechanisms[0],u=void 0===a?"username":a;if(!e.formValues.phone_number&&"phone_number"!==u)return e.formValues;var i=e.formValues,s=e.country_code,c=i.phone_number?"phone_number":"username",l="".concat(null!==(o=i.country_code)&&void 0!==o?o:s).concat(i[c]).replace(/[^A-Z0-9+]/gi,""),m=r(r({},i),((n={})[c]=l,n));return delete m.country_code,m}});export{s as clearAttributeToVerify,c as clearChallengeName,m as clearError,d as clearFormValues,l as clearRequiredAttributes,f as clearTouched,v as clearUnverifiedContactMethods,p as clearUsername,h as clearValidationError,q as handleBlur,M as handleInput,P as handleSubmit,I as parsePhoneNumber,x as resendCode,V as setChallengeName,N as setCodeDeliveryDetails,g as setConfirmResetPasswordIntent,y as setConfirmSignUpIntent,_ as setCredentials,w as setFieldErrors,j as setRemoteError,b as setRequiredAttributes,A as setUnverifiedContactMethods,D as setUser,E as setUsername,C as setUsernameAuthAttributes,i as stopActor};
@@ -1 +1 @@
1
- var e={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.brand.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"center"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{borderColor:{value:"{colors.border.secondary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},justifyContent:{value:"space-between"}}}};export{e as fileuploader};
1
+ var e={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.brand.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{borderColor:{value:"{colors.border.secondary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},justifyContent:{value:"space-between"}}}};export{e as fileuploader};
@@ -1 +1 @@
1
- var e;!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.Autocomplete="amplify-autocomplete",e.AutocompleteMenu="amplify-autocomplete__menu",e.AutocompleteMenuEmpty="amplify-autocomplete__menu--empty",e.AutocompleteMenuFooter="amplify-autocomplete__menu__footer",e.AutocompleteMenuHeader="amplify-autocomplete__menu__header",e.AutocompleteMenuLoading="amplify-autocomplete__menu--loading",e.AutocompleteMenuOption="amplify-autocomplete__menu__option",e.AutocompleteMenuOptions="amplify-autocomplete__menu__options",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.FileUploaderDropZone="amplify-fileuploader__dropzone",e.FileUploaderDropZoneIcon="amplify-fileuploader__dropzone__icon",e.FileUploaderDropZoneText="amplify-fileuploader__dropzone__text",e.FileUploaderDropZoneButton="amplify-fileuploader__dropzone__button",e.FileUploaderFile="amplify-fileuploader__file",e.FileUploaderFileName="amplify-fileuploader__file__name",e.FileUploaderFileSize="amplify-fileuploader__file__size",e.FileUploaderFileInfo="amplify-fileuploader__file__info",e.FileUploaderFileImage="amplify-fileuploader__file__image",e.FileUploaderFileMain="amplify-fileuploader__file__main",e.FileUploaderFileStatus="amplify-fileuploader__file__status",e.FileUploaderLoader="amplify-fileuploader__loader",e.FileUploaderPreviewer="amplify-fileuploader__previewer",e.FileUploaderPreviewerText="amplify-fileuploader__previewer__text",e.FileUploaderPreviewerBody="amplify-fileuploader__previewer__body",e.FileUploaderPreviewerFooter="amplify-fileuploader__previewer__footer",e.FileUploaderPreviewerFooterActions="amplify-fileuploader__previewer__footer__actions",e.Flex="amplify-flex",e.Grid="amplify-grid",e.Heading="amplify-heading",e.HighlightMatch="amplify-highlightmatch",e.HighlightMatchHighlighted="amplify-highlightmatch__highlighted",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.MenuContentWrapper="amplify-menu-content-wrapper",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"}(e||(e={}));export{e as ComponentClassName};
1
+ var e;!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.Autocomplete="amplify-autocomplete",e.AutocompleteMenu="amplify-autocomplete__menu",e.AutocompleteMenuEmpty="amplify-autocomplete__menu--empty",e.AutocompleteMenuFooter="amplify-autocomplete__menu__footer",e.AutocompleteMenuHeader="amplify-autocomplete__menu__header",e.AutocompleteMenuLoading="amplify-autocomplete__menu--loading",e.AutocompleteMenuOption="amplify-autocomplete__menu__option",e.AutocompleteMenuOptions="amplify-autocomplete__menu__options",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.FileUploaderDropZone="amplify-fileuploader__dropzone",e.FileUploaderDropZoneIcon="amplify-fileuploader__dropzone__icon",e.FileUploaderDropZoneText="amplify-fileuploader__dropzone__text",e.FileUploaderDropZoneButton="amplify-fileuploader__dropzone__button",e.FileUploaderFile="amplify-fileuploader__file",e.FileUploaderFileWrapper="amplify-fileuploader__file__wrapper",e.FileUploaderFileName="amplify-fileuploader__file__name",e.FileUploaderFileSize="amplify-fileuploader__file__size",e.FileUploaderFileInfo="amplify-fileuploader__file__info",e.FileUploaderFileImage="amplify-fileuploader__file__image",e.FileUploaderFileMain="amplify-fileuploader__file__main",e.FileUploaderFileStatus="amplify-fileuploader__file__status",e.FileUploaderLoader="amplify-fileuploader__loader",e.FileUploaderPreviewer="amplify-fileuploader__previewer",e.FileUploaderPreviewerText="amplify-fileuploader__previewer__text",e.FileUploaderPreviewerBody="amplify-fileuploader__previewer__body",e.FileUploaderPreviewerFooter="amplify-fileuploader__previewer__footer",e.FileUploaderPreviewerFooterActions="amplify-fileuploader__previewer__footer__actions",e.Flex="amplify-flex",e.Grid="amplify-grid",e.Heading="amplify-heading",e.HighlightMatch="amplify-highlightmatch",e.HighlightMatchHighlighted="amplify-highlightmatch__highlighted",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.MenuContentWrapper="amplify-menu-content-wrapper",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"}(e||(e={}));export{e as ComponentClassName};