@elliemae/ds-mobile 2.2.0 → 2.3.0-alpha.3
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/cjs/MobileTimePicker/MobileTimePicker.stories.js +0 -35
- package/esm/MobileTimePicker/MobileTimePicker.stories.js +0 -26
|
@@ -1,156 +1,99 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const StyledInnerContainer =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}, _ref16 => {
|
|
101
|
-
let {
|
|
102
|
-
showCloseButton
|
|
103
|
-
} = _ref16;
|
|
104
|
-
return !showCloseButton ? '28px' : '0';
|
|
105
|
-
});
|
|
106
|
-
const StyledCloseButtonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
107
|
-
componentId: "sc-4jnp92-6"
|
|
108
|
-
})(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
|
|
109
|
-
const StyledCloseButton = /*#__PURE__*/styled(DSButton).withConfig({
|
|
110
|
-
componentId: "sc-4jnp92-7"
|
|
111
|
-
})(["position:relative;&:focus{&:after{display:block;content:' ';position:absolute;top:0;left:0;width:100%;height:100%;border:2px solid ", ";border-radius:2px;pointer-events:none;}}"], _ref17 => {
|
|
112
|
-
let {
|
|
113
|
-
theme
|
|
114
|
-
} = _ref17;
|
|
115
|
-
return theme.colors.brand[700];
|
|
116
|
-
});
|
|
117
|
-
const StyledActionLink = /*#__PURE__*/styled.a.withConfig({
|
|
118
|
-
componentId: "sc-4jnp92-8"
|
|
119
|
-
})(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], _ref18 => {
|
|
120
|
-
let {
|
|
121
|
-
theme
|
|
122
|
-
} = _ref18;
|
|
123
|
-
return theme.space.xs;
|
|
124
|
-
}, _ref19 => {
|
|
125
|
-
let {
|
|
126
|
-
theme
|
|
127
|
-
} = _ref19;
|
|
128
|
-
return toMobile(theme.fontSizes.title[600]);
|
|
129
|
-
}, _ref20 => {
|
|
130
|
-
let {
|
|
131
|
-
theme
|
|
132
|
-
} = _ref20;
|
|
133
|
-
return theme.fontWeights.regular;
|
|
134
|
-
}, _ref21 => {
|
|
135
|
-
let {
|
|
136
|
-
theme
|
|
137
|
-
} = _ref21;
|
|
138
|
-
return theme.colors.brand[600];
|
|
139
|
-
});
|
|
140
|
-
const StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
141
|
-
componentId: "sc-4jnp92-9"
|
|
142
|
-
})(["overflow:hidden;height:", ";", ";"], _ref22 => {
|
|
143
|
-
let {
|
|
144
|
-
isOpen
|
|
145
|
-
} = _ref22;
|
|
146
|
-
return isOpen ? 'auto' : '0px';
|
|
147
|
-
}, _ref23 => {
|
|
148
|
-
let {
|
|
149
|
-
isAnimating,
|
|
150
|
-
isOpen,
|
|
151
|
-
height
|
|
152
|
-
} = _ref23;
|
|
153
|
-
return handleAnimation(isAnimating, isOpen, height);
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
export { StyledActionLink, StyledBannerContainer, StyledCloseButton, StyledCloseButtonContainer, StyledContent, StyledIconContainer, StyledInnerContainer, StyledSubTitle, StyledTextContent, StyledTitle };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { toMobile } from "@elliemae/ds-system";
|
|
4
|
+
import DSButton from "@elliemae/ds-button";
|
|
5
|
+
import { handleAnimation, handleBorderColor } from "./utils/styleHelpers";
|
|
6
|
+
const StyledInnerContainer = styled.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
min-height: 68px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
background-color: ${({ theme }) => theme.colors.neutral["000"]};
|
|
11
|
+
border-bottom: 4px solid ${({ type, theme }) => handleBorderColor(type, theme)};
|
|
12
|
+
transform: translateY(${({ isOpen }) => isOpen ? "0" : "-100%"});
|
|
13
|
+
${({ isAnimating, isOpen }) => handleAnimation(isAnimating, isOpen)};
|
|
14
|
+
`;
|
|
15
|
+
const StyledTextContent = styled.div`
|
|
16
|
+
width: 100%;
|
|
17
|
+
`;
|
|
18
|
+
const StyledTitle = styled.div`
|
|
19
|
+
color: ${({ theme }) => theme.colors.neutral[700]};
|
|
20
|
+
font-size: ${({ theme }) => toMobile(theme.fontSizes.title[700])};
|
|
21
|
+
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
22
|
+
margin-bottom: ${({ theme }) => theme.space.xxs};
|
|
23
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
24
|
+
@media {
|
|
25
|
+
-webkit-font-smoothing: subpixel-antialiased; // fix safari bold render
|
|
26
|
+
-webkit-text-stroke: 0.4px ${({ theme }) => theme.colors.neutral[700]}; // fix safari bold render
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@media screen and (min--moz-device-pixel-ratio: 0) {
|
|
30
|
+
-webkit-font-smoothing: subpixel-antialiased; // fix safari bold render
|
|
31
|
+
-webkit-text-stroke: 0.4px ${({ theme }) => theme.colors.neutral[700]}; // fix safari bold render
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const StyledSubTitle = styled.div`
|
|
35
|
+
font-size: ${({ theme }) => toMobile(theme.fontSizes.title[600])};
|
|
36
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
|
37
|
+
`;
|
|
38
|
+
const StyledIconContainer = styled.div`
|
|
39
|
+
margin-top: 10px;
|
|
40
|
+
margin-right: ${({ theme }) => theme.space.xxs};
|
|
41
|
+
margin-left: ${({ theme }) => theme.space.xs};
|
|
42
|
+
`;
|
|
43
|
+
const StyledContent = styled.div`
|
|
44
|
+
width: 100%;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
margin: ${({ theme }) => theme.space.xxs2} 0;
|
|
48
|
+
margin-right: ${({ showCloseButton }) => !showCloseButton ? "28px" : "0"};
|
|
49
|
+
`;
|
|
50
|
+
const StyledCloseButtonContainer = styled.div`
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
margin-top: 6px;
|
|
54
|
+
margin-right: 6px;
|
|
55
|
+
`;
|
|
56
|
+
const StyledCloseButton = styled(DSButton)`
|
|
57
|
+
position: relative;
|
|
58
|
+
&:focus {
|
|
59
|
+
&:after {
|
|
60
|
+
display: block;
|
|
61
|
+
content: ' ';
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
border: 2px solid ${({ theme }) => theme.colors.brand[700]};
|
|
68
|
+
border-radius: 2px;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const StyledActionLink = styled.a`
|
|
74
|
+
text-decoration: none;
|
|
75
|
+
float: right;
|
|
76
|
+
margin-left: ${({ theme }) => theme.space.xs};
|
|
77
|
+
line-height: 1.1;
|
|
78
|
+
font-size: ${({ theme }) => toMobile(theme.fontSizes.title[600])};
|
|
79
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
|
80
|
+
color: ${({ theme }) => theme.colors.brand[600]};
|
|
81
|
+
`;
|
|
82
|
+
const StyledBannerContainer = styled.div`
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
height: ${({ isOpen }) => isOpen ? "auto" : "0px"};
|
|
85
|
+
${({ isAnimating, isOpen, height }) => handleAnimation(isAnimating, isOpen, height)};
|
|
86
|
+
`;
|
|
87
|
+
export {
|
|
88
|
+
StyledActionLink,
|
|
89
|
+
StyledBannerContainer,
|
|
90
|
+
StyledCloseButton,
|
|
91
|
+
StyledCloseButtonContainer,
|
|
92
|
+
StyledContent,
|
|
93
|
+
StyledIconContainer,
|
|
94
|
+
StyledInnerContainer,
|
|
95
|
+
StyledSubTitle,
|
|
96
|
+
StyledTextContent,
|
|
97
|
+
StyledTitle
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/MobileBanner/styles.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import styled from 'styled-components';\nimport { toMobile } from '@elliemae/ds-system';\nimport DSButton from '@elliemae/ds-button';\nimport type { StyledBannerContainerT, StyledContentT, StyledInnerContainerT } from './index.d';\nimport { handleAnimation, handleBorderColor } from './utils/styleHelpers';\n\nexport const StyledInnerContainer = styled.div<StyledInnerContainerT>`\n display: flex;\n min-height: 68px;\n width: 100%;\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n border-bottom: 4px solid ${({ type, theme }) => handleBorderColor(type, theme)};\n transform: translateY(${({ isOpen }) => (isOpen ? '0' : '-100%')});\n ${({ isAnimating, isOpen }) => handleAnimation(isAnimating, isOpen)};\n`;\n\nexport const StyledTextContent = styled.div`\n width: 100%;\n`;\n\nexport const StyledTitle = styled.div`\n color: ${({ theme }) => theme.colors.neutral[700]};\n font-size: ${({ theme }) => toMobile(theme.fontSizes.title[700])};\n font-weight: ${({ theme }) => theme.fontWeights.semibold};\n margin-bottom: ${({ theme }) => theme.space.xxs};\n @media not all and (min-resolution: 0.001dpcm) {\n @media {\n -webkit-font-smoothing: subpixel-antialiased; // fix safari bold render\n -webkit-text-stroke: 0.4px ${({ theme }) => theme.colors.neutral[700]}; // fix safari bold render\n }\n }\n @media screen and (min--moz-device-pixel-ratio: 0) {\n -webkit-font-smoothing: subpixel-antialiased; // fix safari bold render\n -webkit-text-stroke: 0.4px ${({ theme }) => theme.colors.neutral[700]}; // fix safari bold render\n }\n`;\n\nexport const StyledSubTitle = styled.div`\n font-size: ${({ theme }) => toMobile(theme.fontSizes.title[600])};\n font-weight: ${({ theme }) => theme.fontWeights.regular};\n`;\n\nexport const StyledIconContainer = styled.div`\n margin-top: 10px;\n margin-right: ${({ theme }) => theme.space.xxs};\n margin-left: ${({ theme }) => theme.space.xs};\n`;\n\nexport const StyledContent = styled.div<StyledContentT>`\n width: 100%;\n display: flex;\n flex-direction: column;\n margin: ${({ theme }) => theme.space.xxs2} 0;\n margin-right: ${({ showCloseButton }) => (!showCloseButton ? '28px' : '0')};\n`;\n\nexport const StyledCloseButtonContainer = styled.div`\n display: flex;\n align-items: flex-start;\n margin-top: 6px;\n margin-right: 6px;\n`;\nexport const StyledCloseButton = styled(DSButton)`\n position: relative;\n &:focus {\n &:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n border-radius: 2px;\n pointer-events: none;\n }\n }\n`;\n\nexport const StyledActionLink = styled.a`\n text-decoration: none;\n float: right;\n margin-left: ${({ theme }) => theme.space.xs};\n line-height: 1.1;\n font-size: ${({ theme }) => toMobile(theme.fontSizes.title[600])};\n font-weight: ${({ theme }) => theme.fontWeights.regular};\n color: ${({ theme }) => theme.colors.brand[600]};\n`;\n\nexport const StyledBannerContainer = styled.div<StyledBannerContainerT>`\n overflow: hidden;\n height: ${({ isOpen }) => (isOpen ? 'auto' : '0px')};\n ${({ isAnimating, isOpen, height }) => handleAnimation(isAnimating, isOpen, height)};\n`;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AAEA;AAEO,MAAM,uBAAuB,OAAO;AAAA;AAAA;AAAA;AAAA,sBAIrB,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA,6BAC7B,CAAC,EAAE,MAAM,YAAY,kBAAkB,MAAM;AAAA,0BAChD,CAAC,EAAE,aAAc,SAAS,MAAM;AAAA,IACtD,CAAC,EAAE,aAAa,aAAa,gBAAgB,aAAa;AAAA;AAGvD,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAIjC,MAAM,cAAc,OAAO;AAAA,WACvB,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA,eAChC,CAAC,EAAE,YAAY,SAAS,MAAM,UAAU,MAAM;AAAA,iBAC5C,CAAC,EAAE,YAAY,MAAM,YAAY;AAAA,mBAC/B,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA,mCAIX,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,iCAKtC,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA;AAI9D,MAAM,iBAAiB,OAAO;AAAA,eACtB,CAAC,EAAE,YAAY,SAAS,MAAM,UAAU,MAAM;AAAA,iBAC5C,CAAC,EAAE,YAAY,MAAM,YAAY;AAAA;AAG3C,MAAM,sBAAsB,OAAO;AAAA;AAAA,kBAExB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,iBAC5B,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAGrC,MAAM,gBAAgB,OAAO;AAAA;AAAA;AAAA;AAAA,YAIxB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,kBACrB,CAAC,EAAE,sBAAuB,CAAC,kBAAkB,SAAS;AAAA;AAGjE,MAAM,6BAA6B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAM1C,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAWd,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAOrD,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA,iBAGtB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA,eAE7B,CAAC,EAAE,YAAY,SAAS,MAAM,UAAU,MAAM;AAAA,iBAC5C,CAAC,EAAE,YAAY,MAAM,YAAY;AAAA,WACvC,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAGtC,MAAM,wBAAwB,OAAO;AAAA;AAAA,YAEhC,CAAC,EAAE,aAAc,SAAS,SAAS;AAAA,IAC3C,CAAC,EAAE,aAAa,QAAQ,aAAa,gBAAgB,aAAa,QAAQ;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
const MOBILE_BANNER_TYPES = {
|
|
2
|
-
INFO:
|
|
3
|
-
SUCCESS:
|
|
4
|
-
WARNING:
|
|
5
|
-
ERROR:
|
|
3
|
+
INFO: "info",
|
|
4
|
+
SUCCESS: "success",
|
|
5
|
+
WARNING: "warning",
|
|
6
|
+
ERROR: "error"
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
export {
|
|
9
|
+
MOBILE_BANNER_TYPES
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=bannerTypes.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/MobileBanner/utils/bannerTypes.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const MOBILE_BANNER_TYPES = {\n INFO: 'info',\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error',\n} as const;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,sBAAsB;AAAA,EACjC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { SuccessFill, InfoFill,
|
|
4
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { AlertsDetailFill, SuccessFill, InfoFill, WarningSquare } from "@elliemae/ds-icons";
|
|
5
4
|
const icons = {
|
|
6
|
-
success:
|
|
5
|
+
success: /* @__PURE__ */ React2.createElement(SuccessFill, {
|
|
7
6
|
fill: "#207e56"
|
|
8
7
|
}),
|
|
9
|
-
info:
|
|
8
|
+
info: /* @__PURE__ */ React2.createElement(InfoFill, {
|
|
10
9
|
fill: "#1e79c2"
|
|
11
10
|
}),
|
|
12
|
-
error:
|
|
11
|
+
error: /* @__PURE__ */ React2.createElement(AlertsDetailFill, {
|
|
13
12
|
width: "24px",
|
|
14
13
|
height: "24px",
|
|
15
14
|
fill: "#c64252"
|
|
16
15
|
}),
|
|
17
|
-
warning:
|
|
16
|
+
warning: /* @__PURE__ */ React2.createElement(WarningSquare, {
|
|
18
17
|
width: "24px",
|
|
19
18
|
height: "24px",
|
|
20
19
|
fill: "#d17a00"
|
|
21
20
|
})
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
export {
|
|
23
|
+
icons
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/MobileBanner/utils/icons.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { AlertsDetailFill, SuccessFill, InfoFill, WarningSquare } from '@elliemae/ds-icons';\n\nexport const icons = {\n success: <SuccessFill fill=\"#207e56\" />,\n info: <InfoFill fill=\"#1e79c2\" />,\n error: <AlertsDetailFill width=\"24px\" height=\"24px\" fill=\"#c64252\" />,\n warning: <WarningSquare width=\"24px\" height=\"24px\" fill=\"#d17a00\" />,\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEO,MAAM,QAAQ;AAAA,EACnB,SAAS,qCAAC,aAAD;AAAA,IAAa,MAAK;AAAA;AAAA,EAC3B,MAAM,qCAAC,UAAD;AAAA,IAAU,MAAK;AAAA;AAAA,EACrB,OAAO,qCAAC,kBAAD;AAAA,IAAkB,OAAM;AAAA,IAAO,QAAO;AAAA,IAAO,MAAK;AAAA;AAAA,EACzD,SAAS,qCAAC,eAAD;AAAA,IAAe,OAAM;AAAA,IAAO,QAAO;AAAA,IAAO,MAAK;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,41 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { kfrm, css } from
|
|
3
|
-
import { MOBILE_BANNER_TYPES } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { kfrm, css } from "@elliemae/ds-system";
|
|
3
|
+
import { MOBILE_BANNER_TYPES } from "./bannerTypes";
|
|
4
|
+
const slideIn = kfrm`
|
|
5
|
+
0% {
|
|
6
|
+
transform: translate3d(0, -100%, 0);
|
|
7
|
+
}
|
|
8
|
+
100% {
|
|
9
|
+
transform: translate3d(0, 0, 0);
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
const slideOut = kfrm`
|
|
13
|
+
0% {
|
|
14
|
+
transform: translate3d(0, 0, 0);
|
|
15
|
+
opacity: 1;
|
|
16
|
+
}
|
|
17
|
+
60% {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
100% {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transform: translate3d(0, -100%, 0);
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const spanContainer = (height) => kfrm`
|
|
26
|
+
0% {
|
|
27
|
+
height: 0px;
|
|
28
|
+
}
|
|
29
|
+
100% {
|
|
30
|
+
height: ${height}px;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const shrinkContainer = (height) => kfrm`
|
|
34
|
+
0% {
|
|
35
|
+
height: ${height}px;
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
height: 0px;
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
const handleBorderColor = (type, { colors }) => {
|
|
15
42
|
switch (type) {
|
|
16
43
|
case MOBILE_BANNER_TYPES.SUCCESS:
|
|
17
44
|
return colors.success[900];
|
|
18
|
-
|
|
19
45
|
case MOBILE_BANNER_TYPES.INFO:
|
|
20
46
|
return colors.brand[600];
|
|
21
|
-
|
|
22
47
|
case MOBILE_BANNER_TYPES.WARNING:
|
|
23
48
|
return colors.warning[900];
|
|
24
|
-
|
|
25
49
|
case MOBILE_BANNER_TYPES.ERROR:
|
|
26
50
|
return colors.danger[900];
|
|
27
51
|
}
|
|
28
52
|
};
|
|
29
|
-
const handleAnimation =
|
|
30
|
-
let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
31
|
-
|
|
53
|
+
const handleAnimation = (isAnimating, isOpen, height = null) => {
|
|
32
54
|
if (isAnimating) {
|
|
33
55
|
if (isOpen) {
|
|
34
|
-
return css
|
|
56
|
+
return css`
|
|
57
|
+
animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
|
|
58
|
+
`;
|
|
35
59
|
} else {
|
|
36
|
-
return css
|
|
60
|
+
return css`
|
|
61
|
+
animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
|
|
62
|
+
`;
|
|
37
63
|
}
|
|
38
64
|
}
|
|
39
65
|
};
|
|
40
|
-
|
|
41
|
-
|
|
66
|
+
export {
|
|
67
|
+
handleAnimation,
|
|
68
|
+
handleBorderColor,
|
|
69
|
+
shrinkContainer,
|
|
70
|
+
slideIn,
|
|
71
|
+
slideOut,
|
|
72
|
+
spanContainer
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=styleHelpers.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/MobileBanner/utils/styleHelpers.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { kfrm, css } from '@elliemae/ds-system';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport type { MobileBannerTypesT } from '../index.d';\nimport { MOBILE_BANNER_TYPES } from './bannerTypes';\n\nexport const slideIn = kfrm`\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n 100% {\n transform: translate3d(0, 0, 0);\n }\n`;\n\nexport const slideOut = kfrm`\n 0% {\n transform: translate3d(0, 0, 0);\n opacity: 1;\n }\n 60% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n }\n`;\n\nexport const spanContainer = (height: number) => kfrm`\n 0% {\n height: 0px;\n }\n 100% {\n height: ${height}px;\n }\n`;\n\nexport const shrinkContainer = (height: number) => kfrm`\n 0% {\n height: ${height}px;\n }\n 100% {\n height: 0px;\n }\n`;\n\nexport const handleBorderColor = (type: MobileBannerTypesT, { colors }): string => {\n switch (type) {\n case MOBILE_BANNER_TYPES.SUCCESS:\n return colors.success[900];\n case MOBILE_BANNER_TYPES.INFO:\n return colors.brand[600];\n case MOBILE_BANNER_TYPES.WARNING:\n return colors.warning[900];\n case MOBILE_BANNER_TYPES.ERROR:\n return colors.danger[900];\n }\n};\n\nexport const handleAnimation = (\n isAnimating: boolean,\n isOpen: boolean,\n height: number | null = null,\n): FlattenSimpleInterpolation => {\n if (isAnimating) {\n if (isOpen) {\n return css`\n animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;\n `;\n } else {\n return css`\n animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;\n `;\n }\n }\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAGA;AAEO,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAShB,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcjB,MAAM,gBAAgB,CAAC,WAAmB;AAAA;AAAA;AAAA;AAAA;AAAA,cAKnC;AAAA;AAAA;AAIP,MAAM,kBAAkB,CAAC,WAAmB;AAAA;AAAA,cAErC;AAAA;AAAA;AAAA;AAAA;AAAA;AAOP,MAAM,oBAAoB,CAAC,MAA0B,EAAE,aAAqB;AACjF,UAAQ;AAAA,SACD,oBAAoB;AACvB,aAAO,OAAO,QAAQ;AAAA,SACnB,oBAAoB;AACvB,aAAO,OAAO,MAAM;AAAA,SACjB,oBAAoB;AACvB,aAAO,OAAO,QAAQ;AAAA,SACnB,oBAAoB;AACvB,aAAO,OAAO,OAAO;AAAA;AAAA;AAIpB,MAAM,kBAAkB,CAC7B,aACA,QACA,SAAwB,SACO;AAC/B,MAAI,aAAa;AACf,QAAI,QAAQ;AACV,aAAO;AAAA,qBACQ,SAAS,cAAc,UAAU;AAAA;AAAA,WAE3C;AACL,aAAO;AAAA,qBACQ,SAAS,gBAAgB,UAAU;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,25 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const Addon =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
import { ChevronSmallDown } from "@elliemae/ds-icons";
|
|
6
|
+
import Button from "@elliemae/ds-button";
|
|
7
|
+
const Addon = styled(Button)`
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
padding-right: 4px;
|
|
10
|
+
height: 100%;
|
|
11
|
+
border: none;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-weight: ${(props) => props.theme.fontWeights.semibold};
|
|
14
|
+
color: ${(props) => props.theme.colors.brand["700"]};
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
&:focus,
|
|
17
|
+
&::after {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
box-shadow: none !important; /* needed */
|
|
20
|
+
border: none !important; /* needed */
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const ActionAddon = ({ label, onClick, icon }) => /* @__PURE__ */ React2.createElement(Addon, {
|
|
24
|
+
onClick,
|
|
25
|
+
labelText: label,
|
|
26
|
+
icon: icon || /* @__PURE__ */ React2.createElement(ChevronSmallDown, {
|
|
27
|
+
color: ["brand-primary", 700]
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
ActionAddon.propTypes = {
|
|
31
|
+
label: PropTypes.string,
|
|
32
|
+
onClick: PropTypes.func,
|
|
33
|
+
icon: PropTypes.element
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
export {
|
|
36
|
+
ActionAddon
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=ActionAddon.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/MobileCard/ActionAddon.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport Button from '@elliemae/ds-button';\n\nconst Addon = styled(Button)`\n background-color: transparent;\n padding-right: 4px;\n height: 100%;\n border: none;\n font-size: 12px;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n color: ${(props) => props.theme.colors.brand['700']};\n cursor: pointer;\n &:focus,\n &::after {\n background-color: transparent;\n box-shadow: none !important; /* needed */\n border: none !important; /* needed */\n }\n`;\n\nexport const ActionAddon = ({ label, onClick, icon }) => (\n <Addon onClick={onClick} labelText={label} icon={icon || <ChevronSmallDown color={['brand-primary', 700]} />} />\n);\n\nActionAddon.propTypes = {\n /**\n * Addon label\n */\n label: PropTypes.string,\n /**\n * On click callback\n */\n onClick: PropTypes.func,\n /**\n * Icon to display after the label\n */\n icon: PropTypes.element,\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMJ,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUxC,MAAM,cAAc,CAAC,EAAE,OAAO,SAAS,WAC5C,qCAAC,OAAD;AAAA,EAAO;AAAA,EAAkB,WAAW;AAAA,EAAO,MAAM,QAAQ,qCAAC,kBAAD;AAAA,IAAkB,OAAO,CAAC,iBAAiB;AAAA;AAAA;AAGtG,YAAY,YAAY;AAAA,EAItB,OAAO,UAAU;AAAA,EAIjB,SAAS,UAAU;AAAA,EAInB,MAAM,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|