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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. package/.prettierrc +6 -0
  2. package/.whitesource +12 -0
  3. package/CHANGELOG.md +1283 -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 +123 -62
  27. package/build/Button/Button.test.js +67 -18
  28. package/build/Button/Loading.js +89 -0
  29. package/build/Button/__snapshots__/Button.test.js.snap +334 -0
  30. package/build/Button/index.js +22 -1
  31. package/build/Button/styles.js +176 -160
  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 +65 -21
  96. package/build/Icon/Icon.test.js +47 -56
  97. package/build/Icon/__snapshots__/Icon.test.js.snap +26 -0
  98. package/build/Icon/index.js +22 -1
  99. package/build/Icon/styles.js +2 -5
  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 +10 -10
  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 +22 -18
  116. package/build/NavAside/NavAside.test.js +12 -12
  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 +31 -19
  120. package/build/NavItem/NavItem.js +29 -16
  121. package/build/NavTab/NavTab.js +36 -29
  122. package/build/NavTop/NavTop.js +20 -16
  123. package/build/OrderBy/OrderBy.js +23 -19
  124. package/build/OrderBy/OrderBy.test.js +6 -6
  125. package/build/OrderBy/__snapshots__/OrderBy.test.js.snap +54 -0
  126. package/build/Pager/Break/Break.js +1 -1
  127. package/build/Pager/Break/Break.test.js +4 -4
  128. package/build/Pager/Break/__snapshots__/Break.test.js.snap +13 -0
  129. package/build/Pager/Page/Page.js +1 -1
  130. package/build/Pager/Page/Page.test.js +5 -5
  131. package/build/Pager/Page/__snapshots__/Page.test.js.snap +27 -0
  132. package/build/Pager/Pager.js +21 -17
  133. package/build/Pager/Pager.test.js +12 -12
  134. package/build/Pager/__snapshots__/Pager.test.js.snap +50 -0
  135. package/build/Pager/styles.js +1 -1
  136. package/build/Pill/Choice/Choice.js +23 -18
  137. package/build/Pill/Choice/styles.js +8 -3
  138. package/build/Pill/Group/Group.js +7 -4
  139. package/build/Pill/Group/styles.js +7 -4
  140. package/build/Pill/Pill.js +36 -23
  141. package/build/Pill/Pill.test.js +12 -12
  142. package/build/Pill/Stack/Stack.js +10 -7
  143. package/build/Pill/Stack/styles.js +4 -1
  144. package/build/Pill/__snapshots__/Pill.test.js.snap +62 -0
  145. package/build/Pill/styles.js +6 -2
  146. package/build/Placeholder/Placeholder.js +2 -2
  147. package/build/Placeholder/Placeholder.test.js +3 -3
  148. package/build/Placeholder/__snapshots__/Placeholder.test.js.snap +130 -0
  149. package/build/Placeholder/styles.js +23 -16
  150. package/build/Radio/Radio.js +29 -15
  151. package/build/Radio/Radio.test.js +6 -6
  152. package/build/Radio/__snapshots__/Radio.test.js.snap +83 -0
  153. package/build/RangeCounter/RangeCounter.js +17 -13
  154. package/build/RangeCounter/RangeCounter.test.js +3 -3
  155. package/build/RangeCounter/__snapshots__/RangeCounter.test.js.snap +20 -0
  156. package/build/RangeCounter/styles.js +1 -1
  157. package/build/Row/Row.js +1 -1
  158. package/build/Row/Row.test.js +2 -2
  159. package/build/Row/__snapshots__/Row.test.js.snap +22 -0
  160. package/build/SightLogo/SightLogo.js +2 -2
  161. package/build/SightLogo/SightLogo.test.js +2 -2
  162. package/build/SightLogo/__snapshots__/SightLogo.test.js.snap +24 -0
  163. package/build/SlideDown/SlideDown.js +37 -26
  164. package/build/SlideDown/SlideDown.test.js +9 -9
  165. package/build/SlideDown/__snapshots__/SlideDown.test.js.snap +42 -0
  166. package/build/SlideToggle/SlideToggle.js +31 -17
  167. package/build/SlideToggle/SlideToggle.test.js +7 -7
  168. package/build/SlideToggle/__snapshots__/SlideToggle.test.js.snap +62 -0
  169. package/build/SubHeader/SubHeader.js +20 -16
  170. package/build/SubHeader/SubHeader.test.js +7 -7
  171. package/build/SubHeader/__snapshots__/SubHeader.test.js.snap +50 -0
  172. package/build/SwitchGroup/SwitchGroup.js +17 -13
  173. package/build/SwitchGroup/SwitchGroup.test.js +6 -6
  174. package/build/SwitchGroup/__snapshots__/SwitchGroup.test.js.snap +52 -0
  175. package/build/SwitchGroup/styles.js +1 -1
  176. package/build/Tag/Tag.js +27 -10
  177. package/build/Tag/Tag.test.js +8 -8
  178. package/build/Tag/__snapshots__/Tag.test.js.snap +137 -0
  179. package/build/Tag/styles.js +72 -27
  180. package/build/Text/Text.js +30 -15
  181. package/build/Text/Text.test.js +8 -8
  182. package/build/Text/__snapshots__/Text.test.js.snap +158 -0
  183. package/build/Text/styles.js +32 -23
  184. package/build/TextField/TextField.js +455 -302
  185. package/build/TextField/TextField.test.js +138 -146
  186. package/build/TextField/__snapshots__/TextField.test.js.snap +258 -0
  187. package/build/TextField/index.js +6 -1
  188. package/build/TextField/styles.js +99 -33
  189. package/build/Tip/Tip.js +91 -27
  190. package/build/Tip/Tip.test.js +5 -5
  191. package/build/Tip/__snapshots__/Tip.test.js.snap +49 -0
  192. package/build/Tip/styles.js +32 -12
  193. package/build/Title/Title.js +16 -12
  194. package/build/Title/Title.test.js +3 -3
  195. package/build/Title/__snapshots__/Title.test.js.snap +31 -0
  196. package/build/Toaster/Toast/Toast.js +11 -11
  197. package/build/Toaster/Toaster.js +27 -23
  198. package/build/Toaster/Toaster.test.js +6 -6
  199. package/build/Toaster/__snapshots__/Toaster.test.js.snap +5 -0
  200. package/build/Tooltip/Tooltip.js +210 -0
  201. package/build/Tooltip/Tooltip.test.js +35 -0
  202. package/build/Tooltip/__snapshots__/Tooltip.test.js.snap +33 -0
  203. package/build/Tooltip/hooks.js +132 -0
  204. package/build/Tooltip/index.js +18 -0
  205. package/build/Tooltip/styles.js +44 -0
  206. package/build/TourTip/TourTip.js +15 -11
  207. package/build/TourTip/TourTip.test.js +2 -2
  208. package/build/TourTip/__snapshots__/TourTip.test.js.snap +74 -0
  209. package/build/Visible/Visible.js +16 -12
  210. package/build/Visible/Visible.test.js +4 -4
  211. package/build/Visible/__snapshots__/Visible.test.js.snap +3 -0
  212. package/build/WindowSize/WindowSize.js +17 -11
  213. package/build/WindowSize/WindowSize.test.js +4 -4
  214. package/build/WindowSize/__snapshots__/WindowSize.test.js.snap +3 -0
  215. package/build/index.js +79 -8
  216. package/build/plugin/babel.js +59 -0
  217. package/build/subatomic/colors.js +8 -3
  218. package/build/subatomic/fonts.js +1 -1
  219. package/build/subatomic/icons/attachment.js +23 -0
  220. package/build/subatomic/icons/attachmentSolid.js +23 -0
  221. package/build/subatomic/icons/avatarSmile.js +23 -0
  222. package/build/subatomic/icons/book.js +23 -0
  223. package/build/subatomic/icons/cash.js +23 -0
  224. package/build/subatomic/icons/copy.js +23 -0
  225. package/build/subatomic/icons/copySolid.js +23 -0
  226. package/build/subatomic/icons/crossSolid.js +23 -0
  227. package/build/subatomic/icons/dislike.js +1 -1
  228. package/build/subatomic/icons/dislikeSolid.js +23 -0
  229. package/build/subatomic/icons/energy.js +23 -0
  230. package/build/subatomic/icons/energySolid.js +23 -0
  231. package/build/subatomic/icons/eye.js +1 -1
  232. package/build/subatomic/icons/eyeClosed.js +1 -1
  233. package/build/subatomic/icons/eyeClosedSolid.js +23 -0
  234. package/build/subatomic/icons/eyeSolid.js +23 -0
  235. package/build/subatomic/icons/hourGlass.js +23 -0
  236. package/build/subatomic/icons/like.js +1 -1
  237. package/build/subatomic/icons/likeSolid.js +23 -0
  238. package/build/subatomic/icons/location.js +23 -0
  239. package/build/subatomic/icons/locationSolid.js +23 -0
  240. package/build/subatomic/icons/matchJob.js +23 -0
  241. package/build/subatomic/icons/messages.js +1 -1
  242. package/build/subatomic/icons/messagesSolid.js +1 -1
  243. package/build/subatomic/icons/moreOptionsHorizontal.js +23 -0
  244. package/build/subatomic/icons/noMessages.js +23 -0
  245. package/build/subatomic/icons/noMessagesSolid.js +23 -0
  246. package/build/subatomic/icons/occDart.js +23 -8
  247. package/build/subatomic/icons/occHorizontal.js +23 -8
  248. package/build/subatomic/icons/occLogo.js +63 -0
  249. package/build/subatomic/icons/occVertical.js +23 -8
  250. package/build/subatomic/icons/profile.js +23 -0
  251. package/build/subatomic/icons/profileSolid.js +23 -0
  252. package/build/subatomic/icons/profileView.js +23 -0
  253. package/build/subatomic/icons/refresh.js +23 -0
  254. package/build/subatomic/icons/refreshSolid.js +23 -0
  255. package/build/subatomic/icons/sendMessage.js +23 -0
  256. package/build/subatomic/icons/sendMessageSolid.js +23 -0
  257. package/build/subatomic/icons/starsSolid.js +23 -0
  258. package/build/subatomic/icons/suitcase.js +23 -0
  259. package/build/subatomic/icons/suitcaseSolid.js +23 -0
  260. package/build/subatomic/icons/tag.js +1 -1
  261. package/build/subatomic/icons/tagSolid.js +23 -0
  262. package/build/subatomic/icons/trash.js +1 -1
  263. package/build/subatomic/icons/trashSolid.js +1 -1
  264. package/build/subatomic/icons/warning.js +23 -0
  265. package/build/subatomic/icons/warningSolid.js +23 -0
  266. package/build/subatomic/icons/webSite.js +23 -0
  267. package/build/subatomic/icons/webSiteSolid.js +23 -0
  268. package/build/subatomic/icons.js +230 -112
  269. package/build/tokens/borderRadius.json +8 -0
  270. package/build/tokens/colors.json +567 -0
  271. package/build/tokens/fonts.json +231 -0
  272. package/build/tokens/index.js +47 -0
  273. package/build/tokens/shadows.json +13 -0
  274. package/build/tokens/spacing.json +16 -0
  275. package/commitlint.config.js +6 -0
  276. package/package.json +124 -113
  277. package/playroom/FrameComponent.js +31 -0
  278. package/playroom/styles.js +14 -0
  279. package/playroom.config.js +7 -7
  280. package/build/Grid/Grid.test.js +0 -22
  281. package/build/Grid/Row/Rowdsd.js +0 -39
  282. package/build/hooks/useEventListener.js +0 -23
  283. package/build/hooks/usePrevious.js +0 -19
  284. package/yarn-error.log +0 -10737
@@ -0,0 +1,116 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ModalPortal matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`NavAside matches the snapshot 1`] = `ShallowWrapper {}`;
6
+
7
+ exports[`NavAside styles matches the snapshot 1`] = `
8
+ Object {
9
+ "@global": Object {
10
+ "body": Object {
11
+ "overflow": "hidden",
12
+ },
13
+ },
14
+ "@keyframes asideShow": Object {
15
+ "from": Object {
16
+ "left": [Function],
17
+ },
18
+ "to": Object {
19
+ "left": "0px",
20
+ },
21
+ },
22
+ "@keyframes asideShowRight": Object {
23
+ "from": Object {
24
+ "right": [Function],
25
+ },
26
+ "to": Object {
27
+ "right": "0px",
28
+ },
29
+ },
30
+ "@keyframes overlayFadeIn": Object {
31
+ "from": Object {
32
+ "opacity": 0,
33
+ },
34
+ "to": Object {
35
+ "opacity": 1,
36
+ },
37
+ },
38
+ "OpenElement": Object {
39
+ "animation": "0.3s asideShow ease-out",
40
+ "left": "0px !important",
41
+ },
42
+ "OpenElementRight": Object {
43
+ "animation": "0.3s asideShowRight ease-out",
44
+ "right": "0px !important",
45
+ },
46
+ "ShowElement": Object {
47
+ "backgroundColor": "#ffffff",
48
+ "height": "100%",
49
+ "left": "-320px",
50
+ "maxWidth": "calc(100% - 32px)",
51
+ "opacity": "1 !important",
52
+ "overflow": "hidden",
53
+ "position": "fixed",
54
+ "top": "0",
55
+ "transition": "0.4s all",
56
+ "width": "320px",
57
+ },
58
+ "card": Object {
59
+ "cursor": "auto",
60
+ "height": "100%",
61
+ "overflow": "auto",
62
+ "padding": 0,
63
+ },
64
+ "closeIcon": Object {
65
+ "alignItems": "center",
66
+ "display": "flex",
67
+ "height": 32,
68
+ },
69
+ "content": Object {
70
+ "@media screen and (min-width:768px)": Object {
71
+ "padding": 32,
72
+ },
73
+ "backgroundColor": "#ffffff",
74
+ "padding": 16,
75
+ },
76
+ "customeWidth": Object {
77
+ "left": [Function],
78
+ "width": [Function],
79
+ },
80
+ "customeWidthRight": Object {
81
+ "right": [Function],
82
+ "width": [Function],
83
+ },
84
+ "overlay": Object {
85
+ "background": "rgba(0, 0, 5, 0.85)",
86
+ "cursor": "pointer",
87
+ "height": "100%",
88
+ "left": 0,
89
+ "opacity": 0,
90
+ "position": "fixed",
91
+ "top": 0,
92
+ "transition": "0.3s opacity",
93
+ "transitionDelay": "0.2s",
94
+ "width": "100%",
95
+ "zIndex": 1000,
96
+ },
97
+ "overlayShow": Object {
98
+ "animation": "0.3s overlayFadeIn linear",
99
+ "opacity": 1,
100
+ },
101
+ "showRight": Object {
102
+ "left": "auto",
103
+ "right": "-320px",
104
+ },
105
+ "top": Object {
106
+ "@media screen and (min-width:768px)": Object {
107
+ "padding": 32,
108
+ },
109
+ "backgroundColor": "#f5f5f8",
110
+ "padding": 16,
111
+ },
112
+ "topContent": Object {
113
+ "minWidth": 0,
114
+ },
115
+ }
116
+ `;
@@ -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,29 +27,33 @@ 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); }
39
43
 
40
44
  var NavAside = (0, _reactJss["default"])(_styles["default"])(_NavAside["default"]);
41
45
 
42
- var NavAsidePortal =
43
- /*#__PURE__*/
44
- function (_React$Component) {
46
+ var NavAsidePortal = /*#__PURE__*/function (_React$Component) {
45
47
  _inherits(NavAsidePortal, _React$Component);
46
48
 
49
+ var _super = _createSuper(NavAsidePortal);
50
+
47
51
  function NavAsidePortal(props) {
48
52
  var _this;
49
53
 
50
54
  _classCallCheck(this, NavAsidePortal);
51
55
 
52
- _this = _possibleConstructorReturn(this, _getPrototypeOf(NavAsidePortal).call(this, props));
56
+ _this = _super.call(this, props);
53
57
  _this.state = {
54
58
  mount: false
55
59
  };
@@ -81,12 +85,12 @@ function (_React$Component) {
81
85
  container = _this$props.container,
82
86
  show = _this$props.show;
83
87
 
84
- var NavAsideComponent = _react["default"].createElement(NavAside, _extends({}, this.props, {
88
+ var NavAsideComponent = /*#__PURE__*/_react["default"].createElement(NavAside, _extends({}, this.props, {
85
89
  onTransitionEnd: !show && mount ? this.onTransitionEnd : null
86
90
  }));
87
91
 
88
92
  if (container) {
89
- return mount ? _reactDom["default"].createPortal(NavAsideComponent, container) : null;
93
+ return mount ? /*#__PURE__*/_reactDom["default"].createPortal(NavAsideComponent, container) : null;
90
94
  } else {
91
95
  return mount ? NavAsideComponent : null;
92
96
  }
@@ -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
  });
@@ -15,33 +17,35 @@ var _Flexbox = _interopRequireDefault(require("../Flexbox"));
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
19
 
18
- 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); }
19
-
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
21
 
22
22
  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); } }
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
25
 
26
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
26
+ 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); }
27
27
 
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ 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); }; }
31
31
 
32
- 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); }
32
+ 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
33
 
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
35
 
36
- var NavIcon =
37
- /*#__PURE__*/
38
- function (_React$Component) {
36
+ 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
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+
40
+ var NavIcon = /*#__PURE__*/function (_React$Component) {
39
41
  _inherits(NavIcon, _React$Component);
40
42
 
43
+ var _super = _createSuper(NavIcon);
44
+
41
45
  function NavIcon() {
42
46
  _classCallCheck(this, NavIcon);
43
47
 
44
- return _possibleConstructorReturn(this, _getPrototypeOf(NavIcon).apply(this, arguments));
48
+ return _super.apply(this, arguments);
45
49
  }
46
50
 
47
51
  _createClass(NavIcon, [{
@@ -53,21 +57,25 @@ function (_React$Component) {
53
57
  label = _this$props.label,
54
58
  onClick = _this$props.onClick,
55
59
  direction = _this$props.direction,
56
- className = _this$props.className;
57
- return _react["default"].createElement("div", {
60
+ className = _this$props.className,
61
+ testId = _this$props.testId,
62
+ id = _this$props.id;
63
+ return /*#__PURE__*/_react["default"].createElement("div", {
58
64
  className: "".concat(classes.cont).concat(selected ? " ".concat(classes.selected) : '').concat(className ? " ".concat(className) : ''),
59
- onClick: onClick
60
- }, _react["default"].createElement(_Flexbox["default"], {
65
+ onClick: onClick,
66
+ "data-testid": testId,
67
+ id: id
68
+ }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
61
69
  display: "flex",
62
70
  direction: direction,
63
71
  justifyContent: "center",
64
72
  alignItems: "center",
65
73
  className: classes.flex
66
- }, _react["default"].createElement("div", {
74
+ }, /*#__PURE__*/_react["default"].createElement("div", {
67
75
  className: classes.icon
68
- }), label && _react["default"].createElement(_Text["default"], {
76
+ }), label && /*#__PURE__*/_react["default"].createElement(_Text["default"], {
69
77
  micro: true
70
- }, _react["default"].createElement("span", {
78
+ }, /*#__PURE__*/_react["default"].createElement("span", {
71
79
  className: classes.text
72
80
  }, label))));
73
81
  }
@@ -85,7 +93,11 @@ NavIcon.propTypes = {
85
93
  width: _propTypes["default"].number,
86
94
  showBar: _propTypes["default"].bool,
87
95
  direction: _propTypes["default"].oneOf(['col', 'row']),
88
- className: _propTypes["default"].string
96
+ className: _propTypes["default"].string,
97
+
98
+ /** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
99
+ testId: _propTypes["default"].string,
100
+ id: _propTypes["default"].string
89
101
  };
90
102
  var _default = NavIcon;
91
103
  exports["default"] = _default;
@@ -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
  });
@@ -13,8 +15,6 @@ var _Text = _interopRequireDefault(require("../Text"));
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
- 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); }
17
-
18
18
  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); }
19
19
 
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -23,26 +23,30 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
25
 
26
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
26
+ 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); }
27
27
 
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ 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); }; }
31
31
 
32
- 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); }
32
+ 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
33
 
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
+
36
+ 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
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
39
 
36
40
  /** This component is used inside the NavTab component. You can just pass a link and a text, wrap it or send a custom link component. */
37
- var NavItem =
38
- /*#__PURE__*/
39
- function (_React$Component) {
41
+ var NavItem = /*#__PURE__*/function (_React$Component) {
40
42
  _inherits(NavItem, _React$Component);
41
43
 
44
+ var _super = _createSuper(NavItem);
45
+
42
46
  function NavItem() {
43
47
  _classCallCheck(this, NavItem);
44
48
 
45
- return _possibleConstructorReturn(this, _getPrototypeOf(NavItem).apply(this, arguments));
49
+ return _super.apply(this, arguments);
46
50
  }
47
51
 
48
52
  _createClass(NavItem, [{
@@ -60,19 +64,24 @@ function (_React$Component) {
60
64
  notification = _this$props.notification,
61
65
  white = _this$props.white,
62
66
  small = _this$props.small,
63
- className = _this$props.className;
67
+ className = _this$props.className,
68
+ testId = _this$props.testId,
69
+ id = _this$props.id;
64
70
  var AnchorTag = customComponent ? customComponent : 'a';
65
- return _react["default"].createElement(AnchorTag, _extends({
71
+ return /*#__PURE__*/_react["default"].createElement(AnchorTag, _extends({
66
72
  className: "".concat(classes.link).concat(className ? " ".concat(className) : ''),
67
73
  href: !selected ? link : null,
68
74
  onClick: !selected ? onClick : null,
69
75
  target: target
70
- }, customComponent && customProps), _react["default"].createElement(_Text["default"], {
76
+ }, customComponent && customProps, {
77
+ "data-testid": testId,
78
+ id: id
79
+ }), /*#__PURE__*/_react["default"].createElement(_Text["default"], {
71
80
  tag: "span",
72
81
  white: white,
73
82
  small: small,
74
83
  className: "".concat(classes.text).concat(selected ? " ".concat(classes.selected) : '')
75
- }, children), notification && _react["default"].createElement("span", {
84
+ }, children), notification && /*#__PURE__*/_react["default"].createElement("span", {
76
85
  className: classes.notification
77
86
  }));
78
87
  }
@@ -111,7 +120,11 @@ NavItem.propTypes = {
111
120
 
112
121
  /** Custom properties to apply directly to the custom component. */
113
122
  customProps: _propTypes["default"].object,
114
- className: _propTypes["default"].string
123
+ className: _propTypes["default"].string,
124
+
125
+ /** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
126
+ testId: _propTypes["default"].string,
127
+ id: _propTypes["default"].string
115
128
  };
116
129
  var _default = NavItem;
117
130
  exports["default"] = _default;
@@ -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
  });
@@ -33,8 +35,6 @@ var _grid = _interopRequireDefault(require("../subatomic/grid"));
33
35
 
34
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
37
 
36
- 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); }
37
-
38
38
  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); }
39
39
 
40
40
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -43,27 +43,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
43
 
44
44
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
45
45
 
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
46
+ 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); }
47
+
48
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
47
49
 
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ 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); }; }
51
+
52
+ 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); }
49
53
 
50
54
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
51
55
 
52
- 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); }
56
+ 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; } }
53
57
 
54
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
58
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
55
59
 
56
- var NavTab =
57
- /*#__PURE__*/
58
- function (_React$Component) {
60
+ var NavTab = /*#__PURE__*/function (_React$Component) {
59
61
  _inherits(NavTab, _React$Component);
60
62
 
63
+ var _super = _createSuper(NavTab);
64
+
61
65
  function NavTab(props) {
62
66
  var _this;
63
67
 
64
68
  _classCallCheck(this, NavTab);
65
69
 
66
- _this = _possibleConstructorReturn(this, _getPrototypeOf(NavTab).call(this, props));
70
+ _this = _super.call(this, props);
67
71
  _this.state = {
68
72
  show: true,
69
73
  currentScroll: 0
@@ -116,7 +120,7 @@ function (_React$Component) {
116
120
  var _this$props2 = this.props,
117
121
  classes = _this$props2.classes,
118
122
  blue = _this$props2.blue;
119
- return _react["default"].createElement(_NavItem["default"], _extends({
123
+ return /*#__PURE__*/_react["default"].createElement(_NavItem["default"], _extends({
120
124
  white: blue
121
125
  }, item, {
122
126
  className: classes.navItem
@@ -128,12 +132,12 @@ function (_React$Component) {
128
132
  var _this$props3 = this.props,
129
133
  classes = _this$props3.classes,
130
134
  blue = _this$props3.blue;
131
- return _react["default"].createElement(_NavItem["default"], _extends({
135
+ return /*#__PURE__*/_react["default"].createElement(_NavItem["default"], _extends({
132
136
  white: blue
133
137
  }, item, {
134
138
  selected: false,
135
139
  className: classes.navItem
136
- }), item.text, " ", _react["default"].createElement(_Icon["default"], {
140
+ }), item.text, " ", /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
137
141
  iconName: "arrowDown",
138
142
  className: "".concat(classes.arrow).concat(item.selected ? " ".concat(classes.arrowUp) : ''),
139
143
  colors: blue ? [_colors["default"].white] : [_colors["default"].grey900]
@@ -143,7 +147,7 @@ function (_React$Component) {
143
147
  key: "renderButton",
144
148
  value: function renderButton(item) {
145
149
  var classes = this.props.classes;
146
- return _react["default"].createElement(_Button["default"], _extends({
150
+ return /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
147
151
  className: classes.button
148
152
  }, item), item.text);
149
153
  }
@@ -153,10 +157,10 @@ function (_React$Component) {
153
157
  var _this$props4 = this.props,
154
158
  classes = _this$props4.classes,
155
159
  blue = _this$props4.blue;
156
- return _react["default"].createElement("div", {
160
+ return /*#__PURE__*/_react["default"].createElement("div", {
157
161
  className: classes.iconWrap,
158
162
  key: item.key
159
- }, _react["default"].createElement(_NavIcon["default"], _extends({
163
+ }, /*#__PURE__*/_react["default"].createElement(_NavIcon["default"], _extends({
160
164
  className: classes.icon,
161
165
  white: blue
162
166
  }, item)));
@@ -165,7 +169,8 @@ function (_React$Component) {
165
169
  key: "renderLogo",
166
170
  value: function renderLogo(item) {
167
171
  var classes = this.props.classes;
168
- return _react["default"].createElement("div", {
172
+ return /*#__PURE__*/_react["default"].createElement("div", {
173
+ "data-testid": item.testId,
169
174
  className: classes.logo,
170
175
  key: item.key
171
176
  }, item.logo);
@@ -173,7 +178,8 @@ function (_React$Component) {
173
178
  }, {
174
179
  key: "renderCustom",
175
180
  value: function renderCustom(item) {
176
- return _react["default"].createElement("div", {
181
+ return /*#__PURE__*/_react["default"].createElement("div", {
182
+ "data-testid": item.testId,
177
183
  key: item.key
178
184
  }, item.custom);
179
185
  }
@@ -199,32 +205,32 @@ function (_React$Component) {
199
205
  winWidth = _this$props5.winWidth,
200
206
  zIndex = _this$props5.zIndex;
201
207
  var isFluid = winWidth < _grid["default"].xl;
202
- return _react["default"].createElement("div", {
208
+ return /*#__PURE__*/_react["default"].createElement("div", {
203
209
  className: "".concat(classes.container).concat(fixed ? " ".concat(classes.fixed, " ").concat(show ? classes.show : classes.hide).concat(currentScroll > 0 ? " ".concat(classes.isScrolled) : '').concat(bottom ? " ".concat(classes.bottom) : '') : '').concat(className ? " ".concat(className) : ''),
204
210
  style: zIndex ? {
205
211
  zIndex: zIndex
206
212
  } : null
207
- }, top && _react["default"].createElement(_NavTop["default"], {
213
+ }, top && /*#__PURE__*/_react["default"].createElement(_NavTop["default"], {
208
214
  blue: blue,
209
215
  top: top,
210
216
  isFluid: isFluid
211
- }), _react["default"].createElement("div", {
217
+ }), /*#__PURE__*/_react["default"].createElement("div", {
212
218
  className: "".concat(classes.nav, " ").concat(blue ? classes.blue : classes.white)
213
- }, _react["default"].createElement(_Grid["default"], {
219
+ }, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
214
220
  className: classes.grid,
215
221
  fluid: isFluid
216
- }, _react["default"].createElement(_Flexbox["default"], {
222
+ }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
217
223
  display: "flex",
218
224
  justifyContent: "between",
219
225
  alignItems: "center",
220
226
  className: classes.tab
221
- }, left && _react["default"].createElement(_Flexbox["default"], {
227
+ }, left && /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
222
228
  display: "flex",
223
229
  className: classes.left,
224
230
  alignItems: "center"
225
231
  }, left.map(function (item) {
226
232
  return _this2.renderItem(item);
227
- })), flexCenter ? _react["default"].createElement(_Flexbox["default"], {
233
+ })), flexCenter ? /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
228
234
  display: "flex",
229
235
  flex: "1",
230
236
  className: classes.flexCenter,
@@ -232,15 +238,15 @@ function (_React$Component) {
232
238
  justifyContent: "between"
233
239
  }, flexCenter.map(function (item) {
234
240
  return _this2.renderItem(item);
235
- })) : _react["default"].createElement(_Flexbox["default"], {
241
+ })) : /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
236
242
  flex: "1"
237
- }), right && _react["default"].createElement(_Flexbox["default"], {
243
+ }), right && /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
238
244
  display: "flex",
239
245
  className: classes.right,
240
246
  alignItems: "center"
241
247
  }, right.map(function (item) {
242
248
  return _this2.renderItem(item);
243
- })), center && _react["default"].createElement(_Flexbox["default"], {
249
+ })), center && /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
244
250
  display: "flex",
245
251
  className: classes.center,
246
252
  alignItems: "center"
@@ -262,7 +268,8 @@ var positionPropTypes = _propTypes["default"].arrayOf(_propTypes["default"].shap
262
268
  link: _propTypes["default"].string,
263
269
  theme: _propTypes["default"].oneOf(['primary', 'secondary', 'tertiary', 'tertiaryWhite', 'ghostPink', 'ghostGrey', 'ghostWhite']),
264
270
  iconName: _propTypes["default"].string,
265
- custom: _propTypes["default"].node
271
+ custom: _propTypes["default"].node,
272
+ testId: _propTypes["default"].string
266
273
  }));
267
274
 
268
275
  NavTab.propTypes = {