@elliemae/ds-mobile 2.0.0-alpha.1 → 2.0.0-alpha.13

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 (202) hide show
  1. package/cjs/Accordion/Accordion.js +5 -13
  2. package/cjs/Accordion/index.js +5 -13
  3. package/cjs/CategoryBox/CategoryBox.js +17 -16
  4. package/cjs/CollectionBox/CollectionBox.js +21 -20
  5. package/cjs/FullPageContainer/FullPageContainer.js +9 -4
  6. package/cjs/FullPageContainer/FullPageContainerScroll.js +9 -4
  7. package/cjs/FullPageContainer/useMobileHeight.js +1 -0
  8. package/cjs/GlobalHeader/MobileGlobalHeader.js +34 -29
  9. package/cjs/GlobalHeader/styles.js +11 -17
  10. package/cjs/GroupBox/GroupBox.js +18 -17
  11. package/cjs/Icons/EM_logo.js +4 -4
  12. package/cjs/InfiniteLoader/Infiniteloader.js +12 -10
  13. package/cjs/InfiniteLoader/Loader.js +12 -9
  14. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +52 -24
  15. package/cjs/InfiniteLoader/styled.js +1 -1
  16. package/cjs/LoadingPage/Page.js +32 -19
  17. package/cjs/LoadingPage/index.js +1 -1
  18. package/cjs/MobileActionToolbar/MobileActionToolbar.js +11 -10
  19. package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +11 -6
  20. package/cjs/MobileActionToolbar/index.js +2 -2
  21. package/cjs/MobileBanner/MobileBanner.js +27 -21
  22. package/cjs/MobileBanner/styles.js +139 -70
  23. package/cjs/MobileBanner/utils/icons.js +5 -10
  24. package/cjs/MobileBanner/utils/styleHelpers.js +20 -47
  25. package/cjs/MobileCard/ActionAddon.js +17 -15
  26. package/cjs/MobileCard/Card.js +51 -98
  27. package/cjs/MobileCard/CardIcons.js +21 -16
  28. package/cjs/MobileCard/ExpandChevron.js +11 -13
  29. package/cjs/MobileCard/ExpandableRegion.js +10 -10
  30. package/cjs/MobileCard/Group.js +29 -23
  31. package/cjs/MobileCard/StyledCard.js +1 -1
  32. package/cjs/MobileCard/index.js +3 -3
  33. package/cjs/MobileCard/props.js +62 -0
  34. package/cjs/MobileCard/useHeight.js +1 -0
  35. package/cjs/MobileContextMenu/MobileContextMenu.js +53 -45
  36. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +37 -27
  37. package/cjs/MobileContextMenu/MobileContextMenuItem.js +40 -46
  38. package/cjs/MobileDatePicker/Input.js +8 -3
  39. package/cjs/MobileDatePicker/MobileDatePicker.js +18 -19
  40. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +31 -21
  41. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +26 -22
  42. package/cjs/MobileEmtpyState/MobileEmptyState.js +12 -10
  43. package/cjs/MobileEmtpyState/index.js +1 -1
  44. package/cjs/MobileFilterbar/Filterbar.js +15 -12
  45. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  46. package/cjs/MobileFilterbar/FilterbarSort.js +18 -15
  47. package/cjs/MobileFooter/Action.js +28 -25
  48. package/cjs/MobileFooter/Footer.js +20 -13
  49. package/cjs/MobileFooter/Text.js +7 -4
  50. package/cjs/MobileFooter/index.js +1 -1
  51. package/cjs/MobileListItem/MobileListItem.js +17 -16
  52. package/cjs/MobilePageHeader/MobilePageHeader.js +47 -46
  53. package/cjs/MobileSelectList/MobileSelectList.js +41 -33
  54. package/cjs/MobileSelectList/styled.js +10 -12
  55. package/cjs/MobileSeparator/Separator.js +32 -20
  56. package/cjs/MobileSeparator/index.js +1 -1
  57. package/cjs/MobileTimePicker/Input.js +8 -3
  58. package/cjs/MobileTimePicker/MobileTimePicker.js +18 -19
  59. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +4 -4
  60. package/cjs/MobileTouchable/MobileTouchable.js +10 -4
  61. package/cjs/Modal/Modal.js +41 -36
  62. package/cjs/Modal/styled.js +11 -12
  63. package/cjs/PageFilter/PageFilter.js +29 -24
  64. package/cjs/PageForm/PageForm.js +23 -16
  65. package/cjs/PageList/PageList.js +13 -12
  66. package/cjs/PageSearch/PageSearch.js +14 -13
  67. package/cjs/PageSummary/PageSummary.js +34 -21
  68. package/cjs/PageSummary/Tags.js +16 -10
  69. package/cjs/SideNav/SideNav.js +50 -41
  70. package/cjs/SideNav/styles.js +8 -8
  71. package/cjs/SwipeToRefresh/ProgressIndicator.js +13 -12
  72. package/cjs/SwipeToRefresh/ProgressLoader.js +37 -37
  73. package/cjs/SwipeToRefresh/SwipeToRefresh.js +13 -12
  74. package/cjs/SwipeToRefresh/styled.js +5 -5
  75. package/cjs/SwipeToRefresh/useSwipe.js +6 -4
  76. package/cjs/Tabs/index.js +19 -8
  77. package/cjs/Tabs/propTypes.js +28 -0
  78. package/cjs/index.js +13 -15
  79. package/esm/Accordion/Accordion.js +1 -1
  80. package/esm/Accordion/index.js +1 -1
  81. package/esm/CategoryBox/CategoryBox.js +11 -10
  82. package/esm/CollectionBox/CollectionBox.js +10 -9
  83. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  84. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  85. package/esm/FullPageContainer/useMobileHeight.js +1 -0
  86. package/esm/GlobalHeader/MobileGlobalHeader.js +21 -14
  87. package/esm/GlobalHeader/styles.js +4 -11
  88. package/esm/GroupBox/GroupBox.js +12 -11
  89. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  90. package/esm/InfiniteLoader/Loader.js +12 -9
  91. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +51 -23
  92. package/esm/LoadingPage/Page.js +25 -12
  93. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  94. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  95. package/esm/MobileBanner/MobileBanner.js +21 -14
  96. package/esm/MobileBanner/styles.js +129 -60
  97. package/esm/MobileBanner/utils/icons.js +2 -4
  98. package/esm/MobileBanner/utils/styleHelpers.js +16 -47
  99. package/esm/MobileCard/ActionAddon.js +16 -13
  100. package/esm/MobileCard/Card.js +29 -76
  101. package/esm/MobileCard/CardIcons.js +20 -15
  102. package/esm/MobileCard/ExpandChevron.js +8 -8
  103. package/esm/MobileCard/ExpandableRegion.js +7 -7
  104. package/esm/MobileCard/Group.js +21 -15
  105. package/esm/MobileCard/props.js +58 -0
  106. package/esm/MobileCard/useHeight.js +1 -0
  107. package/esm/MobileContextMenu/MobileContextMenu.js +39 -31
  108. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  109. package/esm/MobileContextMenu/MobileContextMenuItem.js +26 -30
  110. package/esm/MobileDatePicker/Input.js +5 -0
  111. package/esm/MobileDatePicker/MobileDatePicker.js +13 -12
  112. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  113. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  114. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  115. package/esm/MobileFilterbar/Filterbar.js +13 -10
  116. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  117. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  118. package/esm/MobileFooter/Action.js +26 -23
  119. package/esm/MobileFooter/Footer.js +14 -7
  120. package/esm/MobileFooter/Text.js +6 -3
  121. package/esm/MobileListItem/MobileListItem.js +11 -10
  122. package/esm/MobilePageHeader/MobilePageHeader.js +19 -17
  123. package/esm/MobileSelectList/MobileSelectList.js +28 -19
  124. package/esm/MobileSelectList/styled.js +4 -4
  125. package/esm/MobileSeparator/Separator.js +28 -16
  126. package/esm/MobileTimePicker/Input.js +5 -0
  127. package/esm/MobileTimePicker/MobileTimePicker.js +13 -12
  128. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  129. package/esm/MobileTouchable/MobileTouchable.js +7 -1
  130. package/esm/Modal/Modal.js +27 -21
  131. package/esm/Modal/styled.js +4 -6
  132. package/esm/PageFilter/PageFilter.js +15 -10
  133. package/esm/PageForm/PageForm.js +18 -11
  134. package/esm/PageList/PageList.js +10 -9
  135. package/esm/PageSearch/PageSearch.js +10 -9
  136. package/esm/PageSummary/PageSummary.js +32 -19
  137. package/esm/PageSummary/Tags.js +12 -6
  138. package/esm/SideNav/SideNav.js +39 -29
  139. package/esm/SwipeToRefresh/ProgressIndicator.js +9 -8
  140. package/esm/SwipeToRefresh/SwipeToRefresh.js +9 -8
  141. package/esm/SwipeToRefresh/styled.js +1 -1
  142. package/esm/SwipeToRefresh/useSwipe.js +6 -4
  143. package/esm/Tabs/index.js +13 -4
  144. package/esm/Tabs/propTypes.js +23 -0
  145. package/esm/index.js +5 -4
  146. package/package.json +35 -7
  147. package/types/Accordion/Accordion.d.ts +1 -1
  148. package/types/CategoryBox/CategoryBox.d.ts +37 -6
  149. package/types/CollectionBox/CollectionBox.d.ts +37 -6
  150. package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
  151. package/types/GlobalHeader/styles.d.ts +6 -6
  152. package/types/GroupBox/GroupBox.d.ts +44 -7
  153. package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
  154. package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
  155. package/types/InfiniteLoader/styled.d.ts +1 -1
  156. package/types/LoadingPage/Page.d.ts +1 -1
  157. package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
  158. package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
  159. package/types/MobileBanner/MobileBanner.d.ts +72 -12
  160. package/types/MobileBanner/propTypes.d.ts +67 -11
  161. package/types/MobileBanner/styles.d.ts +10 -10
  162. package/types/MobileCard/Card.d.ts +20 -13
  163. package/types/MobileCard/ExpandableRegion.d.ts +2 -2
  164. package/types/MobileCard/Group.d.ts +18 -8
  165. package/types/MobileCard/StyledCard.d.ts +3 -1
  166. package/types/MobileCard/index.d.ts +13 -12
  167. package/types/MobileCard/props.d.ts +118 -0
  168. package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
  169. package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
  170. package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
  171. package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
  172. package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
  173. package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
  174. package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
  175. package/types/MobileFilterbar/Filterbar.d.ts +9 -2
  176. package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
  177. package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
  178. package/types/MobileFooter/Action.d.ts +19 -3
  179. package/types/MobileFooter/Footer.d.ts +8 -1
  180. package/types/MobileFooter/Text.d.ts +8 -1
  181. package/types/MobileListItem/MobileListItem.d.ts +17 -7
  182. package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
  183. package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
  184. package/types/MobileSelectList/styled.d.ts +5 -5
  185. package/types/MobileSeparator/Separator.d.ts +23 -5
  186. package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
  187. package/types/MobileTimePicker/MobileTimePicker.stories.d.ts +1 -0
  188. package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
  189. package/types/Modal/Modal.d.ts +50 -9
  190. package/types/Modal/styled.d.ts +7 -6
  191. package/types/PageList/PageList.d.ts +2 -2
  192. package/types/PageSearch/PageSearch.d.ts +2 -2
  193. package/types/PageSummary/Tags.d.ts +4 -4
  194. package/types/SideNav/SideNav.d.ts +26 -5
  195. package/types/SideNav/styles.d.ts +8 -8
  196. package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
  197. package/types/SwipeToRefresh/styled.d.ts +5 -4
  198. package/types/Tabs/index.d.ts +24 -9
  199. package/types/Tabs/propTypes.d.ts +42 -0
  200. package/types/index.d.ts +5 -1
  201. package/cjs/package.json +0 -7
  202. package/esm/package.json +0 -7
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var styled = require('styled-components');
6
6
  var dsSystem = require('@elliemae/ds-system');
7
- var DSButton = require('@elliemae/ds-basic/Button');
7
+ var DSButton = require('@elliemae/ds-button');
8
8
  var styleHelpers = require('./utils/styleHelpers.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -12,86 +12,155 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
13
13
  var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
14
14
 
15
- const StyledInnerContainer = /*#__PURE__*/styled__default['default'].div.withConfig({
15
+ const StyledInnerContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
16
16
  componentId: "sc-4jnp92-0"
17
- })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], ({
18
- theme
19
- }) => theme.colors.neutral['000'], ({
20
- type,
21
- theme
22
- }) => styleHelpers.handleBorderColor(type, theme), ({
23
- isOpen
24
- }) => isOpen ? '0' : '-100%', ({
25
- isAnimating,
26
- isOpen
27
- }) => styleHelpers.handleAnimation(isAnimating, isOpen));
28
- const StyledTextContent = /*#__PURE__*/styled__default['default'].div.withConfig({
17
+ })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], _ref => {
18
+ let {
19
+ theme
20
+ } = _ref;
21
+ return theme.colors.neutral['000'];
22
+ }, _ref2 => {
23
+ let {
24
+ type,
25
+ theme
26
+ } = _ref2;
27
+ return styleHelpers.handleBorderColor(type, theme);
28
+ }, _ref3 => {
29
+ let {
30
+ isOpen
31
+ } = _ref3;
32
+ return isOpen ? '0' : '-100%';
33
+ }, _ref4 => {
34
+ let {
35
+ isAnimating,
36
+ isOpen
37
+ } = _ref4;
38
+ return styleHelpers.handleAnimation(isAnimating, isOpen);
39
+ });
40
+ const StyledTextContent = /*#__PURE__*/styled__default["default"].div.withConfig({
29
41
  componentId: "sc-4jnp92-1"
30
42
  })(["width:100%;"]);
31
- const StyledTitle = /*#__PURE__*/styled__default['default'].div.withConfig({
43
+ const StyledTitle = /*#__PURE__*/styled__default["default"].div.withConfig({
32
44
  componentId: "sc-4jnp92-2"
33
- })(["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 ", ";}"], ({
34
- theme
35
- }) => theme.colors.neutral[700], ({
36
- theme
37
- }) => dsSystem.toMobile(theme.fontSizes.title[700]), ({
38
- theme
39
- }) => theme.fontWeights.semibold, ({
40
- theme
41
- }) => theme.space.xxs, ({
42
- theme
43
- }) => theme.colors.neutral[700], ({
44
- theme
45
- }) => theme.colors.neutral[700]);
46
- const StyledSubTitle = /*#__PURE__*/styled__default['default'].div.withConfig({
45
+ })(["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 => {
46
+ let {
47
+ theme
48
+ } = _ref5;
49
+ return theme.colors.neutral[700];
50
+ }, _ref6 => {
51
+ let {
52
+ theme
53
+ } = _ref6;
54
+ return dsSystem.toMobile(theme.fontSizes.title[700]);
55
+ }, _ref7 => {
56
+ let {
57
+ theme
58
+ } = _ref7;
59
+ return theme.fontWeights.semibold;
60
+ }, _ref8 => {
61
+ let {
62
+ theme
63
+ } = _ref8;
64
+ return theme.space.xxs;
65
+ }, _ref9 => {
66
+ let {
67
+ theme
68
+ } = _ref9;
69
+ return theme.colors.neutral[700];
70
+ }, _ref10 => {
71
+ let {
72
+ theme
73
+ } = _ref10;
74
+ return theme.colors.neutral[700];
75
+ });
76
+ const StyledSubTitle = /*#__PURE__*/styled__default["default"].div.withConfig({
47
77
  componentId: "sc-4jnp92-3"
48
- })(["font-size:", ";font-weight:", ";"], ({
49
- theme
50
- }) => dsSystem.toMobile(theme.fontSizes.title[600]), ({
51
- theme
52
- }) => theme.fontWeights.regular);
53
- const StyledIconContainer = /*#__PURE__*/styled__default['default'].div.withConfig({
78
+ })(["font-size:", ";font-weight:", ";"], _ref11 => {
79
+ let {
80
+ theme
81
+ } = _ref11;
82
+ return dsSystem.toMobile(theme.fontSizes.title[600]);
83
+ }, _ref12 => {
84
+ let {
85
+ theme
86
+ } = _ref12;
87
+ return theme.fontWeights.regular;
88
+ });
89
+ const StyledIconContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
54
90
  componentId: "sc-4jnp92-4"
55
- })(["margin-top:10px;margin-right:", ";margin-left:", ";"], ({
56
- theme
57
- }) => theme.space.xxs, ({
58
- theme
59
- }) => theme.space.xs);
60
- const StyledContent = /*#__PURE__*/styled__default['default'].div.withConfig({
91
+ })(["margin-top:10px;margin-right:", ";margin-left:", ";"], _ref13 => {
92
+ let {
93
+ theme
94
+ } = _ref13;
95
+ return theme.space.xxs;
96
+ }, _ref14 => {
97
+ let {
98
+ theme
99
+ } = _ref14;
100
+ return theme.space.xs;
101
+ });
102
+ const StyledContent = /*#__PURE__*/styled__default["default"].div.withConfig({
61
103
  componentId: "sc-4jnp92-5"
62
- })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], ({
63
- theme
64
- }) => theme.space.xxs2, ({
65
- showCloseButton
66
- }) => !showCloseButton ? '28px' : '0');
67
- const StyledCloseButtonContainer = /*#__PURE__*/styled__default['default'].div.withConfig({
104
+ })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], _ref15 => {
105
+ let {
106
+ theme
107
+ } = _ref15;
108
+ return theme.space.xxs2;
109
+ }, _ref16 => {
110
+ let {
111
+ showCloseButton
112
+ } = _ref16;
113
+ return !showCloseButton ? '28px' : '0';
114
+ });
115
+ const StyledCloseButtonContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
68
116
  componentId: "sc-4jnp92-6"
69
- })(["display:flex;align-items:flex-start;margin-top:14px;margin-right:4px;"]);
70
- const StyledCloseButton = /*#__PURE__*/styled__default['default'](DSButton__default['default']).withConfig({
117
+ })(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
118
+ const StyledCloseButton = /*#__PURE__*/styled__default["default"](DSButton__default["default"]).withConfig({
71
119
  componentId: "sc-4jnp92-7"
72
- })(["position:relative;&:focus{&:after{display:block;content:' ';position:absolute;top:-2px;left:0;width:calc(100% + 0px);height:calc(100% + 5px);border:2px solid ", ";border-radius:2px;pointer-events:none;}}"], ({
73
- theme
74
- }) => theme.colors.brand[700]);
75
- const StyledActionLink = /*#__PURE__*/styled__default['default'].a.withConfig({
120
+ })(["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 => {
121
+ let {
122
+ theme
123
+ } = _ref17;
124
+ return theme.colors.brand[700];
125
+ });
126
+ const StyledActionLink = /*#__PURE__*/styled__default["default"].a.withConfig({
76
127
  componentId: "sc-4jnp92-8"
77
- })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], ({
78
- theme
79
- }) => theme.space.xs, ({
80
- theme
81
- }) => dsSystem.toMobile(theme.fontSizes.title[600]), ({
82
- theme
83
- }) => theme.fontWeights.regular, ({
84
- theme
85
- }) => theme.colors.brand[600]);
86
- const StyledBannerContainer = /*#__PURE__*/styled__default['default'].div.withConfig({
128
+ })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], _ref18 => {
129
+ let {
130
+ theme
131
+ } = _ref18;
132
+ return theme.space.xs;
133
+ }, _ref19 => {
134
+ let {
135
+ theme
136
+ } = _ref19;
137
+ return dsSystem.toMobile(theme.fontSizes.title[600]);
138
+ }, _ref20 => {
139
+ let {
140
+ theme
141
+ } = _ref20;
142
+ return theme.fontWeights.regular;
143
+ }, _ref21 => {
144
+ let {
145
+ theme
146
+ } = _ref21;
147
+ return theme.colors.brand[600];
148
+ });
149
+ const StyledBannerContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
87
150
  componentId: "sc-4jnp92-9"
88
- })(["overflow:hidden;height:", ";", ";"], ({
89
- isOpen
90
- }) => isOpen ? 'auto' : '0px', ({
91
- isAnimating,
92
- isOpen,
93
- height
94
- }) => styleHelpers.handleAnimation(isAnimating, isOpen, height));
151
+ })(["overflow:hidden;height:", ";", ";"], _ref22 => {
152
+ let {
153
+ isOpen
154
+ } = _ref22;
155
+ return isOpen ? 'auto' : '0px';
156
+ }, _ref23 => {
157
+ let {
158
+ isAnimating,
159
+ isOpen,
160
+ height
161
+ } = _ref23;
162
+ return styleHelpers.handleAnimation(isAnimating, isOpen, height);
163
+ });
95
164
 
96
165
  exports.StyledActionLink = StyledActionLink;
97
166
  exports.StyledBannerContainer = StyledBannerContainer;
@@ -4,30 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
- var SuccessFill = require('@elliemae/ds-icons/SuccessFill');
8
- var InfoFill = require('@elliemae/ds-icons/InfoFill');
9
- var AlertsDetailFill = require('@elliemae/ds-icons/AlertsDetailFill');
7
+ var dsIcons = require('@elliemae/ds-icons');
10
8
 
11
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
10
 
13
11
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
14
- var SuccessFill__default = /*#__PURE__*/_interopDefaultLegacy(SuccessFill);
15
- var InfoFill__default = /*#__PURE__*/_interopDefaultLegacy(InfoFill);
16
- var AlertsDetailFill__default = /*#__PURE__*/_interopDefaultLegacy(AlertsDetailFill);
17
12
 
18
13
  const icons = {
19
- success: /*#__PURE__*/_jsx__default['default'](SuccessFill__default['default'], {
14
+ success: /*#__PURE__*/_jsx__default["default"](dsIcons.SuccessFill, {
20
15
  fill: "#207e56"
21
16
  }),
22
- info: /*#__PURE__*/_jsx__default['default'](InfoFill__default['default'], {
17
+ info: /*#__PURE__*/_jsx__default["default"](dsIcons.InfoFill, {
23
18
  fill: "#1e79c2"
24
19
  }),
25
- error: /*#__PURE__*/_jsx__default['default'](AlertsDetailFill__default['default'], {
20
+ error: /*#__PURE__*/_jsx__default["default"](dsIcons.AlertsDetailFill, {
26
21
  width: "24px",
27
22
  height: "24px",
28
23
  fill: "#c64252"
29
24
  }),
30
- warning: /*#__PURE__*/_jsx__default['default'](AlertsDetailFill__default['default'], {
25
+ warning: /*#__PURE__*/_jsx__default["default"](dsIcons.WarningSquare, {
31
26
  width: "24px",
32
27
  height: "24px",
33
28
  fill: "#d17a00"
@@ -2,49 +2,24 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
5
6
  var dsSystem = require('@elliemae/ds-system');
6
7
  var bannerTypes = require('./bannerTypes.js');
7
8
 
8
- const slideIn = dsSystem.kfrm`
9
- 0% {
10
- transform: translate3d(0, -100%, 0);
11
- }
12
- 100% {
13
- transform: translate3d(0, 0, 0);
14
- }
15
- `;
16
- const slideOut = dsSystem.kfrm`
17
- 0% {
18
- transform: translate3d(0, 0, 0);
19
- opacity: 1;
20
- }
21
- 60% {
22
- opacity: 0;
23
- }
24
- 100% {
25
- opacity: 0;
26
- transform: translate3d(0, -100%, 0);
27
- }
28
- `;
29
- const spanContainer = height => dsSystem.kfrm`
30
- 0% {
31
- height: 0px;
32
- }
33
- 100% {
34
- height: ${height}px;
35
- }
36
- `;
37
- const shrinkContainer = height => dsSystem.kfrm`
38
- 0% {
39
- height: ${height}px;
40
- }
41
- 100% {
42
- height: 0px;
43
- }
44
- `;
45
- const handleBorderColor = (type, {
46
- colors
47
- }) => {
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
12
+
13
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
14
+ const slideIn = dsSystem.kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n 100% {\n transform: translate3d(0, 0, 0);\n }\n"])));
15
+ const slideOut = dsSystem.kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["\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"])));
16
+ const spanContainer = height => dsSystem.kfrm(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default["default"](["\n 0% {\n height: 0px;\n }\n 100% {\n height: ", "px;\n }\n"])), height);
17
+ const shrinkContainer = height => dsSystem.kfrm(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default["default"](["\n 0% {\n height: ", "px;\n }\n 100% {\n height: 0px;\n }\n"])), height);
18
+ const handleBorderColor = (type, _ref) => {
19
+ let {
20
+ colors
21
+ } = _ref;
22
+
48
23
  switch (type) {
49
24
  case bannerTypes.MOBILE_BANNER_TYPES.SUCCESS:
50
25
  return colors.success[900];
@@ -59,16 +34,14 @@ const handleBorderColor = (type, {
59
34
  return colors.danger[900];
60
35
  }
61
36
  };
62
- const handleAnimation = (isAnimating, isOpen, height = null) => {
37
+ const handleAnimation = function (isAnimating, isOpen) {
38
+ let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
39
+
63
40
  if (isAnimating) {
64
41
  if (isOpen) {
65
- return dsSystem.css`
66
- animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
67
- `;
42
+ return dsSystem.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral__default["default"](["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
68
43
  } else {
69
- return dsSystem.css`
70
- animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
71
- `;
44
+ return dsSystem.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral__default["default"](["\n animation: ", " 0.5s ease-in;\n "])), height ? shrinkContainer(height) : slideOut);
72
45
  }
73
46
  }
74
47
  };
@@ -5,29 +5,31 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var styled = require('styled-components');
8
- var ChevronSmallDown = require('@elliemae/ds-icons/ChevronSmallDown');
9
- var DSButton = require('@elliemae/ds-basic/Button');
8
+ var dsIcons = require('@elliemae/ds-icons');
9
+ var DSButton = require('@elliemae/ds-button');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
13
13
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
14
14
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
- var ChevronSmallDown__default = /*#__PURE__*/_interopDefaultLegacy(ChevronSmallDown);
16
15
  var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
17
16
 
18
- const Addon = /*#__PURE__*/styled__default['default'](DSButton__default['default']).withConfig({
17
+ const Addon = /*#__PURE__*/styled__default["default"](DSButton__default["default"]).withConfig({
19
18
  componentId: "sc-afblfw-0"
20
19
  })(["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']);
21
- const ActionAddon = ({
22
- label,
23
- onClick,
24
- icon
25
- }) => /*#__PURE__*/_jsx__default['default'](Addon, {
26
- onClick: onClick,
27
- labelText: label,
28
- icon: icon || /*#__PURE__*/_jsx__default['default'](ChevronSmallDown__default['default'], {
29
- color: ['brand-primary', 700]
30
- })
31
- });
20
+ const ActionAddon = _ref => {
21
+ let {
22
+ label,
23
+ onClick,
24
+ icon
25
+ } = _ref;
26
+ return /*#__PURE__*/_jsx__default["default"](Addon, {
27
+ onClick: onClick,
28
+ labelText: label,
29
+ icon: icon || /*#__PURE__*/_jsx__default["default"](dsIcons.ChevronSmallDown, {
30
+ color: ['brand-primary', 700]
31
+ })
32
+ });
33
+ };
32
34
 
33
35
  exports.ActionAddon = ActionAddon;
@@ -3,17 +3,20 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
+ require('core-js/modules/esnext.async-iterator.map.js');
7
+ require('core-js/modules/esnext.iterator.map.js');
6
8
  var React = require('react');
7
9
  var reactDesc = require('react-desc');
8
10
  var styled = require('styled-components');
9
11
  var styledSystem = require('styled-system');
10
12
  var dsSystem = require('@elliemae/ds-system');
11
13
  var GroupItem = require('@elliemae/ds-shared/GroupContext/GroupItem');
12
- var Grid = require('@elliemae/ds-basic/Grid');
14
+ var dsGrid = require('@elliemae/ds-grid');
13
15
  var StyledCard = require('./StyledCard.js');
14
16
  var ExpandChevron = require('./ExpandChevron.js');
15
17
  var useHeight = require('./useHeight.js');
16
18
  var ExpandableRegion = require('./ExpandableRegion.js');
19
+ var props = require('./props.js');
17
20
  var jsxRuntime = require('react/jsx-runtime');
18
21
 
19
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -22,59 +25,62 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
22
25
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
23
26
  var GroupItem__default = /*#__PURE__*/_interopDefaultLegacy(GroupItem);
24
27
 
25
- const TitleEllipsis = /*#__PURE__*/styled__default['default'].div.withConfig({
28
+ const TitleEllipsis = /*#__PURE__*/styled__default["default"].div.withConfig({
26
29
  componentId: "sc-10tpzm8-0"
27
30
  })(["", ""], dsSystem.truncate());
28
- const Title = /*#__PURE__*/styled__default['default'].div.withConfig({
31
+ const Title = /*#__PURE__*/styled__default["default"].div.withConfig({
29
32
  componentId: "sc-10tpzm8-1"
30
- })(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], styledSystem.padding, dsSystem.truncate(), props => props.theme.fontWeights.semibold, props => dsSystem.toMobile(props.theme.fontSizes.title[600]), dsSystem.color('neutral', '800'));
31
- const Detail = /*#__PURE__*/styled__default['default'].span.withConfig({
33
+ })(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], styledSystem.padding, dsSystem.truncate(), props => props.theme.fontWeights.semibold, props => dsSystem.toMobile(props.theme.fontSizes.title[600]), dsSystem.color('neutral', 800));
34
+ const Detail = /*#__PURE__*/styled__default["default"].span.withConfig({
32
35
  componentId: "sc-10tpzm8-2"
33
36
  })(["", " ", " font-size:", ";font-weight:", ";"], styledSystem.padding, dsSystem.truncate(), props => dsSystem.toMobile(props.theme.fontSizes.title[500]), props => props.theme.fontWeights.regular);
34
- const SubText = /*#__PURE__*/styled__default['default'].span.withConfig({
37
+ const SubText = /*#__PURE__*/styled__default["default"].span.withConfig({
35
38
  componentId: "sc-10tpzm8-3"
36
39
  })(["margin-top:", ";", " &:nth-child(2){padding-left:", ";}"], props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), dsSystem.truncate(), props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s));
37
- const SubTextWrap = /*#__PURE__*/styled__default['default'].div.withConfig({
40
+ const SubTextWrap = /*#__PURE__*/styled__default["default"].div.withConfig({
38
41
  componentId: "sc-10tpzm8-4"
39
- })(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], dsSystem.truncate(), props => dsSystem.border(props.theme.colors.neutral['300']), props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => dsSystem.toMobile(props.theme.fontSizes.subTitle[400]), dsSystem.color('neutral', '500'), props => props.theme.fontWeights.regular);
40
- const LeftIcon = /*#__PURE__*/styled__default['default'](Grid.Grid).withConfig({
42
+ })(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], dsSystem.truncate(), props => dsSystem.border(props.theme.colors.neutral['300']), props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => dsSystem.toMobile(props.theme.fontSizes.subTitle[400]), dsSystem.color('neutral', 500), props => props.theme.fontWeights.regular);
43
+ const LeftIcon = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
41
44
  componentId: "sc-10tpzm8-5"
42
45
  })(["& > span{height:", ";width:", ";}& > span > svg,svg:not([fill]){height:", ";width:", ";}"], props => props.halfM, props => props.halfM, props => props.halfM, props => props.halfM);
43
- const CenterWrap = /*#__PURE__*/styled__default['default'].div.withConfig({
46
+ const CenterWrap = /*#__PURE__*/styled__default["default"].div.withConfig({
44
47
  componentId: "sc-10tpzm8-6"
45
48
  })(["display:flex;align-items:center;", ""], dsSystem.truncate());
46
49
 
47
- const MobileCard = ({
48
- children,
49
- height = 'm',
50
- leftAddOn,
51
- leftProp,
52
- rightProp,
53
- subText,
54
- subIcons,
55
- details,
56
- theme,
57
- expandable = false,
58
- expandedContent,
59
- value
60
- }) => {
61
- var _TitleEllipsis, _SubText;
62
-
50
+ const MobileCard = _ref => {
51
+ var _TitleEllipsis, _SubText, _Grid;
52
+
53
+ let {
54
+ children,
55
+ height = 'm',
56
+ leftAddOn,
57
+ leftProp,
58
+ rightProp,
59
+ subText,
60
+ subIcons,
61
+ details,
62
+ theme,
63
+ expandable = false,
64
+ expandedContent,
65
+ value,
66
+ cardContent
67
+ } = _ref;
63
68
  const subTextRef = React.useRef(null);
64
69
  const subTextHeight = useHeight.useHeight(subTextRef);
65
70
  const isJustChildren = !(subText || subIcons || details);
66
71
  const halfM = dsSystem.op('/', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 2);
67
- return /*#__PURE__*/_jsx__default['default'](GroupItem__default['default'], {
68
- render: (context = {}) => {
72
+ return /*#__PURE__*/_jsx__default["default"](GroupItem__default["default"], {
73
+ render: function () {
74
+ let context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
69
75
  const {
70
76
  activeValue,
71
77
  onChange
72
78
  } = context;
73
79
  const selected = activeValue !== undefined && (activeValue === value || (activeValue === null || activeValue === void 0 ? void 0 : activeValue.length) && (activeValue === null || activeValue === void 0 ? void 0 : activeValue.includes(value)));
74
- return /*#__PURE__*/_jsx__default['default'](StyledCard.StyledCard, {
80
+ return /*#__PURE__*/_jsx__default["default"](StyledCard.StyledCard, {
75
81
  "data-testid": "card-wrapper",
76
82
  minHeight: height === 'm' ? dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl) : dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xl)
77
- }, void 0, expandable && /*#__PURE__*/_jsx__default['default'](ExpandChevron.ExpandChevron, {
83
+ }, void 0, expandable && /*#__PURE__*/_jsx__default["default"](ExpandChevron.ExpandChevron, {
78
84
  isExpanded: selected,
79
85
  onClick: e => {
80
86
  e.stopPropagation();
@@ -85,105 +91,52 @@ const MobileCard = ({
85
91
  });
86
92
  },
87
93
  align: subText || subIcons ? 'top' : 'center'
88
- }), /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
94
+ }), /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
89
95
  pb: (subText || subIcons) && subTextHeight,
90
96
  cols: ['auto', 'auto'],
91
97
  alignItems: "center"
92
- }, void 0, leftProp && /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
98
+ }, void 0, leftProp && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
93
99
  ml: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
94
- }, void 0, leftProp), leftAddOn && /*#__PURE__*/_jsx__default['default'](LeftIcon, {
100
+ }, void 0, leftProp), leftAddOn && /*#__PURE__*/_jsx__default["default"](LeftIcon, {
95
101
  ml: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
96
102
  halfM: halfM
97
- }, void 0, leftAddOn)), /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
103
+ }, void 0, leftAddOn)), /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
98
104
  pl: !leftAddOn ? dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s) : dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xs),
99
105
  pr: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
100
106
  width: "100%"
101
- }, void 0, /*#__PURE__*/_jsx__default['default'](CenterWrap, {}, void 0, /*#__PURE__*/_jsx__default['default'](Title, {
107
+ }, void 0, /*#__PURE__*/_jsx__default["default"](CenterWrap, {}, void 0, /*#__PURE__*/_jsx__default["default"](Title, {
102
108
  pt: !isJustChildren && halfM,
103
109
  "data-testid": "card-title"
104
- }, void 0, _TitleEllipsis || (_TitleEllipsis = /*#__PURE__*/_jsx__default['default'](TitleEllipsis, {}, void 0, children)), details && /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
110
+ }, void 0, _TitleEllipsis || (_TitleEllipsis = /*#__PURE__*/_jsx__default["default"](TitleEllipsis, {}, void 0, children)), details && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
105
111
  "data-testid": "card-details",
106
112
  cols: details.map(() => 'min-content'),
107
- mb: !(subText || subIcons) && halfM,
113
+ mb: !(subText || subIcons) && halfM || 0,
108
114
  pt: dsSystem.op('/', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs), 2)
109
- }, void 0, details.map((d, i) => /*#__PURE__*/_jsx__default['default'](Detail, {}, i, d, i < details.length - 1 && /*#__PURE__*/_jsx__default['default'](Detail, {
115
+ }, void 0, details.map((d, i) => /*#__PURE__*/_jsx__default["default"](Detail, {}, i, d, i < details.length - 1 && /*#__PURE__*/_jsx__default["default"](Detail, {
110
116
  px: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs)
111
- }, void 0, "\u2022"))))), rightProp && rightProp.map((prop, i) => /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
117
+ }, void 0, "\u2022"))))), rightProp && rightProp.map((prop, i) => /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
112
118
  ml: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
113
119
  }, i, prop))), subIcons && /*#__PURE__*/jsxRuntime.jsxs(SubTextWrap, {
114
120
  ref: subTextRef,
115
- children: [_SubText || (_SubText = /*#__PURE__*/_jsx__default['default'](SubText, {}, void 0, subIcons)), subText && subText[1] && /*#__PURE__*/_jsx__default['default'](SubText, {
121
+ children: [_SubText || (_SubText = /*#__PURE__*/_jsx__default["default"](SubText, {}, void 0, subIcons)), subText && subText[1] && /*#__PURE__*/_jsx__default["default"](SubText, {
116
122
  "data-testid": "card-subText"
117
123
  }, void 0, subText[1])]
118
124
  }), subText && !subIcons && /*#__PURE__*/jsxRuntime.jsx(SubTextWrap, {
119
125
  ref: subTextRef,
120
- children: subText.map((s, i) => /*#__PURE__*/_jsx__default['default'](SubText, {
126
+ children: subText.map((s, i) => /*#__PURE__*/_jsx__default["default"](SubText, {
121
127
  "data-testid": "card-subText"
122
128
  }, i, s))
123
- }), /*#__PURE__*/_jsx__default['default'](ExpandableRegion.ExpandableRegion, {
129
+ }), /*#__PURE__*/_jsx__default["default"](ExpandableRegion.ExpandableRegion, {
124
130
  show: selected,
125
131
  content: expandedContent
126
- })));
132
+ }), cardContent && (_Grid || (_Grid = /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, cardContent)))));
127
133
  }
128
134
  });
129
135
  };
130
136
 
131
- const props = {
132
- /**
133
- * card height
134
- */
135
- height: reactDesc.PropTypes.oneOf(['s', 'm']).description('card height'),
136
-
137
- /**
138
- * Defines mobile card title
139
- */
140
- children: reactDesc.PropTypes.string.isRequired.description('Defines mobile card title'),
141
-
142
- /**
143
- * Wheter if the card is expandable or not
144
- */
145
- expandable: reactDesc.PropTypes.bool.description('Wheter if the card is expandable or not'),
146
-
147
- /**
148
- * content to display in expand card section
149
- */
150
- expandedContent: reactDesc.PropTypes.element.description('content to display in expand card section'),
151
-
152
- /**
153
- * Icon to the left of the card. Size is adjusted automatically.
154
- */
155
- leftAddOn: reactDesc.PropTypes.element.description('Icon to the left of the card. Size is adjusted automatically.'),
156
-
157
- /**
158
- * Pass an element to render left. For example a Button with an icon
159
- */
160
- leftProp: reactDesc.PropTypes.element.description('Pass an element to render left. For example a Button with an icon'),
161
-
162
- /**
163
- * Pass an array of 1 or 2 elements to render right. For example a Button with an icon
164
- */
165
- rightProp: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.element).description('Pass an array of 1 or 2 elements to render right. For example a Button with an icon'),
166
-
167
- /**
168
- * Pass an array of 1 or 2 strings
169
- */
170
- subText: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description('Pass an array of 1 or 2 strings'),
171
-
172
- /**
173
- * SubIcons component
174
- */
175
- subIcons: reactDesc.PropTypes.element.description('SubIcons component'),
176
-
177
- /**
178
- * Pass an array of 1, 2 or 3 strings
179
- */
180
- details: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description('Pass an array of 1, 2 or 3 strings'),
181
- theme: reactDesc.PropTypes.object.isRequired.description(''),
182
- value: reactDesc.PropTypes.number.description('')
183
- };
184
137
  const DSMobileCardWithSchema = reactDesc.describe(MobileCard);
185
- DSMobileCardWithSchema.propTypes = props;
138
+ DSMobileCardWithSchema.propTypes = props.cardPropsTypes;
186
139
  var MobileCard$1 = dsSystem.withTheme(MobileCard);
187
140
 
188
141
  exports.DSMobileCardWithSchema = DSMobileCardWithSchema;
189
- exports['default'] = MobileCard$1;
142
+ exports["default"] = MobileCard$1;