@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
@@ -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
  });
@@ -11,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
- 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); }
15
-
16
16
  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); }
17
17
 
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -21,27 +21,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
23
23
 
24
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
24
+ 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); }
25
+
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
27
 
26
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ 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); }; }
29
+
30
+ 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); }
27
31
 
28
32
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
33
 
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); }
34
+ 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; } }
31
35
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
37
 
34
- var Menu =
35
- /*#__PURE__*/
36
- function (_React$Component) {
38
+ var Menu = /*#__PURE__*/function (_React$Component) {
37
39
  _inherits(Menu, _React$Component);
38
40
 
41
+ var _super = _createSuper(Menu);
42
+
39
43
  function Menu(props) {
40
44
  var _this;
41
45
 
42
46
  _classCallCheck(this, Menu);
43
47
 
44
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Menu).call(this, props));
48
+ _this = _super.call(this, props);
45
49
  _this.state = {
46
50
  open: false
47
51
  };
@@ -86,30 +90,30 @@ function (_React$Component) {
86
90
  id = _this$props.id,
87
91
  label = _this$props.label,
88
92
  buttons = _this$props.buttons;
89
- return _react["default"].createElement("div", {
93
+ return /*#__PURE__*/_react["default"].createElement("div", {
90
94
  id: id,
91
95
  className: classes.menu
92
- }, _react["default"].createElement("div", {
96
+ }, /*#__PURE__*/_react["default"].createElement("div", {
93
97
  className: classes.btnContainer
94
- }, _react["default"].createElement("button", {
98
+ }, /*#__PURE__*/_react["default"].createElement("button", {
95
99
  className: "".concat(classes.btnMenu, " ").concat(open ? classes.btnMenuOpen : ''),
96
100
  onClick: this.toggleMenu
97
- }, _react["default"].createElement("p", {
101
+ }, /*#__PURE__*/_react["default"].createElement("p", {
98
102
  className: classes.label
99
- }, label), _react["default"].createElement("i", {
103
+ }, label), /*#__PURE__*/_react["default"].createElement("i", {
100
104
  className: classes.menuIcon
101
- })), _react["default"].createElement("ul", {
105
+ })), /*#__PURE__*/_react["default"].createElement("ul", {
102
106
  className: "".concat(classes.dropdownMenu, " ").concat(open ? classes.dropdownMenuOpen : '')
103
107
  }, buttons.map(function (button, index) {
104
108
  if (button == 'separator') {
105
- return _react["default"].createElement("li", {
109
+ return /*#__PURE__*/_react["default"].createElement("li", {
106
110
  key: index,
107
111
  className: classes.separator
108
112
  });
109
113
  } else {
110
- return _react["default"].createElement("li", {
114
+ return /*#__PURE__*/_react["default"].createElement("li", {
111
115
  key: button.id
112
- }, _react["default"].createElement("a", _extends({
116
+ }, /*#__PURE__*/_react["default"].createElement("a", _extends({
113
117
  className: "".concat(classes.listAnchor).concat(button.type == "signOut" ? " ".concat(classes.signOut) : '')
114
118
  }, button), button.label));
115
119
  }
@@ -39,14 +39,14 @@ var buttons = [{
39
39
  }];
40
40
  describe("Menu", function () {
41
41
  it('matches the snapshot', function () {
42
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
42
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
43
43
  classes: classes,
44
44
  buttons: buttons
45
45
  }));
46
46
  expect(wrapper).toMatchSnapshot();
47
47
  });
48
48
  it('renders the label', function () {
49
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
49
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
50
50
  classes: classes,
51
51
  label: "Menu",
52
52
  buttons: buttons
@@ -55,7 +55,7 @@ describe("Menu", function () {
55
55
  });
56
56
  it('toggles the menu', function () {
57
57
  var propagation = jest.fn();
58
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
58
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
59
59
  classes: classes,
60
60
  buttons: buttons
61
61
  }));
@@ -66,21 +66,21 @@ describe("Menu", function () {
66
66
  expect(wrapper.find('.dropdownMenu').hasClass('dropdownMenuOpen')).toBe(true);
67
67
  });
68
68
  it('renders all the items', function () {
69
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
69
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
70
70
  classes: classes,
71
71
  buttons: buttons
72
72
  }));
73
73
  expect(wrapper.find('li').length).toBe(5);
74
74
  });
75
75
  it('renders a separator', function () {
76
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
76
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
77
77
  classes: classes,
78
78
  buttons: buttons
79
79
  }));
80
80
  expect(wrapper.find('li').at(3).hasClass('separator')).toBe(true);
81
81
  });
82
82
  it('renders a button to sign out', function () {
83
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
83
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
84
84
  classes: classes,
85
85
  buttons: buttons
86
86
  }));
@@ -94,7 +94,7 @@ describe("MenuJSS", function () {
94
94
  href: 'http://occ.com.mx',
95
95
  label: 'Item 1'
96
96
  }];
97
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
97
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
98
98
  buttons: buttons
99
99
  }));
100
100
  expect(wrapper).toMatchSnapshot();
@@ -0,0 +1,113 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Menu matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`Menu styles matches the snapshot 1`] = `
6
+ Object {
7
+ "@media (max-width: 767px)": Object {
8
+ "dropdownMenu": Object {
9
+ "width": "200px",
10
+ },
11
+ },
12
+ "btnContainer": Object {
13
+ "display": "inline-block",
14
+ "position": "relative",
15
+ "verticalAlign": "middle",
16
+ },
17
+ "btnMenu": Object {
18
+ "&:hover": Object {
19
+ "background": "#ffffff",
20
+ "color": "#1476fb",
21
+ },
22
+ "&:hover $menuIcon": Object {
23
+ "background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iIzE0NzZmYiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
24
+ },
25
+ "background": "none",
26
+ "border": "none",
27
+ "borderRadius": "3px",
28
+ "color": "#ffffff",
29
+ "cursor": "pointer",
30
+ "marginLeft": "10px",
31
+ "outline": "none !important",
32
+ "padding": "5px 10px 2px 10px",
33
+ "transition": "0.3s all",
34
+ },
35
+ "btnMenuOpen": Object {
36
+ "& $menuIcon": Object {
37
+ "background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iIzE0NzZmYiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
38
+ },
39
+ "background": "#ffffff",
40
+ "color": "#1476fb",
41
+ },
42
+ "dropdownMenu": Object {
43
+ "backgroundClip": "padding-box",
44
+ "backgroundColor": "#ffffff",
45
+ "border": "1px solid rgba(0,0,0,.15)",
46
+ "boxShadow": "0 6px 12px rgba(0,0,0,.175)",
47
+ "display": "none",
48
+ "float": "left",
49
+ "fontSize": "14px",
50
+ "listStyle": "none",
51
+ "margin": "13px 0 0 -187px",
52
+ "minWidth": "160px",
53
+ "padding": "5px 0",
54
+ "position": "absolute",
55
+ "right": "0",
56
+ "textAlign": "left",
57
+ "top": "100%",
58
+ "zIndex": "1000",
59
+ },
60
+ "dropdownMenuOpen": Object {
61
+ "display": "block",
62
+ },
63
+ "label": Object {
64
+ "display": "inline-block",
65
+ "margin": "0",
66
+ "maxWidth": "65px",
67
+ "overflow": "hidden",
68
+ "paddingRight": "5px",
69
+ "textOverflow": "ellipsis",
70
+ "whiteSpace": "nowrap",
71
+ },
72
+ "listAnchor": Object {
73
+ "&:hover, &:focus": Object {
74
+ "color": "#1476fb",
75
+ "textDecoration": "none",
76
+ },
77
+ "clear": "both",
78
+ "color": "#000",
79
+ "cursor": "pointer",
80
+ "display": "block",
81
+ "fontWeight": "400",
82
+ "lineHeight": "1.42857143",
83
+ "margin": "5px 0 5px 0",
84
+ "padding": "0 10px",
85
+ "textDecoration": "none",
86
+ "whiteSpace": "nowrap",
87
+ },
88
+ "menu": Object {
89
+ "cursor": "pointer !important",
90
+ "display": "inline-block",
91
+ "marginTop": "5px",
92
+ },
93
+ "menuIcon": Object {
94
+ "background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjRkZGRkZGIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjRkZGRkZGIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iI0ZGRkZGRiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
95
+ "backgroundPosition": "center center",
96
+ "backgroundRepeat": "no-repeat",
97
+ "display": "inline-block",
98
+ "height": "16px",
99
+ "transition": "0.3s all",
100
+ "width": "16px",
101
+ },
102
+ "separator": Object {
103
+ "background": "#ebebeb",
104
+ "height": "1px",
105
+ },
106
+ "signOut": Object {
107
+ "color": "#ff456a !important",
108
+ "margin": "10px 0 5px 0",
109
+ },
110
+ }
111
+ `;
112
+
113
+ exports[`MenuJSS 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
  });
@@ -15,33 +17,35 @@ var _colors = _interopRequireDefault(require("../../subatomic/colors"));
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
+
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; } }
35
37
 
36
- var Nav =
37
- /*#__PURE__*/
38
- function (_React$Component) {
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+
40
+ var Nav = /*#__PURE__*/function (_React$Component) {
39
41
  _inherits(Nav, _React$Component);
40
42
 
43
+ var _super = _createSuper(Nav);
44
+
41
45
  function Nav() {
42
46
  _classCallCheck(this, Nav);
43
47
 
44
- return _possibleConstructorReturn(this, _getPrototypeOf(Nav).apply(this, arguments));
48
+ return _super.apply(this, arguments);
45
49
  }
46
50
 
47
51
  _createClass(Nav, [{
@@ -59,19 +63,19 @@ function (_React$Component) {
59
63
  active = _this$props.active,
60
64
  navigate = _this$props.navigate,
61
65
  buttons = _this$props.buttons;
62
- return _react["default"].createElement("ul", {
66
+ return /*#__PURE__*/_react["default"].createElement("ul", {
63
67
  className: classes.menu
64
68
  }, buttons.map(function (button) {
65
- return _react["default"].createElement("li", {
69
+ return /*#__PURE__*/_react["default"].createElement("li", {
66
70
  key: button.id,
67
71
  onClick: navigate,
68
72
  className: "".concat(classes.listItem, " ").concat(active == button.id ? classes.activeItem : ''),
69
73
  id: button.id
70
- }, _react["default"].createElement(_Icon["default"], {
74
+ }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
71
75
  iconName: button.icon,
72
76
  colors: active == button.id ? [_colors["default"].white] : [_colors["default"].darkBlue],
73
77
  className: classes.icon
74
- }), _react["default"].createElement("a", {
78
+ }), /*#__PURE__*/_react["default"].createElement("a", {
75
79
  className: classes.listAnchor
76
80
  }, button.label));
77
81
  }));
@@ -34,14 +34,14 @@ var buttons = [{
34
34
  }];
35
35
  describe("Nav", function () {
36
36
  it('matches the snapshot', function () {
37
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
37
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
38
38
  classes: classes,
39
39
  buttons: buttons
40
40
  }));
41
41
  expect(wrapper).toMatchSnapshot();
42
42
  });
43
43
  it('renders all the buttons', function () {
44
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
44
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
45
45
  classes: classes,
46
46
  buttons: buttons
47
47
  }));
@@ -49,7 +49,7 @@ describe("Nav", function () {
49
49
  });
50
50
  it('calls the onClick function', function () {
51
51
  var onClick = jest.fn();
52
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
52
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
53
53
  classes: classes,
54
54
  navigate: onClick,
55
55
  buttons: buttons
@@ -58,7 +58,7 @@ describe("Nav", function () {
58
58
  expect(onClick.mock.calls.length).toBe(1);
59
59
  });
60
60
  it('sets an active button', function () {
61
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
61
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
62
62
  classes: classes,
63
63
  active: "item1",
64
64
  buttons: buttons
@@ -68,7 +68,7 @@ describe("Nav", function () {
68
68
  });
69
69
  describe("NavJSS", function () {
70
70
  it('matches the snapshot', function () {
71
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
71
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
72
72
  buttons: buttons
73
73
  }));
74
74
  expect(wrapper).toMatchSnapshot();
@@ -0,0 +1,101 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Nav matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`Nav styles matches the snapshot 1`] = `
6
+ Object {
7
+ "@media (max-width: 767px)": Object {
8
+ "activeItem": Object {
9
+ "& $icon": Object {
10
+ "marginBottom": "14px",
11
+ },
12
+ "& $listAnchor": Object {
13
+ "display": "none",
14
+ },
15
+ "&:after": Object {
16
+ "background": "#06f7fa",
17
+ "borderRadius": "50%",
18
+ "bottom": "0",
19
+ "content": "\\"\\"",
20
+ "display": "block",
21
+ "height": "4px",
22
+ "left": "50%",
23
+ "marginBottom": "8px",
24
+ "position": "absolute",
25
+ "transform": "translateX(-50%)",
26
+ "width": "4px",
27
+ },
28
+ },
29
+ "icon": Object {},
30
+ "listAnchor": Object {},
31
+ "listItem": Object {
32
+ "&:last-child": Object {
33
+ "marginRight": "0",
34
+ },
35
+ "margin": "0 25px 0 0",
36
+ },
37
+ "menu": Object {
38
+ "clear": "both",
39
+ "margin": "0",
40
+ "textAlign": "center",
41
+ },
42
+ },
43
+ "@media (min-width: 768px)": Object {
44
+ "listItem": Object {
45
+ "float": "left",
46
+ },
47
+ "menu": Object {
48
+ "float": "left",
49
+ },
50
+ },
51
+ "activeItem": Object {
52
+ "& $icon, &:hover $icon": Object {
53
+ "filter": "brightness(1)",
54
+ },
55
+ "& $listAnchor, &:hover $listAnchor": Object {
56
+ "color": "#ffffff",
57
+ },
58
+ },
59
+ "icon": Object {
60
+ "backgroundPosition": "center center",
61
+ "backgroundRepeat": "no-repeat",
62
+ },
63
+ "listAnchor": Object {
64
+ "color": "#104791",
65
+ "display": "block",
66
+ "lineHeight": "20px",
67
+ "marginBottom": "2px",
68
+ "marginTop": "-4px",
69
+ "padding": "0",
70
+ "position": "relative",
71
+ "textAlign": "center",
72
+ "textDecoration": "none !important",
73
+ "transition": "0.3s all",
74
+ },
75
+ "listItem": Object {
76
+ "&:hover $icon": Object {
77
+ "filter": "brightness(0.8)",
78
+ },
79
+ "&:hover $listAnchor": Object {
80
+ "color": "#224099",
81
+ },
82
+ "cursor": "pointer",
83
+ "display": "inline-block",
84
+ "fontSize": "12px",
85
+ "margin": "7px 30px 0 0",
86
+ "padding": "5px 0 0 0",
87
+ "position": "relative",
88
+ "textAlign": "center",
89
+ "width": "auto",
90
+ },
91
+ "menu": Object {
92
+ "background": "#1476fb",
93
+ "listStyle": "none",
94
+ "margin": "0 10px",
95
+ "paddingLeft": "0",
96
+ "textAlign": "center",
97
+ },
98
+ }
99
+ `;
100
+
101
+ exports[`NavJSS matches the snapshot 1`] = `ShallowWrapper {}`;
@@ -0,0 +1,79 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Header matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`Header styles matches the snapshot 1`] = `
6
+ Object {
7
+ "@media (max-width: 767px)": Object {
8
+ "content": Object {
9
+ "borderTop": "1px solid transparent",
10
+ },
11
+ "master": Object {
12
+ "boxShadow": "none",
13
+ "left": "0",
14
+ "position": "fixed",
15
+ "top": "0",
16
+ "width": "100%",
17
+ "zIndex": "10",
18
+ },
19
+ },
20
+ "@media (min-width: 1200px)": Object {
21
+ "master": Object {
22
+ "padding": "0 45px 0 45px",
23
+ },
24
+ },
25
+ "bubble": Object {
26
+ "background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCA1MCA0MS45IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MCA0MS45OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiNERkVERkYiIGQ9Ik0yNSwwQzExLjIsMCwwLDkuMSwwLDIwLjNjMCw0LDEuNSw3LjgsNCwxMC45YzAuMywwLjQsMSwxLDAuOCwxLjhjLTAuMSwwLjUtMi4zLDcuNi0yLjMsNy42CiAgICAgICAgICAgIAljLTAuMiwwLjYsMC4yLDEuMywxLDEuM2MwLjYsMCwxLTAuMiwxLTAuMnM3LjQtMyw3LjgtMy4yYzEtMC41LDIuNC0wLjEsMywwLjFjMywxLDYuMywxLjQsOS44LDEuNEMzOC45LDQwLDUwLDMxLjYsNTAsMjAuNAogICAgICAgICAgICAJQzUwLDkuMSwzOC44LDAsMjUsMHoiLz4KICAgICAgICAgICAgPC9zdmc+)",
27
+ "display": "block",
28
+ "height": "25px",
29
+ "width": "25px",
30
+ },
31
+ "content": Object {
32
+ "borderBottom": "1px solid transparent",
33
+ "boxShadow": "0px 0px 0px 0px rgba(0, 0, 0, 0.75)",
34
+ },
35
+ "master": Object {
36
+ "backgroundColor": "#1476fb",
37
+ "boxShadow": "0 6px 5px -3px rgba(0,0,0,0.12), 0 6px 18px 0 rgba(0,29,124,0.08)",
38
+ "minHeight": "60px",
39
+ "padding": "0 15px 0 15px",
40
+ },
41
+ "messages": Object {
42
+ "cursor": "pointer",
43
+ "display": "inline-flex",
44
+ "outline": "0",
45
+ "transform": "translateY(30%)",
46
+ },
47
+ "navbar": Object {
48
+ "border": "none",
49
+ "fontFamily": "'OccText', sans-serif",
50
+ "position": "relative",
51
+ "zIndex": "9",
52
+ },
53
+ "separate": Object {
54
+ "marginTop": "60px",
55
+ "position": "relative",
56
+ "zIndex": "9",
57
+ },
58
+ "shadow": Object {
59
+ "boxShadow": "0 6px 5px -3px rgba(0,0,0,0.12), 0 6px 18px 0 rgba(0,29,124,0.08) !important",
60
+ },
61
+ "title": Object {
62
+ "color": "#ffffff",
63
+ "float": "left",
64
+ "fontSize": "16px",
65
+ "overflow": "hidden",
66
+ "paddingBottom": "5px",
67
+ "paddingTop": "17px",
68
+ "textOverflow": "ellipsis",
69
+ "whiteSpace": "nowrap",
70
+ "width": "calc(100% - 150px)",
71
+ },
72
+ "user": Object {
73
+ "float": "right !important",
74
+ "paddingTop": "9px",
75
+ },
76
+ }
77
+ `;
78
+
79
+ exports[`HeaderJSS matches the snapshot 1`] = `ShallowWrapper {}`;