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

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 +1361 -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 +13 -13
  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
@@ -5,9 +5,30 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
+ var _reactJss = _interopRequireDefault(require("react-jss"));
9
+
8
10
  var _Col = _interopRequireDefault(require("./Col"));
9
11
 
12
+ var _styles = _interopRequireDefault(require("./styles"));
13
+
10
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
15
 
12
- var _default = _Col["default"];
16
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
17
+
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
19
+
20
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+
22
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
+
24
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
+
26
+ var StyledCol = (0, _reactJss["default"])(_styles["default"])(_Col["default"]); // eslint-disable-next-line
27
+
28
+ var _Col$propTypes = _Col["default"].propTypes,
29
+ classes = _Col$propTypes.classes,
30
+ propTypes = _objectWithoutProperties(_Col$propTypes, ["classes"]);
31
+
32
+ StyledCol.propTypes = _objectSpread(_objectSpread({}, propTypes), StyledCol.propTypes);
33
+ var _default = StyledCol;
13
34
  exports["default"] = _default;
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _reactJss = require("react-jss");
9
-
10
8
  var _grid = _interopRequireDefault(require("../../subatomic/grid"));
11
9
 
12
10
  var _spacing = _interopRequireDefault(require("../../subatomic/spacing"));
@@ -22,123 +20,106 @@ var styles = {
22
20
  paddingLeft: _spacing["default"].gutter
23
21
  }
24
22
  };
25
- var xs = ["@media (min-width: ".concat(_grid["default"].xs, "px)")];
26
- var sm = ["@media (min-width: ".concat(_grid["default"].sm, "px)")];
27
- var md = ["@media (min-width: ".concat(_grid["default"].md, "px)")];
28
- var lg = ["@media (min-width: ".concat(_grid["default"].lg, "px)")];
29
- var xl = ["@media (min-width: ".concat(_grid["default"].xl, "px)")];
30
23
 
31
- for (var i = 1; i <= 12; i++) {
32
- styles["xxs".concat(i)] = {
33
- "float": 'left',
34
- width: "".concat(100 / 12 * i, "%")
35
- };
36
- styles["offset-xxs".concat(i)] = {
37
- marginLeft: "".concat(100 / 12 * i, "%")
38
- };
39
- styles["push-xxs".concat(i)] = {
40
- left: "".concat(100 / 12 * i, "%")
41
- };
42
- styles["pull-xxs".concat(i)] = {
43
- right: "".concat(100 / 12 * i, "%")
44
- };
45
- styles["xs".concat(i)] = {};
46
- styles["offset-xs".concat(i)] = {};
47
- styles["push-xs".concat(i)] = {};
48
- styles["pull-xs".concat(i)] = {};
49
- styles["sm".concat(i)] = {};
50
- styles["offset-sm".concat(i)] = {};
51
- styles["push-sm".concat(i)] = {};
52
- styles["pull-sm".concat(i)] = {};
53
- styles["md".concat(i)] = {};
54
- styles["offset-md".concat(i)] = {};
55
- styles["push-md".concat(i)] = {};
56
- styles["pull-md".concat(i)] = {};
57
- styles["lg".concat(i)] = {};
58
- styles["offset-lg".concat(i)] = {};
59
- styles["push-lg".concat(i)] = {};
60
- styles["pull-lg".concat(i)] = {};
61
- styles["xl".concat(i)] = {};
62
- styles["offset-xl".concat(i)] = {};
63
- styles["push-xl".concat(i)] = {};
64
- styles["pull-xl".concat(i)] = {};
65
- }
24
+ var pushGrid = function pushGrid() {
25
+ var xs = "@media (min-width: ".concat(_grid["default"].xs, "px)");
26
+ var sm = "@media (min-width: ".concat(_grid["default"].sm, "px)");
27
+ var md = "@media (min-width: ".concat(_grid["default"].md, "px)");
28
+ var lg = "@media (min-width: ".concat(_grid["default"].lg, "px)");
29
+ var xl = "@media (min-width: ".concat(_grid["default"].xl, "px)");
66
30
 
67
- ;
68
- styles[xs] = {};
69
- styles[sm] = {};
70
- styles[md] = {};
71
- styles[lg] = {};
72
- styles[xl] = {};
31
+ for (var i = 1; i <= 12; i++) {
32
+ styles["xxs".concat(i)] = {
33
+ "float": 'left',
34
+ width: "".concat(100 / 12 * i, "%")
35
+ };
36
+ styles["offset-xxs".concat(i)] = {
37
+ marginLeft: "".concat(100 / 12 * i, "%")
38
+ };
39
+ styles["push-xxs".concat(i)] = {
40
+ left: "".concat(100 / 12 * i, "%")
41
+ };
42
+ styles["pull-xxs".concat(i)] = {
43
+ right: "".concat(100 / 12 * i, "%")
44
+ };
45
+ }
73
46
 
74
- for (var _i = 1; _i <= 12; _i++) {
75
- styles[xs]["xs".concat(_i)] = {
76
- "float": 'left',
77
- width: "".concat(100 / 12 * _i, "%")
78
- };
79
- styles[xs]["offset-xs".concat(_i)] = {
80
- marginLeft: "".concat(100 / 12 * _i, "%")
81
- };
82
- styles[xs]["push-xs".concat(_i)] = {
83
- left: "".concat(100 / 12 * _i, "%")
84
- };
85
- styles[xs]["pull-xs".concat(_i)] = {
86
- right: "".concat(100 / 12 * _i, "%")
87
- };
88
- styles[sm]["sm".concat(_i)] = {
89
- "float": 'left',
90
- width: "".concat(100 / 12 * _i, "%")
91
- };
92
- styles[sm]["offset-sm".concat(_i)] = {
93
- marginLeft: "".concat(100 / 12 * _i, "%")
94
- };
95
- styles[sm]["push-sm".concat(_i)] = {
96
- left: "".concat(100 / 12 * _i, "%")
97
- };
98
- styles[sm]["pull-sm".concat(_i)] = {
99
- right: "".concat(100 / 12 * _i, "%")
100
- };
101
- styles[md]["md".concat(_i)] = {
102
- "float": 'left',
103
- width: "".concat(100 / 12 * _i, "%")
104
- };
105
- styles[md]["offset-md".concat(_i)] = {
106
- marginLeft: "".concat(100 / 12 * _i, "%")
107
- };
108
- styles[md]["push-md".concat(_i)] = {
109
- left: "".concat(100 / 12 * _i, "%")
110
- };
111
- styles[md]["pull-md".concat(_i)] = {
112
- right: "".concat(100 / 12 * _i, "%")
113
- };
114
- styles[lg]["lg".concat(_i)] = {
115
- "float": 'left',
116
- width: "".concat(100 / 12 * _i, "%")
117
- };
118
- styles[lg]["offset-lg".concat(_i)] = {
119
- marginLeft: "".concat(100 / 12 * _i, "%")
120
- };
121
- styles[lg]["push-lg".concat(_i)] = {
122
- left: "".concat(100 / 12 * _i, "%")
123
- };
124
- styles[lg]["pull-lg".concat(_i)] = {
125
- right: "".concat(100 / 12 * _i, "%")
126
- };
127
- styles[xl]["xl".concat(_i)] = {
128
- "float": 'left',
129
- width: "".concat(100 / 12 * _i, "%")
130
- };
131
- styles[xl]["offset-xl".concat(_i)] = {
132
- marginLeft: "".concat(100 / 12 * _i, "%")
133
- };
134
- styles[xl]["push-xl".concat(_i)] = {
135
- left: "".concat(100 / 12 * _i, "%")
136
- };
137
- styles[xl]["pull-xl".concat(_i)] = {
138
- right: "".concat(100 / 12 * _i, "%")
139
- };
140
- }
47
+ ;
48
+ styles[xs] = {};
49
+ styles[sm] = {};
50
+ styles[md] = {};
51
+ styles[lg] = {};
52
+ styles[xl] = {};
141
53
 
142
- var _default = (0, _reactJss.createUseStyles)(styles);
54
+ for (var _i = 1; _i <= 12; _i++) {
55
+ styles[xs]["xs".concat(_i)] = {
56
+ "float": 'left',
57
+ width: "".concat(100 / 12 * _i, "%")
58
+ };
59
+ styles[xs]["offset-xs".concat(_i)] = {
60
+ marginLeft: "".concat(100 / 12 * _i, "%")
61
+ };
62
+ styles[xs]["push-xs".concat(_i)] = {
63
+ left: "".concat(100 / 12 * _i, "%")
64
+ };
65
+ styles[xs]["pull-xs".concat(_i)] = {
66
+ right: "".concat(100 / 12 * _i, "%")
67
+ };
68
+ styles[sm]["sm".concat(_i)] = {
69
+ "float": 'left',
70
+ width: "".concat(100 / 12 * _i, "%")
71
+ };
72
+ styles[sm]["offset-sm".concat(_i)] = {
73
+ marginLeft: "".concat(100 / 12 * _i, "%")
74
+ };
75
+ styles[sm]["push-sm".concat(_i)] = {
76
+ left: "".concat(100 / 12 * _i, "%")
77
+ };
78
+ styles[sm]["pull-sm".concat(_i)] = {
79
+ right: "".concat(100 / 12 * _i, "%")
80
+ };
81
+ styles[md]["md".concat(_i)] = {
82
+ "float": 'left',
83
+ width: "".concat(100 / 12 * _i, "%")
84
+ };
85
+ styles[md]["offset-md".concat(_i)] = {
86
+ marginLeft: "".concat(100 / 12 * _i, "%")
87
+ };
88
+ styles[md]["push-md".concat(_i)] = {
89
+ left: "".concat(100 / 12 * _i, "%")
90
+ };
91
+ styles[md]["pull-md".concat(_i)] = {
92
+ right: "".concat(100 / 12 * _i, "%")
93
+ };
94
+ styles[lg]["lg".concat(_i)] = {
95
+ "float": 'left',
96
+ width: "".concat(100 / 12 * _i, "%")
97
+ };
98
+ styles[lg]["offset-lg".concat(_i)] = {
99
+ marginLeft: "".concat(100 / 12 * _i, "%")
100
+ };
101
+ styles[lg]["push-lg".concat(_i)] = {
102
+ left: "".concat(100 / 12 * _i, "%")
103
+ };
104
+ styles[lg]["pull-lg".concat(_i)] = {
105
+ right: "".concat(100 / 12 * _i, "%")
106
+ };
107
+ styles[xl]["xl".concat(_i)] = {
108
+ "float": 'left',
109
+ width: "".concat(100 / 12 * _i, "%")
110
+ };
111
+ styles[xl]["offset-xl".concat(_i)] = {
112
+ marginLeft: "".concat(100 / 12 * _i, "%")
113
+ };
114
+ styles[xl]["push-xl".concat(_i)] = {
115
+ left: "".concat(100 / 12 * _i, "%")
116
+ };
117
+ styles[xl]["pull-xl".concat(_i)] = {
118
+ right: "".concat(100 / 12 * _i, "%")
119
+ };
120
+ }
121
+ };
143
122
 
123
+ pushGrid();
124
+ var _default = styles;
144
125
  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
  });
@@ -15,9 +17,9 @@ var _Col = _interopRequireDefault(require("./Col"));
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
19
 
18
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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); }
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
23
 
22
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
25
 
@@ -25,28 +27,32 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
27
 
26
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
27
29
 
28
- 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); }
29
31
 
30
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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); }; }
33
35
 
34
- 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); }
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); }
35
37
 
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
43
 
38
44
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39
45
 
40
46
  /** The Grid should be used as the main content container. You can't use a Grid inside of another Grid, it will brake your layout. */
41
- var Grid =
42
- /*#__PURE__*/
43
- function (_Component) {
47
+ var Grid = /*#__PURE__*/function (_Component) {
44
48
  _inherits(Grid, _Component);
45
49
 
50
+ var _super = _createSuper(Grid);
51
+
46
52
  function Grid() {
47
53
  _classCallCheck(this, Grid);
48
54
 
49
- return _possibleConstructorReturn(this, _getPrototypeOf(Grid).apply(this, arguments));
55
+ return _super.apply(this, arguments);
50
56
  }
51
57
 
52
58
  _createClass(Grid, [{
@@ -60,7 +66,7 @@ function (_Component) {
60
66
  className = _this$props.className,
61
67
  id = _this$props.id,
62
68
  style = _this$props.style;
63
- return _react["default"].createElement("div", {
69
+ return /*#__PURE__*/_react["default"].createElement("div", {
64
70
  className: "".concat(fluid ? classes.conFluid : classes.con).concat(className ? " ".concat(className) : ''),
65
71
  style: style,
66
72
  id: id,
@@ -18,7 +18,7 @@ var Row = function Row(_ref) {
18
18
  className = _ref.className,
19
19
  id = _ref.id,
20
20
  style = _ref.style;
21
- return _react["default"].createElement("div", {
21
+ return /*#__PURE__*/_react["default"].createElement("div", {
22
22
  className: "".concat(classes.row).concat(className ? " ".concat(className) : ''),
23
23
  style: style,
24
24
  id: id
@@ -21,7 +21,7 @@ var reduceClasses = function reduceClasses(prev, curr) {
21
21
  var classes = Object.keys(_styles["default"]).reduce(reduceClasses, {});
22
22
  describe("Row", function () {
23
23
  it('matches the snapshot', function () {
24
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Row["default"], {
24
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Row["default"], {
25
25
  classes: classes
26
26
  }));
27
27
  expect(wrapper).toMatchSnapshot();
@@ -29,7 +29,7 @@ describe("Row", function () {
29
29
  });
30
30
  describe("RowJSS", function () {
31
31
  it('matches the snapshot', function () {
32
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], null));
32
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], null));
33
33
  expect(wrapper).toMatchSnapshot();
34
34
  });
35
35
  });
@@ -0,0 +1,22 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Row matches the snapshot 1`] = `ShallowWrapper {}`;
4
+
5
+ exports[`Row styles matches the snapshot 1`] = `
6
+ Object {
7
+ "row": Object {
8
+ "&:after": Object {
9
+ "clear": "both",
10
+ },
11
+ "&:before, &:after": Object {
12
+ "content": "\\"\\"",
13
+ "display": "table",
14
+ },
15
+ "boxSizing": "border-box",
16
+ "marginLeft": -12,
17
+ "marginRight": -12,
18
+ },
19
+ }
20
+ `;
21
+
22
+ exports[`RowJSS matches the snapshot 1`] = `ShallowWrapper {}`;
@@ -13,7 +13,9 @@ var _styles = _interopRequireDefault(require("./styles"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
16
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
17
+
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
19
 
18
20
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
21
 
@@ -27,6 +29,6 @@ var _Row$propTypes = _Row["default"].propTypes,
27
29
  classes = _Row$propTypes.classes,
28
30
  propTypes = _objectWithoutProperties(_Row$propTypes, ["classes"]);
29
31
 
30
- StyledRow.propTypes = _objectSpread({}, propTypes, StyledRow.propTypes);
32
+ StyledRow.propTypes = _objectSpread(_objectSpread({}, propTypes), StyledRow.propTypes);
31
33
  var _default = StyledRow;
32
34
  exports["default"] = _default;
@@ -13,7 +13,9 @@ var _styles = _interopRequireDefault(require("./styles"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
16
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
17
+
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
19
 
18
20
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
21
 
@@ -27,6 +29,6 @@ var _Grid$propTypes = _Grid["default"].propTypes,
27
29
  classes = _Grid$propTypes.classes,
28
30
  propTypes = _objectWithoutProperties(_Grid$propTypes, ["classes"]);
29
31
 
30
- StyledGrid.propTypes = _objectSpread({}, propTypes, StyledGrid.propTypes);
32
+ StyledGrid.propTypes = _objectSpread(_objectSpread({}, propTypes), StyledGrid.propTypes);
31
33
  var _default = StyledGrid;
32
34
  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
  });
@@ -17,43 +19,45 @@ var _Visible = _interopRequireDefault(require("../Visible"));
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
23
 
24
24
  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); } }
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
27
27
 
28
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
28
+ 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); }
29
+
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
31
 
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+ 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); }; }
33
+
34
+ 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); }
31
35
 
32
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
37
 
34
- 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); }
38
+ 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
39
 
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
41
 
38
- /**
39
- * This header component should be filled with a logo section, a nav section and a user menu.
40
- * For the nav section, use the Nav component of this library. In desktop it will be displayed rght next to the logo. In mobile it will appear below the logo and user menu.
41
- * For the user menu, use the Menu component of this library.
42
- * This header includes a Messages/Chat icon, which you can configure with the messageIcon property.
43
- * (NOTE: The example will not work properly in mobile, since it uses fixed positioning, breaking the Header because is not in the top of the page.)
44
- * The documentation for Nav and Menu is not included here, since they are completely dependant of Header. Use the example below to see how to implement them.
42
+ /**
43
+ * This header component should be filled with a logo section, a nav section and a user menu.
44
+ * For the nav section, use the Nav component of this library. In desktop it will be displayed rght next to the logo. In mobile it will appear below the logo and user menu.
45
+ * For the user menu, use the Menu component of this library.
46
+ * This header includes a Messages/Chat icon, which you can configure with the messageIcon property.
47
+ * (NOTE: The example will not work properly in mobile, since it uses fixed positioning, breaking the Header because is not in the top of the page.)
48
+ * The documentation for Nav and Menu is not included here, since they are completely dependant of Header. Use the example below to see how to implement them.
45
49
  */
46
- var Header =
47
- /*#__PURE__*/
48
- function (_React$Component) {
50
+ var Header = /*#__PURE__*/function (_React$Component) {
49
51
  _inherits(Header, _React$Component);
50
52
 
53
+ var _super = _createSuper(Header);
54
+
51
55
  function Header(props) {
52
56
  var _this;
53
57
 
54
58
  _classCallCheck(this, Header);
55
59
 
56
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Header).call(this, props));
60
+ _this = _super.call(this, props);
57
61
  _this.state = {
58
62
  shadow: true
59
63
  };
@@ -94,38 +98,38 @@ function (_React$Component) {
94
98
  menu = _this$props.menu,
95
99
  title = _this$props.title,
96
100
  messagesIcon = _this$props.messagesIcon;
97
- return _react["default"].createElement("div", {
101
+ return /*#__PURE__*/_react["default"].createElement("div", {
98
102
  id: "mainNav",
99
103
  className: classes.navbar
100
- }, _react["default"].createElement("div", {
104
+ }, /*#__PURE__*/_react["default"].createElement("div", {
101
105
  className: "".concat(classes.master, " ").concat(shadow ? classes.shadow : '')
102
- }, _react["default"].createElement("div", {
106
+ }, /*#__PURE__*/_react["default"].createElement("div", {
103
107
  className: classes.content
104
- }, _react["default"].createElement(_Hidden["default"], {
108
+ }, /*#__PURE__*/_react["default"].createElement(_Hidden["default"], {
105
109
  xs: true
106
- }, logo), _react["default"].createElement(_Visible["default"], {
110
+ }, logo), /*#__PURE__*/_react["default"].createElement(_Visible["default"], {
107
111
  xs: true
108
- }, _react["default"].createElement("div", {
112
+ }, /*#__PURE__*/_react["default"].createElement("div", {
109
113
  className: classes.title
110
- }, title)), _react["default"].createElement("div", {
114
+ }, title)), /*#__PURE__*/_react["default"].createElement("div", {
111
115
  className: classes.user
112
- }, messagesIcon.hasOwnProperty('active') && messagesIcon.active && _react["default"].createElement("a", {
116
+ }, messagesIcon.hasOwnProperty('active') && messagesIcon.active && /*#__PURE__*/_react["default"].createElement("a", {
113
117
  id: messagesIcon.id,
114
118
  href: messagesIcon.href,
115
119
  className: classes.messages
116
- }, _react["default"].createElement("i", {
120
+ }, /*#__PURE__*/_react["default"].createElement("i", {
117
121
  className: classes.bubble
118
- })), menu), _react["default"].createElement(_Hidden["default"], {
122
+ })), menu), /*#__PURE__*/_react["default"].createElement(_Hidden["default"], {
119
123
  xs: true
120
- }, nav))), _react["default"].createElement(_Visible["default"], {
124
+ }, nav))), /*#__PURE__*/_react["default"].createElement(_Visible["default"], {
121
125
  xs: true
122
- }, _react["default"].createElement("div", {
126
+ }, /*#__PURE__*/_react["default"].createElement("div", {
123
127
  className: classes.separate
124
- }, _react["default"].createElement(_reactWaypoint["default"], {
128
+ }, /*#__PURE__*/_react["default"].createElement(_reactWaypoint["default"], {
125
129
  topOffset: 60,
126
130
  onEnter: this.removeShadow,
127
131
  onLeave: this.addShadow
128
- }, _react["default"].createElement("div", {
132
+ }, /*#__PURE__*/_react["default"].createElement("div", {
129
133
  className: !shadow ? classes.shadow : ''
130
134
  }, nav)))));
131
135
  }
@@ -21,13 +21,13 @@ var reduceClasses = function reduceClasses(prev, curr) {
21
21
  var classes = Object.keys(_styles["default"]).reduce(reduceClasses, {});
22
22
  describe("Header", function () {
23
23
  it('matches the snapshot', function () {
24
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Header["default"], {
24
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
25
25
  classes: classes
26
26
  }));
27
27
  expect(wrapper).toMatchSnapshot();
28
28
  });
29
29
  it('shows the shadow at the right place', function () {
30
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Header["default"], {
30
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
31
31
  classes: classes
32
32
  }));
33
33
  global.innerWidth = 500;
@@ -42,7 +42,7 @@ describe("Header", function () {
42
42
  expect(wrapper.find('.separate .shadow').length).toBe(1);
43
43
  });
44
44
  it('shows and hides the logo', function () {
45
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Header["default"], {
45
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
46
46
  classes: classes,
47
47
  logo: "Logo"
48
48
  }));
@@ -54,7 +54,7 @@ describe("Header", function () {
54
54
  expect(wrapper.find('.content').text()).toBe('');
55
55
  });
56
56
  it('shows and hides the title', function () {
57
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Header["default"], {
57
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
58
58
  classes: classes,
59
59
  title: "Title"
60
60
  }));
@@ -66,7 +66,7 @@ describe("Header", function () {
66
66
  expect(wrapper.find('.content').text()).toBe('Title');
67
67
  });
68
68
  it('renders the message icon', function () {
69
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Header["default"], {
69
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
70
70
  classes: classes,
71
71
  messagesIcon: {
72
72
  active: true,
@@ -81,14 +81,14 @@ describe("Header", function () {
81
81
  expect(wrapper.find('#messagesIcon').at(0).length).toBe(0);
82
82
  });
83
83
  it('renders the menu', function () {
84
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Header["default"], {
84
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
85
85
  classes: classes,
86
86
  menu: "Menu"
87
87
  }));
88
88
  expect(wrapper.find('.user').text()).toBe('Menu');
89
89
  });
90
90
  it('renders the nav menu', function () {
91
- var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Header["default"], {
91
+ var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_Header["default"], {
92
92
  classes: classes,
93
93
  nav: "Nav"
94
94
  }));
@@ -107,7 +107,7 @@ describe("Header", function () {
107
107
  });
108
108
  describe("HeaderJSS", function () {
109
109
  it('matches the snapshot', function () {
110
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], null));
110
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], null));
111
111
  expect(wrapper).toMatchSnapshot();
112
112
  });
113
113
  });