@occmundial/occ-atomic 1.16.0 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/.prettierrc +6 -6
  2. package/.whitesource +11 -11
  3. package/CHANGELOG.md +943 -913
  4. package/CONTRIBUTING.md +24 -0
  5. package/README.md +21 -21
  6. package/build/Autocomplete/Autocomplete.js +20 -16
  7. package/build/Autocomplete/Autocomplete.test.js +11 -11
  8. package/build/Avatar/Avatar.js +20 -16
  9. package/build/Avatar/Avatar.test.js +2 -2
  10. package/build/Avatar/AvatarContent/AvatarContent.js +5 -5
  11. package/build/Avatar/AvatarContent/AvatarContent.test.js +6 -6
  12. package/build/Avatar/index.js +4 -2
  13. package/build/Banner/Banner.js +6 -6
  14. package/build/Banner/Banner.test.js +2 -2
  15. package/build/Button/Button.js +26 -22
  16. package/build/Button/Button.test.js +13 -13
  17. package/build/Button/index.js +4 -2
  18. package/build/ButtonAlign/ButtonAlign.js +20 -16
  19. package/build/ButtonAlign/ButtonAlign.test.js +3 -3
  20. package/build/Card/Card.js +1 -1
  21. package/build/Card/Card.test.js +4 -4
  22. package/build/Card/index.js +4 -2
  23. package/build/Check/Check.js +18 -14
  24. package/build/Check/Check.test.js +7 -7
  25. package/build/Checkbox/Checkbox.js +18 -14
  26. package/build/Checkbox/Checkbox.test.js +8 -8
  27. package/build/Checkbox/index.js +4 -2
  28. package/build/Column/Column.js +1 -1
  29. package/build/Column/Column.test.js +3 -3
  30. package/build/Container/Container.js +1 -1
  31. package/build/Container/Container.test.js +4 -4
  32. package/build/Droplist/Droplist.js +33 -29
  33. package/build/Droplist/Droplist.test.js +11 -11
  34. package/build/Droplist/index.js +4 -2
  35. package/build/Flexbox/Flexbox.js +16 -12
  36. package/build/Flexbox/Flexbox.test.js +3 -3
  37. package/build/Flexbox/index.js +4 -2
  38. package/build/Footer/Footer.js +16 -16
  39. package/build/Footer/Footer.test.js +2 -2
  40. package/build/Footer/List/List.js +25 -21
  41. package/build/Grid/Col/Col.js +1 -1
  42. package/build/Grid/Col/Col.test.js +3 -3
  43. package/build/Grid/Col/index.js +4 -2
  44. package/build/Grid/Grid.js +18 -12
  45. package/build/Grid/Row/Row.js +1 -1
  46. package/build/Grid/Row/Row.test.js +2 -2
  47. package/build/Grid/Row/index.js +4 -2
  48. package/build/Grid/index.js +4 -2
  49. package/build/Header/Header.js +35 -31
  50. package/build/Header/Header.test.js +8 -8
  51. package/build/Header/Menu/Menu.js +23 -19
  52. package/build/Header/Menu/Menu.test.js +7 -7
  53. package/build/Header/Nav/Nav.js +19 -15
  54. package/build/Header/Nav/Nav.test.js +5 -5
  55. package/build/Hidden/Hidden.js +17 -13
  56. package/build/Hidden/Hidden.test.js +6 -6
  57. package/build/Hidden/index.js +4 -2
  58. package/build/Icon/Icon.js +16 -12
  59. package/build/Icon/Icon.test.js +3 -3
  60. package/build/Icon/index.js +4 -2
  61. package/build/Input/Input.js +29 -25
  62. package/build/Input/Input.test.js +21 -21
  63. package/build/Input/index.js +17 -13
  64. package/build/Label/Label.js +17 -13
  65. package/build/Label/Label.test.js +6 -6
  66. package/build/LayerApp/LayerApp.js +22 -18
  67. package/build/LayerApp/LayerApp.test.js +4 -4
  68. package/build/Modal/Modal.js +38 -33
  69. package/build/Modal/Modal.test.js +10 -10
  70. package/build/Modal/index.js +19 -13
  71. package/build/Modal/styles.js +11 -8
  72. package/build/NavAside/NavAside.js +22 -18
  73. package/build/NavAside/NavAside.test.js +12 -12
  74. package/build/NavAside/index.js +16 -12
  75. package/build/NavIcon/NavIcon.js +20 -16
  76. package/build/NavItem/NavItem.js +18 -14
  77. package/build/NavTab/NavTab.js +32 -28
  78. package/build/NavTop/NavTop.js +20 -16
  79. package/build/OrderBy/OrderBy.js +23 -19
  80. package/build/OrderBy/OrderBy.test.js +6 -6
  81. package/build/Pager/Break/Break.js +1 -1
  82. package/build/Pager/Break/Break.test.js +4 -4
  83. package/build/Pager/Page/Page.js +1 -1
  84. package/build/Pager/Page/Page.test.js +5 -5
  85. package/build/Pager/Pager.js +21 -17
  86. package/build/Pager/Pager.test.js +10 -10
  87. package/build/Pill/Choice/Choice.js +18 -14
  88. package/build/Pill/Group/Group.js +2 -2
  89. package/build/Pill/Pill.js +28 -22
  90. package/build/Pill/Pill.test.js +12 -12
  91. package/build/Pill/Stack/Stack.js +4 -4
  92. package/build/Placeholder/Placeholder.js +2 -2
  93. package/build/Placeholder/Placeholder.test.js +3 -3
  94. package/build/Radio/Radio.js +19 -15
  95. package/build/Radio/Radio.test.js +6 -6
  96. package/build/RangeCounter/RangeCounter.js +17 -13
  97. package/build/RangeCounter/RangeCounter.test.js +3 -3
  98. package/build/Row/Row.js +1 -1
  99. package/build/Row/Row.test.js +2 -2
  100. package/build/SightLogo/SightLogo.js +2 -2
  101. package/build/SightLogo/SightLogo.test.js +2 -2
  102. package/build/SlideDown/SlideDown.js +28 -22
  103. package/build/SlideDown/SlideDown.test.js +9 -9
  104. package/build/SlideToggle/SlideToggle.js +19 -15
  105. package/build/SlideToggle/SlideToggle.test.js +7 -7
  106. package/build/SubHeader/SubHeader.js +20 -16
  107. package/build/SubHeader/SubHeader.test.js +7 -7
  108. package/build/SwitchGroup/SwitchGroup.js +17 -13
  109. package/build/SwitchGroup/SwitchGroup.test.js +6 -6
  110. package/build/Tag/Tag.js +4 -4
  111. package/build/Tag/Tag.test.js +6 -6
  112. package/build/Text/Text.js +18 -12
  113. package/build/Text/Text.test.js +8 -8
  114. package/build/TextField/TextField.js +42 -38
  115. package/build/TextField/TextField.test.js +19 -19
  116. package/build/Tip/Tip.js +16 -12
  117. package/build/Tip/Tip.test.js +5 -5
  118. package/build/Title/Title.js +16 -12
  119. package/build/Title/Title.test.js +3 -3
  120. package/build/Toaster/Toast/Toast.js +11 -11
  121. package/build/Toaster/Toaster.js +27 -23
  122. package/build/Toaster/Toaster.test.js +6 -6
  123. package/build/TourTip/TourTip.js +15 -11
  124. package/build/TourTip/TourTip.test.js +2 -2
  125. package/build/Visible/Visible.js +16 -12
  126. package/build/Visible/Visible.test.js +4 -4
  127. package/build/WindowSize/WindowSize.js +17 -11
  128. package/build/WindowSize/WindowSize.test.js +4 -4
  129. package/build/subatomic/icons/occDart.js +7 -5
  130. package/build/subatomic/icons/occHorizontal.js +7 -5
  131. package/build/subatomic/icons/occVertical.js +7 -5
  132. package/build/subatomic/icons/{emoji.js → warning.js} +1 -1
  133. package/build/subatomic/icons/warningSolid.js +23 -0
  134. package/build/subatomic/icons.js +6 -9
  135. package/commitlint.config.js +6 -0
  136. package/package.json +122 -114
  137. package/playroom/FrameComponent.js +31 -22
  138. package/playroom/styles.js +14 -14
  139. package/playroom.config.js +7 -7
  140. package/.vscode/settings.json +0 -22
  141. package/build/Grid/Grid.test.js +0 -22
  142. package/build/Grid/Row/Rowdsd.js +0 -39
  143. package/build/hooks/useEventListener.js +0 -23
  144. package/build/hooks/usePrevious.js +0 -19
  145. package/yarn-error.log +0 -11800
@@ -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,36 +17,38 @@ var _jquery = _interopRequireDefault(require("jquery"));
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
+
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
29
 
28
- 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
+
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); }
29
33
 
30
34
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
35
 
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); }
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; } }
33
37
 
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
39
 
36
40
  /** This component displays a tooltip in a defined direction and alignment relative to a specified element. To make it work both, the target and the TourTip component, must be wrapped inside a 'relative' container. */
37
- var TourTip =
38
- /*#__PURE__*/
39
- function (_React$Component) {
41
+ var TourTip = /*#__PURE__*/function (_React$Component) {
40
42
  _inherits(TourTip, _React$Component);
41
43
 
44
+ var _super = _createSuper(TourTip);
45
+
42
46
  function TourTip(props) {
43
47
  var _this;
44
48
 
45
49
  _classCallCheck(this, TourTip);
46
50
 
47
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TourTip).call(this, props));
51
+ _this = _super.call(this, props);
48
52
  _this.state = {
49
53
  position: {}
50
54
  };
@@ -111,7 +115,7 @@ function (_React$Component) {
111
115
  direction = _this$props2.direction,
112
116
  id = _this$props2.id,
113
117
  className = _this$props2.className;
114
- return _react["default"].createElement("div", {
118
+ return /*#__PURE__*/_react["default"].createElement("div", {
115
119
  ref: function ref(_ref) {
116
120
  _this3.self = _ref;
117
121
  },
@@ -21,7 +21,7 @@ var reduceClasses = function reduceClasses(prev, curr) {
21
21
  var classes = Object.keys(_styles["default"]).reduce(reduceClasses, {});
22
22
  describe("TourTip", function () {
23
23
  it('matches the snapshot', function () {
24
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_TourTip["default"], {
24
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_TourTip["default"], {
25
25
  classes: classes,
26
26
  direction: "down",
27
27
  target: "target"
@@ -31,7 +31,7 @@ describe("TourTip", function () {
31
31
  });
32
32
  describe("TourTipJSS", function () {
33
33
  it('matches the snapshot', function () {
34
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
34
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
35
35
  direction: "down",
36
36
  target: "target"
37
37
  }));
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -13,36 +15,38 @@ var _grid = _interopRequireDefault(require("../subatomic/grid"));
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
17
-
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
19
 
20
20
  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); } }
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
38
  /** Shows the content on the specified window size. */
35
- var Visible =
36
- /*#__PURE__*/
37
- function (_React$Component) {
39
+ var Visible = /*#__PURE__*/function (_React$Component) {
38
40
  _inherits(Visible, _React$Component);
39
41
 
42
+ var _super = _createSuper(Visible);
43
+
40
44
  function Visible(props) {
41
45
  var _this;
42
46
 
43
47
  _classCallCheck(this, Visible);
44
48
 
45
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Visible).call(this, props));
49
+ _this = _super.call(this, props);
46
50
  _this.state = {
47
51
  width: 0
48
52
  };
@@ -86,9 +90,9 @@ function (_React$Component) {
86
90
  lg = _this$props.lg;
87
91
 
88
92
  if (width >= _grid["default"].xxs && width < _grid["default"].sm && xs || width >= _grid["default"].sm && width < _grid["default"].md && sm || width >= _grid["default"].md && width < _grid["default"].lg && md || width >= _grid["default"].lg && lg) {
89
- return _react["default"].createElement("span", null, children);
93
+ return /*#__PURE__*/_react["default"].createElement("span", null, children);
90
94
  } else {
91
- return _react["default"].createElement("span", null);
95
+ return /*#__PURE__*/_react["default"].createElement("span", null);
92
96
  }
93
97
  }
94
98
  }]);
@@ -10,15 +10,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
10
10
 
11
11
  describe("Visible", function () {
12
12
  it('matches the snapshot', function () {
13
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Visible["default"], {
13
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Visible["default"], {
14
14
  xs: true
15
- }, _react["default"].createElement("div", null, "Text")));
15
+ }, /*#__PURE__*/_react["default"].createElement("div", null, "Text")));
16
16
  expect(wrapper).toMatchSnapshot();
17
17
  });
18
18
  it('shows content in xs', function () {
19
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Visible["default"], {
19
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Visible["default"], {
20
20
  xs: true
21
- }, _react["default"].createElement("div", null, "Text")));
21
+ }, /*#__PURE__*/_react["default"].createElement("div", null, "Text")));
22
22
  wrapper.setState({
23
23
  width: 1200
24
24
  });
@@ -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,9 +13,9 @@ var _grid = _interopRequireDefault(require("../subatomic/grid"));
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
- 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; } }
16
+ 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); }
15
17
 
16
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
18
+ 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; }
17
19
 
18
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
21
 
@@ -23,28 +25,32 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
25
 
24
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
27
 
26
- 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); }
27
29
 
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
+
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); }
29
35
 
30
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
37
 
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); }
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; } }
33
39
 
34
- 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); }
35
41
 
36
42
  function _default(ComposedComponent) {
37
- var WindowSize =
38
- /*#__PURE__*/
39
- function (_Component) {
43
+ var WindowSize = /*#__PURE__*/function (_Component) {
40
44
  _inherits(WindowSize, _Component);
41
45
 
46
+ var _super = _createSuper(WindowSize);
47
+
42
48
  function WindowSize(props) {
43
49
  var _this;
44
50
 
45
51
  _classCallCheck(this, WindowSize);
46
52
 
47
- _this = _possibleConstructorReturn(this, _getPrototypeOf(WindowSize).call(this, props));
53
+ _this = _super.call(this, props);
48
54
  _this.state = {
49
55
  size: 'sm',
50
56
  winWidth: 0
@@ -79,7 +85,7 @@ function _default(ComposedComponent) {
79
85
  var _this$state = this.state,
80
86
  size = _this$state.size,
81
87
  winWidth = _this$state.winWidth;
82
- return _react["default"].createElement(ComposedComponent, _extends({}, this.props, {
88
+ return /*#__PURE__*/_react["default"].createElement(ComposedComponent, _extends({}, this.props, {
83
89
  size: size,
84
90
  winWidth: winWidth
85
91
  }));
@@ -12,13 +12,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
12
12
 
13
13
  describe("WindowSize", function () {
14
14
  it('matches the snapshot', function () {
15
- var Component = (0, _WindowSize["default"])(_react["default"].createElement(_Button["default"], null, "Button"));
16
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(Component, null));
15
+ var Component = (0, _WindowSize["default"])( /*#__PURE__*/_react["default"].createElement(_Button["default"], null, "Button"));
16
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(Component, null));
17
17
  expect(wrapper).toMatchSnapshot();
18
18
  });
19
19
  it('sets the size as medium', function () {
20
- var Component = (0, _WindowSize["default"])(_react["default"].createElement(_Button["default"], null, "Button"));
21
- var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(Component, null));
20
+ var Component = (0, _WindowSize["default"])( /*#__PURE__*/_react["default"].createElement(_Button["default"], null, "Button"));
21
+ var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(Component, null));
22
22
  expect(wrapper.prop('size')).toEqual('md');
23
23
  });
24
24
  });
@@ -11,7 +11,9 @@ var _iconSizes = _interopRequireDefault(require("../iconSizes"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
14
- 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; }
14
+ 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; }
15
+
16
+ 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; }
15
17
 
16
18
  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; }
17
19
 
@@ -30,7 +32,7 @@ var sharedProperties = {
30
32
  display: 'inline-block'
31
33
  };
32
34
 
33
- var occDartBlack = _objectSpread({}, sharedProperties, {
35
+ var occDartBlack = _objectSpread(_objectSpread({}, sharedProperties), {}, {
34
36
  icon: function icon() {
35
37
  return _icon(ink);
36
38
  }
@@ -38,7 +40,7 @@ var occDartBlack = _objectSpread({}, sharedProperties, {
38
40
 
39
41
  exports.occDartBlack = occDartBlack;
40
42
 
41
- var occDartGrey = _objectSpread({}, sharedProperties, {
43
+ var occDartGrey = _objectSpread(_objectSpread({}, sharedProperties), {}, {
42
44
  icon: function icon() {
43
45
  return _icon(inkLight);
44
46
  }
@@ -46,7 +48,7 @@ var occDartGrey = _objectSpread({}, sharedProperties, {
46
48
 
47
49
  exports.occDartGrey = occDartGrey;
48
50
 
49
- var occDartWhite = _objectSpread({}, sharedProperties, {
51
+ var occDartWhite = _objectSpread(_objectSpread({}, sharedProperties), {}, {
50
52
  icon: function icon() {
51
53
  return _icon(white);
52
54
  }
@@ -54,7 +56,7 @@ var occDartWhite = _objectSpread({}, sharedProperties, {
54
56
 
55
57
  exports.occDartWhite = occDartWhite;
56
58
 
57
- var occDartBlue = _objectSpread({}, sharedProperties, {
59
+ var occDartBlue = _objectSpread(_objectSpread({}, sharedProperties), {}, {
58
60
  icon: function icon() {
59
61
  return _icon(brand);
60
62
  }
@@ -9,7 +9,9 @@ var _colors = _interopRequireDefault(require("../colors"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
- 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; }
12
+ 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; }
13
+
14
+ 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; }
13
15
 
14
16
  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; }
15
17
 
@@ -28,7 +30,7 @@ var sharedProperties = {
28
30
  display: 'inline-block'
29
31
  };
30
32
 
31
- var occHorizontalBlack = _objectSpread({}, sharedProperties, {
33
+ var occHorizontalBlack = _objectSpread(_objectSpread({}, sharedProperties), {}, {
32
34
  icon: function icon() {
33
35
  return _icon(ink);
34
36
  }
@@ -36,7 +38,7 @@ var occHorizontalBlack = _objectSpread({}, sharedProperties, {
36
38
 
37
39
  exports.occHorizontalBlack = occHorizontalBlack;
38
40
 
39
- var occHorizontalGrey = _objectSpread({}, sharedProperties, {
41
+ var occHorizontalGrey = _objectSpread(_objectSpread({}, sharedProperties), {}, {
40
42
  icon: function icon() {
41
43
  return _icon(inkLight);
42
44
  }
@@ -44,7 +46,7 @@ var occHorizontalGrey = _objectSpread({}, sharedProperties, {
44
46
 
45
47
  exports.occHorizontalGrey = occHorizontalGrey;
46
48
 
47
- var occHorizontalWhite = _objectSpread({}, sharedProperties, {
49
+ var occHorizontalWhite = _objectSpread(_objectSpread({}, sharedProperties), {}, {
48
50
  icon: function icon() {
49
51
  return _icon(white);
50
52
  }
@@ -52,7 +54,7 @@ var occHorizontalWhite = _objectSpread({}, sharedProperties, {
52
54
 
53
55
  exports.occHorizontalWhite = occHorizontalWhite;
54
56
 
55
- var occHorizontalBlue = _objectSpread({}, sharedProperties, {
57
+ var occHorizontalBlue = _objectSpread(_objectSpread({}, sharedProperties), {}, {
56
58
  icon: function icon() {
57
59
  return _icon(brand);
58
60
  }
@@ -9,7 +9,9 @@ var _colors = _interopRequireDefault(require("../colors"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
- 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; }
12
+ 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; }
13
+
14
+ 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; }
13
15
 
14
16
  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; }
15
17
 
@@ -28,7 +30,7 @@ var sharedProperties = {
28
30
  display: 'inline-block'
29
31
  };
30
32
 
31
- var occVerticalBlack = _objectSpread({}, sharedProperties, {
33
+ var occVerticalBlack = _objectSpread(_objectSpread({}, sharedProperties), {}, {
32
34
  icon: function icon() {
33
35
  return _icon(ink);
34
36
  }
@@ -36,7 +38,7 @@ var occVerticalBlack = _objectSpread({}, sharedProperties, {
36
38
 
37
39
  exports.occVerticalBlack = occVerticalBlack;
38
40
 
39
- var occVerticalGrey = _objectSpread({}, sharedProperties, {
41
+ var occVerticalGrey = _objectSpread(_objectSpread({}, sharedProperties), {}, {
40
42
  icon: function icon() {
41
43
  return _icon(inkLight);
42
44
  }
@@ -44,7 +46,7 @@ var occVerticalGrey = _objectSpread({}, sharedProperties, {
44
46
 
45
47
  exports.occVerticalGrey = occVerticalGrey;
46
48
 
47
- var occVerticalWhite = _objectSpread({}, sharedProperties, {
49
+ var occVerticalWhite = _objectSpread(_objectSpread({}, sharedProperties), {}, {
48
50
  icon: function icon() {
49
51
  return _icon(white);
50
52
  }
@@ -52,7 +54,7 @@ var occVerticalWhite = _objectSpread({}, sharedProperties, {
52
54
 
53
55
  exports.occVerticalWhite = occVerticalWhite;
54
56
 
55
- var occVerticalBlue = _objectSpread({}, sharedProperties, {
57
+ var occVerticalBlue = _objectSpread(_objectSpread({}, sharedProperties), {}, {
56
58
  icon: function icon() {
57
59
  return _icon(brand);
58
60
  }
@@ -17,7 +17,7 @@ var _default = {
17
17
  display: 'inline-block',
18
18
  icon: function icon() {
19
19
  var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].grey900];
20
- return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t\t\t viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n\t\t<path fill=\"".concat(color[0], "\" d=\"M12,22C6.5,22,2,17.5,2,12C2,6.5,6.5,2,12,2c5.5,0,10,4.5,10,10C22,17.5,17.5,22,12,22z M12,4c-4.4,0-8,3.6-8,8\n\t\t\ts3.6,8,8,8s8-3.6,8-8S16.4,4,12,4z\"/>\n\t\t<path fill=\"").concat(color[0], "\" d=\"M12,16c-2.3,0-4.4-1.6-4.9-3.8l1.9-0.5C9.4,13.1,10.6,14,12,14c1.4,0,2.5-0.9,2.9-2.3l1.9,0.6\n\t\t\tC16.2,14.5,14.3,16,12,16z\"/>\n\t\t<circle fill=\"").concat(color[0], "\" cx=\"8.5\" cy=\"8.5\" r=\"1.5\"/>\n\t\t<circle fill=\"").concat(color[0], "\" cx=\"15.5\" cy=\"8.5\" r=\"1.5\"/>\n\t\t</svg>");
20
+ return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" fill-rule=\"evenodd\" d=\"M19.75,19.07,12,3.55,4.22,19.07Zm-6-16.42a2,2,0,0,0-3.58,0L2.43,18.18a2,2,0,0,0,1.79,2.89H19.75a2,2,0,0,0,1.79-2.89ZM11,13.57V9.07h2v4.5Zm0,1.5v2h2v-2Z\"/>\n </svg>");
21
21
  }
22
22
  };
23
23
  exports["default"] = _default;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _colors = _interopRequireDefault(require("../colors"));
9
+
10
+ var _spacing = _interopRequireDefault(require("../spacing"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+
14
+ var _default = {
15
+ width: _spacing["default"].base,
16
+ height: _spacing["default"].base,
17
+ display: 'inline-block',
18
+ icon: function icon() {
19
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].error];
20
+ return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" d=\"M12,3c0.2,0,0.5,0.1,0.6,0.4l8.3,16.5c0.2,0.5-0.1,1.1-0.6,1.1H3.7c-0.5,0-0.8-0.6-0.6-1.1l8.3-16.5C11.5,3.1,11.7,3,12,3z\n M12,17c-0.6,0-1,0.4-1,1s0.4,1,1,1c0.6,0,1-0.4,1-1S12.6,17,12,17z M11,11v4c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-4c0-0.6-0.4-1-1-1\n C11.4,10,11,10.4,11,11z\"/>\n </svg>");
21
+ }
22
+ };
23
+ exports["default"] = _default;
@@ -221,6 +221,10 @@ var _webSiteSolid = _interopRequireDefault(require("./icons/webSiteSolid"));
221
221
 
222
222
  var _moreOptionsHorizontal = _interopRequireDefault(require("./icons/moreOptionsHorizontal"));
223
223
 
224
+ var _warning = _interopRequireDefault(require("./icons/warning"));
225
+
226
+ var _warningSolid = _interopRequireDefault(require("./icons/warningSolid"));
227
+
224
228
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
225
229
 
226
230
  var _default = {
@@ -342,6 +346,8 @@ var _default = {
342
346
  webSite: _webSite["default"],
343
347
  webSiteSolid: _webSiteSolid["default"],
344
348
  moreOptionsHorizontal: _moreOptionsHorizontal["default"],
349
+ warning: _warning["default"],
350
+ warningSolid: _warningSolid["default"],
345
351
  occatomic: {
346
352
  width: '45px',
347
353
  height: '45px',
@@ -379,15 +385,6 @@ var _default = {
379
385
  return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n \t viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <polygon fill=\"".concat(color[0], "\" points=\"5.4,4 4,5.4 10.7,12.1 4.2,18.6 5.6,20 12.1,13.5 18.4,19.8 19.8,18.4 13.5,12.1 20,5.6 18.6,4.2\n \t12.1,10.7 \"/>\n </svg>");
380
386
  }
381
387
  },
382
- warning: {
383
- width: '24px',
384
- height: '24px',
385
- display: 'inline-block',
386
- icon: function icon() {
387
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].error];
388
- return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n \t viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" d=\"M12,3c0.2,0,0.5,0.1,0.6,0.4l8.3,16.5c0.2,0.5-0.1,1.1-0.6,1.1H3.7c-0.5,0-0.8-0.6-0.6-1.1l8.3-16.5C11.5,3.1,11.7,3,12,3z\n \t M12,17c-0.6,0-1,0.4-1,1s0.4,1,1,1c0.6,0,1-0.4,1-1S12.6,17,12,17z M11,11v4c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-4c0-0.6-0.4-1-1-1\n \tC11.4,10,11,10.4,11,11z\"/>\n </svg>");
389
- }
390
- },
391
388
  moreOptions: {
392
389
  width: '24px',
393
390
  height: '24px',
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ extends: ['@commitlint/config-angular'],
3
+ rules: {
4
+ 'subject-case': [2, 'always', 'sentence-case']
5
+ }
6
+ };