@occmundial/occ-atomic 2.0.0-beta.1 → 2.0.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/.prettierrc +6 -0
  2. package/.whitesource +12 -0
  3. package/CHANGELOG.md +1354 -584
  4. package/CONTRIBUTING.md +24 -0
  5. package/README.md +21 -21
  6. package/build/Autocomplete/Autocomplete.js +217 -117
  7. package/build/Autocomplete/Autocomplete.test.js +90 -74
  8. package/build/Autocomplete/__snapshots__/Autocomplete.test.js.snap +20 -0
  9. package/build/Autocomplete/index.js +6 -1
  10. package/build/Autocomplete/styles.js +2 -5
  11. package/build/Avatar/Avatar.js +66 -28
  12. package/build/Avatar/Avatar.test.js +36 -13
  13. package/build/Avatar/AvatarContent/AvatarContent.js +11 -14
  14. package/build/Avatar/AvatarContent/AvatarContent.test.js +55 -50
  15. package/build/Avatar/AvatarContent/__snapshots__/AvatarContent.test.js.snap +41 -0
  16. package/build/Avatar/AvatarContent/index.js +6 -1
  17. package/build/Avatar/AvatarContent/styles.js +12 -11
  18. package/build/Avatar/__snapshots__/Avatar.test.js.snap +17 -0
  19. package/build/Avatar/index.js +22 -1
  20. package/build/Avatar/styles.js +2 -6
  21. package/build/Banner/Banner.js +76 -0
  22. package/build/Banner/Banner.test.js +40 -0
  23. package/build/Banner/__snapshots__/Banner.test.js.snap +33 -0
  24. package/build/Banner/index.js +18 -0
  25. package/build/Banner/styles.js +41 -0
  26. package/build/Button/Button.js +134 -61
  27. package/build/Button/Button.test.js +69 -20
  28. package/build/Button/Loading.js +82 -0
  29. package/build/Button/__snapshots__/Button.test.js.snap +322 -0
  30. package/build/Button/index.js +22 -1
  31. package/build/Button/styles.js +187 -178
  32. package/build/ButtonAlign/ButtonAlign.js +20 -16
  33. package/build/ButtonAlign/ButtonAlign.test.js +3 -3
  34. package/build/ButtonAlign/__snapshots__/ButtonAlign.test.js.snap +19 -0
  35. package/build/Card/Card.js +4 -5
  36. package/build/Card/Card.test.js +40 -35
  37. package/build/Card/__snapshots__/Card.test.js.snap +46 -0
  38. package/build/Card/index.js +22 -1
  39. package/build/Card/styles.js +2 -4
  40. package/build/Check/Check.js +18 -14
  41. package/build/Check/Check.test.js +7 -7
  42. package/build/Check/__snapshots__/Check.test.js.snap +92 -0
  43. package/build/Check/styles.js +2 -2
  44. package/build/Checkbox/Checkbox.js +106 -60
  45. package/build/Checkbox/Checkbox.test.js +58 -42
  46. package/build/Checkbox/__snapshots__/Checkbox.test.js.snap +92 -0
  47. package/build/Checkbox/index.js +4 -2
  48. package/build/Checkbox/styles.js +2 -5
  49. package/build/Column/Column.js +1 -1
  50. package/build/Column/Column.test.js +3 -3
  51. package/build/Column/__snapshots__/Column.test.js.snap +647 -0
  52. package/build/Container/Container.js +1 -1
  53. package/build/Container/Container.test.js +4 -4
  54. package/build/Container/__snapshots__/Container.test.js.snap +43 -0
  55. package/build/Droplist/Droplist.js +474 -227
  56. package/build/Droplist/Droplist.test.js +111 -87
  57. package/build/Droplist/__snapshots__/Droplist.test.js.snap +65 -0
  58. package/build/Droplist/functions.js +9 -2
  59. package/build/Droplist/index.js +22 -1
  60. package/build/Droplist/styles.js +41 -15
  61. package/build/Flexbox/Flexbox.js +64 -29
  62. package/build/Flexbox/Flexbox.test.js +32 -14
  63. package/build/Flexbox/__snapshots__/Flexbox.test.js.snap +106 -0
  64. package/build/Flexbox/index.js +22 -1
  65. package/build/Flexbox/styles.js +2 -6
  66. package/build/Footer/Footer.js +42 -30
  67. package/build/Footer/Footer.test.js +2 -2
  68. package/build/Footer/List/List.js +32 -25
  69. package/build/Footer/__snapshots__/Footer.test.js.snap +90 -0
  70. package/build/Footer/styles.js +5 -0
  71. package/build/Grid/Col/Col.js +15 -22
  72. package/build/Grid/Col/Col.test.js +33 -13
  73. package/build/Grid/Col/__snapshots__/Col.test.js.snap +963 -0
  74. package/build/Grid/Col/index.js +22 -1
  75. package/build/Grid/Col/styles.js +97 -116
  76. package/build/Grid/Grid.js +18 -12
  77. package/build/Grid/Row/Row.js +1 -1
  78. package/build/Grid/Row/Row.test.js +2 -2
  79. package/build/Grid/Row/__snapshots__/Row.test.js.snap +22 -0
  80. package/build/Grid/Row/index.js +4 -2
  81. package/build/Grid/index.js +4 -2
  82. package/build/Header/Header.js +35 -31
  83. package/build/Header/Header.test.js +8 -8
  84. package/build/Header/Menu/Menu.js +23 -19
  85. package/build/Header/Menu/Menu.test.js +7 -7
  86. package/build/Header/Menu/__snapshots__/Menu.test.js.snap +113 -0
  87. package/build/Header/Nav/Nav.js +19 -15
  88. package/build/Header/Nav/Nav.test.js +5 -5
  89. package/build/Header/Nav/__snapshots__/Nav.test.js.snap +101 -0
  90. package/build/Header/__snapshots__/Header.test.js.snap +79 -0
  91. package/build/Hidden/Hidden.js +17 -13
  92. package/build/Hidden/Hidden.test.js +6 -6
  93. package/build/Hidden/__snapshots__/Hidden.test.js.snap +3 -0
  94. package/build/Hidden/index.js +4 -2
  95. package/build/Icon/Icon.js +90 -15
  96. package/build/Icon/Icon.test.js +49 -56
  97. package/build/Icon/__snapshots__/Icon.test.js.snap +32 -0
  98. package/build/Icon/index.js +22 -1
  99. package/build/Icon/styles.js +16 -9
  100. package/build/Input/Input.js +29 -25
  101. package/build/Input/Input.test.js +21 -21
  102. package/build/Input/__snapshots__/Input.test.js.snap +194 -0
  103. package/build/Input/index.js +17 -13
  104. package/build/Label/Label.js +17 -13
  105. package/build/Label/Label.test.js +6 -6
  106. package/build/Label/__snapshots__/Label.test.js.snap +82 -0
  107. package/build/LayerApp/LayerApp.js +22 -18
  108. package/build/LayerApp/LayerApp.test.js +4 -4
  109. package/build/LayerApp/__snapshots__/LayerApp.test.js.snap +37 -0
  110. package/build/Modal/Modal.js +55 -37
  111. package/build/Modal/Modal.test.js +15 -12
  112. package/build/Modal/__snapshots__/Modal.test.js.snap +208 -0
  113. package/build/Modal/index.js +19 -13
  114. package/build/Modal/styles.js +43 -31
  115. package/build/NavAside/NavAside.js +24 -19
  116. package/build/NavAside/NavAside.test.js +15 -13
  117. package/build/NavAside/__snapshots__/NavAside.test.js.snap +116 -0
  118. package/build/NavAside/index.js +16 -12
  119. package/build/NavIcon/NavIcon.js +41 -20
  120. package/build/NavIcon/styles.js +6 -16
  121. package/build/NavItem/NavItem.js +29 -16
  122. package/build/NavTab/NavTab.js +38 -29
  123. package/build/NavTop/NavTop.js +20 -16
  124. package/build/OrderBy/OrderBy.js +23 -19
  125. package/build/OrderBy/OrderBy.test.js +6 -6
  126. package/build/OrderBy/__snapshots__/OrderBy.test.js.snap +54 -0
  127. package/build/Pager/Break/Break.js +1 -1
  128. package/build/Pager/Break/Break.test.js +4 -4
  129. package/build/Pager/Break/__snapshots__/Break.test.js.snap +13 -0
  130. package/build/Pager/Page/Page.js +1 -1
  131. package/build/Pager/Page/Page.test.js +5 -5
  132. package/build/Pager/Page/__snapshots__/Page.test.js.snap +27 -0
  133. package/build/Pager/Pager.js +21 -17
  134. package/build/Pager/Pager.test.js +12 -12
  135. package/build/Pager/__snapshots__/Pager.test.js.snap +50 -0
  136. package/build/Pager/styles.js +1 -1
  137. package/build/Pill/Choice/Choice.js +23 -18
  138. package/build/Pill/Choice/styles.js +8 -3
  139. package/build/Pill/Group/Group.js +7 -4
  140. package/build/Pill/Group/styles.js +7 -4
  141. package/build/Pill/Pill.js +36 -23
  142. package/build/Pill/Pill.test.js +12 -12
  143. package/build/Pill/Stack/Stack.js +10 -7
  144. package/build/Pill/Stack/styles.js +4 -1
  145. package/build/Pill/__snapshots__/Pill.test.js.snap +62 -0
  146. package/build/Pill/styles.js +6 -2
  147. package/build/Placeholder/Placeholder.js +2 -2
  148. package/build/Placeholder/Placeholder.test.js +3 -3
  149. package/build/Placeholder/__snapshots__/Placeholder.test.js.snap +130 -0
  150. package/build/Placeholder/styles.js +23 -16
  151. package/build/Provider/Provider.js +89 -0
  152. package/build/Provider/index.js +13 -0
  153. package/build/Provider/useAtomic.js +17 -0
  154. package/build/{hooks → Provider}/usePrevious.js +1 -1
  155. package/build/Radio/Radio.js +29 -15
  156. package/build/Radio/Radio.test.js +6 -6
  157. package/build/Radio/__snapshots__/Radio.test.js.snap +83 -0
  158. package/build/RangeCounter/RangeCounter.js +17 -13
  159. package/build/RangeCounter/RangeCounter.test.js +3 -3
  160. package/build/RangeCounter/__snapshots__/RangeCounter.test.js.snap +20 -0
  161. package/build/RangeCounter/styles.js +1 -1
  162. package/build/Row/Row.js +1 -1
  163. package/build/Row/Row.test.js +2 -2
  164. package/build/Row/__snapshots__/Row.test.js.snap +22 -0
  165. package/build/SightLogo/SightLogo.js +2 -2
  166. package/build/SightLogo/SightLogo.test.js +2 -2
  167. package/build/SightLogo/__snapshots__/SightLogo.test.js.snap +24 -0
  168. package/build/SlideDown/SlideDown.js +41 -27
  169. package/build/SlideDown/SlideDown.test.js +22 -16
  170. package/build/SlideDown/__snapshots__/SlideDown.test.js.snap +42 -0
  171. package/build/SlideToggle/SlideToggle.js +31 -17
  172. package/build/SlideToggle/SlideToggle.test.js +7 -7
  173. package/build/SlideToggle/__snapshots__/SlideToggle.test.js.snap +62 -0
  174. package/build/SubHeader/SubHeader.js +20 -16
  175. package/build/SubHeader/SubHeader.test.js +7 -7
  176. package/build/SubHeader/__snapshots__/SubHeader.test.js.snap +50 -0
  177. package/build/SwitchGroup/SwitchGroup.js +17 -13
  178. package/build/SwitchGroup/SwitchGroup.test.js +6 -6
  179. package/build/SwitchGroup/__snapshots__/SwitchGroup.test.js.snap +52 -0
  180. package/build/SwitchGroup/styles.js +1 -1
  181. package/build/Tag/Tag.js +27 -10
  182. package/build/Tag/Tag.test.js +8 -8
  183. package/build/Tag/__snapshots__/Tag.test.js.snap +137 -0
  184. package/build/Tag/styles.js +72 -27
  185. package/build/Text/Text.js +454 -122
  186. package/build/Text/Text.test.js +13 -13
  187. package/build/Text/__snapshots__/Text.test.js.snap +216 -0
  188. package/build/Text/styles.js +171 -78
  189. package/build/TextField/TextField.js +455 -302
  190. package/build/TextField/TextField.test.js +138 -146
  191. package/build/TextField/__snapshots__/TextField.test.js.snap +258 -0
  192. package/build/TextField/index.js +6 -1
  193. package/build/TextField/styles.js +99 -33
  194. package/build/Tip/Tip.js +91 -27
  195. package/build/Tip/Tip.test.js +8 -8
  196. package/build/Tip/__snapshots__/Tip.test.js.snap +49 -0
  197. package/build/Tip/styles.js +32 -12
  198. package/build/Title/Title.js +16 -12
  199. package/build/Title/Title.test.js +3 -3
  200. package/build/Title/__snapshots__/Title.test.js.snap +31 -0
  201. package/build/Toaster/Toast/Toast.js +11 -11
  202. package/build/Toaster/Toaster.js +27 -23
  203. package/build/Toaster/Toaster.test.js +6 -6
  204. package/build/Toaster/__snapshots__/Toaster.test.js.snap +5 -0
  205. package/build/Tooltip/Tooltip.js +210 -0
  206. package/build/Tooltip/Tooltip.test.js +35 -0
  207. package/build/Tooltip/__snapshots__/Tooltip.test.js.snap +33 -0
  208. package/build/Tooltip/hooks.js +132 -0
  209. package/build/Tooltip/index.js +18 -0
  210. package/build/Tooltip/styles.js +44 -0
  211. package/build/TourTip/TourTip.js +15 -11
  212. package/build/TourTip/TourTip.test.js +2 -2
  213. package/build/TourTip/__snapshots__/TourTip.test.js.snap +74 -0
  214. package/build/Visible/Visible.js +16 -12
  215. package/build/Visible/Visible.test.js +4 -4
  216. package/build/Visible/__snapshots__/Visible.test.js.snap +3 -0
  217. package/build/WindowSize/WindowSize.js +17 -11
  218. package/build/WindowSize/WindowSize.test.js +4 -4
  219. package/build/WindowSize/__snapshots__/WindowSize.test.js.snap +3 -0
  220. package/build/index.js +82 -8
  221. package/build/plugin/babel.js +61 -0
  222. package/build/subatomic/colors.js +8 -3
  223. package/build/subatomic/fonts.js +1 -1
  224. package/build/subatomic/icons/attachment.js +23 -0
  225. package/build/subatomic/icons/attachmentSolid.js +23 -0
  226. package/build/subatomic/icons/avatarSmile.js +23 -0
  227. package/build/subatomic/icons/book.js +23 -0
  228. package/build/subatomic/icons/cash.js +23 -0
  229. package/build/subatomic/icons/copy.js +23 -0
  230. package/build/subatomic/icons/copySolid.js +23 -0
  231. package/build/subatomic/icons/crossSolid.js +23 -0
  232. package/build/subatomic/icons/dislike.js +1 -1
  233. package/build/subatomic/icons/dislikeSolid.js +23 -0
  234. package/build/subatomic/icons/energy.js +23 -0
  235. package/build/subatomic/icons/energySolid.js +23 -0
  236. package/build/subatomic/icons/eye.js +1 -1
  237. package/build/subatomic/icons/eyeClosed.js +1 -1
  238. package/build/subatomic/icons/eyeClosedSolid.js +23 -0
  239. package/build/subatomic/icons/eyeSolid.js +23 -0
  240. package/build/subatomic/icons/hourGlass.js +23 -0
  241. package/build/subatomic/icons/like.js +1 -1
  242. package/build/subatomic/icons/likeSolid.js +23 -0
  243. package/build/subatomic/icons/location.js +23 -0
  244. package/build/subatomic/icons/locationSolid.js +23 -0
  245. package/build/subatomic/icons/matchJob.js +23 -0
  246. package/build/subatomic/icons/messages.js +1 -1
  247. package/build/subatomic/icons/messagesSolid.js +1 -1
  248. package/build/subatomic/icons/moreOptionsHorizontal.js +23 -0
  249. package/build/subatomic/icons/noMessages.js +23 -0
  250. package/build/subatomic/icons/noMessagesSolid.js +23 -0
  251. package/build/subatomic/icons/occDart.js +25 -8
  252. package/build/subatomic/icons/occHorizontal.js +25 -8
  253. package/build/subatomic/icons/occLogo.js +65 -0
  254. package/build/subatomic/icons/occVertical.js +25 -8
  255. package/build/subatomic/icons/profile.js +23 -0
  256. package/build/subatomic/icons/profileSolid.js +23 -0
  257. package/build/subatomic/icons/profileView.js +23 -0
  258. package/build/subatomic/icons/refresh.js +23 -0
  259. package/build/subatomic/icons/refreshSolid.js +23 -0
  260. package/build/subatomic/icons/sendMessage.js +23 -0
  261. package/build/subatomic/icons/sendMessageSolid.js +23 -0
  262. package/build/subatomic/icons/starsSolid.js +23 -0
  263. package/build/subatomic/icons/suitcase.js +23 -0
  264. package/build/subatomic/icons/suitcaseSolid.js +23 -0
  265. package/build/subatomic/icons/tag.js +1 -1
  266. package/build/subatomic/icons/tagSolid.js +23 -0
  267. package/build/subatomic/icons/trash.js +1 -1
  268. package/build/subatomic/icons/trashSolid.js +1 -1
  269. package/build/subatomic/icons/warning.js +23 -0
  270. package/build/subatomic/icons/warningSolid.js +23 -0
  271. package/build/subatomic/icons/webSite.js +23 -0
  272. package/build/subatomic/icons/webSiteSolid.js +23 -0
  273. package/build/subatomic/icons.js +230 -112
  274. package/build/subatomic/mappedIcons.js +171 -0
  275. package/build/tokens/borderRadius.json +8 -0
  276. package/build/tokens/colors.json +567 -0
  277. package/build/tokens/fonts.json +231 -0
  278. package/build/tokens/index.js +47 -0
  279. package/build/tokens/shadows.json +13 -0
  280. package/build/tokens/spacing.json +16 -0
  281. package/commitlint.config.js +6 -0
  282. package/package.json +124 -113
  283. package/playroom/FrameComponent.js +31 -0
  284. package/playroom/styles.js +14 -0
  285. package/playroom.config.js +7 -7
  286. package/build/Grid/Grid.test.js +0 -22
  287. package/build/Grid/Row/Rowdsd.js +0 -39
  288. package/build/hooks/useEventListener.js +0 -23
  289. package/yarn-error.log +0 -10737
@@ -22,7 +22,7 @@ var classes = Object.keys(_styles["default"]).reduce(reduceClasses, {});
22
22
  describe("Modal", function () {
23
23
  it('matches the snapshot', function () {
24
24
  var onClose = jest.fn();
25
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Modal["default"], {
25
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
26
26
  classes: classes,
27
27
  onClose: onClose
28
28
  }));
@@ -30,7 +30,7 @@ describe("Modal", function () {
30
30
  });
31
31
  it('calls the onClose function when clicking the overlay', function () {
32
32
  var onClose = jest.fn();
33
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
33
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
34
34
  classes: classes,
35
35
  onClose: onClose
36
36
  }));
@@ -39,11 +39,14 @@ describe("Modal", function () {
39
39
  });
40
40
  it('calls the onClose function when clicking the close icon', function () {
41
41
  var onClose = jest.fn();
42
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
42
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
43
43
  classes: classes,
44
- onClose: onClose
44
+ onClose: onClose,
45
+ testId: "modal-test"
45
46
  }));
46
- wrapper.find('.closeIcon button').simulate('click');
47
+ wrapper.find({
48
+ "data-testid": 'modal-test__close-icon'
49
+ }).simulate('click');
47
50
  expect(onClose.mock.calls.length).toBe(1);
48
51
  });
49
52
  it('calls the onClose function when pressing the Esc key', function () {
@@ -52,7 +55,7 @@ describe("Modal", function () {
52
55
  window.addEventListener = jest.fn(function (event, cb) {
53
56
  map[event] = cb;
54
57
  });
55
- (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
58
+ (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
56
59
  classes: classes,
57
60
  onClose: onClose
58
61
  }));
@@ -63,7 +66,7 @@ describe("Modal", function () {
63
66
  });
64
67
  it('toggles between show and hide', function () {
65
68
  var onClose = jest.fn();
66
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
69
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
67
70
  classes: classes,
68
71
  onClose: onClose,
69
72
  show: true
@@ -76,7 +79,7 @@ describe("Modal", function () {
76
79
  });
77
80
  it('renders the title', function () {
78
81
  var onClose = jest.fn();
79
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
82
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
80
83
  classes: classes,
81
84
  onClose: onClose,
82
85
  title: "Modal title"
@@ -85,7 +88,7 @@ describe("Modal", function () {
85
88
  });
86
89
  it('renders the content', function () {
87
90
  var onClose = jest.fn();
88
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
91
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
89
92
  classes: classes,
90
93
  onClose: onClose
91
94
  }, "Content"));
@@ -93,7 +96,7 @@ describe("Modal", function () {
93
96
  });
94
97
  it('renders functional main and secondary buttons', function () {
95
98
  var onClose = jest.fn();
96
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Modal["default"], {
99
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
97
100
  classes: classes,
98
101
  onClose: onClose,
99
102
  mainBtn: {
@@ -115,7 +118,7 @@ describe("Modal", function () {
115
118
  describe("ModalPortal", function () {
116
119
  it('matches the snapshot', function () {
117
120
  var modalRoot = global.document.createElement('div');
118
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
121
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
119
122
  container: modalRoot
120
123
  }));
121
124
  expect(wrapper).toMatchSnapshot();
@@ -126,7 +129,7 @@ describe("ModalPortal", function () {
126
129
  modalRoot.setAttribute('id', 'modal-root');
127
130
  var body = global.document.querySelector('body');
128
131
  body.appendChild(modalRoot);
129
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_index["default"], {
132
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
130
133
  container: modalRoot,
131
134
  onClose: onClose
132
135
  }));
@@ -0,0 +1,208 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Modal matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`Modal styles matches the snapshot 1`] = `
6
+ Object {
7
+ "@global": Object {
8
+ "body": Object {
9
+ "overflow": "hidden",
10
+ },
11
+ },
12
+ "@keyframes modalFadeDown": Object {
13
+ "from": Object {
14
+ "marginTop": -64,
15
+ "opacity": 0,
16
+ },
17
+ "to": Object {
18
+ "marginTop": 0,
19
+ "opacity": 1,
20
+ },
21
+ },
22
+ "@keyframes modalFadeIn": Object {
23
+ "from": Object {
24
+ "opacity": 0,
25
+ },
26
+ "to": Object {
27
+ "opacity": 1,
28
+ },
29
+ },
30
+ "bottom": Object {
31
+ "marginTop": 8,
32
+ "textAlign": "right",
33
+ },
34
+ "card": Object {
35
+ "@media screen and (max-width:575px)": Object {
36
+ "borderRadius": [Function],
37
+ "minHeight": [Function],
38
+ "padding": [Function],
39
+ },
40
+ "@media screen and (min-width:768px)": Object {
41
+ "padding": 32,
42
+ },
43
+ "cursor": "auto",
44
+ "maxWidth": "100%",
45
+ "padding": 16,
46
+ "transition": "0.3s opacity, 0.3s margin-top",
47
+ },
48
+ "cardBlock": Object {
49
+ "@media screen and (max-width:575px)": Object {
50
+ "height": [Function],
51
+ "margin": [Function],
52
+ },
53
+ "margin": 12,
54
+ },
55
+ "cardHide": Object {
56
+ "marginTop": -64,
57
+ "opacity": 0,
58
+ },
59
+ "cardShow": Object {
60
+ "animation": "0.3s modalFadeDown ease-out",
61
+ },
62
+ "cardWrapper": Object {
63
+ "@media screen and (max-width:575px)": Object {
64
+ "height": [Function],
65
+ },
66
+ "maxHeight": "100%",
67
+ "maxWidth": "100%",
68
+ "position": "relative",
69
+ },
70
+ "closeIcon": Object {
71
+ "alignItems": "center",
72
+ "display": "flex",
73
+ "height": 32,
74
+ },
75
+ "closePosition": Object {
76
+ "@media screen and (min-width:768px)": Object {
77
+ "right": 32,
78
+ "top": 32,
79
+ },
80
+ "position": "absolute",
81
+ "right": 16,
82
+ "top": 16,
83
+ },
84
+ "content": Object {
85
+ "&::-webkit-scrollbar": Object {
86
+ "width": 6,
87
+ },
88
+ "&::-webkit-scrollbar-thumb": Object {
89
+ "background": "#dddddd",
90
+ "borderRadius": 3,
91
+ },
92
+ "@media screen and (min-width:768px)": Object {
93
+ "marginLeft": -32,
94
+ "marginRight": -32,
95
+ "paddingLeft": 32,
96
+ "paddingRight": 32,
97
+ },
98
+ "marginLeft": -16,
99
+ "marginRight": -16,
100
+ "paddingLeft": 16,
101
+ "paddingRight": 16,
102
+ "transition": "0.1s height",
103
+ },
104
+ "imgLeft": Object {
105
+ "@media screen and (min-width:768px)": Object {
106
+ "marginBottom": -32,
107
+ "marginLeft": -32,
108
+ "marginRight": 32,
109
+ "marginTop": -32,
110
+ },
111
+ "backgroundColor": [Function],
112
+ "backgroundImage": [Function],
113
+ "backgroundPosition": [Function],
114
+ "backgroundRepeat": "no-repeat",
115
+ "backgroundSize": [Function],
116
+ "borderRadius": Array [
117
+ 6,
118
+ 0,
119
+ 0,
120
+ 6,
121
+ ],
122
+ "marginBottom": -16,
123
+ "marginLeft": -16,
124
+ "marginRight": 16,
125
+ "marginTop": -16,
126
+ "width": 200,
127
+ },
128
+ "imgTop": Object {
129
+ "@media screen and (min-width:768px)": Object {
130
+ "marginBottom": 32,
131
+ "marginLeft": -32,
132
+ "marginRight": -32,
133
+ "marginTop": -32,
134
+ },
135
+ "backgroundColor": [Function],
136
+ "backgroundImage": [Function],
137
+ "backgroundPosition": [Function],
138
+ "backgroundRepeat": "no-repeat",
139
+ "backgroundSize": [Function],
140
+ "borderRadius": Array [
141
+ 6,
142
+ 6,
143
+ 0,
144
+ 0,
145
+ ],
146
+ "height": [Function],
147
+ "marginBottom": 16,
148
+ "marginLeft": -16,
149
+ "marginRight": -16,
150
+ "marginTop": -16,
151
+ "position": "relative",
152
+ },
153
+ "lg": Object {
154
+ "width": 820,
155
+ },
156
+ "mainBtn": Object {
157
+ "marginLeft": 24,
158
+ "marginTop": 16,
159
+ },
160
+ "md": Object {
161
+ "@media screen and (max-width:767px)": Object {
162
+ "maxWidth": "100%",
163
+ "width": 322,
164
+ },
165
+ "width": 520,
166
+ },
167
+ "noClose": Object {
168
+ "cursor": "default",
169
+ },
170
+ "overlay": Object {
171
+ "alignItems": "center",
172
+ "background": "rgba(0, 0, 5, 0.85)",
173
+ "cursor": "pointer",
174
+ "display": "flex",
175
+ "height": "100%",
176
+ "justifyContent": "center",
177
+ "left": 0,
178
+ "overflow": "auto",
179
+ "position": "fixed",
180
+ "top": 0,
181
+ "transition": "0.3s all",
182
+ "width": "100%",
183
+ "zIndex": 1000,
184
+ },
185
+ "overlayHide": Object {
186
+ "opacity": 0,
187
+ },
188
+ "overlayShow": Object {
189
+ "animation": "0.3s modalFadeIn linear",
190
+ },
191
+ "secBtn": Object {
192
+ "marginTop": 16,
193
+ },
194
+ "sm": Object {
195
+ "maxWidth": "100%",
196
+ "width": 322,
197
+ },
198
+ "title": Object {},
199
+ "top": Object {
200
+ "marginBottom": 16,
201
+ },
202
+ "xl": Object {
203
+ "width": 1024,
204
+ },
205
+ }
206
+ `;
207
+
208
+ exports[`ModalPortal matches the snapshot 1`] = `ShallowWrapper {}`;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -17,8 +19,6 @@ var _styles = _interopRequireDefault(require("./styles"));
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
21
 
20
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
21
-
22
22
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
 
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -27,17 +27,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
29
 
30
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
33
 
32
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
37
 
34
38
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
39
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
41
 
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
+
44
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
39
45
 
40
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
46
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
41
47
 
42
48
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43
49
 
@@ -53,17 +59,17 @@ var _ModalComponent$propT = _Modal["default"].propTypes,
53
59
 
54
60
  Modal.propTypes = _objectSpread({}, propTypes);
55
61
 
56
- var ModalPortal =
57
- /*#__PURE__*/
58
- function (_React$Component) {
62
+ var ModalPortal = /*#__PURE__*/function (_React$Component) {
59
63
  _inherits(ModalPortal, _React$Component);
60
64
 
65
+ var _super = _createSuper(ModalPortal);
66
+
61
67
  function ModalPortal(props) {
62
68
  var _this;
63
69
 
64
70
  _classCallCheck(this, ModalPortal);
65
71
 
66
- _this = _possibleConstructorReturn(this, _getPrototypeOf(ModalPortal).call(this, props));
72
+ _this = _super.call(this, props);
67
73
  _this.state = {
68
74
  mount: false
69
75
  };
@@ -95,12 +101,12 @@ function (_React$Component) {
95
101
  container = _this$props.container,
96
102
  show = _this$props.show;
97
103
 
98
- var ModalComponent = _react["default"].createElement(Modal, _extends({}, this.props, {
104
+ var ModalComponent = /*#__PURE__*/_react["default"].createElement(Modal, _extends({}, this.props, {
99
105
  onTransitionEnd: !show && mount ? this.onTransitionEnd : null
100
106
  }));
101
107
 
102
108
  if (container) {
103
- return mount ? _reactDom["default"].createPortal(ModalComponent, container) : null;
109
+ return mount ? /*#__PURE__*/_reactDom["default"].createPortal(ModalComponent, container) : null;
104
110
  } else {
105
111
  return mount ? ModalComponent : null;
106
112
  }
@@ -65,17 +65,26 @@ var _default = {
65
65
  noClose: {
66
66
  cursor: 'default'
67
67
  },
68
- cardWrapper: {
68
+ cardWrapper: _defineProperty({
69
69
  position: 'relative',
70
- maxWidth: '100vw',
71
- maxHeight: '100vh'
72
- },
70
+ maxWidth: '100%',
71
+ maxHeight: '100%'
72
+ }, "@media screen and (max-width:".concat(_grid["default"].xs - 1, "px)"), {
73
+ height: function height(_ref) {
74
+ var fullSize = _ref.fullSize;
75
+ return fullSize && '100%';
76
+ }
77
+ }),
73
78
  cardBlock: _defineProperty({
74
79
  margin: _spacing["default"].gutter
75
80
  }, "@media screen and (max-width:".concat(_grid["default"].xs - 1, "px)"), {
76
- margin: function margin(_ref) {
77
- var fullSize = _ref.fullSize;
81
+ margin: function margin(_ref2) {
82
+ var fullSize = _ref2.fullSize;
78
83
  return fullSize && 0;
84
+ },
85
+ height: function height(_ref3) {
86
+ var fullSize = _ref3.fullSize;
87
+ return fullSize && '100%';
79
88
  }
80
89
  }),
81
90
  card: (_card = {
@@ -86,16 +95,16 @@ var _default = {
86
95
  }, _defineProperty(_card, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
87
96
  padding: _spacing["default"].medium
88
97
  }), _defineProperty(_card, "@media screen and (max-width:".concat(_grid["default"].xs - 1, "px)"), {
89
- padding: function padding(_ref2) {
90
- var fullSize = _ref2.fullSize;
98
+ padding: function padding(_ref4) {
99
+ var fullSize = _ref4.fullSize;
91
100
  return fullSize && _spacing["default"].base;
92
101
  },
93
- minHeight: function minHeight(_ref3) {
94
- var fullSize = _ref3.fullSize;
95
- return fullSize && '100vh';
102
+ minHeight: function minHeight(_ref5) {
103
+ var fullSize = _ref5.fullSize;
104
+ return fullSize && '100%';
96
105
  },
97
- borderRadius: function borderRadius(_ref4) {
98
- var fullSize = _ref4.fullSize;
106
+ borderRadius: function borderRadius(_ref6) {
107
+ var fullSize = _ref6.fullSize;
99
108
  return fullSize && 0;
100
109
  }
101
110
  }), _card),
@@ -161,20 +170,20 @@ var _default = {
161
170
  },
162
171
  imgLeft: _defineProperty({
163
172
  width: 200,
164
- backgroundImage: function backgroundImage(_ref5) {
165
- var imgLeft = _ref5.imgLeft;
173
+ backgroundImage: function backgroundImage(_ref7) {
174
+ var imgLeft = _ref7.imgLeft;
166
175
  return "url(".concat(imgLeft.img, ")");
167
176
  },
168
- backgroundPosition: function backgroundPosition(_ref6) {
169
- var imgLeft = _ref6.imgLeft;
177
+ backgroundPosition: function backgroundPosition(_ref8) {
178
+ var imgLeft = _ref8.imgLeft;
170
179
  return "center ".concat(imgLeft.position || 'center');
171
180
  },
172
- backgroundSize: function backgroundSize(_ref7) {
173
- var imgLeft = _ref7.imgLeft;
181
+ backgroundSize: function backgroundSize(_ref9) {
182
+ var imgLeft = _ref9.imgLeft;
174
183
  return imgLeft.size === 'contain' ? '100% auto' : 'cover';
175
184
  },
176
- backgroundColor: function backgroundColor(_ref8) {
177
- var imgLeft = _ref8.imgLeft;
185
+ backgroundColor: function backgroundColor(_ref10) {
186
+ var imgLeft = _ref10.imgLeft;
178
187
  return imgLeft.color || null;
179
188
  },
180
189
  backgroundRepeat: 'no-repeat',
@@ -191,21 +200,24 @@ var _default = {
191
200
  }),
192
201
  imgTop: _defineProperty({
193
202
  position: 'relative',
194
- height: 128,
195
- backgroundImage: function backgroundImage(_ref9) {
196
- var imgTop = _ref9.imgTop;
203
+ height: function height(_ref11) {
204
+ var imgTop = _ref11.imgTop;
205
+ return imgTop.height || 128;
206
+ },
207
+ backgroundImage: function backgroundImage(_ref12) {
208
+ var imgTop = _ref12.imgTop;
197
209
  return "url(".concat(imgTop.img, ")");
198
210
  },
199
- backgroundPosition: function backgroundPosition(_ref10) {
200
- var imgTop = _ref10.imgTop;
211
+ backgroundPosition: function backgroundPosition(_ref13) {
212
+ var imgTop = _ref13.imgTop;
201
213
  return "".concat(imgTop.position || 'center', " center");
202
214
  },
203
- backgroundSize: function backgroundSize(_ref11) {
204
- var imgTop = _ref11.imgTop;
205
- return imgTop.size === 'contain' ? 'auto 100%' : 'cover';
215
+ backgroundSize: function backgroundSize(_ref14) {
216
+ var imgTop = _ref14.imgTop;
217
+ return imgTop.size === 'contain' ? 'auto 100%' : imgTop.size || 'cover';
206
218
  },
207
- backgroundColor: function backgroundColor(_ref12) {
208
- var imgTop = _ref12.imgTop;
219
+ backgroundColor: function backgroundColor(_ref15) {
220
+ var imgTop = _ref15.imgTop;
209
221
  return imgTop.color || null;
210
222
  },
211
223
  backgroundRepeat: 'no-repeat',
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -19,35 +21,37 @@ var _colors = _interopRequireDefault(require("../subatomic/colors"));
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
23
 
22
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
23
-
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
 
26
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
29
 
30
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
33
 
32
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
37
 
34
38
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
39
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
41
 
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
43
 
40
- var NavAside =
41
- /*#__PURE__*/
42
- function (_React$Component) {
44
+ var NavAside = /*#__PURE__*/function (_React$Component) {
43
45
  _inherits(NavAside, _React$Component);
44
46
 
47
+ var _super = _createSuper(NavAside);
48
+
45
49
  function NavAside(props) {
46
50
  var _this;
47
51
 
48
52
  _classCallCheck(this, NavAside);
49
53
 
50
- _this = _possibleConstructorReturn(this, _getPrototypeOf(NavAside).call(this, props));
54
+ _this = _super.call(this, props);
51
55
  _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));
52
56
  return _this;
53
57
  }
@@ -88,33 +92,34 @@ function (_React$Component) {
88
92
  width = _this$props.width,
89
93
  onTransitionEnd = _this$props.onTransitionEnd,
90
94
  right = _this$props.right;
91
- return _react["default"].createElement("div", {
95
+ return /*#__PURE__*/_react["default"].createElement("div", {
92
96
  className: "".concat(show ? " ".concat(classes.overlay, " ").concat(classes.overlayShow) : " ".concat(classes.overlay)),
93
97
  onClick: onClose,
94
98
  onTransitionEnd: onTransitionEnd
95
- }, _react["default"].createElement("div", {
99
+ }, /*#__PURE__*/_react["default"].createElement("div", {
96
100
  className: "".concat(show ? right ? "".concat(classes.ShowElement, " ").concat(classes.OpenElementRight) : "".concat(classes.ShowElement, " ").concat(classes.OpenElement) : "".concat(classes.ShowElement)).concat(width && right ? " ".concat(classes.customeWidthRight) : " ".concat(classes.customeWidth)).concat(right ? " ".concat(classes.showRight) : ''),
97
101
  onClick: this.avoidClose
98
- }, _react["default"].createElement(_Card["default"], {
102
+ }, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
99
103
  shadow: 5,
100
104
  className: "".concat(classes.card)
101
- }, _react["default"].createElement(_Flexbox["default"], {
105
+ }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
102
106
  display: "flex",
103
107
  justifyContent: "end",
104
108
  alignItems: "start",
105
109
  className: classes.top
106
- }, top && _react["default"].createElement(_Flexbox["default"], {
110
+ }, top && /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
107
111
  flex: "1",
108
112
  className: classes.topContent
109
- }, top), _react["default"].createElement("div", {
113
+ }, top), /*#__PURE__*/_react["default"].createElement("div", {
110
114
  className: classes.closeIcon
111
- }, _react["default"].createElement(_Icon["default"], {
115
+ }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
112
116
  iconName: "close",
113
117
  width: 24,
114
118
  height: 24,
115
119
  colors: [_colors["default"].grey900],
116
- onClick: onClose
117
- }))), _react["default"].createElement("div", {
120
+ onClick: onClose,
121
+ testId: "navaside__close-icon"
122
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
118
123
  className: classes.content
119
124
  }, children))));
120
125
  }