@occmundial/occ-atomic 3.0.0-beta.60 → 3.0.0-beta.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,43 +99,43 @@
99
99
  "100": "#fff"
100
100
  },
101
101
  "indigo": {
102
- "5": "hsl(221 91.2% 35.7% / 0.05)",
103
- "10": "hsl(221 91.2% 35.7% / 0.1)",
104
- "20": "hsl(221 91.2% 35.7% / 0.2)",
105
- "30": "hsl(221 91.2% 35.7% / 0.3)",
106
- "40": "hsl(221 91.2% 35.7% / 0.4)",
107
- "50": "hsl(221 91.2% 35.7% / 0.5)",
108
- "60": "hsl(221 91.2% 35.7% / 0.6)",
109
- "70": "hsl(221 91.2% 35.7% / 0.7)",
110
- "80": "hsl(221 91.2% 35.7% / 0.8)",
111
- "90": "hsl(221 91.2% 35.7% / 0.9)",
112
- "100": "hsl(221 91.2% 35.7%)"
102
+ "5": "rgba(8, 60, 174, 0.05)",
103
+ "10": "rgba(8, 60, 174, 0.1)",
104
+ "20": "rgba(8, 60, 174, 0.2)",
105
+ "30": "rgba(8, 60, 174, 0.3)",
106
+ "40": "rgba(8, 60, 174, 0.4)",
107
+ "50": "rgba(8, 60, 174, 0.5)",
108
+ "60": "rgba(8, 60, 174, 0.6)",
109
+ "70": "rgba(8, 60, 174, 0.7)",
110
+ "80": "rgba(8, 60, 174, 0.8)",
111
+ "90": "rgba(8, 60, 174, 0.9)",
112
+ "100": "#083CAE"
113
113
  },
114
114
  "pink": {
115
- "5": "hsl(344 87.1% 57.5% / 0.05)",
116
- "10": "hsl(344 87.1% 57.5% / 0.1)",
117
- "20": "hsl(344 87.1% 57.5% / 0.2)",
118
- "30": "hsl(344 87.1% 57.5% / 0.3)",
119
- "40": "hsl(344 87.1% 57.5% / 0.4)",
120
- "50": "hsl(344 87.1% 57.5% / 0.5)",
121
- "60": "hsl(344 87.1% 57.5% / 0.6)",
122
- "70": "hsl(344 87.1% 57.5% / 0.7)",
123
- "80": "hsl(344 87.1% 57.5% / 0.8)",
124
- "90": "hsl(344 87.1% 57.5% / 0.9)",
125
- "100": "hsl(344 87.1% 57.5%)"
115
+ "5": "rgba(241, 52, 101, 0.05)",
116
+ "10": "rgba(241, 52, 101, 0.1)",
117
+ "20": "rgba(241, 52, 101, 0.2)",
118
+ "30": "rgba(241, 52, 101, 0.3)",
119
+ "40": "rgba(241, 52, 101, 0.4)",
120
+ "50": "rgba(241, 52, 101, 0.5)",
121
+ "60": "rgba(241, 52, 101, 0.6)",
122
+ "70": "rgba(241, 52, 101, 0.7)",
123
+ "80": "rgba(241, 52, 101, 0.8)",
124
+ "90": "rgba(241, 52, 101, 0.9)",
125
+ "100": "#F13465"
126
126
  },
127
127
  "corp": {
128
- "5": "hsl(234 75.4% 12.7% / 0.05)",
129
- "10": "hsl(234 75.4% 12.7% / 0.1)",
130
- "20": "hsl(234 75.4% 12.7% / 0.2)",
131
- "30": "hsl(234 75.4% 12.7% / 0.3)",
132
- "40": "hsl(234 75.4% 12.7% / 0.4)",
133
- "50": "hsl(234 75.4% 12.7% / 0.5)",
134
- "60": "hsl(234 75.4% 12.7% / 0.6)",
135
- "70": "hsl(234 75.4% 12.7% / 0.7)",
136
- "80": "hsl(234 75.4% 12.7% / 0.8)",
137
- "90": "hsl(234 75.4% 12.7% / 0.9)",
138
- "100": "hsl(234 75.4% 12.7%)"
128
+ "5": "rgba(8, 13, 57, 0.05)",
129
+ "10": "rgba(8, 13, 57, 0.1)",
130
+ "20": "rgba(8, 13, 57, 0.2)",
131
+ "30": "rgba(8, 13, 57, 0.3)",
132
+ "40": "rgba(8, 13, 57, 0.4)",
133
+ "50": "rgba(8, 13, 57, 0.5)",
134
+ "60": "rgba(8, 13, 57, 0.6)",
135
+ "70": "rgba(8, 13, 57, 0.7)",
136
+ "80": "rgba(8, 13, 57, 0.8)",
137
+ "90": "rgba(8, 13, 57, 0.9)",
138
+ "100": "#080D39"
139
139
  },
140
140
  "black": {
141
141
  "0": "rgba(0,0,0,0.0)",
@@ -202,10 +202,10 @@
202
202
  },
203
203
  "secondary": {
204
204
  "bg": {
205
- "default": "hsl(221 91.2% 35.7% / 0.05)",
206
- "hover": "hsl(221 91.2% 35.7% / 0.1)",
207
- "active": "hsl(221 91.2% 35.7% / 0.2)",
208
- "disabled": "hsl(221 91.2% 35.7% / 0.1)",
205
+ "default": "rgba(8, 60, 174, 0.05)",
206
+ "hover": "rgba(8, 60, 174, 0.1)",
207
+ "active": "rgba(8, 60, 174, 0.2)",
208
+ "disabled": "rgba(8, 60, 174, 0.1)",
209
209
  "inverse": {
210
210
  "default": "rgba(255,255,255,0.1)",
211
211
  "hover": "rgba(255,255,255,0.2)",
@@ -216,8 +216,8 @@
216
216
  },
217
217
  "tertiary": {
218
218
  "bg": {
219
- "hover": "hsl(221 91.2% 35.7% / 0.05)",
220
- "active": "hsl(221 91.2% 35.7% / 0.1)",
219
+ "hover": "rgba(8, 60, 174, 0.05)",
220
+ "active": "rgba(8, 60, 174, 0.1)",
221
221
  "inverse": {
222
222
  "hover": "rgba(255,255,255,0.05)",
223
223
  "active": "rgba(255,255,255,0.1)"
@@ -234,8 +234,8 @@
234
234
  },
235
235
  "ghost": {
236
236
  "bg": {
237
- "hover": "hsl(234 75.4% 12.7% / 0.05)",
238
- "active": "hsl(234 75.4% 12.7% / 0.1)",
237
+ "hover": "rgba(8, 13, 57, 0.05)",
238
+ "active": "rgba(8, 13, 57, 0.1)",
239
239
  "inverse": {
240
240
  "hover": "rgba(255,255,255,0.05)",
241
241
  "active": "rgba(255,255,255,0.1)"
@@ -304,8 +304,8 @@
304
304
  "dropdown": {
305
305
  "bg": {
306
306
  "default": "#fff",
307
- "hover": "hsl(221 91.2% 35.7% / 0.05)",
308
- "active": "hsl(221 91.2% 35.7% / 0.1)"
307
+ "hover": "rgba(8, 60, 174, 0.05)",
308
+ "active": "rgba(8, 60, 174, 0.1)"
309
309
  }
310
310
  },
311
311
  "checkbox": {
@@ -313,7 +313,7 @@
313
313
  "bg": {
314
314
  "default": "#0059CD",
315
315
  "hover": "#083CAE",
316
- "disabled": "hsl(221 91.2% 35.7% / 0.1)"
316
+ "disabled": "rgba(8, 60, 174, 0.1)"
317
317
  },
318
318
  "border": {
319
319
  "default": "rgba(255,255,255,0.2)"
@@ -436,8 +436,8 @@
436
436
  },
437
437
  "brand": {
438
438
  "bg": {
439
- "hover": "hsl(221 91.2% 35.7% / 0.1)",
440
- "active": "hsl(221 91.2% 35.7% / 0.2)"
439
+ "hover": "rgba(8, 60, 174, 0.1)",
440
+ "active": "rgba(8, 60, 174, 0.2)"
441
441
  }
442
442
  },
443
443
  "white": {
@@ -464,10 +464,10 @@
464
464
  },
465
465
  "unselected": {
466
466
  "bg": {
467
- "default": "hsl(221 91.2% 35.7% / 0.05)",
468
- "hover": "hsl(221 91.2% 35.7% / 0.1)",
469
- "active": "hsl(221 91.2% 35.7% / 0.2)",
470
- "disabled": "hsl(221 91.2% 35.7% / 0.1)"
467
+ "default": "rgba(8, 60, 174, 0.05)",
468
+ "hover": "rgba(8, 60, 174, 0.1)",
469
+ "active": "rgba(8, 60, 174, 0.2)",
470
+ "disabled": "rgba(8, 60, 174, 0.1)"
471
471
  }
472
472
  }
473
473
  },
@@ -478,8 +478,8 @@
478
478
  "active": "#ABBDE4",
479
479
  "disabled": "#EDEDF1",
480
480
  "overlay": {
481
- "hover": "hsl(234 75.4% 12.7% / 0.3)",
482
- "active": "hsl(234 75.4% 12.7% / 0.4)"
481
+ "hover": "rgba(8, 13, 57, 0.3)",
482
+ "active": "rgba(8, 13, 57, 0.4)"
483
483
  }
484
484
  }
485
485
  },
@@ -504,10 +504,10 @@
504
504
  "disabled": "#F6809E"
505
505
  },
506
506
  "secondary": {
507
- "default": "hsl(221 91.2% 35.7% / 0.05)",
508
- "hover": "hsl(221 91.2% 35.7% / 0.1)",
509
- "active": "hsl(221 91.2% 35.7% / 0.2)",
510
- "disabled": "hsl(221 91.2% 35.7% / 0.1)",
507
+ "default": "rgba(8, 60, 174, 0.05)",
508
+ "hover": "rgba(8, 60, 174, 0.1)",
509
+ "active": "rgba(8, 60, 174, 0.2)",
510
+ "disabled": "rgba(8, 60, 174, 0.1)",
511
511
  "inverse": {
512
512
  "default": "rgba(255,255,255,0.1)",
513
513
  "hover": "rgba(255,255,255,0.2)",
@@ -516,8 +516,8 @@
516
516
  }
517
517
  },
518
518
  "tertiary": {
519
- "hover": "hsl(221 91.2% 35.7% / 0.05)",
520
- "active": "hsl(221 91.2% 35.7% / 0.1)",
519
+ "hover": "rgba(8, 60, 174, 0.05)",
520
+ "active": "rgba(8, 60, 174, 0.1)",
521
521
  "inverse": {
522
522
  "hover": "rgba(255,255,255,0.05)",
523
523
  "active": "rgba(255,255,255,0.1)"
@@ -535,8 +535,8 @@
535
535
  }
536
536
  },
537
537
  "ghost": {
538
- "hover": "hsl(234 75.4% 12.7% / 0.05)",
539
- "active": "hsl(234 75.4% 12.7% / 0.1)"
538
+ "hover": "rgba(8, 13, 57, 0.05)",
539
+ "active": "rgba(8, 13, 57, 0.1)"
540
540
  }
541
541
  },
542
542
  "default": "#F8FAFD",
@@ -564,7 +564,8 @@
564
564
  "disabled": "#D3D4DC"
565
565
  },
566
566
  "inverse": {
567
- "default": "#fff",
567
+ "bold": "#fff",
568
+ "default": "rgba(255,255,255,0.7)",
568
569
  "disabled": "rgba(255,255,255,0.3)"
569
570
  },
570
571
  "success": "#38d373",
@@ -600,7 +601,8 @@
600
601
  },
601
602
  "info": {
602
603
  "subtle": "#b9d7ff"
603
- }
604
+ },
605
+ "accent": "#F13465"
604
606
  },
605
607
  "text": {
606
608
  "corp": {
@@ -1,10 +1,10 @@
1
1
  {
2
- "focus-pink": "0 0 0 8px hsl(344 87.1% 57.5% / 0.3)",
3
- "focus-indigo": "0 0 0 8px hsl(221 91.2% 35.7% / 0.3)",
2
+ "focus-pink": "0 0 0 8px rgba(241, 52, 101, 0.3)",
3
+ "focus-indigo": "0 0 0 8px rgba(8, 60, 174, 0.3)",
4
4
  "focus-bright-blue": "0 0 0 8px rgba(0,110,255,0.3)",
5
5
  "focus-white": "0 0 0 8px rgba(255,255,255,0.2)",
6
6
  "focus-sky": "0 0 0 8px rgba(206,216,240,0.4)",
7
- "focus-corp": "0 0 0 8px hsl(234 75.4% 12.7% / 0.1)",
7
+ "focus-corp": "0 0 0 8px rgba(8, 13, 57, 0.1)",
8
8
  "elevation-elevation-1": "0 1px 2px 0 rgba(8,13,57,0.12), 0 1px 6px 0 rgba(9,61,173,0.05)",
9
9
  "elevation-elevation-2": "0 3px 3px -1px rgba(8,13,57,0.12), 0 3px 12px 0 rgba(9,61,173,0.08)",
10
10
  "elevation-elevation-3": "0 4px 5px -3px rgba(8,13,56,0.12), 0 6px 18px 0 rgba(9,61,173,0.08)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.60",
3
+ "version": "3.0.0-beta.62",
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",
@@ -1,112 +0,0 @@
1
- "use strict";
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
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _Text = _interopRequireDefault(require("../Text"));
15
-
16
- var _Flexbox = _interopRequireDefault(require("../Flexbox"));
17
-
18
- var _Icon = _interopRequireDefault(require("../Icon"));
19
-
20
- var _colors = _interopRequireDefault(require("../subatomic/colors"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- 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); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
-
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
-
36
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
37
-
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); }
43
-
44
- var NavIcon = /*#__PURE__*/function (_React$Component) {
45
- _inherits(NavIcon, _React$Component);
46
-
47
- var _super = _createSuper(NavIcon);
48
-
49
- function NavIcon() {
50
- _classCallCheck(this, NavIcon);
51
-
52
- return _super.apply(this, arguments);
53
- }
54
-
55
- _createClass(NavIcon, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- classes = _this$props.classes,
60
- selected = _this$props.selected,
61
- label = _this$props.label,
62
- onClick = _this$props.onClick,
63
- direction = _this$props.direction,
64
- className = _this$props.className,
65
- testId = _this$props.testId,
66
- id = _this$props.id,
67
- iconName = _this$props.iconName,
68
- white = _this$props.white;
69
- var iconColor = white ? _colors["default"].bgWhite : _colors["default"].grey600;
70
- return /*#__PURE__*/_react["default"].createElement("div", {
71
- className: "".concat(classes.cont).concat(selected ? " ".concat(classes.selected) : '').concat(className ? " ".concat(className) : ''),
72
- onClick: onClick,
73
- "data-testid": testId,
74
- id: id
75
- }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
76
- display: "flex",
77
- direction: direction,
78
- justifyContent: "center",
79
- alignItems: "center",
80
- className: classes.flex
81
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
82
- iconName: iconName,
83
- colors: [iconColor]
84
- }), label && /*#__PURE__*/_react["default"].createElement(_Text["default"], {
85
- micro: true
86
- }, /*#__PURE__*/_react["default"].createElement("span", {
87
- className: classes.text
88
- }, label))));
89
- }
90
- }]);
91
-
92
- return NavIcon;
93
- }(_react["default"].Component);
94
-
95
- NavIcon.propTypes = {
96
- classes: _propTypes["default"].object.isRequired,
97
- selected: _propTypes["default"].bool,
98
- iconName: _propTypes["default"].string.isRequired,
99
- label: _propTypes["default"].string,
100
- onClick: _propTypes["default"].func,
101
- width: _propTypes["default"].number,
102
- showBar: _propTypes["default"].bool,
103
- direction: _propTypes["default"].oneOf(['col', 'row']),
104
- className: _propTypes["default"].string,
105
-
106
- /** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
107
- testId: _propTypes["default"].string,
108
- id: _propTypes["default"].string,
109
- white: _propTypes["default"].bool
110
- };
111
- var _default = NavIcon;
112
- exports["default"] = _default;
@@ -1,81 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _spacing = _interopRequireDefault(require("../subatomic/spacing"));
9
-
10
- var _colors = _interopRequireDefault(require("../subatomic/colors"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var _default = {
15
- cont: {
16
- width: function width(props) {
17
- return props.width ? props.width : null;
18
- },
19
- display: 'inline-block',
20
- height: _spacing["default"].xLarge,
21
- cursor: 'pointer',
22
- position: 'relative',
23
- '&:hover $svg': {
24
- fill: function fill(props) {
25
- return props.white ? _colors["default"].bgWhite : _colors["default"].grey900;
26
- },
27
- opacity: function opacity(props) {
28
- return props.white ? 0.6 : null;
29
- }
30
- },
31
- '&:hover $text': {
32
- color: function color(props) {
33
- return props.white ? _colors["default"].white : _colors["default"].ink;
34
- },
35
- opacity: function opacity(props) {
36
- return props.white ? 0.6 : null;
37
- }
38
- },
39
- '&:after': {
40
- content: '""',
41
- position: 'absolute',
42
- width: '100%',
43
- height: 3,
44
- bottom: 0,
45
- left: 0,
46
- background: 'transparent',
47
- transition: '0.3s all'
48
- }
49
- },
50
- flex: {
51
- height: _spacing["default"].xLarge
52
- },
53
- selected: {
54
- '& $svg, &:hover $svg': {
55
- fill: function fill(props) {
56
- return props.white ? _colors["default"].bgWhite : _colors["default"].prim;
57
- }
58
- },
59
- '& $text, &:hover $text': {
60
- color: function color(props) {
61
- return props.white ? _colors["default"].white : _colors["default"].prim;
62
- }
63
- },
64
- '&:after': {
65
- background: function background(props) {
66
- return props.showBar ? props.white ? _colors["default"].sec : _colors["default"].prim : null;
67
- }
68
- }
69
- },
70
- text: {
71
- color: function color(props) {
72
- return props.white ? _colors["default"].white : _colors["default"].inkLight;
73
- },
74
- marginLeft: function marginLeft(props) {
75
- return props.direction !== 'col' ? _spacing["default"].xTiny : null;
76
- },
77
- textTransform: 'uppercase',
78
- transition: '0.3s all'
79
- }
80
- };
81
- exports["default"] = _default;