@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.
- package/CHANGELOG.md +15 -0
- package/build/MenuDivider/MenuDivider.js +47 -0
- package/build/MenuDivider/index.js +18 -0
- package/build/MenuDivider/styles.js +21 -0
- package/build/MenuItem/MenuItem.js +160 -0
- package/build/MenuItem/index.js +18 -0
- package/build/MenuItem/styles.js +25 -0
- package/build/MenuItemBase/MenuItemBase.js +98 -0
- package/build/MenuItemBase/index.js +18 -0
- package/build/MenuItemBase/styles.js +57 -0
- package/build/MenuList/MenuList.js +71 -0
- package/build/MenuList/index.js +18 -0
- package/build/MenuList/styles.js +54 -0
- package/build/MenuUser/MenuUser.js +153 -0
- package/build/MenuUser/index.js +18 -0
- package/build/MenuUser/styles.js +22 -0
- package/build/NavAvatarButton/NavAvatarButton.js +128 -0
- package/build/NavAvatarButton/index.js +18 -0
- package/build/NavAvatarButton/styles.js +30 -0
- package/build/NavButton/NavButton.js +73 -0
- package/build/{NavIcon → NavButton}/index.js +2 -2
- package/build/NavButton/styles.js +79 -0
- package/build/NavItem/styles.js +4 -4
- package/build/NavTab/NavTab.js +45 -32
- package/build/NavTab/styles.js +63 -28
- package/build/NavTop/styles.js +6 -6
- package/build/Provider/MenuListProvider.js +38 -0
- package/build/index.js +14 -2
- package/build/tokens/colors.json +64 -62
- package/build/tokens/shadows.json +3 -3
- package/package.json +1 -1
- package/build/NavIcon/NavIcon.js +0 -112
- package/build/NavIcon/styles.js +0 -81
package/build/tokens/colors.json
CHANGED
@@ -99,43 +99,43 @@
|
|
99
99
|
"100": "#fff"
|
100
100
|
},
|
101
101
|
"indigo": {
|
102
|
-
"5": "
|
103
|
-
"10": "
|
104
|
-
"20": "
|
105
|
-
"30": "
|
106
|
-
"40": "
|
107
|
-
"50": "
|
108
|
-
"60": "
|
109
|
-
"70": "
|
110
|
-
"80": "
|
111
|
-
"90": "
|
112
|
-
"100": "
|
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": "
|
116
|
-
"10": "
|
117
|
-
"20": "
|
118
|
-
"30": "
|
119
|
-
"40": "
|
120
|
-
"50": "
|
121
|
-
"60": "
|
122
|
-
"70": "
|
123
|
-
"80": "
|
124
|
-
"90": "
|
125
|
-
"100": "
|
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": "
|
129
|
-
"10": "
|
130
|
-
"20": "
|
131
|
-
"30": "
|
132
|
-
"40": "
|
133
|
-
"50": "
|
134
|
-
"60": "
|
135
|
-
"70": "
|
136
|
-
"80": "
|
137
|
-
"90": "
|
138
|
-
"100": "
|
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": "
|
206
|
-
"hover": "
|
207
|
-
"active": "
|
208
|
-
"disabled": "
|
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": "
|
220
|
-
"active": "
|
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": "
|
238
|
-
"active": "
|
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": "
|
308
|
-
"active": "
|
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": "
|
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": "
|
440
|
-
"active": "
|
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": "
|
468
|
-
"hover": "
|
469
|
-
"active": "
|
470
|
-
"disabled": "
|
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": "
|
482
|
-
"active": "
|
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": "
|
508
|
-
"hover": "
|
509
|
-
"active": "
|
510
|
-
"disabled": "
|
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": "
|
520
|
-
"active": "
|
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": "
|
539
|
-
"active": "
|
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
|
-
"
|
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
|
3
|
-
"focus-indigo": "0 0 0 8px
|
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
|
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.
|
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",
|
package/build/NavIcon/NavIcon.js
DELETED
@@ -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;
|
package/build/NavIcon/styles.js
DELETED
@@ -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;
|