@cuemath/leap 3.0.10 → 3.0.11-j1
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/assets/illustrations/illustrations.js +3 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/illustrations/loader-1.svg.js +6 -0
- package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
- package/dist/assets/line-icons/icons/apple-icon.js +48 -0
- package/dist/assets/line-icons/icons/apple-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/google-icon.js +42 -0
- package/dist/assets/line-icons/icons/google-icon.js.map +1 -0
- package/dist/assets/lottie/lottie.js +11 -0
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector-styled.js +37 -0
- package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -0
- package/dist/features/auth/account-selector/account-selector.js +90 -0
- package/dist/features/auth/account-selector/account-selector.js.map +1 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +12 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +11 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -0
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +17 -0
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -0
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js +20 -0
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
- package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +29 -0
- package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +1 -0
- package/dist/features/auth/comps/overlay-loader/overlay-loader.js +8 -0
- package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +1 -0
- package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +25 -0
- package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +1 -0
- package/dist/features/auth/comps/resend-otp/resend-otp.js +47 -0
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -0
- package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
- package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
- package/dist/features/auth/comps/tabs/tabs.js +23 -0
- package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
- package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
- package/dist/features/auth/forgot-password/otp-form/otp-form.js +67 -0
- package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +89 -0
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +60 -0
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +12 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +88 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -0
- package/dist/features/auth/login/login-constants.js +12 -0
- package/dist/features/auth/login/login-constants.js.map +1 -0
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +31 -0
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods.js +46 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
- package/dist/features/auth/login/username-password-form/username-password-form.js +87 -0
- package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +56 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +131 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -0
- package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +27 -0
- package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +1 -0
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js +79 -0
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +33 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +98 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +57 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +26 -0
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +30 -0
- package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +93 -0
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +88 -0
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +58 -0
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +31 -0
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +30 -0
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +11 -0
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +33 -0
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -0
- package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +9 -0
- package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +1 -0
- package/dist/features/auth/signup/signup-constants.js +1031 -0
- package/dist/features/auth/signup/signup-constants.js.map +1 -0
- package/dist/features/auth/signup/signup-methods/signup-methods.js +68 -0
- package/dist/features/auth/signup/signup-methods/signup-methods.js.map +1 -0
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +19 -0
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +1 -0
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +62 -0
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -0
- package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +24 -0
- package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +1 -0
- package/dist/features/auth/signup/user-type-selector/user-type-selector.js +87 -0
- package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -0
- package/dist/index.d.ts +279 -0
- package/dist/index.js +551 -505
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +332 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +370 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +252 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +24 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +1 -0
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +192 -0
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -0
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +129 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/date-fns/subYears.js +9 -0
- package/dist/node_modules/date-fns/subYears.js.map +1 -0
- package/dist/node_modules/react-datepicker/dist/index.es.js +2700 -0
- package/dist/node_modules/react-datepicker/dist/index.es.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +21 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +17 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +15 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +23 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +60 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +13 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +16 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +13 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +18 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +8 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +15 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +15 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +13 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +22 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +15 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +15 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +23 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +42 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +46 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +31 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +100 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +75 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +72 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +75 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +72 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +68 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +104 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +88 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +123 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +13 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +11 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +12 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +14 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +9 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +19 -0
- package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +1 -0
- package/dist/static/avatar-selected.860ee923.json +1 -0
- package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +1 -0
- package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
- package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
- package/dist/static/dob.9ce3c15b.json +1 -0
- package/dist/static/error.cbe1ddde.json +1 -0
- package/dist/static/grade.b3730524.json +1 -0
- package/dist/static/key.d6846476.json +1 -0
- package/dist/static/mail.c30e8708.json +1 -0
- package/dist/static/otp.2d08f874.json +1 -0
- package/dist/static/otp.a3029760.json +1 -0
- package/dist/static/parent-avatar.772d53e0.json +1 -0
- package/dist/static/phone-number.0be312ea.json +1 -0
- package/dist/static/phone-number.84f55562.json +1 -0
- package/dist/static/student-avatar.524226bd.json +1 -0
- package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
- package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
- package/dist/static/user-type-selector-grid-bg.aad0b059.svg +1 -0
- package/dist/static/username.9e034d51.json +1 -0
- package/package.json +3 -2
@@ -0,0 +1,131 @@
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { forwardRef as b, useRef as c, useState as $, useCallback as E, useEffect as H, useImperativeHandle as B, useLayoutEffect as T } from "react";
|
3
|
+
import j from "../../../../assets/line-icons/icons/back2.js";
|
4
|
+
import P from "../../../../assets/line-icons/icons/next2.js";
|
5
|
+
import z from "../../../ui/animated-arc/animated-arc.js";
|
6
|
+
import C from "../../../ui/buttons/icon-button/icon-button.js";
|
7
|
+
import F from "../../../ui/layout/flex-view.js";
|
8
|
+
import M from "../../../ui/lottie-animation/lottie-animation.js";
|
9
|
+
import N from "../../../ui/separator/separator.js";
|
10
|
+
import O from "../../../ui/text/text.js";
|
11
|
+
import { Container as V, CircularStepContainer as X, ContentWrapper as D, InputContainer as K, PrevButtonWrapper as Y, NextButtonWrapper as _ } from "./circular-step-wrapper-styled.js";
|
12
|
+
const q = {
|
13
|
+
autoplay: !1,
|
14
|
+
loop: !1,
|
15
|
+
renderer: "canvas",
|
16
|
+
rendererSettings: {
|
17
|
+
preserveAspectRatio: "xMidYMin slice"
|
18
|
+
}
|
19
|
+
}, G = b(
|
20
|
+
({
|
21
|
+
children: g,
|
22
|
+
onGoBack: y,
|
23
|
+
onNext: I,
|
24
|
+
label: a,
|
25
|
+
showNext: x,
|
26
|
+
showPrevious: A,
|
27
|
+
animation: r,
|
28
|
+
introFrames: S,
|
29
|
+
outroFrames: w,
|
30
|
+
isNextLoading: s,
|
31
|
+
progressAngle: l
|
32
|
+
}, R) => {
|
33
|
+
const t = c(null), o = c(null), [u, k] = $(), [v, m] = $(!1), i = c(null), L = E(() => {
|
34
|
+
r && t.current && (t.current.playSegments(S, !0), m(!0));
|
35
|
+
}, [r]);
|
36
|
+
return H(() => () => {
|
37
|
+
i.current && clearTimeout(i.current);
|
38
|
+
}, [r]), B(R, () => ({
|
39
|
+
playOutroAndFadeOut: async () => new Promise((W) => {
|
40
|
+
var f, p;
|
41
|
+
const d = () => {
|
42
|
+
var h;
|
43
|
+
W(), (h = t.current) == null || h.removeEventListener("complete", d);
|
44
|
+
};
|
45
|
+
(f = t.current) == null || f.playSegments(w, !0), i.current = setTimeout(() => m(!1), 400), (p = t.current) == null || p.addEventListener("complete", d);
|
46
|
+
})
|
47
|
+
})), T(() => {
|
48
|
+
o.current && k(o.current.offsetHeight);
|
49
|
+
}, []), /* @__PURE__ */ n(
|
50
|
+
V,
|
51
|
+
{
|
52
|
+
$flex: 1,
|
53
|
+
$flexDirection: "column",
|
54
|
+
$alignItems: "center",
|
55
|
+
$justifyContent: "center",
|
56
|
+
$width: "100%",
|
57
|
+
$height: "100%",
|
58
|
+
ref: o,
|
59
|
+
children: [
|
60
|
+
u && /* @__PURE__ */ e(
|
61
|
+
M,
|
62
|
+
{
|
63
|
+
width: 1280,
|
64
|
+
height: u,
|
65
|
+
src: r,
|
66
|
+
ref: t,
|
67
|
+
onRender: L,
|
68
|
+
settings: q
|
69
|
+
}
|
70
|
+
),
|
71
|
+
/* @__PURE__ */ n(
|
72
|
+
X,
|
73
|
+
{
|
74
|
+
$width: 400,
|
75
|
+
$height: 400,
|
76
|
+
$background: "REAL_BLACK",
|
77
|
+
$alignItems: "center",
|
78
|
+
$justifyContent: "center",
|
79
|
+
children: [
|
80
|
+
l && /* @__PURE__ */ e(
|
81
|
+
z,
|
82
|
+
{
|
83
|
+
radius: 200,
|
84
|
+
strokeWidth: 2,
|
85
|
+
color: "WHITE",
|
86
|
+
targetAngle: l,
|
87
|
+
mode: "fade",
|
88
|
+
duration: 1
|
89
|
+
}
|
90
|
+
),
|
91
|
+
/* @__PURE__ */ n(D, { $isVisible: v, $width: "100%", children: [
|
92
|
+
a ? /* @__PURE__ */ n(F, { $gutterX: 3.5, children: [
|
93
|
+
/* @__PURE__ */ e(O, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: a }),
|
94
|
+
/* @__PURE__ */ e(N, { heightX: 1 })
|
95
|
+
] }) : null,
|
96
|
+
/* @__PURE__ */ e(K, { children: g })
|
97
|
+
] })
|
98
|
+
]
|
99
|
+
}
|
100
|
+
),
|
101
|
+
A && /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
102
|
+
C,
|
103
|
+
{
|
104
|
+
Icon: j,
|
105
|
+
renderAs: "secondary-dark",
|
106
|
+
analyticsLabel: "Prev",
|
107
|
+
onClick: y,
|
108
|
+
disabled: s,
|
109
|
+
size: "small"
|
110
|
+
}
|
111
|
+
) }),
|
112
|
+
x && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
|
113
|
+
C,
|
114
|
+
{
|
115
|
+
size: "small",
|
116
|
+
Icon: P,
|
117
|
+
renderAs: "secondary-dark",
|
118
|
+
analyticsLabel: "Next",
|
119
|
+
onClick: I,
|
120
|
+
busy: s
|
121
|
+
}
|
122
|
+
) })
|
123
|
+
]
|
124
|
+
}
|
125
|
+
);
|
126
|
+
}
|
127
|
+
), ae = G;
|
128
|
+
export {
|
129
|
+
ae as default
|
130
|
+
};
|
131
|
+
//# sourceMappingURL=circular-step-wrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport AnimatedArc from '../../../ui/animated-arc/animated-arc';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'canvas',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n progressAngle,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n const timeoutRef = useRef<NodeJS.Timeout | null>(null);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current) {\n animationRef.current.playSegments(introFrames, true);\n setShowContent(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animation]);\n\n useEffect(() => {\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, [animation]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n timeoutRef.current = setTimeout(() => setShowContent(false), 400);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {progressAngle && (\n <AnimatedArc\n radius={200}\n strokeWidth={2}\n color=\"WHITE\"\n targetAngle={progressAngle}\n mode=\"fade\"\n duration={1}\n />\n )}\n <Styled.ContentWrapper $isVisible={showContent} $width=\"100%\">\n {label ? (\n <FlexView $gutterX={3.5}>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n ) : null}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary-dark\"\n analyticsLabel=\"Prev\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"small\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"small\"\n Icon={Next2Icon}\n renderAs=\"secondary-dark\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default CircularStepWrapper;\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","progressAngle","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","timeoutRef","onLottieRender","useCallback","useEffect","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","AnimatedArc","Styled.ContentWrapper","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","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AAS;AAAA,gBAAA,GACnC;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,UACCK,KACC,gBAAA2B,EAACS,GAAA,EACC,UAAA,gBAAAT;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,MAAMC;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAS1C;AAAA,cACT,UAAUQ;AAAA,cACV,MAAK;AAAA,YAAA;AAAA,UAAA,GAET;AAAA,UAEDL,KACC,gBAAA4B,EAACY,GAAA,EACC,UAAA,gBAAAZ;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAMG;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAS3C;AAAA,cACT,MAAMO;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF,GAEAqC,KAAehD;"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import s from "styled-components";
|
2
|
+
import i from "../../../ui/layout/flex-view.js";
|
3
|
+
const d = s(i)`
|
4
|
+
max-width: 200px;
|
5
|
+
cursor: pointer;
|
6
|
+
transition: background-color 0.3s ease;
|
7
|
+
position: relative;
|
8
|
+
border-left: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
|
9
|
+
border-bottom: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
|
10
|
+
|
11
|
+
&:hover {
|
12
|
+
background-color: ${({ theme: o }) => o.colors.BLACK_2};
|
13
|
+
}
|
14
|
+
|
15
|
+
${({ index: o, theme: r }) => o < 5 && `border-top: 1px solid ${r.colors.BLACK_5};`}
|
16
|
+
|
17
|
+
${({ index: o, isLastItem: r, theme: e }) => ((o + 1) % 5 === 0 || r) && `border-right: 1px solid ${e.colors.BLACK_5};`}
|
18
|
+
`, p = s.div`
|
19
|
+
display: inline-grid;
|
20
|
+
grid-template-columns: repeat(${({ itemCount: o }) => o < 5 ? o : 5}, 200px);
|
21
|
+
grid-auto-rows: 200px;
|
22
|
+
`;
|
23
|
+
export {
|
24
|
+
d as AccountCard,
|
25
|
+
p as UserAccountsWrapper
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=claim-user-account-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claim-user-account-styled.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const AccountCard = styled(FlexView)<{ index: number; isLastItem: boolean }>`\n max-width: 200px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n position: relative;\n border-left: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n\n &:hover {\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n }\n\n ${({ index, theme }) => index < 5 && `border-top: 1px solid ${theme.colors.BLACK_5};`}\n\n ${({ index, isLastItem, theme }) =>\n ((index + 1) % 5 === 0 || isLastItem) && `border-right: 1px solid ${theme.colors.BLACK_5};`}\n`;\n\nexport const UserAccountsWrapper = styled.div<{ itemCount: number }>`\n display: inline-grid;\n grid-template-columns: repeat(${({ itemCount }) => (itemCount < 5 ? itemCount : 5)}, 200px);\n grid-auto-rows: 200px;\n`;\n"],"names":["AccountCard","styled","FlexView","theme","index","isLastItem","UserAccountsWrapper","itemCount"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,2BAKf,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,6BACjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,wBAGxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,IAGvD,CAAC,EAAE,OAAAC,GAAO,OAAAD,EAAM,MAAMC,IAAQ,KAAK,yBAAyBD,EAAM,OAAO,OAAO,GAAG;AAAA;AAAA,IAEnF,CAAC,EAAE,OAAAC,GAAO,YAAAC,GAAY,OAAAF,UACpBC,IAAQ,KAAK,MAAM,KAAKC,MAAe,2BAA2BF,EAAM,OAAO,OAAO,GAAG;AAAA,GAGlFG,IAAsBL,EAAO;AAAA;AAAA,kCAER,CAAC,EAAE,WAAAM,QAAiBA,IAAY,IAAIA,IAAY,CAAE;AAAA;AAAA;"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as g } from "react/jsx-runtime";
|
2
|
+
import { memo as u } from "react";
|
3
|
+
import { ILLUSTRATIONS as I } from "../../../../assets/illustrations/illustrations.js";
|
4
|
+
import A from "../../../ui/avatar/avatar.js";
|
5
|
+
import C from "../../../ui/buttons/button/button.js";
|
6
|
+
import T from "../../../ui/image/image.js";
|
7
|
+
import n from "../../../ui/layout/flex-view.js";
|
8
|
+
import t from "../../../ui/separator/separator.js";
|
9
|
+
import o from "../../../ui/text/text.js";
|
10
|
+
import b from "../../comps/overlay-loader/overlay-loader.js";
|
11
|
+
import { UserAccountsWrapper as W, AccountCard as w } from "./claim-user-account-styled.js";
|
12
|
+
const E = ({
|
13
|
+
email: s,
|
14
|
+
onSelectAccount: h,
|
15
|
+
userAccounts: i,
|
16
|
+
onCreateNewAccount: d,
|
17
|
+
isCreatingAccount: l,
|
18
|
+
isLoading: $,
|
19
|
+
showCreateNewAccount: p
|
20
|
+
}) => {
|
21
|
+
const c = i.length;
|
22
|
+
return /* @__PURE__ */ r(n, { $flex: 1, $alignItems: "center", $justifyContent: "center", $width: "100%", $height: "100%", children: [
|
23
|
+
/* @__PURE__ */ e(b, { isLoading: $ }),
|
24
|
+
/* @__PURE__ */ e(T, { src: I.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
|
25
|
+
/* @__PURE__ */ e(t, { heightX: 1 }),
|
26
|
+
/* @__PURE__ */ r(n, { children: [
|
27
|
+
/* @__PURE__ */ r(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: [
|
28
|
+
"We found multiple profiles linked to",
|
29
|
+
" ",
|
30
|
+
/* @__PURE__ */ e(o, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children: s })
|
31
|
+
] }),
|
32
|
+
/* @__PURE__ */ e(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: "Which one would you like to proceed with?" })
|
33
|
+
] }),
|
34
|
+
/* @__PURE__ */ e(t, { heightX: 5 }),
|
35
|
+
/* @__PURE__ */ e(W, { itemCount: c, children: i.map(({ id: a, phone: f }, m) => /* @__PURE__ */ r(
|
36
|
+
w,
|
37
|
+
{
|
38
|
+
$gutterX: 2,
|
39
|
+
$gapX: 2.81,
|
40
|
+
$width: 200,
|
41
|
+
$height: 200,
|
42
|
+
$alignItems: "center",
|
43
|
+
$justifyContent: "center",
|
44
|
+
onClick: () => h(a),
|
45
|
+
index: m,
|
46
|
+
isLastItem: m === c - 1,
|
47
|
+
children: [
|
48
|
+
/* @__PURE__ */ e(A, { size: 80 }),
|
49
|
+
/* @__PURE__ */ e(t, { heightX: 0.5 }),
|
50
|
+
/* @__PURE__ */ e(o, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: f })
|
51
|
+
]
|
52
|
+
},
|
53
|
+
a
|
54
|
+
)) }),
|
55
|
+
p && /* @__PURE__ */ r(g, { children: [
|
56
|
+
/* @__PURE__ */ e(t, { heightX: 5 }),
|
57
|
+
/* @__PURE__ */ r(n, { $alignItems: "center", $justifyContent: "center", children: [
|
58
|
+
/* @__PURE__ */ e(o, { $renderAs: "ub2", $color: "WHITE", children: "Don't recognize these accounts?" }),
|
59
|
+
/* @__PURE__ */ e(t, { heightX: 1 }),
|
60
|
+
/* @__PURE__ */ e(
|
61
|
+
C,
|
62
|
+
{
|
63
|
+
width: 232,
|
64
|
+
size: "small",
|
65
|
+
label: "Create new account",
|
66
|
+
renderAs: "secondary-dark",
|
67
|
+
onClick: d,
|
68
|
+
busy: l,
|
69
|
+
disabled: l
|
70
|
+
}
|
71
|
+
)
|
72
|
+
] })
|
73
|
+
] })
|
74
|
+
] });
|
75
|
+
}, _ = u(E);
|
76
|
+
export {
|
77
|
+
_ as default
|
78
|
+
};
|
79
|
+
//# sourceMappingURL=claim-user-account.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claim-user-account.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account.tsx"],"sourcesContent":["import type { IClaimUserAccountProps } from './claim-user-account-types';\n\nimport { memo } from 'react';\nimport { type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Avatar from '../../../ui/avatar/avatar';\nimport Button from '../../../ui/buttons/button/button';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport OverlayLoader from '../../comps/overlay-loader/overlay-loader';\nimport * as Styled from './claim-user-account-styled';\n\nconst ClaimUserAccount: FC<IClaimUserAccountProps> = ({\n email,\n onSelectAccount,\n userAccounts,\n onCreateNewAccount,\n isCreatingAccount,\n isLoading,\n showCreateNewAccount,\n}) => {\n const totalUsers = userAccounts.length;\n\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $width=\"100%\" $height=\"100%\">\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n We found multiple profiles linked to{' '}\n <Text $color=\"WHITE\" $inline $renderAs=\"ab1-bold\">\n {email}\n </Text>\n </Text>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n Which one would you like to proceed with?\n </Text>\n </FlexView>\n <Separator heightX={5} />\n <Styled.UserAccountsWrapper itemCount={totalUsers}>\n {userAccounts.map(({ id, phone }, i) => (\n <Styled.AccountCard\n $gutterX={2}\n $gapX={2.81}\n key={id}\n $width={200}\n $height={200}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={() => onSelectAccount(id)}\n index={i}\n isLastItem={i === totalUsers - 1}\n >\n <Avatar size={80} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {phone}\n </Text>\n </Styled.AccountCard>\n ))}\n </Styled.UserAccountsWrapper>\n {showCreateNewAccount && (\n <>\n <Separator heightX={5} />\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"ub2\" $color=\"WHITE\">\n Don't recognize these accounts?\n </Text>\n <Separator heightX={1} />\n <Button\n width={232}\n size=\"small\"\n label=\"Create new account\"\n renderAs=\"secondary-dark\"\n onClick={onCreateNewAccount}\n busy={isCreatingAccount}\n disabled={isCreatingAccount}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ClaimUserAccount);\n"],"names":["ClaimUserAccount","email","onSelectAccount","userAccounts","onCreateNewAccount","isCreatingAccount","isLoading","showCreateNewAccount","totalUsers","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","Styled.UserAccountsWrapper","id","phone","i","Styled.AccountCard","Avatar","Fragment","Button","claimUserAccount","memo"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAA+C,CAAC;AAAA,EACpD,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,sBAAAC;AACF,MAAM;AACJ,QAAMC,IAAaL,EAAa;AAG9B,SAAA,gBAAAM,EAACC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,QAAO,QAAO,SAAQ,QACtF,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAc,WAAAN,GAAsB;AAAA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AAZ,EAAAI,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,MACtB,gBAAAN,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,QAAA,gBAAAC,EAACK,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAErC,mCAAA;AAAA,QACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAJ;AAAA,UAACa;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,YACP,MAAK;AAAA,YACL,OAAM;AAAA,YACN,UAAS;AAAA,YACT,SAASpB;AAAA,YACT,MAAMC;AAAA,YACN,UAAUA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeoB,IAAAC,EAAK1B,CAAgB;"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
2
|
+
import n from "../../../../../assets/line-icons/icons/chevron-down.js";
|
3
|
+
import i from "../../../../ui/layout/flex-view.js";
|
4
|
+
import d from "../../../../ui/text/text.js";
|
5
|
+
import { CountryCodeButton as $ } from "./country-selector-styled.js";
|
6
|
+
const C = ({
|
7
|
+
value: t,
|
8
|
+
menuVisible: e
|
9
|
+
}) => /* @__PURE__ */ o(
|
10
|
+
$,
|
11
|
+
{
|
12
|
+
$background: "BLACK_5",
|
13
|
+
$borderRadius: 4,
|
14
|
+
$gutterX: 0.5,
|
15
|
+
$gap: 5,
|
16
|
+
$alignItems: "center",
|
17
|
+
$justifyContent: "space-between",
|
18
|
+
$borderColor: e ? "WHITE_T_38" : "BLACK_5",
|
19
|
+
$flexDirection: "row",
|
20
|
+
$flexGap: 2,
|
21
|
+
children: [
|
22
|
+
/* @__PURE__ */ o(d, { $renderAs: "ab1", $color: "WHITE", children: [
|
23
|
+
"+",
|
24
|
+
t
|
25
|
+
] }),
|
26
|
+
/* @__PURE__ */ r(i, { $width: 20, children: /* @__PURE__ */ r(n, { width: 20, height: 20, color: "WHITE" }) })
|
27
|
+
]
|
28
|
+
}
|
29
|
+
);
|
30
|
+
export {
|
31
|
+
C as default
|
32
|
+
};
|
33
|
+
//# sourceMappingURL=country-code-button.js.map
|
package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country-code-button.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-code-button.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport ChevronDownIcon from '../../../../../assets/line-icons/icons/chevron-down';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport * as Styled from './country-selector-styled';\n\nconst CountryCodeButton: FC<{ value?: string; menuVisible?: boolean }> = ({\n value,\n menuVisible,\n}) => {\n return (\n <Styled.CountryCodeButton\n $background=\"BLACK_5\"\n $borderRadius={4}\n $gutterX={0.5}\n $gap={5}\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $borderColor={menuVisible ? 'WHITE_T_38' : 'BLACK_5'}\n $flexDirection=\"row\"\n $flexGap={2}\n >\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n +{value}\n </Text>\n <FlexView $width={20}>\n <ChevronDownIcon width={20} height={20} color=\"WHITE\" />\n </FlexView>\n </Styled.CountryCodeButton>\n );\n};\n\nexport default CountryCodeButton;\n"],"names":["CountryCodeButton","value","menuVisible","jsxs","Styled.CountryCodeButton","Text","jsx","FlexView","ChevronDownIcon"],"mappings":";;;;;AAOA,MAAMA,IAAmE,CAAC;AAAA,EACxE,OAAAC;AAAA,EACA,aAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,aAAY;AAAA,IACZ,eAAe;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,cAAcF,IAAc,eAAe;AAAA,IAC3C,gBAAe;AAAA,IACf,UAAU;AAAA,IAEV,UAAA;AAAA,MAAA,gBAAAC,EAACE,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAAA;AAAA,QAAA;AAAA,QACjCJ;AAAA,MAAA,GACJ;AAAA,MACC,gBAAAK,EAAAC,GAAA,EAAS,QAAQ,IAChB,UAAC,gBAAAD,EAAAE,GAAA,EAAgB,OAAO,IAAI,QAAQ,IAAI,OAAM,QAAQ,CAAA,GACxD;AAAA,IAAA;AAAA,EAAA;AAAA;"}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { useState as I, useRef as p, useEffect as g, useCallback as C } from "react";
|
3
|
+
import L from "../../../../ui/separator/separator.js";
|
4
|
+
import T from "../../../../ui/text/text.js";
|
5
|
+
import { COUNTRY_CODE_MAP as i } from "../../signup-constants.js";
|
6
|
+
import { MenuWrapper as b, MenuItem as y, FlagIcon as X, Instructions as D } from "./country-selector-styled.js";
|
7
|
+
const _ = ({ selectedCountry: $, onChange: u, menuVisible: w }) => {
|
8
|
+
const [s, d] = I(""), [o, l] = I(-1), c = p(null), f = p(null), E = p([]);
|
9
|
+
g(() => {
|
10
|
+
var e;
|
11
|
+
o >= 0 && ((e = E.current[o]) == null || e.scrollIntoView({
|
12
|
+
behavior: "smooth",
|
13
|
+
block: "nearest"
|
14
|
+
}));
|
15
|
+
}, [o]), g(() => {
|
16
|
+
if (s) {
|
17
|
+
const e = i.findIndex(
|
18
|
+
(t) => t.value.toLowerCase().includes(s.toLowerCase()) || t.code.startsWith(s)
|
19
|
+
);
|
20
|
+
l(e), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
21
|
+
d("");
|
22
|
+
}, 1e3);
|
23
|
+
}
|
24
|
+
return () => {
|
25
|
+
c.current && clearTimeout(c.current);
|
26
|
+
};
|
27
|
+
}, [s]);
|
28
|
+
const m = C(
|
29
|
+
(e) => {
|
30
|
+
var n;
|
31
|
+
const { key: t } = e;
|
32
|
+
if (e.preventDefault(), e.stopPropagation(), t.length === 1 && /[a-zA-Z0-9\s]/.test(t)) {
|
33
|
+
d((r) => r + t.toLowerCase());
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
if (t === "ArrowDown")
|
37
|
+
l((r) => r < i.length - 1 ? r + 1 : 0);
|
38
|
+
else if (t === "ArrowUp")
|
39
|
+
l((r) => r > 0 ? r - 1 : i.length - 1);
|
40
|
+
else if (t === "Enter" && o >= 0) {
|
41
|
+
const r = i[o];
|
42
|
+
r && u({ code: r.code, id: r.id }), (n = f.current) == null || n.click();
|
43
|
+
} else t === "Escape" && (d(""), l(-1));
|
44
|
+
},
|
45
|
+
[o, u]
|
46
|
+
);
|
47
|
+
return g(() => {
|
48
|
+
const e = f.current;
|
49
|
+
if (!(!e || !w))
|
50
|
+
return e.focus(), e.addEventListener("keydown", m), () => {
|
51
|
+
e.removeEventListener("keydown", m);
|
52
|
+
};
|
53
|
+
}, [w, m, $.id]), /* @__PURE__ */ h(
|
54
|
+
b,
|
55
|
+
{
|
56
|
+
ref: f,
|
57
|
+
tabIndex: 0,
|
58
|
+
$widthX: 10,
|
59
|
+
$gapX: 0.5,
|
60
|
+
$background: "BLACK_2",
|
61
|
+
$borderColor: "BLACK_5",
|
62
|
+
children: [
|
63
|
+
i.map((e, t) => {
|
64
|
+
const { id: n, value: r, icon: x, code: k } = e;
|
65
|
+
return /* @__PURE__ */ h(
|
66
|
+
y,
|
67
|
+
{
|
68
|
+
ref: (A) => E.current[t] = A,
|
69
|
+
"data-country-id": n,
|
70
|
+
onClick: () => u({ code: k, id: n }),
|
71
|
+
$gutterX: 0.5,
|
72
|
+
$gapX: 0.75,
|
73
|
+
$width: "100%",
|
74
|
+
$flexDirection: "row",
|
75
|
+
$alignItems: "center",
|
76
|
+
$flexGap: 8,
|
77
|
+
$isSelected: $.id === n,
|
78
|
+
$isHighlighted: o === t,
|
79
|
+
children: [
|
80
|
+
/* @__PURE__ */ a(X, { src: x }),
|
81
|
+
/* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: r })
|
82
|
+
]
|
83
|
+
},
|
84
|
+
n
|
85
|
+
);
|
86
|
+
}),
|
87
|
+
/* @__PURE__ */ h(D, { $gutterX: 0.5, children: [
|
88
|
+
/* @__PURE__ */ a(L, { heightX: 0.5 }),
|
89
|
+
/* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: "Type to search • ↑↓ to navigate • Enter to select • Esc to clear" })
|
90
|
+
] })
|
91
|
+
]
|
92
|
+
}
|
93
|
+
);
|
94
|
+
};
|
95
|
+
export {
|
96
|
+
_ as default
|
97
|
+
};
|
98
|
+
//# sourceMappingURL=country-list-menu.js.map
|
package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country-list-menu.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-list-menu.tsx"],"sourcesContent":["import type { ICountryListMenuProps } from './country-selector-types';\nimport type { FC } from 'react';\n\nimport { useState, useEffect, useRef, useCallback } from 'react';\n\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { COUNTRY_CODE_MAP } from '../../signup-constants';\nimport * as Styled from './country-selector-styled';\n\nconst CountryListMenu: FC<ICountryListMenuProps> = ({ selectedCountry, onChange, menuVisible }) => {\n const [searchTerm, setSearchTerm] = useState('');\n const [highlightedIndex, setHighlightedIndex] = useState(-1);\n const searchTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const menuRef = useRef<HTMLDivElement>(null);\n const itemRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n useEffect(() => {\n if (highlightedIndex >= 0) {\n itemRefs.current[highlightedIndex]?.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n });\n }\n }, [highlightedIndex]);\n\n useEffect(() => {\n if (searchTerm) {\n const index = COUNTRY_CODE_MAP.findIndex(\n c =>\n c.value.toLowerCase().includes(searchTerm.toLowerCase()) || c.code.startsWith(searchTerm),\n );\n\n setHighlightedIndex(index);\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n searchTimeoutRef.current = setTimeout(() => {\n setSearchTerm('');\n }, 1000);\n }\n\n return () => {\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n };\n }, [searchTerm]);\n\n const handleKeyDown = useCallback(\n (event: globalThis.KeyboardEvent) => {\n const { key } = event;\n\n event.preventDefault();\n event.stopPropagation();\n if (key.length === 1 && /[a-zA-Z0-9\\s]/.test(key)) {\n setSearchTerm(prev => prev + key.toLowerCase());\n\n return;\n }\n\n if (key === 'ArrowDown') {\n setHighlightedIndex(prev => (prev < COUNTRY_CODE_MAP.length - 1 ? prev + 1 : 0));\n } else if (key === 'ArrowUp') {\n setHighlightedIndex(prev => (prev > 0 ? prev - 1 : COUNTRY_CODE_MAP.length - 1));\n } else if (key === 'Enter' && highlightedIndex >= 0) {\n const selectedOption = COUNTRY_CODE_MAP[highlightedIndex];\n\n selectedOption && onChange({ code: selectedOption.code, id: selectedOption.id });\n menuRef.current?.click();\n } else if (key === 'Escape') {\n setSearchTerm('');\n setHighlightedIndex(-1);\n }\n },\n [highlightedIndex, onChange],\n );\n\n useEffect(() => {\n const menuElement = menuRef.current;\n\n if (!menuElement || !menuVisible) return;\n\n menuElement.focus();\n menuElement.addEventListener('keydown', handleKeyDown);\n\n return () => {\n menuElement.removeEventListener('keydown', handleKeyDown);\n };\n }, [menuVisible, handleKeyDown, selectedCountry.id]);\n\n return (\n <Styled.MenuWrapper\n ref={menuRef}\n tabIndex={0}\n $widthX={10}\n $gapX={0.5}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n {COUNTRY_CODE_MAP.map((option, index) => {\n const { id, value, icon, code } = option;\n\n return (\n <Styled.MenuItem\n key={id}\n ref={el => (itemRefs.current[index] = el)}\n data-country-id={id}\n onClick={() => onChange({ code, id })}\n $gutterX={0.5}\n $gapX={0.75}\n $width=\"100%\"\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $isSelected={selectedCountry.id === id}\n $isHighlighted={highlightedIndex === index}\n >\n <Styled.FlagIcon src={icon} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n {value}\n </Text>\n </Styled.MenuItem>\n );\n })}\n\n <Styled.Instructions $gutterX={0.5}>\n <Separator heightX={0.5} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Type to search • ↑↓ to navigate • Enter to select • Esc to clear\n </Text>\n </Styled.Instructions>\n </Styled.MenuWrapper>\n );\n};\n\nexport default CountryListMenu;\n"],"names":["CountryListMenu","selectedCountry","onChange","menuVisible","searchTerm","setSearchTerm","useState","highlightedIndex","setHighlightedIndex","searchTimeoutRef","useRef","menuRef","itemRefs","useEffect","_a","index","COUNTRY_CODE_MAP","c","handleKeyDown","useCallback","event","key","prev","selectedOption","menuElement","jsxs","Styled.MenuWrapper","option","id","value","icon","code","Styled.MenuItem","el","jsx","Styled.FlagIcon","Text","Styled.Instructions","Separator"],"mappings":";;;;;;AAUA,MAAMA,IAA6C,CAAC,EAAE,iBAAAC,GAAiB,UAAAC,GAAU,aAAAC,QAAkB;AACjG,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAE,GACzC,CAACC,GAAkBC,CAAmB,IAAIF,EAAS,EAAE,GACrDG,IAAmBC,EAA8B,IAAI,GACrDC,IAAUD,EAAuB,IAAI,GACrCE,IAAWF,EAAkC,CAAA,CAAE;AAErD,EAAAG,EAAU,MAAM;;AACd,IAAIN,KAAoB,OACbO,IAAAF,EAAA,QAAQL,CAAgB,MAAxB,QAAAO,EAA2B,eAAe;AAAA,MACjD,UAAU;AAAA,MACV,OAAO;AAAA,IAAA;AAAA,EAEX,GACC,CAACP,CAAgB,CAAC,GAErBM,EAAU,MAAM;AACd,QAAIT,GAAY;AACd,YAAMW,IAAQC,EAAiB;AAAA,QAC7B,CACEC,MAAAA,EAAE,M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AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
import r from "styled-components";
|
2
|
+
import t from "../../../../ui/layout/flex-view.js";
|
3
|
+
const l = r(t)`
|
4
|
+
border-radius: 2px;
|
5
|
+
max-height: 220px;
|
6
|
+
overflow-y: scroll;
|
7
|
+
width: 271px;
|
8
|
+
max-height: 300px;
|
9
|
+
overflow-y: auto;
|
10
|
+
|
11
|
+
&:focus {
|
12
|
+
outline: none;
|
13
|
+
}
|
14
|
+
&::-webkit-scrollbar {
|
15
|
+
width: 6px;
|
16
|
+
}
|
17
|
+
|
18
|
+
&::-webkit-scrollbar-track {
|
19
|
+
background: ${({ theme: o }) => o.colors.BLACK_4};
|
20
|
+
}
|
21
|
+
|
22
|
+
&::-webkit-scrollbar-thumb {
|
23
|
+
background: ${({ theme: o }) => o.colors.BLACK_2};
|
24
|
+
border-radius: 3px;
|
25
|
+
}
|
26
|
+
`, p = r(t)(({
|
27
|
+
theme: o,
|
28
|
+
$isSelected: n,
|
29
|
+
$isHighlighted: c
|
30
|
+
}) => {
|
31
|
+
const s = c ? o.colors.BLACK_4 : "transparent";
|
32
|
+
return `
|
33
|
+
cursor: pointer;
|
34
|
+
background: ${n ? o.colors.BLACK_5 : s};
|
35
|
+
&:hover {
|
36
|
+
background: ${o.colors.BLACK_5};
|
37
|
+
}
|
38
|
+
`;
|
39
|
+
}), a = r.img`
|
40
|
+
width: 20px;
|
41
|
+
height: 20px;
|
42
|
+
`, d = r(t)`
|
43
|
+
cursor: pointer;
|
44
|
+
padding-right: 4px;
|
45
|
+
max-width: 100px;
|
46
|
+
min-width: 82px;
|
47
|
+
`, u = r(t)`
|
48
|
+
border-top: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
|
49
|
+
`;
|
50
|
+
export {
|
51
|
+
d as CountryCodeButton,
|
52
|
+
a as FlagIcon,
|
53
|
+
u as Instructions,
|
54
|
+
p as MenuItem,
|
55
|
+
l as MenuWrapper
|
56
|
+
};
|
57
|
+
//# sourceMappingURL=country-selector-styled.js.map
|
package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country-selector-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport const MenuWrapper = styled(FlexView)`\n border-radius: 2px;\n max-height: 220px;\n overflow-y: scroll;\n width: 271px;\n max-height: 300px;\n overflow-y: auto;\n\n &:focus {\n outline: none;\n }\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: ${({ theme }) => theme.colors.BLACK_4};\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${({ theme }) => theme.colors.BLACK_2};\n border-radius: 3px;\n }\n`;\n\nexport const MenuItem = styled(FlexView)<{ $isSelected: boolean; $isHighlighted?: boolean }>(({\n theme,\n $isSelected,\n $isHighlighted,\n}) => {\n const bgColor = $isHighlighted ? theme.colors.BLACK_4 : 'transparent';\n\n return `\n cursor: pointer;\n background: ${$isSelected ? theme.colors.BLACK_5 : bgColor};\n &:hover {\n background: ${theme.colors.BLACK_5};\n }\n `;\n});\n\nexport const FlagIcon = styled.img`\n width: 20px;\n height: 20px;\n`;\n\nexport const CountryCodeButton = styled(FlexView)`\n cursor: pointer;\n padding-right: 4px;\n max-width: 100px;\n min-width: 82px;\n`;\n\nexport const Instructions = styled(FlexView)`\n border-top: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n`;\n"],"names":["MenuWrapper","styled","FlexView","theme","MenuItem","$isSelected","$isHighlighted","bgColor","FlagIcon","CountryCodeButton","Instructions"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAgBxB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,kBAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCC,IAAWH,EAAOC,CAAQ,EAAsD,CAAC;AAAA,EAC5F,OAAAC;AAAA,EACA,aAAAE;AAAA,EACA,gBAAAC;AACF,MAAM;AACJ,QAAMC,IAAUD,IAAiBH,EAAM,OAAO,UAAU;AAEjD,SAAA;AAAA;AAAA,oBAEWE,IAAcF,EAAM,OAAO,UAAUI,CAAO;AAAA;AAAA,wBAExCJ,EAAM,OAAO,OAAO;AAAA;AAAA;AAG5C,CAAC,GAEYK,IAAWP,EAAO;AAAA;AAAA;AAAA,GAKlBQ,IAAoBR,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,GAOnCQ,IAAeT,EAAOC,CAAQ;AAAA,0BACjB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
2
|
+
import { useState as s, useCallback as u } from "react";
|
3
|
+
import f from "../../../../ui/context-menu/context-menu.js";
|
4
|
+
import l from "../../../../ui/layout/flex-view.js";
|
5
|
+
import c from "./country-code-button.js";
|
6
|
+
import d from "./country-list-menu.js";
|
7
|
+
const V = ({ value: t, onChange: n }) => {
|
8
|
+
const [o, r] = s(!1), i = u((m) => {
|
9
|
+
r(m);
|
10
|
+
}, []);
|
11
|
+
return !t || !n ? null : /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(
|
12
|
+
f,
|
13
|
+
{
|
14
|
+
startLeft: !0,
|
15
|
+
targetElement: /* @__PURE__ */ e(c, { value: t == null ? void 0 : t.code, menuVisible: o }),
|
16
|
+
menuElement: /* @__PURE__ */ e(d, { onChange: n, selectedCountry: t, menuVisible: o }),
|
17
|
+
menuOffset: 5,
|
18
|
+
menuZIndex: 1,
|
19
|
+
onMenuVisibilityChange: i
|
20
|
+
}
|
21
|
+
) });
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
V as default
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=country-selector.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country-selector.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector.tsx"],"sourcesContent":["import type { IPhoneCountrySelectorProps } from './country-selector-types';\n\nimport { useCallback, useState, type FC } from 'react';\n\nimport ContextMenu from '../../../../ui/context-menu/context-menu';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport CountryCodeButton from './country-code-button';\nimport CountryListMenu from './country-list-menu';\n\nconst PhoneCountrySelector: FC<IPhoneCountrySelectorProps> = ({ value, onChange }) => {\n const [menuVisible, setMenuVisible] = useState(false);\n\n const handleMenuVisibility = useCallback((visible: boolean) => {\n setMenuVisible(visible);\n }, []);\n\n if (!value || !onChange) return null;\n\n return (\n <FlexView>\n <ContextMenu\n startLeft\n targetElement={<CountryCodeButton value={value?.code} menuVisible={menuVisible} />}\n menuElement={\n <CountryListMenu onChange={onChange} selectedCountry={value} menuVisible={menuVisible} />\n }\n menuOffset={5}\n menuZIndex={1}\n onMenuVisibilityChange={handleMenuVisibility}\n />\n </FlexView>\n );\n};\n\nexport default PhoneCountrySelector;\n"],"names":["PhoneCountrySelector","value","onChange","menuVisible","setMenuVisible","useState","handleMenuVisibility","useCallback","visible","FlexView","jsx","ContextMenu","CountryCodeButton","CountryListMenu"],"mappings":";;;;;;AASA,MAAMA,IAAuD,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACpF,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAE9CC,IAAuBC,EAAY,CAACC,MAAqB;AAC7D,IAAAJ,EAAeI,CAAO;AAAA,EACxB,GAAG,CAAE,CAAA;AAEL,SAAI,CAACP,KAAS,CAACC,IAAiB,yBAG7BO,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAS;AAAA,MACT,eAAgB,gBAAAD,EAAAE,GAAA,EAAkB,OAAOX,KAAA,gBAAAA,EAAO,MAAM,aAAAE,GAA0B;AAAA,MAChF,aACG,gBAAAO,EAAAG,GAAA,EAAgB,UAAAX,GAAoB,iBAAiBD,GAAO,aAAAE,GAA0B;AAAA,MAEzF,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,wBAAwBG;AAAA,IAAA;AAAA,EAE5B,EAAA,CAAA;AAEJ;"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import o from "styled-components";
|
2
|
+
const e = o.input`
|
3
|
+
width: 100%;
|
4
|
+
max-width: 330px;
|
5
|
+
padding: 0;
|
6
|
+
line-height: 40px;
|
7
|
+
text-transform: ${({ textTransform: t }) => t || "none"};
|
8
|
+
border: none;
|
9
|
+
outline: none;
|
10
|
+
background-color: transparent;
|
11
|
+
font-size: ${({ fontSize: t }) => t}px;
|
12
|
+
text-align: ${({ align: t }) => t};
|
13
|
+
caret-color: ${({ theme: t }) => t.colors.WHITE};
|
14
|
+
color: ${({ theme: t }) => t.colors.WHITE};
|
15
|
+
font-family: 'Athletics-Light';
|
16
|
+
color: ${({ color: t }) => t};
|
17
|
+
transition: all 0.3s ease;
|
18
|
+
&::placeholder {
|
19
|
+
font-family: 'Athletics-Light';
|
20
|
+
font-size: 32px;
|
21
|
+
}
|
22
|
+
&::-webkit-outer-spin-button,
|
23
|
+
&::-webkit-inner-spin-button {
|
24
|
+
-webkit-appearance: none;
|
25
|
+
}
|
26
|
+
`;
|
27
|
+
export {
|
28
|
+
e as CustomInput
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=custom-input-field-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"custom-input-field-styled.js","sources":["../../../../../src/features/auth/signup/custom-input-field/custom-input-field-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const CustomInput = styled.input<{\n color: string;\n align?: string;\n textTransform?: string;\n fontSize?: number;\n}>`\n width: 100%;\n max-width: 330px;\n padding: 0;\n line-height: 40px;\n text-transform: ${({ textTransform }) => textTransform || 'none'};\n border: none;\n outline: none;\n background-color: transparent;\n font-size: ${({ fontSize }) => fontSize}px;\n text-align: ${({ align }) => align};\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme }) => theme.colors.WHITE};\n font-family: 'Athletics-Light';\n color: ${({ color }) => color};\n transition: all 0.3s ease;\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n`;\n"],"names":["CustomInput","styled","textTransform","fontSize","align","theme","color"],"mappings":";AAEO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,oBAUd,CAAC,EAAE,eAAAC,QAAoBA,KAAiB,MAAM;AAAA;AAAA;AAAA;AAAA,eAInD,CAAC,EAAE,UAAAC,EAAS,MAAMA,CAAQ;AAAA,gBACzB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA,iBACnB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,WACvC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,WAEjC,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|