@elliemae/ds-mobile 2.0.0-alpha.11 → 2.0.0-alpha.12

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.
Files changed (182) hide show
  1. package/cjs/Accordion/Accordion.js +5 -5
  2. package/cjs/Accordion/index.js +5 -5
  3. package/cjs/CategoryBox/CategoryBox.js +12 -11
  4. package/cjs/CollectionBox/CollectionBox.js +14 -13
  5. package/cjs/FullPageContainer/FullPageContainer.js +7 -2
  6. package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
  7. package/cjs/GlobalHeader/MobileGlobalHeader.js +28 -24
  8. package/cjs/GroupBox/GroupBox.js +13 -12
  9. package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
  10. package/cjs/InfiniteLoader/Loader.js +12 -9
  11. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +49 -22
  12. package/cjs/LoadingPage/Page.js +24 -12
  13. package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
  14. package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  15. package/cjs/MobileBanner/MobileBanner.js +21 -16
  16. package/cjs/MobileBanner/styles.js +128 -59
  17. package/cjs/MobileBanner/utils/icons.js +5 -12
  18. package/cjs/MobileBanner/utils/styleHelpers.js +8 -4
  19. package/cjs/MobileCard/ActionAddon.js +16 -14
  20. package/cjs/MobileCard/Card.js +35 -82
  21. package/cjs/MobileCard/CardIcons.js +21 -16
  22. package/cjs/MobileCard/ExpandChevron.js +8 -10
  23. package/cjs/MobileCard/ExpandableRegion.js +5 -4
  24. package/cjs/MobileCard/Group.js +22 -16
  25. package/cjs/MobileCard/props.js +62 -0
  26. package/cjs/MobileContextMenu/MobileContextMenu.js +33 -25
  27. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  28. package/cjs/MobileContextMenu/MobileContextMenuItem.js +29 -25
  29. package/cjs/MobileDatePicker/Input.js +5 -0
  30. package/cjs/MobileDatePicker/MobileDatePicker.js +15 -16
  31. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  32. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  33. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  34. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  35. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  36. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  37. package/cjs/MobileFooter/Action.js +27 -24
  38. package/cjs/MobileFooter/Footer.js +15 -8
  39. package/cjs/MobileFooter/Text.js +6 -3
  40. package/cjs/MobileListItem/MobileListItem.js +14 -13
  41. package/cjs/MobilePageHeader/MobilePageHeader.js +35 -35
  42. package/cjs/MobileSelectList/MobileSelectList.js +29 -22
  43. package/cjs/MobileSelectList/styled.js +9 -11
  44. package/cjs/MobileSeparator/Separator.js +30 -18
  45. package/cjs/MobileTimePicker/Input.js +5 -0
  46. package/cjs/MobileTimePicker/MobileTimePicker.js +15 -16
  47. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  48. package/cjs/MobileTouchable/MobileTouchable.js +7 -2
  49. package/cjs/Modal/Modal.js +30 -25
  50. package/cjs/Modal/styled.js +7 -7
  51. package/cjs/PageFilter/PageFilter.js +20 -15
  52. package/cjs/PageForm/PageForm.js +22 -15
  53. package/cjs/PageList/PageList.js +12 -11
  54. package/cjs/PageSearch/PageSearch.js +14 -13
  55. package/cjs/PageSummary/PageSummary.js +34 -21
  56. package/cjs/PageSummary/Tags.js +12 -6
  57. package/cjs/SideNav/SideNav.js +42 -34
  58. package/cjs/SwipeToRefresh/ProgressIndicator.js +6 -5
  59. package/cjs/SwipeToRefresh/SwipeToRefresh.js +8 -7
  60. package/cjs/SwipeToRefresh/styled.js +4 -4
  61. package/cjs/SwipeToRefresh/useSwipe.js +5 -4
  62. package/cjs/Tabs/index.js +16 -5
  63. package/cjs/Tabs/propTypes.js +28 -0
  64. package/cjs/index.js +11 -5
  65. package/esm/Accordion/Accordion.js +1 -1
  66. package/esm/Accordion/index.js +1 -1
  67. package/esm/CategoryBox/CategoryBox.js +9 -8
  68. package/esm/CollectionBox/CollectionBox.js +9 -8
  69. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  70. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  71. package/esm/GlobalHeader/MobileGlobalHeader.js +20 -14
  72. package/esm/GroupBox/GroupBox.js +10 -9
  73. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  74. package/esm/InfiniteLoader/Loader.js +12 -9
  75. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -23
  76. package/esm/LoadingPage/Page.js +24 -12
  77. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  78. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  79. package/esm/MobileBanner/MobileBanner.js +20 -14
  80. package/esm/MobileBanner/styles.js +128 -59
  81. package/esm/MobileBanner/utils/icons.js +1 -4
  82. package/esm/MobileBanner/utils/styleHelpers.js +8 -4
  83. package/esm/MobileCard/ActionAddon.js +16 -13
  84. package/esm/MobileCard/Card.js +29 -76
  85. package/esm/MobileCard/CardIcons.js +20 -15
  86. package/esm/MobileCard/ExpandChevron.js +8 -8
  87. package/esm/MobileCard/ExpandableRegion.js +5 -4
  88. package/esm/MobileCard/Group.js +20 -14
  89. package/esm/MobileCard/props.js +58 -0
  90. package/esm/MobileContextMenu/MobileContextMenu.js +26 -18
  91. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  92. package/esm/MobileContextMenu/MobileContextMenuItem.js +25 -19
  93. package/esm/MobileDatePicker/Input.js +5 -0
  94. package/esm/MobileDatePicker/MobileDatePicker.js +12 -11
  95. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  96. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  97. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  98. package/esm/MobileFilterbar/Filterbar.js +13 -10
  99. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  100. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  101. package/esm/MobileFooter/Action.js +26 -23
  102. package/esm/MobileFooter/Footer.js +12 -5
  103. package/esm/MobileFooter/Text.js +6 -3
  104. package/esm/MobileListItem/MobileListItem.js +10 -9
  105. package/esm/MobilePageHeader/MobilePageHeader.js +17 -16
  106. package/esm/MobileSelectList/MobileSelectList.js +25 -17
  107. package/esm/MobileSelectList/styled.js +4 -4
  108. package/esm/MobileSeparator/Separator.js +28 -16
  109. package/esm/MobileTimePicker/Input.js +5 -0
  110. package/esm/MobileTimePicker/MobileTimePicker.js +12 -11
  111. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  112. package/esm/MobileTouchable/MobileTouchable.js +6 -1
  113. package/esm/Modal/Modal.js +25 -19
  114. package/esm/Modal/styled.js +1 -1
  115. package/esm/PageFilter/PageFilter.js +15 -10
  116. package/esm/PageForm/PageForm.js +18 -11
  117. package/esm/PageList/PageList.js +10 -9
  118. package/esm/PageSearch/PageSearch.js +10 -9
  119. package/esm/PageSummary/PageSummary.js +32 -19
  120. package/esm/PageSummary/Tags.js +12 -6
  121. package/esm/SideNav/SideNav.js +38 -29
  122. package/esm/SwipeToRefresh/ProgressIndicator.js +5 -4
  123. package/esm/SwipeToRefresh/SwipeToRefresh.js +7 -6
  124. package/esm/SwipeToRefresh/styled.js +1 -1
  125. package/esm/SwipeToRefresh/useSwipe.js +5 -4
  126. package/esm/Tabs/index.js +13 -4
  127. package/esm/Tabs/propTypes.js +23 -0
  128. package/esm/index.js +5 -4
  129. package/package.json +35 -7
  130. package/types/Accordion/Accordion.d.ts +1 -1
  131. package/types/CategoryBox/CategoryBox.d.ts +37 -6
  132. package/types/CollectionBox/CollectionBox.d.ts +37 -6
  133. package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
  134. package/types/GlobalHeader/styles.d.ts +6 -6
  135. package/types/GroupBox/GroupBox.d.ts +44 -7
  136. package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
  137. package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
  138. package/types/InfiniteLoader/styled.d.ts +1 -1
  139. package/types/LoadingPage/Page.d.ts +1 -1
  140. package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
  141. package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
  142. package/types/MobileBanner/MobileBanner.d.ts +72 -12
  143. package/types/MobileBanner/propTypes.d.ts +67 -11
  144. package/types/MobileBanner/styles.d.ts +10 -10
  145. package/types/MobileCard/Card.d.ts +20 -13
  146. package/types/MobileCard/ExpandableRegion.d.ts +2 -2
  147. package/types/MobileCard/Group.d.ts +18 -8
  148. package/types/MobileCard/StyledCard.d.ts +3 -1
  149. package/types/MobileCard/index.d.ts +13 -12
  150. package/types/MobileCard/props.d.ts +118 -0
  151. package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
  152. package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
  153. package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
  154. package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
  155. package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
  156. package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
  157. package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
  158. package/types/MobileFilterbar/Filterbar.d.ts +9 -2
  159. package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
  160. package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
  161. package/types/MobileFooter/Action.d.ts +19 -3
  162. package/types/MobileFooter/Footer.d.ts +8 -1
  163. package/types/MobileFooter/Text.d.ts +8 -1
  164. package/types/MobileListItem/MobileListItem.d.ts +17 -7
  165. package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
  166. package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
  167. package/types/MobileSelectList/styled.d.ts +5 -5
  168. package/types/MobileSeparator/Separator.d.ts +23 -5
  169. package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
  170. package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
  171. package/types/Modal/Modal.d.ts +50 -9
  172. package/types/Modal/styled.d.ts +7 -6
  173. package/types/PageList/PageList.d.ts +2 -2
  174. package/types/PageSearch/PageSearch.d.ts +2 -2
  175. package/types/PageSummary/Tags.d.ts +4 -4
  176. package/types/SideNav/SideNav.d.ts +26 -5
  177. package/types/SideNav/styles.d.ts +8 -8
  178. package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
  179. package/types/SwipeToRefresh/styled.d.ts +5 -4
  180. package/types/Tabs/index.d.ts +24 -9
  181. package/types/Tabs/propTypes.d.ts +42 -0
  182. package/types/index.d.ts +5 -1
@@ -1,87 +1,156 @@
1
1
  import styled from 'styled-components';
2
2
  import { toMobile } from '@elliemae/ds-system';
3
- import DSButton from '@elliemae/ds-basic/Button';
3
+ import DSButton from '@elliemae/ds-button';
4
4
  import { handleBorderColor, handleAnimation } from './utils/styleHelpers.js';
5
5
 
6
6
  const StyledInnerContainer = /*#__PURE__*/styled.div.withConfig({
7
7
  componentId: "sc-4jnp92-0"
8
- })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], ({
9
- theme
10
- }) => theme.colors.neutral['000'], ({
11
- type,
12
- theme
13
- }) => handleBorderColor(type, theme), ({
14
- isOpen
15
- }) => isOpen ? '0' : '-100%', ({
16
- isAnimating,
17
- isOpen
18
- }) => handleAnimation(isAnimating, isOpen));
8
+ })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], _ref => {
9
+ let {
10
+ theme
11
+ } = _ref;
12
+ return theme.colors.neutral['000'];
13
+ }, _ref2 => {
14
+ let {
15
+ type,
16
+ theme
17
+ } = _ref2;
18
+ return handleBorderColor(type, theme);
19
+ }, _ref3 => {
20
+ let {
21
+ isOpen
22
+ } = _ref3;
23
+ return isOpen ? '0' : '-100%';
24
+ }, _ref4 => {
25
+ let {
26
+ isAnimating,
27
+ isOpen
28
+ } = _ref4;
29
+ return handleAnimation(isAnimating, isOpen);
30
+ });
19
31
  const StyledTextContent = /*#__PURE__*/styled.div.withConfig({
20
32
  componentId: "sc-4jnp92-1"
21
33
  })(["width:100%;"]);
22
34
  const StyledTitle = /*#__PURE__*/styled.div.withConfig({
23
35
  componentId: "sc-4jnp92-2"
24
- })(["color:", ";font-size:", ";font-weight:", ";margin-bottom:", ";@media not all and (min-resolution:0.001dpcm){@media{-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}}@media screen and (min--moz-device-pixel-ratio:0){-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}"], ({
25
- theme
26
- }) => theme.colors.neutral[700], ({
27
- theme
28
- }) => toMobile(theme.fontSizes.title[700]), ({
29
- theme
30
- }) => theme.fontWeights.semibold, ({
31
- theme
32
- }) => theme.space.xxs, ({
33
- theme
34
- }) => theme.colors.neutral[700], ({
35
- theme
36
- }) => theme.colors.neutral[700]);
36
+ })(["color:", ";font-size:", ";font-weight:", ";margin-bottom:", ";@media not all and (min-resolution:0.001dpcm){@media{-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}}@media screen and (min--moz-device-pixel-ratio:0){-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}"], _ref5 => {
37
+ let {
38
+ theme
39
+ } = _ref5;
40
+ return theme.colors.neutral[700];
41
+ }, _ref6 => {
42
+ let {
43
+ theme
44
+ } = _ref6;
45
+ return toMobile(theme.fontSizes.title[700]);
46
+ }, _ref7 => {
47
+ let {
48
+ theme
49
+ } = _ref7;
50
+ return theme.fontWeights.semibold;
51
+ }, _ref8 => {
52
+ let {
53
+ theme
54
+ } = _ref8;
55
+ return theme.space.xxs;
56
+ }, _ref9 => {
57
+ let {
58
+ theme
59
+ } = _ref9;
60
+ return theme.colors.neutral[700];
61
+ }, _ref10 => {
62
+ let {
63
+ theme
64
+ } = _ref10;
65
+ return theme.colors.neutral[700];
66
+ });
37
67
  const StyledSubTitle = /*#__PURE__*/styled.div.withConfig({
38
68
  componentId: "sc-4jnp92-3"
39
- })(["font-size:", ";font-weight:", ";"], ({
40
- theme
41
- }) => toMobile(theme.fontSizes.title[600]), ({
42
- theme
43
- }) => theme.fontWeights.regular);
69
+ })(["font-size:", ";font-weight:", ";"], _ref11 => {
70
+ let {
71
+ theme
72
+ } = _ref11;
73
+ return toMobile(theme.fontSizes.title[600]);
74
+ }, _ref12 => {
75
+ let {
76
+ theme
77
+ } = _ref12;
78
+ return theme.fontWeights.regular;
79
+ });
44
80
  const StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
45
81
  componentId: "sc-4jnp92-4"
46
- })(["margin-top:10px;margin-right:", ";margin-left:", ";"], ({
47
- theme
48
- }) => theme.space.xxs, ({
49
- theme
50
- }) => theme.space.xs);
82
+ })(["margin-top:10px;margin-right:", ";margin-left:", ";"], _ref13 => {
83
+ let {
84
+ theme
85
+ } = _ref13;
86
+ return theme.space.xxs;
87
+ }, _ref14 => {
88
+ let {
89
+ theme
90
+ } = _ref14;
91
+ return theme.space.xs;
92
+ });
51
93
  const StyledContent = /*#__PURE__*/styled.div.withConfig({
52
94
  componentId: "sc-4jnp92-5"
53
- })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], ({
54
- theme
55
- }) => theme.space.xxs2, ({
56
- showCloseButton
57
- }) => !showCloseButton ? '28px' : '0');
95
+ })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], _ref15 => {
96
+ let {
97
+ theme
98
+ } = _ref15;
99
+ return theme.space.xxs2;
100
+ }, _ref16 => {
101
+ let {
102
+ showCloseButton
103
+ } = _ref16;
104
+ return !showCloseButton ? '28px' : '0';
105
+ });
58
106
  const StyledCloseButtonContainer = /*#__PURE__*/styled.div.withConfig({
59
107
  componentId: "sc-4jnp92-6"
60
108
  })(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
61
109
  const StyledCloseButton = /*#__PURE__*/styled(DSButton).withConfig({
62
110
  componentId: "sc-4jnp92-7"
63
- })(["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;}}"], ({
64
- theme
65
- }) => theme.colors.brand[700]);
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
+ });
66
117
  const StyledActionLink = /*#__PURE__*/styled.a.withConfig({
67
118
  componentId: "sc-4jnp92-8"
68
- })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], ({
69
- theme
70
- }) => theme.space.xs, ({
71
- theme
72
- }) => toMobile(theme.fontSizes.title[600]), ({
73
- theme
74
- }) => theme.fontWeights.regular, ({
75
- theme
76
- }) => theme.colors.brand[600]);
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
+ });
77
140
  const StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
78
141
  componentId: "sc-4jnp92-9"
79
- })(["overflow:hidden;height:", ";", ";"], ({
80
- isOpen
81
- }) => isOpen ? 'auto' : '0px', ({
82
- isAnimating,
83
- isOpen,
84
- height
85
- }) => handleAnimation(isAnimating, isOpen, height));
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
+ });
86
155
 
87
156
  export { StyledActionLink, StyledBannerContainer, StyledCloseButton, StyledCloseButtonContainer, StyledContent, StyledIconContainer, StyledInnerContainer, StyledSubTitle, StyledTextContent, StyledTitle };
@@ -1,9 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import SuccessFill from '@elliemae/ds-icons/SuccessFill';
4
- import InfoFill from '@elliemae/ds-icons/InfoFill';
5
- import AlertsDetailFill from '@elliemae/ds-icons/AlertsDetailFill';
6
- import WarningSquare from '@elliemae/ds-icons/WarningSquare';
3
+ import { SuccessFill, InfoFill, AlertsDetailFill, WarningSquare } from '@elliemae/ds-icons';
7
4
 
8
5
  const icons = {
9
6
  success: /*#__PURE__*/_jsx(SuccessFill, {
@@ -7,9 +7,11 @@ const slideIn = kfrm(_templateObject || (_templateObject = _taggedTemplateLitera
7
7
  const slideOut = kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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"])));
8
8
  const spanContainer = height => kfrm(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n height: 0px;\n }\n 100% {\n height: ", "px;\n }\n"])), height);
9
9
  const shrinkContainer = height => kfrm(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n 0% {\n height: ", "px;\n }\n 100% {\n height: 0px;\n }\n"])), height);
10
- const handleBorderColor = (type, {
11
- colors
12
- }) => {
10
+ const handleBorderColor = (type, _ref) => {
11
+ let {
12
+ colors
13
+ } = _ref;
14
+
13
15
  switch (type) {
14
16
  case MOBILE_BANNER_TYPES.SUCCESS:
15
17
  return colors.success[900];
@@ -24,7 +26,9 @@ const handleBorderColor = (type, {
24
26
  return colors.danger[900];
25
27
  }
26
28
  };
27
- const handleAnimation = (isAnimating, isOpen, height = null) => {
29
+ const handleAnimation = function (isAnimating, isOpen) {
30
+ let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
31
+
28
32
  if (isAnimating) {
29
33
  if (isOpen) {
30
34
  return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
@@ -1,22 +1,25 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import ChevronSmallDown from '@elliemae/ds-icons/ChevronSmallDown';
5
- import DSButton from '@elliemae/ds-basic/Button';
4
+ import { ChevronSmallDown } from '@elliemae/ds-icons';
5
+ import DSButton from '@elliemae/ds-button';
6
6
 
7
7
  const Addon = /*#__PURE__*/styled(DSButton).withConfig({
8
8
  componentId: "sc-afblfw-0"
9
9
  })(["background-color:transparent;padding-right:4px;height:100%;border:none;font-size:12px;font-weight:", ";color:", ";cursor:pointer;&:focus,&::after{background-color:transparent;box-shadow:none !important;border:none !important;}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['700']);
10
- const ActionAddon = ({
11
- label,
12
- onClick,
13
- icon
14
- }) => /*#__PURE__*/_jsx(Addon, {
15
- onClick: onClick,
16
- labelText: label,
17
- icon: icon || /*#__PURE__*/_jsx(ChevronSmallDown, {
18
- color: ['brand-primary', 700]
19
- })
20
- });
10
+ const ActionAddon = _ref => {
11
+ let {
12
+ label,
13
+ onClick,
14
+ icon
15
+ } = _ref;
16
+ return /*#__PURE__*/_jsx(Addon, {
17
+ onClick: onClick,
18
+ labelText: label,
19
+ icon: icon || /*#__PURE__*/_jsx(ChevronSmallDown, {
20
+ color: ['brand-primary', 700]
21
+ })
22
+ });
23
+ };
21
24
 
22
25
  export { ActionAddon };
@@ -1,15 +1,18 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import { useRef } from 'react';
3
- import { PropTypes, describe } from 'react-desc';
5
+ import { describe } from 'react-desc';
4
6
  import styled from 'styled-components';
5
7
  import { padding } from 'styled-system';
6
8
  import { truncate, toMobile, color, __UNSAFE_SPACE_TO_DIMSUM, border, withTheme, op } from '@elliemae/ds-system';
7
9
  import GroupItem from '@elliemae/ds-shared/GroupContext/GroupItem';
8
- import { Grid } from '@elliemae/ds-basic/Grid';
10
+ import { Grid } from '@elliemae/ds-grid';
9
11
  import { StyledCard } from './StyledCard.js';
10
12
  import { ExpandChevron } from './ExpandChevron.js';
11
13
  import { useHeight } from './useHeight.js';
12
14
  import { ExpandableRegion } from './ExpandableRegion.js';
15
+ import { cardPropsTypes } from './props.js';
13
16
  import { jsxs, jsx } from 'react/jsx-runtime';
14
17
 
15
18
  const TitleEllipsis = /*#__PURE__*/styled.div.withConfig({
@@ -17,7 +20,7 @@ const TitleEllipsis = /*#__PURE__*/styled.div.withConfig({
17
20
  })(["", ""], truncate());
18
21
  const Title = /*#__PURE__*/styled.div.withConfig({
19
22
  componentId: "sc-10tpzm8-1"
20
- })(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], padding, truncate(), props => props.theme.fontWeights.semibold, props => toMobile(props.theme.fontSizes.title[600]), color('neutral', '800'));
23
+ })(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], padding, truncate(), props => props.theme.fontWeights.semibold, props => toMobile(props.theme.fontSizes.title[600]), color('neutral', 800));
21
24
  const Detail = /*#__PURE__*/styled.span.withConfig({
22
25
  componentId: "sc-10tpzm8-2"
23
26
  })(["", " ", " font-size:", ";font-weight:", ";"], padding, truncate(), props => toMobile(props.theme.fontSizes.title[500]), props => props.theme.fontWeights.regular);
@@ -26,7 +29,7 @@ const SubText = /*#__PURE__*/styled.span.withConfig({
26
29
  })(["margin-top:", ";", " &:nth-child(2){padding-left:", ";}"], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), truncate(), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s));
27
30
  const SubTextWrap = /*#__PURE__*/styled.div.withConfig({
28
31
  componentId: "sc-10tpzm8-4"
29
- })(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], truncate(), props => border(props.theme.colors.neutral['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => toMobile(props.theme.fontSizes.subTitle[400]), color('neutral', '500'), props => props.theme.fontWeights.regular);
32
+ })(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], truncate(), props => border(props.theme.colors.neutral['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => toMobile(props.theme.fontSizes.subTitle[400]), color('neutral', 500), props => props.theme.fontWeights.regular);
30
33
  const LeftIcon = /*#__PURE__*/styled(Grid).withConfig({
31
34
  componentId: "sc-10tpzm8-5"
32
35
  })(["& > span{height:", ";width:", ";}& > span > svg,svg:not([fill]){height:", ";width:", ";}"], props => props.halfM, props => props.halfM, props => props.halfM, props => props.halfM);
@@ -34,28 +37,31 @@ const CenterWrap = /*#__PURE__*/styled.div.withConfig({
34
37
  componentId: "sc-10tpzm8-6"
35
38
  })(["display:flex;align-items:center;", ""], truncate());
36
39
 
37
- const MobileCard = ({
38
- children,
39
- height = 'm',
40
- leftAddOn,
41
- leftProp,
42
- rightProp,
43
- subText,
44
- subIcons,
45
- details,
46
- theme,
47
- expandable = false,
48
- expandedContent,
49
- value
50
- }) => {
51
- var _TitleEllipsis, _SubText;
40
+ const MobileCard = _ref => {
41
+ var _TitleEllipsis, _SubText, _Grid;
52
42
 
43
+ let {
44
+ children,
45
+ height = 'm',
46
+ leftAddOn,
47
+ leftProp,
48
+ rightProp,
49
+ subText,
50
+ subIcons,
51
+ details,
52
+ theme,
53
+ expandable = false,
54
+ expandedContent,
55
+ value,
56
+ cardContent
57
+ } = _ref;
53
58
  const subTextRef = useRef(null);
54
59
  const subTextHeight = useHeight(subTextRef);
55
60
  const isJustChildren = !(subText || subIcons || details);
56
61
  const halfM = op('/', __UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 2);
57
62
  return /*#__PURE__*/_jsx(GroupItem, {
58
- render: (context = {}) => {
63
+ render: function () {
64
+ let context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
59
65
  const {
60
66
  activeValue,
61
67
  onChange
@@ -94,7 +100,7 @@ const MobileCard = ({
94
100
  }, void 0, _TitleEllipsis || (_TitleEllipsis = /*#__PURE__*/_jsx(TitleEllipsis, {}, void 0, children)), details && /*#__PURE__*/_jsx(Grid, {
95
101
  "data-testid": "card-details",
96
102
  cols: details.map(() => 'min-content'),
97
- mb: !(subText || subIcons) && halfM,
103
+ mb: !(subText || subIcons) && halfM || 0,
98
104
  pt: op('/', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs), 2)
99
105
  }, void 0, details.map((d, i) => /*#__PURE__*/_jsx(Detail, {}, i, d, i < details.length - 1 && /*#__PURE__*/_jsx(Detail, {
100
106
  px: __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs)
@@ -113,66 +119,13 @@ const MobileCard = ({
113
119
  }), /*#__PURE__*/_jsx(ExpandableRegion, {
114
120
  show: selected,
115
121
  content: expandedContent
116
- })));
122
+ }), cardContent && (_Grid || (_Grid = /*#__PURE__*/_jsx(Grid, {}, void 0, cardContent)))));
117
123
  }
118
124
  });
119
125
  };
120
126
 
121
- const props = {
122
- /**
123
- * card height
124
- */
125
- height: PropTypes.oneOf(['s', 'm']).description('card height'),
126
-
127
- /**
128
- * Defines mobile card title
129
- */
130
- children: PropTypes.string.isRequired.description('Defines mobile card title'),
131
-
132
- /**
133
- * Wheter if the card is expandable or not
134
- */
135
- expandable: PropTypes.bool.description('Wheter if the card is expandable or not'),
136
-
137
- /**
138
- * content to display in expand card section
139
- */
140
- expandedContent: PropTypes.element.description('content to display in expand card section'),
141
-
142
- /**
143
- * Icon to the left of the card. Size is adjusted automatically.
144
- */
145
- leftAddOn: PropTypes.element.description('Icon to the left of the card. Size is adjusted automatically.'),
146
-
147
- /**
148
- * Pass an element to render left. For example a Button with an icon
149
- */
150
- leftProp: PropTypes.element.description('Pass an element to render left. For example a Button with an icon'),
151
-
152
- /**
153
- * Pass an array of 1 or 2 elements to render right. For example a Button with an icon
154
- */
155
- rightProp: PropTypes.arrayOf(PropTypes.element).description('Pass an array of 1 or 2 elements to render right. For example a Button with an icon'),
156
-
157
- /**
158
- * Pass an array of 1 or 2 strings
159
- */
160
- subText: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1 or 2 strings'),
161
-
162
- /**
163
- * SubIcons component
164
- */
165
- subIcons: PropTypes.element.description('SubIcons component'),
166
-
167
- /**
168
- * Pass an array of 1, 2 or 3 strings
169
- */
170
- details: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1, 2 or 3 strings'),
171
- theme: PropTypes.object.isRequired.description(''),
172
- value: PropTypes.number.description('')
173
- };
174
127
  const DSMobileCardWithSchema = describe(MobileCard);
175
- DSMobileCardWithSchema.propTypes = props;
128
+ DSMobileCardWithSchema.propTypes = cardPropsTypes;
176
129
  var MobileCard$1 = withTheme(MobileCard);
177
130
 
178
131
  export { DSMobileCardWithSchema, MobileCard$1 as default };
@@ -1,24 +1,29 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import 'react';
3
5
  import styled from 'styled-components';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
6
+ import { Grid } from '@elliemae/ds-grid';
5
7
 
6
8
  const CardIconsWrapper = /*#__PURE__*/styled(Grid).withConfig({
7
9
  componentId: "sc-1vqygz1-0"
8
10
  })(["align-items:center;span,svg{width:12px !important;height:12px !important;}span.icon-color-muted svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-warn svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-error svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-success svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-primary svg,svg:not([fill]){fill:", ";}span.icon-color-primary svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.neutral['600'], props => props.theme.colors.neutral['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.danger['900'], props => props.theme.colors.danger['900'], props => props.theme.colors.success['900'], props => props.theme.colors.success['900'], props => props.theme.colors.brand[600], props => props.theme.colors.brand[600]);
9
- const SubIcons = ({
10
- icons = [],
11
- colors = []
12
- }) => /*#__PURE__*/_jsx(CardIconsWrapper, {
13
- cols: icons.map(() => '12px'),
14
- gutter: "6px",
15
- height: "14px",
16
- "data-testid": "card-subIcons"
17
- }, void 0, icons.map((Icon, i) =>
18
- /*#__PURE__*/
19
- // eslint-disable-next-line react/no-array-index-key
20
- _jsx(Icon, {
21
- className: "icon-color-".concat(colors[i] || 'muted')
22
- }, i)));
11
+ const SubIcons = _ref => {
12
+ let {
13
+ icons = [],
14
+ colors = []
15
+ } = _ref;
16
+ return /*#__PURE__*/_jsx(CardIconsWrapper, {
17
+ cols: icons.map(() => '12px'),
18
+ gutter: "6px",
19
+ height: "14px",
20
+ "data-testid": "card-subIcons"
21
+ }, void 0, icons.map((Icon, i) =>
22
+ /*#__PURE__*/
23
+ // eslint-disable-next-line react/no-array-index-key
24
+ _jsx(Icon, {
25
+ className: "icon-color-".concat(colors[i] || 'muted')
26
+ }, i)));
27
+ };
23
28
 
24
29
  export { SubIcons };
@@ -1,18 +1,18 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import ChevronDownIcon from '@elliemae/ds-icons/ChevronDown';
5
- import ChevronRight from '@elliemae/ds-icons/ChevronRight';
4
+ import { ChevronDown, ChevronRight } from '@elliemae/ds-icons';
6
5
 
7
6
  const ChevronWrap = /*#__PURE__*/styled.div.withConfig({
8
7
  componentId: "sc-1l0ask2-0"
9
8
  })(["margin-top:", ";align-self:", ";margin-left:", ";"], props => props.align === 'top' ? '18px' : '0', props => props.align === 'top' ? 'flex-start' : 'center', props => props.theme.space.xs);
10
- const ExpandChevron = ({
11
- isExpanded,
12
- onClick,
13
- align
14
- }) => {
15
- const Chevron = isExpanded ? ChevronDownIcon : ChevronRight;
9
+ const ExpandChevron = _ref => {
10
+ let {
11
+ isExpanded,
12
+ onClick,
13
+ align
14
+ } = _ref;
15
+ const Chevron = isExpanded ? ChevronDown : ChevronRight;
16
16
  return /*#__PURE__*/_jsx(ChevronWrap, {
17
17
  "data-testid": "ds-card-expand-chevron",
18
18
  align: align
@@ -11,12 +11,13 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
11
11
  const Region = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "sc-mduzz9-1"
13
13
  })(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? "\n max-height: ".concat(props.refHeight, "px;\n ") : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
14
- const ExpandableRegion = ({
15
- show,
16
- content
17
- }) => {
14
+ const ExpandableRegion = _ref => {
18
15
  var _ref$current;
19
16
 
17
+ let {
18
+ show,
19
+ content
20
+ } = _ref;
20
21
  const ref = useRef(null); // triggers transition
21
22
 
22
23
  const [animate, setAnimate] = useState(show); // needed to properly handle the transition. Hide after transition ends
@@ -1,18 +1,23 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import React from 'react';
3
5
  import { PropTypes, describe } from 'react-desc';
4
6
  import styled from 'styled-components';
5
7
  import Group from '@elliemae/ds-shared/GroupContext/Group';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
8
+ import { Grid } from '@elliemae/ds-grid';
7
9
  import { truncate, __UNSAFE_SPACE_TO_DIMSUM, color, border, withTheme } from '@elliemae/ds-system';
8
10
  import { StyledCard } from './StyledCard.js';
9
11
 
10
12
  const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
11
13
  componentId: "sc-17xukaf-0"
12
- })(["", "{border-top:none;}", ""], StyledCard, ({
13
- theme,
14
- withTopBorder
15
- }) => withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '');
14
+ })(["", "{border-top:none;}", ""], StyledCard, _ref => {
15
+ let {
16
+ theme,
17
+ withTopBorder
18
+ } = _ref;
19
+ return withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '';
20
+ });
16
21
  const GroupTitle = /*#__PURE__*/styled.span.withConfig({
17
22
  componentId: "sc-17xukaf-1"
18
23
  })(["", ""], truncate());
@@ -20,15 +25,16 @@ const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
20
25
  componentId: "sc-17xukaf-2"
21
26
  })(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), " / 2)"), color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
22
27
 
23
- const MobileCardGroup = ({
24
- children,
25
- theme,
26
- title,
27
- action,
28
- activeValue,
29
- allowMultipleOpen = false,
30
- onChange = () => null
31
- }) => {
28
+ const MobileCardGroup = _ref2 => {
29
+ let {
30
+ children,
31
+ theme,
32
+ title,
33
+ action,
34
+ activeValue,
35
+ allowMultipleOpen = false,
36
+ onChange = () => null
37
+ } = _ref2;
32
38
  const rows = !title ? ['auto'] : [__UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 'auto'];
33
39
  return /*#__PURE__*/_jsx(Group, {
34
40
  activeValue: activeValue,