@elliemae/ds-mobile 3.1.0-next.1 → 3.1.0-next.10

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 (235) hide show
  1. package/dist/cjs/Accordion/DSMobileAccordion.js +3 -3
  2. package/dist/cjs/Accordion/DSMobileAccordion.js.map +2 -2
  3. package/dist/cjs/CategoryBox/CategoryBox.js +12 -12
  4. package/dist/cjs/CategoryBox/CategoryBox.js.map +2 -2
  5. package/dist/cjs/CollectionBox/CollectionBox.js +15 -15
  6. package/dist/cjs/CollectionBox/CollectionBox.js.map +2 -2
  7. package/dist/cjs/GlobalHeader/MobileGlobalHeader.js +9 -9
  8. package/dist/cjs/GlobalHeader/MobileGlobalHeader.js.map +2 -2
  9. package/dist/cjs/GlobalHeader/styles.js +9 -9
  10. package/dist/cjs/GlobalHeader/styles.js.map +2 -2
  11. package/dist/cjs/GroupBox/GroupBox.js +11 -11
  12. package/dist/cjs/GroupBox/GroupBox.js.map +2 -2
  13. package/dist/cjs/InfiniteLoader/Infiniteloader.js +6 -6
  14. package/dist/cjs/InfiniteLoader/Infiniteloader.js.map +2 -2
  15. package/dist/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +9 -9
  16. package/dist/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js.map +2 -2
  17. package/dist/cjs/InfiniteLoader/styled.js +2 -2
  18. package/dist/cjs/InfiniteLoader/styled.js.map +2 -2
  19. package/dist/cjs/LoadingPage/Page.js +2 -2
  20. package/dist/cjs/LoadingPage/Page.js.map +2 -2
  21. package/dist/cjs/MobileActionToolbar/MobileActionToolbar.js +7 -7
  22. package/dist/cjs/MobileActionToolbar/MobileActionToolbar.js.map +2 -2
  23. package/dist/cjs/MobileActionToolbar/MobileActionToolbarItem.js +3 -3
  24. package/dist/cjs/MobileActionToolbar/MobileActionToolbarItem.js.map +2 -2
  25. package/dist/cjs/MobileBanner/MobileBanner.js +2 -2
  26. package/dist/cjs/MobileBanner/MobileBanner.js.map +2 -2
  27. package/dist/cjs/MobileBanner/propTypes.js +12 -12
  28. package/dist/cjs/MobileBanner/propTypes.js.map +2 -2
  29. package/dist/cjs/MobileBanner/styles.js +15 -15
  30. package/dist/cjs/MobileBanner/styles.js.map +2 -2
  31. package/dist/cjs/MobileBanner/utils/styleHelpers.js.map +1 -1
  32. package/dist/cjs/MobileCard/ActionAddon.js +2 -2
  33. package/dist/cjs/MobileCard/ActionAddon.js.map +2 -2
  34. package/dist/cjs/MobileCard/Card.js +11 -13
  35. package/dist/cjs/MobileCard/Card.js.map +2 -2
  36. package/dist/cjs/MobileCard/CardIcons.js +2 -2
  37. package/dist/cjs/MobileCard/CardIcons.js.map +2 -2
  38. package/dist/cjs/MobileCard/ExpandChevron.js +2 -2
  39. package/dist/cjs/MobileCard/ExpandChevron.js.map +2 -2
  40. package/dist/cjs/MobileCard/ExpandableRegion.js +5 -5
  41. package/dist/cjs/MobileCard/ExpandableRegion.js.map +2 -2
  42. package/dist/cjs/MobileCard/Group.js +23 -23
  43. package/dist/cjs/MobileCard/Group.js.map +2 -2
  44. package/dist/cjs/MobileCard/StyledCard.js +4 -4
  45. package/dist/cjs/MobileCard/StyledCard.js.map +2 -2
  46. package/dist/cjs/MobileCard/props.js +14 -14
  47. package/dist/cjs/MobileCard/props.js.map +2 -2
  48. package/dist/cjs/MobileContextMenu/MobileContextMenu.js +25 -25
  49. package/dist/cjs/MobileContextMenu/MobileContextMenu.js.map +2 -2
  50. package/dist/cjs/MobileContextMenu/MobileContextMenuGroup.js +10 -10
  51. package/dist/cjs/MobileContextMenu/MobileContextMenuGroup.js.map +2 -2
  52. package/dist/cjs/MobileContextMenu/MobileContextMenuItem.js +18 -18
  53. package/dist/cjs/MobileContextMenu/MobileContextMenuItem.js.map +2 -2
  54. package/dist/cjs/MobileDatePicker/Input.js +5 -5
  55. package/dist/cjs/MobileDatePicker/Input.js.map +2 -2
  56. package/dist/cjs/MobileDatePicker/MobileDatePicker.js +7 -7
  57. package/dist/cjs/MobileDatePicker/MobileDatePicker.js.map +2 -2
  58. package/dist/cjs/MobileDropdownMenu/MobileDropdownInput.js +6 -6
  59. package/dist/cjs/MobileDropdownMenu/MobileDropdownInput.js.map +2 -2
  60. package/dist/cjs/MobileDropdownMenu/MobileDropdownMenu.js +5 -5
  61. package/dist/cjs/MobileDropdownMenu/MobileDropdownMenu.js.map +2 -2
  62. package/dist/cjs/MobileEmtpyState/MobileEmptyState.js +6 -6
  63. package/dist/cjs/MobileEmtpyState/MobileEmptyState.js.map +2 -2
  64. package/dist/cjs/MobileFilterbar/Filterbar.js +7 -7
  65. package/dist/cjs/MobileFilterbar/Filterbar.js.map +2 -2
  66. package/dist/cjs/MobileFilterbar/FilterbarItem.js +4 -4
  67. package/dist/cjs/MobileFilterbar/FilterbarItem.js.map +2 -2
  68. package/dist/cjs/MobileFilterbar/FilterbarSort.js +5 -5
  69. package/dist/cjs/MobileFilterbar/FilterbarSort.js.map +2 -2
  70. package/dist/cjs/MobileFooter/Action.js +7 -9
  71. package/dist/cjs/MobileFooter/Action.js.map +2 -2
  72. package/dist/cjs/MobileFooter/Footer.js +7 -7
  73. package/dist/cjs/MobileFooter/Footer.js.map +2 -2
  74. package/dist/cjs/MobileFooter/Text.js +8 -8
  75. package/dist/cjs/MobileFooter/Text.js.map +2 -2
  76. package/dist/cjs/MobileListItem/MobileListItem.js +19 -19
  77. package/dist/cjs/MobileListItem/MobileListItem.js.map +2 -2
  78. package/dist/cjs/MobilePageHeader/MobilePageHeader.js +25 -25
  79. package/dist/cjs/MobilePageHeader/MobilePageHeader.js.map +2 -2
  80. package/dist/cjs/MobileSelectList/styled.js +8 -8
  81. package/dist/cjs/MobileSelectList/styled.js.map +2 -2
  82. package/dist/cjs/MobileSeparator/Separator.js +8 -8
  83. package/dist/cjs/MobileSeparator/Separator.js.map +2 -2
  84. package/dist/cjs/MobileTimePicker/Input.js +2 -2
  85. package/dist/cjs/MobileTimePicker/Input.js.map +2 -2
  86. package/dist/cjs/MobileTimePicker/MobileTimePicker.js +7 -7
  87. package/dist/cjs/MobileTimePicker/MobileTimePicker.js.map +2 -2
  88. package/dist/cjs/MobileTouchable/MobileTouchable.js +4 -4
  89. package/dist/cjs/MobileTouchable/MobileTouchable.js.map +2 -2
  90. package/dist/cjs/Modal/Modal.js +14 -14
  91. package/dist/cjs/Modal/Modal.js.map +2 -2
  92. package/dist/cjs/Modal/styled.js +8 -8
  93. package/dist/cjs/Modal/styled.js.map +2 -2
  94. package/dist/cjs/PageFilter/PageFilter.js +13 -13
  95. package/dist/cjs/PageFilter/PageFilter.js.map +2 -2
  96. package/dist/cjs/PageForm/PageForm.js +5 -5
  97. package/dist/cjs/PageForm/PageForm.js.map +2 -2
  98. package/dist/cjs/PageList/PageList.js +6 -6
  99. package/dist/cjs/PageList/PageList.js.map +2 -2
  100. package/dist/cjs/PageSearch/PageSearch.js +7 -7
  101. package/dist/cjs/PageSearch/PageSearch.js.map +2 -2
  102. package/dist/cjs/PageSummary/PageSummary.js +3 -3
  103. package/dist/cjs/PageSummary/PageSummary.js.map +2 -2
  104. package/dist/cjs/PageSummary/Tags.js +5 -5
  105. package/dist/cjs/PageSummary/Tags.js.map +2 -2
  106. package/dist/cjs/SideNav/SideNav.js +8 -8
  107. package/dist/cjs/SideNav/SideNav.js.map +2 -2
  108. package/dist/cjs/SideNav/styles.js +9 -9
  109. package/dist/cjs/SideNav/styles.js.map +2 -2
  110. package/dist/cjs/SwipeToRefresh/SwipeToRefresh.js +5 -5
  111. package/dist/cjs/SwipeToRefresh/SwipeToRefresh.js.map +2 -2
  112. package/dist/cjs/SwipeToRefresh/styled.js +5 -5
  113. package/dist/cjs/SwipeToRefresh/styled.js.map +2 -2
  114. package/dist/cjs/Tabs/index.js +3 -3
  115. package/dist/cjs/Tabs/index.js.map +2 -2
  116. package/dist/cjs/Tabs/propTypes.js +14 -14
  117. package/dist/cjs/Tabs/propTypes.js.map +2 -2
  118. package/dist/esm/Accordion/DSMobileAccordion.js +1 -1
  119. package/dist/esm/Accordion/DSMobileAccordion.js.map +1 -1
  120. package/dist/esm/CategoryBox/CategoryBox.js +2 -2
  121. package/dist/esm/CategoryBox/CategoryBox.js.map +1 -1
  122. package/dist/esm/CollectionBox/CollectionBox.js +2 -2
  123. package/dist/esm/CollectionBox/CollectionBox.js.map +1 -1
  124. package/dist/esm/GlobalHeader/MobileGlobalHeader.js +1 -1
  125. package/dist/esm/GlobalHeader/MobileGlobalHeader.js.map +1 -1
  126. package/dist/esm/GlobalHeader/styles.js +1 -1
  127. package/dist/esm/GlobalHeader/styles.js.map +1 -1
  128. package/dist/esm/GroupBox/GroupBox.js +2 -2
  129. package/dist/esm/GroupBox/GroupBox.js.map +1 -1
  130. package/dist/esm/InfiniteLoader/Infiniteloader.js +1 -1
  131. package/dist/esm/InfiniteLoader/Infiniteloader.js.map +1 -1
  132. package/dist/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +1 -1
  133. package/dist/esm/InfiniteLoader/VirtualizedInfiniteLoader.js.map +1 -1
  134. package/dist/esm/InfiniteLoader/styled.js +1 -1
  135. package/dist/esm/InfiniteLoader/styled.js.map +1 -1
  136. package/dist/esm/LoadingPage/Page.js +1 -1
  137. package/dist/esm/LoadingPage/Page.js.map +1 -1
  138. package/dist/esm/MobileActionToolbar/MobileActionToolbar.js +2 -2
  139. package/dist/esm/MobileActionToolbar/MobileActionToolbar.js.map +1 -1
  140. package/dist/esm/MobileActionToolbar/MobileActionToolbarItem.js +1 -1
  141. package/dist/esm/MobileActionToolbar/MobileActionToolbarItem.js.map +1 -1
  142. package/dist/esm/MobileBanner/MobileBanner.js +1 -1
  143. package/dist/esm/MobileBanner/MobileBanner.js.map +1 -1
  144. package/dist/esm/MobileBanner/propTypes.js +1 -1
  145. package/dist/esm/MobileBanner/propTypes.js.map +1 -1
  146. package/dist/esm/MobileBanner/styles.js +1 -1
  147. package/dist/esm/MobileBanner/styles.js.map +1 -1
  148. package/dist/esm/MobileBanner/utils/styleHelpers.js.map +1 -1
  149. package/dist/esm/MobileCard/ActionAddon.js +1 -1
  150. package/dist/esm/MobileCard/ActionAddon.js.map +1 -1
  151. package/dist/esm/MobileCard/Card.js +12 -4
  152. package/dist/esm/MobileCard/Card.js.map +2 -2
  153. package/dist/esm/MobileCard/CardIcons.js +1 -1
  154. package/dist/esm/MobileCard/CardIcons.js.map +1 -1
  155. package/dist/esm/MobileCard/ExpandChevron.js +1 -1
  156. package/dist/esm/MobileCard/ExpandChevron.js.map +1 -1
  157. package/dist/esm/MobileCard/ExpandableRegion.js +1 -1
  158. package/dist/esm/MobileCard/ExpandableRegion.js.map +1 -1
  159. package/dist/esm/MobileCard/Group.js +2 -2
  160. package/dist/esm/MobileCard/Group.js.map +1 -1
  161. package/dist/esm/MobileCard/StyledCard.js +1 -1
  162. package/dist/esm/MobileCard/StyledCard.js.map +1 -1
  163. package/dist/esm/MobileCard/props.js +1 -1
  164. package/dist/esm/MobileCard/props.js.map +1 -1
  165. package/dist/esm/MobileContextMenu/MobileContextMenu.js +2 -2
  166. package/dist/esm/MobileContextMenu/MobileContextMenu.js.map +1 -1
  167. package/dist/esm/MobileContextMenu/MobileContextMenuGroup.js +2 -2
  168. package/dist/esm/MobileContextMenu/MobileContextMenuGroup.js.map +1 -1
  169. package/dist/esm/MobileContextMenu/MobileContextMenuItem.js +2 -2
  170. package/dist/esm/MobileContextMenu/MobileContextMenuItem.js.map +1 -1
  171. package/dist/esm/MobileDatePicker/Input.js +1 -1
  172. package/dist/esm/MobileDatePicker/Input.js.map +1 -1
  173. package/dist/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  174. package/dist/esm/MobileDatePicker/MobileDatePicker.js.map +1 -1
  175. package/dist/esm/MobileDropdownMenu/MobileDropdownInput.js +1 -1
  176. package/dist/esm/MobileDropdownMenu/MobileDropdownInput.js.map +1 -1
  177. package/dist/esm/MobileDropdownMenu/MobileDropdownMenu.js +1 -1
  178. package/dist/esm/MobileDropdownMenu/MobileDropdownMenu.js.map +1 -1
  179. package/dist/esm/MobileEmtpyState/MobileEmptyState.js +2 -2
  180. package/dist/esm/MobileEmtpyState/MobileEmptyState.js.map +1 -1
  181. package/dist/esm/MobileFilterbar/Filterbar.js +2 -2
  182. package/dist/esm/MobileFilterbar/Filterbar.js.map +1 -1
  183. package/dist/esm/MobileFilterbar/FilterbarItem.js +1 -1
  184. package/dist/esm/MobileFilterbar/FilterbarItem.js.map +1 -1
  185. package/dist/esm/MobileFilterbar/FilterbarSort.js +2 -2
  186. package/dist/esm/MobileFilterbar/FilterbarSort.js.map +1 -1
  187. package/dist/esm/MobileFooter/Action.js +2 -4
  188. package/dist/esm/MobileFooter/Action.js.map +2 -2
  189. package/dist/esm/MobileFooter/Footer.js +2 -2
  190. package/dist/esm/MobileFooter/Footer.js.map +1 -1
  191. package/dist/esm/MobileFooter/Text.js +2 -2
  192. package/dist/esm/MobileFooter/Text.js.map +1 -1
  193. package/dist/esm/MobileListItem/MobileListItem.js +2 -2
  194. package/dist/esm/MobileListItem/MobileListItem.js.map +1 -1
  195. package/dist/esm/MobilePageHeader/MobilePageHeader.js +2 -2
  196. package/dist/esm/MobilePageHeader/MobilePageHeader.js.map +1 -1
  197. package/dist/esm/MobileSelectList/styled.js +1 -1
  198. package/dist/esm/MobileSelectList/styled.js.map +1 -1
  199. package/dist/esm/MobileSeparator/Separator.js +2 -2
  200. package/dist/esm/MobileSeparator/Separator.js.map +1 -1
  201. package/dist/esm/MobileTimePicker/Input.js +1 -1
  202. package/dist/esm/MobileTimePicker/Input.js.map +1 -1
  203. package/dist/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  204. package/dist/esm/MobileTimePicker/MobileTimePicker.js.map +1 -1
  205. package/dist/esm/MobileTouchable/MobileTouchable.js +1 -1
  206. package/dist/esm/MobileTouchable/MobileTouchable.js.map +1 -1
  207. package/dist/esm/Modal/Modal.js +1 -1
  208. package/dist/esm/Modal/Modal.js.map +1 -1
  209. package/dist/esm/Modal/styled.js +1 -1
  210. package/dist/esm/Modal/styled.js.map +1 -1
  211. package/dist/esm/PageFilter/PageFilter.js +1 -1
  212. package/dist/esm/PageFilter/PageFilter.js.map +1 -1
  213. package/dist/esm/PageForm/PageForm.js +1 -1
  214. package/dist/esm/PageForm/PageForm.js.map +1 -1
  215. package/dist/esm/PageList/PageList.js +1 -1
  216. package/dist/esm/PageList/PageList.js.map +1 -1
  217. package/dist/esm/PageSearch/PageSearch.js +1 -1
  218. package/dist/esm/PageSearch/PageSearch.js.map +1 -1
  219. package/dist/esm/PageSummary/PageSummary.js +1 -1
  220. package/dist/esm/PageSummary/PageSummary.js.map +1 -1
  221. package/dist/esm/PageSummary/Tags.js +1 -1
  222. package/dist/esm/PageSummary/Tags.js.map +1 -1
  223. package/dist/esm/SideNav/SideNav.js +1 -1
  224. package/dist/esm/SideNav/SideNav.js.map +1 -1
  225. package/dist/esm/SideNav/styles.js +1 -1
  226. package/dist/esm/SideNav/styles.js.map +1 -1
  227. package/dist/esm/SwipeToRefresh/SwipeToRefresh.js +1 -1
  228. package/dist/esm/SwipeToRefresh/SwipeToRefresh.js.map +1 -1
  229. package/dist/esm/SwipeToRefresh/styled.js +1 -1
  230. package/dist/esm/SwipeToRefresh/styled.js.map +1 -1
  231. package/dist/esm/Tabs/index.js +1 -1
  232. package/dist/esm/Tabs/index.js.map +1 -1
  233. package/dist/esm/Tabs/propTypes.js +1 -1
  234. package/dist/esm/Tabs/propTypes.js.map +1 -1
  235. package/package.json +24 -25
@@ -29,7 +29,7 @@ var import_react = __toESM(require("react"));
29
29
  var import_ds_backdrop = require("@elliemae/ds-backdrop");
30
30
  var import_ds_icons = require("@elliemae/ds-icons");
31
31
  var import_ds_icon = require("@elliemae/ds-icon");
32
- var import_react_desc = require("react-desc");
32
+ var import_ds_utilities = require("@elliemae/ds-utilities");
33
33
  var import_lodash = require("lodash");
34
34
  var import_EM_logo = __toESM(require("../Icons/EM_logo"));
35
35
  var import_styles = require("./styles");
@@ -76,19 +76,19 @@ const DSSideNav = ({ containerProps = {}, title, onClose = import_lodash.noop, m
76
76
  className: "content"
77
77
  }, /* @__PURE__ */ import_react.default.createElement("hr", null), renderBottomMenu())) : null)));
78
78
  };
79
- const menuProps = import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.shape({
80
- icon: import_react_desc.PropTypes.element,
81
- text: import_react_desc.PropTypes.string
79
+ const menuProps = import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.shape({
80
+ icon: import_ds_utilities.PropTypes.element,
81
+ text: import_ds_utilities.PropTypes.string
82
82
  }));
83
83
  const navProps = {
84
- containerProps: import_react_desc.PropTypes.object.description("inject props to wrapper element of side nav"),
85
- title: import_react_desc.PropTypes.string.isRequired.description("Heading Title"),
86
- onClose: import_react_desc.PropTypes.func.description("Callback function when close is menu is triggered"),
84
+ containerProps: import_ds_utilities.PropTypes.object.description("inject props to wrapper element of side nav"),
85
+ title: import_ds_utilities.PropTypes.string.isRequired.description("Heading Title"),
86
+ onClose: import_ds_utilities.PropTypes.func.description("Callback function when close is menu is triggered"),
87
87
  menuItems: menuProps.description("Top Menu items array"),
88
88
  bottomMenuItems: menuProps.description("Bottom Menu items array")
89
89
  };
90
90
  DSSideNav.propTypes = navProps;
91
91
  DSSideNav.displayName = "DSSideNav";
92
- const DSSideNavWithSchema = (0, import_react_desc.describe)(DSSideNav).description("Side navigation for mobile and tablet");
92
+ const DSSideNavWithSchema = (0, import_ds_utilities.describe)(DSSideNav).description("Side navigation for mobile and tablet");
93
93
  DSSideNavWithSchema.propTypes = navProps;
94
94
  //# sourceMappingURL=SideNav.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SideNav/SideNav.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\n/* eslint-disable react/no-array-index-key */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport React, { useState } from 'react';\nimport { DSBackdrop } from '@elliemae/ds-backdrop';\nimport { Close } from '@elliemae/ds-icons';\nimport { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';\nimport { PropTypes, describe } from 'react-desc';\nimport { noop } from 'lodash';\nimport Logo from '../Icons/EM_logo';\nimport { Container, Menu, Heading, Icon, Hr, MenuList, BottomMenu, MenuWrapper } from './styles';\n\nconst DSSideNav = ({ containerProps = {}, title, onClose = noop, menuItems = [], bottomMenuItems = [] }) => {\n const [selectedMenuItemIdx, setSelectedMenuItem] = useState(-1);\n\n const menuItemClick = (idx, text, cb) => {\n if (cb) {\n cb(idx, text);\n }\n setSelectedMenuItem(idx);\n };\n\n const renderMenuList = () => (\n <>\n {menuItems.length > 0 ? (\n <MenuList>\n {menuItems.map(({ icon, text, onClick }, idx) => (\n <div key={idx} className=\"menuitem\" onClick={menuItemClick.bind(null, idx, text, onClick)}>\n <div className=\"icon\">{icon}</div>\n <div className={`text ${idx === selectedMenuItemIdx ? 'active' : ''}`}>{text}</div>\n </div>\n ))}\n </MenuList>\n ) : null}\n </>\n );\n\n const renderBottomMenu = () => (\n <MenuList>\n {bottomMenuItems.map(({ icon, text, onClick }, idx) => (\n <div key={idx} className=\"menuitem\" onClick={() => onClick(idx, text)}>\n <div className=\"icon\">{icon}</div>\n <div className=\"text\">{text}</div>\n </div>\n ))}\n </MenuList>\n );\n\n return (\n <Container data-testid={containerProps['data-testid'] || 'global-header-menu'}>\n <DSBackdrop onClick={onClose} type=\"cover\"></DSBackdrop>\n\n <Menu>\n <MenuWrapper>\n <Heading>\n <Icon>{Logo()}</Icon>\n <div className=\"content\">\n <label>{title}</label>\n <span></span>\n <div className=\"icon\">\n <Close onClick={onClose} size={DSIconSizes.S} color={DSIconColors.WHITE} />\n </div>\n </div>\n </Heading>\n <Hr></Hr>\n {renderMenuList()}\n {bottomMenuItems.length > 0 ? (\n <BottomMenu>\n <div className=\"content\">\n <hr></hr>\n {renderBottomMenu()}\n </div>\n </BottomMenu>\n ) : null}\n </MenuWrapper>\n </Menu>\n </Container>\n );\n};\n\nconst menuProps = PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n text: PropTypes.string,\n }),\n);\n\nconst navProps = {\n /** inject props to wrapper element of side nav */\n containerProps: PropTypes.object.description('inject props to wrapper element of side nav'),\n /**\n * Heading Title\n */\n title: PropTypes.string.isRequired.description('Heading Title'),\n /**\n * Callback function when close is menu is triggered\n */\n onClose: PropTypes.func.description('Callback function when close is menu is triggered'),\n /**\n * Top Menu items array\n */\n menuItems: menuProps.description('Top Menu items array'),\n /**\n * Bottom Menu items array\n */\n bottomMenuItems: menuProps.description('Bottom Menu items array'),\n};\n\nDSSideNav.propTypes = navProps;\nDSSideNav.displayName = 'DSSideNav';\nconst DSSideNavWithSchema = describe(DSSideNav).description('Side navigation for mobile and tablet');\n\nDSSideNavWithSchema.propTypes = navProps;\n\nexport { DSSideNav, DSSideNavWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKvB,mBAAgC;AAChC,yBAA2B;AAC3B,sBAAsB;AACtB,qBAA0C;AAC1C,wBAAoC;AACpC,oBAAqB;AACrB,qBAAiB;AACjB,oBAAsF;AAEtF,MAAM,YAAY,CAAC,EAAE,iBAAiB,CAAC,GAAG,OAAO,UAAU,oBAAM,YAAY,CAAC,GAAG,kBAAkB,CAAC,QAAQ;AAC1G,QAAM,CAAC,qBAAqB,uBAAuB,2BAAS,EAAE;AAE9D,QAAM,gBAAgB,CAAC,KAAK,MAAM,OAAO;AACvC,QAAI,IAAI;AACN,SAAG,KAAK,IAAI;AAAA,IACd;AACA,wBAAoB,GAAG;AAAA,EACzB;AAEA,QAAM,iBAAiB,MACrB,wFACG,UAAU,SAAS,IAClB,mDAAC,8BACE,UAAU,IAAI,CAAC,EAAE,MAAM,MAAM,WAAW,QACvC,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAK,WAAU;AAAA,IAAW,SAAS,cAAc,KAAK,MAAM,KAAK,MAAM,OAAO;AAAA,KACtF,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,GAC5B,mDAAC;AAAA,IAAI,WAAW,QAAQ,QAAQ,sBAAsB,WAAW;AAAA,KAAO,IAAK,CAC/E,CACD,CACH,IACE,IACN;AAGF,QAAM,mBAAmB,MACvB,mDAAC,8BACE,gBAAgB,IAAI,CAAC,EAAE,MAAM,MAAM,WAAW,QAC7C,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAK,WAAU;AAAA,IAAW,SAAS,MAAM,QAAQ,KAAK,IAAI;AAAA,KAClE,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,GAC5B,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,CAC9B,CACD,CACH;AAGF,SACE,mDAAC;AAAA,IAAU,eAAa,eAAe,kBAAkB;AAAA,KACvD,mDAAC;AAAA,IAAW,SAAS;AAAA,IAAS,MAAK;AAAA,GAAQ,GAE3C,mDAAC,0BACC,mDAAC,iCACC,mDAAC,6BACC,mDAAC,0BAAM,4BAAK,CAAE,GACd,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC,eAAO,KAAM,GACd,mDAAC,YAAK,GACN,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC;AAAA,IAAM,SAAS;AAAA,IAAS,MAAM,2BAAY;AAAA,IAAG,OAAO,4BAAa;AAAA,GAAO,CAC3E,CACF,CACF,GACA,mDAAC,sBAAG,GACH,eAAe,GACf,gBAAgB,SAAS,IACxB,mDAAC,gCACC,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC,UAAG,GACH,iBAAiB,CACpB,CACF,IACE,IACN,CACF,CACF;AAEJ;AAEA,MAAM,YAAY,4BAAU,QAC1B,4BAAU,MAAM;AAAA,EACd,MAAM,4BAAU;AAAA,EAChB,MAAM,4BAAU;AAClB,CAAC,CACH;AAEA,MAAM,WAAW;AAAA,EAEf,gBAAgB,4BAAU,OAAO,YAAY,6CAA6C;AAAA,EAI1F,OAAO,4BAAU,OAAO,WAAW,YAAY,eAAe;AAAA,EAI9D,SAAS,4BAAU,KAAK,YAAY,mDAAmD;AAAA,EAIvF,WAAW,UAAU,YAAY,sBAAsB;AAAA,EAIvD,iBAAiB,UAAU,YAAY,yBAAyB;AAClE;AAEA,UAAU,YAAY;AACtB,UAAU,cAAc;AACxB,MAAM,sBAAsB,gCAAS,SAAS,EAAE,YAAY,uCAAuC;AAEnG,oBAAoB,YAAY;",
4
+ "sourcesContent": ["/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\n/* eslint-disable react/no-array-index-key */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport React, { useState } from 'react';\nimport { DSBackdrop } from '@elliemae/ds-backdrop';\nimport { Close } from '@elliemae/ds-icons';\nimport { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { noop } from 'lodash';\nimport Logo from '../Icons/EM_logo';\nimport { Container, Menu, Heading, Icon, Hr, MenuList, BottomMenu, MenuWrapper } from './styles';\n\nconst DSSideNav = ({ containerProps = {}, title, onClose = noop, menuItems = [], bottomMenuItems = [] }) => {\n const [selectedMenuItemIdx, setSelectedMenuItem] = useState(-1);\n\n const menuItemClick = (idx, text, cb) => {\n if (cb) {\n cb(idx, text);\n }\n setSelectedMenuItem(idx);\n };\n\n const renderMenuList = () => (\n <>\n {menuItems.length > 0 ? (\n <MenuList>\n {menuItems.map(({ icon, text, onClick }, idx) => (\n <div key={idx} className=\"menuitem\" onClick={menuItemClick.bind(null, idx, text, onClick)}>\n <div className=\"icon\">{icon}</div>\n <div className={`text ${idx === selectedMenuItemIdx ? 'active' : ''}`}>{text}</div>\n </div>\n ))}\n </MenuList>\n ) : null}\n </>\n );\n\n const renderBottomMenu = () => (\n <MenuList>\n {bottomMenuItems.map(({ icon, text, onClick }, idx) => (\n <div key={idx} className=\"menuitem\" onClick={() => onClick(idx, text)}>\n <div className=\"icon\">{icon}</div>\n <div className=\"text\">{text}</div>\n </div>\n ))}\n </MenuList>\n );\n\n return (\n <Container data-testid={containerProps['data-testid'] || 'global-header-menu'}>\n <DSBackdrop onClick={onClose} type=\"cover\"></DSBackdrop>\n\n <Menu>\n <MenuWrapper>\n <Heading>\n <Icon>{Logo()}</Icon>\n <div className=\"content\">\n <label>{title}</label>\n <span></span>\n <div className=\"icon\">\n <Close onClick={onClose} size={DSIconSizes.S} color={DSIconColors.WHITE} />\n </div>\n </div>\n </Heading>\n <Hr></Hr>\n {renderMenuList()}\n {bottomMenuItems.length > 0 ? (\n <BottomMenu>\n <div className=\"content\">\n <hr></hr>\n {renderBottomMenu()}\n </div>\n </BottomMenu>\n ) : null}\n </MenuWrapper>\n </Menu>\n </Container>\n );\n};\n\nconst menuProps = PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n text: PropTypes.string,\n }),\n);\n\nconst navProps = {\n /** inject props to wrapper element of side nav */\n containerProps: PropTypes.object.description('inject props to wrapper element of side nav'),\n /**\n * Heading Title\n */\n title: PropTypes.string.isRequired.description('Heading Title'),\n /**\n * Callback function when close is menu is triggered\n */\n onClose: PropTypes.func.description('Callback function when close is menu is triggered'),\n /**\n * Top Menu items array\n */\n menuItems: menuProps.description('Top Menu items array'),\n /**\n * Bottom Menu items array\n */\n bottomMenuItems: menuProps.description('Bottom Menu items array'),\n};\n\nDSSideNav.propTypes = navProps;\nDSSideNav.displayName = 'DSSideNav';\nconst DSSideNavWithSchema = describe(DSSideNav).description('Side navigation for mobile and tablet');\n\nDSSideNavWithSchema.propTypes = navProps;\n\nexport { DSSideNav, DSSideNavWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKvB,mBAAgC;AAChC,yBAA2B;AAC3B,sBAAsB;AACtB,qBAA0C;AAC1C,0BAAoC;AACpC,oBAAqB;AACrB,qBAAiB;AACjB,oBAAsF;AAEtF,MAAM,YAAY,CAAC,EAAE,iBAAiB,CAAC,GAAG,OAAO,UAAU,oBAAM,YAAY,CAAC,GAAG,kBAAkB,CAAC,QAAQ;AAC1G,QAAM,CAAC,qBAAqB,uBAAuB,2BAAS,EAAE;AAE9D,QAAM,gBAAgB,CAAC,KAAK,MAAM,OAAO;AACvC,QAAI,IAAI;AACN,SAAG,KAAK,IAAI;AAAA,IACd;AACA,wBAAoB,GAAG;AAAA,EACzB;AAEA,QAAM,iBAAiB,MACrB,wFACG,UAAU,SAAS,IAClB,mDAAC,8BACE,UAAU,IAAI,CAAC,EAAE,MAAM,MAAM,WAAW,QACvC,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAK,WAAU;AAAA,IAAW,SAAS,cAAc,KAAK,MAAM,KAAK,MAAM,OAAO;AAAA,KACtF,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,GAC5B,mDAAC;AAAA,IAAI,WAAW,QAAQ,QAAQ,sBAAsB,WAAW;AAAA,KAAO,IAAK,CAC/E,CACD,CACH,IACE,IACN;AAGF,QAAM,mBAAmB,MACvB,mDAAC,8BACE,gBAAgB,IAAI,CAAC,EAAE,MAAM,MAAM,WAAW,QAC7C,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAK,WAAU;AAAA,IAAW,SAAS,MAAM,QAAQ,KAAK,IAAI;AAAA,KAClE,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,GAC5B,mDAAC;AAAA,IAAI,WAAU;AAAA,KAAQ,IAAK,CAC9B,CACD,CACH;AAGF,SACE,mDAAC;AAAA,IAAU,eAAa,eAAe,kBAAkB;AAAA,KACvD,mDAAC;AAAA,IAAW,SAAS;AAAA,IAAS,MAAK;AAAA,GAAQ,GAE3C,mDAAC,0BACC,mDAAC,iCACC,mDAAC,6BACC,mDAAC,0BAAM,4BAAK,CAAE,GACd,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC,eAAO,KAAM,GACd,mDAAC,YAAK,GACN,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC;AAAA,IAAM,SAAS;AAAA,IAAS,MAAM,2BAAY;AAAA,IAAG,OAAO,4BAAa;AAAA,GAAO,CAC3E,CACF,CACF,GACA,mDAAC,sBAAG,GACH,eAAe,GACf,gBAAgB,SAAS,IACxB,mDAAC,gCACC,mDAAC;AAAA,IAAI,WAAU;AAAA,KACb,mDAAC,UAAG,GACH,iBAAiB,CACpB,CACF,IACE,IACN,CACF,CACF;AAEJ;AAEA,MAAM,YAAY,8BAAU,QAC1B,8BAAU,MAAM;AAAA,EACd,MAAM,8BAAU;AAAA,EAChB,MAAM,8BAAU;AAClB,CAAC,CACH;AAEA,MAAM,WAAW;AAAA,EAEf,gBAAgB,8BAAU,OAAO,YAAY,6CAA6C;AAAA,EAI1F,OAAO,8BAAU,OAAO,WAAW,YAAY,eAAe;AAAA,EAI9D,SAAS,8BAAU,KAAK,YAAY,mDAAmD;AAAA,EAIvF,WAAW,UAAU,YAAY,sBAAsB;AAAA,EAIvD,iBAAiB,UAAU,YAAY,yBAAyB;AAClE;AAEA,UAAU,YAAY;AACtB,UAAU,cAAc;AACxB,MAAM,sBAAsB,kCAAS,SAAS,EAAE,YAAY,uCAAuC;AAEnG,oBAAoB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -31,17 +31,17 @@ __export(styles_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(styles_exports);
33
33
  var React = __toESM(require("react"));
34
- var import_styled_components = __toESM(require("styled-components"));
35
- const Container = import_styled_components.default.div`
34
+ var import_ds_system = require("@elliemae/ds-system");
35
+ const Container = import_ds_system.styled.div`
36
36
  position: fixed;
37
37
  width: 100%;
38
38
  height: 100%;
39
39
  `;
40
- const MenuWrapper = import_styled_components.default.div`
40
+ const MenuWrapper = import_ds_system.styled.div`
41
41
  position: relative;
42
42
  height: 100%;
43
43
  `;
44
- const Menu = import_styled_components.default.div`
44
+ const Menu = import_ds_system.styled.div`
45
45
  position: fixed;
46
46
  width: 80%;
47
47
  height: 100%;
@@ -50,7 +50,7 @@ const Menu = import_styled_components.default.div`
50
50
  box-shadow: 5px 0 5px ${(props) => props.theme.colors.neutral[600]};
51
51
  padding: ${(props) => props.theme.space.xs};
52
52
  `;
53
- const Heading = import_styled_components.default.div`
53
+ const Heading = import_ds_system.styled.div`
54
54
  display: flex;
55
55
  flex-direction: row;
56
56
 
@@ -74,14 +74,14 @@ const Heading = import_styled_components.default.div`
74
74
  }
75
75
  }
76
76
  `;
77
- const Icon = import_styled_components.default.div`
77
+ const Icon = import_ds_system.styled.div`
78
78
  margin-right: ${(props) => props.theme.space.xxs2};
79
79
  `;
80
- const Hr = import_styled_components.default.hr`
80
+ const Hr = import_ds_system.styled.hr`
81
81
  margin-left: -${(props) => props.theme.space.xs};
82
82
  margin-right: -${(props) => props.theme.space.xs};
83
83
  `;
84
- const MenuList = import_styled_components.default.div`
84
+ const MenuList = import_ds_system.styled.div`
85
85
  .menuitem {
86
86
  display: flex;
87
87
  flex-direction: row;
@@ -114,7 +114,7 @@ const MenuList = import_styled_components.default.div`
114
114
  }
115
115
  }
116
116
  `;
117
- const BottomMenu = import_styled_components.default.div`
117
+ const BottomMenu = import_ds_system.styled.div`
118
118
  position: absolute;
119
119
  bottom: 0;
120
120
  width: 100%;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SideNav/styles.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import styled from 'styled-components';\n\nexport const Container = styled.div`\n position: fixed;\n width: 100%;\n height: 100%;\n`;\n\nexport const MenuWrapper = styled.div`\n position: relative;\n height: 100%;\n`;\n\nexport const Menu = styled.div`\n position: fixed;\n width: 80%;\n height: 100%;\n background-color: ${(props) => props.theme.colors.brand[700]};\n font-family: ${(props) => props.theme.fonts.default};\n box-shadow: 5px 0 5px ${(props) => props.theme.colors.neutral[600]};\n padding: ${(props) => props.theme.space.xs};\n`;\n\nexport const Heading = styled.div`\n display: flex;\n flex-direction: row;\n\n .content {\n width: 100%;\n display: flex;\n flex-direction: row;\n span {\n flex-grow: 1;\n }\n label {\n padding-top: 1px;\n line-height:30px;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n font-size: 22px;\n color: ${(props) => props.theme.colors.neutral['000']};\n }\n .icon {\n cursor: pointer;\n padding-top: 6px;\n }\n }\n`;\n\nexport const Icon = styled.div`\n margin-right: ${(props) => props.theme.space.xxs2};\n`;\n\nexport const Hr = styled.hr`\n margin-left: -${(props) => props.theme.space.xs};\n margin-right: -${(props) => props.theme.space.xs};\n`;\nexport const MenuList = styled.div`\n .menuitem {\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height:22px;\n margin-bottom: ${(props) => props.theme.space.xs};\n .icon {\n padding-left: 6px;\n margin-right: ${(props) => props.theme.space.xs};\n span{\n height:20px;\n width:20px;\n svg{\n height:20px;\n width:20px;\n }\n }\n }\n .text {\n font-weight: ${(props) => props.theme.fontWeights.regular};\n font-size: 18px;\n line-height:22px;\n color: ${(props) => props.theme.colors.neutral['000']};\n &.active {\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n }\n }\n &:last-child {\n margin-bottom: 0;\n }\n }\n`;\n\nexport const BottomMenu = styled.div`\n position: absolute;\n bottom: 0;\n width: 100%;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAmB;AAEZ,MAAM,YAAY,iCAAO;AAAA;AAAA;AAAA;AAAA;AAMzB,MAAM,cAAc,iCAAO;AAAA;AAAA;AAAA;AAK3B,MAAM,OAAO,iCAAO;AAAA;AAAA;AAAA;AAAA,sBAIL,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,iBACzC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,0BACpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,aACnD,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGnC,MAAM,UAAU,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAcT,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,eAEzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS9C,MAAM,OAAO,iCAAO;AAAA,kBACT,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGxC,MAAM,KAAK,iCAAO;AAAA,kBACP,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,mBAC5B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAEzC,MAAM,WAAW,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAMV,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA,sBAG5B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAW9B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA,eAGzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,uBAE9B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASnD,MAAM,aAAa,iCAAO;AAAA;AAAA;AAAA;AAAA;",
4
+ "sourcesContent": ["import { styled } from '@elliemae/ds-system';\n\nexport const Container = styled.div`\n position: fixed;\n width: 100%;\n height: 100%;\n`;\n\nexport const MenuWrapper = styled.div`\n position: relative;\n height: 100%;\n`;\n\nexport const Menu = styled.div`\n position: fixed;\n width: 80%;\n height: 100%;\n background-color: ${(props) => props.theme.colors.brand[700]};\n font-family: ${(props) => props.theme.fonts.default};\n box-shadow: 5px 0 5px ${(props) => props.theme.colors.neutral[600]};\n padding: ${(props) => props.theme.space.xs};\n`;\n\nexport const Heading = styled.div`\n display: flex;\n flex-direction: row;\n\n .content {\n width: 100%;\n display: flex;\n flex-direction: row;\n span {\n flex-grow: 1;\n }\n label {\n padding-top: 1px;\n line-height:30px;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n font-size: 22px;\n color: ${(props) => props.theme.colors.neutral['000']};\n }\n .icon {\n cursor: pointer;\n padding-top: 6px;\n }\n }\n`;\n\nexport const Icon = styled.div`\n margin-right: ${(props) => props.theme.space.xxs2};\n`;\n\nexport const Hr = styled.hr`\n margin-left: -${(props) => props.theme.space.xs};\n margin-right: -${(props) => props.theme.space.xs};\n`;\nexport const MenuList = styled.div`\n .menuitem {\n display: flex;\n flex-direction: row;\n cursor: pointer;\n height:22px;\n margin-bottom: ${(props) => props.theme.space.xs};\n .icon {\n padding-left: 6px;\n margin-right: ${(props) => props.theme.space.xs};\n span{\n height:20px;\n width:20px;\n svg{\n height:20px;\n width:20px;\n }\n }\n }\n .text {\n font-weight: ${(props) => props.theme.fontWeights.regular};\n font-size: 18px;\n line-height:22px;\n color: ${(props) => props.theme.colors.neutral['000']};\n &.active {\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n }\n }\n &:last-child {\n margin-bottom: 0;\n }\n }\n`;\n\nexport const BottomMenu = styled.div`\n position: absolute;\n bottom: 0;\n width: 100%;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AAEhB,MAAM,YAAY,wBAAO;AAAA;AAAA;AAAA;AAAA;AAMzB,MAAM,cAAc,wBAAO;AAAA;AAAA;AAAA;AAK3B,MAAM,OAAO,wBAAO;AAAA;AAAA;AAAA;AAAA,sBAIL,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,iBACzC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,0BACpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,aACnD,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGnC,MAAM,UAAU,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAcT,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,eAEzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS9C,MAAM,OAAO,wBAAO;AAAA,kBACT,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGxC,MAAM,KAAK,wBAAO;AAAA,kBACP,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,mBAC5B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAEzC,MAAM,WAAW,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAMV,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA,sBAG5B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAW9B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA,eAGzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,uBAE9B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASnD,MAAM,aAAa,wBAAO;AAAA;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -26,7 +26,7 @@ __export(SwipeToRefresh_exports, {
26
26
  module.exports = __toCommonJS(SwipeToRefresh_exports);
27
27
  var React = __toESM(require("react"));
28
28
  var import_react = __toESM(require("react"));
29
- var import_react_desc = require("react-desc");
29
+ var import_ds_utilities = require("@elliemae/ds-utilities");
30
30
  var import_ds_circular_progress_indicator = require("@elliemae/ds-circular-progress-indicator");
31
31
  var import_ds_system = require("@elliemae/ds-system");
32
32
  var import_useSwipe = require("./useSwipe");
@@ -60,12 +60,12 @@ const SwipeToRefresh = ({ children, loading, onRefresh }) => {
60
60
  }), children));
61
61
  };
62
62
  const props = {
63
- children: import_react_desc.PropTypes.element.isRequired.description("component inside swipe to refresh container"),
64
- loading: import_react_desc.PropTypes.bool.description("toggle loading state for swipe"),
65
- onRefresh: import_react_desc.PropTypes.func.description("callback on refresh swipe")
63
+ children: import_ds_utilities.PropTypes.element.isRequired.description("component inside swipe to refresh container"),
64
+ loading: import_ds_utilities.PropTypes.bool.description("toggle loading state for swipe"),
65
+ onRefresh: import_ds_utilities.PropTypes.func.description("callback on refresh swipe")
66
66
  };
67
67
  SwipeToRefresh.propTypes = props;
68
68
  SwipeToRefresh.displayName = "SwipeToRefresh";
69
- const SwipeToRefreshWithSchema = (0, import_react_desc.describe)(SwipeToRefresh);
69
+ const SwipeToRefreshWithSchema = (0, import_ds_utilities.describe)(SwipeToRefresh);
70
70
  SwipeToRefreshWithSchema.propTypes = props;
71
71
  //# sourceMappingURL=SwipeToRefresh.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SwipeToRefresh/SwipeToRefresh.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { useTheme } from '@elliemae/ds-system';\nimport { useSwipe } from './useSwipe';\nimport { SwipeContainer, SwipeDrag, LoaderBox, PositionLoader } from './styled';\nimport { ProgressIndicator } from './ProgressIndicator';\n\nconst SwipeToRefresh = ({ children, loading, onRefresh }) => {\n const breakpoint = 60;\n const theme = useTheme();\n const swipe = useSwipe({ onRefresh, breakpoint });\n const progress = swipe.height > breakpoint ? 100 : (swipe.height * 100) / breakpoint;\n return (\n <SwipeContainer>\n <SwipeDrag\n onTouchStart={swipe.touchStart}\n onTouchEnd={swipe.touchEnd}\n onTouchCancel={swipe.touchCancel}\n onTouchMove={swipe.touchMove}\n ref={swipe.ref}\n >\n <LoaderBox\n height={loading ? theme.space.m : `${swipe.height}px`}\n alignItems=\"flex-start\"\n data-testid=\"loader-box\"\n >\n <PositionLoader\n height={theme.space.m}\n justifyContent=\"center\"\n alignItems=\"center\"\n mt={swipe.height > 40 || loading ? 0 : `${swipe.height - 40}px`}\n >\n {loading ? <DSCircularProgressIndicator /> : <ProgressIndicator progress={progress} />}\n </PositionLoader>\n </LoaderBox>\n <div ref={swipe.target} style={{ height: 1 }} />\n {children}\n </SwipeDrag>\n </SwipeContainer>\n );\n};\n\nconst props = {\n /** component inside swipe to refresh container */\n children: PropTypes.element.isRequired.description('component inside swipe to refresh container'),\n /** toggle loading state for swipe */\n loading: PropTypes.bool.description('toggle loading state for swipe'),\n /** callback on refresh swipe */\n onRefresh: PropTypes.func.description('callback on refresh swipe'),\n};\n\nSwipeToRefresh.propTypes = props;\nSwipeToRefresh.displayName = 'SwipeToRefresh';\nconst SwipeToRefreshWithSchema = describe(SwipeToRefresh);\n\nSwipeToRefreshWithSchema.propTypes = props;\n\nexport { SwipeToRefresh, SwipeToRefreshWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,4CAA4C;AAC5C,uBAAyB;AACzB,sBAAyB;AACzB,oBAAqE;AACrE,+BAAkC;AAElC,MAAM,iBAAiB,CAAC,EAAE,UAAU,SAAS,gBAAgB;AAC3D,QAAM,aAAa;AACnB,QAAM,QAAQ,+BAAS;AACvB,QAAM,QAAQ,8BAAS,EAAE,WAAW,WAAW,CAAC;AAChD,QAAM,WAAW,MAAM,SAAS,aAAa,MAAO,MAAM,SAAS,MAAO;AAC1E,SACE,mDAAC,oCACC,mDAAC;AAAA,IACC,cAAc,MAAM;AAAA,IACpB,YAAY,MAAM;AAAA,IAClB,eAAe,MAAM;AAAA,IACrB,aAAa,MAAM;AAAA,IACnB,KAAK,MAAM;AAAA,KAEX,mDAAC;AAAA,IACC,QAAQ,UAAU,MAAM,MAAM,IAAI,GAAG,MAAM;AAAA,IAC3C,YAAW;AAAA,IACX,eAAY;AAAA,KAEZ,mDAAC;AAAA,IACC,QAAQ,MAAM,MAAM;AAAA,IACpB,gBAAe;AAAA,IACf,YAAW;AAAA,IACX,IAAI,MAAM,SAAS,MAAM,UAAU,IAAI,GAAG,MAAM,SAAS;AAAA,KAExD,UAAU,mDAAC,uEAA4B,IAAK,mDAAC;AAAA,IAAkB;AAAA,GAAoB,CACtF,CACF,GACA,mDAAC;AAAA,IAAI,KAAK,MAAM;AAAA,IAAQ,OAAO,EAAE,QAAQ,EAAE;AAAA,GAAG,GAC7C,QACH,CACF;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAEZ,UAAU,4BAAU,QAAQ,WAAW,YAAY,6CAA6C;AAAA,EAEhG,SAAS,4BAAU,KAAK,YAAY,gCAAgC;AAAA,EAEpE,WAAW,4BAAU,KAAK,YAAY,2BAA2B;AACnE;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,gCAAS,cAAc;AAExD,yBAAyB,YAAY;",
4
+ "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { useTheme } from '@elliemae/ds-system';\nimport { useSwipe } from './useSwipe';\nimport { SwipeContainer, SwipeDrag, LoaderBox, PositionLoader } from './styled';\nimport { ProgressIndicator } from './ProgressIndicator';\n\nconst SwipeToRefresh = ({ children, loading, onRefresh }) => {\n const breakpoint = 60;\n const theme = useTheme();\n const swipe = useSwipe({ onRefresh, breakpoint });\n const progress = swipe.height > breakpoint ? 100 : (swipe.height * 100) / breakpoint;\n return (\n <SwipeContainer>\n <SwipeDrag\n onTouchStart={swipe.touchStart}\n onTouchEnd={swipe.touchEnd}\n onTouchCancel={swipe.touchCancel}\n onTouchMove={swipe.touchMove}\n ref={swipe.ref}\n >\n <LoaderBox\n height={loading ? theme.space.m : `${swipe.height}px`}\n alignItems=\"flex-start\"\n data-testid=\"loader-box\"\n >\n <PositionLoader\n height={theme.space.m}\n justifyContent=\"center\"\n alignItems=\"center\"\n mt={swipe.height > 40 || loading ? 0 : `${swipe.height - 40}px`}\n >\n {loading ? <DSCircularProgressIndicator /> : <ProgressIndicator progress={progress} />}\n </PositionLoader>\n </LoaderBox>\n <div ref={swipe.target} style={{ height: 1 }} />\n {children}\n </SwipeDrag>\n </SwipeContainer>\n );\n};\n\nconst props = {\n /** component inside swipe to refresh container */\n children: PropTypes.element.isRequired.description('component inside swipe to refresh container'),\n /** toggle loading state for swipe */\n loading: PropTypes.bool.description('toggle loading state for swipe'),\n /** callback on refresh swipe */\n onRefresh: PropTypes.func.description('callback on refresh swipe'),\n};\n\nSwipeToRefresh.propTypes = props;\nSwipeToRefresh.displayName = 'SwipeToRefresh';\nconst SwipeToRefreshWithSchema = describe(SwipeToRefresh);\n\nSwipeToRefreshWithSchema.propTypes = props;\n\nexport { SwipeToRefresh, SwipeToRefreshWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,4CAA4C;AAC5C,uBAAyB;AACzB,sBAAyB;AACzB,oBAAqE;AACrE,+BAAkC;AAElC,MAAM,iBAAiB,CAAC,EAAE,UAAU,SAAS,gBAAgB;AAC3D,QAAM,aAAa;AACnB,QAAM,QAAQ,+BAAS;AACvB,QAAM,QAAQ,8BAAS,EAAE,WAAW,WAAW,CAAC;AAChD,QAAM,WAAW,MAAM,SAAS,aAAa,MAAO,MAAM,SAAS,MAAO;AAC1E,SACE,mDAAC,oCACC,mDAAC;AAAA,IACC,cAAc,MAAM;AAAA,IACpB,YAAY,MAAM;AAAA,IAClB,eAAe,MAAM;AAAA,IACrB,aAAa,MAAM;AAAA,IACnB,KAAK,MAAM;AAAA,KAEX,mDAAC;AAAA,IACC,QAAQ,UAAU,MAAM,MAAM,IAAI,GAAG,MAAM;AAAA,IAC3C,YAAW;AAAA,IACX,eAAY;AAAA,KAEZ,mDAAC;AAAA,IACC,QAAQ,MAAM,MAAM;AAAA,IACpB,gBAAe;AAAA,IACf,YAAW;AAAA,IACX,IAAI,MAAM,SAAS,MAAM,UAAU,IAAI,GAAG,MAAM,SAAS;AAAA,KAExD,UAAU,mDAAC,uEAA4B,IAAK,mDAAC;AAAA,IAAkB;AAAA,GAAoB,CACtF,CACF,GACA,mDAAC;AAAA,IAAI,KAAK,MAAM;AAAA,IAAQ,OAAO,EAAE,QAAQ,EAAE;AAAA,GAAG,GAC7C,QACH,CACF;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAEZ,UAAU,8BAAU,QAAQ,WAAW,YAAY,6CAA6C;AAAA,EAEhG,SAAS,8BAAU,KAAK,YAAY,gCAAgC;AAAA,EAEpE,WAAW,8BAAU,KAAK,YAAY,2BAA2B;AACnE;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,kCAAS,cAAc;AAExD,yBAAyB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -28,23 +28,23 @@ __export(styled_exports, {
28
28
  module.exports = __toCommonJS(styled_exports);
29
29
  var React = __toESM(require("react"));
30
30
  var import_ds_grid = require("@elliemae/ds-grid");
31
- var import_styled_components = __toESM(require("styled-components"));
32
- const SwipeContainer = (0, import_styled_components.default)(import_ds_grid.Grid)`
31
+ var import_ds_system = require("@elliemae/ds-system");
32
+ const SwipeContainer = (0, import_ds_system.styled)(import_ds_grid.Grid)`
33
33
  transition: height 0.2s;
34
34
  overscroll-behavior: none;
35
35
  height: 100%;
36
36
  `;
37
- const SwipeDrag = import_styled_components.default.div`
37
+ const SwipeDrag = import_ds_system.styled.div`
38
38
  border: none;
39
39
  overscroll-behavior: none;
40
40
  overflow: auto;
41
41
  max-height: 100%;
42
42
  `;
43
- const LoaderBox = (0, import_styled_components.default)(import_ds_grid.Grid)`
43
+ const LoaderBox = (0, import_ds_system.styled)(import_ds_grid.Grid)`
44
44
  transition: height 0.2s;
45
45
  overflow: hidden;
46
46
  `;
47
- const PositionLoader = (0, import_styled_components.default)(import_ds_grid.Grid)`
47
+ const PositionLoader = (0, import_ds_system.styled)(import_ds_grid.Grid)`
48
48
  transition: margin 0.2s;
49
49
  `;
50
50
  //# sourceMappingURL=styled.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SwipeToRefresh/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { Grid } from '@elliemae/ds-grid';\nimport styled from 'styled-components';\n\nexport const SwipeContainer = styled(Grid)`\n transition: height 0.2s;\n overscroll-behavior: none;\n height: 100%;\n`;\n\nexport const SwipeDrag = styled.div`\n border: none;\n overscroll-behavior: none;\n overflow: auto;\n max-height: 100%;\n`;\n\nexport const LoaderBox = styled(Grid)`\n transition: height 0.2s;\n overflow: hidden;\n`;\n\nexport const PositionLoader = styled(Grid)`\n transition: margin 0.2s;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAAqB;AACrB,+BAAmB;AAEZ,MAAM,iBAAiB,sCAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAMlC,MAAM,YAAY,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOzB,MAAM,YAAY,sCAAO,mBAAI;AAAA;AAAA;AAAA;AAK7B,MAAM,iBAAiB,sCAAO,mBAAI;AAAA;AAAA;",
4
+ "sourcesContent": ["import { Grid } from '@elliemae/ds-grid';\nimport { styled } from '@elliemae/ds-system';\n\nexport const SwipeContainer = styled(Grid)`\n transition: height 0.2s;\n overscroll-behavior: none;\n height: 100%;\n`;\n\nexport const SwipeDrag = styled.div`\n border: none;\n overscroll-behavior: none;\n overflow: auto;\n max-height: 100%;\n`;\n\nexport const LoaderBox = styled(Grid)`\n transition: height 0.2s;\n overflow: hidden;\n`;\n\nexport const PositionLoader = styled(Grid)`\n transition: margin 0.2s;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAAqB;AACrB,uBAAuB;AAEhB,MAAM,iBAAiB,6BAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAMlC,MAAM,YAAY,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOzB,MAAM,YAAY,6BAAO,mBAAI;AAAA;AAAA;AAAA;AAK7B,MAAM,iBAAiB,6BAAO,mBAAI;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -56,7 +56,7 @@ __export(Tabs_exports, {
56
56
  });
57
57
  module.exports = __toCommonJS(Tabs_exports);
58
58
  var React = __toESM(require("react"));
59
- var import_react_desc = require("react-desc");
59
+ var import_ds_utilities = require("@elliemae/ds-utilities");
60
60
  var import_ds_tabs = require("@elliemae/ds-tabs");
61
61
  var import_propTypes = require("./propTypes");
62
62
  const DSMobileTabs = (_a) => {
@@ -71,10 +71,10 @@ const DSMobileTab = (_c) => {
71
71
  };
72
72
  DSMobileTabs.propTypes = import_propTypes.MobileTabsPropTypes;
73
73
  DSMobileTabs.displayName = "DSMobileTabs";
74
- const DSMobileTabsWithSchema = (0, import_react_desc.describe)(DSMobileTabs);
74
+ const DSMobileTabsWithSchema = (0, import_ds_utilities.describe)(DSMobileTabs);
75
75
  DSMobileTabsWithSchema.propTypes = import_propTypes.MobileTabsPropTypes;
76
76
  DSMobileTab.propTypes = import_propTypes.MobileTabPropTypes;
77
77
  DSMobileTab.displayName = "DSMobileTab";
78
- const DSMobileTabWithSchema = (0, import_react_desc.describe)(DSMobileTab);
78
+ const DSMobileTabWithSchema = (0, import_ds_utilities.describe)(DSMobileTab);
79
79
  DSMobileTabWithSchema.propTypes = import_propTypes.MobileTabPropTypes;
80
80
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Tabs/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport { describe } from 'react-desc';\nimport { DSTabs, DSTab } from '@elliemae/ds-tabs';\nimport type { DSTabsT, DSTabT } from '@elliemae/ds-tabs';\nimport { MobileTabsPropTypes, MobileTabPropTypes } from './propTypes';\n\ntype DSMobileTabsPropsT = Omit<\n DSTabsT.InternalProps,\n 'animated' | 'enableMouseEvents' | 'allowTextSelection' | 'type' | 'isDSMobile' | 'withCarousel'\n>;\n\ntype DSMobileTabPropsT = Omit<DSTabT.Props, 'isDSMobile'>;\n\nexport const DSMobileTabs = ({ children, ...props }: DSMobileTabsPropsT) => (\n <DSTabs {...props} isDSMobile>\n {children}\n </DSTabs>\n);\n\nexport const DSMobileTab = ({ children, ...props }: DSMobileTabPropsT) => <DSTab {...props}>{children}</DSTab>;\n\nDSMobileTabs.propTypes = MobileTabsPropTypes as WeakValidationMap<unknown>;\nDSMobileTabs.displayName = 'DSMobileTabs';\nconst DSMobileTabsWithSchema = describe(DSMobileTabs);\nDSMobileTabsWithSchema.propTypes = MobileTabsPropTypes;\n\nDSMobileTab.propTypes = MobileTabPropTypes as WeakValidationMap<unknown>;\nDSMobileTab.displayName = 'DSMobileTab';\nconst DSMobileTabWithSchema = describe(DSMobileTab);\nDSMobileTabWithSchema.propTypes = MobileTabPropTypes;\n\nexport { DSMobileTabsWithSchema, DSMobileTabWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,wBAAyB;AACzB,qBAA8B;AAE9B,uBAAwD;AASjD,MAAM,eAAe,CAAC,OAA4C;AAA5C,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AAC7B,6CAAC,wDAAW,QAAX;AAAA,IAAkB,YAAU;AAAA,MAC1B,QACH;AAAA;AAGK,MAAM,cAAc,CAAC,OAA2C;AAA3C,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AAA4C,6CAAC,yCAAU,QAAQ,QAAS;AAAA;AAEtG,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,gCAAS,YAAY;AACpD,uBAAuB,YAAY;AAEnC,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,wBAAwB,gCAAS,WAAW;AAClD,sBAAsB,YAAY;",
4
+ "sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSTabs, DSTab } from '@elliemae/ds-tabs';\nimport type { DSTabsT, DSTabT } from '@elliemae/ds-tabs';\nimport { MobileTabsPropTypes, MobileTabPropTypes } from './propTypes';\n\ntype DSMobileTabsPropsT = Omit<\n DSTabsT.InternalProps,\n 'animated' | 'enableMouseEvents' | 'allowTextSelection' | 'type' | 'isDSMobile' | 'withCarousel'\n>;\n\ntype DSMobileTabPropsT = Omit<DSTabT.Props, 'isDSMobile'>;\n\nexport const DSMobileTabs = ({ children, ...props }: DSMobileTabsPropsT) => (\n <DSTabs {...props} isDSMobile>\n {children}\n </DSTabs>\n);\n\nexport const DSMobileTab = ({ children, ...props }: DSMobileTabPropsT) => <DSTab {...props}>{children}</DSTab>;\n\nDSMobileTabs.propTypes = MobileTabsPropTypes as WeakValidationMap<unknown>;\nDSMobileTabs.displayName = 'DSMobileTabs';\nconst DSMobileTabsWithSchema = describe(DSMobileTabs);\nDSMobileTabsWithSchema.propTypes = MobileTabsPropTypes;\n\nDSMobileTab.propTypes = MobileTabPropTypes as WeakValidationMap<unknown>;\nDSMobileTab.displayName = 'DSMobileTab';\nconst DSMobileTabWithSchema = describe(DSMobileTab);\nDSMobileTabWithSchema.propTypes = MobileTabPropTypes;\n\nexport { DSMobileTabsWithSchema, DSMobileTabWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAyB;AACzB,qBAA8B;AAE9B,uBAAwD;AASjD,MAAM,eAAe,CAAC,OAA4C;AAA5C,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AAC7B,6CAAC,wDAAW,QAAX;AAAA,IAAkB,YAAU;AAAA,MAC1B,QACH;AAAA;AAGK,MAAM,cAAc,CAAC,OAA2C;AAA3C,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AAA4C,6CAAC,yCAAU,QAAQ,QAAS;AAAA;AAEtG,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,kCAAS,YAAY;AACpD,uBAAuB,YAAY;AAEnC,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,wBAAwB,kCAAS,WAAW;AAClD,sBAAsB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -25,22 +25,22 @@ __export(propTypes_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(propTypes_exports);
27
27
  var React = __toESM(require("react"));
28
- var import_react_desc = require("react-desc");
28
+ var import_ds_utilities = require("@elliemae/ds-utilities");
29
29
  const MobileTabPropTypes = {
30
- tabId: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.string, import_react_desc.PropTypes.number]).description("Unique Tab id.").defaultValue(""),
31
- title: import_react_desc.PropTypes.string.description("Tab title.").defaultValue(""),
32
- required: import_react_desc.PropTypes.bool.description("Show a required mark next to the title.").defaultValue(false),
33
- disabled: import_react_desc.PropTypes.bool.description("Disables Tab.").defaultValue(false)
30
+ tabId: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description("Unique Tab id.").defaultValue(""),
31
+ title: import_ds_utilities.PropTypes.string.description("Tab title.").defaultValue(""),
32
+ required: import_ds_utilities.PropTypes.bool.description("Show a required mark next to the title.").defaultValue(false),
33
+ disabled: import_ds_utilities.PropTypes.bool.description("Disables Tab.").defaultValue(false)
34
34
  };
35
35
  const MobileTabsPropTypes = {
36
- onTabChange: import_react_desc.PropTypes.func.description("Handler when a user clicks on a different Tab.").defaultValue("() => {}"),
37
- tabBarExtraContent: import_react_desc.PropTypes.element.description("Extra content next to the Tabs Bar.").defaultValue(void 0),
38
- onlyRenderActiveTab: import_react_desc.PropTypes.bool.description("Only renders the active Tab in the DOM.").defaultValue(false),
39
- fixedTabsHeaders: import_react_desc.PropTypes.bool.description("Enables fixed Tabs mode. Makes Tab Bar non scrollable and adds equal fixed widths.").defaultValue(false),
40
- activeTab: import_react_desc.PropTypes.string.description("Passing a value makes DSTabs a controlled component.").defaultValue("First DSTab children."),
41
- children: import_react_desc.PropTypes.node.description("Use DSTab component as children.").isRequired,
42
- tabsListAriaLabel: import_react_desc.PropTypes.string.description("Aria label for the Tab list.").defaultValue("Tab list."),
43
- containerProps: import_react_desc.PropTypes.object.description("Additional properties for the container.").defaultValue({}),
44
- innerRef: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.func, import_react_desc.PropTypes.shape({ current: import_react_desc.PropTypes.any })]).description("Ref to the container.").defaultValue(void 0)
36
+ onTabChange: import_ds_utilities.PropTypes.func.description("Handler when a user clicks on a different Tab.").defaultValue("() => {}"),
37
+ tabBarExtraContent: import_ds_utilities.PropTypes.element.description("Extra content next to the Tabs Bar.").defaultValue(void 0),
38
+ onlyRenderActiveTab: import_ds_utilities.PropTypes.bool.description("Only renders the active Tab in the DOM.").defaultValue(false),
39
+ fixedTabsHeaders: import_ds_utilities.PropTypes.bool.description("Enables fixed Tabs mode. Makes Tab Bar non scrollable and adds equal fixed widths.").defaultValue(false),
40
+ activeTab: import_ds_utilities.PropTypes.string.description("Passing a value makes DSTabs a controlled component.").defaultValue("First DSTab children."),
41
+ children: import_ds_utilities.PropTypes.node.description("Use DSTab component as children.").isRequired,
42
+ tabsListAriaLabel: import_ds_utilities.PropTypes.string.description("Aria label for the Tab list.").defaultValue("Tab list."),
43
+ containerProps: import_ds_utilities.PropTypes.object.description("Additional properties for the container.").defaultValue({}),
44
+ innerRef: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.func, import_ds_utilities.PropTypes.shape({ current: import_ds_utilities.PropTypes.any })]).description("Ref to the container.").defaultValue(void 0)
45
45
  };
46
46
  //# sourceMappingURL=propTypes.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Tabs/propTypes.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes } from 'react-desc';\n\nexport const MobileTabPropTypes = {\n tabId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Unique Tab id.').defaultValue(''),\n title: PropTypes.string.description('Tab title.').defaultValue(''),\n required: PropTypes.bool.description('Show a required mark next to the title.').defaultValue(false),\n disabled: PropTypes.bool.description('Disables Tab.').defaultValue(false),\n};\n\nexport const MobileTabsPropTypes = {\n onTabChange: PropTypes.func.description('Handler when a user clicks on a different Tab.').defaultValue('() => {}'),\n tabBarExtraContent: PropTypes.element.description('Extra content next to the Tabs Bar.').defaultValue(undefined),\n onlyRenderActiveTab: PropTypes.bool.description('Only renders the active Tab in the DOM.').defaultValue(false),\n fixedTabsHeaders: PropTypes.bool\n .description('Enables fixed Tabs mode. Makes Tab Bar non scrollable and adds equal fixed widths.')\n .defaultValue(false),\n activeTab: PropTypes.string\n .description('Passing a value makes DSTabs a controlled component.')\n .defaultValue('First DSTab children.'),\n children: PropTypes.node.description('Use DSTab component as children.').isRequired,\n tabsListAriaLabel: PropTypes.string.description('Aria label for the Tab list.').defaultValue('Tab list.'),\n containerProps: PropTypes.object.description('Additional properties for the container.').defaultValue({}),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })])\n .description('Ref to the container.')\n .defaultValue(undefined),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAEnB,MAAM,qBAAqB;AAAA,EAChC,OAAO,4BAAU,UAAU,CAAC,4BAAU,QAAQ,4BAAU,MAAM,CAAC,EAAE,YAAY,gBAAgB,EAAE,aAAa,EAAE;AAAA,EAC9G,OAAO,4BAAU,OAAO,YAAY,YAAY,EAAE,aAAa,EAAE;AAAA,EACjE,UAAU,4BAAU,KAAK,YAAY,yCAAyC,EAAE,aAAa,KAAK;AAAA,EAClG,UAAU,4BAAU,KAAK,YAAY,eAAe,EAAE,aAAa,KAAK;AAC1E;AAEO,MAAM,sBAAsB;AAAA,EACjC,aAAa,4BAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,UAAU;AAAA,EACjH,oBAAoB,4BAAU,QAAQ,YAAY,qCAAqC,EAAE,aAAa,MAAS;AAAA,EAC/G,qBAAqB,4BAAU,KAAK,YAAY,yCAAyC,EAAE,aAAa,KAAK;AAAA,EAC7G,kBAAkB,4BAAU,KACzB,YAAY,oFAAoF,EAChG,aAAa,KAAK;AAAA,EACrB,WAAW,4BAAU,OAClB,YAAY,sDAAsD,EAClE,aAAa,uBAAuB;AAAA,EACvC,UAAU,4BAAU,KAAK,YAAY,kCAAkC,EAAE;AAAA,EACzE,mBAAmB,4BAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,WAAW;AAAA,EACxG,gBAAgB,4BAAU,OAAO,YAAY,0CAA0C,EAAE,aAAa,CAAC,CAAC;AAAA,EACxG,UAAU,4BAAU,UAAU,CAAC,4BAAU,MAAM,4BAAU,MAAM,EAAE,SAAS,4BAAU,IAAI,CAAC,CAAC,CAAC,EACxF,YAAY,uBAAuB,EACnC,aAAa,MAAS;AAC3B;",
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\n\nexport const MobileTabPropTypes = {\n tabId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Unique Tab id.').defaultValue(''),\n title: PropTypes.string.description('Tab title.').defaultValue(''),\n required: PropTypes.bool.description('Show a required mark next to the title.').defaultValue(false),\n disabled: PropTypes.bool.description('Disables Tab.').defaultValue(false),\n};\n\nexport const MobileTabsPropTypes = {\n onTabChange: PropTypes.func.description('Handler when a user clicks on a different Tab.').defaultValue('() => {}'),\n tabBarExtraContent: PropTypes.element.description('Extra content next to the Tabs Bar.').defaultValue(undefined),\n onlyRenderActiveTab: PropTypes.bool.description('Only renders the active Tab in the DOM.').defaultValue(false),\n fixedTabsHeaders: PropTypes.bool\n .description('Enables fixed Tabs mode. Makes Tab Bar non scrollable and adds equal fixed widths.')\n .defaultValue(false),\n activeTab: PropTypes.string\n .description('Passing a value makes DSTabs a controlled component.')\n .defaultValue('First DSTab children.'),\n children: PropTypes.node.description('Use DSTab component as children.').isRequired,\n tabsListAriaLabel: PropTypes.string.description('Aria label for the Tab list.').defaultValue('Tab list.'),\n containerProps: PropTypes.object.description('Additional properties for the container.').defaultValue({}),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })])\n .description('Ref to the container.')\n .defaultValue(undefined),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AAEnB,MAAM,qBAAqB;AAAA,EAChC,OAAO,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE,YAAY,gBAAgB,EAAE,aAAa,EAAE;AAAA,EAC9G,OAAO,8BAAU,OAAO,YAAY,YAAY,EAAE,aAAa,EAAE;AAAA,EACjE,UAAU,8BAAU,KAAK,YAAY,yCAAyC,EAAE,aAAa,KAAK;AAAA,EAClG,UAAU,8BAAU,KAAK,YAAY,eAAe,EAAE,aAAa,KAAK;AAC1E;AAEO,MAAM,sBAAsB;AAAA,EACjC,aAAa,8BAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,UAAU;AAAA,EACjH,oBAAoB,8BAAU,QAAQ,YAAY,qCAAqC,EAAE,aAAa,MAAS;AAAA,EAC/G,qBAAqB,8BAAU,KAAK,YAAY,yCAAyC,EAAE,aAAa,KAAK;AAAA,EAC7G,kBAAkB,8BAAU,KACzB,YAAY,oFAAoF,EAChG,aAAa,KAAK;AAAA,EACrB,WAAW,8BAAU,OAClB,YAAY,sDAAsD,EAClE,aAAa,uBAAuB;AAAA,EACvC,UAAU,8BAAU,KAAK,YAAY,kCAAkC,EAAE;AAAA,EACzE,mBAAmB,8BAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,WAAW;AAAA,EACxG,gBAAgB,8BAAU,OAAO,YAAY,0CAA0C,EAAE,aAAa,CAAC,CAAC;AAAA,EACxG,UAAU,8BAAU,UAAU,CAAC,8BAAU,MAAM,8BAAU,MAAM,EAAE,SAAS,8BAAU,IAAI,CAAC,CAAC,CAAC,EACxF,YAAY,uBAAuB,EACnC,aAAa,MAAS;AAC3B;",
6
6
  "names": []
7
7
  }
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
30
30
  return target;
31
31
  };
32
32
  import * as React from "react";
33
- import { describe } from "react-desc";
33
+ import { describe } from "@elliemae/ds-utilities";
34
34
  import { DSAccordion, DSAccordionItem } from "@elliemae/ds-accordion";
35
35
  import { mobileAccordionItemPropTypes, mobileAccordionPropTypes } from "./react-desc-prop-types";
36
36
  const DSMobileAccordion = (_a) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Accordion/DSMobileAccordion.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe } from 'react-desc';\nimport { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';\nimport type { DSAccordionT } from '@elliemae/ds-accordion';\nimport { mobileAccordionItemPropTypes, mobileAccordionPropTypes } from './react-desc-prop-types';\n\ntype DSMobileAccordionPropsT = Omit<DSAccordionT.Props, 'isDSMobile'>;\n\nexport const DSMobileAccordion = ({ children, ...props }: DSMobileAccordionPropsT) => (\n <DSAccordion {...props} isDSMobile>\n {children}\n </DSAccordion>\n);\n\nexport const DSMobileAccordionItem = ({ children, ...props }: DSAccordionT.ItemProps) => (\n <DSAccordionItem {...props}>{children}</DSAccordionItem>\n);\n\nDSMobileAccordionItem.displayName = 'DSMobileAccordionItem';\nconst DSMobileAccordionItemWithSchema = describe(DSMobileAccordionItem);\nDSMobileAccordionItemWithSchema.propTypes = mobileAccordionItemPropTypes;\n\nDSMobileAccordion.displayName = 'DSMobileAccordion';\nconst DSMobileAccordionWithSchema = describe(DSMobileAccordion);\nDSMobileAccordionWithSchema.propTypes = mobileAccordionPropTypes;\n\nexport { DSMobileAccordionItemWithSchema, DSMobileAccordionWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe } from '@elliemae/ds-utilities';\nimport { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';\nimport type { DSAccordionT } from '@elliemae/ds-accordion';\nimport { mobileAccordionItemPropTypes, mobileAccordionPropTypes } from './react-desc-prop-types';\n\ntype DSMobileAccordionPropsT = Omit<DSAccordionT.Props, 'isDSMobile'>;\n\nexport const DSMobileAccordion = ({ children, ...props }: DSMobileAccordionPropsT) => (\n <DSAccordion {...props} isDSMobile>\n {children}\n </DSAccordion>\n);\n\nexport const DSMobileAccordionItem = ({ children, ...props }: DSAccordionT.ItemProps) => (\n <DSAccordionItem {...props}>{children}</DSAccordionItem>\n);\n\nDSMobileAccordionItem.displayName = 'DSMobileAccordionItem';\nconst DSMobileAccordionItemWithSchema = describe(DSMobileAccordionItem);\nDSMobileAccordionItemWithSchema.propTypes = mobileAccordionItemPropTypes;\n\nDSMobileAccordion.displayName = 'DSMobileAccordion';\nconst DSMobileAccordionWithSchema = describe(DSMobileAccordion);\nDSMobileAccordionWithSchema.propTypes = mobileAccordionPropTypes;\n\nexport { DSMobileAccordionItemWithSchema, DSMobileAccordionWithSchema };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AAEA;AAIO,MAAM,oBAAoB,CAAC,OAAiD;AAAjD,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AAClC,6CAAC,8CAAgB,QAAhB;AAAA,IAAuB,YAAU;AAAA,MAC/B,QACH;AAAA;AAGK,MAAM,wBAAwB,CAAC,OAAgD;AAAhD,eAAE,eAAF,IAAe,kBAAf,IAAe,CAAb;AACtC,6CAAC,oCAAoB,QAAQ,QAAS;AAAA;AAGxC,sBAAsB,cAAc;AACpC,MAAM,kCAAkC,SAAS,qBAAqB;AACtE,gCAAgC,YAAY;AAE5C,kBAAkB,cAAc;AAChC,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
3
  import { times } from "lodash";
4
- import { PropTypes, describe } from "react-desc";
5
- import styled from "styled-components";
4
+ import { PropTypes, describe } from "@elliemae/ds-utilities";
5
+ import { styled } from "@elliemae/ds-system";
6
6
  import { Grid } from "@elliemae/ds-grid";
7
7
  import { truncate } from "@elliemae/ds-system";
8
8
  const Title = styled.h3`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CategoryBox/CategoryBox.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { times } from 'lodash';\nimport { PropTypes, describe } from 'react-desc';\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst Title = styled.h3`\n font-size: 18px;\n margin: 0;\n color: ${(props) => props.theme.colors.neutral['700']};\n line-height: inherit;\n ${truncate()}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n`;\n\nconst CategoryBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['0']};\n border-top: ${(props) => (props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none')};\n`;\n\nconst DSCategoryBox = ({ borderTop = true, actionsRight = [], title, headerLevel = 3, children }) => {\n const rows = ['auto'];\n const hasActions = actionsRight.length > 0;\n if (hasActions) rows.push('auto');\n\n return (\n <Grid rows={['40px', 'auto']}>\n <CategoryBox\n cols={rows}\n borderTop={borderTop}\n alignItems=\"center\"\n pl=\"xs\"\n pr={actionsRight.length > 0 ? 'xxs' : 'xs'}\n >\n <Title as={`h${headerLevel}`}>{title}</Title>\n {hasActions && (\n <Grid cols={times(actionsRight.length, () => 'auto')} justifySelf=\"end\">\n {actionsRight}\n </Grid>\n )}\n </CategoryBox>\n {children}\n </Grid>\n );\n};\n\nconst props = {\n /**\n * Category Box title\n */\n title: PropTypes.string.isRequired.description('Category Box title'),\n /**\n * Toggle border top of category box\n */\n borderTop: PropTypes.bool.description('Toggle border top of category box'),\n /**\n * Array of button icons\n */\n actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),\n /**\n * semantic level of header tag for the title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),\n /**\n * In-box children\n */\n children: PropTypes.element.description('In-box children'),\n};\n\nDSCategoryBox.propTypes = props;\nDSCategoryBox.displayName = 'DSCategoryBox';\nconst DSCategoryBoxWithSchema = describe(DSCategoryBox);\nDSCategoryBoxWithSchema.propTypes = props;\n\nexport { DSCategoryBox, DSCategoryBoxWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { times } from 'lodash';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst Title = styled.h3`\n font-size: 18px;\n margin: 0;\n color: ${(props) => props.theme.colors.neutral['700']};\n line-height: inherit;\n ${truncate()}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n`;\n\nconst CategoryBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['0']};\n border-top: ${(props) => (props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none')};\n`;\n\nconst DSCategoryBox = ({ borderTop = true, actionsRight = [], title, headerLevel = 3, children }) => {\n const rows = ['auto'];\n const hasActions = actionsRight.length > 0;\n if (hasActions) rows.push('auto');\n\n return (\n <Grid rows={['40px', 'auto']}>\n <CategoryBox\n cols={rows}\n borderTop={borderTop}\n alignItems=\"center\"\n pl=\"xs\"\n pr={actionsRight.length > 0 ? 'xxs' : 'xs'}\n >\n <Title as={`h${headerLevel}`}>{title}</Title>\n {hasActions && (\n <Grid cols={times(actionsRight.length, () => 'auto')} justifySelf=\"end\">\n {actionsRight}\n </Grid>\n )}\n </CategoryBox>\n {children}\n </Grid>\n );\n};\n\nconst props = {\n /**\n * Category Box title\n */\n title: PropTypes.string.isRequired.description('Category Box title'),\n /**\n * Toggle border top of category box\n */\n borderTop: PropTypes.bool.description('Toggle border top of category box'),\n /**\n * Array of button icons\n */\n actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),\n /**\n * semantic level of header tag for the title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),\n /**\n * In-box children\n */\n children: PropTypes.element.description('In-box children'),\n};\n\nDSCategoryBox.propTypes = props;\nDSCategoryBox.displayName = 'DSCategoryBox';\nconst DSCategoryBoxWithSchema = describe(DSCategoryBox);\nDSCategoryBoxWithSchema.propTypes = props;\n\nexport { DSCategoryBox, DSCategoryBoxWithSchema };\n"],
5
5
  "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA,WAGV,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,IAE7C,SAAS;AAAA,iBACI,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA;AAGpD,MAAM,cAAc,OAAO,IAAI;AAAA,gBACf,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA,gBACtC,CAAC,WAAW,OAAM,YAAY,aAAa,OAAM,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGjG,MAAM,gBAAgB,CAAC,EAAE,YAAY,MAAM,eAAe,CAAC,GAAG,OAAO,cAAc,GAAG,eAAe;AACnG,QAAM,OAAO,CAAC,MAAM;AACpB,QAAM,aAAa,aAAa,SAAS;AACzC,MAAI;AAAY,SAAK,KAAK,MAAM;AAEhC,SACE,qCAAC;AAAA,IAAK,MAAM,CAAC,QAAQ,MAAM;AAAA,KACzB,qCAAC;AAAA,IACC,MAAM;AAAA,IACN;AAAA,IACA,YAAW;AAAA,IACX,IAAG;AAAA,IACH,IAAI,aAAa,SAAS,IAAI,QAAQ;AAAA,KAEtC,qCAAC;AAAA,IAAM,IAAI,IAAI;AAAA,KAAgB,KAAM,GACpC,cACC,qCAAC;AAAA,IAAK,MAAM,MAAM,aAAa,QAAQ,MAAM,MAAM;AAAA,IAAG,aAAY;AAAA,KAC/D,YACH,CAEJ,GACC,QACH;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAIZ,OAAO,UAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA,EAInE,WAAW,UAAU,KAAK,YAAY,mCAAmC;AAAA,EAIzE,cAAc,UAAU,QAAQ,UAAU,OAAO,EAAE,YAAY,uBAAuB;AAAA,EAItF,aAAa,UAAU,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,EAAE,YAAY,4CAA4C;AAAA,EAIzG,UAAU,UAAU,QAAQ,YAAY,iBAAiB;AAC3D;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
- import { PropTypes, describe } from "react-desc";
4
- import styled from "styled-components";
3
+ import { PropTypes, describe } from "@elliemae/ds-utilities";
4
+ import { styled } from "@elliemae/ds-system";
5
5
  import { Grid } from "@elliemae/ds-grid";
6
6
  import { truncate } from "@elliemae/ds-system";
7
7
  const CollectionBox = styled(Grid)`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/CollectionBox/CollectionBox.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst CollectionBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['000']};\n font-size: 13px;\n color: ${(props) => props.theme.colors.neutral['700']};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n border-top: 1px solid ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Footer = styled(Grid)`\n border-top: 1px dashed ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Body = styled(Grid)`\n min-height: 92px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n`;\n\nconst Header = styled.h3`\n line-height: unset;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n ${truncate()}\n}\n`;\n\nconst ActionWrap = styled(Grid)`\n & .em-ds-button {\n padding: 0;\n min-width: unset;\n }\n`;\n\nconst DSCollectionBox = ({ body, title, headerAction, footerAction, headerLevel = 3 }) => {\n const headerCols = [];\n const footerCols = [];\n const rows = [];\n if (headerAction || title) rows.push('40px');\n rows.push('auto');\n if (footerAction) rows.push('40px');\n\n if (headerAction) headerCols.push('auto');\n if (title) headerCols.push('auto');\n\n if (footerAction) footerCols.push('auto');\n\n return (\n <CollectionBox rows={rows}>\n <Grid alignItems=\"center\" cols={headerCols}>\n {title && <Header as={`h${headerLevel}`}>{title}</Header>}\n {headerAction && <ActionWrap justifySelf=\"end\">{headerAction}</ActionWrap>}\n </Grid>\n <Body>{body}</Body>\n {footerAction && (\n <Footer alignItems=\"center\" cols={footerCols}>\n <ActionWrap justifySelf=\"end\">{footerAction}</ActionWrap>\n </Footer>\n )}\n </CollectionBox>\n );\n};\n\nconst props = {\n /**\n * body inside collection box\n */\n body: PropTypes.element.isRequired.description('body inside collection box'),\n /**\n * Collection box header\n */\n title: PropTypes.string.description('Collection box header'),\n /**\n * Collection box header action, expects a button with size s\n */\n headerAction: PropTypes.element.description('Collection box header action, expects a button with size s'),\n /**\n * Collection box footer action, expects a button with size s\n */\n footerAction: PropTypes.element.description('Collection box footer action, expects a button with size s'),\n /**\n * Semantic header tag used for the header title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('Semantic header tag used for the header title'),\n};\n\nDSCollectionBox.propTypes = props;\nDSCollectionBox.displayName = 'DSCollectionBox';\nconst DSCollectionBoxWithSchema = describe(DSCollectionBox);\nDSCollectionBoxWithSchema.propTypes = props;\n\nexport { DSCollectionBox, DSCollectionBoxWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { truncate } from '@elliemae/ds-system';\n\nconst CollectionBox = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['000']};\n font-size: 13px;\n color: ${(props) => props.theme.colors.neutral['700']};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n border-top: 1px solid ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Footer = styled(Grid)`\n border-top: 1px dashed ${(props) => props.theme.colors.neutral['100']};\n`;\n\nconst Body = styled(Grid)`\n min-height: 92px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n`;\n\nconst Header = styled.h3`\n line-height: unset;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n ${truncate()}\n}\n`;\n\nconst ActionWrap = styled(Grid)`\n & .em-ds-button {\n padding: 0;\n min-width: unset;\n }\n`;\n\nconst DSCollectionBox = ({ body, title, headerAction, footerAction, headerLevel = 3 }) => {\n const headerCols = [];\n const footerCols = [];\n const rows = [];\n if (headerAction || title) rows.push('40px');\n rows.push('auto');\n if (footerAction) rows.push('40px');\n\n if (headerAction) headerCols.push('auto');\n if (title) headerCols.push('auto');\n\n if (footerAction) footerCols.push('auto');\n\n return (\n <CollectionBox rows={rows}>\n <Grid alignItems=\"center\" cols={headerCols}>\n {title && <Header as={`h${headerLevel}`}>{title}</Header>}\n {headerAction && <ActionWrap justifySelf=\"end\">{headerAction}</ActionWrap>}\n </Grid>\n <Body>{body}</Body>\n {footerAction && (\n <Footer alignItems=\"center\" cols={footerCols}>\n <ActionWrap justifySelf=\"end\">{footerAction}</ActionWrap>\n </Footer>\n )}\n </CollectionBox>\n );\n};\n\nconst props = {\n /**\n * body inside collection box\n */\n body: PropTypes.element.isRequired.description('body inside collection box'),\n /**\n * Collection box header\n */\n title: PropTypes.string.description('Collection box header'),\n /**\n * Collection box header action, expects a button with size s\n */\n headerAction: PropTypes.element.description('Collection box header action, expects a button with size s'),\n /**\n * Collection box footer action, expects a button with size s\n */\n footerAction: PropTypes.element.description('Collection box footer action, expects a button with size s'),\n /**\n * Semantic header tag used for the header title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('Semantic header tag used for the header title'),\n};\n\nDSCollectionBox.propTypes = props;\nDSCollectionBox.displayName = 'DSCollectionBox';\nconst DSCollectionBoxWithSchema = describe(DSCollectionBox);\nDSCollectionBoxWithSchema.propTypes = props;\n\nexport { DSCollectionBox, DSCollectionBoxWithSchema };\n"],
5
5
  "mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AAEA,MAAM,gBAAgB,OAAO,IAAI;AAAA,gBACjB,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,WAE3C,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA,iBAChC,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA,0BAC1B,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAGhE,MAAM,SAAS,OAAO,IAAI;AAAA,2BACC,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAGjE,MAAM,OAAO,OAAO,IAAI;AAAA;AAAA,iBAEP,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA;AAGpD,MAAM,SAAS,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlB,SAAS;AAAA;AAAA;AAIb,MAAM,aAAa,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAO9B,MAAM,kBAAkB,CAAC,EAAE,MAAM,OAAO,cAAc,cAAc,cAAc,QAAQ;AACxF,QAAM,aAAa,CAAC;AACpB,QAAM,aAAa,CAAC;AACpB,QAAM,OAAO,CAAC;AACd,MAAI,gBAAgB;AAAO,SAAK,KAAK,MAAM;AAC3C,OAAK,KAAK,MAAM;AAChB,MAAI;AAAc,SAAK,KAAK,MAAM;AAElC,MAAI;AAAc,eAAW,KAAK,MAAM;AACxC,MAAI;AAAO,eAAW,KAAK,MAAM;AAEjC,MAAI;AAAc,eAAW,KAAK,MAAM;AAExC,SACE,qCAAC;AAAA,IAAc;AAAA,KACb,qCAAC;AAAA,IAAK,YAAW;AAAA,IAAS,MAAM;AAAA,KAC7B,SAAS,qCAAC;AAAA,IAAO,IAAI,IAAI;AAAA,KAAgB,KAAM,GAC/C,gBAAgB,qCAAC;AAAA,IAAW,aAAY;AAAA,KAAO,YAAa,CAC/D,GACA,qCAAC,YAAM,IAAK,GACX,gBACC,qCAAC;AAAA,IAAO,YAAW;AAAA,IAAS,MAAM;AAAA,KAChC,qCAAC;AAAA,IAAW,aAAY;AAAA,KAAO,YAAa,CAC9C,CAEJ;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAIZ,MAAM,UAAU,QAAQ,WAAW,YAAY,4BAA4B;AAAA,EAI3E,OAAO,UAAU,OAAO,YAAY,uBAAuB;AAAA,EAI3D,cAAc,UAAU,QAAQ,YAAY,4DAA4D;AAAA,EAIxG,cAAc,UAAU,QAAQ,YAAY,4DAA4D;AAAA,EAIxG,aAAa,UAAU,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,EAAE,YAAY,+CAA+C;AAC9G;AAEA,gBAAgB,YAAY;AAC5B,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,SAAS,eAAe;AAC1D,0BAA0B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -18,7 +18,7 @@ import * as React from "react";
18
18
  import React2, { useState, useCallback } from "react";
19
19
  import { Search } from "@elliemae/ds-icons";
20
20
  import { DSInput } from "@elliemae/ds-form";
21
- import { PropTypes, describe } from "react-desc";
21
+ import { PropTypes, describe } from "@elliemae/ds-utilities";
22
22
  import DSButton from "@elliemae/ds-button";
23
23
  import { DSIconSizes, DSIconColors } from "@elliemae/ds-icon";
24
24
  import { debounce, noop } from "lodash";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/GlobalHeader/MobileGlobalHeader.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/jsx-no-bind */\n/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\nimport React, { useState, useCallback } from 'react';\nimport { Search } from '@elliemae/ds-icons';\nimport { DSInput } from '@elliemae/ds-form';\nimport { PropTypes, describe } from 'react-desc';\nimport DSButton from '@elliemae/ds-button';\nimport { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';\nimport { debounce, noop } from 'lodash';\nimport { Grid } from '@elliemae/ds-grid';\nimport Logo from '../Icons/EM_logo';\nimport { Container, Label, SearchWrapper, Icon, RightSection, MainSection } from './styles';\nimport { DSSideNav } from '../SideNav';\n\nconst DSGlobalHeader = ({\n containerProps = {},\n title,\n lastIcon,\n onSearchChange = noop,\n topMenuItems,\n bottomMenuItems,\n}) => {\n const [searchBarVisible, setSearchBarVisible] = useState(false);\n const [searchValue, setSearchValue] = useState();\n const [showMenu, setShowMenu] = useState(false);\n const searchClicked = () => {\n setSearchBarVisible(true);\n };\n\n const onSearchChangeDebounced = useCallback(debounce(onSearchChange, 250), []);\n const searchValueChanged = (e) => {\n const val = e.target.value;\n onSearchChangeDebounced(val);\n setSearchValue(val);\n };\n\n const searchCloseClicked = () => {\n setSearchBarVisible(false);\n };\n\n const menuToggle = (flag) => {\n setShowMenu(flag);\n };\n\n return (\n <>\n <Container data-testid={containerProps['data-testid'] || 'global-header-wrapper'} {...containerProps}>\n {!searchBarVisible ? (\n <>\n <MainSection>\n <Icon onClick={menuToggle.bind(null, true)}>{Logo()}</Icon>\n <Label>{title}</Label>\n <span></span>\n <RightSection>\n <Grid cols={lastIcon ? [1 / 2, 1 / 2] : [1]} gutter=\"xs\">\n <Grid>\n <Search\n data-testid=\"mobile-global-header-search\"\n size={DSIconSizes.M}\n color={DSIconColors.WHITE}\n onClick={searchClicked}\n />\n </Grid>\n {lastIcon && <Grid>{lastIcon}</Grid>}\n </Grid>\n </RightSection>\n </MainSection>\n </>\n ) : (\n <SearchWrapper>\n <DSInput\n clearable\n className=\"dsInput\"\n placeholder=\"Search here\"\n onChange={searchValueChanged}\n rightComponent={\n <DSButton\n buttonType=\"primary\"\n className=\"dsButton\"\n icon={<Search size={DSIconSizes.M} color={DSIconColors.WHITE} onClick={searchCloseClicked} />}\n />\n }\n value={searchValue}\n variant=\"variant-active\"\n />\n </SearchWrapper>\n )}\n </Container>\n {showMenu ? (\n <DSSideNav\n title={title}\n menuItems={topMenuItems}\n bottomMenuItems={bottomMenuItems}\n onClose={menuToggle.bind(null, false)}\n ></DSSideNav>\n ) : null}\n </>\n );\n};\n\nconst menuProps = PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n text: PropTypes.string,\n }),\n).description('menu item array');\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Heading Title\n */\n title: PropTypes.string.isRequired.description('Heading Title'),\n /**\n * Dimsum icon Element\n */\n lastIcon: PropTypes.element.description('Dimsum icon Element'),\n /**\n * Callback function for search change\n */\n onSearchChange: PropTypes.func.description('Callback function for search change'),\n /**\n * Top Menu items array\n */\n topMenuItems: menuProps,\n /**\n * Bottom Menu items array\n */\n bottomMenuItems: menuProps,\n};\n\nDSGlobalHeader.propTypes = props;\nDSGlobalHeader.displayName = 'DSGlobalHeader';\nconst DSGlobalHeaderWithSchema = describe(DSGlobalHeader);\nDSGlobalHeaderWithSchema.propTypes = props;\n\nexport { DSGlobalHeader, DSGlobalHeaderWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/jsx-no-bind */\n/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\nimport React, { useState, useCallback } from 'react';\nimport { Search } from '@elliemae/ds-icons';\nimport { DSInput } from '@elliemae/ds-form';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport DSButton from '@elliemae/ds-button';\nimport { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';\nimport { debounce, noop } from 'lodash';\nimport { Grid } from '@elliemae/ds-grid';\nimport Logo from '../Icons/EM_logo';\nimport { Container, Label, SearchWrapper, Icon, RightSection, MainSection } from './styles';\nimport { DSSideNav } from '../SideNav';\n\nconst DSGlobalHeader = ({\n containerProps = {},\n title,\n lastIcon,\n onSearchChange = noop,\n topMenuItems,\n bottomMenuItems,\n}) => {\n const [searchBarVisible, setSearchBarVisible] = useState(false);\n const [searchValue, setSearchValue] = useState();\n const [showMenu, setShowMenu] = useState(false);\n const searchClicked = () => {\n setSearchBarVisible(true);\n };\n\n const onSearchChangeDebounced = useCallback(debounce(onSearchChange, 250), []);\n const searchValueChanged = (e) => {\n const val = e.target.value;\n onSearchChangeDebounced(val);\n setSearchValue(val);\n };\n\n const searchCloseClicked = () => {\n setSearchBarVisible(false);\n };\n\n const menuToggle = (flag) => {\n setShowMenu(flag);\n };\n\n return (\n <>\n <Container data-testid={containerProps['data-testid'] || 'global-header-wrapper'} {...containerProps}>\n {!searchBarVisible ? (\n <>\n <MainSection>\n <Icon onClick={menuToggle.bind(null, true)}>{Logo()}</Icon>\n <Label>{title}</Label>\n <span></span>\n <RightSection>\n <Grid cols={lastIcon ? [1 / 2, 1 / 2] : [1]} gutter=\"xs\">\n <Grid>\n <Search\n data-testid=\"mobile-global-header-search\"\n size={DSIconSizes.M}\n color={DSIconColors.WHITE}\n onClick={searchClicked}\n />\n </Grid>\n {lastIcon && <Grid>{lastIcon}</Grid>}\n </Grid>\n </RightSection>\n </MainSection>\n </>\n ) : (\n <SearchWrapper>\n <DSInput\n clearable\n className=\"dsInput\"\n placeholder=\"Search here\"\n onChange={searchValueChanged}\n rightComponent={\n <DSButton\n buttonType=\"primary\"\n className=\"dsButton\"\n icon={<Search size={DSIconSizes.M} color={DSIconColors.WHITE} onClick={searchCloseClicked} />}\n />\n }\n value={searchValue}\n variant=\"variant-active\"\n />\n </SearchWrapper>\n )}\n </Container>\n {showMenu ? (\n <DSSideNav\n title={title}\n menuItems={topMenuItems}\n bottomMenuItems={bottomMenuItems}\n onClose={menuToggle.bind(null, false)}\n ></DSSideNav>\n ) : null}\n </>\n );\n};\n\nconst menuProps = PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n text: PropTypes.string,\n }),\n).description('menu item array');\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Heading Title\n */\n title: PropTypes.string.isRequired.description('Heading Title'),\n /**\n * Dimsum icon Element\n */\n lastIcon: PropTypes.element.description('Dimsum icon Element'),\n /**\n * Callback function for search change\n */\n onSearchChange: PropTypes.func.description('Callback function for search change'),\n /**\n * Top Menu items array\n */\n topMenuItems: menuProps,\n /**\n * Bottom Menu items array\n */\n bottomMenuItems: menuProps,\n};\n\nDSGlobalHeader.propTypes = props;\nDSGlobalHeader.displayName = 'DSGlobalHeader';\nconst DSGlobalHeaderWithSchema = describe(DSGlobalHeader);\nDSGlobalHeaderWithSchema.propTypes = props;\n\nexport { DSGlobalHeader, DSGlobalHeaderWithSchema };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;AAAA;ACGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,iBAAiB,CAAC;AAAA,EACtB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,MACI;AACJ,QAAM,CAAC,kBAAkB,uBAAuB,SAAS,KAAK;AAC9D,QAAM,CAAC,aAAa,kBAAkB,SAAS;AAC/C,QAAM,CAAC,UAAU,eAAe,SAAS,KAAK;AAC9C,QAAM,gBAAgB,MAAM;AAC1B,wBAAoB,IAAI;AAAA,EAC1B;AAEA,QAAM,0BAA0B,YAAY,SAAS,gBAAgB,GAAG,GAAG,CAAC,CAAC;AAC7E,QAAM,qBAAqB,CAAC,MAAM;AAChC,UAAM,MAAM,EAAE,OAAO;AACrB,4BAAwB,GAAG;AAC3B,mBAAe,GAAG;AAAA,EACpB;AAEA,QAAM,qBAAqB,MAAM;AAC/B,wBAAoB,KAAK;AAAA,EAC3B;AAEA,QAAM,aAAa,CAAC,SAAS;AAC3B,gBAAY,IAAI;AAAA,EAClB;AAEA,SACE,4DACE,qCAAC;AAAA,IAAU,eAAa,eAAe,kBAAkB;AAAA,KAA6B,iBACnF,CAAC,mBACA,4DACE,qCAAC,mBACC,qCAAC;AAAA,IAAK,SAAS,WAAW,KAAK,MAAM,IAAI;AAAA,KAAI,KAAK,CAAE,GACpD,qCAAC,aAAO,KAAM,GACd,qCAAC,YAAK,GACN,qCAAC,oBACC,qCAAC;AAAA,IAAK,MAAM,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;AAAA,IAAG,QAAO;AAAA,KAClD,qCAAC,YACC,qCAAC;AAAA,IACC,eAAY;AAAA,IACZ,MAAM,YAAY;AAAA,IAClB,OAAO,aAAa;AAAA,IACpB,SAAS;AAAA,GACX,CACF,GACC,YAAY,qCAAC,YAAM,QAAS,CAC/B,CACF,CACF,CACF,IAEA,qCAAC,qBACC,qCAAC;AAAA,IACC,WAAS;AAAA,IACT,WAAU;AAAA,IACV,aAAY;AAAA,IACZ,UAAU;AAAA,IACV,gBACE,qCAAC;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,MAAM,qCAAC;AAAA,QAAO,MAAM,YAAY;AAAA,QAAG,OAAO,aAAa;AAAA,QAAO,SAAS;AAAA,OAAoB;AAAA,KAC7F;AAAA,IAEF,OAAO;AAAA,IACP,SAAQ;AAAA,GACV,CACF,CAEJ,GACC,WACC,qCAAC;AAAA,IACC;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,SAAS,WAAW,KAAK,MAAM,KAAK;AAAA,GACrC,IACC,IACN;AAEJ;AAEA,MAAM,YAAY,UAAU,QAC1B,UAAU,MAAM;AAAA,EACd,MAAM,UAAU;AAAA,EAChB,MAAM,UAAU;AAClB,CAAC,CACH,EAAE,YAAY,iBAAiB;AAE/B,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY,4BAA4B;AAAA,EAIzE,OAAO,UAAU,OAAO,WAAW,YAAY,eAAe;AAAA,EAI9D,UAAU,UAAU,QAAQ,YAAY,qBAAqB;AAAA,EAI7D,gBAAgB,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAIhF,cAAc;AAAA,EAId,iBAAiB;AACnB;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import styled from "styled-components";
2
+ import { styled } from "@elliemae/ds-system";
3
3
  import { kfrm, css } from "@elliemae/ds-system";
4
4
  const Container = styled.header`
5
5
  width: auto;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/GlobalHeader/styles.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import styled from 'styled-components';\nimport { kfrm, css } from '@elliemae/ds-system';\n\nexport const Container = styled.header`\n width: auto;\n height: 64px;\n position: fixed;\n width: 100%;\n background-color: ${(props) => props.theme.colors.brand[700]};\n padding: ${(props) => props.theme.space.xs};\n color: ${(props) => props.theme.colors.neutral['000']};\n`;\n\nconst growLeft = kfrm`\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n`;\n\nexport const SearchWrapper = styled.div`\n background-color: ${(props) => props.theme.colors.brand[600]};\n ${css`\n animation: ${growLeft} 1s;\n `}\n float: right;\n width: 100%;\n border-radius: 4px;\n .dsInput {\n input {\n border-radius: 2px 0 0 2px;\n color: ${(props) => props.theme.colors.neutral['000']};\n border: calc(0.30769rem * 0.25) solid\n ${(props) => props.theme.colors.brand[800]} !important;\n &:focus {\n border-right: none !important;\n }\n &::placeholder {\n color: ${(props) => props.theme.colors.neutral['000']};\n }\n }\n .em-ds-input__clearable {\n border: calc(0.30769rem * 0.25) solid\n ${(props) => props.theme.colors.brand[800]} !important;\n }\n }\n\n .dsButton {\n border-color: ${(props) => props.theme.colors.brand[800]} !important;\n border-radius: 0 2px 2px 0;\n border-left: none;\n }\n svg,\n svg:not([fill]) {\n fill: ${(props) => props.theme.colors.neutral['000']};\n }\n`;\n\nexport const Icon = styled.div`\n margin-right: ${(props) => props.theme.space.xs};\n`;\n\nexport const Label = styled.div`\n font-family: ${(props) => props.theme.fonts.default};\n font-weight: ${(props) => props.theme.fontWeights.regular};\n font-size: 25px;\n line-height: 32px;\n`;\n\nexport const RightSection = styled.div`\n padding-top: 5px;\n`;\n\nexport const MainSection = styled.div`\n display: flex;\n flex-direction: row;\n height: 32px;\n span {\n flex-grow: 1;\n }\n`;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-system';\nimport { kfrm, css } from '@elliemae/ds-system';\n\nexport const Container = styled.header`\n width: auto;\n height: 64px;\n position: fixed;\n width: 100%;\n background-color: ${(props) => props.theme.colors.brand[700]};\n padding: ${(props) => props.theme.space.xs};\n color: ${(props) => props.theme.colors.neutral['000']};\n`;\n\nconst growLeft = kfrm`\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n`;\n\nexport const SearchWrapper = styled.div`\n background-color: ${(props) => props.theme.colors.brand[600]};\n ${css`\n animation: ${growLeft} 1s;\n `}\n float: right;\n width: 100%;\n border-radius: 4px;\n .dsInput {\n input {\n border-radius: 2px 0 0 2px;\n color: ${(props) => props.theme.colors.neutral['000']};\n border: calc(0.30769rem * 0.25) solid\n ${(props) => props.theme.colors.brand[800]} !important;\n &:focus {\n border-right: none !important;\n }\n &::placeholder {\n color: ${(props) => props.theme.colors.neutral['000']};\n }\n }\n .em-ds-input__clearable {\n border: calc(0.30769rem * 0.25) solid\n ${(props) => props.theme.colors.brand[800]} !important;\n }\n }\n\n .dsButton {\n border-color: ${(props) => props.theme.colors.brand[800]} !important;\n border-radius: 0 2px 2px 0;\n border-left: none;\n }\n svg,\n svg:not([fill]) {\n fill: ${(props) => props.theme.colors.neutral['000']};\n }\n`;\n\nexport const Icon = styled.div`\n margin-right: ${(props) => props.theme.space.xs};\n`;\n\nexport const Label = styled.div`\n font-family: ${(props) => props.theme.fonts.default};\n font-weight: ${(props) => props.theme.fontWeights.regular};\n font-size: 25px;\n line-height: 32px;\n`;\n\nexport const RightSection = styled.div`\n padding-top: 5px;\n`;\n\nexport const MainSection = styled.div`\n display: flex;\n flex-direction: row;\n height: 32px;\n span {\n flex-grow: 1;\n }\n`;\n"],
5
5
  "mappings": "AAAA;ACAA;AACA;AAEO,MAAM,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKV,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,aAC7C,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,WAC/B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAGjD,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASV,MAAM,gBAAgB,OAAO;AAAA,sBACd,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,IACtD;AAAA,iBACa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAQF,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,UAE3C,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,iBAK7B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,UAK7C,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,oBAK1B,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAM5C,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAI3C,MAAM,OAAO,OAAO;AAAA,kBACT,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGxC,MAAM,QAAQ,OAAO;AAAA,iBACX,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC7B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAK7C,MAAM,eAAe,OAAO;AAAA;AAAA;AAI5B,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
- import { PropTypes, describe } from "react-desc";
3
+ import { PropTypes, describe } from "@elliemae/ds-utilities";
4
4
  import { times } from "lodash";
5
5
  import { truncate } from "@elliemae/ds-system";
6
- import styled from "styled-components";
6
+ import { styled } from "@elliemae/ds-system";
7
7
  import { Grid } from "@elliemae/ds-grid";
8
8
  const Title = styled.h3`
9
9
  font-size: 14px;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/GroupBox/GroupBox.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { times } from 'lodash';\nimport { truncate } from '@elliemae/ds-system';\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst Title = styled.h3`\n font-size: 14px;\n margin: 0;\n ${truncate()}\n color: ${(props) => props.theme.colors.neutral['700']};\n line-height: inherit;\n text-transform: capitalize;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n`;\n\nconst GroupBox = styled(Grid)`\n background: ${(props) =>\n props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000']};\n\n border-top: ${(props) => (props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none')};\n`;\n\nconst DSGroupBox = ({ children, title, background = 'grey', headerLevel = 3, actionsRight = [], borderTop }) => {\n const rows = ['auto'];\n const hasActions = actionsRight.length > 0;\n if (hasActions) rows.push('auto');\n return (\n <Grid rows={['32px', 'auto']}>\n <GroupBox\n background={background}\n cols={rows}\n borderTop={borderTop}\n alignItems=\"center\"\n pl=\"xs\"\n pr={hasActions ? 'xxs' : 'xs'}\n >\n <Title as={`h${headerLevel}`}>{title}</Title>\n {hasActions && (\n <Grid cols={times(actionsRight.length, () => 'auto')} justifySelf=\"end\">\n {actionsRight}\n </Grid>\n )}\n </GroupBox>\n {children}\n </Grid>\n );\n};\n\nconst props = {\n /**\n * In-box children\n */\n children: PropTypes.element.description('In-box children'),\n /**\n * Title background\n */\n background: PropTypes.oneOf(['white', 'grey']).description('Title background'),\n /**\n * Toggle border top of group box\n */\n borderTop: PropTypes.bool.description('Toggle border top of group box'),\n /**\n * Group Box title\n */\n title: PropTypes.string.isRequired.description('Group Box title'),\n /**\n * semantic level of header tag for the title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),\n /**\n * Array of button icons\n */\n actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),\n};\n\nDSGroupBox.propTypes = props;\nDSGroupBox.displayName = 'DSGroupBox';\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { times } from 'lodash';\nimport { truncate } from '@elliemae/ds-system';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst Title = styled.h3`\n font-size: 14px;\n margin: 0;\n ${truncate()}\n color: ${(props) => props.theme.colors.neutral['700']};\n line-height: inherit;\n text-transform: capitalize;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n`;\n\nconst GroupBox = styled(Grid)`\n background: ${(props) =>\n props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000']};\n\n border-top: ${(props) => (props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none')};\n`;\n\nconst DSGroupBox = ({ children, title, background = 'grey', headerLevel = 3, actionsRight = [], borderTop }) => {\n const rows = ['auto'];\n const hasActions = actionsRight.length > 0;\n if (hasActions) rows.push('auto');\n return (\n <Grid rows={['32px', 'auto']}>\n <GroupBox\n background={background}\n cols={rows}\n borderTop={borderTop}\n alignItems=\"center\"\n pl=\"xs\"\n pr={hasActions ? 'xxs' : 'xs'}\n >\n <Title as={`h${headerLevel}`}>{title}</Title>\n {hasActions && (\n <Grid cols={times(actionsRight.length, () => 'auto')} justifySelf=\"end\">\n {actionsRight}\n </Grid>\n )}\n </GroupBox>\n {children}\n </Grid>\n );\n};\n\nconst props = {\n /**\n * In-box children\n */\n children: PropTypes.element.description('In-box children'),\n /**\n * Title background\n */\n background: PropTypes.oneOf(['white', 'grey']).description('Title background'),\n /**\n * Toggle border top of group box\n */\n borderTop: PropTypes.bool.description('Toggle border top of group box'),\n /**\n * Group Box title\n */\n title: PropTypes.string.isRequired.description('Group Box title'),\n /**\n * semantic level of header tag for the title\n */\n headerLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description('semantic level of header tag for the title'),\n /**\n * Array of button icons\n */\n actionsRight: PropTypes.arrayOf(PropTypes.element).description('Array of button icons'),\n};\n\nDSGroupBox.propTypes = props;\nDSGroupBox.displayName = 'DSGroupBox';\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\n"],
5
5
  "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA,IAGjB,SAAS;AAAA,WACF,CAAC,WAAU,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA,iBAGhC,CAAC,WAAU,OAAM,MAAM,YAAY;AAAA;AAGpD,MAAM,WAAW,OAAO,IAAI;AAAA,gBACZ,CAAC,WACb,OAAM,eAAe,SAAS,OAAM,MAAM,OAAO,QAAQ,SAAS,OAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,gBAEjF,CAAC,WAAW,OAAM,YAAY,aAAa,OAAM,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGjG,MAAM,aAAa,CAAC,EAAE,UAAU,OAAO,aAAa,QAAQ,cAAc,GAAG,eAAe,CAAC,GAAG,gBAAgB;AAC9G,QAAM,OAAO,CAAC,MAAM;AACpB,QAAM,aAAa,aAAa,SAAS;AACzC,MAAI;AAAY,SAAK,KAAK,MAAM;AAChC,SACE,qCAAC;AAAA,IAAK,MAAM,CAAC,QAAQ,MAAM;AAAA,KACzB,qCAAC;AAAA,IACC;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA,YAAW;AAAA,IACX,IAAG;AAAA,IACH,IAAI,aAAa,QAAQ;AAAA,KAEzB,qCAAC;AAAA,IAAM,IAAI,IAAI;AAAA,KAAgB,KAAM,GACpC,cACC,qCAAC;AAAA,IAAK,MAAM,MAAM,aAAa,QAAQ,MAAM,MAAM;AAAA,IAAG,aAAY;AAAA,KAC/D,YACH,CAEJ,GACC,QACH;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAIZ,UAAU,UAAU,QAAQ,YAAY,iBAAiB;AAAA,EAIzD,YAAY,UAAU,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,YAAY,kBAAkB;AAAA,EAI7E,WAAW,UAAU,KAAK,YAAY,gCAAgC;AAAA,EAItE,OAAO,UAAU,OAAO,WAAW,YAAY,iBAAiB;AAAA,EAIhE,aAAa,UAAU,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,EAAE,YAAY,4CAA4C;AAAA,EAIzG,cAAc,UAAU,QAAQ,UAAU,OAAO,EAAE,YAAY,uBAAuB;AACxF;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React2, { useEffect, useRef } from "react";
3
- import { PropTypes, describe } from "react-desc";
3
+ import { PropTypes, describe } from "@elliemae/ds-utilities";
4
4
  import { Grid } from "@elliemae/ds-grid";
5
5
  import { Loader } from "./Loader";
6
6
  const InfiniteLoader = ({ isFetching, fetchData, children, height = window.innerHeight }) => {