@stokr/components-library 3.0.66 → 3.0.67
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/_virtual/Collapse.js +4 -0
- package/dist/_virtual/Component.js +4 -0
- package/dist/_virtual/Range.js +4 -0
- package/dist/_virtual/ResizeObserver.es.js +6 -0
- package/dist/_virtual/UnmountClosed.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +38 -0
- package/dist/_virtual/arrows.js +4 -0
- package/dist/_virtual/attributes-to-props.js +4 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/default-props.js +4 -0
- package/dist/_virtual/defaultRenderElements.js +4 -0
- package/dist/_virtual/dom-to-react.js +4 -0
- package/dist/_virtual/domparser.js +4 -0
- package/dist/_virtual/dots.js +4 -0
- package/dist/_virtual/getInnerHeight.js +4 -0
- package/dist/_virtual/getInnerWidth.js +4 -0
- package/dist/_virtual/getScrollbarWidth.js +4 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +2 -0
- package/dist/_virtual/html-to-dom.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.js +7 -0
- package/dist/_virtual/index13.js +7 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +7 -0
- package/dist/_virtual/index16.js +7 -0
- package/dist/_virtual/index17.js +7 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index19.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index20.js +4 -0
- package/dist/_virtual/index21.js +4 -0
- package/dist/_virtual/index22.js +4 -0
- package/dist/_virtual/index23.js +4 -0
- package/dist/_virtual/index24.js +4 -0
- package/dist/_virtual/index25.js +4 -0
- package/dist/_virtual/index26.js +4 -0
- package/dist/_virtual/index27.js +4 -0
- package/dist/_virtual/index28.js +4 -0
- package/dist/_virtual/index29.js +4 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index30.js +4 -0
- package/dist/_virtual/index31.js +4 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index7.js +7 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/initial-state.js +4 -0
- package/dist/_virtual/inner-slider.js +4 -0
- package/dist/_virtual/innerSliderUtils.js +4 -0
- package/dist/_virtual/isString.js +4 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/performance-now.js +4 -0
- package/dist/_virtual/popper.js +6 -0
- package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-table.development.js +4 -0
- package/dist/_virtual/react-table.production.min.js +4 -0
- package/dist/_virtual/react-tippy.js +5 -0
- package/dist/_virtual/react-tippy2.js +4 -0
- package/dist/_virtual/returnFalse.js +4 -0
- package/dist/_virtual/slider.js +4 -0
- package/dist/_virtual/styles.js +4 -0
- package/dist/_virtual/track.js +4 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/utilities2.js +4 -0
- package/dist/_virtual/utilities3.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/analytics/index.js +1 -1
- package/dist/api/fetchData.js +2 -2
- package/dist/components/2FA/Connect2FA.js +1 -1
- package/dist/components/2FA/EnterCode.js +1 -1
- package/dist/components/2FA/Sucess2FA.js +1 -1
- package/dist/components/2FA/login-with-otp-flow.js +47 -12
- package/dist/components/2FA/main-flow.js +29 -5
- package/dist/components/AccountBalance/AccountBalance.js +1 -1
- package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
- package/dist/components/AdminDashboard/Table/Table.js +1 -1
- package/dist/components/AgreementItem/AgreementItem.js +1 -1
- package/dist/components/BackButton/BackButton.js +1 -1
- package/dist/components/Background/Background.js +1 -1
- package/dist/components/BasicTable/BasicTable.js +1 -1
- package/dist/components/BlogPost/BlogPost.js +1 -1
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/GlareButton.js +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checklist/ChecklistCard.js +1 -1
- package/dist/components/Chips/Chip.js +1 -1
- package/dist/components/Chips/ChipWrapper.js +1 -1
- package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
- package/dist/components/Country/CountrySelect.js +4 -4
- package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
- package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
- package/dist/components/CryptoAddress/RadioWrap.js +1 -1
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
- package/dist/components/FAQ/FAQ.js +1 -1
- package/dist/components/FAQ/FAQ.styles.js +2 -2
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/FooterLayout.js +1 -1
- package/dist/components/Footer/FooterMenu.js +3 -3
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.styles.js +1 -1
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
- package/dist/components/InfoIcon/InfoIcon.js +6 -6
- package/dist/components/Input/DatePickerInput.js +5 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/InputUsername.js +1 -1
- package/dist/components/Input/InputWithButton.js +1 -1
- package/dist/components/Input/MultiSelect.js +4 -3
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +5 -4
- package/dist/components/Input/TableFilterDropdown.js +1 -1
- package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
- package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LoginModal/LoginModal.js +6 -6
- package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
- package/dist/components/MainMenu/MainMenu.js +6 -6
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
- package/dist/components/Modal/PaymentModal.js +2 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
- package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/PageTransition/PageTransition.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/PaginationControls.js +1 -1
- package/dist/components/Payment/PaymentDisplay.js +4 -4
- package/dist/components/Payment/TimerComponent.js +1 -1
- package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
- package/dist/components/ProfileBox/ProfileBox.js +1 -1
- package/dist/components/ProfileStat/ProfileStat.js +1 -1
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RefreshButton/RefreshButton.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
- package/dist/components/RegisterModal/RegisterModal.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
- package/dist/components/SEO/SEO.js +3 -3
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/SmartLink/SmartLink.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarProvider.js +1 -1
- package/dist/components/StepController/StepController.js +1 -1
- package/dist/components/StepController/StepControllerContext.js +1 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/StepsProgress/StepIndicator.js +1 -1
- package/dist/components/StepsProgress/StepsProgress.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TabsNav/TabNav.js +1 -1
- package/dist/components/TabsNav/TabsNav.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
- package/dist/components/TeamOverview/TeamOverview.js +1 -1
- package/dist/components/TermsModal/TermsModal.js +5 -5
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/ToDoList/ToDoList.js +3 -3
- package/dist/components/ToDoList/ToDoListTask.js +4 -4
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
- package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
- package/dist/components/headerHo/HeaderHo.js +3 -1
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/components-library.css +781 -0
- package/dist/context/Auth.js +15 -12
- package/dist/context/AuthContext.js +7 -6
- package/dist/firebase-config.js +4 -2
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +5 -4
- package/dist/model/axios.js +2 -1
- package/dist/model/axiosPublic.js +2 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@date-fns/tz/date/index.js +66 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +124 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +28 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +345 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +31 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +84 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +50 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +169 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +83 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +9 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +609 -0
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +5751 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +291 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +106 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js +828 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js +4 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +257 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +122 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +34 -0
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +53 -0
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1973 -0
- package/dist/node_modules/add-px-to-style/index.js +48 -0
- package/dist/node_modules/axios/index.js +38 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +71 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +219 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +141 -0
- package/dist/node_modules/axios/lib/axios.js +50 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +99 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +20 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.js +188 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +67 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +231 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +66 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +12 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +52 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +88 -0
- package/dist/node_modules/axios/lib/core/settle.js +18 -0
- package/dist/node_modules/axios/lib/core/transformData.js +17 -0
- package/dist/node_modules/axios/lib/defaults/index.js +116 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +32 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +39 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +49 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +9 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +46 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +36 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +35 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +117 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +80 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +67 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +415 -0
- package/dist/node_modules/classnames/index.js +61 -0
- package/dist/node_modules/copy-to-clipboard/index.js +101 -0
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6570 -0
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +652 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +62 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +58 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +20 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +23 -0
- package/dist/node_modules/date-fns/addDays.js +12 -0
- package/dist/node_modules/date-fns/addMonths.js +26 -0
- package/dist/node_modules/date-fns/addWeeks.js +7 -0
- package/dist/node_modules/date-fns/addYears.js +7 -0
- package/dist/node_modules/date-fns/constants.js +14 -0
- package/dist/node_modules/date-fns/constructFrom.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +19 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +20 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +20 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/endOfMonth.js +11 -0
- package/dist/node_modules/date-fns/endOfWeek.js +15 -0
- package/dist/node_modules/date-fns/endOfYear.js +11 -0
- package/dist/node_modules/date-fns/format.js +77 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +14 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +7 -0
- package/dist/node_modules/date-fns/getISODay.js +8 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +25 -0
- package/dist/node_modules/date-fns/getMonth.js +7 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +28 -0
- package/dist/node_modules/date-fns/getYear.js +7 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isBefore.js +7 -0
- package/dist/node_modules/date-fns/isDate.js +6 -0
- package/dist/node_modules/date-fns/isSameDay.js +13 -0
- package/dist/node_modules/date-fns/isSameMonth.js +12 -0
- package/dist/node_modules/date-fns/isSameYear.js +12 -0
- package/dist/node_modules/date-fns/isValid.js +8 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +20 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +43 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +85 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +36 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +164 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +122 -0
- package/dist/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/date-fns/max.js +16 -0
- package/dist/node_modules/date-fns/min.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +25 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +20 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +17 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +28 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +39 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +42 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +117 -0
- package/dist/node_modules/date-fns/parse.js +123 -0
- package/dist/node_modules/date-fns/setDay.js +17 -0
- package/dist/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/date-fns/setMonth.js +17 -0
- package/dist/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/date-fns/setYear.js +11 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfWeek.js +15 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +17 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +8 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +29 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +89 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +81 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +125 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +24 -0
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +13 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +305 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +14 -0
- package/dist/node_modules/deepmerge/dist/es.js +69 -0
- package/dist/node_modules/dom-css/index.js +65 -0
- package/dist/node_modules/domelementtype/lib/index.js +39 -0
- package/dist/node_modules/domhandler/lib/index.js +166 -0
- package/dist/node_modules/domhandler/lib/node.js +438 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +1020 -0
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +20 -0
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +44 -0
- package/dist/node_modules/formik/dist/formik.esm.js +969 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +92 -0
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +55 -0
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +96 -0
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +31 -0
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +96 -0
- package/dist/node_modules/html-react-parser/esm/index.js +5 -0
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +64 -0
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +99 -0
- package/dist/node_modules/html-react-parser/lib/index.js +51 -0
- package/dist/node_modules/html-react-parser/lib/utilities.js +79 -0
- package/dist/node_modules/idb/build/index.js +69 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js +148 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +142 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +99 -0
- package/dist/node_modules/json2mq/index.js +55 -0
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Hash.js +21 -0
- package/dist/node_modules/lodash-es/_ListCache.js +21 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +21 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +12 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +13 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +24 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +10 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +10 -0
- package/dist/node_modules/lodash-es/_assignValue.js +13 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +13 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +16 -0
- package/dist/node_modules/lodash-es/_baseClone.js +88 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +21 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +19 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +10 -0
- package/dist/node_modules/lodash-es/_baseToString.js +21 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +16 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +9 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +11 -0
- package/dist/node_modules/lodash-es/_copyObject.js +23 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +12 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +25 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +17 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +16 -0
- package/dist/node_modules/lodash-es/_getTag.js +34 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +8 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +8 -0
- package/dist/node_modules/lodash-es/_hashGet.js +15 -0
- package/dist/node_modules/lodash-es/_hashHas.js +10 -0
- package/dist/node_modules/lodash-es/_hashSet.js +11 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +13 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +43 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +20 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +9 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +10 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +15 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +18 -0
- package/dist/node_modules/lodash-es/_objectToString.js +8 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_root.js +6 -0
- package/dist/node_modules/lodash-es/_stackClear.js +8 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +8 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +22 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +16 -0
- package/dist/node_modules/lodash-es/_toKey.js +11 -0
- package/dist/node_modules/lodash-es/_toSource.js +18 -0
- package/dist/node_modules/lodash-es/clone.js +8 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +13 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +11 -0
- package/dist/node_modules/lodash-es/isFunction.js +13 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isMap.js +8 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +22 -0
- package/dist/node_modules/lodash-es/isSet.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/memoize.js +22 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPath.js +16 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/lodash.debounce/index.js +137 -0
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +52 -0
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +25533 -0
- package/dist/node_modules/object-assign/index.js +73 -0
- package/dist/node_modules/performance-now/lib/performance-now.js +42 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1516 -0
- package/dist/node_modules/prefix-style/index.js +29 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +68 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +58 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +451 -0
- package/dist/node_modules/prop-types/index.js +20 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/dist/node_modules/prop-types/lib/has.js +11 -0
- package/dist/node_modules/property-expr/index.js +105 -0
- package/dist/node_modules/qrcode.react/lib/esm/index.js +1099 -0
- package/dist/node_modules/raf/index.js +67 -0
- package/dist/node_modules/react-collapse/lib/Collapse.js +285 -0
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +278 -0
- package/dist/node_modules/react-collapse/lib/index.js +17 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +209 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +14 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +85 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +706 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +67 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +24 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +44 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +19 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +325 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +59 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +282 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +40 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +72 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +30 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +43 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +39 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +145 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +128 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +100 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +55 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +53 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +52 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +61 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/node_modules/react-fast-compare/index.js +63 -0
- package/dist/node_modules/react-helmet/es/Helmet.js +717 -0
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +81 -0
- package/dist/node_modules/react-intersection-observer/dist/index.js +178 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +157 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +98 -0
- package/dist/node_modules/react-is/index.js +17 -0
- package/dist/node_modules/react-otp-input/lib/index.esm.js +168 -0
- package/dist/node_modules/react-portal/es/LegacyPortal.js +91 -0
- package/dist/node_modules/react-portal/es/Portal.js +74 -0
- package/dist/node_modules/react-portal/es/PortalCompat.js +12 -0
- package/dist/node_modules/react-portal/es/utils.js +4 -0
- package/dist/node_modules/react-property/lib/index.js +471 -0
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +499 -0
- package/dist/node_modules/react-range/lib/Range.js +592 -0
- package/dist/node_modules/react-range/lib/index.js +39 -0
- package/dist/node_modules/react-range/lib/types.js +19 -0
- package/dist/node_modules/react-range/lib/utils.js +318 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +2317 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +1071 -0
- package/dist/node_modules/react-select/dist/react-select.esm.js +20 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +75 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +51 -0
- package/dist/node_modules/react-side-effect/lib/index.js +105 -0
- package/dist/node_modules/react-slick/lib/arrows.js +248 -0
- package/dist/node_modules/react-slick/lib/default-props.js +85 -0
- package/dist/node_modules/react-slick/lib/dots.js +192 -0
- package/dist/node_modules/react-slick/lib/index.js +22 -0
- package/dist/node_modules/react-slick/lib/initial-state.js +48 -0
- package/dist/node_modules/react-slick/lib/inner-slider.js +810 -0
- package/dist/node_modules/react-slick/lib/slider.js +333 -0
- package/dist/node_modules/react-slick/lib/track.js +330 -0
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +730 -0
- package/dist/node_modules/react-table/dist/react-table.development.js +3684 -0
- package/dist/node_modules/react-table/dist/react-table.production.min.js +1637 -0
- package/dist/node_modules/react-table/index.js +17 -0
- package/dist/node_modules/react-tippy/dist/react-tippy.js +1981 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +495 -0
- package/dist/node_modules/string-convert/camel2hyphen.js +16 -0
- package/dist/node_modules/style-to-js/cjs/index.js +31 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
- package/dist/node_modules/style-to-object/cjs/index.js +38 -0
- package/dist/node_modules/stylis/src/Enum.js +20 -0
- package/dist/node_modules/stylis/src/Middleware.js +22 -0
- package/dist/node_modules/stylis/src/Parser.js +157 -0
- package/dist/node_modules/stylis/src/Serializer.js +29 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +160 -0
- package/dist/node_modules/stylis/src/Utility.js +52 -0
- package/dist/node_modules/tiny-case/index.js +33 -0
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +16 -0
- package/dist/node_modules/to-camel-case/index.js +18 -0
- package/dist/node_modules/to-no-case/index.js +32 -0
- package/dist/node_modules/to-space-case/index.js +18 -0
- package/dist/node_modules/toggle-selection/index.js +42 -0
- package/dist/node_modules/toposort/index.js +79 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
- package/dist/node_modules/yup/index.esm.js +1921 -0
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/styles/global.js +2 -2
- package/dist/utils/copyToClipboard.js +7 -7
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/moment.js +2 -3
- package/dist/utils/redirect-url.js +2 -2
- package/dist/utils/set-redirect-cookie.js +2 -2
- package/dist/utils/transition.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __exports as styles } from "../../../../_virtual/styles.js";
|
|
2
|
+
var hasRequiredStyles;
|
|
3
|
+
function requireStyles() {
|
|
4
|
+
if (hasRequiredStyles) return styles;
|
|
5
|
+
hasRequiredStyles = 1;
|
|
6
|
+
Object.defineProperty(styles, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
styles.containerStyleDefault = {
|
|
10
|
+
position: "relative",
|
|
11
|
+
overflow: "hidden",
|
|
12
|
+
width: "100%",
|
|
13
|
+
height: "100%"
|
|
14
|
+
};
|
|
15
|
+
styles.containerStyleAutoHeight = {
|
|
16
|
+
height: "auto"
|
|
17
|
+
};
|
|
18
|
+
styles.viewStyleDefault = {
|
|
19
|
+
position: "absolute",
|
|
20
|
+
top: 0,
|
|
21
|
+
left: 0,
|
|
22
|
+
right: 0,
|
|
23
|
+
bottom: 0,
|
|
24
|
+
overflow: "scroll",
|
|
25
|
+
WebkitOverflowScrolling: "touch"
|
|
26
|
+
};
|
|
27
|
+
styles.viewStyleAutoHeight = {
|
|
28
|
+
position: "relative",
|
|
29
|
+
top: void 0,
|
|
30
|
+
left: void 0,
|
|
31
|
+
right: void 0,
|
|
32
|
+
bottom: void 0
|
|
33
|
+
};
|
|
34
|
+
styles.viewStyleUniversalInitial = {
|
|
35
|
+
overflow: "hidden",
|
|
36
|
+
marginRight: 0,
|
|
37
|
+
marginBottom: 0
|
|
38
|
+
};
|
|
39
|
+
styles.trackHorizontalStyleDefault = {
|
|
40
|
+
position: "absolute",
|
|
41
|
+
height: 6
|
|
42
|
+
};
|
|
43
|
+
styles.trackVerticalStyleDefault = {
|
|
44
|
+
position: "absolute",
|
|
45
|
+
width: 6
|
|
46
|
+
};
|
|
47
|
+
styles.thumbHorizontalStyleDefault = {
|
|
48
|
+
position: "relative",
|
|
49
|
+
display: "block",
|
|
50
|
+
height: "100%"
|
|
51
|
+
};
|
|
52
|
+
styles.thumbVerticalStyleDefault = {
|
|
53
|
+
position: "relative",
|
|
54
|
+
display: "block",
|
|
55
|
+
width: "100%"
|
|
56
|
+
};
|
|
57
|
+
styles.disableSelectStyle = {
|
|
58
|
+
userSelect: "none"
|
|
59
|
+
};
|
|
60
|
+
styles.disableSelectStyleReset = {
|
|
61
|
+
userSelect: ""
|
|
62
|
+
};
|
|
63
|
+
return styles;
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
requireStyles as __require
|
|
67
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __exports as lib } from "../../../_virtual/index18.js";
|
|
2
|
+
import { __require as requireScrollbars } from "./Scrollbars/index.js";
|
|
3
|
+
var hasRequiredLib;
|
|
4
|
+
function requireLib() {
|
|
5
|
+
if (hasRequiredLib) return lib;
|
|
6
|
+
hasRequiredLib = 1;
|
|
7
|
+
(function(exports$1) {
|
|
8
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
exports$1.Scrollbars = void 0;
|
|
12
|
+
var _Scrollbars = requireScrollbars();
|
|
13
|
+
var _Scrollbars2 = _interopRequireDefault(_Scrollbars);
|
|
14
|
+
function _interopRequireDefault(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : { "default": obj };
|
|
16
|
+
}
|
|
17
|
+
exports$1["default"] = _Scrollbars2["default"];
|
|
18
|
+
exports$1.Scrollbars = _Scrollbars2["default"];
|
|
19
|
+
})(lib);
|
|
20
|
+
return lib;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
requireLib as __require
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __exports as getInnerHeight } from "../../../../_virtual/getInnerHeight.js";
|
|
2
|
+
var hasRequiredGetInnerHeight;
|
|
3
|
+
function requireGetInnerHeight() {
|
|
4
|
+
if (hasRequiredGetInnerHeight) return getInnerHeight;
|
|
5
|
+
hasRequiredGetInnerHeight = 1;
|
|
6
|
+
(function(exports$1) {
|
|
7
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports$1["default"] = getInnerHeight2;
|
|
11
|
+
function getInnerHeight2(el) {
|
|
12
|
+
var clientHeight = el.clientHeight;
|
|
13
|
+
var _getComputedStyle = getComputedStyle(el), paddingTop = _getComputedStyle.paddingTop, paddingBottom = _getComputedStyle.paddingBottom;
|
|
14
|
+
return clientHeight - parseFloat(paddingTop) - parseFloat(paddingBottom);
|
|
15
|
+
}
|
|
16
|
+
})(getInnerHeight);
|
|
17
|
+
return getInnerHeight;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
requireGetInnerHeight as __require
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __exports as getInnerWidth } from "../../../../_virtual/getInnerWidth.js";
|
|
2
|
+
var hasRequiredGetInnerWidth;
|
|
3
|
+
function requireGetInnerWidth() {
|
|
4
|
+
if (hasRequiredGetInnerWidth) return getInnerWidth;
|
|
5
|
+
hasRequiredGetInnerWidth = 1;
|
|
6
|
+
(function(exports$1) {
|
|
7
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports$1["default"] = getInnerWidth2;
|
|
11
|
+
function getInnerWidth2(el) {
|
|
12
|
+
var clientWidth = el.clientWidth;
|
|
13
|
+
var _getComputedStyle = getComputedStyle(el), paddingLeft = _getComputedStyle.paddingLeft, paddingRight = _getComputedStyle.paddingRight;
|
|
14
|
+
return clientWidth - parseFloat(paddingLeft) - parseFloat(paddingRight);
|
|
15
|
+
}
|
|
16
|
+
})(getInnerWidth);
|
|
17
|
+
return getInnerWidth;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
requireGetInnerWidth as __require
|
|
21
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __exports as getScrollbarWidth } from "../../../../_virtual/getScrollbarWidth.js";
|
|
2
|
+
import { __require as requireDomCss } from "../../../dom-css/index.js";
|
|
3
|
+
var hasRequiredGetScrollbarWidth;
|
|
4
|
+
function requireGetScrollbarWidth() {
|
|
5
|
+
if (hasRequiredGetScrollbarWidth) return getScrollbarWidth;
|
|
6
|
+
hasRequiredGetScrollbarWidth = 1;
|
|
7
|
+
(function(exports$1) {
|
|
8
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
exports$1["default"] = getScrollbarWidth2;
|
|
12
|
+
var _domCss = requireDomCss();
|
|
13
|
+
var _domCss2 = _interopRequireDefault(_domCss);
|
|
14
|
+
function _interopRequireDefault(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : { "default": obj };
|
|
16
|
+
}
|
|
17
|
+
var scrollbarWidth = false;
|
|
18
|
+
function getScrollbarWidth2() {
|
|
19
|
+
var cacheEnabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
20
|
+
if (cacheEnabled && scrollbarWidth !== false) return scrollbarWidth;
|
|
21
|
+
if (typeof document !== "undefined") {
|
|
22
|
+
var div = document.createElement("div");
|
|
23
|
+
(0, _domCss2["default"])(div, {
|
|
24
|
+
width: 100,
|
|
25
|
+
height: 100,
|
|
26
|
+
position: "absolute",
|
|
27
|
+
top: -9999,
|
|
28
|
+
overflow: "scroll",
|
|
29
|
+
MsOverflowStyle: "scrollbar"
|
|
30
|
+
});
|
|
31
|
+
document.body.appendChild(div);
|
|
32
|
+
scrollbarWidth = div.offsetWidth - div.clientWidth;
|
|
33
|
+
document.body.removeChild(div);
|
|
34
|
+
} else {
|
|
35
|
+
scrollbarWidth = 0;
|
|
36
|
+
}
|
|
37
|
+
return scrollbarWidth || 0;
|
|
38
|
+
}
|
|
39
|
+
})(getScrollbarWidth);
|
|
40
|
+
return getScrollbarWidth;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
requireGetScrollbarWidth as __require
|
|
44
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __exports as isString } from "../../../../_virtual/isString.js";
|
|
2
|
+
var hasRequiredIsString;
|
|
3
|
+
function requireIsString() {
|
|
4
|
+
if (hasRequiredIsString) return isString;
|
|
5
|
+
hasRequiredIsString = 1;
|
|
6
|
+
(function(exports$1) {
|
|
7
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports$1["default"] = isString2;
|
|
11
|
+
function isString2(maybe) {
|
|
12
|
+
return typeof maybe === "string";
|
|
13
|
+
}
|
|
14
|
+
})(isString);
|
|
15
|
+
return isString;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
requireIsString as __require
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __exports as returnFalse } from "../../../../_virtual/returnFalse.js";
|
|
2
|
+
var hasRequiredReturnFalse;
|
|
3
|
+
function requireReturnFalse() {
|
|
4
|
+
if (hasRequiredReturnFalse) return returnFalse;
|
|
5
|
+
hasRequiredReturnFalse = 1;
|
|
6
|
+
(function(exports$1) {
|
|
7
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports$1["default"] = returnFalse2;
|
|
11
|
+
function returnFalse2() {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
})(returnFalse);
|
|
15
|
+
return returnFalse;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
requireReturnFalse as __require
|
|
19
|
+
};
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import React__default, { useMemo, useCallback, useRef } from "react";
|
|
2
|
+
import { DateLib } from "./classes/DateLib.js";
|
|
3
|
+
import { createGetModifiers } from "./helpers/createGetModifiers.js";
|
|
4
|
+
import { getClassNamesForModifiers } from "./helpers/getClassNamesForModifiers.js";
|
|
5
|
+
import { getComponents } from "./helpers/getComponents.js";
|
|
6
|
+
import { getDataAttributes } from "./helpers/getDataAttributes.js";
|
|
7
|
+
import { getDefaultClassNames } from "./helpers/getDefaultClassNames.js";
|
|
8
|
+
import { getFormatters } from "./helpers/getFormatters.js";
|
|
9
|
+
import { getLabels } from "./helpers/getLabels.js";
|
|
10
|
+
import { getMonthOptions } from "./helpers/getMonthOptions.js";
|
|
11
|
+
import { getStyleForModifiers } from "./helpers/getStyleForModifiers.js";
|
|
12
|
+
import { getWeekdays } from "./helpers/getWeekdays.js";
|
|
13
|
+
import { getYearOptions } from "./helpers/getYearOptions.js";
|
|
14
|
+
import { createNoonOverrides } from "./noonDateLib.js";
|
|
15
|
+
import { UI, DayFlag, SelectionState } from "./UI.js";
|
|
16
|
+
import { useAnimation } from "./useAnimation.js";
|
|
17
|
+
import { useCalendar } from "./useCalendar.js";
|
|
18
|
+
import { dayPickerContext } from "./useDayPicker.js";
|
|
19
|
+
import { useFocus } from "./useFocus.js";
|
|
20
|
+
import { useSelection } from "./useSelection.js";
|
|
21
|
+
import { convertMatchersToTimeZone } from "./utils/convertMatchersToTimeZone.js";
|
|
22
|
+
import { rangeIncludesDate } from "./utils/rangeIncludesDate.js";
|
|
23
|
+
import { toTimeZone } from "./utils/toTimeZone.js";
|
|
24
|
+
import { isDateRange } from "./utils/typeguards.js";
|
|
25
|
+
import { enUS } from "./locale/en-US.js";
|
|
26
|
+
function DayPicker(initialProps) {
|
|
27
|
+
let props = initialProps;
|
|
28
|
+
const timeZone = props.timeZone;
|
|
29
|
+
if (timeZone) {
|
|
30
|
+
props = {
|
|
31
|
+
...initialProps,
|
|
32
|
+
timeZone
|
|
33
|
+
};
|
|
34
|
+
if (props.today) {
|
|
35
|
+
props.today = toTimeZone(props.today, timeZone);
|
|
36
|
+
}
|
|
37
|
+
if (props.month) {
|
|
38
|
+
props.month = toTimeZone(props.month, timeZone);
|
|
39
|
+
}
|
|
40
|
+
if (props.defaultMonth) {
|
|
41
|
+
props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);
|
|
42
|
+
}
|
|
43
|
+
if (props.startMonth) {
|
|
44
|
+
props.startMonth = toTimeZone(props.startMonth, timeZone);
|
|
45
|
+
}
|
|
46
|
+
if (props.endMonth) {
|
|
47
|
+
props.endMonth = toTimeZone(props.endMonth, timeZone);
|
|
48
|
+
}
|
|
49
|
+
if (props.mode === "single" && props.selected) {
|
|
50
|
+
props.selected = toTimeZone(props.selected, timeZone);
|
|
51
|
+
} else if (props.mode === "multiple" && props.selected) {
|
|
52
|
+
props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));
|
|
53
|
+
} else if (props.mode === "range" && props.selected) {
|
|
54
|
+
props.selected = {
|
|
55
|
+
from: props.selected.from ? toTimeZone(props.selected.from, timeZone) : props.selected.from,
|
|
56
|
+
to: props.selected.to ? toTimeZone(props.selected.to, timeZone) : props.selected.to
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
if (props.disabled !== void 0) {
|
|
60
|
+
props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);
|
|
61
|
+
}
|
|
62
|
+
if (props.hidden !== void 0) {
|
|
63
|
+
props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);
|
|
64
|
+
}
|
|
65
|
+
if (props.modifiers) {
|
|
66
|
+
const nextModifiers = {};
|
|
67
|
+
Object.keys(props.modifiers).forEach((key) => {
|
|
68
|
+
nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);
|
|
69
|
+
});
|
|
70
|
+
props.modifiers = nextModifiers;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const { components, formatters, labels, dateLib, locale, classNames } = useMemo(() => {
|
|
74
|
+
const locale2 = { ...enUS, ...props.locale };
|
|
75
|
+
const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;
|
|
76
|
+
const noonOverrides = props.noonSafe && props.timeZone ? createNoonOverrides(props.timeZone, {
|
|
77
|
+
weekStartsOn,
|
|
78
|
+
locale: locale2
|
|
79
|
+
}) : void 0;
|
|
80
|
+
const overrides = props.dateLib && noonOverrides ? { ...noonOverrides, ...props.dateLib } : props.dateLib ?? noonOverrides;
|
|
81
|
+
const dateLib2 = new DateLib({
|
|
82
|
+
locale: locale2,
|
|
83
|
+
weekStartsOn,
|
|
84
|
+
firstWeekContainsDate: props.firstWeekContainsDate,
|
|
85
|
+
useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,
|
|
86
|
+
useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,
|
|
87
|
+
timeZone: props.timeZone,
|
|
88
|
+
numerals: props.numerals
|
|
89
|
+
}, overrides);
|
|
90
|
+
return {
|
|
91
|
+
dateLib: dateLib2,
|
|
92
|
+
components: getComponents(props.components),
|
|
93
|
+
formatters: getFormatters(props.formatters),
|
|
94
|
+
labels: getLabels(props.labels, dateLib2.options),
|
|
95
|
+
locale: locale2,
|
|
96
|
+
classNames: { ...getDefaultClassNames(), ...props.classNames }
|
|
97
|
+
};
|
|
98
|
+
}, [
|
|
99
|
+
props.locale,
|
|
100
|
+
props.broadcastCalendar,
|
|
101
|
+
props.weekStartsOn,
|
|
102
|
+
props.firstWeekContainsDate,
|
|
103
|
+
props.useAdditionalWeekYearTokens,
|
|
104
|
+
props.useAdditionalDayOfYearTokens,
|
|
105
|
+
props.timeZone,
|
|
106
|
+
props.numerals,
|
|
107
|
+
props.dateLib,
|
|
108
|
+
props.noonSafe,
|
|
109
|
+
props.components,
|
|
110
|
+
props.formatters,
|
|
111
|
+
props.labels,
|
|
112
|
+
props.classNames
|
|
113
|
+
]);
|
|
114
|
+
if (!props.today) {
|
|
115
|
+
props = { ...props, today: dateLib.today() };
|
|
116
|
+
}
|
|
117
|
+
const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles } = props;
|
|
118
|
+
const { formatCaption, formatDay, formatMonthDropdown, formatWeekNumber, formatWeekNumberHeader, formatWeekdayName, formatYearDropdown } = formatters;
|
|
119
|
+
const calendar = useCalendar(props, dateLib);
|
|
120
|
+
const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth } = calendar;
|
|
121
|
+
const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);
|
|
122
|
+
const { isSelected, select, selected: selectedValue } = useSelection(props, dateLib) ?? {};
|
|
123
|
+
const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
|
|
124
|
+
const { labelDayButton, labelGridcell, labelGrid, labelMonthDropdown, labelNav, labelPrevious, labelNext, labelWeekday, labelWeekNumber, labelWeekNumberHeader, labelYearDropdown } = labels;
|
|
125
|
+
const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
|
|
126
|
+
const isInteractive = mode !== void 0 || onDayClick !== void 0;
|
|
127
|
+
const handlePreviousClick = useCallback(() => {
|
|
128
|
+
if (!previousMonth)
|
|
129
|
+
return;
|
|
130
|
+
goToMonth(previousMonth);
|
|
131
|
+
onPrevClick?.(previousMonth);
|
|
132
|
+
}, [previousMonth, goToMonth, onPrevClick]);
|
|
133
|
+
const handleNextClick = useCallback(() => {
|
|
134
|
+
if (!nextMonth)
|
|
135
|
+
return;
|
|
136
|
+
goToMonth(nextMonth);
|
|
137
|
+
onNextClick?.(nextMonth);
|
|
138
|
+
}, [goToMonth, nextMonth, onNextClick]);
|
|
139
|
+
const handleDayClick = useCallback((day, m) => (e) => {
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
e.stopPropagation();
|
|
142
|
+
setFocused(day);
|
|
143
|
+
if (m.disabled) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
select?.(day.date, m, e);
|
|
147
|
+
onDayClick?.(day.date, m, e);
|
|
148
|
+
}, [select, onDayClick, setFocused]);
|
|
149
|
+
const handleDayFocus = useCallback((day, m) => (e) => {
|
|
150
|
+
setFocused(day);
|
|
151
|
+
onDayFocus?.(day.date, m, e);
|
|
152
|
+
}, [onDayFocus, setFocused]);
|
|
153
|
+
const handleDayBlur = useCallback((day, m) => (e) => {
|
|
154
|
+
blur();
|
|
155
|
+
onDayBlur?.(day.date, m, e);
|
|
156
|
+
}, [blur, onDayBlur]);
|
|
157
|
+
const handleDayKeyDown = useCallback((day, modifiers) => (e) => {
|
|
158
|
+
const keyMap = {
|
|
159
|
+
ArrowLeft: [
|
|
160
|
+
e.shiftKey ? "month" : "day",
|
|
161
|
+
props.dir === "rtl" ? "after" : "before"
|
|
162
|
+
],
|
|
163
|
+
ArrowRight: [
|
|
164
|
+
e.shiftKey ? "month" : "day",
|
|
165
|
+
props.dir === "rtl" ? "before" : "after"
|
|
166
|
+
],
|
|
167
|
+
ArrowDown: [e.shiftKey ? "year" : "week", "after"],
|
|
168
|
+
ArrowUp: [e.shiftKey ? "year" : "week", "before"],
|
|
169
|
+
PageUp: [e.shiftKey ? "year" : "month", "before"],
|
|
170
|
+
PageDown: [e.shiftKey ? "year" : "month", "after"],
|
|
171
|
+
Home: ["startOfWeek", "before"],
|
|
172
|
+
End: ["endOfWeek", "after"]
|
|
173
|
+
};
|
|
174
|
+
if (keyMap[e.key]) {
|
|
175
|
+
e.preventDefault();
|
|
176
|
+
e.stopPropagation();
|
|
177
|
+
const [moveBy, moveDir] = keyMap[e.key];
|
|
178
|
+
moveFocus(moveBy, moveDir);
|
|
179
|
+
}
|
|
180
|
+
onDayKeyDown?.(day.date, modifiers, e);
|
|
181
|
+
}, [moveFocus, onDayKeyDown, props.dir]);
|
|
182
|
+
const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {
|
|
183
|
+
onDayMouseEnter?.(day.date, modifiers, e);
|
|
184
|
+
}, [onDayMouseEnter]);
|
|
185
|
+
const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {
|
|
186
|
+
onDayMouseLeave?.(day.date, modifiers, e);
|
|
187
|
+
}, [onDayMouseLeave]);
|
|
188
|
+
const handleMonthChange = useCallback((date) => (e) => {
|
|
189
|
+
const selectedMonth = Number(e.target.value);
|
|
190
|
+
const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
|
|
191
|
+
goToMonth(month);
|
|
192
|
+
}, [dateLib, goToMonth]);
|
|
193
|
+
const handleYearChange = useCallback((date) => (e) => {
|
|
194
|
+
const selectedYear = Number(e.target.value);
|
|
195
|
+
const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
|
|
196
|
+
goToMonth(month);
|
|
197
|
+
}, [dateLib, goToMonth]);
|
|
198
|
+
const { className, style } = useMemo(() => ({
|
|
199
|
+
className: [classNames[UI.Root], props.className].filter(Boolean).join(" "),
|
|
200
|
+
style: { ...styles?.[UI.Root], ...props.style }
|
|
201
|
+
}), [classNames, props.className, props.style, styles]);
|
|
202
|
+
const dataAttributes = getDataAttributes(props);
|
|
203
|
+
const rootElRef = useRef(null);
|
|
204
|
+
useAnimation(rootElRef, Boolean(props.animate), {
|
|
205
|
+
classNames,
|
|
206
|
+
months,
|
|
207
|
+
focused,
|
|
208
|
+
dateLib
|
|
209
|
+
});
|
|
210
|
+
const contextValue = {
|
|
211
|
+
dayPickerProps: props,
|
|
212
|
+
selected: selectedValue,
|
|
213
|
+
select,
|
|
214
|
+
isSelected,
|
|
215
|
+
months,
|
|
216
|
+
nextMonth,
|
|
217
|
+
previousMonth,
|
|
218
|
+
goToMonth,
|
|
219
|
+
getModifiers,
|
|
220
|
+
components,
|
|
221
|
+
classNames,
|
|
222
|
+
styles,
|
|
223
|
+
labels,
|
|
224
|
+
formatters
|
|
225
|
+
};
|
|
226
|
+
return React__default.createElement(
|
|
227
|
+
dayPickerContext.Provider,
|
|
228
|
+
{ value: contextValue },
|
|
229
|
+
React__default.createElement(
|
|
230
|
+
components.Root,
|
|
231
|
+
{ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
|
|
232
|
+
React__default.createElement(
|
|
233
|
+
components.Months,
|
|
234
|
+
{ className: classNames[UI.Months], style: styles?.[UI.Months] },
|
|
235
|
+
!props.hideNavigation && !navLayout && React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
236
|
+
months.map((calendarMonth, displayIndex) => {
|
|
237
|
+
return React__default.createElement(
|
|
238
|
+
components.Month,
|
|
239
|
+
{
|
|
240
|
+
"data-animated-month": props.animate ? "true" : void 0,
|
|
241
|
+
className: classNames[UI.Month],
|
|
242
|
+
style: styles?.[UI.Month],
|
|
243
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
244
|
+
key: displayIndex,
|
|
245
|
+
displayIndex,
|
|
246
|
+
calendarMonth
|
|
247
|
+
},
|
|
248
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React__default.createElement(
|
|
249
|
+
components.PreviousMonthButton,
|
|
250
|
+
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
251
|
+
React__default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
|
|
252
|
+
),
|
|
253
|
+
React__default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? React__default.createElement(
|
|
254
|
+
components.DropdownNav,
|
|
255
|
+
{ className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
|
|
256
|
+
(() => {
|
|
257
|
+
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React__default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React__default.createElement("span", { key: "month" }, formatMonthDropdown(calendarMonth.date, dateLib));
|
|
258
|
+
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React__default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React__default.createElement("span", { key: "year" }, formatYearDropdown(calendarMonth.date, dateLib));
|
|
259
|
+
const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
|
|
260
|
+
return controls;
|
|
261
|
+
})(),
|
|
262
|
+
React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
263
|
+
border: 0,
|
|
264
|
+
clip: "rect(0 0 0 0)",
|
|
265
|
+
height: "1px",
|
|
266
|
+
margin: "-1px",
|
|
267
|
+
overflow: "hidden",
|
|
268
|
+
padding: 0,
|
|
269
|
+
position: "absolute",
|
|
270
|
+
width: "1px",
|
|
271
|
+
whiteSpace: "nowrap",
|
|
272
|
+
wordWrap: "normal"
|
|
273
|
+
} }, formatCaption(calendarMonth.date, dateLib.options, dateLib))
|
|
274
|
+
) : React__default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption(calendarMonth.date, dateLib.options, dateLib))),
|
|
275
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React__default.createElement(
|
|
276
|
+
components.NextMonthButton,
|
|
277
|
+
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
278
|
+
React__default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
|
|
279
|
+
),
|
|
280
|
+
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
281
|
+
React__default.createElement(
|
|
282
|
+
components.MonthGrid,
|
|
283
|
+
{ role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
|
|
284
|
+
!props.hideWeekdays && React__default.createElement(
|
|
285
|
+
components.Weekdays,
|
|
286
|
+
{ "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
|
|
287
|
+
showWeekNumber && React__default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader()),
|
|
288
|
+
weekdays.map((weekday) => React__default.createElement(components.Weekday, { "aria-label": labelWeekday(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName(weekday, dateLib.options, dateLib)))
|
|
289
|
+
),
|
|
290
|
+
React__default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
|
|
291
|
+
return React__default.createElement(
|
|
292
|
+
components.Week,
|
|
293
|
+
{ className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
|
|
294
|
+
showWeekNumber && React__default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber(week.weekNumber, {
|
|
295
|
+
locale
|
|
296
|
+
}), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber(week.weekNumber, dateLib)),
|
|
297
|
+
week.days.map((day) => {
|
|
298
|
+
const { date } = day;
|
|
299
|
+
const modifiers = getModifiers(day);
|
|
300
|
+
modifiers[DayFlag.focused] = !modifiers.hidden && Boolean(focused?.isEqualTo(day));
|
|
301
|
+
modifiers[SelectionState.selected] = isSelected?.(date) || modifiers.selected;
|
|
302
|
+
if (isDateRange(selectedValue)) {
|
|
303
|
+
const { from, to } = selectedValue;
|
|
304
|
+
modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));
|
|
305
|
+
modifiers[SelectionState.range_end] = Boolean(from && to && dateLib.isSameDay(date, to));
|
|
306
|
+
modifiers[SelectionState.range_middle] = rangeIncludesDate(selectedValue, date, true, dateLib);
|
|
307
|
+
}
|
|
308
|
+
const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
|
|
309
|
+
const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
|
|
310
|
+
const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell(date, modifiers, dateLib.options, dateLib) : void 0;
|
|
311
|
+
return React__default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? React__default.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay(day.date, dateLib.options, dateLib));
|
|
312
|
+
})
|
|
313
|
+
);
|
|
314
|
+
}))
|
|
315
|
+
)
|
|
316
|
+
);
|
|
317
|
+
})
|
|
318
|
+
),
|
|
319
|
+
props.footer && React__default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
|
|
320
|
+
)
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
export {
|
|
324
|
+
DayPicker
|
|
325
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var UI;
|
|
2
|
+
(function(UI2) {
|
|
3
|
+
UI2["Root"] = "root";
|
|
4
|
+
UI2["Chevron"] = "chevron";
|
|
5
|
+
UI2["Day"] = "day";
|
|
6
|
+
UI2["DayButton"] = "day_button";
|
|
7
|
+
UI2["CaptionLabel"] = "caption_label";
|
|
8
|
+
UI2["Dropdowns"] = "dropdowns";
|
|
9
|
+
UI2["Dropdown"] = "dropdown";
|
|
10
|
+
UI2["DropdownRoot"] = "dropdown_root";
|
|
11
|
+
UI2["Footer"] = "footer";
|
|
12
|
+
UI2["MonthGrid"] = "month_grid";
|
|
13
|
+
UI2["MonthCaption"] = "month_caption";
|
|
14
|
+
UI2["MonthsDropdown"] = "months_dropdown";
|
|
15
|
+
UI2["Month"] = "month";
|
|
16
|
+
UI2["Months"] = "months";
|
|
17
|
+
UI2["Nav"] = "nav";
|
|
18
|
+
UI2["NextMonthButton"] = "button_next";
|
|
19
|
+
UI2["PreviousMonthButton"] = "button_previous";
|
|
20
|
+
UI2["Week"] = "week";
|
|
21
|
+
UI2["Weeks"] = "weeks";
|
|
22
|
+
UI2["Weekday"] = "weekday";
|
|
23
|
+
UI2["Weekdays"] = "weekdays";
|
|
24
|
+
UI2["WeekNumber"] = "week_number";
|
|
25
|
+
UI2["WeekNumberHeader"] = "week_number_header";
|
|
26
|
+
UI2["YearsDropdown"] = "years_dropdown";
|
|
27
|
+
})(UI || (UI = {}));
|
|
28
|
+
var DayFlag;
|
|
29
|
+
(function(DayFlag2) {
|
|
30
|
+
DayFlag2["disabled"] = "disabled";
|
|
31
|
+
DayFlag2["hidden"] = "hidden";
|
|
32
|
+
DayFlag2["outside"] = "outside";
|
|
33
|
+
DayFlag2["focused"] = "focused";
|
|
34
|
+
DayFlag2["today"] = "today";
|
|
35
|
+
})(DayFlag || (DayFlag = {}));
|
|
36
|
+
var SelectionState;
|
|
37
|
+
(function(SelectionState2) {
|
|
38
|
+
SelectionState2["range_end"] = "range_end";
|
|
39
|
+
SelectionState2["range_middle"] = "range_middle";
|
|
40
|
+
SelectionState2["range_start"] = "range_start";
|
|
41
|
+
SelectionState2["selected"] = "selected";
|
|
42
|
+
})(SelectionState || (SelectionState = {}));
|
|
43
|
+
var Animation;
|
|
44
|
+
(function(Animation2) {
|
|
45
|
+
Animation2["weeks_before_enter"] = "weeks_before_enter";
|
|
46
|
+
Animation2["weeks_before_exit"] = "weeks_before_exit";
|
|
47
|
+
Animation2["weeks_after_enter"] = "weeks_after_enter";
|
|
48
|
+
Animation2["weeks_after_exit"] = "weeks_after_exit";
|
|
49
|
+
Animation2["caption_after_enter"] = "caption_after_enter";
|
|
50
|
+
Animation2["caption_after_exit"] = "caption_after_exit";
|
|
51
|
+
Animation2["caption_before_enter"] = "caption_before_enter";
|
|
52
|
+
Animation2["caption_before_exit"] = "caption_before_exit";
|
|
53
|
+
})(Animation || (Animation = {}));
|
|
54
|
+
export {
|
|
55
|
+
Animation,
|
|
56
|
+
DayFlag,
|
|
57
|
+
SelectionState,
|
|
58
|
+
UI
|
|
59
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defaultDateLib } from "./DateLib.js";
|
|
2
|
+
class CalendarDay {
|
|
3
|
+
constructor(date, displayMonth, dateLib = defaultDateLib) {
|
|
4
|
+
this.date = date;
|
|
5
|
+
this.displayMonth = displayMonth;
|
|
6
|
+
this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
|
|
7
|
+
this.dateLib = dateLib;
|
|
8
|
+
this.isoDate = dateLib.format(date, "yyyy-MM-dd");
|
|
9
|
+
this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
|
|
10
|
+
this.dateMonthId = dateLib.format(date, "yyyy-MM");
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Checks if this day is equal to another `CalendarDay`, considering both the
|
|
14
|
+
* date and the displayed month.
|
|
15
|
+
*
|
|
16
|
+
* @param day The `CalendarDay` to compare with.
|
|
17
|
+
* @returns `true` if the days are equal, otherwise `false`.
|
|
18
|
+
*/
|
|
19
|
+
isEqualTo(day) {
|
|
20
|
+
return this.dateLib.isSameDay(day.date, this.date) && this.dateLib.isSameMonth(day.displayMonth, this.displayMonth);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
CalendarDay
|
|
25
|
+
};
|