@cuemath/leap 3.0.10-hg3 → 3.0.10-j
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 +76 -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/features/post-game-stats/digital-meter/digital-meter.js +40 -49
- package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
- package/dist/index.d.ts +282 -6
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"digital-meter.js","sources":["../../../../src/features/post-game-stats/digital-meter/digital-meter.tsx"],"sourcesContent":["import type { IDigitalMeterProps } from './digital-meter-types';\nimport type { FC } from 'react';\n\nimport React, { memo, useCallback, useEffect, useState } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport { useCircleSounds } from '../../circle-games/hooks/use-circle-sounds/use-circle-sounds';\nimport { CircleSoundKey } from '../../circle-games/hooks/use-circle-sounds/use-circle-sounds-enums';\nimport AnimatedArc from '../../ui/animated-arc/animated-arc';\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 { NumberCountAnimation } from '../number-count-animation/number-count-animation';\nimport {\n ANIMATED_ARC_START_ANGLE,\n ARC_RADIUS,\n PROGRESS_FILL_DELAY,\n PROGRESS_FILL_DURATION,\n STROKE_WIDTH,\n TARGET_ACHIEVED_DELAY,\n TOTAL_ANIMATION_DURATION,\n TOTAL_ARC_AVAILABLE,\n} from './constants';\nimport * as Styled from './digital-meter-styled';\n\nconst settings = {\n renderer: 'canvas',\n};\n\nexport const DigitalMeter: FC<IDigitalMeterProps> = memo(\n ({\n show,\n value,\n maxValue,\n targetValue = 0,\n displayText,\n progressType,\n helperTextPrimary,\n helperTextSecondary,\n onComplete,\n actAsTimer,\n }) => {\n const [isTargetAchieved, setIsTargetAchieved] = useState(false);\n const { play } = useCircleSounds();\n\n const isTargetValueAchieved = useCallback(\n (valueToCompare: number) => {\n if (targetValue) {\n if (actAsTimer) {\n return valueToCompare <= targetValue;\n }\n\n return valueToCompare >= targetValue;\n }\n\n return false;\n },\n [targetValue, actAsTimer],\n );\n\n useEffect(() => {\n let timer: ReturnType<typeof setTimeout>;\n let timerForAnimationComplete: ReturnType<typeof setTimeout>;\n const isTargetAchievedFlag = isTargetValueAchieved(value);\n\n if (show) {\n play(actAsTimer ? CircleSoundKey.TIME_INTRO : CircleSoundKey.ACCURACY_INTRO);\n play(CircleSoundKey.METER_FILL);\n if (isTargetAchievedFlag) {\n timer = setTimeout(() => {\n play(actAsTimer ? CircleSoundKey.TIME_TARGET : CircleSoundKey.ACCURACY_TARGET);\n setIsTargetAchieved(true);\n }, TARGET_ACHIEVED_DELAY * 1000);\n }\n\n const timeToFinishAnimation = isTargetAchievedFlag\n ? TOTAL_ANIMATION_DURATION\n : TARGET_ACHIEVED_DELAY;\n\n timerForAnimationComplete = setTimeout(() => {\n onComplete();\n }, timeToFinishAnimation * 1000);\n }\n\n return () => {\n timer && clearTimeout(timer);\n timerForAnimationComplete && clearTimeout(timerForAnimationComplete);\n };\n }, [show, value, onComplete, isTargetValueAchieved, actAsTimer, play]);\n\n if (!show) return null;\n\n return (\n <Styled.DigitalMeter $isTargetAchieved={isTargetAchieved}>\n {/* complete arc area to be filled */}\n <AnimatedArc\n targetAngle={TOTAL_ARC_AVAILABLE}\n strokeWidth={STROKE_WIDTH}\n color=\"BLACK_5\"\n radius={ARC_RADIUS}\n duration={0}\n startAngle={-ANIMATED_ARC_START_ANGLE}\n />\n\n {/* center area for the content */}\n <Styled.ContentContainer>\n <FlexView $flexDirection=\"column\" $alignItems=\"center\">\n <FlexView $flexDirection=\"row\" $alignItems=\"flex-end\">\n <Styled.NumberCountContainer>\n <Styled.RainboxColorText\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah1' : 'ah2'}\n $color=\"GREEN_4\"\n $isTargetAchieved={isTargetAchieved}\n >\n <NumberCountAnimation\n initialValue={0}\n targetValue={Math.floor(value)}\n durationInSec={PROGRESS_FILL_DURATION}\n delayInSec={PROGRESS_FILL_DELAY}\n />\n </Styled.RainboxColorText>\n </Styled.NumberCountContainer>\n {progressType === 'stepper' && (\n <Text\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah4' : 'ab1'}\n $color=\"WHITE\"\n >\n /{maxValue}\n </Text>\n )}\n </FlexView>\n <Separator height={8} />\n <Text\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color=\"WHITE_T_60\"\n >\n {displayText}\n </Text>\n </FlexView>\n </Styled.ContentContainer>\n\n {/* stepper animation */}\n {progressType === 'stepper' &&\n Array.from({ length: value }, (_, index) => {\n const arcLength = TOTAL_ARC_AVAILABLE / maxValue;\n\n return (\n <AnimatedArc\n key={index}\n startAngle={-ANIMATED_ARC_START_ANGLE + arcLength * index}\n targetAngle={arcLength}\n strokeWidth={STROKE_WIDTH}\n color=\"GREEN_4\"\n radius={ARC_RADIUS}\n mode=\"fade\"\n duration={PROGRESS_FILL_DURATION / maxValue}\n delay={PROGRESS_FILL_DELAY + (PROGRESS_FILL_DURATION / maxValue) * index}\n showAnimatedRainbowArc={isTargetAchieved}\n />\n );\n })}\n\n {/* numbers with markings */}\n {progressType === 'stepper' &&\n Array.from({ length: maxValue + 1 }, (_, index) => {\n const arcLength = TOTAL_ARC_AVAILABLE / maxValue;\n\n return (\n <React.Fragment key={index}>\n <Styled.LineMarking $angle={arcLength * index} />\n <Styled.MarkingContainer key={index} $angle={arcLength * index}>\n <Styled.MarkingText $angle={arcLength * index}>\n <Styled.RainboxColorText\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color={targetValue && targetValue === index ? 'GREEN_4' : 'WHITE_T_60'}\n $isTargetAchieved={\n targetValue === index && isTargetValueAchieved(index) && isTargetAchieved\n }\n >\n {index}\n </Styled.RainboxColorText>\n </Styled.MarkingText>\n </Styled.MarkingContainer>\n </React.Fragment>\n );\n })}\n\n {/* progress of linear */}\n {progressType === 'linear' && (\n <>\n <AnimatedArc\n targetAngle={(value * TOTAL_ARC_AVAILABLE) / maxValue}\n strokeWidth={STROKE_WIDTH}\n color=\"GREEN_4\"\n radius={ARC_RADIUS}\n duration={PROGRESS_FILL_DURATION}\n delay={PROGRESS_FILL_DELAY}\n showAnimatedRainbowArc={isTargetAchieved}\n startAngle={-ANIMATED_ARC_START_ANGLE}\n />\n <>\n {/* target line marking */}\n {targetValue && (\n <Styled.LineMarking $angle={(targetValue * TOTAL_ARC_AVAILABLE) / maxValue} />\n )}\n\n {/* all markings */}\n {Array.from(new Set([0, targetValue, maxValue])).map((val, index) => (\n <Styled.MarkingContainer\n key={index}\n $angle={(val * TOTAL_ARC_AVAILABLE) / maxValue}\n >\n <Styled.MarkingText $angle={(val * TOTAL_ARC_AVAILABLE) / maxValue}>\n <Styled.RainboxColorText\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color={targetValue && targetValue === val ? 'GREEN_4' : 'WHITE_T_60'}\n $isTargetAchieved={\n targetValue === val && isTargetAchieved && isTargetValueAchieved(val)\n }\n >\n {val}\n </Styled.RainboxColorText>\n </Styled.MarkingText>\n </Styled.MarkingContainer>\n ))}\n </>\n </>\n )}\n\n {/* helper text below the animation */}\n {isTargetAchieved && (\n <Styled.BottomAbsoluteView top={GAME_LAUNCHER_SIZE}>\n <LottieAnimation\n src={LOTTIE.TARGET_ACHIEVED_TEXT}\n settings={settings}\n width={GAME_LAUNCHER_SIZE * 0.6}\n />\n </Styled.BottomAbsoluteView>\n )}\n {!isTargetAchieved && (\n <Styled.BottomAbsoluteView top={GAME_LAUNCHER_SIZE}>\n <Separator height={25} />\n <FlexView $flexDirection=\"column\" $alignItems=\"center\">\n <Styled.HelperTextPrimary\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color=\"WHITE_T_60\"\n >\n {helperTextPrimary}\n <Separator height={GAME_LAUNCHER_SIZE * 0.03} />\n </Styled.HelperTextPrimary>\n <Styled.HelperTextSecondary\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah4' : 'ab1'}\n $color=\"WHITE\"\n >\n {helperTextSecondary}\n </Styled.HelperTextSecondary>\n </FlexView>\n </Styled.BottomAbsoluteView>\n )}\n </Styled.DigitalMeter>\n );\n },\n);\n"],"names":["settings","DigitalMeter","memo","show","value","maxValue","targetValue","displayText","progressType","helperTextPrimary","helperTextSecondary","onComplete","actAsTimer","isTargetAchieved","setIsTargetAchieved","useState","play","useCircleSounds","isTargetValueAchieved","useCallback","valueToCompare","useEffect","timer","timerForAnimationComplete","isTargetAchievedFlag","CircleSoundKey","TARGET_ACHIEVED_DELAY","TOTAL_ANIMATION_DURATION","jsxs","Styled.DigitalMeter","jsx","AnimatedArc","TOTAL_ARC_AVAILABLE","STROKE_WIDTH","ARC_RADIUS","ANIMATED_ARC_START_ANGLE","Styled.ContentContainer","FlexView","Styled.NumberCountContainer","Styled.RainboxColorText","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_SIZE_LARGE","NumberCountAnimation","PROGRESS_FILL_DURATION","PROGRESS_FILL_DELAY","Text","Separator","_","index","arcLength","React","Styled.LineMarking","Styled.MarkingContainer","Styled.MarkingText","Fragment","val","Styled.BottomAbsoluteView","LottieAnimation","LOTTIE","Styled.HelperTextPrimary","Styled.HelperTextSecondary"],"mappings":";;;;;;;;;;;;;;AA8BA,MAAMA,KAAW;AAAA,EACf,UAAU;AACZ,GAEaC,KAAuCC;AAAA,EAClD,CAAC;A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,GAAA,EAAU,QAAQN,IAAqB,KAAM,CAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UAChD;AAAA,UACA,gBAAAV;AAAA,YAAC8B;AAAAA,YAAA;AAAA,cACC,WAAWpB,MAAuBC,IAA2B,QAAQ;AAAA,cACrE,QAAO;AAAA,cAEN,UAAA/B;AAAA,YAAA;AAAA,UACH;AAAA,QAAA,GACF;AAAA,MAAA,GACF;AAAA,IAEJ,EAAA,CAAA,IAjLgB;AAAA,EAmLpB;AACF;"}
|
1
|
+
{"version":3,"file":"digital-meter.js","sources":["../../../../src/features/post-game-stats/digital-meter/digital-meter.tsx"],"sourcesContent":["import type { IDigitalMeterProps } from './digital-meter-types';\nimport type { FC } from 'react';\n\nimport React, { memo, useCallback, useEffect, useState } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport { useCircleSounds } from '../../circle-games/hooks/use-circle-sounds/use-circle-sounds';\nimport { CircleSoundKey } from '../../circle-games/hooks/use-circle-sounds/use-circle-sounds-enums';\nimport AnimatedArc from '../../ui/animated-arc/animated-arc';\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 { NumberCountAnimation } from '../number-count-animation/number-count-animation';\nimport {\n ANIMATED_ARC_START_ANGLE,\n ARC_RADIUS,\n PROGRESS_FILL_DELAY,\n PROGRESS_FILL_DURATION,\n STROKE_WIDTH,\n TARGET_ACHIEVED_DELAY,\n TOTAL_ANIMATION_DURATION,\n TOTAL_ARC_AVAILABLE,\n} from './constants';\nimport * as Styled from './digital-meter-styled';\n\nexport const DigitalMeter: FC<IDigitalMeterProps> = memo(\n ({\n show,\n value,\n maxValue,\n targetValue = 0,\n displayText,\n progressType,\n helperTextPrimary,\n helperTextSecondary,\n onComplete,\n actAsTimer,\n }) => {\n const [isTargetAchieved, setIsTargetAchieved] = useState(false);\n const { play } = useCircleSounds();\n\n const isTargetValueAchieved = useCallback(\n (valueToCompare: number) => {\n if (targetValue) {\n if (actAsTimer) {\n return valueToCompare <= targetValue;\n }\n\n return valueToCompare >= targetValue;\n }\n\n return false;\n },\n [targetValue, actAsTimer],\n );\n\n useEffect(() => {\n let timer: ReturnType<typeof setTimeout>;\n let timerForAnimationComplete: ReturnType<typeof setTimeout>;\n const isTargetAchievedFlag = isTargetValueAchieved(value);\n\n if (show) {\n play(actAsTimer ? CircleSoundKey.TIME_INTRO : CircleSoundKey.ACCURACY_INTRO);\n play(CircleSoundKey.METER_FILL);\n if (isTargetAchievedFlag) {\n timer = setTimeout(() => {\n play(actAsTimer ? CircleSoundKey.TIME_TARGET : CircleSoundKey.ACCURACY_TARGET);\n setIsTargetAchieved(true);\n }, TARGET_ACHIEVED_DELAY * 1000);\n }\n\n const timeToFinishAnimation = isTargetAchievedFlag\n ? TOTAL_ANIMATION_DURATION\n : TARGET_ACHIEVED_DELAY;\n\n timerForAnimationComplete = setTimeout(() => {\n onComplete();\n }, timeToFinishAnimation * 1000);\n }\n\n return () => {\n timer && clearTimeout(timer);\n timerForAnimationComplete && clearTimeout(timerForAnimationComplete);\n };\n }, [show, value, onComplete, isTargetValueAchieved, actAsTimer, play]);\n\n if (!show) return null;\n\n return (\n <Styled.DigitalMeter $isTargetAchieved={isTargetAchieved}>\n {/* complete arc area to be filled */}\n <AnimatedArc\n targetAngle={TOTAL_ARC_AVAILABLE}\n strokeWidth={STROKE_WIDTH}\n color=\"BLACK_5\"\n radius={ARC_RADIUS}\n duration={0}\n startAngle={-ANIMATED_ARC_START_ANGLE}\n />\n\n {/* center area for the content */}\n <Styled.ContentContainer>\n <FlexView $flexDirection=\"column\" $alignItems=\"center\">\n <FlexView $flexDirection=\"row\" $alignItems=\"flex-end\">\n <Styled.NumberCountContainer>\n <Styled.RainboxColorText\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah1' : 'ah2'}\n $color=\"GREEN_4\"\n $isTargetAchieved={isTargetAchieved}\n >\n <NumberCountAnimation\n initialValue={0}\n targetValue={Math.floor(value)}\n durationInSec={PROGRESS_FILL_DURATION}\n delayInSec={PROGRESS_FILL_DELAY}\n />\n </Styled.RainboxColorText>\n </Styled.NumberCountContainer>\n {progressType === 'stepper' && (\n <Text\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah4' : 'ab1'}\n $color=\"WHITE\"\n >\n /{maxValue}\n </Text>\n )}\n </FlexView>\n <Separator height={8} />\n <Text\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color=\"WHITE_T_60\"\n >\n {displayText}\n </Text>\n </FlexView>\n </Styled.ContentContainer>\n\n {/* stepper animation */}\n {progressType === 'stepper' &&\n Array.from({ length: value }, (_, index) => {\n const arcLength = TOTAL_ARC_AVAILABLE / maxValue;\n\n return (\n <AnimatedArc\n key={index}\n startAngle={-ANIMATED_ARC_START_ANGLE + arcLength * index}\n targetAngle={arcLength}\n strokeWidth={STROKE_WIDTH}\n color=\"GREEN_4\"\n radius={ARC_RADIUS}\n mode=\"fade\"\n duration={PROGRESS_FILL_DURATION / maxValue}\n delay={PROGRESS_FILL_DELAY + (PROGRESS_FILL_DURATION / maxValue) * index}\n showAnimatedRainbowArc={isTargetAchieved}\n />\n );\n })}\n\n {/* numbers with markings */}\n {progressType === 'stepper' &&\n Array.from({ length: maxValue + 1 }, (_, index) => {\n const arcLength = TOTAL_ARC_AVAILABLE / maxValue;\n\n return (\n <React.Fragment key={index}>\n <Styled.LineMarking $angle={arcLength * index} />\n <Styled.MarkingContainer key={index} $angle={arcLength * index}>\n <Styled.MarkingText $angle={arcLength * index}>\n <Styled.RainboxColorText\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color={targetValue && targetValue === index ? 'GREEN_4' : 'WHITE_T_60'}\n $isTargetAchieved={\n targetValue === index && isTargetValueAchieved(index) && isTargetAchieved\n }\n >\n {index}\n </Styled.RainboxColorText>\n </Styled.MarkingText>\n </Styled.MarkingContainer>\n </React.Fragment>\n );\n })}\n\n {/* progress of linear */}\n {progressType === 'linear' && (\n <>\n <AnimatedArc\n targetAngle={(value * TOTAL_ARC_AVAILABLE) / maxValue}\n strokeWidth={STROKE_WIDTH}\n color=\"GREEN_4\"\n radius={ARC_RADIUS}\n duration={PROGRESS_FILL_DURATION}\n delay={PROGRESS_FILL_DELAY}\n showAnimatedRainbowArc={isTargetAchieved}\n startAngle={-ANIMATED_ARC_START_ANGLE}\n />\n <>\n {/* target line marking */}\n {targetValue && (\n <Styled.LineMarking $angle={(targetValue * TOTAL_ARC_AVAILABLE) / maxValue} />\n )}\n\n {/* all markings */}\n {Array.from(new Set([0, targetValue, maxValue])).map((val, index) => (\n <Styled.MarkingContainer\n key={index}\n $angle={(val * TOTAL_ARC_AVAILABLE) / maxValue}\n >\n <Styled.MarkingText $angle={(val * TOTAL_ARC_AVAILABLE) / maxValue}>\n <Styled.RainboxColorText\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color={targetValue && targetValue === val ? 'GREEN_4' : 'WHITE_T_60'}\n $isTargetAchieved={\n targetValue === val && isTargetAchieved && isTargetValueAchieved(val)\n }\n >\n {val}\n </Styled.RainboxColorText>\n </Styled.MarkingText>\n </Styled.MarkingContainer>\n ))}\n </>\n </>\n )}\n\n {/* helper text below the animation */}\n {isTargetAchieved && (\n <Styled.BottomAbsoluteView top={GAME_LAUNCHER_SIZE}>\n <LottieAnimation src={LOTTIE.TARGET_ACHIEVED_TEXT} />\n </Styled.BottomAbsoluteView>\n )}\n {!isTargetAchieved && (\n <Styled.BottomAbsoluteView top={GAME_LAUNCHER_SIZE}>\n <Separator height={25} />\n <FlexView $flexDirection=\"column\" $alignItems=\"center\">\n <Styled.HelperTextPrimary\n $renderAs={\n GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ac3-black' : 'ac4-black'\n }\n $color=\"WHITE_T_60\"\n >\n {helperTextPrimary}\n <Separator height={GAME_LAUNCHER_SIZE * 0.03} />\n </Styled.HelperTextPrimary>\n <Styled.HelperTextSecondary\n $renderAs={GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 'ah4' : 'ab1'}\n $color=\"WHITE\"\n >\n {helperTextSecondary}\n </Styled.HelperTextSecondary>\n </FlexView>\n </Styled.BottomAbsoluteView>\n )}\n </Styled.DigitalMeter>\n );\n },\n);\n"],"names":["DigitalMeter","memo","show","value","maxValue","targetValue","displayText","progressType","helperTextPrimary","helperTextSecondary","onComplete","actAsTimer","isTargetAchieved","setIsTargetAchieved","useState","play","useCircleSounds","isTargetValueAchieved","useCallback","valueToCompare","useEffect","timer","timerForAnimationComplete","isTargetAchievedFlag","CircleSoundKey","TARGET_ACHIEVED_DELAY","TOTAL_ANIMATION_DURATION","jsxs","Styled.DigitalMeter","jsx","AnimatedArc","TOTAL_ARC_AVAILABLE","STROKE_WIDTH","ARC_RADIUS","ANIMATED_ARC_START_ANGLE","Styled.ContentContainer","FlexView","Styled.NumberCountContainer","Styled.RainboxColorText","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_SIZE_LARGE","NumberCountAnimation","PROGRESS_FILL_DURATION","PROGRESS_FILL_DELAY","Text","Separator","_","index","arcLength","React","Styled.LineMarking","Styled.MarkingContainer","Styled.MarkingText","Fragment","val","Styled.BottomAbsoluteView","LottieAnimation","LOTTIE","Styled.HelperTextPrimary","Styled.HelperTextSecondary"],"mappings":";;;;;;;;;;;;;;AA8BO,MAAMA,KAAuCC;AAAA,EAClD,CAAC;AAAA,IACC,MAAAC;AAAA,IACA,OAAAC;AAA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8B;AAAAA,YAAA;AAAA,cACC,WAAWpB,MAAuBC,IAA2B,QAAQ;AAAA,cACrE,QAAO;AAAA,cAEN,UAAA/B;AAAA,YAAA;AAAA,UACH;AAAA,QAAA,GACF;AAAA,MAAA,GACF;AAAA,IAEJ,EAAA,CAAA,IA7KgB;AAAA,EA+KpB;AACF;"}
|
package/dist/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ import type { DefaultTheme } from 'styled-components';
|
|
7
7
|
import { DetailedHTMLProps } from 'react';
|
8
8
|
import type { Dispatch } from 'react';
|
9
9
|
import { FC } from 'react';
|
10
|
+
import type { FormEvent } from 'react';
|
10
11
|
import { ForwardRefExoticComponent } from 'react';
|
11
12
|
import { HTMLAttributes } from 'react';
|
12
13
|
import { IChannelMessage } from '@cuemath/cue-message-broker';
|
@@ -40,6 +41,8 @@ import { Substitute } from 'styled-components/dist/types';
|
|
40
41
|
*/
|
41
42
|
export declare const AccordionSection: FC<IAccordionSectionProps>;
|
42
43
|
|
44
|
+
export declare const AccountSelector: ({ userAccounts, onSelect, onAddNew, isLoading, }: IAccountSelectorViewProps) => JSX_2.Element;
|
45
|
+
|
43
46
|
export declare const ACHIEVEMENT_ACTIONS: {
|
44
47
|
SHARE: string;
|
45
48
|
NOT_SHARE_CHOSEN: string;
|
@@ -61,6 +64,22 @@ export declare const ArcButton: MemoExoticComponent<ForwardRefExoticComponent<IA
|
|
61
64
|
|
62
65
|
export declare const ArrowTooltip: FC<IArrowTooltipProps>;
|
63
66
|
|
67
|
+
export declare const AUTH_TABS: ITabConfig<TAuthTabKeys>;
|
68
|
+
|
69
|
+
export declare const AuthApiErrorCode: {
|
70
|
+
readonly USER_NOT_FOUND: 8000;
|
71
|
+
readonly INVALID_PASSWORD: 8001;
|
72
|
+
readonly MULTIPLE_USERS_FOUND: 8002;
|
73
|
+
readonly ACCESS_TOKEN_FAILURE: 8003;
|
74
|
+
readonly INVALID_ACCESS_TOKEN: 8004;
|
75
|
+
readonly INVALID_USERNAME_OR_USER_ALREADY_EXIST: 8005;
|
76
|
+
readonly SOCIAL_SIGNUP_EMAIL_MISSING: 8006;
|
77
|
+
};
|
78
|
+
|
79
|
+
export declare const AuthPageLayout: FC<IAuthPageLayoutProps>;
|
80
|
+
|
81
|
+
export declare const AuthStaticPanel: FC<IAuthStaticPanelProps>;
|
82
|
+
|
64
83
|
export declare const AutoPlayPermissionProvider: FC<{
|
65
84
|
children: ReactNode;
|
66
85
|
}>;
|
@@ -231,6 +250,10 @@ export declare const CircularLoader: () => JSX_2.Element;
|
|
231
250
|
|
232
251
|
export declare const CircularSteps: FC<ICircularStepsProps>;
|
233
252
|
|
253
|
+
export declare const CircularStepWrapper: ForwardRefExoticComponent<ICircularStepWrapperProps & RefAttributes<ICircularStepRef>>;
|
254
|
+
|
255
|
+
export declare const ClaimUserAccount: NamedExoticComponent<IClaimUserAccountProps>;
|
256
|
+
|
234
257
|
export declare const Clickable: React_2.FC<IClickableProps>;
|
235
258
|
|
236
259
|
export declare const ClipboardIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -279,8 +302,12 @@ export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
279
302
|
|
280
303
|
export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
|
281
304
|
|
305
|
+
export declare const CustomInputField: FC<ICustomInputFieldProps>;
|
306
|
+
|
282
307
|
export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
283
308
|
|
309
|
+
export declare const DatePickerInput: FC<IDatePickerInputProps>;
|
310
|
+
|
284
311
|
export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
285
312
|
|
286
313
|
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
@@ -487,6 +514,8 @@ export declare const GoalEdit: React.FC<IMileStoneEditContainerProps>;
|
|
487
514
|
|
488
515
|
export declare const GooglePlacesSearchInput: ComponentType<Omit_2<IGooglePlacesSearchInputProps, IProvidedProps>>;
|
489
516
|
|
517
|
+
export declare const GradeInput: FC<ICustomInputFieldProps>;
|
518
|
+
|
490
519
|
export declare function GradeSelector({ selectedValue, onSelect, tabsWidth, width, grades, renderAs, size, layoutAlignment, }: IGradeSelectorProps): JSX.Element;
|
491
520
|
|
492
521
|
export declare const HandIcon: React_2.FC;
|
@@ -523,6 +552,17 @@ declare interface IAccordionSectionProps {
|
|
523
552
|
bodyOverFlow?: TStyleAttrubutes['overflow'];
|
524
553
|
}
|
525
554
|
|
555
|
+
declare interface IAccountSelectorViewProps {
|
556
|
+
userAccounts: {
|
557
|
+
id: string;
|
558
|
+
username: string;
|
559
|
+
user_avatar?: IAvatarLayer[] | null;
|
560
|
+
}[];
|
561
|
+
onSelect: (accountId: string) => void;
|
562
|
+
onAddNew: () => void;
|
563
|
+
isLoading: boolean;
|
564
|
+
}
|
565
|
+
|
526
566
|
declare interface IAchievementConfig {
|
527
567
|
pollingInterval?: number;
|
528
568
|
maxPollingAttempts?: number;
|
@@ -589,6 +629,17 @@ declare interface IAttempt {
|
|
589
629
|
score: ILearnosityQuestionScore;
|
590
630
|
}
|
591
631
|
|
632
|
+
declare interface IAuthPageLayoutProps {
|
633
|
+
leftBlock: ReactNode;
|
634
|
+
rightBlock?: ReactNode;
|
635
|
+
isFullWidth?: boolean;
|
636
|
+
}
|
637
|
+
|
638
|
+
declare interface IAuthStaticPanelProps {
|
639
|
+
title?: string;
|
640
|
+
description?: string;
|
641
|
+
}
|
642
|
+
|
592
643
|
declare interface IAutoPlayPermissionContextType {
|
593
644
|
canAutoPlayAudio: boolean;
|
594
645
|
canAutoPlayVideo: boolean;
|
@@ -965,6 +1016,10 @@ export declare interface ICircleHomeDetails {
|
|
965
1016
|
timestamps: ITodaysContentTimeStamps;
|
966
1017
|
}
|
967
1018
|
|
1019
|
+
export declare type ICircularStepRef = {
|
1020
|
+
playOutroAndFadeOut: () => Promise<void>;
|
1021
|
+
};
|
1022
|
+
|
968
1023
|
declare interface ICircularSteps {
|
969
1024
|
id: string;
|
970
1025
|
label?: React.ReactNode;
|
@@ -988,6 +1043,29 @@ declare interface ICircularStepsProps {
|
|
988
1043
|
sizeInPercent?: number;
|
989
1044
|
}
|
990
1045
|
|
1046
|
+
declare interface ICircularStepWrapperProps {
|
1047
|
+
children: ReactNode;
|
1048
|
+
animation: string;
|
1049
|
+
introFrames: [number, number];
|
1050
|
+
outroFrames: [number, number];
|
1051
|
+
onGoBack?: () => void;
|
1052
|
+
onNext?: () => void;
|
1053
|
+
label?: string;
|
1054
|
+
showNext?: boolean;
|
1055
|
+
showPrevious?: boolean;
|
1056
|
+
isNextLoading?: boolean;
|
1057
|
+
progressAngle?: number;
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
declare interface IClaimUserAccountProps {
|
1061
|
+
email?: string;
|
1062
|
+
onSelectAccount: (userId: string) => void;
|
1063
|
+
onCreateNewAccount: () => void;
|
1064
|
+
userAccounts: TUserAccount[];
|
1065
|
+
isCreatingAccount: boolean;
|
1066
|
+
isLoading: boolean;
|
1067
|
+
}
|
1068
|
+
|
991
1069
|
declare interface IClassStatus {
|
992
1070
|
next_class_time?: number;
|
993
1071
|
class_duration: number;
|
@@ -1071,6 +1149,16 @@ declare interface ICountdownTimer {
|
|
1071
1149
|
theme: 'GREEN_1' | 'ORANGE_1';
|
1072
1150
|
}
|
1073
1151
|
|
1152
|
+
declare interface ICountryOption {
|
1153
|
+
code: string;
|
1154
|
+
id: string;
|
1155
|
+
value: string;
|
1156
|
+
label: string;
|
1157
|
+
icon: string;
|
1158
|
+
url: string;
|
1159
|
+
geoIPCountryCode: string;
|
1160
|
+
}
|
1161
|
+
|
1074
1162
|
export declare interface ICreateUserPayloadDal {
|
1075
1163
|
username: string;
|
1076
1164
|
grade: string;
|
@@ -1129,6 +1217,26 @@ declare interface ICurriculumStandards {
|
|
1129
1217
|
name: string;
|
1130
1218
|
}
|
1131
1219
|
|
1220
|
+
declare interface ICustomInputFieldProps {
|
1221
|
+
value: string;
|
1222
|
+
onChange: (value: string) => void;
|
1223
|
+
onEnter?: () => void;
|
1224
|
+
error?: string;
|
1225
|
+
helperText?: string;
|
1226
|
+
actionElement?: ReactNode;
|
1227
|
+
isLoading?: boolean;
|
1228
|
+
isValid?: boolean;
|
1229
|
+
type?: 'text' | 'password' | 'number' | 'phone';
|
1230
|
+
placeholder?: string;
|
1231
|
+
maxLength?: number;
|
1232
|
+
width?: number;
|
1233
|
+
textTransform?: string;
|
1234
|
+
textAlign?: string;
|
1235
|
+
onCountryChange?: (option: TSelectedCountry) => void;
|
1236
|
+
selectedCountry?: TSelectedCountry;
|
1237
|
+
autoSize?: boolean;
|
1238
|
+
}
|
1239
|
+
|
1132
1240
|
declare interface ICustomVideoProps extends React_2.DetailedHTMLProps<React_2.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement> {
|
1133
1241
|
isYoutube?: boolean;
|
1134
1242
|
analyticsData?: Record<string, unknown>;
|
@@ -1136,6 +1244,13 @@ declare interface ICustomVideoProps extends React_2.DetailedHTMLProps<React_2.Vi
|
|
1136
1244
|
src: string;
|
1137
1245
|
}
|
1138
1246
|
|
1247
|
+
declare interface IDatePickerInputProps extends Omit<ICustomInputFieldProps, 'value' | 'onChange'> {
|
1248
|
+
value: Date | null;
|
1249
|
+
onChange: (date: Date | null) => void;
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
export declare const IdentifierOtpForm: React_2.FC<IIdentifierOtpFormProps>;
|
1253
|
+
|
1139
1254
|
declare interface IDesmosCalculatorProps {
|
1140
1255
|
onClose: () => void;
|
1141
1256
|
height?: string | number;
|
@@ -1360,6 +1475,22 @@ declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape'
|
|
1360
1475
|
renderAs: TButtonVariants;
|
1361
1476
|
}
|
1362
1477
|
|
1478
|
+
declare interface IIdentifierOtpFormProps {
|
1479
|
+
identifier: string;
|
1480
|
+
otp: string;
|
1481
|
+
errors: {
|
1482
|
+
identifier: string;
|
1483
|
+
otp: string;
|
1484
|
+
};
|
1485
|
+
isOtpVerified: boolean;
|
1486
|
+
isLoading: boolean;
|
1487
|
+
isSubmitDisabled: boolean;
|
1488
|
+
showOtpInput: boolean;
|
1489
|
+
onChange: (key: 'identifier' | 'otp', value: string) => void;
|
1490
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
1491
|
+
onSendOtp: () => void;
|
1492
|
+
}
|
1493
|
+
|
1363
1494
|
declare interface IImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
1364
1495
|
withLoader: boolean;
|
1365
1496
|
borderRadius?: number;
|
@@ -1385,6 +1516,15 @@ export declare interface IInputSizeConfig {
|
|
1385
1516
|
iconPadding: number;
|
1386
1517
|
}
|
1387
1518
|
|
1519
|
+
declare interface IInputStatusIconProps {
|
1520
|
+
isLoading?: boolean;
|
1521
|
+
isValid?: boolean;
|
1522
|
+
isError?: boolean;
|
1523
|
+
size?: number;
|
1524
|
+
successColor?: TColorNames;
|
1525
|
+
errorColor?: TColorNames;
|
1526
|
+
}
|
1527
|
+
|
1388
1528
|
export declare interface IInputVariantConfig {
|
1389
1529
|
valueColorName: {
|
1390
1530
|
inactive: TColorNames;
|
@@ -1744,6 +1884,7 @@ export declare const ILLUSTRATIONS: {
|
|
1744
1884
|
CHAPTER_HEADER_BG: string;
|
1745
1885
|
CHAPTER_HEADER_BG_2: string;
|
1746
1886
|
CIRCLE_CUEMATH_LOGO: string;
|
1887
|
+
CIRCLE_CUEMATH_LOGO_WHITE: string;
|
1747
1888
|
CIRCLE_OUTERCIRCLE_BG: string;
|
1748
1889
|
CLOCK_ORANGE: string;
|
1749
1890
|
COMMUNITY_BULB: string;
|
@@ -1751,6 +1892,7 @@ export declare const ILLUSTRATIONS: {
|
|
1751
1892
|
CROWN: string;
|
1752
1893
|
CROWN_OVERLAY: string;
|
1753
1894
|
CUECOIN_GOLD: string;
|
1895
|
+
CUEMATH_APP_QR_CODE: string;
|
1754
1896
|
DESKTOP_WITH_PURPLE_FILL: string;
|
1755
1897
|
DURATION_30MIN_GRAY: string;
|
1756
1898
|
DURATION_45MIN_GRAY: string;
|
@@ -1835,6 +1977,7 @@ export declare const ILLUSTRATIONS: {
|
|
1835
1977
|
USER_DOWN: string;
|
1836
1978
|
USER_PIN: string;
|
1837
1979
|
USER_PROFILE_BACKGROUND: string;
|
1980
|
+
USER_TYPE_SELECTOR_GRID_BG: string;
|
1838
1981
|
USER_UP: string;
|
1839
1982
|
YELLOW_FACE: string;
|
1840
1983
|
};
|
@@ -2264,6 +2407,8 @@ declare interface INodePermissions {
|
|
2264
2407
|
can_unassign: boolean;
|
2265
2408
|
}
|
2266
2409
|
|
2410
|
+
export declare const InputStatusIcon: React.FC<IInputStatusIconProps>;
|
2411
|
+
|
2267
2412
|
export declare interface INudgeProps {
|
2268
2413
|
nudge: 'click';
|
2269
2414
|
content: ReactNode;
|
@@ -2296,6 +2441,14 @@ declare interface IOpenImageReviewModalProps {
|
|
2296
2441
|
image?: string;
|
2297
2442
|
}
|
2298
2443
|
|
2444
|
+
declare interface IOTPResendProps {
|
2445
|
+
onResendOTP: () => void;
|
2446
|
+
onResendVoiceOTP?: () => void;
|
2447
|
+
timerSeconds?: number;
|
2448
|
+
showVoiceOTP?: boolean;
|
2449
|
+
disabled?: boolean;
|
2450
|
+
}
|
2451
|
+
|
2299
2452
|
declare interface IOutcomeConfig {
|
2300
2453
|
id: string;
|
2301
2454
|
input_type: string;
|
@@ -2573,6 +2726,16 @@ declare interface IReferenceSheetProps {
|
|
2573
2726
|
};
|
2574
2727
|
}
|
2575
2728
|
|
2729
|
+
declare interface IResetPasswordFormProps {
|
2730
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
2731
|
+
onChange: (key: string, value: string) => void;
|
2732
|
+
formData: Record<string, string>;
|
2733
|
+
errors: Record<string, string>;
|
2734
|
+
isProcessing: boolean;
|
2735
|
+
isSubmitDisabled: boolean;
|
2736
|
+
isValid?: boolean;
|
2737
|
+
}
|
2738
|
+
|
2576
2739
|
export declare interface IResourceItemData {
|
2577
2740
|
boards: string[];
|
2578
2741
|
created_on: string;
|
@@ -2791,6 +2954,14 @@ declare interface ISheetsListProps extends ISheetItemCallbackProps {
|
|
2791
2954
|
section?: TSheetsSection;
|
2792
2955
|
}
|
2793
2956
|
|
2957
|
+
declare interface ISignupMethodsProps {
|
2958
|
+
onEmailSignup: () => void;
|
2959
|
+
onPhoneSignup: () => void;
|
2960
|
+
onGoogleSignup: () => void;
|
2961
|
+
onAppleSignup: () => void;
|
2962
|
+
loadingProvider: TSocialAuthProvider | null;
|
2963
|
+
}
|
2964
|
+
|
2794
2965
|
export declare interface ISignUpProps {
|
2795
2966
|
circleOnLeapSignedUp: boolean;
|
2796
2967
|
circleOnLeapPremiumEnabled: boolean;
|
@@ -2808,6 +2979,29 @@ export declare interface ISignUpProps {
|
|
2808
2979
|
onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
|
2809
2980
|
}
|
2810
2981
|
|
2982
|
+
declare interface ISingleFieldFormProps {
|
2983
|
+
onSubmit: (e?: FormEvent<HTMLFormElement>) => void;
|
2984
|
+
onChange: (key: string, value: string) => void;
|
2985
|
+
value: string;
|
2986
|
+
error: string;
|
2987
|
+
isProcessing: boolean;
|
2988
|
+
isSubmitDisabled?: boolean;
|
2989
|
+
isValid?: boolean;
|
2990
|
+
field?: string;
|
2991
|
+
label?: string;
|
2992
|
+
}
|
2993
|
+
|
2994
|
+
declare interface ISocialAccountNotFoundProps {
|
2995
|
+
onRetryLogin: () => void;
|
2996
|
+
onGoToSignup: () => void;
|
2997
|
+
}
|
2998
|
+
|
2999
|
+
declare interface ISocialLoginMethodsProps {
|
3000
|
+
onGoogleLogin: () => void;
|
3001
|
+
onAppleLogin: () => void;
|
3002
|
+
loadingProvider: TSocialAuthProvider | null;
|
3003
|
+
}
|
3004
|
+
|
2811
3005
|
export declare const isOkayTypeQuestion: IIsOkayTypeQuestion;
|
2812
3006
|
|
2813
3007
|
export declare enum IStatsToAwardErrorCode {
|
@@ -2903,6 +3097,13 @@ declare interface ISyncableWebGameProps {
|
|
2903
3097
|
enableSync?: boolean;
|
2904
3098
|
}
|
2905
3099
|
|
3100
|
+
export declare type ITabConfig<T extends string = string> = Record<T, ITabItem>;
|
3101
|
+
|
3102
|
+
declare interface ITabItem {
|
3103
|
+
label: string;
|
3104
|
+
component?: JSX.Element;
|
3105
|
+
}
|
3106
|
+
|
2906
3107
|
export declare interface ITable {
|
2907
3108
|
tableList: ITableInfo[];
|
2908
3109
|
infiniteModeHighScore: number;
|
@@ -2925,11 +3126,6 @@ declare interface ITableInfo_2 {
|
|
2925
3126
|
stars: ('advance' | 'random' | 'sequence')[];
|
2926
3127
|
}
|
2927
3128
|
|
2928
|
-
declare interface ITableModeState {
|
2929
|
-
tableNumber: number;
|
2930
|
-
rewardStar?: TTableMode[];
|
2931
|
-
}
|
2932
|
-
|
2933
3129
|
export declare interface ITables {
|
2934
3130
|
type: ProjectType;
|
2935
3131
|
label: string;
|
@@ -2942,7 +3138,10 @@ declare interface ITables_2 {
|
|
2942
3138
|
}
|
2943
3139
|
|
2944
3140
|
export declare interface ITablesData extends ITables {
|
2945
|
-
openModesOfTable?:
|
3141
|
+
openModesOfTable?: {
|
3142
|
+
tableNumber: number;
|
3143
|
+
rewardStars?: TTableMode[];
|
3144
|
+
};
|
2946
3145
|
}
|
2947
3146
|
|
2948
3147
|
export declare interface ITableWebGameProps extends IBaseWebGameProps {
|
@@ -2968,6 +3167,12 @@ export declare interface ITabSizeConfig {
|
|
2968
3167
|
textVariant: TTextVariants;
|
2969
3168
|
}
|
2970
3169
|
|
3170
|
+
declare interface ITabsProps<T extends string> {
|
3171
|
+
selectedTab: T;
|
3172
|
+
onChange: (tab: T) => void;
|
3173
|
+
tabs: ITabConfig<T>;
|
3174
|
+
}
|
3175
|
+
|
2971
3176
|
export declare interface ITabVariantConfig {
|
2972
3177
|
backgroundColorName: {
|
2973
3178
|
inactive: TColorNames;
|
@@ -3324,6 +3529,25 @@ declare interface IUserChapterProgressProps {
|
|
3324
3529
|
total_core_sheets: number;
|
3325
3530
|
}
|
3326
3531
|
|
3532
|
+
declare interface IUsernamePasswordFormProps {
|
3533
|
+
username: string;
|
3534
|
+
password: string;
|
3535
|
+
errors: {
|
3536
|
+
username: string;
|
3537
|
+
password: string;
|
3538
|
+
};
|
3539
|
+
isLoading: boolean;
|
3540
|
+
onChange: (key: 'username' | 'password', value: string) => void;
|
3541
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
3542
|
+
onForgotPassword: () => void;
|
3543
|
+
}
|
3544
|
+
|
3545
|
+
declare interface IUserTypeSelectorProps {
|
3546
|
+
onNext: () => void;
|
3547
|
+
onUserTypeChange: (id: TAuthUserType) => void;
|
3548
|
+
userType: TAuthUserType;
|
3549
|
+
}
|
3550
|
+
|
3327
3551
|
declare interface IUseTrialSessionMessageBroker {
|
3328
3552
|
(options: {
|
3329
3553
|
teacherClassroomId?: string;
|
@@ -3713,6 +3937,7 @@ export declare const LOTTIE: {
|
|
3713
3937
|
ACCURACY_METER: string;
|
3714
3938
|
ACCURACY_NEEDLE: string;
|
3715
3939
|
ADVANCE_MODE_SEGMENT_LOTTIE: string;
|
3940
|
+
AVATAR_SELECTED: string;
|
3716
3941
|
BEGINNER1X: string;
|
3717
3942
|
BRONZE_1: string;
|
3718
3943
|
BRONZE_2: string;
|
@@ -3727,8 +3952,10 @@ export declare const LOTTIE: {
|
|
3727
3952
|
COLOR_3: string;
|
3728
3953
|
COMPETITIVE_ARENA: string;
|
3729
3954
|
DIFFICULT: string;
|
3955
|
+
DOB: string;
|
3730
3956
|
EASY: string;
|
3731
3957
|
ELITE_CIRCLE: string;
|
3958
|
+
ERROR: string;
|
3732
3959
|
ERROR_LOTTIE: string;
|
3733
3960
|
FAMILIAR1X: string;
|
3734
3961
|
FIFTEEN_MIN_CLOCK: string;
|
@@ -3736,12 +3963,18 @@ export declare const LOTTIE: {
|
|
3736
3963
|
GOLD_1: string;
|
3737
3964
|
GOLD_2: string;
|
3738
3965
|
GOLD_3: string;
|
3966
|
+
GRADE: string;
|
3739
3967
|
INFINITE_BUTTON_BG: string;
|
3740
3968
|
INFINITE_BUTTON_SYMBOL: string;
|
3969
|
+
KEY: string;
|
3741
3970
|
LEARN: string;
|
3742
3971
|
LEVELUP_RINGS: string;
|
3972
|
+
MAIL: string;
|
3743
3973
|
MEDIUM: string;
|
3744
3974
|
NUDGE_TAP: string;
|
3975
|
+
OTP: string;
|
3976
|
+
PARENT_AVATAR: string;
|
3977
|
+
PHONE_NUMBER: string;
|
3745
3978
|
POINT100: string;
|
3746
3979
|
POINT10: string;
|
3747
3980
|
POINT15: string;
|
@@ -3771,6 +4004,7 @@ export declare const LOTTIE: {
|
|
3771
4004
|
SLEEPY_BOI: string;
|
3772
4005
|
SPINNER_WHITE: string;
|
3773
4006
|
SPLASH_SCREEN: string;
|
4007
|
+
STUDENT_AVATAR: string;
|
3774
4008
|
TABLE_MODE_REVEAL: string;
|
3775
4009
|
TABLE_MODE_STAR: string;
|
3776
4010
|
TABLE_SEGMENT_STAR: string;
|
@@ -3781,6 +4015,7 @@ export declare const LOTTIE: {
|
|
3781
4015
|
TOTAL_TIME: string;
|
3782
4016
|
TOTAL_TIME_SPENT: string;
|
3783
4017
|
TOURNAMENT_RIPPLE: string;
|
4018
|
+
USERNAME: string;
|
3784
4019
|
VIDEO: string;
|
3785
4020
|
};
|
3786
4021
|
|
@@ -3965,8 +4200,14 @@ declare interface NumRangeInputProps {
|
|
3965
4200
|
endPlaceholder?: string;
|
3966
4201
|
}
|
3967
4202
|
|
4203
|
+
export declare const OTPForm: ({ onSubmit, onChange, value, error, isProcessing, isValid, }: ISingleFieldFormProps) => JSX_2.Element;
|
4204
|
+
|
3968
4205
|
export declare type OutcomeStage = keyof typeof STAGES;
|
3969
4206
|
|
4207
|
+
export declare const OverlayLoader: ({ isLoading }: {
|
4208
|
+
isLoading?: boolean | undefined;
|
4209
|
+
}) => JSX_2.Element | null;
|
4210
|
+
|
3970
4211
|
export declare const PencilIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3971
4212
|
|
3972
4213
|
export declare const PercentileInput: React_2.ForwardRefExoticComponent<IPercentileProps & React_2.RefAttributes<HTMLInputElement>>;
|
@@ -4105,6 +4346,10 @@ export declare const ReferenceSheet: FC<IReferenceSheetProps>;
|
|
4105
4346
|
|
4106
4347
|
export declare const RemotePeerPointer: MemoExoticComponent<({ containerRef, onPublish, onSubscribe, responseId }: IPointerProps) => JSX_2.Element>;
|
4107
4348
|
|
4349
|
+
export declare const ResendOTP: React.FC<IOTPResendProps>;
|
4350
|
+
|
4351
|
+
export declare const ResetPasswordForm: ({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX_2.Element;
|
4352
|
+
|
4108
4353
|
export declare const REWARDS_LIST: string[];
|
4109
4354
|
|
4110
4355
|
export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -4194,6 +4439,8 @@ export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
|
|
4194
4439
|
|
4195
4440
|
export declare const SignUp: ({ mathGymEnrolledUser, circleEnrolledUser, circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, }: ISignUpProps) => JSX_2.Element;
|
4196
4441
|
|
4442
|
+
export declare const SignupMethods: FC<ISignupMethodsProps>;
|
4443
|
+
|
4197
4444
|
declare const SketchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4198
4445
|
export { SketchIcon as ScribbleIcon }
|
4199
4446
|
export { SketchIcon }
|
@@ -4204,6 +4451,10 @@ export declare const SkipColoredIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4204
4451
|
|
4205
4452
|
export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4206
4453
|
|
4454
|
+
export declare const SocialAccountNotFound: ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element;
|
4455
|
+
|
4456
|
+
export declare const SocialLoginMethods: FC<ISocialLoginMethodsProps>;
|
4457
|
+
|
4207
4458
|
export declare const SplashScreen: ({ animationCompleted }: {
|
4208
4459
|
animationCompleted: () => void;
|
4209
4460
|
}) => JSX_2.Element;
|
@@ -4271,6 +4522,8 @@ declare const TAB_CODES: {
|
|
4271
4522
|
|
4272
4523
|
export declare const TabComponent: React_2.FC<ITabProps>;
|
4273
4524
|
|
4525
|
+
export declare function Tabs<T extends string>({ selectedTab, onChange, tabs }: ITabsProps<T>): JSX_2.Element;
|
4526
|
+
|
4274
4527
|
export declare type TAction = EventToPayload<TInclassMessage>;
|
4275
4528
|
|
4276
4529
|
declare type TActionListenerOptions = {
|
@@ -4297,6 +4550,14 @@ export declare type TArrowTooltipConfig = {
|
|
4297
4550
|
|
4298
4551
|
export declare type TArrowTooltipVariants = 'primary' | 'secondary';
|
4299
4552
|
|
4553
|
+
export declare type TAuthApiErrorCode = (typeof AuthApiErrorCode)[keyof typeof AuthApiErrorCode];
|
4554
|
+
|
4555
|
+
export declare type TAuthProvider = 'email' | 'phone';
|
4556
|
+
|
4557
|
+
export declare type TAuthTabKeys = 'identifier' | 'username';
|
4558
|
+
|
4559
|
+
export declare type TAuthUserType = 'student' | 'parent';
|
4560
|
+
|
4300
4561
|
declare type TBadgeData = {
|
4301
4562
|
acknowledged_on: number | null;
|
4302
4563
|
animation_url: string;
|
@@ -5132,6 +5393,8 @@ declare type TSectionSummary = {
|
|
5132
5393
|
modules: TSATModule[];
|
5133
5394
|
};
|
5134
5395
|
|
5396
|
+
export declare type TSelectedCountry = Pick<ICountryOption, 'id' | 'code'>;
|
5397
|
+
|
5135
5398
|
declare type TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;
|
5136
5399
|
|
5137
5400
|
declare type TSheetAttemptLocation_2 = keyof typeof SHEET_ATTEMPT_LOCATION;
|
@@ -5201,6 +5464,8 @@ declare type TSheetStates = keyof typeof NODE_CARD_STATES;
|
|
5201
5464
|
|
5202
5465
|
export declare type TSkillStatus = 'pending' | 'completed';
|
5203
5466
|
|
5467
|
+
export declare type TSocialAuthProvider = 'google' | 'apple';
|
5468
|
+
|
5204
5469
|
declare type TStickerData = {
|
5205
5470
|
actor_id: string;
|
5206
5471
|
badge_id: string;
|
@@ -5273,6 +5538,11 @@ export declare type TTrialSessionMessage = {
|
|
5273
5538
|
};
|
5274
5539
|
};
|
5275
5540
|
|
5541
|
+
declare type TUserAccount = {
|
5542
|
+
id: string;
|
5543
|
+
phone: string;
|
5544
|
+
};
|
5545
|
+
|
5276
5546
|
declare type TUserChapterStates = 'MASTERED' | 'PROFICIENT' | 'FAMILIAR' | 'STARTED';
|
5277
5547
|
|
5278
5548
|
declare type TUserProgram = {
|
@@ -5456,6 +5726,12 @@ export declare const User2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5456
5726
|
|
5457
5727
|
export declare const UserIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
5458
5728
|
|
5729
|
+
export declare const UserIdentifierForm: ({ onSubmit, onChange, value, error, isSubmitDisabled, isProcessing, isValid, label, field, }: ISingleFieldFormProps) => JSX_2.Element;
|
5730
|
+
|
5731
|
+
export declare const UsernamePasswordForm: FC<IUsernamePasswordFormProps>;
|
5732
|
+
|
5733
|
+
export declare const UserTypeSelector: NamedExoticComponent<IUserTypeSelectorProps>;
|
5734
|
+
|
5459
5735
|
export declare const useTrackingContext: (commonAnalyticsProps: Record<string, unknown>, overrides?: Record<string, unknown>) => {
|
5460
5736
|
onClick: TTrackCTA;
|
5461
5737
|
onResponse: TTrackInput;
|