@occmundial/occ-atomic 1.34.0 → 1.36.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.36.0](https://github.com/occmundial/occ-atomic/compare/v1.35.0...v1.36.0) (2023-10-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * Default Avatar size and titleCase for Text ([5dc6d69](https://github.com/occmundial/occ-atomic/commit/5dc6d69191a4e76da9ab9a61721de4d39759c0fc))
7
+
8
+ # [1.35.0](https://github.com/occmundial/occ-atomic/compare/v1.34.0...v1.35.0) (2023-10-10)
9
+
10
+
11
+ ### Features
12
+
13
+ * Add new occ logo icons ([494c1d3](https://github.com/occmundial/occ-atomic/commit/494c1d34f3a011830f86b0bfcf98c272631e0fd1))
14
+
1
15
  # [1.34.0](https://github.com/occmundial/occ-atomic/compare/v1.33.0...v1.34.0) (2023-09-07)
2
16
 
3
17
 
@@ -36,9 +36,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
36
36
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
37
 
38
38
  /**
39
- * The Avatar component shows a rounded avatar with a profile picture, a gender icon or the first two capital letters of a name.
40
- * You can use more than one property as a fallback in case one of the props is empty or wrong.
41
- */
39
+ * The Avatar component shows a rounded avatar with a profile picture, a gender icon or the first two capital letters of a name.
40
+ * You can use more than one property as a fallback in case one of the props is empty or wrong.
41
+ */
42
42
  var Avatar = /*#__PURE__*/function (_React$Component) {
43
43
  _inherits(Avatar, _React$Component);
44
44
 
@@ -9,6 +9,8 @@ var _fonts = _interopRequireDefault(require("../../subatomic/fonts"));
9
9
 
10
10
  var _icons = _interopRequireDefault(require("../../subatomic/icons"));
11
11
 
12
+ var _colors = _interopRequireDefault(require("../../subatomic/colors"));
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
16
  var _default = {
@@ -34,12 +36,14 @@ var _default = {
34
36
  },
35
37
  capital: {
36
38
  fontFamily: _fonts["default"].body,
37
- fontSize: 70 * 0.4,
38
- lineHeight: '70px',
39
+ fontSize: '57px',
40
+ lineHeight: '72px',
39
41
  fontWeight: '600',
40
- background: '#dae1e5',
41
- color: '#afb8c0',
42
- textAlign: 'center'
42
+ background: _colors["default"].grey100,
43
+ color: _colors["default"].grey200,
44
+ textAlign: 'center',
45
+ letterSpacing: -2,
46
+ fontStyle: 'normal'
43
47
  }
44
48
  };
45
49
  exports["default"] = _default;
@@ -168,6 +168,9 @@ var _default = {
168
168
  },
169
169
  bottomXLarge: {
170
170
  marginBottom: _spacing["default"].xLarge
171
+ },
172
+ titleCase: {
173
+ textTransform: 'capitalize'
171
174
  }
172
175
  };
173
176
  exports["default"] = _default;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.occLogoBlue = exports.occLogoWhite = exports.occLogoGrey = exports.occLogoBlack = void 0;
7
+
8
+ var _colors = _interopRequireDefault(require("../colors"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
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; }
15
+
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; }
17
+
18
+ var ink = _colors["default"].ink,
19
+ inkLight = _colors["default"].inkLight,
20
+ white = _colors["default"].white,
21
+ brand = _colors["default"].brand;
22
+
23
+ var _icon = function icon(color) {
24
+ return "<svg width=\"82\" height=\"32\" viewBox=\"0 0 82 33\" xmlns=\"http://www.w3.org/2000/svg\">\n <path id=\"Vector\" d=\"M75.3501 23.1395C78.5792 23.1395 81.139 21.1507 81.6021 18.2058L77.8116 17.998C77.4785 19.1331 76.454 19.8046 75.2486 19.8046C73.4818 19.8046 72.3018 18.4872 72.3018 16.4728C72.3018 14.4584 73.4818 13.1411 75.2486 13.1411C76.454 13.1411 77.4785 13.8125 77.8116 14.9476L81.6021 14.7398C81.1422 11.795 78.5792 9.80615 75.3501 9.80615C71.3787 9.80615 68.4066 12.5943 68.4066 16.4696C68.4066 20.3449 71.3787 23.1331 75.3501 23.1331V23.1395ZM44.2453 19.8333C42.4785 19.8333 41.2985 18.516 41.2985 16.476C41.2985 14.436 42.4785 13.1443 44.2453 13.1443C46.0122 13.1443 47.1414 14.4616 47.1414 16.476C47.1414 18.4904 45.9614 19.8333 44.2453 19.8333ZM44.2453 23.1651C48.1406 23.1651 51.0335 20.3257 51.0335 16.476C51.0335 12.6263 48.1374 9.81255 44.2453 9.81255C40.3533 9.81255 37.4033 12.6519 37.4033 16.476C37.4033 20.3002 40.3247 23.1651 44.2453 23.1651ZM60.0547 23.1651C63.4868 23.1651 66.1259 20.8405 66.3828 17.6655L62.643 17.4576C62.4115 18.9029 61.3108 19.8333 59.9531 19.8333C58.1863 19.8333 57.0064 18.516 57.0064 16.476C57.0064 14.436 58.1863 13.1443 59.9531 13.1443C61.3361 13.1443 62.4115 14.0492 62.643 15.4432L66.3828 15.2354C66.1259 12.1115 63.4868 9.81255 60.0547 9.81255C56.0833 9.81255 53.1111 12.6007 53.1111 16.476C53.1111 20.3513 56.0833 23.1651 60.0547 23.1651Z\" fill=\"".concat(color, "\"/>\n <path id=\"Vector_2\" d=\"M17.2081 13.456C16.799 13.2738 16.3485 13.1683 15.8759 13.1683C14.0615 13.1683 12.5865 14.6551 12.5865 16.484C12.5865 18.313 14.0615 19.7998 15.8759 19.7998C17.6903 19.7998 19.1653 18.313 19.1653 16.484C19.1653 16.0044 19.0638 15.5536 18.8798 15.1411C17.8299 15.7326 16.0979 16.711 16.0979 16.711C15.8188 16.8805 15.4826 16.5352 15.6507 16.2602L17.2081 13.456ZM31.736 6.33533V2.03477C29.4807 4.17386 23.2413 10.0763 20.6815 12.5C21.5665 13.5839 22.1026 14.9716 22.1026 16.484C22.1026 19.9436 19.3112 22.7574 15.8791 22.7574C12.447 22.7574 9.65559 19.9436 9.65559 16.484C9.65559 13.0244 12.447 10.2106 15.8791 10.2106C17.3794 10.2106 18.7561 10.7478 19.8314 11.6431L30.2134 0.5H25.947C24.5387 0.5 23.3079 1.245 22.6069 2.36091C16.8973 -0.446443 9.67779 0.186651 4.65967 5.18106C-3.33697 13.1715 -0.662965 27.0132 9.78881 31.301C15.5809 33.7726 22.7021 32.3273 27.089 27.7902C31.5203 23.3521 32.7859 16.209 30.2578 10.4824C30.1468 10.2138 30.0231 9.95484 29.8994 9.69584C31.0032 8.98921 31.736 7.7486 31.736 6.33533ZM24.7639 25.4432C19.9646 30.3641 11.7904 30.3641 6.98793 25.4432C2.1062 20.6055 2.1062 12.3657 6.98793 7.52478C10.9561 3.45763 17.2272 2.7542 21.9947 5.41127V8.98601C20.3294 7.60152 18.1978 6.77018 15.8759 6.77018C10.5628 6.77018 6.23933 11.1283 6.23933 16.484C6.23933 21.8397 10.5628 26.1978 15.8759 26.1978C21.189 26.1978 25.5125 21.8397 25.5125 16.484C25.5125 14.1435 24.6878 11.9948 23.3143 10.3161H26.8606C29.4965 15.1219 28.7987 21.4432 24.7639 25.4432Z\" fill=\"").concat(color, "\"/>\n </svg>");
25
+ };
26
+
27
+ var sharedProperties = {
28
+ width: 82,
29
+ height: 32,
30
+ display: 'inline-block'
31
+ };
32
+
33
+ var occLogoBlack = _objectSpread(_objectSpread({}, sharedProperties), {}, {
34
+ icon: function icon() {
35
+ return _icon(ink);
36
+ }
37
+ });
38
+
39
+ exports.occLogoBlack = occLogoBlack;
40
+
41
+ var occLogoGrey = _objectSpread(_objectSpread({}, sharedProperties), {}, {
42
+ icon: function icon() {
43
+ return _icon(inkLight);
44
+ }
45
+ });
46
+
47
+ exports.occLogoGrey = occLogoGrey;
48
+
49
+ var occLogoWhite = _objectSpread(_objectSpread({}, sharedProperties), {}, {
50
+ icon: function icon() {
51
+ return _icon(white);
52
+ }
53
+ });
54
+
55
+ exports.occLogoWhite = occLogoWhite;
56
+
57
+ var occLogoBlue = _objectSpread(_objectSpread({}, sharedProperties), {}, {
58
+ icon: function icon() {
59
+ return _icon(brand);
60
+ }
61
+ });
62
+
63
+ exports.occLogoBlue = occLogoBlue;
@@ -11,6 +11,8 @@ var _occHorizontal = require("./icons/occHorizontal");
11
11
 
12
12
  var _occVertical = require("./icons/occVertical");
13
13
 
14
+ var _occLogo = require("./icons/occLogo");
15
+
14
16
  var _occDart = require("./icons/occDart");
15
17
 
16
18
  var _bars = _interopRequireDefault(require("./icons/bars"));
@@ -260,6 +262,10 @@ var _default = {
260
262
  occVerticalGrey: _occVertical.occVerticalGrey,
261
263
  occVerticalWhite: _occVertical.occVerticalWhite,
262
264
  occVerticalBlue: _occVertical.occVerticalBlue,
265
+ occLogoBlack: _occLogo.occLogoBlack,
266
+ occLogoGrey: _occLogo.occLogoGrey,
267
+ occLogoWhite: _occLogo.occLogoWhite,
268
+ occLogoBlue: _occLogo.occLogoBlue,
263
269
  occDartBlack: _occDart.occDartBlack,
264
270
  occDartGrey: _occDart.occDartGrey,
265
271
  occDartWhite: _occDart.occDartWhite,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "1.34.0",
3
+ "version": "1.36.0",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",