@elliemae/ds-mobile 2.2.0-next.4 → 2.3.0-alpha.2
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/cjs/Accordion/Accordion.js +51 -55
- package/cjs/Accordion/Accordion.js.map +7 -0
- package/cjs/Accordion/index.js +28 -12
- package/cjs/Accordion/index.js.map +7 -0
- package/cjs/Accordion/propTypes.js +53 -22
- package/cjs/Accordion/propTypes.js.map +7 -0
- package/cjs/CategoryBox/CategoryBox.js +74 -73
- package/cjs/CategoryBox/CategoryBox.js.map +7 -0
- package/cjs/CategoryBox/index.js +36 -10
- package/cjs/CategoryBox/index.js.map +7 -0
- package/cjs/CollectionBox/CollectionBox.js +96 -84
- package/cjs/CollectionBox/CollectionBox.js.map +7 -0
- package/cjs/CollectionBox/index.js +36 -10
- package/cjs/CollectionBox/index.js.map +7 -0
- package/cjs/FullPageContainer/FullPageContainer.js +48 -42
- package/cjs/FullPageContainer/FullPageContainer.js.map +7 -0
- package/cjs/FullPageContainer/FullPageContainerScroll.js +45 -43
- package/cjs/FullPageContainer/FullPageContainerScroll.js.map +7 -0
- package/cjs/FullPageContainer/index.js +37 -11
- package/cjs/FullPageContainer/index.js.map +7 -0
- package/cjs/FullPageContainer/useMobileHeight.js +40 -18
- package/cjs/FullPageContainer/useMobileHeight.js.map +7 -0
- package/cjs/GlobalHeader/MobileGlobalHeader.js +105 -132
- package/cjs/GlobalHeader/MobileGlobalHeader.js.map +7 -0
- package/cjs/GlobalHeader/index.js +36 -10
- package/cjs/GlobalHeader/index.js.map +7 -0
- package/cjs/GlobalHeader/styles.js +114 -39
- package/cjs/GlobalHeader/styles.js.map +7 -0
- package/cjs/GroupBox/GroupBox.js +77 -79
- package/cjs/GroupBox/GroupBox.js.map +7 -0
- package/cjs/GroupBox/index.js +36 -10
- package/cjs/GroupBox/index.js.map +7 -0
- package/cjs/Icons/EM_logo.js +41 -18
- package/cjs/Icons/EM_logo.js.map +7 -0
- package/cjs/InfiniteLoader/Infiniteloader.js +64 -77
- package/cjs/InfiniteLoader/Infiniteloader.js.map +7 -0
- package/cjs/InfiniteLoader/Loader.js +46 -27
- package/cjs/InfiniteLoader/Loader.js.map +7 -0
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +77 -82
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js.map +7 -0
- package/cjs/InfiniteLoader/index.js +39 -13
- package/cjs/InfiniteLoader/index.js.map +7 -0
- package/cjs/InfiniteLoader/styled.js +50 -15
- package/cjs/InfiniteLoader/styled.js.map +7 -0
- package/cjs/LoadingPage/Page.js +79 -78
- package/cjs/LoadingPage/Page.js.map +7 -0
- package/cjs/LoadingPage/index.js +37 -10
- package/cjs/LoadingPage/index.js.map +7 -0
- package/cjs/MobileActionToolbar/MobileActionToolbar.js +59 -47
- package/cjs/MobileActionToolbar/MobileActionToolbar.js.map +7 -0
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +48 -48
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js.map +7 -0
- package/cjs/MobileActionToolbar/index.js +38 -13
- package/cjs/MobileActionToolbar/index.js.map +7 -0
- package/cjs/MobileBanner/MobileBanner.js +105 -99
- package/cjs/MobileBanner/MobileBanner.js.map +7 -0
- package/cjs/MobileBanner/defaultProps.js +38 -11
- package/cjs/MobileBanner/defaultProps.js.map +7 -0
- package/cjs/MobileBanner/index.d.js +27 -2
- package/cjs/MobileBanner/index.d.js.map +7 -0
- package/cjs/MobileBanner/index.js +38 -12
- package/cjs/MobileBanner/index.js.map +7 -0
- package/cjs/MobileBanner/propTypes.js +46 -19
- package/cjs/MobileBanner/propTypes.js.map +7 -0
- package/cjs/MobileBanner/styles.js +127 -173
- package/cjs/MobileBanner/styles.js.map +7 -0
- package/cjs/MobileBanner/utils/bannerTypes.js +38 -10
- package/cjs/MobileBanner/utils/bannerTypes.js.map +7 -0
- package/cjs/MobileBanner/utils/icons.js +40 -18
- package/cjs/MobileBanner/utils/icons.js.map +7 -0
- package/cjs/MobileBanner/utils/styleHelpers.js +90 -41
- package/cjs/MobileBanner/utils/styleHelpers.js.map +7 -0
- package/cjs/MobileCard/ActionAddon.js +66 -34
- package/cjs/MobileCard/ActionAddon.js.map +7 -0
- package/cjs/MobileCard/Card.js +163 -124
- package/cjs/MobileCard/Card.js.map +7 -0
- package/cjs/MobileCard/CardIcons.js +102 -33
- package/cjs/MobileCard/CardIcons.js.map +7 -0
- package/cjs/MobileCard/ExpandChevron.js +55 -31
- package/cjs/MobileCard/ExpandChevron.js.map +7 -0
- package/cjs/MobileCard/ExpandableRegion.js +75 -50
- package/cjs/MobileCard/ExpandableRegion.js.map +7 -0
- package/cjs/MobileCard/Group.js +91 -84
- package/cjs/MobileCard/Group.js.map +7 -0
- package/cjs/MobileCard/StyledCard.js +44 -16
- package/cjs/MobileCard/StyledCard.js.map +7 -0
- package/cjs/MobileCard/index.js +45 -18
- package/cjs/MobileCard/index.js.map +7 -0
- package/cjs/MobileCard/props.js +48 -60
- package/cjs/MobileCard/props.js.map +7 -0
- package/cjs/MobileCard/useHeight.js +43 -18
- package/cjs/MobileCard/useHeight.js.map +7 -0
- package/cjs/MobileContextMenu/MobileContextMenu.js +191 -187
- package/cjs/MobileContextMenu/MobileContextMenu.js.map +7 -0
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +75 -87
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js.map +7 -0
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +146 -147
- package/cjs/MobileContextMenu/MobileContextMenuItem.js.map +7 -0
- package/cjs/MobileContextMenu/index.js +30 -16
- package/cjs/MobileContextMenu/index.js.map +7 -0
- package/cjs/MobileDatePicker/Input.js +74 -38
- package/cjs/MobileDatePicker/Input.js.map +7 -0
- package/cjs/MobileDatePicker/MobileDatePicker.js +70 -87
- package/cjs/MobileDatePicker/MobileDatePicker.js.map +7 -0
- package/cjs/MobileDatePicker/index.js +28 -10
- package/cjs/MobileDatePicker/index.js.map +7 -0
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +93 -58
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js.map +7 -0
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +88 -83
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js.map +7 -0
- package/cjs/MobileDropdownMenu/index.js +36 -12
- package/cjs/MobileDropdownMenu/index.js.map +7 -0
- package/cjs/MobileEmtpyState/MobileEmptyState.js +58 -37
- package/cjs/MobileEmtpyState/MobileEmptyState.js.map +7 -0
- package/cjs/MobileEmtpyState/index.js +37 -11
- package/cjs/MobileEmtpyState/index.js.map +7 -0
- package/cjs/MobileFilterbar/Filterbar.js +67 -40
- package/cjs/MobileFilterbar/Filterbar.js.map +7 -0
- package/cjs/MobileFilterbar/FilterbarItem.js +49 -33
- package/cjs/MobileFilterbar/FilterbarItem.js.map +7 -0
- package/cjs/MobileFilterbar/FilterbarSort.js +56 -42
- package/cjs/MobileFilterbar/FilterbarSort.js.map +7 -0
- package/cjs/MobileFilterbar/index.js +42 -16
- package/cjs/MobileFilterbar/index.js.map +7 -0
- package/cjs/MobileFooter/Action.js +68 -58
- package/cjs/MobileFooter/Action.js.map +7 -0
- package/cjs/MobileFooter/Footer.js +62 -57
- package/cjs/MobileFooter/Footer.js.map +7 -0
- package/cjs/MobileFooter/Text.js +48 -30
- package/cjs/MobileFooter/Text.js.map +7 -0
- package/cjs/MobileFooter/index.js +42 -16
- package/cjs/MobileFooter/index.js.map +7 -0
- package/cjs/MobileListItem/MobileListItem.js +80 -55
- package/cjs/MobileListItem/MobileListItem.js.map +7 -0
- package/cjs/MobileListItem/index.js +28 -10
- package/cjs/MobileListItem/index.js.map +7 -0
- package/cjs/MobilePageHeader/MobilePageHeader.js +149 -121
- package/cjs/MobilePageHeader/MobilePageHeader.js.map +7 -0
- package/cjs/MobilePageHeader/index.js +28 -10
- package/cjs/MobilePageHeader/index.js.map +7 -0
- package/cjs/MobileSelectList/MobileSelectList.js +144 -132
- package/cjs/MobileSelectList/MobileSelectList.js.map +7 -0
- package/cjs/MobileSelectList/index.js +28 -9
- package/cjs/MobileSelectList/index.js.map +7 -0
- package/cjs/MobileSelectList/styled.js +78 -52
- package/cjs/MobileSelectList/styled.js.map +7 -0
- package/cjs/MobileSeparator/Separator.js +56 -61
- package/cjs/MobileSeparator/Separator.js.map +7 -0
- package/cjs/MobileSeparator/index.js +37 -10
- package/cjs/MobileSeparator/index.js.map +7 -0
- package/cjs/MobileTimePicker/Input.js +74 -38
- package/cjs/MobileTimePicker/Input.js.map +7 -0
- package/cjs/MobileTimePicker/MobileTimePicker.js +74 -90
- package/cjs/MobileTimePicker/MobileTimePicker.js.map +7 -0
- package/cjs/MobileTimePicker/index.js +28 -10
- package/cjs/MobileTimePicker/index.js.map +7 -0
- package/cjs/MobileTouchable/MobileTouchable.js +69 -57
- package/cjs/MobileTouchable/MobileTouchable.js.map +7 -0
- package/cjs/MobileTouchable/index.js +28 -9
- package/cjs/MobileTouchable/index.js.map +7 -0
- package/cjs/Modal/Modal.js +135 -129
- package/cjs/Modal/Modal.js.map +7 -0
- package/cjs/Modal/index.js +36 -10
- package/cjs/Modal/index.js.map +7 -0
- package/cjs/Modal/styled.js +94 -42
- package/cjs/Modal/styled.js.map +7 -0
- package/cjs/PageFilter/PageFilter.js +115 -76
- package/cjs/PageFilter/PageFilter.js.map +7 -0
- package/cjs/PageForm/PageForm.js +63 -50
- package/cjs/PageForm/PageForm.js.map +7 -0
- package/cjs/PageList/PageList.js +60 -38
- package/cjs/PageList/PageList.js.map +7 -0
- package/cjs/PageList/index.js +28 -10
- package/cjs/PageList/index.js.map +7 -0
- package/cjs/PageSearch/PageSearch.js +72 -42
- package/cjs/PageSearch/PageSearch.js.map +7 -0
- package/cjs/PageSummary/PageSummary.js +66 -55
- package/cjs/PageSummary/PageSummary.js.map +7 -0
- package/cjs/PageSummary/Tags.js +65 -36
- package/cjs/PageSummary/Tags.js.map +7 -0
- package/cjs/SideNav/SideNav.js +83 -110
- package/cjs/SideNav/SideNav.js.map +7 -0
- package/cjs/SideNav/index.js +36 -10
- package/cjs/SideNav/index.js.map +7 -0
- package/cjs/SideNav/styles.js +128 -42
- package/cjs/SideNav/styles.js.map +7 -0
- package/cjs/SwipeToRefresh/ProgressIndicator.js +51 -28
- package/cjs/SwipeToRefresh/ProgressIndicator.js.map +7 -0
- package/cjs/SwipeToRefresh/ProgressLoader.js +75 -54
- package/cjs/SwipeToRefresh/ProgressLoader.js.map +7 -0
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +67 -64
- package/cjs/SwipeToRefresh/SwipeToRefresh.js.map +7 -0
- package/cjs/SwipeToRefresh/styled.js +57 -28
- package/cjs/SwipeToRefresh/styled.js.map +7 -0
- package/cjs/SwipeToRefresh/useSwipe.js +54 -44
- package/cjs/SwipeToRefresh/useSwipe.js.map +7 -0
- package/cjs/Tabs/index.js +51 -55
- package/cjs/Tabs/index.js.map +7 -0
- package/cjs/Tabs/propTypes.js +49 -24
- package/cjs/Tabs/propTypes.js.map +7 -0
- package/cjs/index.js +94 -132
- package/cjs/index.js.map +7 -0
- package/esm/Accordion/Accordion.js +20 -41
- package/esm/Accordion/Accordion.js.map +7 -0
- package/esm/Accordion/index.js +3 -1
- package/esm/Accordion/index.js.map +7 -0
- package/esm/Accordion/propTypes.js +24 -17
- package/esm/Accordion/propTypes.js.map +7 -0
- package/esm/CategoryBox/CategoryBox.js +44 -62
- package/esm/CategoryBox/CategoryBox.js.map +7 -0
- package/esm/CategoryBox/index.js +7 -1
- package/esm/CategoryBox/index.js.map +7 -0
- package/esm/CollectionBox/CollectionBox.js +66 -73
- package/esm/CollectionBox/CollectionBox.js.map +7 -0
- package/esm/CollectionBox/index.js +7 -1
- package/esm/CollectionBox/index.js.map +7 -0
- package/esm/FullPageContainer/FullPageContainer.js +18 -32
- package/esm/FullPageContainer/FullPageContainer.js.map +7 -0
- package/esm/FullPageContainer/FullPageContainerScroll.js +16 -34
- package/esm/FullPageContainer/FullPageContainerScroll.js.map +7 -0
- package/esm/FullPageContainer/index.js +8 -2
- package/esm/FullPageContainer/index.js.map +7 -0
- package/esm/FullPageContainer/useMobileHeight.js +9 -12
- package/esm/FullPageContainer/useMobileHeight.js.map +7 -0
- package/esm/GlobalHeader/MobileGlobalHeader.js +68 -113
- package/esm/GlobalHeader/MobileGlobalHeader.js.map +7 -0
- package/esm/GlobalHeader/index.js +7 -1
- package/esm/GlobalHeader/index.js.map +7 -0
- package/esm/GlobalHeader/styles.js +85 -25
- package/esm/GlobalHeader/styles.js.map +7 -0
- package/esm/GroupBox/GroupBox.js +48 -69
- package/esm/GroupBox/GroupBox.js.map +7 -0
- package/esm/GroupBox/index.js +7 -1
- package/esm/GroupBox/index.js.map +7 -0
- package/esm/Icons/EM_logo.js +12 -12
- package/esm/Icons/EM_logo.js.map +7 -0
- package/esm/InfiniteLoader/Infiniteloader.js +31 -64
- package/esm/InfiniteLoader/Infiniteloader.js.map +7 -0
- package/esm/InfiniteLoader/Loader.js +17 -18
- package/esm/InfiniteLoader/Loader.js.map +7 -0
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +46 -70
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js.map +7 -0
- package/esm/InfiniteLoader/index.js +13 -2
- package/esm/InfiniteLoader/index.js.map +7 -0
- package/esm/InfiniteLoader/styled.js +21 -7
- package/esm/InfiniteLoader/styled.js.map +7 -0
- package/esm/LoadingPage/Page.js +47 -63
- package/esm/LoadingPage/Page.js.map +7 -0
- package/esm/LoadingPage/index.js +8 -2
- package/esm/LoadingPage/index.js.map +7 -0
- package/esm/MobileActionToolbar/MobileActionToolbar.js +28 -34
- package/esm/MobileActionToolbar/MobileActionToolbar.js.map +7 -0
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js +18 -35
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js.map +7 -0
- package/esm/MobileActionToolbar/index.js +9 -2
- package/esm/MobileActionToolbar/index.js.map +7 -0
- package/esm/MobileBanner/MobileBanner.js +75 -78
- package/esm/MobileBanner/MobileBanner.js.map +7 -0
- package/esm/MobileBanner/defaultProps.js +8 -6
- package/esm/MobileBanner/defaultProps.js.map +7 -0
- package/esm/MobileBanner/index.d.js +2 -1
- package/esm/MobileBanner/index.d.js.map +7 -0
- package/esm/MobileBanner/index.js +9 -2
- package/esm/MobileBanner/index.js.map +7 -0
- package/esm/MobileBanner/propTypes.js +16 -14
- package/esm/MobileBanner/propTypes.js.map +7 -0
- package/esm/MobileBanner/styles.js +99 -156
- package/esm/MobileBanner/styles.js.map +7 -0
- package/esm/MobileBanner/utils/bannerTypes.js +9 -6
- package/esm/MobileBanner/utils/bannerTypes.js.map +7 -0
- package/esm/MobileBanner/utils/icons.js +11 -10
- package/esm/MobileBanner/utils/icons.js.map +7 -0
- package/esm/MobileBanner/utils/styleHelpers.js +57 -24
- package/esm/MobileBanner/utils/styleHelpers.js.map +7 -0
- package/esm/MobileCard/ActionAddon.js +37 -24
- package/esm/MobileCard/ActionAddon.js.map +7 -0
- package/esm/MobileCard/Card.js +125 -104
- package/esm/MobileCard/Card.js.map +7 -0
- package/esm/MobileCard/CardIcons.js +76 -27
- package/esm/MobileCard/CardIcons.js.map +7 -0
- package/esm/MobileCard/ExpandChevron.js +25 -21
- package/esm/MobileCard/ExpandChevron.js.map +7 -0
- package/esm/MobileCard/ExpandableRegion.js +44 -39
- package/esm/MobileCard/ExpandableRegion.js.map +7 -0
- package/esm/MobileCard/Group.js +62 -72
- package/esm/MobileCard/Group.js.map +7 -0
- package/esm/MobileCard/StyledCard.js +15 -8
- package/esm/MobileCard/StyledCard.js.map +7 -0
- package/esm/MobileCard/index.js +14 -9
- package/esm/MobileCard/index.js.map +7 -0
- package/esm/MobileCard/props.js +19 -56
- package/esm/MobileCard/props.js.map +7 -0
- package/esm/MobileCard/useHeight.js +9 -9
- package/esm/MobileCard/useHeight.js.map +7 -0
- package/esm/MobileContextMenu/MobileContextMenu.js +159 -171
- package/esm/MobileContextMenu/MobileContextMenu.js.map +7 -0
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +45 -74
- package/esm/MobileContextMenu/MobileContextMenuGroup.js.map +7 -0
- package/esm/MobileContextMenu/MobileContextMenuItem.js +117 -135
- package/esm/MobileContextMenu/MobileContextMenuItem.js.map +7 -0
- package/esm/MobileContextMenu/index.js +5 -3
- package/esm/MobileContextMenu/index.js.map +7 -0
- package/esm/MobileDatePicker/Input.js +44 -27
- package/esm/MobileDatePicker/Input.js.map +7 -0
- package/esm/MobileDatePicker/MobileDatePicker.js +37 -73
- package/esm/MobileDatePicker/MobileDatePicker.js.map +7 -0
- package/esm/MobileDatePicker/index.js +3 -1
- package/esm/MobileDatePicker/index.js.map +7 -0
- package/esm/MobileDropdownMenu/MobileDropdownInput.js +64 -45
- package/esm/MobileDropdownMenu/MobileDropdownInput.js.map +7 -0
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +59 -70
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js.map +7 -0
- package/esm/MobileDropdownMenu/index.js +7 -2
- package/esm/MobileDropdownMenu/index.js.map +7 -0
- package/esm/MobileEmtpyState/MobileEmptyState.js +29 -27
- package/esm/MobileEmtpyState/MobileEmptyState.js.map +7 -0
- package/esm/MobileEmtpyState/index.js +8 -2
- package/esm/MobileEmtpyState/index.js.map +7 -0
- package/esm/MobileFilterbar/Filterbar.js +38 -30
- package/esm/MobileFilterbar/Filterbar.js.map +7 -0
- package/esm/MobileFilterbar/FilterbarItem.js +20 -24
- package/esm/MobileFilterbar/FilterbarItem.js.map +7 -0
- package/esm/MobileFilterbar/FilterbarSort.js +27 -32
- package/esm/MobileFilterbar/FilterbarSort.js.map +7 -0
- package/esm/MobileFilterbar/index.js +19 -3
- package/esm/MobileFilterbar/index.js.map +7 -0
- package/esm/MobileFooter/Action.js +40 -48
- package/esm/MobileFooter/Action.js.map +7 -0
- package/esm/MobileFooter/Footer.js +31 -43
- package/esm/MobileFooter/Footer.js.map +7 -0
- package/esm/MobileFooter/Text.js +19 -20
- package/esm/MobileFooter/Text.js.map +7 -0
- package/esm/MobileFooter/index.js +13 -3
- package/esm/MobileFooter/index.js.map +7 -0
- package/esm/MobileListItem/MobileListItem.js +47 -41
- package/esm/MobileListItem/MobileListItem.js.map +7 -0
- package/esm/MobileListItem/index.js +3 -1
- package/esm/MobileListItem/index.js.map +7 -0
- package/esm/MobilePageHeader/MobilePageHeader.js +114 -103
- package/esm/MobilePageHeader/MobilePageHeader.js.map +7 -0
- package/esm/MobilePageHeader/index.js +3 -1
- package/esm/MobilePageHeader/index.js.map +7 -0
- package/esm/MobileSelectList/MobileSelectList.js +112 -119
- package/esm/MobileSelectList/MobileSelectList.js.map +7 -0
- package/esm/MobileSelectList/index.js +3 -1
- package/esm/MobileSelectList/index.js.map +7 -0
- package/esm/MobileSelectList/styled.js +47 -35
- package/esm/MobileSelectList/styled.js.map +7 -0
- package/esm/MobileSeparator/Separator.js +27 -51
- package/esm/MobileSeparator/Separator.js.map +7 -0
- package/esm/MobileSeparator/index.js +8 -2
- package/esm/MobileSeparator/index.js.map +7 -0
- package/esm/MobileTimePicker/Input.js +44 -27
- package/esm/MobileTimePicker/Input.js.map +7 -0
- package/esm/MobileTimePicker/MobileTimePicker.js +41 -76
- package/esm/MobileTimePicker/MobileTimePicker.js.map +7 -0
- package/esm/MobileTimePicker/index.js +3 -1
- package/esm/MobileTimePicker/index.js.map +7 -0
- package/esm/MobileTouchable/MobileTouchable.js +36 -43
- package/esm/MobileTouchable/MobileTouchable.js.map +7 -0
- package/esm/MobileTouchable/index.js +3 -1
- package/esm/MobileTouchable/index.js.map +7 -0
- package/esm/Modal/Modal.js +98 -110
- package/esm/Modal/Modal.js.map +7 -0
- package/esm/Modal/index.js +7 -1
- package/esm/Modal/index.js.map +7 -0
- package/esm/Modal/styled.js +65 -27
- package/esm/Modal/styled.js.map +7 -0
- package/esm/PageFilter/PageFilter.js +83 -64
- package/esm/PageFilter/PageFilter.js.map +7 -0
- package/esm/PageForm/PageForm.js +34 -40
- package/esm/PageForm/PageForm.js.map +7 -0
- package/esm/PageList/PageList.js +31 -28
- package/esm/PageList/PageList.js.map +7 -0
- package/esm/PageList/index.js +3 -1
- package/esm/PageList/index.js.map +7 -0
- package/esm/PageSearch/PageSearch.js +43 -32
- package/esm/PageSearch/PageSearch.js.map +7 -0
- package/esm/PageSummary/PageSummary.js +38 -47
- package/esm/PageSummary/PageSummary.js.map +7 -0
- package/esm/PageSummary/Tags.js +37 -26
- package/esm/PageSummary/Tags.js.map +7 -0
- package/esm/SideNav/SideNav.js +48 -95
- package/esm/SideNav/SideNav.js.map +7 -0
- package/esm/SideNav/index.js +7 -1
- package/esm/SideNav/index.js.map +7 -0
- package/esm/SideNav/styles.js +99 -27
- package/esm/SideNav/styles.js.map +7 -0
- package/esm/SwipeToRefresh/ProgressIndicator.js +21 -19
- package/esm/SwipeToRefresh/ProgressIndicator.js.map +7 -0
- package/esm/SwipeToRefresh/ProgressLoader.js +46 -46
- package/esm/SwipeToRefresh/ProgressLoader.js.map +7 -0
- package/esm/SwipeToRefresh/SwipeToRefresh.js +36 -53
- package/esm/SwipeToRefresh/SwipeToRefresh.js.map +7 -0
- package/esm/SwipeToRefresh/styled.js +28 -17
- package/esm/SwipeToRefresh/styled.js.map +7 -0
- package/esm/SwipeToRefresh/useSwipe.js +19 -34
- package/esm/SwipeToRefresh/useSwipe.js.map +7 -0
- package/esm/Tabs/index.js +20 -41
- package/esm/Tabs/index.js.map +7 -0
- package/esm/Tabs/propTypes.js +20 -19
- package/esm/Tabs/propTypes.js.map +7 -0
- package/esm/index.js +75 -44
- package/esm/index.js.map +7 -0
- package/package.json +15 -15
- package/types/Accordion/Accordion.d.ts +2 -2
- package/types/CategoryBox/CategoryBox.d.ts +1 -7
- package/types/CollectionBox/CollectionBox.d.ts +1 -7
- package/types/GlobalHeader/MobileGlobalHeader.d.ts +1 -8
- package/types/GroupBox/GroupBox.d.ts +1 -8
- package/types/InfiniteLoader/Infiniteloader.d.ts +1 -6
- package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +1 -9
- package/types/MobileActionToolbar/MobileActionToolbar.d.ts +1 -7
- package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +1 -4
- package/types/MobileBanner/MobileBanner.d.ts +1 -1
- package/types/MobileCard/Card.d.ts +1 -2
- package/types/MobileCard/Group.d.ts +1 -9
- package/types/MobileContextMenu/MobileContextMenu.d.ts +1 -7
- package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +1 -8
- package/types/MobileContextMenu/MobileContextMenuItem.d.ts +1 -1
- package/types/MobileDatePicker/MobileDatePicker.d.ts +1 -7
- package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +1 -1
- package/types/MobileEmtpyState/MobileEmptyState.d.ts +1 -3
- package/types/MobileFilterbar/Filterbar.d.ts +1 -3
- package/types/MobileFilterbar/FilterbarItem.d.ts +1 -4
- package/types/MobileFilterbar/FilterbarSort.d.ts +1 -3
- package/types/MobileFooter/Footer.d.ts +1 -3
- package/types/MobileFooter/Text.d.ts +1 -3
- package/types/MobileListItem/MobileListItem.d.ts +1 -8
- package/types/MobilePageHeader/MobilePageHeader.d.ts +1 -12
- package/types/MobileSeparator/Separator.d.ts +1 -6
- package/types/Modal/Modal.d.ts +1 -16
- package/types/SwipeToRefresh/SwipeToRefresh.d.ts +1 -5
- package/types/Tabs/index.d.ts +2 -2
- package/cjs/MobileTimePicker/MobileTimePicker.stories.js +0 -35
- package/esm/MobileTimePicker/MobileTimePicker.stories.js +0 -26
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes } from "react-desc";
|
|
3
3
|
const mobileAccordionItemPropTypes = {
|
|
4
|
-
children: PropTypes.node.description(
|
|
5
|
-
title: PropTypes.string.description(
|
|
6
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(
|
|
7
|
-
iconClosed: PropTypes.node.description(
|
|
8
|
-
iconOpened: PropTypes.node.description(
|
|
9
|
-
secondaryTitle: PropTypes.string.description(
|
|
10
|
-
customActions: PropTypes.arrayOf(PropTypes.object).description(
|
|
11
|
-
renderCustomActions: PropTypes.func.description(
|
|
4
|
+
children: PropTypes.node.description("Dimsum AccordionItem content.").isRequired,
|
|
5
|
+
title: PropTypes.string.description("Set a primary title."),
|
|
6
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("Dimsum AccordionItem value, this value should be unique.").isRequired,
|
|
7
|
+
iconClosed: PropTypes.node.description("Custom Dimsum Icon when it is closed."),
|
|
8
|
+
iconOpened: PropTypes.node.description("Custom Dimsum Icon when it is open."),
|
|
9
|
+
secondaryTitle: PropTypes.string.description("Set a secondary title"),
|
|
10
|
+
customActions: PropTypes.arrayOf(PropTypes.object).description("Set Dimsum AccordionItem custom actions."),
|
|
11
|
+
renderCustomActions: PropTypes.func.description("This property will render any JSX in the custom actions area. You can access to all references and active values within the props.")
|
|
12
12
|
};
|
|
13
13
|
const mobileAccordionPropTypes = {
|
|
14
|
-
containerProps: PropTypes.object.description(
|
|
15
|
-
activeValue: PropTypes.oneOfType([
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
containerProps: PropTypes.object.description("Adds props to the container."),
|
|
15
|
+
activeValue: PropTypes.oneOfType([
|
|
16
|
+
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
17
|
+
PropTypes.string,
|
|
18
|
+
PropTypes.number
|
|
19
|
+
]).description("Selected active value. This property makes the component a controlled one."),
|
|
20
|
+
children: PropTypes.node.description("Dimsum AccordionItems to show."),
|
|
21
|
+
allowMultipleOpen: PropTypes.bool.description("Allows multiple Dimsum AccordionItems to be open at the same time."),
|
|
22
|
+
onChange: PropTypes.func.description("Callback function once the Dimsum Accordion changes.")
|
|
19
23
|
};
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
export {
|
|
25
|
+
mobileAccordionItemPropTypes,
|
|
26
|
+
mobileAccordionPropTypes
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=propTypes.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Accordion/propTypes.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from 'react-desc';\n\nexport const mobileAccordionItemPropTypes = {\n children: PropTypes.node.description('Dimsum AccordionItem content.').isRequired,\n title: PropTypes.string.description('Set a primary title.'),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(\n 'Dimsum AccordionItem value, this value should be unique.',\n ).isRequired,\n iconClosed: PropTypes.node.description('Custom Dimsum Icon when it is closed.'),\n iconOpened: PropTypes.node.description('Custom Dimsum Icon when it is open.'),\n secondaryTitle: PropTypes.string.description('Set a secondary title'),\n customActions: PropTypes.arrayOf(PropTypes.object).description('Set Dimsum AccordionItem custom actions.'),\n renderCustomActions: PropTypes.func.description(\n 'This property will render any JSX in the custom actions area. You can access to all references and active values within the props.',\n ),\n};\n\nexport const mobileAccordionPropTypes = {\n containerProps: PropTypes.object.description('Adds props to the container.'),\n activeValue: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n PropTypes.string,\n PropTypes.number,\n ]).description('Selected active value. This property makes the component a controlled one.'),\n children: PropTypes.node.description('Dimsum AccordionItems to show.'),\n allowMultipleOpen: PropTypes.bool.description('Allows multiple Dimsum AccordionItems to be open at the same time.'),\n onChange: PropTypes.func.description('Callback function once the Dimsum Accordion changes.'),\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,MAAM,+BAA+B;AAAA,EAC1C,UAAU,UAAU,KAAK,YAAY,iCAAiC;AAAA,EACtE,OAAO,UAAU,OAAO,YAAY;AAAA,EACpC,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,SAAS,YAC/D,4DACA;AAAA,EACF,YAAY,UAAU,KAAK,YAAY;AAAA,EACvC,YAAY,UAAU,KAAK,YAAY;AAAA,EACvC,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAC7C,eAAe,UAAU,QAAQ,UAAU,QAAQ,YAAY;AAAA,EAC/D,qBAAqB,UAAU,KAAK,YAClC;AAAA;AAIG,MAAM,2BAA2B;AAAA,EACtC,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAC7C,aAAa,UAAU,UAAU;AAAA,IAC/B,UAAU,QAAQ,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU;AAAA,IACnE,UAAU;AAAA,IACV,UAAU;AAAA,KACT,YAAY;AAAA,EACf,UAAU,UAAU,KAAK,YAAY;AAAA,EACrC,mBAAmB,UAAU,KAAK,YAAY;AAAA,EAC9C,UAAU,UAAU,KAAK,YAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,72 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { times } from
|
|
4
|
-
import { PropTypes, describe } from
|
|
5
|
-
import styled from
|
|
6
|
-
import { Grid } from
|
|
7
|
-
import { truncate } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
children
|
|
23
|
-
} = _ref;
|
|
24
|
-
const rows = ['auto'];
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { times } from "lodash";
|
|
4
|
+
import { PropTypes, describe } from "react-desc";
|
|
5
|
+
import styled from "styled-components";
|
|
6
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
7
|
+
import { truncate } from "@elliemae/ds-system";
|
|
8
|
+
const Title = styled.h3`
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
color: ${(props2) => props2.theme.colors.neutral["700"]};
|
|
12
|
+
line-height: inherit;
|
|
13
|
+
${truncate()}
|
|
14
|
+
font-weight: ${(props2) => props2.theme.fontWeights.semibold};
|
|
15
|
+
`;
|
|
16
|
+
const CategoryBox = styled(Grid)`
|
|
17
|
+
background: ${(props2) => props2.theme.colors.neutral["0"]};
|
|
18
|
+
border-top: ${(props2) => props2.borderTop ? `1px solid ${props2.theme.colors.neutral["100"]}` : "none"};
|
|
19
|
+
`;
|
|
20
|
+
const DSCategoryBox = ({ borderTop = true, actionsRight = [], title, headerLevel = 3, children }) => {
|
|
21
|
+
const rows = ["auto"];
|
|
25
22
|
const hasActions = actionsRight.length > 0;
|
|
26
|
-
if (hasActions)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
if (hasActions)
|
|
24
|
+
rows.push("auto");
|
|
25
|
+
return /* @__PURE__ */ React2.createElement(Grid, {
|
|
26
|
+
rows: ["40px", "auto"]
|
|
27
|
+
}, /* @__PURE__ */ React2.createElement(CategoryBox, {
|
|
30
28
|
cols: rows,
|
|
31
|
-
borderTop
|
|
29
|
+
borderTop,
|
|
32
30
|
alignItems: "center",
|
|
33
31
|
pl: "xs",
|
|
34
|
-
pr: actionsRight.length > 0 ?
|
|
35
|
-
},
|
|
36
|
-
as:
|
|
37
|
-
},
|
|
38
|
-
cols: times(actionsRight.length, () =>
|
|
32
|
+
pr: actionsRight.length > 0 ? "xxs" : "xs"
|
|
33
|
+
}, /* @__PURE__ */ React2.createElement(Title, {
|
|
34
|
+
as: `h${headerLevel}`
|
|
35
|
+
}, title), hasActions && /* @__PURE__ */ React2.createElement(Grid, {
|
|
36
|
+
cols: times(actionsRight.length, () => "auto"),
|
|
39
37
|
justifySelf: "end"
|
|
40
|
-
},
|
|
38
|
+
}, actionsRight)), children);
|
|
41
39
|
};
|
|
42
|
-
|
|
43
40
|
const props = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Toggle border top of category box
|
|
51
|
-
*/
|
|
52
|
-
borderTop: PropTypes.bool.description('Toggle border top of category box'),
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Array of button icons
|
|
56
|
-
*/
|
|
57
|
-
actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* semantic level of header tag for the title
|
|
61
|
-
*/
|
|
62
|
-
headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* In-box children
|
|
66
|
-
*/
|
|
67
|
-
children: PropTypes.element.description('In-box children')
|
|
41
|
+
title: PropTypes.string.isRequired.description("Category Box title"),
|
|
42
|
+
borderTop: PropTypes.bool.description("Toggle border top of category box"),
|
|
43
|
+
actionsRight: PropTypes.arrayOf(PropTypes.element).description("Array of button icons"),
|
|
44
|
+
headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description("semantic level of header tag for the title"),
|
|
45
|
+
children: PropTypes.element.description("In-box children")
|
|
68
46
|
};
|
|
47
|
+
DSCategoryBox.propTypes = props;
|
|
69
48
|
const DSCategoryBoxWithSchema = describe(DSCategoryBox);
|
|
70
49
|
DSCategoryBoxWithSchema.propTypes = props;
|
|
71
|
-
|
|
72
|
-
|
|
50
|
+
export {
|
|
51
|
+
DSCategoryBox,
|
|
52
|
+
DSCategoryBoxWithSchema
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=CategoryBox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CategoryBox/CategoryBox.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { times } from 'lodash';\nimport { PropTypes, describe } from 'react-desc';\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst Title = styled.h3`\n font-size: 18px;\n margin: 0;\n color: ${(props) => props.theme.colors.neutral['700']};\n line-height: inherit;\n ${truncate()}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n`;\n\nconst CategoryBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['0']};\n border-top: ${(props) => (props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none')};\n`;\n\nconst DSCategoryBox = ({ borderTop = true, actionsRight = [], title, headerLevel = 3, children }) => {\n const rows = ['auto'];\n const hasActions = actionsRight.length > 0;\n if (hasActions) rows.push('auto');\n\n return (\n <Grid rows={['40px', 'auto']}>\n <CategoryBox\n cols={rows}\n borderTop={borderTop}\n alignItems=\"center\"\n pl=\"xs\"\n pr={actionsRight.length > 0 ? 'xxs' : 'xs'}\n >\n <Title as={`h${headerLevel}`}>{title}</Title>\n {hasActions && (\n <Grid cols={times(actionsRight.length, () => 'auto')} justifySelf=\"end\">\n {actionsRight}\n </Grid>\n )}\n </CategoryBox>\n {children}\n </Grid>\n );\n};\n\nconst props = {\n /**\n * Category Box title\n */\n title: PropTypes.string.isRequired.description('Category Box title'),\n /**\n * Toggle border top of category box\n */\n borderTop: PropTypes.bool.description('Toggle border top of category box'),\n /**\n * Array of button icons\n */\n actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),\n /**\n * semantic level of header tag for the title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),\n /**\n * In-box children\n */\n children: PropTypes.element.description('In-box children'),\n};\n\nDSCategoryBox.propTypes = props;\n\nconst DSCategoryBoxWithSchema = describe(DSCategoryBox);\nDSCategoryBoxWithSchema.propTypes = props;\n\nexport { DSCategoryBox, DSCategoryBoxWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA,WAGV,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,IAE7C;AAAA,iBACa,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA;AAGpD,MAAM,cAAc,OAAO;AAAA,gBACX,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA,gBACtC,CAAC,WAAW,OAAM,YAAY,aAAa,OAAM,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGjG,MAAM,gBAAgB,CAAC,EAAE,YAAY,MAAM,eAAe,IAAI,OAAO,cAAc,GAAG,eAAe;AACnG,QAAM,OAAO,CAAC;AACd,QAAM,aAAa,aAAa,SAAS;AACzC,MAAI;AAAY,SAAK,KAAK;AAE1B,SACE,qCAAC,MAAD;AAAA,IAAM,MAAM,CAAC,QAAQ;AAAA,KACnB,qCAAC,aAAD;AAAA,IACE,MAAM;AAAA,IACN;AAAA,IACA,YAAW;AAAA,IACX,IAAG;AAAA,IACH,IAAI,aAAa,SAAS,IAAI,QAAQ;AAAA,KAEtC,qCAAC,OAAD;AAAA,IAAO,IAAI,IAAI;AAAA,KAAgB,QAC9B,cACC,qCAAC,MAAD;AAAA,IAAM,MAAM,MAAM,aAAa,QAAQ,MAAM;AAAA,IAAS,aAAY;AAAA,KAC/D,gBAIN;AAAA;AAKP,MAAM,QAAQ;AAAA,EAIZ,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAI/C,WAAW,UAAU,KAAK,YAAY;AAAA,EAItC,cAAc,UAAU,QAAQ,UAAU,SAAS,YAAY;AAAA,EAI/D,aAAa,UAAU,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,YAAY;AAAA,EAI7D,UAAU,UAAU,QAAQ,YAAY;AAAA;AAG1C,cAAc,YAAY;AAE1B,MAAM,0BAA0B,SAAS;AACzC,wBAAwB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/CategoryBox/index.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSCategoryBox, DSCategoryBoxWithSchema } from "./CategoryBox";
|
|
3
|
+
export {
|
|
4
|
+
DSCategoryBox,
|
|
5
|
+
DSCategoryBoxWithSchema
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CategoryBox/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSCategoryBox, DSCategoryBoxWithSchema } from './CategoryBox';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,87 +1,80 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PropTypes, describe } from
|
|
4
|
-
import styled from
|
|
5
|
-
import { Grid } from
|
|
6
|
-
import { truncate } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
6
|
+
import { truncate } from "@elliemae/ds-system";
|
|
7
|
+
const CollectionBox = styled(Grid)`
|
|
8
|
+
background: ${(props2) => props2.theme.colors.neutral["000"]};
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
color: ${(props2) => props2.theme.colors.neutral["700"]};
|
|
11
|
+
font-weight: ${(props2) => props2.theme.fontWeights.semibold};
|
|
12
|
+
border-top: 1px solid ${(props2) => props2.theme.colors.neutral["100"]};
|
|
13
|
+
`;
|
|
14
|
+
const Footer = styled(Grid)`
|
|
15
|
+
border-top: 1px dashed ${(props2) => props2.theme.colors.neutral["100"]};
|
|
16
|
+
`;
|
|
17
|
+
const Body = styled(Grid)`
|
|
18
|
+
min-height: 92px;
|
|
19
|
+
font-weight: ${(props2) => props2.theme.fontWeights.regular};
|
|
20
|
+
`;
|
|
21
|
+
const Header = styled.h3`
|
|
22
|
+
line-height: unset;
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
font-weight: inherit;
|
|
25
|
+
margin: 0;
|
|
26
|
+
${truncate()}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
const ActionWrap = styled(Grid)`
|
|
30
|
+
& .em-ds-button {
|
|
31
|
+
padding: 0;
|
|
32
|
+
min-width: unset;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const DSCollectionBox = ({ body, title, headerAction, footerAction, headerLevel = 3 }) => {
|
|
32
36
|
const headerCols = [];
|
|
33
37
|
const footerCols = [];
|
|
34
38
|
const rows = [];
|
|
35
|
-
if (headerAction || title)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
if (headerAction || title)
|
|
40
|
+
rows.push("40px");
|
|
41
|
+
rows.push("auto");
|
|
42
|
+
if (footerAction)
|
|
43
|
+
rows.push("40px");
|
|
44
|
+
if (headerAction)
|
|
45
|
+
headerCols.push("auto");
|
|
46
|
+
if (title)
|
|
47
|
+
headerCols.push("auto");
|
|
48
|
+
if (footerAction)
|
|
49
|
+
footerCols.push("auto");
|
|
50
|
+
return /* @__PURE__ */ React2.createElement(CollectionBox, {
|
|
51
|
+
rows
|
|
52
|
+
}, /* @__PURE__ */ React2.createElement(Grid, {
|
|
44
53
|
alignItems: "center",
|
|
45
54
|
cols: headerCols
|
|
46
|
-
},
|
|
47
|
-
as:
|
|
48
|
-
},
|
|
55
|
+
}, title && /* @__PURE__ */ React2.createElement(Header, {
|
|
56
|
+
as: `h${headerLevel}`
|
|
57
|
+
}, title), headerAction && /* @__PURE__ */ React2.createElement(ActionWrap, {
|
|
49
58
|
justifySelf: "end"
|
|
50
|
-
},
|
|
59
|
+
}, headerAction)), /* @__PURE__ */ React2.createElement(Body, null, body), footerAction && /* @__PURE__ */ React2.createElement(Footer, {
|
|
51
60
|
alignItems: "center",
|
|
52
61
|
cols: footerCols
|
|
53
|
-
},
|
|
62
|
+
}, /* @__PURE__ */ React2.createElement(ActionWrap, {
|
|
54
63
|
justifySelf: "end"
|
|
55
|
-
},
|
|
64
|
+
}, footerAction)));
|
|
56
65
|
};
|
|
57
|
-
|
|
58
66
|
const props = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Collection box header
|
|
66
|
-
*/
|
|
67
|
-
title: PropTypes.string.description('Collection box header'),
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Collection box header action, expects a button with size s
|
|
71
|
-
*/
|
|
72
|
-
headerAction: PropTypes.element.description('Collection box header action, expects a button with size s'),
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Collection box footer action, expects a button with size s
|
|
76
|
-
*/
|
|
77
|
-
footerAction: PropTypes.element.description('Collection box footer action, expects a button with size s'),
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Semantic header tag used for the header title
|
|
81
|
-
*/
|
|
82
|
-
headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('Semantic header tag used for the header title')
|
|
67
|
+
body: PropTypes.element.isRequired.description("body inside collection box"),
|
|
68
|
+
title: PropTypes.string.description("Collection box header"),
|
|
69
|
+
headerAction: PropTypes.element.description("Collection box header action, expects a button with size s"),
|
|
70
|
+
footerAction: PropTypes.element.description("Collection box footer action, expects a button with size s"),
|
|
71
|
+
headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description("Semantic header tag used for the header title")
|
|
83
72
|
};
|
|
73
|
+
DSCollectionBox.propTypes = props;
|
|
84
74
|
const DSCollectionBoxWithSchema = describe(DSCollectionBox);
|
|
85
75
|
DSCollectionBoxWithSchema.propTypes = props;
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
export {
|
|
77
|
+
DSCollectionBox,
|
|
78
|
+
DSCollectionBoxWithSchema
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=CollectionBox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CollectionBox/CollectionBox.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst CollectionBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['000']};\n font-size: 13px;\n color: ${(props) => props.theme.colors.neutral['700']};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n border-top: 1px solid ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Footer = styled(Grid)`\n border-top: 1px dashed ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Body = styled(Grid)`\n min-height: 92px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n`;\n\nconst Header = styled.h3`\n line-height: unset;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n ${truncate()}\n}\n`;\n\nconst ActionWrap = styled(Grid)`\n & .em-ds-button {\n padding: 0;\n min-width: unset;\n }\n`;\n\nconst DSCollectionBox = ({ body, title, headerAction, footerAction, headerLevel = 3 }) => {\n const headerCols = [];\n const footerCols = [];\n const rows = [];\n if (headerAction || title) rows.push('40px');\n rows.push('auto');\n if (footerAction) rows.push('40px');\n\n if (headerAction) headerCols.push('auto');\n if (title) headerCols.push('auto');\n\n if (footerAction) footerCols.push('auto');\n\n return (\n <CollectionBox rows={rows}>\n <Grid alignItems=\"center\" cols={headerCols}>\n {title && <Header as={`h${headerLevel}`}>{title}</Header>}\n {headerAction && <ActionWrap justifySelf=\"end\">{headerAction}</ActionWrap>}\n </Grid>\n <Body>{body}</Body>\n {footerAction && (\n <Footer alignItems=\"center\" cols={footerCols}>\n <ActionWrap justifySelf=\"end\">{footerAction}</ActionWrap>\n </Footer>\n )}\n </CollectionBox>\n );\n};\n\nconst props = {\n /**\n * body inside collection box\n */\n body: PropTypes.element.isRequired.description('body inside collection box'),\n /**\n * Collection box header\n */\n title: PropTypes.string.description('Collection box header'),\n /**\n * Collection box header action, expects a button with size s\n */\n headerAction: PropTypes.element.description('Collection box header action, expects a button with size s'),\n /**\n * Collection box footer action, expects a button with size s\n */\n footerAction: PropTypes.element.description('Collection box footer action, expects a button with size s'),\n /**\n * Semantic header tag used for the header title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('Semantic header tag used for the header title'),\n};\n\nDSCollectionBox.propTypes = props;\nconst DSCollectionBoxWithSchema = describe(DSCollectionBox);\nDSCollectionBoxWithSchema.propTypes = props;\n\nexport { DSCollectionBox, DSCollectionBoxWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AAEA,MAAM,gBAAgB,OAAO;AAAA,gBACb,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,WAE3C,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA,iBAChC,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA,0BAC1B,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAGhE,MAAM,SAAS,OAAO;AAAA,2BACK,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAGjE,MAAM,OAAO,OAAO;AAAA;AAAA,iBAEH,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA;AAGpD,MAAM,SAAS,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlB;AAAA;AAAA;AAIJ,MAAM,aAAa,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAO1B,MAAM,kBAAkB,CAAC,EAAE,MAAM,OAAO,cAAc,cAAc,cAAc,QAAQ;AACxF,QAAM,aAAa;AACnB,QAAM,aAAa;AACnB,QAAM,OAAO;AACb,MAAI,gBAAgB;AAAO,SAAK,KAAK;AACrC,OAAK,KAAK;AACV,MAAI;AAAc,SAAK,KAAK;AAE5B,MAAI;AAAc,eAAW,KAAK;AAClC,MAAI;AAAO,eAAW,KAAK;AAE3B,MAAI;AAAc,eAAW,KAAK;AAElC,SACE,qCAAC,eAAD;AAAA,IAAe;AAAA,KACb,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,IAAS,MAAM;AAAA,KAC7B,SAAS,qCAAC,QAAD;AAAA,IAAQ,IAAI,IAAI;AAAA,KAAgB,QACzC,gBAAgB,qCAAC,YAAD;AAAA,IAAY,aAAY;AAAA,KAAO,gBAElD,qCAAC,MAAD,MAAO,OACN,gBACC,qCAAC,QAAD;AAAA,IAAQ,YAAW;AAAA,IAAS,MAAM;AAAA,KAChC,qCAAC,YAAD;AAAA,IAAY,aAAY;AAAA,KAAO;AAAA;AAOzC,MAAM,QAAQ;AAAA,EAIZ,MAAM,UAAU,QAAQ,WAAW,YAAY;AAAA,EAI/C,OAAO,UAAU,OAAO,YAAY;AAAA,EAIpC,cAAc,UAAU,QAAQ,YAAY;AAAA,EAI5C,cAAc,UAAU,QAAQ,YAAY;AAAA,EAI5C,aAAa,UAAU,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,YAAY;AAAA;AAG/D,gBAAgB,YAAY;AAC5B,MAAM,4BAA4B,SAAS;AAC3C,0BAA0B,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSCollectionBox, DSCollectionBoxWithSchema } from "./CollectionBox";
|
|
3
|
+
export {
|
|
4
|
+
DSCollectionBox,
|
|
5
|
+
DSCollectionBoxWithSchema
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CollectionBox/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSCollectionBox, DSCollectionBoxWithSchema } from './CollectionBox';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,34 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
-
import 'react';
|
|
9
|
-
import { Grid } from '@elliemae/ds-grid';
|
|
10
|
-
import { useMobileHeight } from './useMobileHeight.js';
|
|
11
|
-
import { jsx } from 'react/jsx-runtime';
|
|
12
|
-
|
|
13
|
-
const _excluded = ["children"];
|
|
14
|
-
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
|
|
19
|
-
const DSFullPageContainer = _ref => {
|
|
20
|
-
let {
|
|
21
|
-
children
|
|
22
|
-
} = _ref,
|
|
23
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
5
|
+
import { useMobileHeight } from "./useMobileHeight";
|
|
6
|
+
const DSFullPageContainer = ({ children, ...props }) => {
|
|
25
7
|
const height = useMobileHeight();
|
|
26
|
-
return
|
|
27
|
-
height
|
|
28
|
-
width: "100%"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}));
|
|
8
|
+
return /* @__PURE__ */ React2.createElement(Grid, {
|
|
9
|
+
height,
|
|
10
|
+
width: "100%",
|
|
11
|
+
...props
|
|
12
|
+
}, children);
|
|
32
13
|
};
|
|
33
|
-
|
|
34
|
-
|
|
14
|
+
DSFullPageContainer.propTypes = {
|
|
15
|
+
children: PropTypes.any
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
DSFullPageContainer
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=FullPageContainer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FullPageContainer/FullPageContainer.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@elliemae/ds-grid';\nimport { useMobileHeight } from './useMobileHeight';\n\nconst DSFullPageContainer = ({ children, ...props }) => {\n const height = useMobileHeight();\n return (\n <Grid height={height} width=\"100%\" {...props}>\n {children}\n </Grid>\n );\n};\n\nDSFullPageContainer.propTypes = {\n children: PropTypes.any,\n};\n\nexport { DSFullPageContainer };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,sBAAsB,CAAC,EAAE,aAAa,YAAY;AACtD,QAAM,SAAS;AACf,SACE,qCAAC,MAAD;AAAA,IAAM;AAAA,IAAgB,OAAM;AAAA,OAAW;AAAA,KACpC;AAAA;AAKP,oBAAoB,YAAY;AAAA,EAC9B,UAAU,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
|
|
18
|
-
const DSFullPageContainerScroll = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
style = {},
|
|
21
|
-
children
|
|
22
|
-
} = _ref,
|
|
23
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
|
|
25
|
-
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({
|
|
26
|
-
maxHeight: "100%",
|
|
27
|
-
style: _objectSpread({
|
|
28
|
-
overflow: 'auto'
|
|
29
|
-
}, style)
|
|
30
|
-
}, props), {}, {
|
|
31
|
-
children: children
|
|
32
|
-
}));
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
5
|
+
const DSFullPageContainerScroll = ({ style = {}, children, ...props }) => /* @__PURE__ */ React2.createElement(Grid, {
|
|
6
|
+
maxHeight: "100%",
|
|
7
|
+
style: { overflow: "auto", ...style },
|
|
8
|
+
...props
|
|
9
|
+
}, children);
|
|
10
|
+
DSFullPageContainerScroll.propTypes = {
|
|
11
|
+
children: PropTypes.any,
|
|
12
|
+
style: PropTypes.object
|
|
33
13
|
};
|
|
34
|
-
|
|
35
|
-
|
|
14
|
+
export {
|
|
15
|
+
DSFullPageContainerScroll
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=FullPageContainerScroll.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FullPageContainer/FullPageContainerScroll.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst DSFullPageContainerScroll = ({ style = {}, children, ...props }) => (\n <Grid maxHeight=\"100%\" style={{ overflow: 'auto', ...style }} {...props}>\n {children}\n </Grid>\n);\n\nDSFullPageContainerScroll.propTypes = {\n children: PropTypes.any,\n style: PropTypes.object,\n};\n\nexport { DSFullPageContainerScroll };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,4BAA4B,CAAC,EAAE,QAAQ,IAAI,aAAa,YAC5D,qCAAC,MAAD;AAAA,EAAM,WAAU;AAAA,EAAO,OAAO,EAAE,UAAU,WAAW;AAAA,KAAa;AAAA,GAC/D;AAIL,0BAA0B,YAAY;AAAA,EACpC,UAAU,UAAU;AAAA,EACpB,OAAO,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSFullPageContainer } from "./FullPageContainer";
|
|
3
|
+
import { DSFullPageContainerScroll } from "./FullPageContainerScroll";
|
|
4
|
+
export {
|
|
5
|
+
DSFullPageContainer,
|
|
6
|
+
DSFullPageContainerScroll
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FullPageContainer/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSFullPageContainer } from './FullPageContainer';\nexport { DSFullPageContainerScroll } from './FullPageContainerScroll';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
4
3
|
function useMobileHeight() {
|
|
5
4
|
const [height, setHeight] = useState(window.innerHeight);
|
|
6
|
-
|
|
7
5
|
const handleHeight = () => {
|
|
8
6
|
setHeight(window.innerHeight);
|
|
9
7
|
};
|
|
10
|
-
|
|
11
8
|
useEffect(() => {
|
|
12
|
-
window.addEventListener(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, []); // Empty array ensures that effect is only run on mount
|
|
16
|
-
|
|
9
|
+
window.addEventListener("resize", handleHeight);
|
|
10
|
+
return () => window.removeEventListener("resize", handleHeight);
|
|
11
|
+
}, []);
|
|
17
12
|
return height;
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
export {
|
|
15
|
+
useMobileHeight
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useMobileHeight.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FullPageContainer/useMobileHeight.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useEffect, useState } from 'react';\n\nexport function useMobileHeight() {\n const [height, setHeight] = useState(window.innerHeight);\n const handleHeight = () => {\n setHeight(window.innerHeight);\n };\n\n useEffect(() => {\n window.addEventListener('resize', handleHeight);\n\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleHeight);\n }, []); // Empty array ensures that effect is only run on mount\n\n return height;\n}\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,2BAA2B;AAChC,QAAM,CAAC,QAAQ,aAAa,SAAS,OAAO;AAC5C,QAAM,eAAe,MAAM;AACzB,cAAU,OAAO;AAAA;AAGnB,YAAU,MAAM;AACd,WAAO,iBAAiB,UAAU;AAGlC,WAAO,MAAM,OAAO,oBAAoB,UAAU;AAAA,KACjD;AAEH,SAAO;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|