@stokr/components-library 3.0.67 → 3.0.68
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/README.md +179 -179
- 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 +1 -1
- package/dist/components/2FA/main-flow.js +1 -1
- 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 +3 -5
- 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 +3 -4
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +4 -5
- 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/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 +1 -3
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/context/Auth.js +12 -15
- package/dist/context/AuthContext.js +4 -4
- package/dist/firebase-config.js +2 -4
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +6 -7
- package/dist/manifest.json +25 -25
- package/dist/model/axios.js +1 -2
- package/dist/model/axiosPublic.js +1 -2
- package/dist/robots.txt +3 -3
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/runtime-config.js +1 -1
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.svg +52 -52
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/selection.json +0 -0
- package/dist/static/fonts/icomoon/style.css +0 -0
- package/dist/static/images/Glassess.svg +5 -5
- package/dist/static/images/add-folder-icon.svg +4 -4
- package/dist/static/images/arrow-down-black.svg +21 -21
- package/dist/static/images/check-icon.svg +3 -3
- package/dist/static/images/checkmark-circle-icon.svg +3 -3
- package/dist/static/images/close-circle-icon.svg +2 -2
- package/dist/static/images/copy_icon.svg +4 -4
- package/dist/static/images/cross-icon.svg +3 -3
- package/dist/static/images/currency/eth.svg +10 -10
- package/dist/static/images/currency/eth_logo.svg +8 -8
- package/dist/static/images/currency/eur.svg +3 -3
- package/dist/static/images/currency/usdc-logo.svg +5 -5
- package/dist/static/images/doc-icon.svg +3 -3
- package/dist/static/images/download_icon.svg +3 -3
- package/dist/static/images/external-link-icon.svg +3 -3
- package/dist/static/images/filter-icon.svg +6 -6
- package/dist/static/images/globe.svg +15 -15
- package/dist/static/images/mangopay.svg +20 -20
- package/dist/static/images/numbers/number_eight.svg +3 -3
- package/dist/static/images/numbers/number_five.svg +4 -4
- package/dist/static/images/numbers/number_four.svg +3 -3
- package/dist/static/images/numbers/number_nine.svg +4 -4
- package/dist/static/images/numbers/number_one.svg +4 -4
- package/dist/static/images/numbers/number_seven.svg +4 -4
- package/dist/static/images/numbers/number_six.svg +4 -4
- package/dist/static/images/numbers/number_three.svg +3 -3
- package/dist/static/images/numbers/number_two.svg +4 -4
- package/dist/static/images/numbers/number_zero.svg +3 -3
- package/dist/static/images/plus-icon.svg +4 -4
- package/dist/static/images/prof-inv.svg +3 -3
- package/dist/static/images/search-icon.svg +3 -3
- package/dist/static/images/transfer-icon.svg +10 -10
- package/dist/static/images/trash.svg +16 -16
- package/dist/static/images/upload.svg +5 -5
- package/dist/static/images/warning-filled.svg +3 -3
- 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 +3 -2
- 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 +143 -143
- package/dist/_virtual/Collapse.js +0 -4
- package/dist/_virtual/Component.js +0 -4
- package/dist/_virtual/Range.js +0 -4
- package/dist/_virtual/ResizeObserver.es.js +0 -6
- package/dist/_virtual/UnmountClosed.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -38
- package/dist/_virtual/arrows.js +0 -4
- package/dist/_virtual/attributes-to-props.js +0 -4
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/default-props.js +0 -4
- package/dist/_virtual/defaultRenderElements.js +0 -4
- package/dist/_virtual/dom-to-react.js +0 -4
- package/dist/_virtual/domparser.js +0 -4
- package/dist/_virtual/dots.js +0 -4
- package/dist/_virtual/getInnerHeight.js +0 -4
- package/dist/_virtual/getInnerWidth.js +0 -4
- package/dist/_virtual/getScrollbarWidth.js +0 -4
- package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
- package/dist/_virtual/html-to-dom.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index10.js +0 -5
- package/dist/_virtual/index11.js +0 -7
- package/dist/_virtual/index12.js +0 -7
- package/dist/_virtual/index13.js +0 -7
- package/dist/_virtual/index14.js +0 -4
- package/dist/_virtual/index15.js +0 -7
- package/dist/_virtual/index16.js +0 -7
- package/dist/_virtual/index17.js +0 -7
- package/dist/_virtual/index18.js +0 -4
- package/dist/_virtual/index19.js +0 -4
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index20.js +0 -4
- package/dist/_virtual/index21.js +0 -4
- package/dist/_virtual/index22.js +0 -4
- package/dist/_virtual/index23.js +0 -4
- package/dist/_virtual/index24.js +0 -4
- package/dist/_virtual/index25.js +0 -4
- package/dist/_virtual/index26.js +0 -4
- package/dist/_virtual/index27.js +0 -4
- package/dist/_virtual/index28.js +0 -4
- package/dist/_virtual/index29.js +0 -4
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index30.js +0 -4
- package/dist/_virtual/index31.js +0 -4
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index7.js +0 -7
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/index9.js +0 -5
- package/dist/_virtual/initial-state.js +0 -4
- package/dist/_virtual/inner-slider.js +0 -4
- package/dist/_virtual/innerSliderUtils.js +0 -4
- package/dist/_virtual/isString.js +0 -4
- package/dist/_virtual/node.js +0 -4
- package/dist/_virtual/performance-now.js +0 -4
- package/dist/_virtual/popper.js +0 -6
- package/dist/_virtual/possibleStandardNamesOptimized.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-table.development.js +0 -4
- package/dist/_virtual/react-table.production.min.js +0 -4
- package/dist/_virtual/react-tippy.js +0 -5
- package/dist/_virtual/react-tippy2.js +0 -4
- package/dist/_virtual/returnFalse.js +0 -4
- package/dist/_virtual/slider.js +0 -4
- package/dist/_virtual/styles.js +0 -4
- package/dist/_virtual/track.js +0 -4
- package/dist/_virtual/types.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/utilities2.js +0 -4
- package/dist/_virtual/utilities3.js +0 -4
- package/dist/_virtual/utils.js +0 -4
- package/dist/components-library.css +0 -781
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -17
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -66
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -124
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -28
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -345
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -31
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -84
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -50
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -169
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -83
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -9
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -609
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +0 -5751
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -291
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -106
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -828
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -4
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -257
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -122
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -34
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +0 -53
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +0 -1973
- package/dist/node_modules/add-px-to-style/index.js +0 -48
- package/dist/node_modules/axios/index.js +0 -38
- package/dist/node_modules/axios/lib/adapters/adapters.js +0 -71
- package/dist/node_modules/axios/lib/adapters/fetch.js +0 -219
- package/dist/node_modules/axios/lib/adapters/xhr.js +0 -141
- package/dist/node_modules/axios/lib/axios.js +0 -50
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -99
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -20
- package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/axios/lib/core/Axios.js +0 -188
- package/dist/node_modules/axios/lib/core/AxiosError.js +0 -67
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -231
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -66
- package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -12
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -52
- package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -88
- package/dist/node_modules/axios/lib/core/settle.js +0 -18
- package/dist/node_modules/axios/lib/core/transformData.js +0 -17
- package/dist/node_modules/axios/lib/defaults/index.js +0 -116
- package/dist/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -34
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/axios/lib/helpers/bind.js +0 -8
- package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -32
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -6
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -39
- package/dist/node_modules/axios/lib/helpers/cookies.js +0 -49
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -54
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -9
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -11
- package/dist/node_modules/axios/lib/helpers/null.js +0 -4
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -47
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -41
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -46
- package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -36
- package/dist/node_modules/axios/lib/helpers/spread.js +0 -8
- package/dist/node_modules/axios/lib/helpers/throttle.js +0 -35
- package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -117
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -80
- package/dist/node_modules/axios/lib/helpers/validator.js +0 -67
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/dist/node_modules/axios/lib/platform/common/utils.js +0 -15
- package/dist/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/axios/lib/utils.js +0 -415
- package/dist/node_modules/classnames/index.js +0 -61
- package/dist/node_modules/copy-to-clipboard/index.js +0 -101
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +0 -6570
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +0 -269
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -652
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -62
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -58
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -20
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -23
- package/dist/node_modules/date-fns/addDays.js +0 -12
- package/dist/node_modules/date-fns/addMonths.js +0 -26
- package/dist/node_modules/date-fns/addWeeks.js +0 -7
- package/dist/node_modules/date-fns/addYears.js +0 -7
- package/dist/node_modules/date-fns/constants.js +0 -14
- package/dist/node_modules/date-fns/constructFrom.js +0 -11
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -19
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -20
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -20
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -7
- package/dist/node_modules/date-fns/endOfMonth.js +0 -11
- package/dist/node_modules/date-fns/endOfWeek.js +0 -15
- package/dist/node_modules/date-fns/endOfYear.js +0 -11
- package/dist/node_modules/date-fns/format.js +0 -77
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -12
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -14
- package/dist/node_modules/date-fns/getDefaultOptions.js +0 -7
- package/dist/node_modules/date-fns/getISODay.js +0 -8
- package/dist/node_modules/date-fns/getISOWeek.js +0 -12
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -25
- package/dist/node_modules/date-fns/getMonth.js +0 -7
- package/dist/node_modules/date-fns/getWeek.js +0 -12
- package/dist/node_modules/date-fns/getWeekYear.js +0 -28
- package/dist/node_modules/date-fns/getYear.js +0 -7
- package/dist/node_modules/date-fns/isAfter.js +0 -7
- package/dist/node_modules/date-fns/isBefore.js +0 -7
- package/dist/node_modules/date-fns/isDate.js +0 -6
- package/dist/node_modules/date-fns/isSameDay.js +0 -13
- package/dist/node_modules/date-fns/isSameMonth.js +0 -12
- package/dist/node_modules/date-fns/isSameYear.js +0 -12
- package/dist/node_modules/date-fns/isValid.js +0 -8
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -20
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -43
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -85
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -36
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -164
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -122
- package/dist/node_modules/date-fns/locale/en-US.js +0 -20
- package/dist/node_modules/date-fns/max.js +0 -16
- package/dist/node_modules/date-fns/min.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -25
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -50
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -64
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -45
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -44
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -30
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -20
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -17
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -32
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -28
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -39
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -76
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -73
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -76
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -73
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -47
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -117
- package/dist/node_modules/date-fns/parse.js +0 -123
- package/dist/node_modules/date-fns/setDay.js +0 -17
- package/dist/node_modules/date-fns/setISODay.js +0 -12
- package/dist/node_modules/date-fns/setISOWeek.js +0 -11
- package/dist/node_modules/date-fns/setMonth.js +0 -17
- package/dist/node_modules/date-fns/setWeek.js +0 -11
- package/dist/node_modules/date-fns/setYear.js +0 -11
- package/dist/node_modules/date-fns/startOfDay.js +0 -9
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -7
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -13
- package/dist/node_modules/date-fns/startOfMonth.js +0 -10
- package/dist/node_modules/date-fns/startOfWeek.js +0 -15
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -17
- package/dist/node_modules/date-fns/startOfYear.js +0 -10
- package/dist/node_modules/date-fns/toDate.js +0 -7
- package/dist/node_modules/date-fns/transpose.js +0 -18
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -8
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +0 -9
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +0 -29
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +0 -89
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +0 -4
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +0 -81
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +0 -125
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +0 -24
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +0 -13
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +0 -305
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +0 -14
- package/dist/node_modules/deepmerge/dist/es.js +0 -69
- package/dist/node_modules/dom-css/index.js +0 -65
- package/dist/node_modules/domelementtype/lib/index.js +0 -39
- package/dist/node_modules/domhandler/lib/index.js +0 -166
- package/dist/node_modules/domhandler/lib/node.js +0 -438
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -1020
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +0 -20
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +0 -44
- package/dist/node_modules/formik/dist/formik.esm.js +0 -969
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -92
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +0 -55
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +0 -96
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +0 -31
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +0 -96
- package/dist/node_modules/html-react-parser/esm/index.js +0 -5
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +0 -64
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +0 -99
- package/dist/node_modules/html-react-parser/lib/index.js +0 -51
- package/dist/node_modules/html-react-parser/lib/utilities.js +0 -79
- package/dist/node_modules/idb/build/index.js +0 -69
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -148
- package/dist/node_modules/inline-style-parser/cjs/index.js +0 -142
- package/dist/node_modules/js-cookie/dist/js.cookie.js +0 -99
- package/dist/node_modules/json2mq/index.js +0 -55
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Hash.js +0 -21
- package/dist/node_modules/lodash-es/_ListCache.js +0 -21
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -21
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayEach.js +0 -12
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -13
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -24
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -10
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -10
- package/dist/node_modules/lodash-es/_assignValue.js +0 -13
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -13
- package/dist/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -16
- package/dist/node_modules/lodash-es/_baseClone.js +0 -88
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -21
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -14
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -22
- package/dist/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -14
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -19
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -20
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -10
- package/dist/node_modules/lodash-es/_baseToString.js +0 -21
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -16
- package/dist/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/lodash-es/_cloneRegExp.js +0 -9
- package/dist/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -11
- package/dist/node_modules/lodash-es/_copyObject.js +0 -23
- package/dist/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -12
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -25
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -17
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +0 -16
- package/dist/node_modules/lodash-es/_getTag.js +0 -34
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hashClear.js +0 -8
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -8
- package/dist/node_modules/lodash-es/_hashGet.js +0 -15
- package/dist/node_modules/lodash-es/_hashHas.js +0 -10
- package/dist/node_modules/lodash-es/_hashSet.js +0 -11
- package/dist/node_modules/lodash-es/_initCloneArray.js +0 -13
- package/dist/node_modules/lodash-es/_initCloneByTag.js +0 -43
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_isIndex.js +0 -10
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -20
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -14
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -14
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -9
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -10
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -15
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -12
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -18
- package/dist/node_modules/lodash-es/_objectToString.js +0 -8
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_root.js +0 -6
- package/dist/node_modules/lodash-es/_stackClear.js +0 -8
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -8
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -22
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -16
- package/dist/node_modules/lodash-es/_toKey.js +0 -11
- package/dist/node_modules/lodash-es/_toSource.js +0 -18
- package/dist/node_modules/lodash-es/clone.js +0 -8
- package/dist/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -13
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -11
- package/dist/node_modules/lodash-es/isFunction.js +0 -13
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isMap.js +0 -8
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -22
- package/dist/node_modules/lodash-es/isSet.js +0 -8
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/memoize.js +0 -22
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPath.js +0 -16
- package/dist/node_modules/lodash-es/toString.js +0 -7
- package/dist/node_modules/lodash.debounce/index.js +0 -137
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +0 -52
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +0 -25533
- package/dist/node_modules/object-assign/index.js +0 -73
- package/dist/node_modules/performance-now/lib/performance-now.js +0 -42
- package/dist/node_modules/popper.js/dist/esm/popper.js +0 -1516
- package/dist/node_modules/prefix-style/index.js +0 -29
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -68
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -58
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -451
- package/dist/node_modules/prop-types/index.js +0 -20
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/dist/node_modules/prop-types/lib/has.js +0 -11
- package/dist/node_modules/property-expr/index.js +0 -105
- package/dist/node_modules/qrcode.react/lib/esm/index.js +0 -1099
- package/dist/node_modules/raf/index.js +0 -67
- package/dist/node_modules/react-collapse/lib/Collapse.js +0 -285
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +0 -278
- package/dist/node_modules/react-collapse/lib/index.js +0 -17
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +0 -209
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +0 -14
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +0 -85
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +0 -706
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +0 -67
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +0 -24
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +0 -21
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +0 -21
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +0 -44
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +0 -19
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -325
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -59
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -25
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -282
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -34
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -40
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -72
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -41
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -43
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -39
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -62
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -145
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -128
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -100
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -55
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -53
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -52
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -61
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-fast-compare/index.js +0 -63
- package/dist/node_modules/react-helmet/es/Helmet.js +0 -717
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +0 -81
- package/dist/node_modules/react-intersection-observer/dist/index.js +0 -178
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -157
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -98
- package/dist/node_modules/react-is/index.js +0 -17
- package/dist/node_modules/react-otp-input/lib/index.esm.js +0 -168
- package/dist/node_modules/react-portal/es/LegacyPortal.js +0 -91
- package/dist/node_modules/react-portal/es/Portal.js +0 -74
- package/dist/node_modules/react-portal/es/PortalCompat.js +0 -12
- package/dist/node_modules/react-portal/es/utils.js +0 -4
- package/dist/node_modules/react-property/lib/index.js +0 -471
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +0 -499
- package/dist/node_modules/react-range/lib/Range.js +0 -592
- package/dist/node_modules/react-range/lib/index.js +0 -39
- package/dist/node_modules/react-range/lib/types.js +0 -19
- package/dist/node_modules/react-range/lib/utils.js +0 -318
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2317
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1071
- package/dist/node_modules/react-select/dist/react-select.esm.js +0 -20
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -75
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -51
- package/dist/node_modules/react-side-effect/lib/index.js +0 -105
- package/dist/node_modules/react-slick/lib/arrows.js +0 -248
- package/dist/node_modules/react-slick/lib/default-props.js +0 -85
- package/dist/node_modules/react-slick/lib/dots.js +0 -192
- package/dist/node_modules/react-slick/lib/index.js +0 -22
- package/dist/node_modules/react-slick/lib/initial-state.js +0 -48
- package/dist/node_modules/react-slick/lib/inner-slider.js +0 -810
- package/dist/node_modules/react-slick/lib/slider.js +0 -333
- package/dist/node_modules/react-slick/lib/track.js +0 -330
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +0 -730
- package/dist/node_modules/react-table/dist/react-table.development.js +0 -3684
- package/dist/node_modules/react-table/dist/react-table.production.min.js +0 -1637
- package/dist/node_modules/react-table/index.js +0 -17
- package/dist/node_modules/react-tippy/dist/react-tippy.js +0 -1981
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -495
- package/dist/node_modules/string-convert/camel2hyphen.js +0 -16
- package/dist/node_modules/style-to-js/cjs/index.js +0 -31
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -42
- package/dist/node_modules/style-to-object/cjs/index.js +0 -38
- package/dist/node_modules/stylis/src/Enum.js +0 -20
- package/dist/node_modules/stylis/src/Middleware.js +0 -22
- package/dist/node_modules/stylis/src/Parser.js +0 -157
- package/dist/node_modules/stylis/src/Serializer.js +0 -29
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -160
- package/dist/node_modules/stylis/src/Utility.js +0 -52
- package/dist/node_modules/tiny-case/index.js +0 -33
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +0 -16
- package/dist/node_modules/to-camel-case/index.js +0 -18
- package/dist/node_modules/to-no-case/index.js +0 -32
- package/dist/node_modules/to-space-case/index.js +0 -18
- package/dist/node_modules/toggle-selection/index.js +0 -42
- package/dist/node_modules/toposort/index.js +0 -79
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/yup/index.esm.js +0 -1921
|
@@ -1,706 +0,0 @@
|
|
|
1
|
-
import { __exports as Scrollbars } from "../../../../_virtual/index22.js";
|
|
2
|
-
import { __require as requireRaf } from "../../../raf/index.js";
|
|
3
|
-
import { __require as requireDomCss } from "../../../dom-css/index.js";
|
|
4
|
-
import React__default from "react";
|
|
5
|
-
import { __require as requirePropTypes } from "../../../prop-types/index.js";
|
|
6
|
-
import { __require as requireIsString } from "../utils/isString.js";
|
|
7
|
-
import { __require as requireGetScrollbarWidth } from "../utils/getScrollbarWidth.js";
|
|
8
|
-
import { __require as requireReturnFalse } from "../utils/returnFalse.js";
|
|
9
|
-
import { __require as requireGetInnerWidth } from "../utils/getInnerWidth.js";
|
|
10
|
-
import { __require as requireGetInnerHeight } from "../utils/getInnerHeight.js";
|
|
11
|
-
import { __require as requireStyles } from "./styles.js";
|
|
12
|
-
import { __require as requireDefaultRenderElements } from "./defaultRenderElements.js";
|
|
13
|
-
var hasRequiredScrollbars;
|
|
14
|
-
function requireScrollbars() {
|
|
15
|
-
if (hasRequiredScrollbars) return Scrollbars;
|
|
16
|
-
hasRequiredScrollbars = 1;
|
|
17
|
-
(function(exports$1) {
|
|
18
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
19
|
-
value: true
|
|
20
|
-
});
|
|
21
|
-
var _extends = Object.assign || function(target) {
|
|
22
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
23
|
-
var source = arguments[i];
|
|
24
|
-
for (var key in source) {
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26
|
-
target[key] = source[key];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var _createClass = /* @__PURE__ */ (function() {
|
|
33
|
-
function defineProperties(target, props) {
|
|
34
|
-
for (var i = 0; i < props.length; i++) {
|
|
35
|
-
var descriptor = props[i];
|
|
36
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
37
|
-
descriptor.configurable = true;
|
|
38
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
39
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return function(Constructor, protoProps, staticProps) {
|
|
43
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
44
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
45
|
-
return Constructor;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
48
|
-
var _raf2 = requireRaf();
|
|
49
|
-
var _raf3 = _interopRequireDefault(_raf2);
|
|
50
|
-
var _domCss = requireDomCss();
|
|
51
|
-
var _domCss2 = _interopRequireDefault(_domCss);
|
|
52
|
-
var _react = React__default;
|
|
53
|
-
var _propTypes = /* @__PURE__ */ requirePropTypes();
|
|
54
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
55
|
-
var _isString = requireIsString();
|
|
56
|
-
var _isString2 = _interopRequireDefault(_isString);
|
|
57
|
-
var _getScrollbarWidth = requireGetScrollbarWidth();
|
|
58
|
-
var _getScrollbarWidth2 = _interopRequireDefault(_getScrollbarWidth);
|
|
59
|
-
var _returnFalse = requireReturnFalse();
|
|
60
|
-
var _returnFalse2 = _interopRequireDefault(_returnFalse);
|
|
61
|
-
var _getInnerWidth = requireGetInnerWidth();
|
|
62
|
-
var _getInnerWidth2 = _interopRequireDefault(_getInnerWidth);
|
|
63
|
-
var _getInnerHeight = requireGetInnerHeight();
|
|
64
|
-
var _getInnerHeight2 = _interopRequireDefault(_getInnerHeight);
|
|
65
|
-
var _styles = requireStyles();
|
|
66
|
-
var _defaultRenderElements = requireDefaultRenderElements();
|
|
67
|
-
function _interopRequireDefault(obj) {
|
|
68
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
69
|
-
}
|
|
70
|
-
function _objectWithoutProperties(obj, keys) {
|
|
71
|
-
var target = {};
|
|
72
|
-
for (var i in obj) {
|
|
73
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
74
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
75
|
-
target[i] = obj[i];
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function _classCallCheck(instance, Constructor) {
|
|
80
|
-
if (!(instance instanceof Constructor)) {
|
|
81
|
-
throw new TypeError("Cannot call a class as a function");
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function _possibleConstructorReturn(self, call) {
|
|
85
|
-
if (!self) {
|
|
86
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
87
|
-
}
|
|
88
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
89
|
-
}
|
|
90
|
-
function _inherits(subClass, superClass) {
|
|
91
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
92
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
93
|
-
}
|
|
94
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
|
95
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
96
|
-
}
|
|
97
|
-
var Scrollbars2 = (function(_Component) {
|
|
98
|
-
_inherits(Scrollbars3, _Component);
|
|
99
|
-
function Scrollbars3(props) {
|
|
100
|
-
var _ref;
|
|
101
|
-
_classCallCheck(this, Scrollbars3);
|
|
102
|
-
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
103
|
-
rest[_key - 1] = arguments[_key];
|
|
104
|
-
}
|
|
105
|
-
var _this = _possibleConstructorReturn(this, (_ref = Scrollbars3.__proto__ || Object.getPrototypeOf(Scrollbars3)).call.apply(_ref, [this, props].concat(rest)));
|
|
106
|
-
_this.getScrollLeft = _this.getScrollLeft.bind(_this);
|
|
107
|
-
_this.getScrollTop = _this.getScrollTop.bind(_this);
|
|
108
|
-
_this.getScrollWidth = _this.getScrollWidth.bind(_this);
|
|
109
|
-
_this.getScrollHeight = _this.getScrollHeight.bind(_this);
|
|
110
|
-
_this.getClientWidth = _this.getClientWidth.bind(_this);
|
|
111
|
-
_this.getClientHeight = _this.getClientHeight.bind(_this);
|
|
112
|
-
_this.getValues = _this.getValues.bind(_this);
|
|
113
|
-
_this.getThumbHorizontalWidth = _this.getThumbHorizontalWidth.bind(_this);
|
|
114
|
-
_this.getThumbVerticalHeight = _this.getThumbVerticalHeight.bind(_this);
|
|
115
|
-
_this.getScrollLeftForOffset = _this.getScrollLeftForOffset.bind(_this);
|
|
116
|
-
_this.getScrollTopForOffset = _this.getScrollTopForOffset.bind(_this);
|
|
117
|
-
_this.scrollLeft = _this.scrollLeft.bind(_this);
|
|
118
|
-
_this.scrollTop = _this.scrollTop.bind(_this);
|
|
119
|
-
_this.scrollToLeft = _this.scrollToLeft.bind(_this);
|
|
120
|
-
_this.scrollToTop = _this.scrollToTop.bind(_this);
|
|
121
|
-
_this.scrollToRight = _this.scrollToRight.bind(_this);
|
|
122
|
-
_this.scrollToBottom = _this.scrollToBottom.bind(_this);
|
|
123
|
-
_this.handleTrackMouseEnter = _this.handleTrackMouseEnter.bind(_this);
|
|
124
|
-
_this.handleTrackMouseLeave = _this.handleTrackMouseLeave.bind(_this);
|
|
125
|
-
_this.handleHorizontalTrackMouseDown = _this.handleHorizontalTrackMouseDown.bind(_this);
|
|
126
|
-
_this.handleVerticalTrackMouseDown = _this.handleVerticalTrackMouseDown.bind(_this);
|
|
127
|
-
_this.handleHorizontalThumbMouseDown = _this.handleHorizontalThumbMouseDown.bind(_this);
|
|
128
|
-
_this.handleVerticalThumbMouseDown = _this.handleVerticalThumbMouseDown.bind(_this);
|
|
129
|
-
_this.handleWindowResize = _this.handleWindowResize.bind(_this);
|
|
130
|
-
_this.handleScroll = _this.handleScroll.bind(_this);
|
|
131
|
-
_this.handleDrag = _this.handleDrag.bind(_this);
|
|
132
|
-
_this.handleDragEnd = _this.handleDragEnd.bind(_this);
|
|
133
|
-
_this.state = {
|
|
134
|
-
didMountUniversal: false
|
|
135
|
-
};
|
|
136
|
-
return _this;
|
|
137
|
-
}
|
|
138
|
-
_createClass(Scrollbars3, [{
|
|
139
|
-
key: "componentDidMount",
|
|
140
|
-
value: function componentDidMount() {
|
|
141
|
-
this.addListeners();
|
|
142
|
-
this.update();
|
|
143
|
-
this.componentDidMountUniversal();
|
|
144
|
-
}
|
|
145
|
-
}, {
|
|
146
|
-
key: "componentDidMountUniversal",
|
|
147
|
-
value: function componentDidMountUniversal() {
|
|
148
|
-
var universal = this.props.universal;
|
|
149
|
-
if (!universal) return;
|
|
150
|
-
this.setState({ didMountUniversal: true });
|
|
151
|
-
}
|
|
152
|
-
}, {
|
|
153
|
-
key: "componentDidUpdate",
|
|
154
|
-
value: function componentDidUpdate() {
|
|
155
|
-
this.update();
|
|
156
|
-
}
|
|
157
|
-
}, {
|
|
158
|
-
key: "componentWillUnmount",
|
|
159
|
-
value: function componentWillUnmount() {
|
|
160
|
-
this.removeListeners();
|
|
161
|
-
(0, _raf2.cancel)(this.requestFrame);
|
|
162
|
-
clearTimeout(this.hideTracksTimeout);
|
|
163
|
-
clearInterval(this.detectScrollingInterval);
|
|
164
|
-
}
|
|
165
|
-
}, {
|
|
166
|
-
key: "getScrollLeft",
|
|
167
|
-
value: function getScrollLeft() {
|
|
168
|
-
if (!this.view) return 0;
|
|
169
|
-
return this.view.scrollLeft;
|
|
170
|
-
}
|
|
171
|
-
}, {
|
|
172
|
-
key: "getScrollTop",
|
|
173
|
-
value: function getScrollTop() {
|
|
174
|
-
if (!this.view) return 0;
|
|
175
|
-
return this.view.scrollTop;
|
|
176
|
-
}
|
|
177
|
-
}, {
|
|
178
|
-
key: "getScrollWidth",
|
|
179
|
-
value: function getScrollWidth() {
|
|
180
|
-
if (!this.view) return 0;
|
|
181
|
-
return this.view.scrollWidth;
|
|
182
|
-
}
|
|
183
|
-
}, {
|
|
184
|
-
key: "getScrollHeight",
|
|
185
|
-
value: function getScrollHeight() {
|
|
186
|
-
if (!this.view) return 0;
|
|
187
|
-
return this.view.scrollHeight;
|
|
188
|
-
}
|
|
189
|
-
}, {
|
|
190
|
-
key: "getClientWidth",
|
|
191
|
-
value: function getClientWidth() {
|
|
192
|
-
if (!this.view) return 0;
|
|
193
|
-
return this.view.clientWidth;
|
|
194
|
-
}
|
|
195
|
-
}, {
|
|
196
|
-
key: "getClientHeight",
|
|
197
|
-
value: function getClientHeight() {
|
|
198
|
-
if (!this.view) return 0;
|
|
199
|
-
return this.view.clientHeight;
|
|
200
|
-
}
|
|
201
|
-
}, {
|
|
202
|
-
key: "getValues",
|
|
203
|
-
value: function getValues() {
|
|
204
|
-
var _ref2 = this.view || {}, _ref2$scrollLeft = _ref2.scrollLeft, scrollLeft = _ref2$scrollLeft === void 0 ? 0 : _ref2$scrollLeft, _ref2$scrollTop = _ref2.scrollTop, scrollTop = _ref2$scrollTop === void 0 ? 0 : _ref2$scrollTop, _ref2$scrollWidth = _ref2.scrollWidth, scrollWidth = _ref2$scrollWidth === void 0 ? 0 : _ref2$scrollWidth, _ref2$scrollHeight = _ref2.scrollHeight, scrollHeight = _ref2$scrollHeight === void 0 ? 0 : _ref2$scrollHeight, _ref2$clientWidth = _ref2.clientWidth, clientWidth = _ref2$clientWidth === void 0 ? 0 : _ref2$clientWidth, _ref2$clientHeight = _ref2.clientHeight, clientHeight = _ref2$clientHeight === void 0 ? 0 : _ref2$clientHeight;
|
|
205
|
-
return {
|
|
206
|
-
left: scrollLeft / (scrollWidth - clientWidth) || 0,
|
|
207
|
-
top: scrollTop / (scrollHeight - clientHeight) || 0,
|
|
208
|
-
scrollLeft,
|
|
209
|
-
scrollTop,
|
|
210
|
-
scrollWidth,
|
|
211
|
-
scrollHeight,
|
|
212
|
-
clientWidth,
|
|
213
|
-
clientHeight
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
}, {
|
|
217
|
-
key: "getThumbHorizontalWidth",
|
|
218
|
-
value: function getThumbHorizontalWidth() {
|
|
219
|
-
var _props = this.props, thumbSize = _props.thumbSize, thumbMinSize = _props.thumbMinSize;
|
|
220
|
-
var _view = this.view, scrollWidth = _view.scrollWidth, clientWidth = _view.clientWidth;
|
|
221
|
-
var trackWidth = (0, _getInnerWidth2["default"])(this.trackHorizontal);
|
|
222
|
-
var width = Math.ceil(clientWidth / scrollWidth * trackWidth);
|
|
223
|
-
if (trackWidth <= width) return 0;
|
|
224
|
-
if (thumbSize) return thumbSize;
|
|
225
|
-
return Math.max(width, thumbMinSize);
|
|
226
|
-
}
|
|
227
|
-
}, {
|
|
228
|
-
key: "getThumbVerticalHeight",
|
|
229
|
-
value: function getThumbVerticalHeight() {
|
|
230
|
-
var _props2 = this.props, thumbSize = _props2.thumbSize, thumbMinSize = _props2.thumbMinSize;
|
|
231
|
-
var _view2 = this.view, scrollHeight = _view2.scrollHeight, clientHeight = _view2.clientHeight;
|
|
232
|
-
var trackHeight = (0, _getInnerHeight2["default"])(this.trackVertical);
|
|
233
|
-
var height = Math.ceil(clientHeight / scrollHeight * trackHeight);
|
|
234
|
-
if (trackHeight <= height) return 0;
|
|
235
|
-
if (thumbSize) return thumbSize;
|
|
236
|
-
return Math.max(height, thumbMinSize);
|
|
237
|
-
}
|
|
238
|
-
}, {
|
|
239
|
-
key: "getScrollLeftForOffset",
|
|
240
|
-
value: function getScrollLeftForOffset(offset) {
|
|
241
|
-
var _view3 = this.view, scrollWidth = _view3.scrollWidth, clientWidth = _view3.clientWidth;
|
|
242
|
-
var trackWidth = (0, _getInnerWidth2["default"])(this.trackHorizontal);
|
|
243
|
-
var thumbWidth = this.getThumbHorizontalWidth();
|
|
244
|
-
return offset / (trackWidth - thumbWidth) * (scrollWidth - clientWidth);
|
|
245
|
-
}
|
|
246
|
-
}, {
|
|
247
|
-
key: "getScrollTopForOffset",
|
|
248
|
-
value: function getScrollTopForOffset(offset) {
|
|
249
|
-
var _view4 = this.view, scrollHeight = _view4.scrollHeight, clientHeight = _view4.clientHeight;
|
|
250
|
-
var trackHeight = (0, _getInnerHeight2["default"])(this.trackVertical);
|
|
251
|
-
var thumbHeight = this.getThumbVerticalHeight();
|
|
252
|
-
return offset / (trackHeight - thumbHeight) * (scrollHeight - clientHeight);
|
|
253
|
-
}
|
|
254
|
-
}, {
|
|
255
|
-
key: "scrollLeft",
|
|
256
|
-
value: function scrollLeft() {
|
|
257
|
-
var left = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
258
|
-
if (!this.view) return;
|
|
259
|
-
this.view.scrollLeft = left;
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
key: "scrollTop",
|
|
263
|
-
value: function scrollTop() {
|
|
264
|
-
var top = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
265
|
-
if (!this.view) return;
|
|
266
|
-
this.view.scrollTop = top;
|
|
267
|
-
}
|
|
268
|
-
}, {
|
|
269
|
-
key: "scrollToLeft",
|
|
270
|
-
value: function scrollToLeft() {
|
|
271
|
-
if (!this.view) return;
|
|
272
|
-
this.view.scrollLeft = 0;
|
|
273
|
-
}
|
|
274
|
-
}, {
|
|
275
|
-
key: "scrollToTop",
|
|
276
|
-
value: function scrollToTop() {
|
|
277
|
-
if (!this.view) return;
|
|
278
|
-
this.view.scrollTop = 0;
|
|
279
|
-
}
|
|
280
|
-
}, {
|
|
281
|
-
key: "scrollToRight",
|
|
282
|
-
value: function scrollToRight() {
|
|
283
|
-
if (!this.view) return;
|
|
284
|
-
this.view.scrollLeft = this.view.scrollWidth;
|
|
285
|
-
}
|
|
286
|
-
}, {
|
|
287
|
-
key: "scrollToBottom",
|
|
288
|
-
value: function scrollToBottom() {
|
|
289
|
-
if (!this.view) return;
|
|
290
|
-
this.view.scrollTop = this.view.scrollHeight;
|
|
291
|
-
}
|
|
292
|
-
}, {
|
|
293
|
-
key: "addListeners",
|
|
294
|
-
value: function addListeners() {
|
|
295
|
-
if (typeof document === "undefined" || !this.view) return;
|
|
296
|
-
var view = this.view, trackHorizontal = this.trackHorizontal, trackVertical = this.trackVertical, thumbHorizontal = this.thumbHorizontal, thumbVertical = this.thumbVertical;
|
|
297
|
-
view.addEventListener("scroll", this.handleScroll);
|
|
298
|
-
if (!(0, _getScrollbarWidth2["default"])()) return;
|
|
299
|
-
trackHorizontal.addEventListener("mouseenter", this.handleTrackMouseEnter);
|
|
300
|
-
trackHorizontal.addEventListener("mouseleave", this.handleTrackMouseLeave);
|
|
301
|
-
trackHorizontal.addEventListener("mousedown", this.handleHorizontalTrackMouseDown);
|
|
302
|
-
trackVertical.addEventListener("mouseenter", this.handleTrackMouseEnter);
|
|
303
|
-
trackVertical.addEventListener("mouseleave", this.handleTrackMouseLeave);
|
|
304
|
-
trackVertical.addEventListener("mousedown", this.handleVerticalTrackMouseDown);
|
|
305
|
-
thumbHorizontal.addEventListener("mousedown", this.handleHorizontalThumbMouseDown);
|
|
306
|
-
thumbVertical.addEventListener("mousedown", this.handleVerticalThumbMouseDown);
|
|
307
|
-
window.addEventListener("resize", this.handleWindowResize);
|
|
308
|
-
}
|
|
309
|
-
}, {
|
|
310
|
-
key: "removeListeners",
|
|
311
|
-
value: function removeListeners() {
|
|
312
|
-
if (typeof document === "undefined" || !this.view) return;
|
|
313
|
-
var view = this.view, trackHorizontal = this.trackHorizontal, trackVertical = this.trackVertical, thumbHorizontal = this.thumbHorizontal, thumbVertical = this.thumbVertical;
|
|
314
|
-
view.removeEventListener("scroll", this.handleScroll);
|
|
315
|
-
if (!(0, _getScrollbarWidth2["default"])()) return;
|
|
316
|
-
trackHorizontal.removeEventListener("mouseenter", this.handleTrackMouseEnter);
|
|
317
|
-
trackHorizontal.removeEventListener("mouseleave", this.handleTrackMouseLeave);
|
|
318
|
-
trackHorizontal.removeEventListener("mousedown", this.handleHorizontalTrackMouseDown);
|
|
319
|
-
trackVertical.removeEventListener("mouseenter", this.handleTrackMouseEnter);
|
|
320
|
-
trackVertical.removeEventListener("mouseleave", this.handleTrackMouseLeave);
|
|
321
|
-
trackVertical.removeEventListener("mousedown", this.handleVerticalTrackMouseDown);
|
|
322
|
-
thumbHorizontal.removeEventListener("mousedown", this.handleHorizontalThumbMouseDown);
|
|
323
|
-
thumbVertical.removeEventListener("mousedown", this.handleVerticalThumbMouseDown);
|
|
324
|
-
window.removeEventListener("resize", this.handleWindowResize);
|
|
325
|
-
this.teardownDragging();
|
|
326
|
-
}
|
|
327
|
-
}, {
|
|
328
|
-
key: "handleScroll",
|
|
329
|
-
value: function handleScroll(event) {
|
|
330
|
-
var _this2 = this;
|
|
331
|
-
var _props3 = this.props, onScroll = _props3.onScroll, onScrollFrame = _props3.onScrollFrame;
|
|
332
|
-
if (onScroll) onScroll(event);
|
|
333
|
-
this.update(function(values) {
|
|
334
|
-
var scrollLeft = values.scrollLeft, scrollTop = values.scrollTop;
|
|
335
|
-
_this2.viewScrollLeft = scrollLeft;
|
|
336
|
-
_this2.viewScrollTop = scrollTop;
|
|
337
|
-
if (onScrollFrame) onScrollFrame(values);
|
|
338
|
-
});
|
|
339
|
-
this.detectScrolling();
|
|
340
|
-
}
|
|
341
|
-
}, {
|
|
342
|
-
key: "handleScrollStart",
|
|
343
|
-
value: function handleScrollStart() {
|
|
344
|
-
var onScrollStart = this.props.onScrollStart;
|
|
345
|
-
if (onScrollStart) onScrollStart();
|
|
346
|
-
this.handleScrollStartAutoHide();
|
|
347
|
-
}
|
|
348
|
-
}, {
|
|
349
|
-
key: "handleScrollStartAutoHide",
|
|
350
|
-
value: function handleScrollStartAutoHide() {
|
|
351
|
-
var autoHide = this.props.autoHide;
|
|
352
|
-
if (!autoHide) return;
|
|
353
|
-
this.showTracks();
|
|
354
|
-
}
|
|
355
|
-
}, {
|
|
356
|
-
key: "handleScrollStop",
|
|
357
|
-
value: function handleScrollStop() {
|
|
358
|
-
var onScrollStop = this.props.onScrollStop;
|
|
359
|
-
if (onScrollStop) onScrollStop();
|
|
360
|
-
this.handleScrollStopAutoHide();
|
|
361
|
-
}
|
|
362
|
-
}, {
|
|
363
|
-
key: "handleScrollStopAutoHide",
|
|
364
|
-
value: function handleScrollStopAutoHide() {
|
|
365
|
-
var autoHide = this.props.autoHide;
|
|
366
|
-
if (!autoHide) return;
|
|
367
|
-
this.hideTracks();
|
|
368
|
-
}
|
|
369
|
-
}, {
|
|
370
|
-
key: "handleWindowResize",
|
|
371
|
-
value: function handleWindowResize() {
|
|
372
|
-
(0, _getScrollbarWidth2["default"])(false);
|
|
373
|
-
this.forceUpdate();
|
|
374
|
-
}
|
|
375
|
-
}, {
|
|
376
|
-
key: "handleHorizontalTrackMouseDown",
|
|
377
|
-
value: function handleHorizontalTrackMouseDown(event) {
|
|
378
|
-
event.preventDefault();
|
|
379
|
-
var target = event.target, clientX = event.clientX;
|
|
380
|
-
var _target$getBoundingCl = target.getBoundingClientRect(), targetLeft = _target$getBoundingCl.left;
|
|
381
|
-
var thumbWidth = this.getThumbHorizontalWidth();
|
|
382
|
-
var offset = Math.abs(targetLeft - clientX) - thumbWidth / 2;
|
|
383
|
-
this.view.scrollLeft = this.getScrollLeftForOffset(offset);
|
|
384
|
-
}
|
|
385
|
-
}, {
|
|
386
|
-
key: "handleVerticalTrackMouseDown",
|
|
387
|
-
value: function handleVerticalTrackMouseDown(event) {
|
|
388
|
-
event.preventDefault();
|
|
389
|
-
var target = event.target, clientY = event.clientY;
|
|
390
|
-
var _target$getBoundingCl2 = target.getBoundingClientRect(), targetTop = _target$getBoundingCl2.top;
|
|
391
|
-
var thumbHeight = this.getThumbVerticalHeight();
|
|
392
|
-
var offset = Math.abs(targetTop - clientY) - thumbHeight / 2;
|
|
393
|
-
this.view.scrollTop = this.getScrollTopForOffset(offset);
|
|
394
|
-
}
|
|
395
|
-
}, {
|
|
396
|
-
key: "handleHorizontalThumbMouseDown",
|
|
397
|
-
value: function handleHorizontalThumbMouseDown(event) {
|
|
398
|
-
event.preventDefault();
|
|
399
|
-
this.handleDragStart(event);
|
|
400
|
-
var target = event.target, clientX = event.clientX;
|
|
401
|
-
var offsetWidth = target.offsetWidth;
|
|
402
|
-
var _target$getBoundingCl3 = target.getBoundingClientRect(), left = _target$getBoundingCl3.left;
|
|
403
|
-
this.prevPageX = offsetWidth - (clientX - left);
|
|
404
|
-
}
|
|
405
|
-
}, {
|
|
406
|
-
key: "handleVerticalThumbMouseDown",
|
|
407
|
-
value: function handleVerticalThumbMouseDown(event) {
|
|
408
|
-
event.preventDefault();
|
|
409
|
-
this.handleDragStart(event);
|
|
410
|
-
var target = event.target, clientY = event.clientY;
|
|
411
|
-
var offsetHeight = target.offsetHeight;
|
|
412
|
-
var _target$getBoundingCl4 = target.getBoundingClientRect(), top = _target$getBoundingCl4.top;
|
|
413
|
-
this.prevPageY = offsetHeight - (clientY - top);
|
|
414
|
-
}
|
|
415
|
-
}, {
|
|
416
|
-
key: "setupDragging",
|
|
417
|
-
value: function setupDragging() {
|
|
418
|
-
(0, _domCss2["default"])(document.body, _styles.disableSelectStyle);
|
|
419
|
-
document.addEventListener("mousemove", this.handleDrag);
|
|
420
|
-
document.addEventListener("mouseup", this.handleDragEnd);
|
|
421
|
-
document.onselectstart = _returnFalse2["default"];
|
|
422
|
-
}
|
|
423
|
-
}, {
|
|
424
|
-
key: "teardownDragging",
|
|
425
|
-
value: function teardownDragging() {
|
|
426
|
-
(0, _domCss2["default"])(document.body, _styles.disableSelectStyleReset);
|
|
427
|
-
document.removeEventListener("mousemove", this.handleDrag);
|
|
428
|
-
document.removeEventListener("mouseup", this.handleDragEnd);
|
|
429
|
-
document.onselectstart = void 0;
|
|
430
|
-
}
|
|
431
|
-
}, {
|
|
432
|
-
key: "handleDragStart",
|
|
433
|
-
value: function handleDragStart(event) {
|
|
434
|
-
this.dragging = true;
|
|
435
|
-
event.stopImmediatePropagation();
|
|
436
|
-
this.setupDragging();
|
|
437
|
-
}
|
|
438
|
-
}, {
|
|
439
|
-
key: "handleDrag",
|
|
440
|
-
value: function handleDrag(event) {
|
|
441
|
-
if (this.prevPageX) {
|
|
442
|
-
var clientX = event.clientX;
|
|
443
|
-
var _trackHorizontal$getB = this.trackHorizontal.getBoundingClientRect(), trackLeft = _trackHorizontal$getB.left;
|
|
444
|
-
var thumbWidth = this.getThumbHorizontalWidth();
|
|
445
|
-
var clickPosition = thumbWidth - this.prevPageX;
|
|
446
|
-
var offset = -trackLeft + clientX - clickPosition;
|
|
447
|
-
this.view.scrollLeft = this.getScrollLeftForOffset(offset);
|
|
448
|
-
}
|
|
449
|
-
if (this.prevPageY) {
|
|
450
|
-
var clientY = event.clientY;
|
|
451
|
-
var _trackVertical$getBou = this.trackVertical.getBoundingClientRect(), trackTop = _trackVertical$getBou.top;
|
|
452
|
-
var thumbHeight = this.getThumbVerticalHeight();
|
|
453
|
-
var _clickPosition = thumbHeight - this.prevPageY;
|
|
454
|
-
var _offset = -trackTop + clientY - _clickPosition;
|
|
455
|
-
this.view.scrollTop = this.getScrollTopForOffset(_offset);
|
|
456
|
-
}
|
|
457
|
-
return false;
|
|
458
|
-
}
|
|
459
|
-
}, {
|
|
460
|
-
key: "handleDragEnd",
|
|
461
|
-
value: function handleDragEnd() {
|
|
462
|
-
this.dragging = false;
|
|
463
|
-
this.prevPageX = this.prevPageY = 0;
|
|
464
|
-
this.teardownDragging();
|
|
465
|
-
this.handleDragEndAutoHide();
|
|
466
|
-
}
|
|
467
|
-
}, {
|
|
468
|
-
key: "handleDragEndAutoHide",
|
|
469
|
-
value: function handleDragEndAutoHide() {
|
|
470
|
-
var autoHide = this.props.autoHide;
|
|
471
|
-
if (!autoHide) return;
|
|
472
|
-
this.hideTracks();
|
|
473
|
-
}
|
|
474
|
-
}, {
|
|
475
|
-
key: "handleTrackMouseEnter",
|
|
476
|
-
value: function handleTrackMouseEnter() {
|
|
477
|
-
this.trackMouseOver = true;
|
|
478
|
-
this.handleTrackMouseEnterAutoHide();
|
|
479
|
-
}
|
|
480
|
-
}, {
|
|
481
|
-
key: "handleTrackMouseEnterAutoHide",
|
|
482
|
-
value: function handleTrackMouseEnterAutoHide() {
|
|
483
|
-
var autoHide = this.props.autoHide;
|
|
484
|
-
if (!autoHide) return;
|
|
485
|
-
this.showTracks();
|
|
486
|
-
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "handleTrackMouseLeave",
|
|
489
|
-
value: function handleTrackMouseLeave() {
|
|
490
|
-
this.trackMouseOver = false;
|
|
491
|
-
this.handleTrackMouseLeaveAutoHide();
|
|
492
|
-
}
|
|
493
|
-
}, {
|
|
494
|
-
key: "handleTrackMouseLeaveAutoHide",
|
|
495
|
-
value: function handleTrackMouseLeaveAutoHide() {
|
|
496
|
-
var autoHide = this.props.autoHide;
|
|
497
|
-
if (!autoHide) return;
|
|
498
|
-
this.hideTracks();
|
|
499
|
-
}
|
|
500
|
-
}, {
|
|
501
|
-
key: "showTracks",
|
|
502
|
-
value: function showTracks() {
|
|
503
|
-
clearTimeout(this.hideTracksTimeout);
|
|
504
|
-
(0, _domCss2["default"])(this.trackHorizontal, { opacity: 1 });
|
|
505
|
-
(0, _domCss2["default"])(this.trackVertical, { opacity: 1 });
|
|
506
|
-
}
|
|
507
|
-
}, {
|
|
508
|
-
key: "hideTracks",
|
|
509
|
-
value: function hideTracks() {
|
|
510
|
-
var _this3 = this;
|
|
511
|
-
if (this.dragging) return;
|
|
512
|
-
if (this.scrolling) return;
|
|
513
|
-
if (this.trackMouseOver) return;
|
|
514
|
-
var autoHideTimeout = this.props.autoHideTimeout;
|
|
515
|
-
clearTimeout(this.hideTracksTimeout);
|
|
516
|
-
this.hideTracksTimeout = setTimeout(function() {
|
|
517
|
-
(0, _domCss2["default"])(_this3.trackHorizontal, { opacity: 0 });
|
|
518
|
-
(0, _domCss2["default"])(_this3.trackVertical, { opacity: 0 });
|
|
519
|
-
}, autoHideTimeout);
|
|
520
|
-
}
|
|
521
|
-
}, {
|
|
522
|
-
key: "detectScrolling",
|
|
523
|
-
value: function detectScrolling() {
|
|
524
|
-
var _this4 = this;
|
|
525
|
-
if (this.scrolling) return;
|
|
526
|
-
this.scrolling = true;
|
|
527
|
-
this.handleScrollStart();
|
|
528
|
-
this.detectScrollingInterval = setInterval(function() {
|
|
529
|
-
if (_this4.lastViewScrollLeft === _this4.viewScrollLeft && _this4.lastViewScrollTop === _this4.viewScrollTop) {
|
|
530
|
-
clearInterval(_this4.detectScrollingInterval);
|
|
531
|
-
_this4.scrolling = false;
|
|
532
|
-
_this4.handleScrollStop();
|
|
533
|
-
}
|
|
534
|
-
_this4.lastViewScrollLeft = _this4.viewScrollLeft;
|
|
535
|
-
_this4.lastViewScrollTop = _this4.viewScrollTop;
|
|
536
|
-
}, 100);
|
|
537
|
-
}
|
|
538
|
-
}, {
|
|
539
|
-
key: "raf",
|
|
540
|
-
value: function raf(callback) {
|
|
541
|
-
var _this5 = this;
|
|
542
|
-
if (this.requestFrame) _raf3["default"].cancel(this.requestFrame);
|
|
543
|
-
this.requestFrame = (0, _raf3["default"])(function() {
|
|
544
|
-
_this5.requestFrame = void 0;
|
|
545
|
-
callback();
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
}, {
|
|
549
|
-
key: "update",
|
|
550
|
-
value: function update(callback) {
|
|
551
|
-
var _this6 = this;
|
|
552
|
-
this.raf(function() {
|
|
553
|
-
return _this6._update(callback);
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
}, {
|
|
557
|
-
key: "_update",
|
|
558
|
-
value: function _update(callback) {
|
|
559
|
-
var _props4 = this.props, onUpdate = _props4.onUpdate, hideTracksWhenNotNeeded = _props4.hideTracksWhenNotNeeded;
|
|
560
|
-
var values = this.getValues();
|
|
561
|
-
if ((0, _getScrollbarWidth2["default"])()) {
|
|
562
|
-
var scrollLeft = values.scrollLeft, clientWidth = values.clientWidth, scrollWidth = values.scrollWidth;
|
|
563
|
-
var trackHorizontalWidth = (0, _getInnerWidth2["default"])(this.trackHorizontal);
|
|
564
|
-
var thumbHorizontalWidth = this.getThumbHorizontalWidth();
|
|
565
|
-
var thumbHorizontalX = scrollLeft / (scrollWidth - clientWidth) * (trackHorizontalWidth - thumbHorizontalWidth);
|
|
566
|
-
var thumbHorizontalStyle = {
|
|
567
|
-
width: thumbHorizontalWidth,
|
|
568
|
-
transform: "translateX(" + thumbHorizontalX + "px)"
|
|
569
|
-
};
|
|
570
|
-
var scrollTop = values.scrollTop, clientHeight = values.clientHeight, scrollHeight = values.scrollHeight;
|
|
571
|
-
var trackVerticalHeight = (0, _getInnerHeight2["default"])(this.trackVertical);
|
|
572
|
-
var thumbVerticalHeight = this.getThumbVerticalHeight();
|
|
573
|
-
var thumbVerticalY = scrollTop / (scrollHeight - clientHeight) * (trackVerticalHeight - thumbVerticalHeight);
|
|
574
|
-
var thumbVerticalStyle = {
|
|
575
|
-
height: thumbVerticalHeight,
|
|
576
|
-
transform: "translateY(" + thumbVerticalY + "px)"
|
|
577
|
-
};
|
|
578
|
-
if (hideTracksWhenNotNeeded) {
|
|
579
|
-
var trackHorizontalStyle = {
|
|
580
|
-
visibility: scrollWidth > clientWidth ? "visible" : "hidden"
|
|
581
|
-
};
|
|
582
|
-
var trackVerticalStyle = {
|
|
583
|
-
visibility: scrollHeight > clientHeight ? "visible" : "hidden"
|
|
584
|
-
};
|
|
585
|
-
(0, _domCss2["default"])(this.trackHorizontal, trackHorizontalStyle);
|
|
586
|
-
(0, _domCss2["default"])(this.trackVertical, trackVerticalStyle);
|
|
587
|
-
}
|
|
588
|
-
(0, _domCss2["default"])(this.thumbHorizontal, thumbHorizontalStyle);
|
|
589
|
-
(0, _domCss2["default"])(this.thumbVertical, thumbVerticalStyle);
|
|
590
|
-
}
|
|
591
|
-
if (onUpdate) onUpdate(values);
|
|
592
|
-
if (typeof callback !== "function") return;
|
|
593
|
-
callback(values);
|
|
594
|
-
}
|
|
595
|
-
}, {
|
|
596
|
-
key: "render",
|
|
597
|
-
value: function render() {
|
|
598
|
-
var _this7 = this;
|
|
599
|
-
var scrollbarWidth = (0, _getScrollbarWidth2["default"])();
|
|
600
|
-
var _props5 = this.props;
|
|
601
|
-
_props5.onScroll;
|
|
602
|
-
_props5.onScrollFrame;
|
|
603
|
-
_props5.onScrollStart;
|
|
604
|
-
_props5.onScrollStop;
|
|
605
|
-
_props5.onUpdate;
|
|
606
|
-
var renderView = _props5.renderView, renderTrackHorizontal = _props5.renderTrackHorizontal, renderTrackVertical = _props5.renderTrackVertical, renderThumbHorizontal = _props5.renderThumbHorizontal, renderThumbVertical = _props5.renderThumbVertical, tagName = _props5.tagName;
|
|
607
|
-
_props5.hideTracksWhenNotNeeded;
|
|
608
|
-
var autoHide = _props5.autoHide;
|
|
609
|
-
_props5.autoHideTimeout;
|
|
610
|
-
var autoHideDuration = _props5.autoHideDuration;
|
|
611
|
-
_props5.thumbSize;
|
|
612
|
-
_props5.thumbMinSize;
|
|
613
|
-
var universal = _props5.universal, autoHeight = _props5.autoHeight, autoHeightMin = _props5.autoHeightMin, autoHeightMax = _props5.autoHeightMax, style = _props5.style, children = _props5.children, props = _objectWithoutProperties(_props5, ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "style", "children"]);
|
|
614
|
-
var didMountUniversal = this.state.didMountUniversal;
|
|
615
|
-
var containerStyle = _extends({}, _styles.containerStyleDefault, autoHeight && _extends({}, _styles.containerStyleAutoHeight, {
|
|
616
|
-
minHeight: autoHeightMin,
|
|
617
|
-
maxHeight: autoHeightMax
|
|
618
|
-
}), style);
|
|
619
|
-
var viewStyle = _extends({}, _styles.viewStyleDefault, {
|
|
620
|
-
// Hide scrollbars by setting a negative margin
|
|
621
|
-
marginRight: scrollbarWidth ? -scrollbarWidth : 0,
|
|
622
|
-
marginBottom: scrollbarWidth ? -scrollbarWidth : 0
|
|
623
|
-
}, autoHeight && _extends({}, _styles.viewStyleAutoHeight, {
|
|
624
|
-
// Add scrollbarWidth to autoHeight in order to compensate negative margins
|
|
625
|
-
minHeight: (0, _isString2["default"])(autoHeightMin) ? "calc(" + autoHeightMin + " + " + scrollbarWidth + "px)" : autoHeightMin + scrollbarWidth,
|
|
626
|
-
maxHeight: (0, _isString2["default"])(autoHeightMax) ? "calc(" + autoHeightMax + " + " + scrollbarWidth + "px)" : autoHeightMax + scrollbarWidth
|
|
627
|
-
}), autoHeight && universal && !didMountUniversal && {
|
|
628
|
-
minHeight: autoHeightMin,
|
|
629
|
-
maxHeight: autoHeightMax
|
|
630
|
-
}, universal && !didMountUniversal && _styles.viewStyleUniversalInitial);
|
|
631
|
-
var trackAutoHeightStyle = {
|
|
632
|
-
transition: "opacity " + autoHideDuration + "ms",
|
|
633
|
-
opacity: 0
|
|
634
|
-
};
|
|
635
|
-
var trackHorizontalStyle = _extends({}, _styles.trackHorizontalStyleDefault, autoHide && trackAutoHeightStyle, (!scrollbarWidth || universal && !didMountUniversal) && {
|
|
636
|
-
display: "none"
|
|
637
|
-
});
|
|
638
|
-
var trackVerticalStyle = _extends({}, _styles.trackVerticalStyleDefault, autoHide && trackAutoHeightStyle, (!scrollbarWidth || universal && !didMountUniversal) && {
|
|
639
|
-
display: "none"
|
|
640
|
-
});
|
|
641
|
-
return (0, _react.createElement)(tagName, _extends({}, props, { style: containerStyle, ref: function ref(_ref3) {
|
|
642
|
-
_this7.container = _ref3;
|
|
643
|
-
} }), [(0, _react.cloneElement)(renderView({ style: viewStyle }), { key: "view", ref: function ref(_ref4) {
|
|
644
|
-
_this7.view = _ref4;
|
|
645
|
-
} }, children), (0, _react.cloneElement)(renderTrackHorizontal({ style: trackHorizontalStyle }), { key: "trackHorizontal", ref: function ref(_ref5) {
|
|
646
|
-
_this7.trackHorizontal = _ref5;
|
|
647
|
-
} }, (0, _react.cloneElement)(renderThumbHorizontal({ style: _styles.thumbHorizontalStyleDefault }), { ref: function ref(_ref6) {
|
|
648
|
-
_this7.thumbHorizontal = _ref6;
|
|
649
|
-
} })), (0, _react.cloneElement)(renderTrackVertical({ style: trackVerticalStyle }), { key: "trackVertical", ref: function ref(_ref7) {
|
|
650
|
-
_this7.trackVertical = _ref7;
|
|
651
|
-
} }, (0, _react.cloneElement)(renderThumbVertical({ style: _styles.thumbVerticalStyleDefault }), { ref: function ref(_ref8) {
|
|
652
|
-
_this7.thumbVertical = _ref8;
|
|
653
|
-
} }))]);
|
|
654
|
-
}
|
|
655
|
-
}]);
|
|
656
|
-
return Scrollbars3;
|
|
657
|
-
})(_react.Component);
|
|
658
|
-
exports$1["default"] = Scrollbars2;
|
|
659
|
-
Scrollbars2.propTypes = {
|
|
660
|
-
onScroll: _propTypes2["default"].func,
|
|
661
|
-
onScrollFrame: _propTypes2["default"].func,
|
|
662
|
-
onScrollStart: _propTypes2["default"].func,
|
|
663
|
-
onScrollStop: _propTypes2["default"].func,
|
|
664
|
-
onUpdate: _propTypes2["default"].func,
|
|
665
|
-
renderView: _propTypes2["default"].func,
|
|
666
|
-
renderTrackHorizontal: _propTypes2["default"].func,
|
|
667
|
-
renderTrackVertical: _propTypes2["default"].func,
|
|
668
|
-
renderThumbHorizontal: _propTypes2["default"].func,
|
|
669
|
-
renderThumbVertical: _propTypes2["default"].func,
|
|
670
|
-
tagName: _propTypes2["default"].string,
|
|
671
|
-
thumbSize: _propTypes2["default"].number,
|
|
672
|
-
thumbMinSize: _propTypes2["default"].number,
|
|
673
|
-
hideTracksWhenNotNeeded: _propTypes2["default"].bool,
|
|
674
|
-
autoHide: _propTypes2["default"].bool,
|
|
675
|
-
autoHideTimeout: _propTypes2["default"].number,
|
|
676
|
-
autoHideDuration: _propTypes2["default"].number,
|
|
677
|
-
autoHeight: _propTypes2["default"].bool,
|
|
678
|
-
autoHeightMin: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
|
|
679
|
-
autoHeightMax: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
|
|
680
|
-
universal: _propTypes2["default"].bool,
|
|
681
|
-
style: _propTypes2["default"].object,
|
|
682
|
-
children: _propTypes2["default"].node
|
|
683
|
-
};
|
|
684
|
-
Scrollbars2.defaultProps = {
|
|
685
|
-
renderView: _defaultRenderElements.renderViewDefault,
|
|
686
|
-
renderTrackHorizontal: _defaultRenderElements.renderTrackHorizontalDefault,
|
|
687
|
-
renderTrackVertical: _defaultRenderElements.renderTrackVerticalDefault,
|
|
688
|
-
renderThumbHorizontal: _defaultRenderElements.renderThumbHorizontalDefault,
|
|
689
|
-
renderThumbVertical: _defaultRenderElements.renderThumbVerticalDefault,
|
|
690
|
-
tagName: "div",
|
|
691
|
-
thumbMinSize: 30,
|
|
692
|
-
hideTracksWhenNotNeeded: false,
|
|
693
|
-
autoHide: false,
|
|
694
|
-
autoHideTimeout: 1e3,
|
|
695
|
-
autoHideDuration: 200,
|
|
696
|
-
autoHeight: false,
|
|
697
|
-
autoHeightMin: 0,
|
|
698
|
-
autoHeightMax: 200,
|
|
699
|
-
universal: false
|
|
700
|
-
};
|
|
701
|
-
})(Scrollbars);
|
|
702
|
-
return Scrollbars;
|
|
703
|
-
}
|
|
704
|
-
export {
|
|
705
|
-
requireScrollbars as __require
|
|
706
|
-
};
|