@itcase/ui 1.1.25 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cjs/Badge-C_bYrtVY.js → Badge-2JkquAEb.js} +6 -10
- package/dist/{Badge-CLV5v6N7.js → Badge-CrhdvxY6.js} +4 -4
- package/dist/Button-BA3ZeUjj.js +90 -0
- package/dist/Button-VkatyBmt.js +93 -0
- package/dist/{cjs/Divider-D92wY8Fn.js → Divider-BjB5MD6u.js} +4 -8
- package/dist/{Divider-Dhj6sMWd.js → Divider-U5UdY-ef.js} +2 -2
- package/dist/{DropdownItem-CkojAA8a.js → DropdownItem-bB-KYqcL.js} +7 -7
- package/dist/{cjs/DropdownItem-2Nqtx3Vi.js → DropdownItem-m4hdxHp6.js} +8 -13
- package/dist/{Group-DLmtajo8.js → Group-BXfLh7AZ.js} +3 -3
- package/dist/{cjs/Group-EFTg84wP.js → Group-Buo_BxGT.js} +5 -9
- package/dist/{cjs/Icon-C7ZJyN5o.js → Icon-Co5Mtpt_.js} +11 -17
- package/dist/{Icon-BLqnXYOO.js → Icon-CsE2-ieX.js} +10 -10
- package/dist/{Image-Bz4Fo3eB.js → Image-8t6PvsaZ.js} +2 -2
- package/dist/{cjs/Image-CCx6QWZj.js → Image-DrUlRMHa.js} +4 -8
- package/dist/{Input-CYDtAlO-.js → Input-BQ6Plt1n.js} +4 -4
- package/dist/{cjs/Input-vwyG3XF0.js → Input-C7gBdx1m.js} +5 -10
- package/dist/{Label-c3hONOHC.js → Label-BA_CnRBq.js} +5 -5
- package/dist/{cjs/Label-C2uLpNrU.js → Label-CpSzGRtr.js} +7 -11
- package/dist/{Link-DtzAAQn8.js → Link-Bqu5amIb.js} +8 -8
- package/dist/{cjs/Link-DRV1vzHd.js → Link-DQxoFKhI.js} +10 -15
- package/dist/{Loader-VCP1ZNcb.js → Loader-CJ8ZCdwy.js} +3 -3
- package/dist/{cjs/Loader-C2D6fJk1.js → Loader-fA11tUEJ.js} +5 -9
- package/dist/{MenuItem-BbU9r8_D.js → MenuItem-CNJfj0nV.js} +6 -6
- package/dist/{cjs/MenuItem-D6T9WRQk.js → MenuItem-DvIFaWkB.js} +7 -12
- package/dist/{cjs/Overlay-CkN2X1BM.js → Overlay-CFXouKnl.js} +4 -8
- package/dist/{Overlay-DNPslUfY.js → Overlay-DO5dnSRE.js} +2 -2
- package/dist/{cjs/Radio-Bvv59nEV.js → Radio-BQo97TZL.js} +7 -11
- package/dist/{Radio-BHqgR8WO.js → Radio-oMf0vN7T.js} +6 -6
- package/dist/{Scrollbar-DrRNpn12.js → Scrollbar-CrGXCZ_F.js} +2 -2
- package/dist/{cjs/Scrollbar-DOujlQOb.js → Scrollbar-DVlIZzvz.js} +2 -6
- package/dist/Switch-B5yVEqxz.js +14 -0
- package/dist/Switch-DEXsrPCo.js +12 -0
- package/dist/{Text-Dz-KPI5I.js → Text-CG3xPG27.js} +2 -2
- package/dist/{cjs/Text-B0SULA92.js → Text-_YhyTsQ1.js} +4 -8
- package/dist/{Title-zpOK2AxL.js → Title-BfSFPJtJ.js} +3 -3
- package/dist/{cjs/Title-Ckp30YSI.js → Title-zwP6c2U2.js} +6 -10
- package/dist/{Tooltip-IVq3_vb4.js → Tooltip-DJufHBiQ.js} +7 -7
- package/dist/{cjs/Tooltip-DREz-tP6.js → Tooltip-DkTKx9n-.js} +8 -13
- package/dist/cjs/components/Accordion.js +178 -15
- package/dist/cjs/components/Avatar.js +33 -14
- package/dist/cjs/components/Badge.js +4 -4
- package/dist/cjs/components/Breadcrumbs.js +88 -15
- package/dist/cjs/components/Button.js +9 -9
- package/dist/cjs/components/Caption.js +23 -7
- package/dist/cjs/components/Card.js +26 -8
- package/dist/cjs/components/Cell.js +70 -14
- package/dist/cjs/components/Checkbox.js +86 -8
- package/dist/cjs/components/Chips.js +75 -9
- package/dist/cjs/components/Choice.js +100 -15
- package/dist/cjs/components/Code.js +101 -8
- package/dist/cjs/components/ContextMenu.js +48 -13
- package/dist/cjs/components/CookiesWarning.js +56 -17
- package/dist/cjs/components/DadataHintField.js +31 -9
- package/dist/cjs/components/DatePicker.js +1158 -18
- package/dist/cjs/components/Divider.js +3 -3
- package/dist/cjs/components/Dot.js +32 -7
- package/dist/cjs/components/Drawer.js +12 -8
- package/dist/cjs/components/Dropdown.js +6 -6
- package/dist/cjs/components/Flex.js +116 -7
- package/dist/cjs/components/FormField.js +108 -27
- package/dist/cjs/components/Grid.js +148 -8
- package/dist/cjs/components/Group.js +3 -3
- package/dist/cjs/components/HTMLContent.js +83 -7
- package/dist/cjs/components/Icon.js +7 -7
- package/dist/cjs/components/Image.js +3 -3
- package/dist/cjs/components/Input.js +2 -2
- package/dist/cjs/components/InputMask.js +3 -8
- package/dist/cjs/components/InputPassword.js +112 -14
- package/dist/cjs/components/Label.js +5 -5
- package/dist/cjs/components/LanguageSelector.js +17 -11
- package/dist/cjs/components/Link.js +3 -3
- package/dist/cjs/components/List.js +43 -9
- package/dist/cjs/components/Loader.js +4 -4
- package/dist/cjs/components/Logo.js +37 -10
- package/dist/cjs/components/Menu.js +35 -11
- package/dist/cjs/components/MenuItem.js +5 -5
- package/dist/cjs/components/Modal.js +160 -12
- package/dist/cjs/components/Notification.js +41 -12
- package/dist/cjs/components/Overlay.js +3 -3
- package/dist/cjs/components/Page.js +39 -45
- package/dist/cjs/components/Pagination.js +97 -17
- package/dist/cjs/components/Panel.js +5 -9
- package/dist/cjs/components/Radio.js +4 -4
- package/dist/cjs/components/RangeSlider.js +48 -8
- package/dist/cjs/components/Response.js +78 -19
- package/dist/cjs/components/SVGContent.js +2 -6
- package/dist/cjs/components/ScrollOnDrag.js +4 -10
- package/dist/cjs/components/ScrollToView.js +56 -10
- package/dist/cjs/components/Scrollbar.js +2 -3
- package/dist/cjs/components/Search.js +123 -16
- package/dist/cjs/components/Segmented.js +91 -9
- package/dist/cjs/components/Select.js +115 -6775
- package/dist/cjs/components/SiteMenu.js +60 -14
- package/dist/cjs/components/Swiper.js +81 -9
- package/dist/cjs/components/Switch.js +2 -2
- package/dist/cjs/components/Tab.js +144 -14
- package/dist/cjs/components/Text.js +3 -3
- package/dist/cjs/components/Textarea.js +95 -8
- package/dist/cjs/components/Tile.js +50 -10
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +4 -4
- package/dist/cjs/components/Video.js +16 -6
- package/dist/cjs/components/Wrapper.js +43 -7
- package/dist/cjs/components.js +1 -213
- package/dist/cjs/context/Notifications.js +4 -9
- package/dist/cjs/context/UIContext.js +7 -12
- package/dist/cjs/hooks/useDeviceTargetClass.js +2 -7
- package/dist/cjs/hooks/useStyles.js +6 -12
- package/dist/components/Accordion.js +180 -13
- package/dist/components/Avatar.js +35 -12
- package/dist/components/Badge.js +4 -4
- package/dist/components/Breadcrumbs.js +90 -13
- package/dist/components/Button.js +9 -9
- package/dist/components/Caption.js +25 -5
- package/dist/components/Card.js +28 -6
- package/dist/components/Cell.js +72 -12
- package/dist/components/Checkbox.js +87 -5
- package/dist/components/Chips.js +76 -6
- package/dist/components/Choice.js +101 -12
- package/dist/components/Code.js +103 -6
- package/dist/components/ContextMenu.js +50 -11
- package/dist/components/CookiesWarning.js +58 -15
- package/dist/components/DadataHintField.js +33 -7
- package/dist/components/DatePicker.js +1161 -17
- package/dist/components/Divider.js +3 -3
- package/dist/components/Dot.js +34 -5
- package/dist/components/Drawer.js +12 -4
- package/dist/components/Dropdown.js +6 -6
- package/dist/components/Flex.js +118 -5
- package/dist/components/FormField.js +107 -22
- package/dist/components/Grid.js +149 -5
- package/dist/components/Group.js +3 -3
- package/dist/components/HTMLContent.js +85 -5
- package/dist/components/Icon.js +7 -7
- package/dist/components/Image.js +3 -3
- package/dist/components/Input.js +2 -2
- package/dist/components/InputMask.js +4 -4
- package/dist/components/InputPassword.js +113 -11
- package/dist/components/Label.js +5 -5
- package/dist/components/LanguageSelector.js +19 -9
- package/dist/components/Link.js +3 -3
- package/dist/components/List.js +45 -7
- package/dist/components/Loader.js +4 -4
- package/dist/components/Logo.js +38 -7
- package/dist/components/Menu.js +37 -9
- package/dist/components/MenuItem.js +5 -5
- package/dist/components/Modal.js +162 -10
- package/dist/components/Notification.js +42 -9
- package/dist/components/Overlay.js +3 -3
- package/dist/components/Page.js +3 -3
- package/dist/components/Pagination.js +99 -15
- package/dist/components/Panel.js +5 -5
- package/dist/components/Radio.js +4 -4
- package/dist/components/RangeSlider.js +50 -6
- package/dist/components/Response.js +79 -16
- package/dist/components/SVGContent.js +2 -2
- package/dist/components/ScrollOnDrag.js +5 -6
- package/dist/components/ScrollToView.js +58 -8
- package/dist/components/Scrollbar.js +2 -3
- package/dist/components/Search.js +124 -13
- package/dist/components/Segmented.js +92 -6
- package/dist/components/Select.js +38 -6674
- package/dist/components/SiteMenu.js +62 -12
- package/dist/components/Swiper.js +83 -7
- package/dist/components/Switch.js +2 -2
- package/dist/components/Tab.js +145 -11
- package/dist/components/Text.js +3 -3
- package/dist/components/Textarea.js +96 -5
- package/dist/components/Tile.js +52 -8
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +4 -4
- package/dist/components/Video.js +18 -4
- package/dist/components/Wrapper.js +45 -5
- package/dist/components.js +1 -95
- package/dist/context/Notifications.js +3 -3
- package/dist/context/UIContext.js +3 -3
- package/dist/css/components/Chips/Chips.css +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +1 -1
- package/dist/css/components/Notification/Notification.css +11 -0
- package/dist/css/components/Notification/css/__item/notification__item_status.css +11 -0
- package/dist/css/components/Swiper/Swiper.css +0 -3
- package/dist/{components → types/components}/Button/Button.interface.d.ts +2 -2
- package/dist/{components → types/components}/Cell/Cell.interface.d.ts +4 -4
- package/dist/{components → types/components}/Chips/Chips.interface.d.ts +3 -3
- package/dist/{components → types/components}/Dropdown/Dropdown.interface.d.ts +8 -8
- package/dist/{components → types/components}/Flex/Flex.interface.d.ts +5 -5
- package/dist/{cjs → types}/components/Group/Group.interface.d.ts +4 -4
- package/dist/{components → types/components}/HTMLContent/HTMLContent.interface.d.ts +4 -4
- package/dist/{cjs → types}/components/Label/Label.interface.d.ts +5 -5
- package/dist/{cjs → types}/components/Logo/Logo.interface.d.ts +3 -3
- package/dist/{cjs → types}/components/MenuItem/MenuItem.interface.d.ts +7 -7
- package/dist/{cjs → types}/components/Pagination/Pagination.d.ts +2 -2
- package/dist/{cjs → types}/components/Pagination/Pagination.interface.d.ts +14 -5
- package/dist/{components → types/components}/Panel/Panel.interface.d.ts +3 -3
- package/dist/{cjs → types}/components/Segmented/Segmented.interface.d.ts +3 -3
- package/dist/types/components/Select/SelectClearIndicator.d.ts +11 -0
- package/dist/types/components/Select/SelectContainer.d.ts +2 -0
- package/dist/types/components/Select/SelectControl.d.ts +11 -0
- package/dist/types/components/Select/SelectDropdownIndicator.d.ts +13 -0
- package/dist/types/components/Select/SelectGroupHeading.d.ts +7 -0
- package/dist/types/components/Select/SelectIndicatorsContainer.d.ts +4 -0
- package/dist/types/components/Select/SelectInput.d.ts +12 -0
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +7 -0
- package/dist/types/components/Select/SelectMenu.d.ts +11 -0
- package/dist/types/components/Select/SelectMultiValueContainer.d.ts +1 -0
- package/dist/types/components/Select/SelectMultiValueLabel.d.ts +4 -0
- package/dist/types/components/Select/SelectMultiValueRemove.d.ts +4 -0
- package/dist/types/components/Select/SelectNoOptions.d.ts +12 -0
- package/dist/types/components/Select/SelectOption.d.ts +16 -0
- package/dist/types/components/Select/SelectPlaceholder.d.ts +11 -0
- package/dist/types/components/Select/SelectSingleValue.d.ts +12 -0
- package/dist/types/components/Select/SelectValueContainer.d.ts +11 -0
- package/dist/types/components/Select/index.d.ts +20 -0
- package/dist/{cjs → types}/components/Swiper/Swiper.interface.d.ts +3 -3
- package/dist/{components → types/components}/Tab/Tab.interface.d.ts +8 -7
- package/dist/{components → types/components}/Text/Text.interface.d.ts +4 -4
- package/dist/{components → types/components}/Tile/Tile.interface.d.ts +6 -6
- package/dist/{components → types/components}/Title/Title.interface.d.ts +4 -4
- package/dist/{cjs → types}/components/Tooltip/Tooltip.interface.d.ts +3 -3
- package/dist/{components → types/components}/Wrapper/Wrapper.interface.d.ts +3 -3
- package/dist/types/context/Notifications.d.ts +19 -0
- package/dist/types/context/UIContext.d.ts +11 -0
- package/dist/types/hooks/styleAttributes.d.ts +2 -0
- package/dist/{cjs → types}/hooks/styleAttributes.interface.d.ts +2 -2
- package/dist/types/hooks/useDeviceTargetClass.d.ts +1 -0
- package/dist/types/hooks/useMediaQueries.d.ts +7 -0
- package/dist/types/hooks/useStyles.d.ts +1 -0
- package/dist/types/icons/index.d.ts +10 -0
- package/dist/types/types/componentProps/align.d.ts +1 -0
- package/dist/types/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/types/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/types/types/componentProps/textAlign.d.ts +1 -0
- package/dist/types/types/componentProps/textColorActive.d.ts +2 -0
- package/dist/types/types/componentProps/textWrap.d.ts +1 -0
- package/dist/{cjs → types}/types/index.d.ts +6 -6
- package/package.json +33 -35
- package/dist/Accordion-FIIzpSgl.js +0 -177
- package/dist/Avatar-DR2A8Na8.js +0 -31
- package/dist/Breadcrumbs-CDKi6gOC.js +0 -88
- package/dist/Button-CSzPxWyC.js +0 -90
- package/dist/Caption-DDh0VFPJ.js +0 -25
- package/dist/Card-CvW4Qozl.js +0 -28
- package/dist/Cell-3We_qMvM.js +0 -68
- package/dist/Checkbox-0h4YosTW.js +0 -87
- package/dist/Chips-Bd3ZFosY.js +0 -76
- package/dist/Choice-CeQ9Il98.js +0 -97
- package/dist/Code-1WUXVzfb.js +0 -272
- package/dist/ContextMenuItem-KPAQQHlQ.js +0 -46
- package/dist/CookiesWarning-B30eAOND.js +0 -52
- package/dist/DadataHintField-CHJLsVjJ.js +0 -1103
- package/dist/DatePicker-Bf7t1yiM.js +0 -14136
- package/dist/Dot-Bc0Ly45H.js +0 -34
- package/dist/Drawer-DkLkFSmD.js +0 -139
- package/dist/FlexItem-DHmKl6e7.js +0 -118
- package/dist/GridRow-DRjyNWBh.js +0 -149
- package/dist/HTMLContent-CgbJTAy4.js +0 -85
- package/dist/InputPassword-DYBnRCtc.js +0 -108
- package/dist/LanguageSelector-D0A-uqch.js +0 -14
- package/dist/ListItem-BoCF7VH9.js +0 -44
- package/dist/Logo-DCx_YOA2.js +0 -37
- package/dist/Menu-C-TIWZeb.js +0 -34
- package/dist/ModalLoader-4OS81u94.js +0 -161
- package/dist/NotificationList-CmXca2zs.js +0 -40
- package/dist/Pagination-BAbFsztK.js +0 -86
- package/dist/RangeSlider-BPFVikab.js +0 -50
- package/dist/Response-BMRzGa5t.js +0 -74
- package/dist/ScrollToView-W6XhacKJ.js +0 -1821
- package/dist/SearchResult-6Vg0m_NA.js +0 -120
- package/dist/Segmented-BM1p7Ubz.js +0 -92
- package/dist/SiteMenuButton-DsYMvX6W.js +0 -58
- package/dist/Swiper-CXjE6qZR.js +0 -5138
- package/dist/Switch-0BHqovLA.js +0 -12
- package/dist/SwitchField-DCwEVCVg.js +0 -98
- package/dist/TabGroup-BLB4Ymcx.js +0 -144
- package/dist/Textarea-D3XSuMEm.js +0 -96
- package/dist/Tile-CNnauNx6.js +0 -52
- package/dist/Video-0z4mNz4P.js +0 -18
- package/dist/Wrapper-CJTkVfsd.js +0 -45
- package/dist/cjs/Accordion-Ba4Use_H.js +0 -186
- package/dist/cjs/Avatar-BKK80aBG.js +0 -37
- package/dist/cjs/Breadcrumbs-B7F96CYT.js +0 -96
- package/dist/cjs/Button-DH5f_2bV.js +0 -98
- package/dist/cjs/Caption-f-OM1D-G.js +0 -31
- package/dist/cjs/Card-BhnTRJN5.js +0 -34
- package/dist/cjs/Cell-Bc4BC1e3.js +0 -74
- package/dist/cjs/Checkbox-C5EikmBn.js +0 -94
- package/dist/cjs/Chips-wl8WgeWZ.js +0 -83
- package/dist/cjs/Choice-DJOKyu8I.js +0 -105
- package/dist/cjs/Code-BJFoJBYh.js +0 -279
- package/dist/cjs/ContextMenuItem-CLU1xPrC.js +0 -53
- package/dist/cjs/CookiesWarning-C-6cEf16.js +0 -59
- package/dist/cjs/DadataHintField-z7Mw-xDn.js +0 -1111
- package/dist/cjs/DatePicker-4tMTL9Nx.js +0 -14160
- package/dist/cjs/Dot-CKWexdtn.js +0 -40
- package/dist/cjs/Drawer-AQqI18ra.js +0 -146
- package/dist/cjs/FlexItem-2KlvlTJY.js +0 -125
- package/dist/cjs/GridRow-CAqZZGge.js +0 -157
- package/dist/cjs/HTMLContent-4vI2pdQC.js +0 -91
- package/dist/cjs/InputPassword-CbrEhEJB.js +0 -115
- package/dist/cjs/LanguageSelector-DZC_wwP6.js +0 -20
- package/dist/cjs/ListItem-B5rYml7Y.js +0 -51
- package/dist/cjs/Logo-CsOCRB7d.js +0 -44
- package/dist/cjs/Menu-KYRzB912.js +0 -40
- package/dist/cjs/ModalLoader-DRt-18Tr.js +0 -170
- package/dist/cjs/NotificationList-DETpx50O.js +0 -48
- package/dist/cjs/Pagination-DuykmIqr.js +0 -94
- package/dist/cjs/RangeSlider-Dy53bTyY.js +0 -57
- package/dist/cjs/Response-CTawELy2.js +0 -82
- package/dist/cjs/ScrollToView-DPhR0AQC.js +0 -1831
- package/dist/cjs/SearchResult-CfZvZ2Rg.js +0 -129
- package/dist/cjs/Segmented-D9L6q-Sa.js +0 -100
- package/dist/cjs/SiteMenuButton-CC0QccWu.js +0 -65
- package/dist/cjs/Swiper-Zh5xaPu3.js +0 -5145
- package/dist/cjs/Switch-K1p9h3aF.js +0 -19
- package/dist/cjs/SwitchField-C31Nbyyn.js +0 -108
- package/dist/cjs/TabGroup-BKWkofWW.js +0 -153
- package/dist/cjs/Textarea-tng0D_n7.js +0 -103
- package/dist/cjs/Tile-bPw3x_en.js +0 -58
- package/dist/cjs/Video-B_xqvgag.js +0 -24
- package/dist/cjs/Wrapper-DravIzND.js +0 -51
- package/dist/cjs/components/Button/Button.interface.d.ts +0 -77
- package/dist/cjs/components/Cell/Cell.interface.d.ts +0 -62
- package/dist/cjs/components/Chips/Chips.interface.d.ts +0 -44
- package/dist/cjs/components/Dropdown/Dropdown.interface.d.ts +0 -73
- package/dist/cjs/components/Flex/Flex.interface.d.ts +0 -120
- package/dist/cjs/components/HTMLContent/HTMLContent.interface.d.ts +0 -30
- package/dist/cjs/components/Panel/Panel.interface.d.ts +0 -56
- package/dist/cjs/components/Tab/Tab.interface.d.ts +0 -79
- package/dist/cjs/components/Text/Text.interface.d.ts +0 -54
- package/dist/cjs/components/Tile/Tile.interface.d.ts +0 -37
- package/dist/cjs/components/Title/Title.interface.d.ts +0 -50
- package/dist/cjs/components/Wrapper/Wrapper.interface.d.ts +0 -20
- package/dist/cjs/components/index.d.ts +0 -60
- package/dist/cjs/context/index.d.ts +0 -2
- package/dist/cjs/floating-ui.dom-ma2MDAMT.js +0 -1431
- package/dist/cjs/hooks/index.d.ts +0 -3
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/jsx-runtime-BBxmckJR.js +0 -1377
- package/dist/cjs/types/componentProps/align.d.ts +0 -1
- package/dist/cjs/types/componentProps/alignDirection.d.ts +0 -1
- package/dist/cjs/types/componentProps/justifyContent.d.ts +0 -1
- package/dist/cjs/types/componentProps/textAlign.d.ts +0 -1
- package/dist/cjs/types/componentProps/textColorActive.d.ts +0 -2
- package/dist/cjs/types/componentProps/textWrap.d.ts +0 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -8
- package/dist/components/Accordion/Accordion.interface.d.ts +0 -70
- package/dist/components/Accordion/AccordionItem.d.ts +0 -8
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.interface.d.ts +0 -29
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -10
- package/dist/components/Badge/Badge.interface.d.ts +0 -33
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.d.ts +0 -71
- package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -8
- package/dist/components/Breadcrumbs/index.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -5
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Caption/Caption.d.ts +0 -3
- package/dist/components/Caption/Caption.interface.d.ts +0 -21
- package/dist/components/Caption/index.d.ts +0 -1
- package/dist/components/Card/Card.d.ts +0 -13
- package/dist/components/Card/Card.interface.d.ts +0 -29
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Cell/Cell.d.ts +0 -9
- package/dist/components/Cell/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/Checkbox/Checkbox.interface.d.ts +0 -56
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/Chips/Chips.d.ts +0 -4
- package/dist/components/Chips/index.d.ts +0 -1
- package/dist/components/Choice/Choice.d.ts +0 -5
- package/dist/components/Choice/Choice.interface.d.ts +0 -59
- package/dist/components/Choice/index.d.ts +0 -1
- package/dist/components/Code/Code.d.ts +0 -21
- package/dist/components/Code/Code.interface.d.ts +0 -33
- package/dist/components/Code/index.d.ts +0 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +0 -8
- package/dist/components/ContextMenu/ContextMenu.interface.d.ts +0 -36
- package/dist/components/ContextMenu/ContextMenuItem.d.ts +0 -3
- package/dist/components/ContextMenu/index.d.ts +0 -3
- package/dist/components/CookiesWarning/CookiesWarning.d.ts +0 -10
- package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +0 -16
- package/dist/components/CookiesWarning/index.d.ts +0 -2
- package/dist/components/DadataHintField/DadataHintField.d.ts +0 -3
- package/dist/components/DadataHintField/DadataHintField.interface.d.ts +0 -14
- package/dist/components/DadataHintField/index.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -3
- package/dist/components/DatePicker/DatePicker.interface.d.ts +0 -100
- package/dist/components/DatePicker/index.d.ts +0 -1
- package/dist/components/Divider/Divider.d.ts +0 -8
- package/dist/components/Divider/Divider.interface.d.ts +0 -31
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Dot/Dot.d.ts +0 -6
- package/dist/components/Dot/Dot.interface.d.ts +0 -27
- package/dist/components/Dot/index.d.ts +0 -1
- package/dist/components/Drawer/Drawer.d.ts +0 -3
- package/dist/components/Drawer/Drawer.interface.d.ts +0 -16
- package/dist/components/Drawer/index.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +0 -10
- package/dist/components/Dropdown/DropdownItem.d.ts +0 -10
- package/dist/components/Dropdown/index.d.ts +0 -3
- package/dist/components/Flex/Flex.d.ts +0 -8
- package/dist/components/Flex/FlexItem.d.ts +0 -8
- package/dist/components/Flex/index.d.ts +0 -3
- package/dist/components/FormField/ChoiceField.d.ts +0 -8
- package/dist/components/FormField/FormField.d.ts +0 -9
- package/dist/components/FormField/FormFiled.interface.d.ts +0 -77
- package/dist/components/FormField/PasswordField.d.ts +0 -9
- package/dist/components/FormField/SelectField.d.ts +0 -9
- package/dist/components/FormField/SwitchField.d.ts +0 -8
- package/dist/components/FormField/index.d.ts +0 -6
- package/dist/components/Grid/Grid.d.ts +0 -8
- package/dist/components/Grid/Grid.interface.d.ts +0 -142
- package/dist/components/Grid/GridItem.d.ts +0 -3
- package/dist/components/Grid/GridRow.d.ts +0 -8
- package/dist/components/Grid/index.d.ts +0 -4
- package/dist/components/Group/Group.d.ts +0 -9
- package/dist/components/Group/Group.interface.d.ts +0 -53
- package/dist/components/Group/index.d.ts +0 -1
- package/dist/components/HTMLContent/HTMLContent.d.ts +0 -3
- package/dist/components/HTMLContent/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -5
- package/dist/components/Icon/Icon.interface.d.ts +0 -93
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Image/Image.d.ts +0 -3
- package/dist/components/Image/Image.interface.d.ts +0 -34
- package/dist/components/Image/index.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +0 -5
- package/dist/components/Input/Input.interface.d.ts +0 -51
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/InputMask/Input.d.ts +0 -5
- package/dist/components/InputMask/Input.interface.d.ts +0 -53
- package/dist/components/InputMask/index.d.ts +0 -1
- package/dist/components/InputPassword/InputPassword.d.ts +0 -10
- package/dist/components/InputPassword/InputPassword.interface.d.ts +0 -52
- package/dist/components/InputPassword/index.d.ts +0 -1
- package/dist/components/Label/Label.d.ts +0 -9
- package/dist/components/Label/Label.interface.d.ts +0 -58
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/LanguageSelector/Label.interface.d.ts +0 -20
- package/dist/components/LanguageSelector/LanguageSelector.d.ts +0 -3
- package/dist/components/LanguageSelector/index.d.ts +0 -1
- package/dist/components/Link/Link.d.ts +0 -11
- package/dist/components/Link/Link.interface.d.ts +0 -61
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/List/List.d.ts +0 -3
- package/dist/components/List/List.interface.d.ts +0 -28
- package/dist/components/List/ListItem.d.ts +0 -3
- package/dist/components/List/index.d.ts +0 -3
- package/dist/components/Loader/Loader.d.ts +0 -4
- package/dist/components/Loader/Loader.interface.d.ts +0 -30
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Logo/Logo.d.ts +0 -4
- package/dist/components/Logo/Logo.interface.d.ts +0 -37
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/Menu/Menu.d.ts +0 -8
- package/dist/components/Menu/Menu.interface.d.ts +0 -20
- package/dist/components/Menu/index.d.ts +0 -1
- package/dist/components/MenuItem/MenuItem.d.ts +0 -11
- package/dist/components/MenuItem/MenuItem.interface.d.ts +0 -65
- package/dist/components/MenuItem/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/Modal.interface.d.ts +0 -33
- package/dist/components/Modal/ModalLoader.d.ts +0 -3
- package/dist/components/Modal/index.d.ts +0 -3
- package/dist/components/Notification/Notification.interface.d.ts +0 -49
- package/dist/components/Notification/NotificationItem.d.ts +0 -10
- package/dist/components/Notification/NotificationList.d.ts +0 -3
- package/dist/components/Notification/index.d.ts +0 -3
- package/dist/components/Overlay/Overlay.d.ts +0 -3
- package/dist/components/Overlay/Overlay.interface.d.ts +0 -12
- package/dist/components/Overlay/index.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -13
- package/dist/components/Pagination/Pagination.interface.d.ts +0 -46
- package/dist/components/Pagination/index.d.ts +0 -1
- package/dist/components/Panel/Panel.d.ts +0 -7
- package/dist/components/Panel/index.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -10
- package/dist/components/Radio/Radio.interface.d.ts +0 -53
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/RangeSlider/RangeSlider.d.ts +0 -3
- package/dist/components/RangeSlider/RangeSlider.interface.d.ts +0 -28
- package/dist/components/RangeSlider/index.d.ts +0 -1
- package/dist/components/Response/Response.d.ts +0 -4
- package/dist/components/Response/Response.interface.d.ts +0 -66
- package/dist/components/Response/index.d.ts +0 -1
- package/dist/components/SVGContent/SVGContent.d.ts +0 -3
- package/dist/components/SVGContent/SVGContent.interface.d.ts +0 -11
- package/dist/components/SVGContent/index.d.ts +0 -1
- package/dist/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -8
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +0 -18
- package/dist/components/ScrollOnDrag/index.d.ts +0 -1
- package/dist/components/ScrollToView/ScrollToView.d.ts +0 -2
- package/dist/components/ScrollToView/index.d.ts +0 -1
- package/dist/components/Scrollbar/Scrollbar.d.ts +0 -8
- package/dist/components/Scrollbar/Scrollbar.interface.d.ts +0 -10
- package/dist/components/Scrollbar/index.d.ts +0 -1
- package/dist/components/Search/Search.interface.d.ts +0 -69
- package/dist/components/Search/SearchInput.d.ts +0 -5
- package/dist/components/Search/SearchResult.d.ts +0 -4
- package/dist/components/Search/index.d.ts +0 -3
- package/dist/components/Segmented/Segmented.d.ts +0 -5
- package/dist/components/Segmented/Segmented.interface.d.ts +0 -42
- package/dist/components/Segmented/index.d.ts +0 -1
- package/dist/components/SiteMenu/SiteMenu.d.ts +0 -3
- package/dist/components/SiteMenu/SiteMenu.interface.d.ts +0 -23
- package/dist/components/SiteMenu/SiteMenuButton.d.ts +0 -3
- package/dist/components/SiteMenu/index.d.ts +0 -3
- package/dist/components/Swiper/Swiper.d.ts +0 -9
- package/dist/components/Swiper/Swiper.interface.d.ts +0 -58
- package/dist/components/Swiper/index.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -4
- package/dist/components/Switch/Switch.interface.d.ts +0 -10
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -11
- package/dist/components/Tab/TabGroup.d.ts +0 -3
- package/dist/components/Tab/index.d.ts +0 -3
- package/dist/components/Text/Text.d.ts +0 -9
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -9
- package/dist/components/Textarea/Textarea.interface.d.ts +0 -44
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Tile/Tile.d.ts +0 -9
- package/dist/components/Tile/index.d.ts +0 -1
- package/dist/components/Title/Title.d.ts +0 -9
- package/dist/components/Title/index.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +0 -5
- package/dist/components/Tooltip/Tooltip.interface.d.ts +0 -44
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/Video/Video.d.ts +0 -3
- package/dist/components/Video/Video.interface.d.ts +0 -15
- package/dist/components/Video/index.d.ts +0 -1
- package/dist/components/Wrapper/Wrapper.d.ts +0 -9
- package/dist/components/Wrapper/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -60
- package/dist/context/index.d.ts +0 -2
- package/dist/floating-ui.dom-BV5qw-HP.js +0 -1423
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/styleAttributes.interface.d.ts +0 -161
- package/dist/index.d.ts +0 -4
- package/dist/jsx-runtime-C2uP7l8s.js +0 -1371
- package/dist/types/componentProps/align.d.ts +0 -1
- package/dist/types/componentProps/alignDirection.d.ts +0 -1
- package/dist/types/componentProps/alignment.d.ts +0 -1
- package/dist/types/componentProps/appearanceKeys.d.ts +0 -1
- package/dist/types/componentProps/borderColor.d.ts +0 -1
- package/dist/types/componentProps/borderColorHover.d.ts +0 -1
- package/dist/types/componentProps/borderType.d.ts +0 -1
- package/dist/types/componentProps/borderWidth.d.ts +0 -1
- package/dist/types/componentProps/captionPosition.d.ts +0 -1
- package/dist/types/componentProps/direction.d.ts +0 -1
- package/dist/types/componentProps/elevation.d.ts +0 -1
- package/dist/types/componentProps/emojiSize.d.ts +0 -1
- package/dist/types/componentProps/fill.d.ts +0 -1
- package/dist/types/componentProps/fillGradient.d.ts +0 -1
- package/dist/types/componentProps/fillHover.d.ts +0 -1
- package/dist/types/componentProps/fillType.d.ts +0 -1
- package/dist/types/componentProps/flexAlign.d.ts +0 -1
- package/dist/types/componentProps/flexGrow.d.ts +0 -1
- package/dist/types/componentProps/flexJustifyContent.d.ts +0 -1
- package/dist/types/componentProps/flexWrap.d.ts +0 -1
- package/dist/types/componentProps/gridAlign.d.ts +0 -1
- package/dist/types/componentProps/gridAlignSelf.d.ts +0 -1
- package/dist/types/componentProps/gridJustifyItems.d.ts +0 -1
- package/dist/types/componentProps/gridJustifySelf.d.ts +0 -1
- package/dist/types/componentProps/height.d.ts +0 -1
- package/dist/types/componentProps/horizontalContentAlign.d.ts +0 -1
- package/dist/types/componentProps/horizontalResizeMode.d.ts +0 -1
- package/dist/types/componentProps/iconFillSize.d.ts +0 -1
- package/dist/types/componentProps/iconSize.d.ts +0 -1
- package/dist/types/componentProps/itemColor.d.ts +0 -1
- package/dist/types/componentProps/justifyContent.d.ts +0 -1
- package/dist/types/componentProps/overflow.d.ts +0 -1
- package/dist/types/componentProps/position.d.ts +0 -1
- package/dist/types/componentProps/resizeMode.d.ts +0 -1
- package/dist/types/componentProps/shape.d.ts +0 -1
- package/dist/types/componentProps/size.d.ts +0 -1
- package/dist/types/componentProps/sizeInterface.d.ts +0 -1
- package/dist/types/componentProps/sizePX.d.ts +0 -1
- package/dist/types/componentProps/stacking.d.ts +0 -1
- package/dist/types/componentProps/state.d.ts +0 -1
- package/dist/types/componentProps/stateKeys.d.ts +0 -1
- package/dist/types/componentProps/svgFill.d.ts +0 -1
- package/dist/types/componentProps/textAlign.d.ts +0 -1
- package/dist/types/componentProps/textColor.d.ts +0 -1
- package/dist/types/componentProps/textColorActive.d.ts +0 -2
- package/dist/types/componentProps/textColorHover.d.ts +0 -1
- package/dist/types/componentProps/textGradient.d.ts +0 -1
- package/dist/types/componentProps/textSize.d.ts +0 -1
- package/dist/types/componentProps/textStyle.d.ts +0 -1
- package/dist/types/componentProps/textTag.d.ts +0 -1
- package/dist/types/componentProps/textWeight.d.ts +0 -1
- package/dist/types/componentProps/textWrap.d.ts +0 -1
- package/dist/types/componentProps/titleSize.d.ts +0 -1
- package/dist/types/componentProps/type.d.ts +0 -1
- package/dist/types/componentProps/underline.d.ts +0 -1
- package/dist/types/componentProps/verticalContentAlign.d.ts +0 -1
- package/dist/types/componentProps/verticalResizeMode.d.ts +0 -1
- package/dist/types/componentProps/width.d.ts +0 -1
- package/dist/types/componentProps/wrap.d.ts +0 -1
- package/dist/types/index.d.ts +0 -57
- /package/dist/{cjs/_tslib-CKiUdo7p.js → tslib.es6-CKiUdo7p.js} +0 -0
- /package/dist/{_tslib-S-VPg1Cw.js → tslib.es6-S-VPg1Cw.js} +0 -0
- /package/dist/{cjs → types}/components/Accordion/Accordion.d.ts +0 -0
- /package/dist/{cjs → types}/components/Accordion/Accordion.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Accordion/AccordionItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Accordion/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Avatar/Avatar.d.ts +0 -0
- /package/dist/{cjs → types}/components/Avatar/Avatar.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Avatar/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Badge/Badge.d.ts +0 -0
- /package/dist/{cjs → types}/components/Badge/Badge.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Badge/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{cjs → types}/components/Breadcrumbs/Breadcrumbs.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Button/Button.d.ts +0 -0
- /package/dist/{cjs → types}/components/Button/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Caption/Caption.d.ts +0 -0
- /package/dist/{cjs → types}/components/Caption/Caption.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Caption/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Card/Card.d.ts +0 -0
- /package/dist/{cjs → types}/components/Card/Card.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Card/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Cell/Cell.d.ts +0 -0
- /package/dist/{cjs → types}/components/Cell/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{cjs → types}/components/Checkbox/Checkbox.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Checkbox/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Chips/Chips.d.ts +0 -0
- /package/dist/{cjs → types}/components/Chips/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Choice/Choice.d.ts +0 -0
- /package/dist/{cjs → types}/components/Choice/Choice.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Choice/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Code/Code.d.ts +0 -0
- /package/dist/{cjs → types}/components/Code/Code.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Code/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/ContextMenu/ContextMenu.d.ts +0 -0
- /package/dist/{cjs → types}/components/ContextMenu/ContextMenu.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/ContextMenu/ContextMenuItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/ContextMenu/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/CookiesWarning/CookiesWarning.d.ts +0 -0
- /package/dist/{cjs → types}/components/CookiesWarning/CookiesWarning.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/CookiesWarning/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/DadataHintField/DadataHintField.d.ts +0 -0
- /package/dist/{cjs → types}/components/DadataHintField/DadataHintField.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/DadataHintField/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/DatePicker/DatePicker.d.ts +0 -0
- /package/dist/{cjs → types}/components/DatePicker/DatePicker.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/DatePicker/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Divider/Divider.d.ts +0 -0
- /package/dist/{cjs → types}/components/Divider/Divider.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Divider/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dot/Dot.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dot/Dot.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dot/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Drawer/Drawer.d.ts +0 -0
- /package/dist/{cjs → types}/components/Drawer/Drawer.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Drawer/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dropdown/Dropdown.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dropdown/DropdownItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Dropdown/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Flex/Flex.d.ts +0 -0
- /package/dist/{cjs → types}/components/Flex/FlexItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Flex/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/ChoiceField.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/FormField.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/FormFiled.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/PasswordField.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/SelectField.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/SwitchField.d.ts +0 -0
- /package/dist/{cjs → types}/components/FormField/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Grid/Grid.d.ts +0 -0
- /package/dist/{cjs → types}/components/Grid/Grid.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Grid/GridItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Grid/GridRow.d.ts +0 -0
- /package/dist/{cjs → types}/components/Grid/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Group/Group.d.ts +0 -0
- /package/dist/{cjs → types}/components/Group/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/HTMLContent/HTMLContent.d.ts +0 -0
- /package/dist/{cjs → types}/components/HTMLContent/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Icon/Icon.d.ts +0 -0
- /package/dist/{cjs → types}/components/Icon/Icon.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Icon/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Image/Image.d.ts +0 -0
- /package/dist/{cjs → types}/components/Image/Image.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Image/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Input/Input.d.ts +0 -0
- /package/dist/{cjs → types}/components/Input/Input.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Input/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputMask/Input.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputMask/Input.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputMask/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputPassword/InputPassword.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputPassword/InputPassword.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/InputPassword/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Label/Label.d.ts +0 -0
- /package/dist/{cjs → types}/components/Label/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/LanguageSelector/Label.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/LanguageSelector/LanguageSelector.d.ts +0 -0
- /package/dist/{cjs → types}/components/LanguageSelector/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Link/Link.d.ts +0 -0
- /package/dist/{cjs → types}/components/Link/Link.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Link/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/List/List.d.ts +0 -0
- /package/dist/{cjs → types}/components/List/List.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/List/ListItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/List/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Loader/Loader.d.ts +0 -0
- /package/dist/{cjs → types}/components/Loader/Loader.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Loader/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Logo/Logo.d.ts +0 -0
- /package/dist/{cjs → types}/components/Logo/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Menu/Menu.d.ts +0 -0
- /package/dist/{cjs → types}/components/Menu/Menu.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Menu/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/MenuItem/MenuItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/MenuItem/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Modal/Modal.d.ts +0 -0
- /package/dist/{cjs → types}/components/Modal/Modal.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Modal/ModalLoader.d.ts +0 -0
- /package/dist/{cjs → types}/components/Modal/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Notification/Notification.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Notification/NotificationItem.d.ts +0 -0
- /package/dist/{cjs → types}/components/Notification/NotificationList.d.ts +0 -0
- /package/dist/{cjs → types}/components/Notification/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Overlay/Overlay.d.ts +0 -0
- /package/dist/{cjs → types}/components/Overlay/Overlay.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Overlay/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Pagination/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Panel/Panel.d.ts +0 -0
- /package/dist/{cjs → types}/components/Panel/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Radio/Radio.d.ts +0 -0
- /package/dist/{cjs → types}/components/Radio/Radio.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Radio/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/RangeSlider/RangeSlider.d.ts +0 -0
- /package/dist/{cjs → types}/components/RangeSlider/RangeSlider.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/RangeSlider/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Response/Response.d.ts +0 -0
- /package/dist/{cjs → types}/components/Response/Response.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Response/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/SVGContent/SVGContent.d.ts +0 -0
- /package/dist/{cjs → types}/components/SVGContent/SVGContent.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/SVGContent/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -0
- /package/dist/{cjs → types}/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/ScrollOnDrag/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/ScrollToView/ScrollToView.d.ts +0 -0
- /package/dist/{cjs → types}/components/ScrollToView/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Scrollbar/Scrollbar.d.ts +0 -0
- /package/dist/{cjs → types}/components/Scrollbar/Scrollbar.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Scrollbar/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Search/Search.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Search/SearchInput.d.ts +0 -0
- /package/dist/{cjs → types}/components/Search/SearchResult.d.ts +0 -0
- /package/dist/{cjs → types}/components/Search/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Segmented/Segmented.d.ts +0 -0
- /package/dist/{cjs → types}/components/Segmented/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/SiteMenu/SiteMenu.d.ts +0 -0
- /package/dist/{cjs → types}/components/SiteMenu/SiteMenu.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/SiteMenu/SiteMenuButton.d.ts +0 -0
- /package/dist/{cjs → types}/components/SiteMenu/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Swiper/Swiper.d.ts +0 -0
- /package/dist/{cjs → types}/components/Swiper/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Switch/Switch.d.ts +0 -0
- /package/dist/{cjs → types}/components/Switch/Switch.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Switch/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tab/Tab.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tab/TabGroup.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tab/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Text/Text.d.ts +0 -0
- /package/dist/{cjs → types}/components/Text/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Textarea/Textarea.d.ts +0 -0
- /package/dist/{cjs → types}/components/Textarea/Textarea.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Textarea/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tile/Tile.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tile/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Title/Title.d.ts +0 -0
- /package/dist/{cjs → types}/components/Title/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{cjs → types}/components/Tooltip/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Video/Video.d.ts +0 -0
- /package/dist/{cjs → types}/components/Video/Video.interface.d.ts +0 -0
- /package/dist/{cjs → types}/components/Video/index.d.ts +0 -0
- /package/dist/{cjs → types}/components/Wrapper/Wrapper.d.ts +0 -0
- /package/dist/{cjs → types}/components/Wrapper/index.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/alignment.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/appearanceKeys.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/borderColor.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/borderColorHover.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/borderType.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/borderWidth.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/captionPosition.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/direction.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/elevation.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/emojiSize.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/fill.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/fillGradient.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/fillHover.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/fillType.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/flexAlign.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/flexGrow.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/flexJustifyContent.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/flexWrap.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/gridAlign.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/gridAlignSelf.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/gridJustifyItems.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/gridJustifySelf.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/height.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/horizontalContentAlign.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/horizontalResizeMode.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/iconFillSize.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/iconSize.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/itemColor.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/overflow.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/position.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/resizeMode.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/shape.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/size.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/sizeInterface.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/sizePX.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/stacking.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/state.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/stateKeys.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/svgFill.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textColor.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textColorHover.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textGradient.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textSize.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textStyle.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textTag.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/textWeight.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/titleSize.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/type.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/underline.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/verticalContentAlign.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/verticalResizeMode.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/width.d.ts +0 -0
- /package/dist/{cjs → types}/types/componentProps/wrap.d.ts +0 -0
|
@@ -1,1831 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
|
-
var React$1 = require('react');
|
|
6
|
-
var require$$0 = require('lodash.throttle');
|
|
7
|
-
var PropTypes$1 = require('prop-types');
|
|
8
|
-
var ReactDOM = require('react-dom');
|
|
9
|
-
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
10
|
-
var useStyles = require('./hooks/useStyles.js');
|
|
11
|
-
|
|
12
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefault(React$1);
|
|
16
|
-
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
17
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes$1);
|
|
18
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
|
|
19
|
-
|
|
20
|
-
var modules = {};
|
|
21
|
-
|
|
22
|
-
var Link = {};
|
|
23
|
-
|
|
24
|
-
var scrollLink = {};
|
|
25
|
-
|
|
26
|
-
var scrollSpy$2 = {};
|
|
27
|
-
|
|
28
|
-
var passiveEventListeners = {};
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(passiveEventListeners, "__esModule", {
|
|
31
|
-
value: true
|
|
32
|
-
});
|
|
33
|
-
/*
|
|
34
|
-
* Tell the browser that the event listener won't prevent a scroll.
|
|
35
|
-
* Allowing the browser to continue scrolling without having to
|
|
36
|
-
* to wait for the listener to return.
|
|
37
|
-
*/
|
|
38
|
-
passiveEventListeners.addPassiveEventListener = function addPassiveEventListener(target, eventName, listener) {
|
|
39
|
-
var listenerName = listener.name;
|
|
40
|
-
if (!listenerName) {
|
|
41
|
-
listenerName = eventName;
|
|
42
|
-
console.warn('Listener must be a named function.');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (!attachedListeners.has(eventName)) attachedListeners.set(eventName, new Set());
|
|
46
|
-
var listeners = attachedListeners.get(eventName);
|
|
47
|
-
if (listeners.has(listenerName)) return;
|
|
48
|
-
|
|
49
|
-
var supportsPassiveOption = function () {
|
|
50
|
-
var supportsPassiveOption = false;
|
|
51
|
-
try {
|
|
52
|
-
var opts = Object.defineProperty({}, 'passive', {
|
|
53
|
-
get: function get() {
|
|
54
|
-
supportsPassiveOption = true;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
window.addEventListener('test', null, opts);
|
|
58
|
-
} catch (e) {}
|
|
59
|
-
return supportsPassiveOption;
|
|
60
|
-
}();
|
|
61
|
-
target.addEventListener(eventName, listener, supportsPassiveOption ? { passive: true } : false);
|
|
62
|
-
listeners.add(listenerName);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
passiveEventListeners.removePassiveEventListener = function removePassiveEventListener(target, eventName, listener) {
|
|
66
|
-
target.removeEventListener(eventName, listener);
|
|
67
|
-
attachedListeners.get(eventName).delete(listener.name || eventName);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
var attachedListeners = new Map();
|
|
71
|
-
|
|
72
|
-
Object.defineProperty(scrollSpy$2, "__esModule", {
|
|
73
|
-
value: true
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
var _lodash = require$$0__default.default;
|
|
77
|
-
|
|
78
|
-
var _lodash2 = _interopRequireDefault$9(_lodash);
|
|
79
|
-
|
|
80
|
-
var _passiveEventListeners$1 = passiveEventListeners;
|
|
81
|
-
|
|
82
|
-
function _interopRequireDefault$9(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
83
|
-
|
|
84
|
-
// The eventHandler will execute at a rate of 15fps by default
|
|
85
|
-
var eventThrottler = function eventThrottler(eventHandler) {
|
|
86
|
-
var throttleAmount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 66;
|
|
87
|
-
return (0, _lodash2.default)(eventHandler, throttleAmount);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
var scrollSpy$1 = {
|
|
91
|
-
|
|
92
|
-
spyCallbacks: [],
|
|
93
|
-
spySetState: [],
|
|
94
|
-
scrollSpyContainers: [],
|
|
95
|
-
|
|
96
|
-
mount: function mount(scrollSpyContainer, throttle) {
|
|
97
|
-
if (scrollSpyContainer) {
|
|
98
|
-
var eventHandler = eventThrottler(function (event) {
|
|
99
|
-
scrollSpy$1.scrollHandler(scrollSpyContainer);
|
|
100
|
-
}, throttle);
|
|
101
|
-
scrollSpy$1.scrollSpyContainers.push(scrollSpyContainer);
|
|
102
|
-
(0, _passiveEventListeners$1.addPassiveEventListener)(scrollSpyContainer, 'scroll', eventHandler);
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
isMounted: function isMounted(scrollSpyContainer) {
|
|
106
|
-
return scrollSpy$1.scrollSpyContainers.indexOf(scrollSpyContainer) !== -1;
|
|
107
|
-
},
|
|
108
|
-
currentPositionX: function currentPositionX(scrollSpyContainer) {
|
|
109
|
-
if (scrollSpyContainer === document) {
|
|
110
|
-
var supportPageOffset = window.pageYOffset !== undefined;
|
|
111
|
-
var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
|
|
112
|
-
return supportPageOffset ? window.pageXOffset : isCSS1Compat ? document.documentElement.scrollLeft : document.body.scrollLeft;
|
|
113
|
-
} else {
|
|
114
|
-
return scrollSpyContainer.scrollLeft;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
currentPositionY: function currentPositionY(scrollSpyContainer) {
|
|
118
|
-
if (scrollSpyContainer === document) {
|
|
119
|
-
var supportPageOffset = window.pageXOffset !== undefined;
|
|
120
|
-
var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
|
|
121
|
-
return supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;
|
|
122
|
-
} else {
|
|
123
|
-
return scrollSpyContainer.scrollTop;
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
scrollHandler: function scrollHandler(scrollSpyContainer) {
|
|
127
|
-
var callbacks = scrollSpy$1.scrollSpyContainers[scrollSpy$1.scrollSpyContainers.indexOf(scrollSpyContainer)].spyCallbacks || [];
|
|
128
|
-
callbacks.forEach(function (c) {
|
|
129
|
-
return c(scrollSpy$1.currentPositionX(scrollSpyContainer), scrollSpy$1.currentPositionY(scrollSpyContainer));
|
|
130
|
-
});
|
|
131
|
-
},
|
|
132
|
-
addStateHandler: function addStateHandler(handler) {
|
|
133
|
-
scrollSpy$1.spySetState.push(handler);
|
|
134
|
-
},
|
|
135
|
-
addSpyHandler: function addSpyHandler(handler, scrollSpyContainer) {
|
|
136
|
-
var container = scrollSpy$1.scrollSpyContainers[scrollSpy$1.scrollSpyContainers.indexOf(scrollSpyContainer)];
|
|
137
|
-
|
|
138
|
-
if (!container.spyCallbacks) {
|
|
139
|
-
container.spyCallbacks = [];
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
container.spyCallbacks.push(handler);
|
|
143
|
-
|
|
144
|
-
handler(scrollSpy$1.currentPositionX(scrollSpyContainer), scrollSpy$1.currentPositionY(scrollSpyContainer));
|
|
145
|
-
},
|
|
146
|
-
updateStates: function updateStates() {
|
|
147
|
-
scrollSpy$1.spySetState.forEach(function (s) {
|
|
148
|
-
return s();
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
unmount: function unmount(stateHandler, spyHandler) {
|
|
152
|
-
scrollSpy$1.scrollSpyContainers.forEach(function (c) {
|
|
153
|
-
return c.spyCallbacks && c.spyCallbacks.length && c.spyCallbacks.indexOf(spyHandler) > -1 && c.spyCallbacks.splice(c.spyCallbacks.indexOf(spyHandler), 1);
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
if (scrollSpy$1.spySetState && scrollSpy$1.spySetState.length && scrollSpy$1.spySetState.indexOf(stateHandler) > -1) {
|
|
157
|
-
scrollSpy$1.spySetState.splice(scrollSpy$1.spySetState.indexOf(stateHandler), 1);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
document.removeEventListener('scroll', scrollSpy$1.scrollHandler);
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
update: function update() {
|
|
165
|
-
return scrollSpy$1.scrollSpyContainers.forEach(function (c) {
|
|
166
|
-
return scrollSpy$1.scrollHandler(c);
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
scrollSpy$2.default = scrollSpy$1;
|
|
172
|
-
|
|
173
|
-
var scroller = {};
|
|
174
|
-
|
|
175
|
-
var utils = {};
|
|
176
|
-
|
|
177
|
-
Object.defineProperty(utils, "__esModule", {
|
|
178
|
-
value: true
|
|
179
|
-
});
|
|
180
|
-
var updateHash = function updateHash(hash, historyUpdate) {
|
|
181
|
-
var hashVal = hash.indexOf("#") === 0 ? hash.substring(1) : hash;
|
|
182
|
-
var hashToUpdate = hashVal ? "#" + hashVal : "";
|
|
183
|
-
var curLoc = window && window.location;
|
|
184
|
-
var urlToPush = hashToUpdate ? curLoc.pathname + curLoc.search + hashToUpdate : curLoc.pathname + curLoc.search;
|
|
185
|
-
historyUpdate ? history.pushState(history.state, "", urlToPush) : history.replaceState(history.state, "", urlToPush);
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
var getHash = function getHash() {
|
|
189
|
-
return window.location.hash.replace(/^#/, "");
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
var filterElementInContainer = function filterElementInContainer(container) {
|
|
193
|
-
return function (element) {
|
|
194
|
-
return container.contains ? container != element && container.contains(element) : !!(container.compareDocumentPosition(element) & 16);
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
var isPositioned = function isPositioned(element) {
|
|
199
|
-
return getComputedStyle(element).position !== "static";
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
var getElementOffsetInfoUntil = function getElementOffsetInfoUntil(element, predicate) {
|
|
203
|
-
var offsetTop = element.offsetTop;
|
|
204
|
-
var currentOffsetParent = element.offsetParent;
|
|
205
|
-
|
|
206
|
-
while (currentOffsetParent && !predicate(currentOffsetParent)) {
|
|
207
|
-
offsetTop += currentOffsetParent.offsetTop;
|
|
208
|
-
currentOffsetParent = currentOffsetParent.offsetParent;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return { offsetTop: offsetTop, offsetParent: currentOffsetParent };
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
var scrollOffset = function scrollOffset(c, t, horizontal) {
|
|
215
|
-
if (horizontal) {
|
|
216
|
-
return c === document ? t.getBoundingClientRect().left + (window.scrollX || window.pageXOffset) : getComputedStyle(c).position !== "static" ? t.offsetLeft : t.offsetLeft - c.offsetLeft;
|
|
217
|
-
} else {
|
|
218
|
-
if (c === document) {
|
|
219
|
-
return t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// The offsetParent of an element, according to MDN, is its nearest positioned
|
|
223
|
-
// (an element whose position is anything other than static) ancestor. The offsetTop
|
|
224
|
-
// of an element is taken with respect to its offsetParent which may not neccessarily
|
|
225
|
-
// be its parentElement except the parent itself is positioned.
|
|
226
|
-
|
|
227
|
-
// So if containerElement is positioned, then it must be an offsetParent somewhere
|
|
228
|
-
// If it happens that targetElement is a descendant of the containerElement, and there
|
|
229
|
-
// is not intermediate positioned element between the two of them, i.e.
|
|
230
|
-
// targetElement"s offsetParent is the same as the containerElement, then the
|
|
231
|
-
// distance between the two will be the offsetTop of the targetElement.
|
|
232
|
-
// If, on the other hand, there are intermediate positioned elements between the
|
|
233
|
-
// two entities, the distance between the targetElement and the containerElement
|
|
234
|
-
// will be the accumulation of the offsetTop of the element and that of its
|
|
235
|
-
// subsequent offsetParent until the containerElement is reached, since it
|
|
236
|
-
// will also be an offsetParent at some point due to the fact that it is positioned.
|
|
237
|
-
|
|
238
|
-
// If the containerElement is not positioned, then it can"t be an offsetParent,
|
|
239
|
-
// which means that the offsetTop of the targetElement would not be with respect to it.
|
|
240
|
-
// However, if the two of them happen to have the same offsetParent, then
|
|
241
|
-
// the distance between them will be the difference between their offsetTop
|
|
242
|
-
// since they are both taken with respect to the same entity.
|
|
243
|
-
// The last resort would be to accumulate their offsetTop until a common
|
|
244
|
-
// offsetParent is reached (usually the document) and taking the difference
|
|
245
|
-
// between the accumulated offsetTops
|
|
246
|
-
|
|
247
|
-
if (isPositioned(c)) {
|
|
248
|
-
if (t.offsetParent !== c) {
|
|
249
|
-
var isContainerElementOrDocument = function isContainerElementOrDocument(e) {
|
|
250
|
-
return e === c || e === document;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
var _getElementOffsetInfo = getElementOffsetInfoUntil(t, isContainerElementOrDocument),
|
|
254
|
-
offsetTop = _getElementOffsetInfo.offsetTop,
|
|
255
|
-
offsetParent = _getElementOffsetInfo.offsetParent;
|
|
256
|
-
|
|
257
|
-
if (offsetParent !== c) {
|
|
258
|
-
throw new Error("Seems containerElement is not an ancestor of the Element");
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
return offsetTop;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
return t.offsetTop;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (t.offsetParent === c.offsetParent) {
|
|
268
|
-
return t.offsetTop - c.offsetTop;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
var isDocument = function isDocument(e) {
|
|
272
|
-
return e === document;
|
|
273
|
-
};
|
|
274
|
-
return getElementOffsetInfoUntil(t, isDocument).offsetTop - getElementOffsetInfoUntil(c, isDocument).offsetTop;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
utils.default = {
|
|
279
|
-
updateHash: updateHash,
|
|
280
|
-
getHash: getHash,
|
|
281
|
-
filterElementInContainer: filterElementInContainer,
|
|
282
|
-
scrollOffset: scrollOffset
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
var animateScroll$1 = {};
|
|
286
|
-
|
|
287
|
-
var smooth = {};
|
|
288
|
-
|
|
289
|
-
Object.defineProperty(smooth, "__esModule", {
|
|
290
|
-
value: true
|
|
291
|
-
});
|
|
292
|
-
smooth.default = {
|
|
293
|
-
/*
|
|
294
|
-
* https://github.com/oblador/angular-scroll (duScrollDefaultEasing)
|
|
295
|
-
*/
|
|
296
|
-
defaultEasing: function defaultEasing(x) {
|
|
297
|
-
if (x < 0.5) {
|
|
298
|
-
return Math.pow(x * 2, 2) / 2;
|
|
299
|
-
}
|
|
300
|
-
return 1 - Math.pow((1 - x) * 2, 2) / 2;
|
|
301
|
-
},
|
|
302
|
-
/*
|
|
303
|
-
* https://gist.github.com/gre/1650294
|
|
304
|
-
*/
|
|
305
|
-
// no easing, no acceleration
|
|
306
|
-
linear: function linear(x) {
|
|
307
|
-
return x;
|
|
308
|
-
},
|
|
309
|
-
// accelerating from zero velocity
|
|
310
|
-
easeInQuad: function easeInQuad(x) {
|
|
311
|
-
return x * x;
|
|
312
|
-
},
|
|
313
|
-
// decelerating to zero velocity
|
|
314
|
-
easeOutQuad: function easeOutQuad(x) {
|
|
315
|
-
return x * (2 - x);
|
|
316
|
-
},
|
|
317
|
-
// acceleration until halfway, then deceleration
|
|
318
|
-
easeInOutQuad: function easeInOutQuad(x) {
|
|
319
|
-
return x < .5 ? 2 * x * x : -1 + (4 - 2 * x) * x;
|
|
320
|
-
},
|
|
321
|
-
// accelerating from zero velocity
|
|
322
|
-
easeInCubic: function easeInCubic(x) {
|
|
323
|
-
return x * x * x;
|
|
324
|
-
},
|
|
325
|
-
// decelerating to zero velocity π
|
|
326
|
-
easeOutCubic: function easeOutCubic(x) {
|
|
327
|
-
return --x * x * x + 1;
|
|
328
|
-
},
|
|
329
|
-
// acceleration until halfway, then deceleration
|
|
330
|
-
easeInOutCubic: function easeInOutCubic(x) {
|
|
331
|
-
return x < .5 ? 4 * x * x * x : (x - 1) * (2 * x - 2) * (2 * x - 2) + 1;
|
|
332
|
-
},
|
|
333
|
-
// accelerating from zero velocity
|
|
334
|
-
easeInQuart: function easeInQuart(x) {
|
|
335
|
-
return x * x * x * x;
|
|
336
|
-
},
|
|
337
|
-
// decelerating to zero velocity
|
|
338
|
-
easeOutQuart: function easeOutQuart(x) {
|
|
339
|
-
return 1 - --x * x * x * x;
|
|
340
|
-
},
|
|
341
|
-
// acceleration until halfway, then deceleration
|
|
342
|
-
easeInOutQuart: function easeInOutQuart(x) {
|
|
343
|
-
return x < .5 ? 8 * x * x * x * x : 1 - 8 * --x * x * x * x;
|
|
344
|
-
},
|
|
345
|
-
// accelerating from zero velocity
|
|
346
|
-
easeInQuint: function easeInQuint(x) {
|
|
347
|
-
return x * x * x * x * x;
|
|
348
|
-
},
|
|
349
|
-
// decelerating to zero velocity
|
|
350
|
-
easeOutQuint: function easeOutQuint(x) {
|
|
351
|
-
return 1 + --x * x * x * x * x;
|
|
352
|
-
},
|
|
353
|
-
// acceleration until halfway, then deceleration
|
|
354
|
-
easeInOutQuint: function easeInOutQuint(x) {
|
|
355
|
-
return x < .5 ? 16 * x * x * x * x * x : 1 + 16 * --x * x * x * x * x;
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
var cancelEvents = {};
|
|
360
|
-
|
|
361
|
-
Object.defineProperty(cancelEvents, "__esModule", {
|
|
362
|
-
value: true
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
var _passiveEventListeners = passiveEventListeners;
|
|
366
|
-
|
|
367
|
-
var events = ['mousedown', 'mousewheel', 'touchmove', 'keydown'];
|
|
368
|
-
|
|
369
|
-
cancelEvents.default = {
|
|
370
|
-
subscribe: function subscribe(cancelEvent) {
|
|
371
|
-
return typeof document !== 'undefined' && events.forEach(function (event) {
|
|
372
|
-
return (0, _passiveEventListeners.addPassiveEventListener)(document, event, cancelEvent);
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
var scrollEvents = {};
|
|
378
|
-
|
|
379
|
-
Object.defineProperty(scrollEvents, "__esModule", {
|
|
380
|
-
value: true
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
var Events = {
|
|
384
|
-
registered: {},
|
|
385
|
-
scrollEvent: {
|
|
386
|
-
register: function register(evtName, callback) {
|
|
387
|
-
Events.registered[evtName] = callback;
|
|
388
|
-
},
|
|
389
|
-
remove: function remove(evtName) {
|
|
390
|
-
Events.registered[evtName] = null;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
scrollEvents.default = Events;
|
|
396
|
-
|
|
397
|
-
Object.defineProperty(animateScroll$1, "__esModule", {
|
|
398
|
-
value: true
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
var _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
402
|
-
|
|
403
|
-
var _utils$2 = utils;
|
|
404
|
-
|
|
405
|
-
_interopRequireDefault$8(_utils$2);
|
|
406
|
-
|
|
407
|
-
var _smooth = smooth;
|
|
408
|
-
|
|
409
|
-
var _smooth2 = _interopRequireDefault$8(_smooth);
|
|
410
|
-
|
|
411
|
-
var _cancelEvents = cancelEvents;
|
|
412
|
-
|
|
413
|
-
var _cancelEvents2 = _interopRequireDefault$8(_cancelEvents);
|
|
414
|
-
|
|
415
|
-
var _scrollEvents$2 = scrollEvents;
|
|
416
|
-
|
|
417
|
-
var _scrollEvents2$2 = _interopRequireDefault$8(_scrollEvents$2);
|
|
418
|
-
|
|
419
|
-
function _interopRequireDefault$8(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
420
|
-
|
|
421
|
-
/*
|
|
422
|
-
* Gets the easing type from the smooth prop within options.
|
|
423
|
-
*/
|
|
424
|
-
var getAnimationType = function getAnimationType(options) {
|
|
425
|
-
return _smooth2.default[options.smooth] || _smooth2.default.defaultEasing;
|
|
426
|
-
};
|
|
427
|
-
/*
|
|
428
|
-
* Function helper
|
|
429
|
-
*/
|
|
430
|
-
var functionWrapper = function functionWrapper(value) {
|
|
431
|
-
return typeof value === 'function' ? value : function () {
|
|
432
|
-
return value;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
/*
|
|
436
|
-
* Wraps window properties to allow server side rendering
|
|
437
|
-
*/
|
|
438
|
-
var currentWindowProperties = function currentWindowProperties() {
|
|
439
|
-
if (typeof window !== 'undefined') {
|
|
440
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame;
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
/*
|
|
445
|
-
* Helper function to never extend 60fps on the webpage.
|
|
446
|
-
*/
|
|
447
|
-
var requestAnimationFrameHelper = function () {
|
|
448
|
-
return currentWindowProperties() || function (callback, element, delay) {
|
|
449
|
-
window.setTimeout(callback, delay || 1000 / 60, new Date().getTime());
|
|
450
|
-
};
|
|
451
|
-
}();
|
|
452
|
-
|
|
453
|
-
var makeData = function makeData() {
|
|
454
|
-
return {
|
|
455
|
-
currentPosition: 0,
|
|
456
|
-
startPosition: 0,
|
|
457
|
-
targetPosition: 0,
|
|
458
|
-
progress: 0,
|
|
459
|
-
duration: 0,
|
|
460
|
-
cancel: false,
|
|
461
|
-
|
|
462
|
-
target: null,
|
|
463
|
-
containerElement: null,
|
|
464
|
-
to: null,
|
|
465
|
-
start: null,
|
|
466
|
-
delta: null,
|
|
467
|
-
percent: null,
|
|
468
|
-
delayTimeout: null
|
|
469
|
-
};
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
var currentPositionX = function currentPositionX(options) {
|
|
473
|
-
var containerElement = options.data.containerElement;
|
|
474
|
-
if (containerElement && containerElement !== document && containerElement !== document.body) {
|
|
475
|
-
return containerElement.scrollLeft;
|
|
476
|
-
} else {
|
|
477
|
-
var supportPageOffset = window.pageXOffset !== undefined;
|
|
478
|
-
var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
|
|
479
|
-
return supportPageOffset ? window.pageXOffset : isCSS1Compat ? document.documentElement.scrollLeft : document.body.scrollLeft;
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
var currentPositionY = function currentPositionY(options) {
|
|
484
|
-
var containerElement = options.data.containerElement;
|
|
485
|
-
if (containerElement && containerElement !== document && containerElement !== document.body) {
|
|
486
|
-
return containerElement.scrollTop;
|
|
487
|
-
} else {
|
|
488
|
-
var supportPageOffset = window.pageXOffset !== undefined;
|
|
489
|
-
var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
|
|
490
|
-
return supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
var scrollContainerWidth = function scrollContainerWidth(options) {
|
|
495
|
-
var containerElement = options.data.containerElement;
|
|
496
|
-
if (containerElement && containerElement !== document && containerElement !== document.body) {
|
|
497
|
-
return containerElement.scrollWidth - containerElement.offsetWidth;
|
|
498
|
-
} else {
|
|
499
|
-
var body = document.body;
|
|
500
|
-
var html = document.documentElement;
|
|
501
|
-
|
|
502
|
-
return Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
var scrollContainerHeight = function scrollContainerHeight(options) {
|
|
507
|
-
var containerElement = options.data.containerElement;
|
|
508
|
-
if (containerElement && containerElement !== document && containerElement !== document.body) {
|
|
509
|
-
return containerElement.scrollHeight - containerElement.offsetHeight;
|
|
510
|
-
} else {
|
|
511
|
-
var body = document.body;
|
|
512
|
-
var html = document.documentElement;
|
|
513
|
-
|
|
514
|
-
return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
var animateScroll = function animateScroll(easing, options, timestamp) {
|
|
519
|
-
var data = options.data;
|
|
520
|
-
|
|
521
|
-
// Cancel on specific events
|
|
522
|
-
if (!options.ignoreCancelEvents && data.cancel) {
|
|
523
|
-
if (_scrollEvents2$2.default.registered['end']) {
|
|
524
|
-
_scrollEvents2$2.default.registered['end'](data.to, data.target, data.currentPositionY);
|
|
525
|
-
}
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
data.delta = Math.round(data.targetPosition - data.startPosition);
|
|
529
|
-
|
|
530
|
-
if (data.start === null) {
|
|
531
|
-
data.start = timestamp;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
data.progress = timestamp - data.start;
|
|
535
|
-
|
|
536
|
-
data.percent = data.progress >= data.duration ? 1 : easing(data.progress / data.duration);
|
|
537
|
-
|
|
538
|
-
data.currentPosition = data.startPosition + Math.ceil(data.delta * data.percent);
|
|
539
|
-
|
|
540
|
-
if (data.containerElement && data.containerElement !== document && data.containerElement !== document.body) {
|
|
541
|
-
if (options.horizontal) {
|
|
542
|
-
data.containerElement.scrollLeft = data.currentPosition;
|
|
543
|
-
} else {
|
|
544
|
-
data.containerElement.scrollTop = data.currentPosition;
|
|
545
|
-
}
|
|
546
|
-
} else {
|
|
547
|
-
if (options.horizontal) {
|
|
548
|
-
window.scrollTo(data.currentPosition, 0);
|
|
549
|
-
} else {
|
|
550
|
-
window.scrollTo(0, data.currentPosition);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if (data.percent < 1) {
|
|
555
|
-
var easedAnimate = animateScroll.bind(null, easing, options);
|
|
556
|
-
requestAnimationFrameHelper.call(window, easedAnimate);
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
if (_scrollEvents2$2.default.registered['end']) {
|
|
561
|
-
_scrollEvents2$2.default.registered['end'](data.to, data.target, data.currentPosition);
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
var setContainer = function setContainer(options) {
|
|
566
|
-
options.data.containerElement = !options ? null : options.containerId ? document.getElementById(options.containerId) : options.container && options.container.nodeType ? options.container : document;
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
var animateTopScroll = function animateTopScroll(scrollOffset, options, to, target) {
|
|
570
|
-
options.data = options.data || makeData();
|
|
571
|
-
|
|
572
|
-
window.clearTimeout(options.data.delayTimeout);
|
|
573
|
-
|
|
574
|
-
var setCancel = function setCancel() {
|
|
575
|
-
options.data.cancel = true;
|
|
576
|
-
};
|
|
577
|
-
_cancelEvents2.default.subscribe(setCancel);
|
|
578
|
-
|
|
579
|
-
setContainer(options);
|
|
580
|
-
|
|
581
|
-
options.data.start = null;
|
|
582
|
-
options.data.cancel = false;
|
|
583
|
-
options.data.startPosition = options.horizontal ? currentPositionX(options) : currentPositionY(options);
|
|
584
|
-
options.data.targetPosition = options.absolute ? scrollOffset : scrollOffset + options.data.startPosition;
|
|
585
|
-
|
|
586
|
-
if (options.data.startPosition === options.data.targetPosition) {
|
|
587
|
-
if (_scrollEvents2$2.default.registered['end']) {
|
|
588
|
-
_scrollEvents2$2.default.registered['end'](options.data.to, options.data.target, options.data.currentPosition);
|
|
589
|
-
}
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
options.data.delta = Math.round(options.data.targetPosition - options.data.startPosition);
|
|
594
|
-
|
|
595
|
-
options.data.duration = functionWrapper(options.duration)(options.data.delta);
|
|
596
|
-
options.data.duration = isNaN(parseFloat(options.data.duration)) ? 1000 : parseFloat(options.data.duration);
|
|
597
|
-
options.data.to = to;
|
|
598
|
-
options.data.target = target;
|
|
599
|
-
|
|
600
|
-
var easing = getAnimationType(options);
|
|
601
|
-
var easedAnimate = animateScroll.bind(null, easing, options);
|
|
602
|
-
|
|
603
|
-
if (options && options.delay > 0) {
|
|
604
|
-
options.data.delayTimeout = window.setTimeout(function () {
|
|
605
|
-
if (_scrollEvents2$2.default.registered['begin']) {
|
|
606
|
-
_scrollEvents2$2.default.registered['begin'](options.data.to, options.data.target);
|
|
607
|
-
}
|
|
608
|
-
requestAnimationFrameHelper.call(window, easedAnimate);
|
|
609
|
-
}, options.delay);
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
if (_scrollEvents2$2.default.registered['begin']) {
|
|
614
|
-
_scrollEvents2$2.default.registered['begin'](options.data.to, options.data.target);
|
|
615
|
-
}
|
|
616
|
-
requestAnimationFrameHelper.call(window, easedAnimate);
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
var proceedOptions = function proceedOptions(options) {
|
|
620
|
-
options = _extends$5({}, options);
|
|
621
|
-
options.data = options.data || makeData();
|
|
622
|
-
options.absolute = true;
|
|
623
|
-
return options;
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
var scrollToTop = function scrollToTop(options) {
|
|
627
|
-
animateTopScroll(0, proceedOptions(options));
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
var scrollTo = function scrollTo(toPosition, options) {
|
|
631
|
-
animateTopScroll(toPosition, proceedOptions(options));
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
var scrollToBottom = function scrollToBottom(options) {
|
|
635
|
-
options = proceedOptions(options);
|
|
636
|
-
setContainer(options);
|
|
637
|
-
animateTopScroll(options.horizontal ? scrollContainerWidth(options) : scrollContainerHeight(options), options);
|
|
638
|
-
};
|
|
639
|
-
|
|
640
|
-
var scrollMore = function scrollMore(toPosition, options) {
|
|
641
|
-
options = proceedOptions(options);
|
|
642
|
-
setContainer(options);
|
|
643
|
-
var currentPosition = options.horizontal ? currentPositionX(options) : currentPositionY(options);
|
|
644
|
-
animateTopScroll(toPosition + currentPosition, options);
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
animateScroll$1.default = {
|
|
648
|
-
animateTopScroll: animateTopScroll,
|
|
649
|
-
getAnimationType: getAnimationType,
|
|
650
|
-
scrollToTop: scrollToTop,
|
|
651
|
-
scrollToBottom: scrollToBottom,
|
|
652
|
-
scrollTo: scrollTo,
|
|
653
|
-
scrollMore: scrollMore
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
Object.defineProperty(scroller, "__esModule", {
|
|
657
|
-
value: true
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
var _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
661
|
-
|
|
662
|
-
var _utils$1 = utils;
|
|
663
|
-
|
|
664
|
-
var _utils2$1 = _interopRequireDefault$7(_utils$1);
|
|
665
|
-
|
|
666
|
-
var _animateScroll$1 = animateScroll$1;
|
|
667
|
-
|
|
668
|
-
var _animateScroll2$1 = _interopRequireDefault$7(_animateScroll$1);
|
|
669
|
-
|
|
670
|
-
var _scrollEvents$1 = scrollEvents;
|
|
671
|
-
|
|
672
|
-
var _scrollEvents2$1 = _interopRequireDefault$7(_scrollEvents$1);
|
|
673
|
-
|
|
674
|
-
function _interopRequireDefault$7(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
675
|
-
|
|
676
|
-
var __mapped = {};
|
|
677
|
-
var __activeLink = void 0;
|
|
678
|
-
|
|
679
|
-
scroller.default = {
|
|
680
|
-
|
|
681
|
-
unmount: function unmount() {
|
|
682
|
-
__mapped = {};
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
register: function register(name, element) {
|
|
686
|
-
__mapped[name] = element;
|
|
687
|
-
},
|
|
688
|
-
|
|
689
|
-
unregister: function unregister(name) {
|
|
690
|
-
delete __mapped[name];
|
|
691
|
-
},
|
|
692
|
-
|
|
693
|
-
get: function get(name) {
|
|
694
|
-
return __mapped[name] || document.getElementById(name) || document.getElementsByName(name)[0] || document.getElementsByClassName(name)[0];
|
|
695
|
-
},
|
|
696
|
-
|
|
697
|
-
setActiveLink: function setActiveLink(link) {
|
|
698
|
-
return __activeLink = link;
|
|
699
|
-
},
|
|
700
|
-
|
|
701
|
-
getActiveLink: function getActiveLink() {
|
|
702
|
-
return __activeLink;
|
|
703
|
-
},
|
|
704
|
-
|
|
705
|
-
scrollTo: function scrollTo(to, props) {
|
|
706
|
-
|
|
707
|
-
var target = this.get(to);
|
|
708
|
-
|
|
709
|
-
if (!target) {
|
|
710
|
-
console.warn("target Element not found");
|
|
711
|
-
return;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
props = _extends$4({}, props, { absolute: false });
|
|
715
|
-
|
|
716
|
-
var containerId = props.containerId;
|
|
717
|
-
var container = props.container;
|
|
718
|
-
|
|
719
|
-
var containerElement = void 0;
|
|
720
|
-
if (containerId) {
|
|
721
|
-
containerElement = document.getElementById(containerId);
|
|
722
|
-
} else if (container && container.nodeType) {
|
|
723
|
-
containerElement = container;
|
|
724
|
-
} else {
|
|
725
|
-
containerElement = document;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
props.absolute = true;
|
|
729
|
-
|
|
730
|
-
var horizontal = props.horizontal;
|
|
731
|
-
var scrollOffset = _utils2$1.default.scrollOffset(containerElement, target, horizontal) + (props.offset || 0);
|
|
732
|
-
|
|
733
|
-
/*
|
|
734
|
-
* if animate is not provided just scroll into the view
|
|
735
|
-
*/
|
|
736
|
-
if (!props.smooth) {
|
|
737
|
-
if (_scrollEvents2$1.default.registered['begin']) {
|
|
738
|
-
_scrollEvents2$1.default.registered['begin'](to, target);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
if (containerElement === document) {
|
|
742
|
-
if (props.horizontal) {
|
|
743
|
-
window.scrollTo(scrollOffset, 0);
|
|
744
|
-
} else {
|
|
745
|
-
window.scrollTo(0, scrollOffset);
|
|
746
|
-
}
|
|
747
|
-
} else {
|
|
748
|
-
containerElement.scrollTop = scrollOffset;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
if (_scrollEvents2$1.default.registered['end']) {
|
|
752
|
-
_scrollEvents2$1.default.registered['end'](to, target);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/*
|
|
759
|
-
* Animate scrolling
|
|
760
|
-
*/
|
|
761
|
-
|
|
762
|
-
_animateScroll2$1.default.animateTopScroll(scrollOffset, props, to, target);
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
var scrollHash$2 = {};
|
|
767
|
-
|
|
768
|
-
Object.defineProperty(scrollHash$2, "__esModule", {
|
|
769
|
-
value: true
|
|
770
|
-
});
|
|
771
|
-
|
|
772
|
-
var _utils = utils;
|
|
773
|
-
|
|
774
|
-
var _utils2 = _interopRequireDefault$6(_utils);
|
|
775
|
-
|
|
776
|
-
function _interopRequireDefault$6(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
777
|
-
|
|
778
|
-
var scrollHash$1 = {
|
|
779
|
-
mountFlag: false,
|
|
780
|
-
initialized: false,
|
|
781
|
-
scroller: null,
|
|
782
|
-
containers: {},
|
|
783
|
-
|
|
784
|
-
mount: function mount(scroller) {
|
|
785
|
-
this.scroller = scroller;
|
|
786
|
-
|
|
787
|
-
this.handleHashChange = this.handleHashChange.bind(this);
|
|
788
|
-
window.addEventListener('hashchange', this.handleHashChange);
|
|
789
|
-
|
|
790
|
-
this.initStateFromHash();
|
|
791
|
-
this.mountFlag = true;
|
|
792
|
-
},
|
|
793
|
-
mapContainer: function mapContainer(to, container) {
|
|
794
|
-
this.containers[to] = container;
|
|
795
|
-
},
|
|
796
|
-
isMounted: function isMounted() {
|
|
797
|
-
return this.mountFlag;
|
|
798
|
-
},
|
|
799
|
-
isInitialized: function isInitialized() {
|
|
800
|
-
return this.initialized;
|
|
801
|
-
},
|
|
802
|
-
initStateFromHash: function initStateFromHash() {
|
|
803
|
-
var _this = this;
|
|
804
|
-
|
|
805
|
-
var hash = this.getHash();
|
|
806
|
-
if (hash) {
|
|
807
|
-
window.setTimeout(function () {
|
|
808
|
-
_this.scrollTo(hash, true);
|
|
809
|
-
_this.initialized = true;
|
|
810
|
-
}, 10);
|
|
811
|
-
} else {
|
|
812
|
-
this.initialized = true;
|
|
813
|
-
}
|
|
814
|
-
},
|
|
815
|
-
scrollTo: function scrollTo(to, isInit) {
|
|
816
|
-
var scroller = this.scroller;
|
|
817
|
-
var element = scroller.get(to);
|
|
818
|
-
if (element && (isInit || to !== scroller.getActiveLink())) {
|
|
819
|
-
var container = this.containers[to] || document;
|
|
820
|
-
scroller.scrollTo(to, { container: container });
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
getHash: function getHash() {
|
|
824
|
-
return _utils2.default.getHash();
|
|
825
|
-
},
|
|
826
|
-
changeHash: function changeHash(to, saveHashHistory) {
|
|
827
|
-
if (this.isInitialized() && _utils2.default.getHash() !== to) {
|
|
828
|
-
_utils2.default.updateHash(to, saveHashHistory);
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
handleHashChange: function handleHashChange() {
|
|
832
|
-
this.scrollTo(this.getHash());
|
|
833
|
-
},
|
|
834
|
-
unmount: function unmount() {
|
|
835
|
-
this.scroller = null;
|
|
836
|
-
this.containers = null;
|
|
837
|
-
window.removeEventListener('hashchange', this.handleHashChange);
|
|
838
|
-
}
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
scrollHash$2.default = scrollHash$1;
|
|
842
|
-
|
|
843
|
-
Object.defineProperty(scrollLink, "__esModule", {
|
|
844
|
-
value: true
|
|
845
|
-
});
|
|
846
|
-
|
|
847
|
-
var _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
848
|
-
|
|
849
|
-
var _createClass$4 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
850
|
-
|
|
851
|
-
var _react$4 = React__default.default;
|
|
852
|
-
|
|
853
|
-
var _react2$4 = _interopRequireDefault$5(_react$4);
|
|
854
|
-
|
|
855
|
-
var _scrollSpy$1 = scrollSpy$2;
|
|
856
|
-
|
|
857
|
-
var _scrollSpy2$1 = _interopRequireDefault$5(_scrollSpy$1);
|
|
858
|
-
|
|
859
|
-
var _scroller$2 = scroller;
|
|
860
|
-
|
|
861
|
-
var _scroller2$2 = _interopRequireDefault$5(_scroller$2);
|
|
862
|
-
|
|
863
|
-
var _propTypes$2 = PropTypes__default.default;
|
|
864
|
-
|
|
865
|
-
var _propTypes2$2 = _interopRequireDefault$5(_propTypes$2);
|
|
866
|
-
|
|
867
|
-
var _scrollHash = scrollHash$2;
|
|
868
|
-
|
|
869
|
-
var _scrollHash2 = _interopRequireDefault$5(_scrollHash);
|
|
870
|
-
|
|
871
|
-
function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
872
|
-
|
|
873
|
-
function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
874
|
-
|
|
875
|
-
function _possibleConstructorReturn$5(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
876
|
-
|
|
877
|
-
function _inherits$5(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
878
|
-
|
|
879
|
-
var protoTypes$1 = {
|
|
880
|
-
to: _propTypes2$2.default.string.isRequired,
|
|
881
|
-
containerId: _propTypes2$2.default.string,
|
|
882
|
-
container: _propTypes2$2.default.object,
|
|
883
|
-
activeClass: _propTypes2$2.default.string,
|
|
884
|
-
activeStyle: _propTypes2$2.default.object,
|
|
885
|
-
spy: _propTypes2$2.default.bool,
|
|
886
|
-
horizontal: _propTypes2$2.default.bool,
|
|
887
|
-
smooth: _propTypes2$2.default.oneOfType([_propTypes2$2.default.bool, _propTypes2$2.default.string]),
|
|
888
|
-
offset: _propTypes2$2.default.number,
|
|
889
|
-
delay: _propTypes2$2.default.number,
|
|
890
|
-
isDynamic: _propTypes2$2.default.bool,
|
|
891
|
-
onClick: _propTypes2$2.default.func,
|
|
892
|
-
duration: _propTypes2$2.default.oneOfType([_propTypes2$2.default.number, _propTypes2$2.default.func]),
|
|
893
|
-
absolute: _propTypes2$2.default.bool,
|
|
894
|
-
onSetActive: _propTypes2$2.default.func,
|
|
895
|
-
onSetInactive: _propTypes2$2.default.func,
|
|
896
|
-
ignoreCancelEvents: _propTypes2$2.default.bool,
|
|
897
|
-
hashSpy: _propTypes2$2.default.bool,
|
|
898
|
-
saveHashHistory: _propTypes2$2.default.bool,
|
|
899
|
-
spyThrottle: _propTypes2$2.default.number
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
scrollLink.default = function (Component, customScroller) {
|
|
903
|
-
|
|
904
|
-
var scroller = customScroller || _scroller2$2.default;
|
|
905
|
-
|
|
906
|
-
var Link = function (_React$PureComponent) {
|
|
907
|
-
_inherits$5(Link, _React$PureComponent);
|
|
908
|
-
|
|
909
|
-
function Link(props) {
|
|
910
|
-
_classCallCheck$5(this, Link);
|
|
911
|
-
|
|
912
|
-
var _this = _possibleConstructorReturn$5(this, (Link.__proto__ || Object.getPrototypeOf(Link)).call(this, props));
|
|
913
|
-
|
|
914
|
-
_initialiseProps.call(_this);
|
|
915
|
-
|
|
916
|
-
_this.state = {
|
|
917
|
-
active: false
|
|
918
|
-
};
|
|
919
|
-
return _this;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
_createClass$4(Link, [{
|
|
923
|
-
key: 'getScrollSpyContainer',
|
|
924
|
-
value: function getScrollSpyContainer() {
|
|
925
|
-
var containerId = this.props.containerId;
|
|
926
|
-
var container = this.props.container;
|
|
927
|
-
|
|
928
|
-
if (containerId && !container) {
|
|
929
|
-
return document.getElementById(containerId);
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
if (container && container.nodeType) {
|
|
933
|
-
return container;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
return document;
|
|
937
|
-
}
|
|
938
|
-
}, {
|
|
939
|
-
key: 'componentDidMount',
|
|
940
|
-
value: function componentDidMount() {
|
|
941
|
-
if (this.props.spy || this.props.hashSpy) {
|
|
942
|
-
var scrollSpyContainer = this.getScrollSpyContainer();
|
|
943
|
-
|
|
944
|
-
if (!_scrollSpy2$1.default.isMounted(scrollSpyContainer)) {
|
|
945
|
-
_scrollSpy2$1.default.mount(scrollSpyContainer, this.props.spyThrottle);
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
if (this.props.hashSpy) {
|
|
949
|
-
if (!_scrollHash2.default.isMounted()) {
|
|
950
|
-
_scrollHash2.default.mount(scroller);
|
|
951
|
-
}
|
|
952
|
-
_scrollHash2.default.mapContainer(this.props.to, scrollSpyContainer);
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
_scrollSpy2$1.default.addSpyHandler(this.spyHandler, scrollSpyContainer);
|
|
956
|
-
|
|
957
|
-
this.setState({
|
|
958
|
-
container: scrollSpyContainer
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
}, {
|
|
963
|
-
key: 'componentWillUnmount',
|
|
964
|
-
value: function componentWillUnmount() {
|
|
965
|
-
_scrollSpy2$1.default.unmount(this.stateHandler, this.spyHandler);
|
|
966
|
-
}
|
|
967
|
-
}, {
|
|
968
|
-
key: 'render',
|
|
969
|
-
value: function render() {
|
|
970
|
-
var className = "";
|
|
971
|
-
|
|
972
|
-
if (this.state && this.state.active) {
|
|
973
|
-
className = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim();
|
|
974
|
-
} else {
|
|
975
|
-
className = this.props.className;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
var style = {};
|
|
979
|
-
|
|
980
|
-
if (this.state && this.state.active) {
|
|
981
|
-
style = _extends$3({}, this.props.style, this.props.activeStyle);
|
|
982
|
-
} else {
|
|
983
|
-
style = _extends$3({}, this.props.style);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
var props = _extends$3({}, this.props);
|
|
987
|
-
|
|
988
|
-
for (var prop in protoTypes$1) {
|
|
989
|
-
if (props.hasOwnProperty(prop)) {
|
|
990
|
-
delete props[prop];
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
props.className = className;
|
|
995
|
-
props.style = style;
|
|
996
|
-
props.onClick = this.handleClick;
|
|
997
|
-
|
|
998
|
-
return _react2$4.default.createElement(Component, props);
|
|
999
|
-
}
|
|
1000
|
-
}]);
|
|
1001
|
-
|
|
1002
|
-
return Link;
|
|
1003
|
-
}(_react2$4.default.PureComponent);
|
|
1004
|
-
|
|
1005
|
-
var _initialiseProps = function _initialiseProps() {
|
|
1006
|
-
var _this2 = this;
|
|
1007
|
-
|
|
1008
|
-
this.scrollTo = function (to, props) {
|
|
1009
|
-
scroller.scrollTo(to, _extends$3({}, _this2.state, props));
|
|
1010
|
-
};
|
|
1011
|
-
|
|
1012
|
-
this.handleClick = function (event) {
|
|
1013
|
-
|
|
1014
|
-
/*
|
|
1015
|
-
* give the posibility to override onClick
|
|
1016
|
-
*/
|
|
1017
|
-
|
|
1018
|
-
if (_this2.props.onClick) {
|
|
1019
|
-
_this2.props.onClick(event);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/*
|
|
1023
|
-
* dont bubble the navigation
|
|
1024
|
-
*/
|
|
1025
|
-
|
|
1026
|
-
if (event.stopPropagation) event.stopPropagation();
|
|
1027
|
-
if (event.preventDefault) event.preventDefault();
|
|
1028
|
-
|
|
1029
|
-
/*
|
|
1030
|
-
* do the magic!
|
|
1031
|
-
*/
|
|
1032
|
-
_this2.scrollTo(_this2.props.to, _this2.props);
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
this.spyHandler = function (x, y) {
|
|
1036
|
-
var scrollSpyContainer = _this2.getScrollSpyContainer();
|
|
1037
|
-
|
|
1038
|
-
if (_scrollHash2.default.isMounted() && !_scrollHash2.default.isInitialized()) {
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
var horizontal = _this2.props.horizontal;
|
|
1043
|
-
|
|
1044
|
-
var to = _this2.props.to;
|
|
1045
|
-
var element = null;
|
|
1046
|
-
var isInside = void 0;
|
|
1047
|
-
var isOutside = void 0;
|
|
1048
|
-
|
|
1049
|
-
if (horizontal) {
|
|
1050
|
-
var elemLeftBound = 0;
|
|
1051
|
-
var elemRightBound = 0;
|
|
1052
|
-
var containerLeft = 0;
|
|
1053
|
-
|
|
1054
|
-
if (scrollSpyContainer.getBoundingClientRect) {
|
|
1055
|
-
var containerCords = scrollSpyContainer.getBoundingClientRect();
|
|
1056
|
-
containerLeft = containerCords.left;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
if (!element || _this2.props.isDynamic) {
|
|
1060
|
-
element = scroller.get(to);
|
|
1061
|
-
if (!element) {
|
|
1062
|
-
return;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
var cords = element.getBoundingClientRect();
|
|
1066
|
-
elemLeftBound = cords.left - containerLeft + x;
|
|
1067
|
-
elemRightBound = elemLeftBound + cords.width;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
var offsetX = x - _this2.props.offset;
|
|
1071
|
-
isInside = offsetX >= Math.floor(elemLeftBound) && offsetX < Math.floor(elemRightBound);
|
|
1072
|
-
isOutside = offsetX < Math.floor(elemLeftBound) || offsetX >= Math.floor(elemRightBound);
|
|
1073
|
-
} else {
|
|
1074
|
-
var elemTopBound = 0;
|
|
1075
|
-
var elemBottomBound = 0;
|
|
1076
|
-
var containerTop = 0;
|
|
1077
|
-
|
|
1078
|
-
if (scrollSpyContainer.getBoundingClientRect) {
|
|
1079
|
-
var _containerCords = scrollSpyContainer.getBoundingClientRect();
|
|
1080
|
-
containerTop = _containerCords.top;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
if (!element || _this2.props.isDynamic) {
|
|
1084
|
-
element = scroller.get(to);
|
|
1085
|
-
if (!element) {
|
|
1086
|
-
return;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
var _cords = element.getBoundingClientRect();
|
|
1090
|
-
elemTopBound = _cords.top - containerTop + y;
|
|
1091
|
-
elemBottomBound = elemTopBound + _cords.height;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
var offsetY = y - _this2.props.offset;
|
|
1095
|
-
isInside = offsetY >= Math.floor(elemTopBound) && offsetY < Math.floor(elemBottomBound);
|
|
1096
|
-
isOutside = offsetY < Math.floor(elemTopBound) || offsetY >= Math.floor(elemBottomBound);
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
var activeLink = scroller.getActiveLink();
|
|
1100
|
-
|
|
1101
|
-
if (isOutside) {
|
|
1102
|
-
if (to === activeLink) {
|
|
1103
|
-
scroller.setActiveLink(void 0);
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
if (_this2.props.hashSpy && _scrollHash2.default.getHash() === to) {
|
|
1107
|
-
var _props$saveHashHistor = _this2.props.saveHashHistory,
|
|
1108
|
-
saveHashHistory = _props$saveHashHistor === undefined ? false : _props$saveHashHistor;
|
|
1109
|
-
|
|
1110
|
-
_scrollHash2.default.changeHash("", saveHashHistory);
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
if (_this2.props.spy && _this2.state.active) {
|
|
1114
|
-
_this2.setState({ active: false });
|
|
1115
|
-
_this2.props.onSetInactive && _this2.props.onSetInactive(to, element);
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
if (isInside && (activeLink !== to || _this2.state.active === false)) {
|
|
1120
|
-
scroller.setActiveLink(to);
|
|
1121
|
-
|
|
1122
|
-
var _props$saveHashHistor2 = _this2.props.saveHashHistory,
|
|
1123
|
-
_saveHashHistory = _props$saveHashHistor2 === undefined ? false : _props$saveHashHistor2;
|
|
1124
|
-
|
|
1125
|
-
_this2.props.hashSpy && _scrollHash2.default.changeHash(to, _saveHashHistory);
|
|
1126
|
-
|
|
1127
|
-
if (_this2.props.spy) {
|
|
1128
|
-
_this2.setState({ active: true });
|
|
1129
|
-
_this2.props.onSetActive && _this2.props.onSetActive(to, element);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
};
|
|
1134
|
-
|
|
1135
|
-
Link.propTypes = protoTypes$1;
|
|
1136
|
-
|
|
1137
|
-
Link.defaultProps = { offset: 0 };
|
|
1138
|
-
|
|
1139
|
-
return Link;
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
Object.defineProperty(Link, "__esModule", {
|
|
1143
|
-
value: true
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
var _react$3 = React__default.default;
|
|
1147
|
-
|
|
1148
|
-
var _react2$3 = _interopRequireDefault$4(_react$3);
|
|
1149
|
-
|
|
1150
|
-
var _scrollLink$2 = scrollLink;
|
|
1151
|
-
|
|
1152
|
-
var _scrollLink2$2 = _interopRequireDefault$4(_scrollLink$2);
|
|
1153
|
-
|
|
1154
|
-
function _interopRequireDefault$4(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1155
|
-
|
|
1156
|
-
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1157
|
-
|
|
1158
|
-
function _possibleConstructorReturn$4(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1159
|
-
|
|
1160
|
-
function _inherits$4(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1161
|
-
|
|
1162
|
-
var LinkElement = function (_React$Component) {
|
|
1163
|
-
_inherits$4(LinkElement, _React$Component);
|
|
1164
|
-
|
|
1165
|
-
function LinkElement() {
|
|
1166
|
-
var _ref;
|
|
1167
|
-
|
|
1168
|
-
var _temp, _this, _ret;
|
|
1169
|
-
|
|
1170
|
-
_classCallCheck$4(this, LinkElement);
|
|
1171
|
-
|
|
1172
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1173
|
-
args[_key] = arguments[_key];
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn$4(this, (_ref = LinkElement.__proto__ || Object.getPrototypeOf(LinkElement)).call.apply(_ref, [this].concat(args))), _this), _this.render = function () {
|
|
1177
|
-
return _react2$3.default.createElement(
|
|
1178
|
-
'a',
|
|
1179
|
-
_this.props,
|
|
1180
|
-
_this.props.children
|
|
1181
|
-
);
|
|
1182
|
-
}, _temp), _possibleConstructorReturn$4(_this, _ret);
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
return LinkElement;
|
|
1186
|
-
}(_react2$3.default.Component);
|
|
1187
|
-
|
|
1188
|
-
Link.default = (0, _scrollLink2$2.default)(LinkElement);
|
|
1189
|
-
|
|
1190
|
-
var Button = {};
|
|
1191
|
-
|
|
1192
|
-
Object.defineProperty(Button, "__esModule", {
|
|
1193
|
-
value: true
|
|
1194
|
-
});
|
|
1195
|
-
|
|
1196
|
-
var _createClass$3 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1197
|
-
|
|
1198
|
-
var _react$2 = React__default.default;
|
|
1199
|
-
|
|
1200
|
-
var _react2$2 = _interopRequireDefault$3(_react$2);
|
|
1201
|
-
|
|
1202
|
-
var _scrollLink$1 = scrollLink;
|
|
1203
|
-
|
|
1204
|
-
var _scrollLink2$1 = _interopRequireDefault$3(_scrollLink$1);
|
|
1205
|
-
|
|
1206
|
-
function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1207
|
-
|
|
1208
|
-
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1209
|
-
|
|
1210
|
-
function _possibleConstructorReturn$3(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1211
|
-
|
|
1212
|
-
function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1213
|
-
|
|
1214
|
-
var ButtonElement = function (_React$Component) {
|
|
1215
|
-
_inherits$3(ButtonElement, _React$Component);
|
|
1216
|
-
|
|
1217
|
-
function ButtonElement() {
|
|
1218
|
-
_classCallCheck$3(this, ButtonElement);
|
|
1219
|
-
|
|
1220
|
-
return _possibleConstructorReturn$3(this, (ButtonElement.__proto__ || Object.getPrototypeOf(ButtonElement)).apply(this, arguments));
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
_createClass$3(ButtonElement, [{
|
|
1224
|
-
key: 'render',
|
|
1225
|
-
value: function render() {
|
|
1226
|
-
return _react2$2.default.createElement(
|
|
1227
|
-
'button',
|
|
1228
|
-
this.props,
|
|
1229
|
-
this.props.children
|
|
1230
|
-
);
|
|
1231
|
-
}
|
|
1232
|
-
}]);
|
|
1233
|
-
|
|
1234
|
-
return ButtonElement;
|
|
1235
|
-
}(_react2$2.default.Component);
|
|
1236
|
-
|
|
1237
|
-
Button.default = (0, _scrollLink2$1.default)(ButtonElement);
|
|
1238
|
-
|
|
1239
|
-
var Element = {};
|
|
1240
|
-
|
|
1241
|
-
var scrollElement = {};
|
|
1242
|
-
|
|
1243
|
-
Object.defineProperty(scrollElement, "__esModule", {
|
|
1244
|
-
value: true
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
var _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1248
|
-
|
|
1249
|
-
var _createClass$2 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1250
|
-
|
|
1251
|
-
var _react$1 = React__default.default;
|
|
1252
|
-
|
|
1253
|
-
var _react2$1 = _interopRequireDefault$2(_react$1);
|
|
1254
|
-
|
|
1255
|
-
var _reactDom = ReactDOM__default.default;
|
|
1256
|
-
|
|
1257
|
-
_interopRequireDefault$2(_reactDom);
|
|
1258
|
-
|
|
1259
|
-
var _scroller$1 = scroller;
|
|
1260
|
-
|
|
1261
|
-
var _scroller2$1 = _interopRequireDefault$2(_scroller$1);
|
|
1262
|
-
|
|
1263
|
-
var _propTypes$1 = PropTypes__default.default;
|
|
1264
|
-
|
|
1265
|
-
var _propTypes2$1 = _interopRequireDefault$2(_propTypes$1);
|
|
1266
|
-
|
|
1267
|
-
function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1268
|
-
|
|
1269
|
-
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1270
|
-
|
|
1271
|
-
function _possibleConstructorReturn$2(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1272
|
-
|
|
1273
|
-
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1274
|
-
|
|
1275
|
-
scrollElement.default = function (Component) {
|
|
1276
|
-
var Element = function (_React$Component) {
|
|
1277
|
-
_inherits$2(Element, _React$Component);
|
|
1278
|
-
|
|
1279
|
-
function Element(props) {
|
|
1280
|
-
_classCallCheck$2(this, Element);
|
|
1281
|
-
|
|
1282
|
-
var _this = _possibleConstructorReturn$2(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));
|
|
1283
|
-
|
|
1284
|
-
_this.childBindings = {
|
|
1285
|
-
domNode: null
|
|
1286
|
-
};
|
|
1287
|
-
return _this;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
_createClass$2(Element, [{
|
|
1291
|
-
key: 'componentDidMount',
|
|
1292
|
-
value: function componentDidMount() {
|
|
1293
|
-
if (typeof window === 'undefined') {
|
|
1294
|
-
return false;
|
|
1295
|
-
}
|
|
1296
|
-
this.registerElems(this.props.name);
|
|
1297
|
-
}
|
|
1298
|
-
}, {
|
|
1299
|
-
key: 'componentDidUpdate',
|
|
1300
|
-
value: function componentDidUpdate(prevProps) {
|
|
1301
|
-
if (this.props.name !== prevProps.name) {
|
|
1302
|
-
this.registerElems(this.props.name);
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
}, {
|
|
1306
|
-
key: 'componentWillUnmount',
|
|
1307
|
-
value: function componentWillUnmount() {
|
|
1308
|
-
if (typeof window === 'undefined') {
|
|
1309
|
-
return false;
|
|
1310
|
-
}
|
|
1311
|
-
_scroller2$1.default.unregister(this.props.name);
|
|
1312
|
-
}
|
|
1313
|
-
}, {
|
|
1314
|
-
key: 'registerElems',
|
|
1315
|
-
value: function registerElems(name) {
|
|
1316
|
-
_scroller2$1.default.register(name, this.childBindings.domNode);
|
|
1317
|
-
}
|
|
1318
|
-
}, {
|
|
1319
|
-
key: 'render',
|
|
1320
|
-
value: function render() {
|
|
1321
|
-
return _react2$1.default.createElement(Component, _extends$2({}, this.props, { parentBindings: this.childBindings }));
|
|
1322
|
-
}
|
|
1323
|
-
}]);
|
|
1324
|
-
|
|
1325
|
-
return Element;
|
|
1326
|
-
}(_react2$1.default.Component);
|
|
1327
|
-
|
|
1328
|
-
Element.propTypes = {
|
|
1329
|
-
name: _propTypes2$1.default.string,
|
|
1330
|
-
id: _propTypes2$1.default.string
|
|
1331
|
-
};
|
|
1332
|
-
|
|
1333
|
-
return Element;
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
Object.defineProperty(Element, "__esModule", {
|
|
1337
|
-
value: true
|
|
1338
|
-
});
|
|
1339
|
-
|
|
1340
|
-
var _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1341
|
-
|
|
1342
|
-
var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1343
|
-
|
|
1344
|
-
var _react = React__default.default;
|
|
1345
|
-
|
|
1346
|
-
var _react2 = _interopRequireDefault$1(_react);
|
|
1347
|
-
|
|
1348
|
-
var _scrollElement$1 = scrollElement;
|
|
1349
|
-
|
|
1350
|
-
var _scrollElement2$1 = _interopRequireDefault$1(_scrollElement$1);
|
|
1351
|
-
|
|
1352
|
-
var _propTypes = PropTypes__default.default;
|
|
1353
|
-
|
|
1354
|
-
var _propTypes2 = _interopRequireDefault$1(_propTypes);
|
|
1355
|
-
|
|
1356
|
-
function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1357
|
-
|
|
1358
|
-
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1359
|
-
|
|
1360
|
-
function _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1361
|
-
|
|
1362
|
-
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1363
|
-
|
|
1364
|
-
var ElementWrapper = function (_React$Component) {
|
|
1365
|
-
_inherits$1(ElementWrapper, _React$Component);
|
|
1366
|
-
|
|
1367
|
-
function ElementWrapper() {
|
|
1368
|
-
_classCallCheck$1(this, ElementWrapper);
|
|
1369
|
-
|
|
1370
|
-
return _possibleConstructorReturn$1(this, (ElementWrapper.__proto__ || Object.getPrototypeOf(ElementWrapper)).apply(this, arguments));
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
_createClass$1(ElementWrapper, [{
|
|
1374
|
-
key: 'render',
|
|
1375
|
-
value: function render() {
|
|
1376
|
-
var _this2 = this;
|
|
1377
|
-
|
|
1378
|
-
// Remove `parentBindings` and `name` from props
|
|
1379
|
-
var newProps = _extends$1({}, this.props);
|
|
1380
|
-
delete newProps.name;
|
|
1381
|
-
if (newProps.parentBindings) {
|
|
1382
|
-
delete newProps.parentBindings;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
return _react2.default.createElement(
|
|
1386
|
-
'div',
|
|
1387
|
-
_extends$1({}, newProps, { ref: function ref(el) {
|
|
1388
|
-
_this2.props.parentBindings.domNode = el;
|
|
1389
|
-
} }),
|
|
1390
|
-
this.props.children
|
|
1391
|
-
);
|
|
1392
|
-
}
|
|
1393
|
-
}]);
|
|
1394
|
-
|
|
1395
|
-
return ElementWrapper;
|
|
1396
|
-
}(_react2.default.Component);
|
|
1397
|
-
|
|
1398
|
-
ElementWrapper.propTypes = {
|
|
1399
|
-
name: _propTypes2.default.string,
|
|
1400
|
-
id: _propTypes2.default.string
|
|
1401
|
-
};
|
|
1402
|
-
|
|
1403
|
-
Element.default = (0, _scrollElement2$1.default)(ElementWrapper);
|
|
1404
|
-
|
|
1405
|
-
/* DEPRECATED */
|
|
1406
|
-
|
|
1407
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1408
|
-
|
|
1409
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1410
|
-
|
|
1411
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1412
|
-
|
|
1413
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1414
|
-
|
|
1415
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1416
|
-
|
|
1417
|
-
var React = React__default.default;
|
|
1418
|
-
var scrollSpy = scrollSpy$2;
|
|
1419
|
-
var defaultScroller = scroller;
|
|
1420
|
-
var PropTypes = PropTypes__default.default;
|
|
1421
|
-
var scrollHash = scrollHash$2;
|
|
1422
|
-
|
|
1423
|
-
var protoTypes = {
|
|
1424
|
-
to: PropTypes.string.isRequired,
|
|
1425
|
-
containerId: PropTypes.string,
|
|
1426
|
-
container: PropTypes.object,
|
|
1427
|
-
activeClass: PropTypes.string,
|
|
1428
|
-
spy: PropTypes.bool,
|
|
1429
|
-
smooth: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
1430
|
-
offset: PropTypes.number,
|
|
1431
|
-
delay: PropTypes.number,
|
|
1432
|
-
isDynamic: PropTypes.bool,
|
|
1433
|
-
onClick: PropTypes.func,
|
|
1434
|
-
duration: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
1435
|
-
absolute: PropTypes.bool,
|
|
1436
|
-
onSetActive: PropTypes.func,
|
|
1437
|
-
onSetInactive: PropTypes.func,
|
|
1438
|
-
ignoreCancelEvents: PropTypes.bool,
|
|
1439
|
-
hashSpy: PropTypes.bool,
|
|
1440
|
-
spyThrottle: PropTypes.number
|
|
1441
|
-
};
|
|
1442
|
-
|
|
1443
|
-
var Helpers = {
|
|
1444
|
-
Scroll: function Scroll(Component, customScroller) {
|
|
1445
|
-
|
|
1446
|
-
console.warn("Helpers.Scroll is deprecated since v1.7.0");
|
|
1447
|
-
|
|
1448
|
-
var scroller = customScroller || defaultScroller;
|
|
1449
|
-
|
|
1450
|
-
var Scroll = function (_React$Component) {
|
|
1451
|
-
_inherits(Scroll, _React$Component);
|
|
1452
|
-
|
|
1453
|
-
function Scroll(props) {
|
|
1454
|
-
_classCallCheck(this, Scroll);
|
|
1455
|
-
|
|
1456
|
-
var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, props));
|
|
1457
|
-
|
|
1458
|
-
_initialiseProps.call(_this);
|
|
1459
|
-
|
|
1460
|
-
_this.state = {
|
|
1461
|
-
active: false
|
|
1462
|
-
};
|
|
1463
|
-
return _this;
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
_createClass(Scroll, [{
|
|
1467
|
-
key: 'getScrollSpyContainer',
|
|
1468
|
-
value: function getScrollSpyContainer() {
|
|
1469
|
-
var containerId = this.props.containerId;
|
|
1470
|
-
var container = this.props.container;
|
|
1471
|
-
|
|
1472
|
-
if (containerId) {
|
|
1473
|
-
return document.getElementById(containerId);
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
if (container && container.nodeType) {
|
|
1477
|
-
return container;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
return document;
|
|
1481
|
-
}
|
|
1482
|
-
}, {
|
|
1483
|
-
key: 'componentDidMount',
|
|
1484
|
-
value: function componentDidMount() {
|
|
1485
|
-
if (this.props.spy || this.props.hashSpy) {
|
|
1486
|
-
var scrollSpyContainer = this.getScrollSpyContainer();
|
|
1487
|
-
|
|
1488
|
-
if (!scrollSpy.isMounted(scrollSpyContainer)) {
|
|
1489
|
-
scrollSpy.mount(scrollSpyContainer, this.props.spyThrottle);
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
if (this.props.hashSpy) {
|
|
1493
|
-
if (!scrollHash.isMounted()) {
|
|
1494
|
-
scrollHash.mount(scroller);
|
|
1495
|
-
}
|
|
1496
|
-
scrollHash.mapContainer(this.props.to, scrollSpyContainer);
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
if (this.props.spy) {
|
|
1500
|
-
scrollSpy.addStateHandler(this.stateHandler);
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
scrollSpy.addSpyHandler(this.spyHandler, scrollSpyContainer);
|
|
1504
|
-
|
|
1505
|
-
this.setState({
|
|
1506
|
-
container: scrollSpyContainer
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}, {
|
|
1511
|
-
key: 'componentWillUnmount',
|
|
1512
|
-
value: function componentWillUnmount() {
|
|
1513
|
-
scrollSpy.unmount(this.stateHandler, this.spyHandler);
|
|
1514
|
-
}
|
|
1515
|
-
}, {
|
|
1516
|
-
key: 'render',
|
|
1517
|
-
value: function render() {
|
|
1518
|
-
var className = "";
|
|
1519
|
-
|
|
1520
|
-
if (this.state && this.state.active) {
|
|
1521
|
-
className = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim();
|
|
1522
|
-
} else {
|
|
1523
|
-
className = this.props.className;
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
var props = _extends({}, this.props);
|
|
1527
|
-
|
|
1528
|
-
for (var prop in protoTypes) {
|
|
1529
|
-
if (props.hasOwnProperty(prop)) {
|
|
1530
|
-
delete props[prop];
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
props.className = className;
|
|
1535
|
-
props.onClick = this.handleClick;
|
|
1536
|
-
|
|
1537
|
-
return React.createElement(Component, props);
|
|
1538
|
-
}
|
|
1539
|
-
}]);
|
|
1540
|
-
|
|
1541
|
-
return Scroll;
|
|
1542
|
-
}(React.Component);
|
|
1543
|
-
|
|
1544
|
-
var _initialiseProps = function _initialiseProps() {
|
|
1545
|
-
var _this2 = this;
|
|
1546
|
-
|
|
1547
|
-
this.scrollTo = function (to, props) {
|
|
1548
|
-
scroller.scrollTo(to, _extends({}, _this2.state, props));
|
|
1549
|
-
};
|
|
1550
|
-
|
|
1551
|
-
this.handleClick = function (event) {
|
|
1552
|
-
|
|
1553
|
-
/*
|
|
1554
|
-
* give the posibility to override onClick
|
|
1555
|
-
*/
|
|
1556
|
-
|
|
1557
|
-
if (_this2.props.onClick) {
|
|
1558
|
-
_this2.props.onClick(event);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
/*
|
|
1562
|
-
* dont bubble the navigation
|
|
1563
|
-
*/
|
|
1564
|
-
|
|
1565
|
-
if (event.stopPropagation) event.stopPropagation();
|
|
1566
|
-
if (event.preventDefault) event.preventDefault();
|
|
1567
|
-
|
|
1568
|
-
/*
|
|
1569
|
-
* do the magic!
|
|
1570
|
-
*/
|
|
1571
|
-
_this2.scrollTo(_this2.props.to, _this2.props);
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
this.stateHandler = function () {
|
|
1575
|
-
if (scroller.getActiveLink() !== _this2.props.to) {
|
|
1576
|
-
if (_this2.state !== null && _this2.state.active && _this2.props.onSetInactive) {
|
|
1577
|
-
_this2.props.onSetInactive();
|
|
1578
|
-
}
|
|
1579
|
-
_this2.setState({ active: false });
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
this.spyHandler = function (y) {
|
|
1584
|
-
|
|
1585
|
-
var scrollSpyContainer = _this2.getScrollSpyContainer();
|
|
1586
|
-
|
|
1587
|
-
if (scrollHash.isMounted() && !scrollHash.isInitialized()) {
|
|
1588
|
-
return;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
var to = _this2.props.to;
|
|
1592
|
-
var element = null;
|
|
1593
|
-
var elemTopBound = 0;
|
|
1594
|
-
var elemBottomBound = 0;
|
|
1595
|
-
var containerTop = 0;
|
|
1596
|
-
|
|
1597
|
-
if (scrollSpyContainer.getBoundingClientRect) {
|
|
1598
|
-
var containerCords = scrollSpyContainer.getBoundingClientRect();
|
|
1599
|
-
containerTop = containerCords.top;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
if (!element || _this2.props.isDynamic) {
|
|
1603
|
-
element = scroller.get(to);
|
|
1604
|
-
if (!element) {
|
|
1605
|
-
return;
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
var cords = element.getBoundingClientRect();
|
|
1609
|
-
elemTopBound = cords.top - containerTop + y;
|
|
1610
|
-
elemBottomBound = elemTopBound + cords.height;
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
var offsetY = y - _this2.props.offset;
|
|
1614
|
-
var isInside = offsetY >= Math.floor(elemTopBound) && offsetY < Math.floor(elemBottomBound);
|
|
1615
|
-
var isOutside = offsetY < Math.floor(elemTopBound) || offsetY >= Math.floor(elemBottomBound);
|
|
1616
|
-
var activeLink = scroller.getActiveLink();
|
|
1617
|
-
|
|
1618
|
-
if (isOutside) {
|
|
1619
|
-
if (to === activeLink) {
|
|
1620
|
-
scroller.setActiveLink(void 0);
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
if (_this2.props.hashSpy && scrollHash.getHash() === to) {
|
|
1624
|
-
scrollHash.changeHash();
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
if (_this2.props.spy && _this2.state.active) {
|
|
1628
|
-
_this2.setState({ active: false });
|
|
1629
|
-
_this2.props.onSetInactive && _this2.props.onSetInactive();
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
return scrollSpy.updateStates();
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
if (isInside && activeLink !== to) {
|
|
1636
|
-
scroller.setActiveLink(to);
|
|
1637
|
-
|
|
1638
|
-
_this2.props.hashSpy && scrollHash.changeHash(to);
|
|
1639
|
-
|
|
1640
|
-
if (_this2.props.spy) {
|
|
1641
|
-
_this2.setState({ active: true });
|
|
1642
|
-
_this2.props.onSetActive && _this2.props.onSetActive(to);
|
|
1643
|
-
}
|
|
1644
|
-
return scrollSpy.updateStates();
|
|
1645
|
-
}
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
|
|
1649
|
-
Scroll.propTypes = protoTypes;
|
|
1650
|
-
|
|
1651
|
-
Scroll.defaultProps = { offset: 0 };
|
|
1652
|
-
|
|
1653
|
-
return Scroll;
|
|
1654
|
-
},
|
|
1655
|
-
Element: function Element(Component) {
|
|
1656
|
-
|
|
1657
|
-
console.warn("Helpers.Element is deprecated since v1.7.0");
|
|
1658
|
-
|
|
1659
|
-
var Element = function (_React$Component2) {
|
|
1660
|
-
_inherits(Element, _React$Component2);
|
|
1661
|
-
|
|
1662
|
-
function Element(props) {
|
|
1663
|
-
_classCallCheck(this, Element);
|
|
1664
|
-
|
|
1665
|
-
var _this3 = _possibleConstructorReturn(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));
|
|
1666
|
-
|
|
1667
|
-
_this3.childBindings = {
|
|
1668
|
-
domNode: null
|
|
1669
|
-
};
|
|
1670
|
-
return _this3;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
_createClass(Element, [{
|
|
1674
|
-
key: 'componentDidMount',
|
|
1675
|
-
value: function componentDidMount() {
|
|
1676
|
-
if (typeof window === 'undefined') {
|
|
1677
|
-
return false;
|
|
1678
|
-
}
|
|
1679
|
-
this.registerElems(this.props.name);
|
|
1680
|
-
}
|
|
1681
|
-
}, {
|
|
1682
|
-
key: 'componentDidUpdate',
|
|
1683
|
-
value: function componentDidUpdate(prevProps) {
|
|
1684
|
-
if (this.props.name !== prevProps.name) {
|
|
1685
|
-
this.registerElems(this.props.name);
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
}, {
|
|
1689
|
-
key: 'componentWillUnmount',
|
|
1690
|
-
value: function componentWillUnmount() {
|
|
1691
|
-
if (typeof window === 'undefined') {
|
|
1692
|
-
return false;
|
|
1693
|
-
}
|
|
1694
|
-
defaultScroller.unregister(this.props.name);
|
|
1695
|
-
}
|
|
1696
|
-
}, {
|
|
1697
|
-
key: 'registerElems',
|
|
1698
|
-
value: function registerElems(name) {
|
|
1699
|
-
defaultScroller.register(name, this.childBindings.domNode);
|
|
1700
|
-
}
|
|
1701
|
-
}, {
|
|
1702
|
-
key: 'render',
|
|
1703
|
-
value: function render() {
|
|
1704
|
-
return React.createElement(Component, _extends({}, this.props, { parentBindings: this.childBindings }));
|
|
1705
|
-
}
|
|
1706
|
-
}]);
|
|
1707
|
-
|
|
1708
|
-
return Element;
|
|
1709
|
-
}(React.Component);
|
|
1710
|
-
|
|
1711
|
-
Element.propTypes = {
|
|
1712
|
-
name: PropTypes.string,
|
|
1713
|
-
id: PropTypes.string
|
|
1714
|
-
};
|
|
1715
|
-
|
|
1716
|
-
return Element;
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
|
-
var Helpers_1 = Helpers;
|
|
1721
|
-
|
|
1722
|
-
Object.defineProperty(modules, "__esModule", {
|
|
1723
|
-
value: true
|
|
1724
|
-
});
|
|
1725
|
-
modules.Helpers = modules.ScrollElement = ScrollLink = modules.ScrollLink = modules.animateScroll = modules.scrollSpy = modules.Events = modules.scroller = modules.Element = modules.Button = modules.Link = undefined;
|
|
1726
|
-
|
|
1727
|
-
var _Link = Link;
|
|
1728
|
-
|
|
1729
|
-
var _Link2 = _interopRequireDefault(_Link);
|
|
1730
|
-
|
|
1731
|
-
var _Button = Button;
|
|
1732
|
-
|
|
1733
|
-
var _Button2 = _interopRequireDefault(_Button);
|
|
1734
|
-
|
|
1735
|
-
var _Element = Element;
|
|
1736
|
-
|
|
1737
|
-
var _Element2 = _interopRequireDefault(_Element);
|
|
1738
|
-
|
|
1739
|
-
var _scroller = scroller;
|
|
1740
|
-
|
|
1741
|
-
var _scroller2 = _interopRequireDefault(_scroller);
|
|
1742
|
-
|
|
1743
|
-
var _scrollEvents = scrollEvents;
|
|
1744
|
-
|
|
1745
|
-
var _scrollEvents2 = _interopRequireDefault(_scrollEvents);
|
|
1746
|
-
|
|
1747
|
-
var _scrollSpy = scrollSpy$2;
|
|
1748
|
-
|
|
1749
|
-
var _scrollSpy2 = _interopRequireDefault(_scrollSpy);
|
|
1750
|
-
|
|
1751
|
-
var _animateScroll = animateScroll$1;
|
|
1752
|
-
|
|
1753
|
-
var _animateScroll2 = _interopRequireDefault(_animateScroll);
|
|
1754
|
-
|
|
1755
|
-
var _scrollLink = scrollLink;
|
|
1756
|
-
|
|
1757
|
-
var _scrollLink2 = _interopRequireDefault(_scrollLink);
|
|
1758
|
-
|
|
1759
|
-
var _scrollElement = scrollElement;
|
|
1760
|
-
|
|
1761
|
-
var _scrollElement2 = _interopRequireDefault(_scrollElement);
|
|
1762
|
-
|
|
1763
|
-
var _Helpers = Helpers_1;
|
|
1764
|
-
|
|
1765
|
-
var _Helpers2 = _interopRequireDefault(_Helpers);
|
|
1766
|
-
|
|
1767
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1768
|
-
|
|
1769
|
-
modules.Link = _Link2.default;
|
|
1770
|
-
modules.Button = _Button2.default;
|
|
1771
|
-
modules.Element = _Element2.default;
|
|
1772
|
-
modules.scroller = _scroller2.default;
|
|
1773
|
-
modules.Events = _scrollEvents2.default;
|
|
1774
|
-
modules.scrollSpy = _scrollSpy2.default;
|
|
1775
|
-
modules.animateScroll = _animateScroll2.default;
|
|
1776
|
-
var ScrollLink = modules.ScrollLink = _scrollLink2.default;
|
|
1777
|
-
modules.ScrollElement = _scrollElement2.default;
|
|
1778
|
-
modules.Helpers = _Helpers2.default;
|
|
1779
|
-
modules.default = { Link: _Link2.default, Button: _Button2.default, Element: _Element2.default, scroller: _scroller2.default, Events: _scrollEvents2.default, scrollSpy: _scrollSpy2.default, animateScroll: _animateScroll2.default, ScrollLink: _scrollLink2.default, ScrollElement: _scrollElement2.default, Helpers: _Helpers2.default };
|
|
1780
|
-
|
|
1781
|
-
var ScrollToView = ScrollLink(function ScrollToView(props) {
|
|
1782
|
-
var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === void 0 ? 'div' : _a;
|
|
1783
|
-
var alignItemsClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1784
|
-
prefix: 'align-items_',
|
|
1785
|
-
propsKey: 'alignItems',
|
|
1786
|
-
});
|
|
1787
|
-
var alignSelfClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1788
|
-
prefix: 'align-self_',
|
|
1789
|
-
propsKey: 'alignSelf',
|
|
1790
|
-
});
|
|
1791
|
-
var alignDirectionClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1792
|
-
prefix: 'align_',
|
|
1793
|
-
propsKey: 'alignDirection',
|
|
1794
|
-
});
|
|
1795
|
-
var alignClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1796
|
-
prefix: 'align_',
|
|
1797
|
-
propsKey: 'align',
|
|
1798
|
-
});
|
|
1799
|
-
var justifyContentClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1800
|
-
prefix: 'justify-content_',
|
|
1801
|
-
propsKey: 'justifyContent',
|
|
1802
|
-
});
|
|
1803
|
-
var directionClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1804
|
-
prefix: 'direction_',
|
|
1805
|
-
propsKey: 'direction',
|
|
1806
|
-
});
|
|
1807
|
-
var widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1808
|
-
prefix: 'width_',
|
|
1809
|
-
propsKey: 'width',
|
|
1810
|
-
});
|
|
1811
|
-
var heightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1812
|
-
prefix: 'height_',
|
|
1813
|
-
propsKey: 'height',
|
|
1814
|
-
});
|
|
1815
|
-
var textColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1816
|
-
prefix: 'scroll-to-view_text-color_',
|
|
1817
|
-
propsKey: 'textColor',
|
|
1818
|
-
});
|
|
1819
|
-
var textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1820
|
-
prefix: 'scroll-to-view_text-color_active_',
|
|
1821
|
-
propsKey: 'textColorActive',
|
|
1822
|
-
});
|
|
1823
|
-
var textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
1824
|
-
prefix: 'scroll-to-view_text-color_hover_',
|
|
1825
|
-
propsKey: 'textColorHover',
|
|
1826
|
-
});
|
|
1827
|
-
var scrollToViewStyles = useStyles.useStyles(props).styles;
|
|
1828
|
-
return (jsxRuntime.jsxRuntimeExports.jsx(Tag, { onClick: props.onClick, id: id, className: clsx__default.default(className, 'scroll-to-view', alignItemsClass, widthClass, heightClass, alignDirectionClass, alignClass, textColorClass, textColorActiveClass, textColorHoverClass, justifyContentClass, directionClass, alignSelfClass), style: Object.assign({}, scrollToViewStyles, props.style), children: children }));
|
|
1829
|
-
});
|
|
1830
|
-
|
|
1831
|
-
exports.ScrollToView = ScrollToView;
|