@elliemae/ds-mobile 2.2.0-alpha.3 → 3.0.0-next.0
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 +55 -51
- package/cjs/Accordion/index.js +12 -28
- package/cjs/Accordion/propTypes.js +22 -53
- package/cjs/CategoryBox/CategoryBox.js +73 -74
- package/cjs/CategoryBox/index.js +10 -36
- package/cjs/CollectionBox/CollectionBox.js +84 -96
- package/cjs/CollectionBox/index.js +10 -36
- package/cjs/FullPageContainer/FullPageContainer.js +42 -48
- package/cjs/FullPageContainer/FullPageContainerScroll.js +43 -45
- package/cjs/FullPageContainer/index.js +11 -37
- package/cjs/FullPageContainer/useMobileHeight.js +18 -40
- package/cjs/GlobalHeader/MobileGlobalHeader.js +132 -105
- package/cjs/GlobalHeader/index.js +10 -36
- package/cjs/GlobalHeader/styles.js +39 -114
- package/cjs/GroupBox/GroupBox.js +79 -77
- package/cjs/GroupBox/index.js +10 -36
- package/cjs/Icons/EM_logo.js +18 -41
- package/cjs/InfiniteLoader/Infiniteloader.js +77 -64
- package/cjs/InfiniteLoader/Loader.js +27 -46
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +82 -77
- package/cjs/InfiniteLoader/index.js +13 -39
- package/cjs/InfiniteLoader/styled.js +15 -50
- package/cjs/LoadingPage/Page.js +78 -79
- package/cjs/LoadingPage/index.js +10 -37
- package/cjs/MobileActionToolbar/MobileActionToolbar.js +47 -59
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +48 -48
- package/cjs/MobileActionToolbar/index.js +13 -38
- package/cjs/MobileBanner/MobileBanner.js +99 -105
- package/cjs/MobileBanner/defaultProps.js +11 -38
- package/cjs/MobileBanner/index.d.js +2 -27
- package/cjs/MobileBanner/index.js +12 -38
- package/cjs/MobileBanner/propTypes.js +19 -46
- package/cjs/MobileBanner/styles.js +173 -127
- package/cjs/MobileBanner/utils/bannerTypes.js +10 -38
- package/cjs/MobileBanner/utils/icons.js +18 -40
- package/cjs/MobileBanner/utils/styleHelpers.js +41 -90
- package/cjs/MobileCard/ActionAddon.js +34 -66
- package/cjs/MobileCard/Card.js +124 -163
- package/cjs/MobileCard/CardIcons.js +33 -102
- package/cjs/MobileCard/ExpandChevron.js +31 -55
- package/cjs/MobileCard/ExpandableRegion.js +50 -75
- package/cjs/MobileCard/Group.js +84 -91
- package/cjs/MobileCard/StyledCard.js +16 -44
- package/cjs/MobileCard/index.js +18 -45
- package/cjs/MobileCard/props.js +60 -48
- package/cjs/MobileCard/useHeight.js +18 -43
- package/cjs/MobileContextMenu/MobileContextMenu.js +187 -191
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +87 -75
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +147 -146
- package/cjs/MobileContextMenu/index.js +16 -30
- package/cjs/MobileDatePicker/Input.js +38 -74
- package/cjs/MobileDatePicker/MobileDatePicker.js +87 -70
- package/cjs/MobileDatePicker/index.js +10 -28
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +58 -93
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +83 -88
- package/cjs/MobileDropdownMenu/index.js +12 -36
- package/cjs/MobileEmtpyState/MobileEmptyState.js +37 -58
- package/cjs/MobileEmtpyState/index.js +11 -37
- package/cjs/MobileFilterbar/Filterbar.js +40 -67
- package/cjs/MobileFilterbar/FilterbarItem.js +33 -49
- package/cjs/MobileFilterbar/FilterbarSort.js +42 -56
- package/cjs/MobileFilterbar/index.js +16 -42
- package/cjs/MobileFooter/Action.js +58 -68
- package/cjs/MobileFooter/Footer.js +57 -62
- package/cjs/MobileFooter/Text.js +30 -48
- package/cjs/MobileFooter/index.js +16 -42
- package/cjs/MobileListItem/MobileListItem.js +55 -80
- package/cjs/MobileListItem/index.js +10 -28
- package/cjs/MobilePageHeader/MobilePageHeader.js +121 -149
- package/cjs/MobilePageHeader/index.js +10 -28
- package/cjs/MobileSelectList/MobileSelectList.js +132 -144
- package/cjs/MobileSelectList/index.js +9 -28
- package/cjs/MobileSelectList/styled.js +52 -78
- package/cjs/MobileSeparator/Separator.js +61 -56
- package/cjs/MobileSeparator/index.js +10 -37
- package/cjs/MobileTimePicker/Input.js +38 -74
- package/cjs/MobileTimePicker/MobileTimePicker.js +90 -74
- package/cjs/MobileTimePicker/MobileTimePicker.stories.js +35 -0
- package/cjs/MobileTimePicker/index.js +10 -28
- package/cjs/MobileTouchable/MobileTouchable.js +57 -69
- package/cjs/MobileTouchable/index.js +9 -28
- package/cjs/Modal/Modal.js +129 -135
- package/cjs/Modal/index.js +10 -36
- package/cjs/Modal/styled.js +42 -94
- package/cjs/PageFilter/PageFilter.js +76 -115
- package/cjs/PageForm/PageForm.js +50 -63
- package/cjs/PageList/PageList.js +38 -60
- package/cjs/PageList/index.js +10 -28
- package/cjs/PageSearch/PageSearch.js +42 -72
- package/cjs/PageSummary/PageSummary.js +55 -66
- package/cjs/PageSummary/Tags.js +36 -65
- package/cjs/SideNav/SideNav.js +110 -83
- package/cjs/SideNav/index.js +10 -36
- package/cjs/SideNav/styles.js +42 -128
- package/cjs/SwipeToRefresh/ProgressIndicator.js +28 -51
- package/cjs/SwipeToRefresh/ProgressLoader.js +54 -75
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +64 -67
- package/cjs/SwipeToRefresh/styled.js +28 -57
- package/cjs/SwipeToRefresh/useSwipe.js +44 -54
- package/cjs/Tabs/index.js +55 -51
- package/cjs/Tabs/propTypes.js +24 -49
- package/cjs/index.js +132 -94
- package/esm/Accordion/Accordion.js +41 -20
- package/esm/Accordion/index.js +1 -3
- package/esm/Accordion/propTypes.js +17 -24
- package/esm/CategoryBox/CategoryBox.js +62 -44
- package/esm/CategoryBox/index.js +1 -7
- package/esm/CollectionBox/CollectionBox.js +73 -66
- package/esm/CollectionBox/index.js +1 -7
- package/esm/FullPageContainer/FullPageContainer.js +32 -18
- package/esm/FullPageContainer/FullPageContainerScroll.js +34 -16
- package/esm/FullPageContainer/index.js +2 -8
- package/esm/FullPageContainer/useMobileHeight.js +12 -9
- package/esm/GlobalHeader/MobileGlobalHeader.js +113 -68
- package/esm/GlobalHeader/index.js +1 -7
- package/esm/GlobalHeader/styles.js +25 -85
- package/esm/GroupBox/GroupBox.js +69 -48
- package/esm/GroupBox/index.js +1 -7
- package/esm/Icons/EM_logo.js +12 -12
- package/esm/InfiniteLoader/Infiniteloader.js +64 -31
- package/esm/InfiniteLoader/Loader.js +18 -17
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +70 -46
- package/esm/InfiniteLoader/index.js +2 -13
- package/esm/InfiniteLoader/styled.js +7 -21
- package/esm/LoadingPage/Page.js +63 -47
- package/esm/LoadingPage/index.js +2 -8
- package/esm/MobileActionToolbar/MobileActionToolbar.js +34 -28
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js +35 -18
- package/esm/MobileActionToolbar/index.js +2 -9
- package/esm/MobileBanner/MobileBanner.js +78 -75
- package/esm/MobileBanner/defaultProps.js +6 -8
- package/esm/MobileBanner/index.d.js +1 -2
- package/esm/MobileBanner/index.js +2 -9
- package/esm/MobileBanner/propTypes.js +14 -16
- package/esm/MobileBanner/styles.js +156 -99
- package/esm/MobileBanner/utils/bannerTypes.js +6 -9
- package/esm/MobileBanner/utils/icons.js +10 -11
- package/esm/MobileBanner/utils/styleHelpers.js +24 -57
- package/esm/MobileCard/ActionAddon.js +24 -37
- package/esm/MobileCard/Card.js +104 -125
- package/esm/MobileCard/CardIcons.js +27 -76
- package/esm/MobileCard/ExpandChevron.js +21 -25
- package/esm/MobileCard/ExpandableRegion.js +39 -44
- package/esm/MobileCard/Group.js +72 -62
- package/esm/MobileCard/StyledCard.js +8 -15
- package/esm/MobileCard/index.js +9 -14
- package/esm/MobileCard/props.js +56 -19
- package/esm/MobileCard/useHeight.js +9 -9
- package/esm/MobileContextMenu/MobileContextMenu.js +171 -159
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +74 -45
- package/esm/MobileContextMenu/MobileContextMenuItem.js +135 -117
- package/esm/MobileContextMenu/index.js +3 -5
- package/esm/MobileDatePicker/Input.js +27 -44
- package/esm/MobileDatePicker/MobileDatePicker.js +73 -37
- package/esm/MobileDatePicker/index.js +1 -3
- package/esm/MobileDropdownMenu/MobileDropdownInput.js +45 -64
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +70 -59
- package/esm/MobileDropdownMenu/index.js +2 -7
- package/esm/MobileEmtpyState/MobileEmptyState.js +27 -29
- package/esm/MobileEmtpyState/index.js +2 -8
- package/esm/MobileFilterbar/Filterbar.js +30 -38
- package/esm/MobileFilterbar/FilterbarItem.js +24 -20
- package/esm/MobileFilterbar/FilterbarSort.js +32 -27
- package/esm/MobileFilterbar/index.js +3 -19
- package/esm/MobileFooter/Action.js +48 -40
- package/esm/MobileFooter/Footer.js +43 -31
- package/esm/MobileFooter/Text.js +20 -19
- package/esm/MobileFooter/index.js +3 -13
- package/esm/MobileListItem/MobileListItem.js +41 -47
- package/esm/MobileListItem/index.js +1 -3
- package/esm/MobilePageHeader/MobilePageHeader.js +103 -114
- package/esm/MobilePageHeader/index.js +1 -3
- package/esm/MobileSelectList/MobileSelectList.js +119 -112
- package/esm/MobileSelectList/index.js +1 -3
- package/esm/MobileSelectList/styled.js +35 -47
- package/esm/MobileSeparator/Separator.js +51 -27
- package/esm/MobileSeparator/index.js +2 -8
- package/esm/MobileTimePicker/Input.js +27 -44
- package/esm/MobileTimePicker/MobileTimePicker.js +76 -41
- package/esm/MobileTimePicker/MobileTimePicker.stories.js +26 -0
- package/esm/MobileTimePicker/index.js +1 -3
- package/esm/MobileTouchable/MobileTouchable.js +43 -36
- package/esm/MobileTouchable/index.js +1 -3
- package/esm/Modal/Modal.js +110 -98
- package/esm/Modal/index.js +1 -7
- package/esm/Modal/styled.js +27 -65
- package/esm/PageFilter/PageFilter.js +64 -83
- package/esm/PageForm/PageForm.js +40 -34
- package/esm/PageList/PageList.js +28 -31
- package/esm/PageList/index.js +1 -3
- package/esm/PageSearch/PageSearch.js +32 -43
- package/esm/PageSummary/PageSummary.js +47 -38
- package/esm/PageSummary/Tags.js +26 -37
- package/esm/SideNav/SideNav.js +95 -48
- package/esm/SideNav/index.js +1 -7
- package/esm/SideNav/styles.js +27 -99
- package/esm/SwipeToRefresh/ProgressIndicator.js +19 -21
- package/esm/SwipeToRefresh/ProgressLoader.js +46 -46
- package/esm/SwipeToRefresh/SwipeToRefresh.js +53 -36
- package/esm/SwipeToRefresh/styled.js +17 -28
- package/esm/SwipeToRefresh/useSwipe.js +34 -19
- package/esm/Tabs/index.js +41 -20
- package/esm/Tabs/propTypes.js +19 -20
- package/esm/index.js +44 -75
- package/package.json +15 -15
- package/cjs/Accordion/Accordion.js.map +0 -7
- package/cjs/Accordion/index.js.map +0 -7
- package/cjs/Accordion/propTypes.js.map +0 -7
- package/cjs/CategoryBox/CategoryBox.js.map +0 -7
- package/cjs/CategoryBox/index.js.map +0 -7
- package/cjs/CollectionBox/CollectionBox.js.map +0 -7
- package/cjs/CollectionBox/index.js.map +0 -7
- package/cjs/FullPageContainer/FullPageContainer.js.map +0 -7
- package/cjs/FullPageContainer/FullPageContainerScroll.js.map +0 -7
- package/cjs/FullPageContainer/index.js.map +0 -7
- package/cjs/FullPageContainer/useMobileHeight.js.map +0 -7
- package/cjs/GlobalHeader/MobileGlobalHeader.js.map +0 -7
- package/cjs/GlobalHeader/index.js.map +0 -7
- package/cjs/GlobalHeader/styles.js.map +0 -7
- package/cjs/GroupBox/GroupBox.js.map +0 -7
- package/cjs/GroupBox/index.js.map +0 -7
- package/cjs/Icons/EM_logo.js.map +0 -7
- package/cjs/InfiniteLoader/Infiniteloader.js.map +0 -7
- package/cjs/InfiniteLoader/Loader.js.map +0 -7
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js.map +0 -7
- package/cjs/InfiniteLoader/index.js.map +0 -7
- package/cjs/InfiniteLoader/styled.js.map +0 -7
- package/cjs/LoadingPage/Page.js.map +0 -7
- package/cjs/LoadingPage/index.js.map +0 -7
- package/cjs/MobileActionToolbar/MobileActionToolbar.js.map +0 -7
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js.map +0 -7
- package/cjs/MobileActionToolbar/index.js.map +0 -7
- package/cjs/MobileBanner/MobileBanner.js.map +0 -7
- package/cjs/MobileBanner/defaultProps.js.map +0 -7
- package/cjs/MobileBanner/index.d.js.map +0 -7
- package/cjs/MobileBanner/index.js.map +0 -7
- package/cjs/MobileBanner/propTypes.js.map +0 -7
- package/cjs/MobileBanner/styles.js.map +0 -7
- package/cjs/MobileBanner/utils/bannerTypes.js.map +0 -7
- package/cjs/MobileBanner/utils/icons.js.map +0 -7
- package/cjs/MobileBanner/utils/styleHelpers.js.map +0 -7
- package/cjs/MobileCard/ActionAddon.js.map +0 -7
- package/cjs/MobileCard/Card.js.map +0 -7
- package/cjs/MobileCard/CardIcons.js.map +0 -7
- package/cjs/MobileCard/ExpandChevron.js.map +0 -7
- package/cjs/MobileCard/ExpandableRegion.js.map +0 -7
- package/cjs/MobileCard/Group.js.map +0 -7
- package/cjs/MobileCard/StyledCard.js.map +0 -7
- package/cjs/MobileCard/index.js.map +0 -7
- package/cjs/MobileCard/props.js.map +0 -7
- package/cjs/MobileCard/useHeight.js.map +0 -7
- package/cjs/MobileContextMenu/MobileContextMenu.js.map +0 -7
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js.map +0 -7
- package/cjs/MobileContextMenu/MobileContextMenuItem.js.map +0 -7
- package/cjs/MobileContextMenu/index.js.map +0 -7
- package/cjs/MobileDatePicker/Input.js.map +0 -7
- package/cjs/MobileDatePicker/MobileDatePicker.js.map +0 -7
- package/cjs/MobileDatePicker/index.js.map +0 -7
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js.map +0 -7
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js.map +0 -7
- package/cjs/MobileDropdownMenu/index.js.map +0 -7
- package/cjs/MobileEmtpyState/MobileEmptyState.js.map +0 -7
- package/cjs/MobileEmtpyState/index.js.map +0 -7
- package/cjs/MobileFilterbar/Filterbar.js.map +0 -7
- package/cjs/MobileFilterbar/FilterbarItem.js.map +0 -7
- package/cjs/MobileFilterbar/FilterbarSort.js.map +0 -7
- package/cjs/MobileFilterbar/index.js.map +0 -7
- package/cjs/MobileFooter/Action.js.map +0 -7
- package/cjs/MobileFooter/Footer.js.map +0 -7
- package/cjs/MobileFooter/Text.js.map +0 -7
- package/cjs/MobileFooter/index.js.map +0 -7
- package/cjs/MobileListItem/MobileListItem.js.map +0 -7
- package/cjs/MobileListItem/index.js.map +0 -7
- package/cjs/MobilePageHeader/MobilePageHeader.js.map +0 -7
- package/cjs/MobilePageHeader/index.js.map +0 -7
- package/cjs/MobileSelectList/MobileSelectList.js.map +0 -7
- package/cjs/MobileSelectList/index.js.map +0 -7
- package/cjs/MobileSelectList/styled.js.map +0 -7
- package/cjs/MobileSeparator/Separator.js.map +0 -7
- package/cjs/MobileSeparator/index.js.map +0 -7
- package/cjs/MobileTimePicker/Input.js.map +0 -7
- package/cjs/MobileTimePicker/MobileTimePicker.js.map +0 -7
- package/cjs/MobileTimePicker/index.js.map +0 -7
- package/cjs/MobileTouchable/MobileTouchable.js.map +0 -7
- package/cjs/MobileTouchable/index.js.map +0 -7
- package/cjs/Modal/Modal.js.map +0 -7
- package/cjs/Modal/index.js.map +0 -7
- package/cjs/Modal/styled.js.map +0 -7
- package/cjs/PageFilter/PageFilter.js.map +0 -7
- package/cjs/PageForm/PageForm.js.map +0 -7
- package/cjs/PageList/PageList.js.map +0 -7
- package/cjs/PageList/index.js.map +0 -7
- package/cjs/PageSearch/PageSearch.js.map +0 -7
- package/cjs/PageSummary/PageSummary.js.map +0 -7
- package/cjs/PageSummary/Tags.js.map +0 -7
- package/cjs/SideNav/SideNav.js.map +0 -7
- package/cjs/SideNav/index.js.map +0 -7
- package/cjs/SideNav/styles.js.map +0 -7
- package/cjs/SwipeToRefresh/ProgressIndicator.js.map +0 -7
- package/cjs/SwipeToRefresh/ProgressLoader.js.map +0 -7
- package/cjs/SwipeToRefresh/SwipeToRefresh.js.map +0 -7
- package/cjs/SwipeToRefresh/styled.js.map +0 -7
- package/cjs/SwipeToRefresh/useSwipe.js.map +0 -7
- package/cjs/Tabs/index.js.map +0 -7
- package/cjs/Tabs/propTypes.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/esm/Accordion/Accordion.js.map +0 -7
- package/esm/Accordion/index.js.map +0 -7
- package/esm/Accordion/propTypes.js.map +0 -7
- package/esm/CategoryBox/CategoryBox.js.map +0 -7
- package/esm/CategoryBox/index.js.map +0 -7
- package/esm/CollectionBox/CollectionBox.js.map +0 -7
- package/esm/CollectionBox/index.js.map +0 -7
- package/esm/FullPageContainer/FullPageContainer.js.map +0 -7
- package/esm/FullPageContainer/FullPageContainerScroll.js.map +0 -7
- package/esm/FullPageContainer/index.js.map +0 -7
- package/esm/FullPageContainer/useMobileHeight.js.map +0 -7
- package/esm/GlobalHeader/MobileGlobalHeader.js.map +0 -7
- package/esm/GlobalHeader/index.js.map +0 -7
- package/esm/GlobalHeader/styles.js.map +0 -7
- package/esm/GroupBox/GroupBox.js.map +0 -7
- package/esm/GroupBox/index.js.map +0 -7
- package/esm/Icons/EM_logo.js.map +0 -7
- package/esm/InfiniteLoader/Infiniteloader.js.map +0 -7
- package/esm/InfiniteLoader/Loader.js.map +0 -7
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js.map +0 -7
- package/esm/InfiniteLoader/index.js.map +0 -7
- package/esm/InfiniteLoader/styled.js.map +0 -7
- package/esm/LoadingPage/Page.js.map +0 -7
- package/esm/LoadingPage/index.js.map +0 -7
- package/esm/MobileActionToolbar/MobileActionToolbar.js.map +0 -7
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js.map +0 -7
- package/esm/MobileActionToolbar/index.js.map +0 -7
- package/esm/MobileBanner/MobileBanner.js.map +0 -7
- package/esm/MobileBanner/defaultProps.js.map +0 -7
- package/esm/MobileBanner/index.d.js.map +0 -7
- package/esm/MobileBanner/index.js.map +0 -7
- package/esm/MobileBanner/propTypes.js.map +0 -7
- package/esm/MobileBanner/styles.js.map +0 -7
- package/esm/MobileBanner/utils/bannerTypes.js.map +0 -7
- package/esm/MobileBanner/utils/icons.js.map +0 -7
- package/esm/MobileBanner/utils/styleHelpers.js.map +0 -7
- package/esm/MobileCard/ActionAddon.js.map +0 -7
- package/esm/MobileCard/Card.js.map +0 -7
- package/esm/MobileCard/CardIcons.js.map +0 -7
- package/esm/MobileCard/ExpandChevron.js.map +0 -7
- package/esm/MobileCard/ExpandableRegion.js.map +0 -7
- package/esm/MobileCard/Group.js.map +0 -7
- package/esm/MobileCard/StyledCard.js.map +0 -7
- package/esm/MobileCard/index.js.map +0 -7
- package/esm/MobileCard/props.js.map +0 -7
- package/esm/MobileCard/useHeight.js.map +0 -7
- package/esm/MobileContextMenu/MobileContextMenu.js.map +0 -7
- package/esm/MobileContextMenu/MobileContextMenuGroup.js.map +0 -7
- package/esm/MobileContextMenu/MobileContextMenuItem.js.map +0 -7
- package/esm/MobileContextMenu/index.js.map +0 -7
- package/esm/MobileDatePicker/Input.js.map +0 -7
- package/esm/MobileDatePicker/MobileDatePicker.js.map +0 -7
- package/esm/MobileDatePicker/index.js.map +0 -7
- package/esm/MobileDropdownMenu/MobileDropdownInput.js.map +0 -7
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js.map +0 -7
- package/esm/MobileDropdownMenu/index.js.map +0 -7
- package/esm/MobileEmtpyState/MobileEmptyState.js.map +0 -7
- package/esm/MobileEmtpyState/index.js.map +0 -7
- package/esm/MobileFilterbar/Filterbar.js.map +0 -7
- package/esm/MobileFilterbar/FilterbarItem.js.map +0 -7
- package/esm/MobileFilterbar/FilterbarSort.js.map +0 -7
- package/esm/MobileFilterbar/index.js.map +0 -7
- package/esm/MobileFooter/Action.js.map +0 -7
- package/esm/MobileFooter/Footer.js.map +0 -7
- package/esm/MobileFooter/Text.js.map +0 -7
- package/esm/MobileFooter/index.js.map +0 -7
- package/esm/MobileListItem/MobileListItem.js.map +0 -7
- package/esm/MobileListItem/index.js.map +0 -7
- package/esm/MobilePageHeader/MobilePageHeader.js.map +0 -7
- package/esm/MobilePageHeader/index.js.map +0 -7
- package/esm/MobileSelectList/MobileSelectList.js.map +0 -7
- package/esm/MobileSelectList/index.js.map +0 -7
- package/esm/MobileSelectList/styled.js.map +0 -7
- package/esm/MobileSeparator/Separator.js.map +0 -7
- package/esm/MobileSeparator/index.js.map +0 -7
- package/esm/MobileTimePicker/Input.js.map +0 -7
- package/esm/MobileTimePicker/MobileTimePicker.js.map +0 -7
- package/esm/MobileTimePicker/index.js.map +0 -7
- package/esm/MobileTouchable/MobileTouchable.js.map +0 -7
- package/esm/MobileTouchable/index.js.map +0 -7
- package/esm/Modal/Modal.js.map +0 -7
- package/esm/Modal/index.js.map +0 -7
- package/esm/Modal/styled.js.map +0 -7
- package/esm/PageFilter/PageFilter.js.map +0 -7
- package/esm/PageForm/PageForm.js.map +0 -7
- package/esm/PageList/PageList.js.map +0 -7
- package/esm/PageList/index.js.map +0 -7
- package/esm/PageSearch/PageSearch.js.map +0 -7
- package/esm/PageSummary/PageSummary.js.map +0 -7
- package/esm/PageSummary/Tags.js.map +0 -7
- package/esm/SideNav/SideNav.js.map +0 -7
- package/esm/SideNav/index.js.map +0 -7
- package/esm/SideNav/styles.js.map +0 -7
- package/esm/SwipeToRefresh/ProgressIndicator.js.map +0 -7
- package/esm/SwipeToRefresh/ProgressLoader.js.map +0 -7
- package/esm/SwipeToRefresh/SwipeToRefresh.js.map +0 -7
- package/esm/SwipeToRefresh/styled.js.map +0 -7
- package/esm/SwipeToRefresh/useSwipe.js.map +0 -7
- package/esm/Tabs/index.js.map +0 -7
- package/esm/Tabs/propTypes.js.map +0 -7
- package/esm/index.js.map +0 -7
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const LoaderBox = styled.div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
height: 50px;
|
|
9
|
-
bottom: -50px;
|
|
10
|
-
border-top: 1px solid #e0e3e8;
|
|
11
|
-
align-items: center;
|
|
12
|
-
transition: 400ms cubic-bezier(0, 0, 0.42, 1);
|
|
13
|
-
&.opened {
|
|
14
|
-
transition: 400ms cubic-bezier(0.36, 0, 1, 1);
|
|
15
|
-
bottom: 0;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
export {
|
|
19
|
-
LoaderBox
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=styled.js.map
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const LoaderBox = /*#__PURE__*/styled.div.withConfig({
|
|
4
|
+
componentId: "sc-ejumr4-0"
|
|
5
|
+
})(["position:absolute;width:100%;z-index:10;background-color:white;height:50px;bottom:-50px;border-top:1px solid #e0e3e8;align-items:center;transition:400ms cubic-bezier(0,0,0.42,1);&.opened{transition:400ms cubic-bezier(0.36,0,1,1);bottom:0;}"]);
|
|
6
|
+
|
|
7
|
+
export { LoaderBox };
|
package/esm/LoadingPage/Page.js
CHANGED
|
@@ -1,63 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.constructor.js';
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.to-array.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.to-array.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
10
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
11
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
12
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
13
|
+
import { withTheme } from '@elliemae/ds-system';
|
|
14
|
+
import { get } from 'lodash';
|
|
15
|
+
import styled from 'styled-components';
|
|
16
|
+
import Backdrop from '@elliemae/ds-backdrop';
|
|
17
|
+
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
|
+
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
const LoadingPageLoader = /*#__PURE__*/styled.div.withConfig({
|
|
23
|
+
componentId: "sc-wx0z8k-0"
|
|
24
|
+
})(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], _ref => {
|
|
25
|
+
let {
|
|
26
|
+
type
|
|
27
|
+
} = _ref;
|
|
28
|
+
return type === 'cover' ? 'position: fixed' : 'position: absolute';
|
|
29
|
+
}, props => props.zIndex);
|
|
30
|
+
|
|
31
|
+
const LoadingPage = _ref2 => {
|
|
32
|
+
let {
|
|
33
|
+
backdropZIndex,
|
|
34
|
+
children,
|
|
35
|
+
loader,
|
|
36
|
+
loading,
|
|
37
|
+
type = 'fill',
|
|
38
|
+
zIndex = 1
|
|
39
|
+
} = _ref2;
|
|
21
40
|
const [position, setPosition] = useState(null);
|
|
22
41
|
const childRef = useRef(null);
|
|
23
42
|
useEffect(() => {
|
|
24
43
|
if (childRef && childRef.current) {
|
|
25
44
|
const style = childRef && window.getComputedStyle(childRef.current);
|
|
26
|
-
setPosition(style.getPropertyValue(
|
|
45
|
+
setPosition(style.getPropertyValue('position'));
|
|
27
46
|
}
|
|
28
47
|
}, [childRef]);
|
|
29
|
-
|
|
30
|
-
|
|
48
|
+
|
|
49
|
+
const Back = loading && /*#__PURE__*/_jsx(Backdrop, {
|
|
50
|
+
type: type,
|
|
31
51
|
zIndex: backdropZIndex
|
|
32
52
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
|
|
54
|
+
const Loader = loader && loading && /*#__PURE__*/_jsx(LoadingPageLoader, {
|
|
55
|
+
zIndex: zIndex,
|
|
56
|
+
type: type,
|
|
36
57
|
hide: !loading
|
|
37
|
-
}, loader);
|
|
38
|
-
|
|
58
|
+
}, void 0, loader);
|
|
59
|
+
|
|
60
|
+
const injectRefPosition = child => /*#__PURE__*/React.cloneElement(React.Children.only(child), {
|
|
39
61
|
ref: childRef,
|
|
40
|
-
children:
|
|
41
|
-
style: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
62
|
+
children: React.Children.toArray(child.props.children).concat([Loader, Back]),
|
|
63
|
+
style: _objectSpread(_objectSpread({}, get(child, 'props.style', {})), {}, {
|
|
64
|
+
position: position === 'static' ? 'relative' : position
|
|
65
|
+
})
|
|
45
66
|
});
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
|
|
68
|
+
if (React.Children.count(children) === 0) {
|
|
69
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
70
|
+
children: [Loader, Back]
|
|
71
|
+
});
|
|
48
72
|
}
|
|
73
|
+
|
|
49
74
|
return injectRefPosition(children);
|
|
50
75
|
};
|
|
51
|
-
|
|
52
|
-
backdropZIndex: PropTypes.number,
|
|
53
|
-
children: PropTypes.element,
|
|
54
|
-
loader: PropTypes.arrayOf(PropTypes.element),
|
|
55
|
-
loading: PropTypes.bool,
|
|
56
|
-
type: PropTypes.oneOf(["fill", "cover"]),
|
|
57
|
-
zIndex: PropTypes.number
|
|
58
|
-
};
|
|
76
|
+
|
|
59
77
|
const DSMobileLoadingPage = withTheme(LoadingPage);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=Page.js.map
|
|
78
|
+
|
|
79
|
+
export { DSMobileLoadingPage };
|
package/esm/LoadingPage/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export * from "./Page";
|
|
4
|
-
var LoadingPage_default = DSMobileLoadingPage;
|
|
5
|
-
export {
|
|
6
|
-
LoadingPage_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { DSMobileLoadingPage } from './Page.js';
|
|
2
|
+
export { DSMobileLoadingPage, DSMobileLoadingPage as default } from './Page.js';
|
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PropTypes, describe } from
|
|
4
|
-
import { Grid } from
|
|
5
|
-
import styled from
|
|
6
|
-
import { withTheme } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { PropTypes, describe } from 'react-desc';
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { withTheme } from '@elliemae/ds-system';
|
|
7
|
+
export { default as ToolbarItem } from './MobileActionToolbarItem.js';
|
|
8
|
+
|
|
9
|
+
const ToolStrip = /*#__PURE__*/styled(Grid).withConfig({
|
|
10
|
+
componentId: "sc-162vd15-0"
|
|
11
|
+
})(["display:flex;justify-content:space-around;align-items:center;background-color:", ";"], props => props.theme.colors.neutral['000']);
|
|
12
|
+
|
|
13
|
+
const Toolbar = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
withDepth = true,
|
|
16
|
+
buttons = [],
|
|
17
|
+
theme
|
|
18
|
+
} = _ref;
|
|
15
19
|
const rows = [1];
|
|
16
20
|
const toolbarHeight = theme.space.m;
|
|
17
|
-
const borderStyle = withDepth ? {
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
const borderStyle = withDepth ? {
|
|
22
|
+
boxShadow: '0 1px 5px 0 rgba(0,0,0,0.5)'
|
|
23
|
+
} : {
|
|
24
|
+
boxShadow: 'none'
|
|
25
|
+
};
|
|
26
|
+
return /*#__PURE__*/_jsx(ToolStrip, {
|
|
27
|
+
rows: rows,
|
|
20
28
|
height: toolbarHeight,
|
|
21
29
|
style: borderStyle
|
|
22
|
-
}, buttons);
|
|
30
|
+
}, void 0, buttons);
|
|
23
31
|
};
|
|
32
|
+
|
|
24
33
|
const props = {
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
/** toggle box shadow for buttons border */
|
|
35
|
+
withDepth: PropTypes.bool.description('toggle box shadow for buttons border'),
|
|
36
|
+
|
|
37
|
+
/** button array for the mobile action toolbar */
|
|
38
|
+
buttons: PropTypes.arrayOf(PropTypes.element).description('button array for the mobile action toolbar')
|
|
27
39
|
};
|
|
28
|
-
Toolbar.propTypes = props;
|
|
29
40
|
const DSMobileActionToolbar = withTheme(Toolbar);
|
|
30
41
|
const DSMobileActionToolbarWithSchema = describe(DSMobileActionToolbar);
|
|
31
42
|
DSMobileActionToolbarWithSchema.propTypes = props;
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
DSMobileActionToolbarWithSchema,
|
|
35
|
-
ToolbarItem,
|
|
36
|
-
MobileActionToolbar_default as default
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=MobileActionToolbar.js.map
|
|
43
|
+
|
|
44
|
+
export { DSMobileActionToolbarWithSchema, DSMobileActionToolbar as default };
|
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { PropTypes, describe } from 'react-desc';
|
|
10
|
+
import DSButton from '@elliemae/ds-button';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
const _excluded = ["icon"];
|
|
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 ToolbarItem = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
icon
|
|
22
|
+
} = _ref,
|
|
23
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
|
|
25
|
+
const displayIcon = /*#__PURE__*/React.cloneElement(icon, {
|
|
26
|
+
size: 'm'
|
|
27
|
+
});
|
|
28
|
+
return /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
9
29
|
buttonType: "text",
|
|
10
30
|
icon: displayIcon,
|
|
11
31
|
size: "m"
|
|
12
|
-
});
|
|
32
|
+
}));
|
|
13
33
|
};
|
|
14
|
-
|
|
34
|
+
|
|
35
|
+
ToolbarItem.displayName = 'ToolbarItem';
|
|
15
36
|
const props = {
|
|
16
|
-
|
|
37
|
+
/** toolbar item icon */
|
|
38
|
+
icon: PropTypes.element.description('Toolbar item icon')
|
|
17
39
|
};
|
|
18
|
-
ToolbarItem.propTypes = props;
|
|
19
40
|
const DSToolbarItemWithSchema = describe(ToolbarItem);
|
|
20
41
|
DSToolbarItemWithSchema.propTypes = props;
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
DSToolbarItemWithSchema,
|
|
24
|
-
MobileActionToolbarItem_default as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=MobileActionToolbarItem.js.map
|
|
42
|
+
|
|
43
|
+
export { DSToolbarItemWithSchema, ToolbarItem as default };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
import { default as default2 } from "./MobileActionToolbar";
|
|
4
|
-
import { DSToolbarItemWithSchema } from "./MobileActionToolbarItem";
|
|
5
|
-
export {
|
|
6
|
-
DSToolbarItemWithSchema,
|
|
7
|
-
default2 as default
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { DSMobileActionToolbarWithSchema, default } from './MobileActionToolbar.js';
|
|
2
|
+
export { DSToolbarItemWithSchema, default as ToolbarItem } from './MobileActionToolbarItem.js';
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
+
import { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
10
|
+
import { CloseX } from '@elliemae/ds-icons';
|
|
11
|
+
import { describe } from 'react-desc';
|
|
12
|
+
import { icons } from './utils/icons.js';
|
|
13
|
+
import { propTypes } from './propTypes.js';
|
|
14
|
+
import { defaultProps } from './defaultProps.js';
|
|
15
|
+
import { StyledBannerContainer, StyledInnerContainer, StyledIconContainer, StyledContent, StyledTitle, StyledSubTitle, StyledActionLink, StyledCloseButtonContainer, StyledCloseButton } from './styles.js';
|
|
16
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
|
+
|
|
18
|
+
var _CloseX;
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
const DSMobileBanner = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
type,
|
|
27
|
+
isOpen,
|
|
28
|
+
closeButtonOnClick,
|
|
29
|
+
label,
|
|
30
|
+
body,
|
|
31
|
+
actionLinkLabel,
|
|
32
|
+
actionLinkHref,
|
|
33
|
+
actionLinkOnClick,
|
|
34
|
+
showCloseButton,
|
|
35
|
+
containerProps,
|
|
36
|
+
focusOnOpen
|
|
37
|
+
} = _ref;
|
|
32
38
|
const innerContainerRef = useRef(null);
|
|
33
39
|
const closeRef = useRef(null);
|
|
34
40
|
const [current, setCurrent] = useState(isOpen);
|
|
@@ -41,57 +47,54 @@ const DSMobileBanner = ({
|
|
|
41
47
|
}, [isAnimating, isOpen]);
|
|
42
48
|
useEffect(() => {
|
|
43
49
|
if (focusOnOpen && closeRef.current && isOpen) {
|
|
44
|
-
|
|
50
|
+
var _closeRef$current, _closeRef$current$foc;
|
|
51
|
+
|
|
52
|
+
(_closeRef$current = closeRef.current) === null || _closeRef$current === void 0 ? void 0 : (_closeRef$current$foc = _closeRef$current.focus) === null || _closeRef$current$foc === void 0 ? void 0 : _closeRef$current$foc.call(_closeRef$current);
|
|
45
53
|
}
|
|
46
54
|
}, [focusOnOpen, isOpen]);
|
|
47
55
|
useLayoutEffect(() => {
|
|
48
|
-
if (isOpen !== current || isOpen)
|
|
49
|
-
setIsAnimating(true);
|
|
50
|
-
else
|
|
51
|
-
setIsAnimating(false);
|
|
56
|
+
if (isOpen !== current || isOpen) setIsAnimating(true);else setIsAnimating(false);
|
|
52
57
|
}, [isOpen, current]);
|
|
53
|
-
if (!isAnimating && !isOpen)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
isAnimating,
|
|
58
|
+
if (!isAnimating && !isOpen) return null;
|
|
59
|
+
return /*#__PURE__*/jsx(StyledBannerContainer, _objectSpread(_objectSpread({
|
|
60
|
+
type: type,
|
|
61
|
+
isOpen: isOpen,
|
|
62
|
+
isAnimating: isAnimating,
|
|
59
63
|
onAnimationEnd: () => setCurrent(isOpen),
|
|
60
|
-
height
|
|
61
|
-
|
|
64
|
+
height: height
|
|
65
|
+
}, containerProps), {}, {
|
|
62
66
|
"data-testid": "ds-mobile-banner-container",
|
|
63
|
-
role: "alert"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
67
|
+
role: "alert",
|
|
68
|
+
children: /*#__PURE__*/jsxs(StyledInnerContainer, {
|
|
69
|
+
type: type,
|
|
70
|
+
isOpen: isOpen,
|
|
71
|
+
ref: innerContainerRef,
|
|
72
|
+
isAnimating: isAnimating,
|
|
73
|
+
children: [/*#__PURE__*/_jsx(StyledIconContainer, {
|
|
74
|
+
"data-testid": "ds-mobile-banner-icon"
|
|
75
|
+
}, void 0, icons[type]), /*#__PURE__*/_jsx(StyledContent, {
|
|
76
|
+
showCloseButton: showCloseButton
|
|
77
|
+
}, void 0, /*#__PURE__*/_jsx(StyledTitle, {}, void 0, label), /*#__PURE__*/_jsx(StyledSubTitle, {}, void 0, body, actionLinkLabel && /*#__PURE__*/_jsx(StyledActionLink, {
|
|
78
|
+
href: actionLinkHref,
|
|
79
|
+
"data-testid": "ds-mobile-banner-link",
|
|
80
|
+
onClick: actionLinkOnClick
|
|
81
|
+
}, void 0, actionLinkLabel))), showCloseButton && /*#__PURE__*/_jsx(StyledCloseButtonContainer, {}, void 0, /*#__PURE__*/_jsx(StyledCloseButton, {
|
|
82
|
+
"data-testid": "ds-mobile-banner-close-button",
|
|
83
|
+
buttonType: "link",
|
|
84
|
+
onClick: closeButtonOnClick,
|
|
85
|
+
"aria-label": "Close Banner",
|
|
86
|
+
icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx(CloseX, {
|
|
87
|
+
width: "12px",
|
|
88
|
+
height: "12px"
|
|
89
|
+
})),
|
|
90
|
+
innerRef: closeRef
|
|
91
|
+
}))]
|
|
92
|
+
})
|
|
93
|
+
}));
|
|
88
94
|
};
|
|
95
|
+
|
|
89
96
|
DSMobileBanner.defaultProps = defaultProps;
|
|
90
|
-
DSMobileBanner.propTypes = propTypes;
|
|
91
97
|
const DSMobileBannerWithSchema = describe(DSMobileBanner);
|
|
92
98
|
DSMobileBannerWithSchema.propTypes = propTypes;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
DSMobileBannerWithSchema
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=MobileBanner.js.map
|
|
99
|
+
|
|
100
|
+
export { DSMobileBanner, DSMobileBannerWithSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { MOBILE_BANNER_TYPES } from './utils/bannerTypes.js';
|
|
2
|
+
|
|
3
3
|
const defaultProps = {
|
|
4
4
|
type: MOBILE_BANNER_TYPES.SUCCESS,
|
|
5
5
|
isOpen: false,
|
|
@@ -7,13 +7,11 @@ const defaultProps = {
|
|
|
7
7
|
actionLinkLabel: null,
|
|
8
8
|
actionLinkHref: null,
|
|
9
9
|
actionLinkOnClick: () => null,
|
|
10
|
-
label:
|
|
11
|
-
body:
|
|
10
|
+
label: '',
|
|
11
|
+
body: '',
|
|
12
12
|
showCloseButton: true,
|
|
13
13
|
containerProps: {},
|
|
14
14
|
focusOnOpen: false
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=defaultProps.js.map
|
|
16
|
+
|
|
17
|
+
export { defaultProps };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.d.js.map
|
|
1
|
+
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { MOBILE_BANNER_TYPES } from "./utils/bannerTypes";
|
|
4
|
-
export {
|
|
5
|
-
DSMobileBanner,
|
|
6
|
-
DSMobileBannerWithSchema,
|
|
7
|
-
MOBILE_BANNER_TYPES
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { DSMobileBanner, DSMobileBannerWithSchema } from './MobileBanner.js';
|
|
2
|
+
export { MOBILE_BANNER_TYPES } from './utils/bannerTypes.js';
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
|
|
3
3
|
const propTypes = {
|
|
4
|
-
type: PropTypes.oneOf([
|
|
5
|
-
isOpen: PropTypes.bool.description(
|
|
6
|
-
closeButtonOnClick: PropTypes.func.description(
|
|
7
|
-
actionLinkLabel: PropTypes.string.description(
|
|
8
|
-
actionLinkHref: PropTypes.string.description(
|
|
9
|
-
actionLinkOnClick: PropTypes.string.description(
|
|
10
|
-
label: PropTypes.string.description(
|
|
11
|
-
body: PropTypes.string.description(
|
|
12
|
-
showCloseButton: PropTypes.bool.description(
|
|
13
|
-
containerProps: PropTypes.shape({}).description(
|
|
4
|
+
type: PropTypes.oneOf(['info', 'success', 'warning', 'error']).description('Type of banner'),
|
|
5
|
+
isOpen: PropTypes.bool.description('Whether the banner is open or not'),
|
|
6
|
+
closeButtonOnClick: PropTypes.func.description('OnClick function used in the close button'),
|
|
7
|
+
actionLinkLabel: PropTypes.string.description('Label used in the the action link'),
|
|
8
|
+
actionLinkHref: PropTypes.string.description('Href used in the the action link'),
|
|
9
|
+
actionLinkOnClick: PropTypes.string.description('OnClick function used in the action link'),
|
|
10
|
+
label: PropTypes.string.description('Label text for the banner'),
|
|
11
|
+
body: PropTypes.string.description('Body text for the banner'),
|
|
12
|
+
showCloseButton: PropTypes.bool.description('Whether the close button should be visible or not'),
|
|
13
|
+
containerProps: PropTypes.shape({}).description('Set of properties attached to the banner container'),
|
|
14
14
|
focusOnOpen: PropTypes.bool.description("Whether the banner should get focus when its openedWhether the banner should get focus when it's opened")
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=propTypes.js.map
|
|
16
|
+
|
|
17
|
+
export { propTypes };
|