@occmundial/occ-atomic 2.0.0-beta.1 → 2.0.0-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierrc +6 -0
- package/.whitesource +12 -0
- package/CHANGELOG.md +1354 -584
- package/CONTRIBUTING.md +24 -0
- package/README.md +21 -21
- package/build/Autocomplete/Autocomplete.js +217 -117
- package/build/Autocomplete/Autocomplete.test.js +90 -74
- package/build/Autocomplete/__snapshots__/Autocomplete.test.js.snap +20 -0
- package/build/Autocomplete/index.js +6 -1
- package/build/Autocomplete/styles.js +2 -5
- package/build/Avatar/Avatar.js +66 -28
- package/build/Avatar/Avatar.test.js +36 -13
- package/build/Avatar/AvatarContent/AvatarContent.js +11 -14
- package/build/Avatar/AvatarContent/AvatarContent.test.js +55 -50
- package/build/Avatar/AvatarContent/__snapshots__/AvatarContent.test.js.snap +41 -0
- package/build/Avatar/AvatarContent/index.js +6 -1
- package/build/Avatar/AvatarContent/styles.js +12 -11
- package/build/Avatar/__snapshots__/Avatar.test.js.snap +17 -0
- package/build/Avatar/index.js +22 -1
- package/build/Avatar/styles.js +2 -6
- package/build/Banner/Banner.js +76 -0
- package/build/Banner/Banner.test.js +40 -0
- package/build/Banner/__snapshots__/Banner.test.js.snap +33 -0
- package/build/Banner/index.js +18 -0
- package/build/Banner/styles.js +41 -0
- package/build/Button/Button.js +134 -61
- package/build/Button/Button.test.js +69 -20
- package/build/Button/Loading.js +82 -0
- package/build/Button/__snapshots__/Button.test.js.snap +322 -0
- package/build/Button/index.js +22 -1
- package/build/Button/styles.js +187 -178
- package/build/ButtonAlign/ButtonAlign.js +20 -16
- package/build/ButtonAlign/ButtonAlign.test.js +3 -3
- package/build/ButtonAlign/__snapshots__/ButtonAlign.test.js.snap +19 -0
- package/build/Card/Card.js +4 -5
- package/build/Card/Card.test.js +40 -35
- package/build/Card/__snapshots__/Card.test.js.snap +46 -0
- package/build/Card/index.js +22 -1
- package/build/Card/styles.js +2 -4
- package/build/Check/Check.js +18 -14
- package/build/Check/Check.test.js +7 -7
- package/build/Check/__snapshots__/Check.test.js.snap +92 -0
- package/build/Check/styles.js +2 -2
- package/build/Checkbox/Checkbox.js +106 -60
- package/build/Checkbox/Checkbox.test.js +58 -42
- package/build/Checkbox/__snapshots__/Checkbox.test.js.snap +92 -0
- package/build/Checkbox/index.js +4 -2
- package/build/Checkbox/styles.js +2 -5
- package/build/Column/Column.js +1 -1
- package/build/Column/Column.test.js +3 -3
- package/build/Column/__snapshots__/Column.test.js.snap +647 -0
- package/build/Container/Container.js +1 -1
- package/build/Container/Container.test.js +4 -4
- package/build/Container/__snapshots__/Container.test.js.snap +43 -0
- package/build/Droplist/Droplist.js +474 -227
- package/build/Droplist/Droplist.test.js +111 -87
- package/build/Droplist/__snapshots__/Droplist.test.js.snap +65 -0
- package/build/Droplist/functions.js +9 -2
- package/build/Droplist/index.js +22 -1
- package/build/Droplist/styles.js +41 -15
- package/build/Flexbox/Flexbox.js +64 -29
- package/build/Flexbox/Flexbox.test.js +32 -14
- package/build/Flexbox/__snapshots__/Flexbox.test.js.snap +106 -0
- package/build/Flexbox/index.js +22 -1
- package/build/Flexbox/styles.js +2 -6
- package/build/Footer/Footer.js +42 -30
- package/build/Footer/Footer.test.js +2 -2
- package/build/Footer/List/List.js +32 -25
- package/build/Footer/__snapshots__/Footer.test.js.snap +90 -0
- package/build/Footer/styles.js +5 -0
- package/build/Grid/Col/Col.js +15 -22
- package/build/Grid/Col/Col.test.js +33 -13
- package/build/Grid/Col/__snapshots__/Col.test.js.snap +963 -0
- package/build/Grid/Col/index.js +22 -1
- package/build/Grid/Col/styles.js +97 -116
- package/build/Grid/Grid.js +18 -12
- package/build/Grid/Row/Row.js +1 -1
- package/build/Grid/Row/Row.test.js +2 -2
- package/build/Grid/Row/__snapshots__/Row.test.js.snap +22 -0
- package/build/Grid/Row/index.js +4 -2
- package/build/Grid/index.js +4 -2
- package/build/Header/Header.js +35 -31
- package/build/Header/Header.test.js +8 -8
- package/build/Header/Menu/Menu.js +23 -19
- package/build/Header/Menu/Menu.test.js +7 -7
- package/build/Header/Menu/__snapshots__/Menu.test.js.snap +113 -0
- package/build/Header/Nav/Nav.js +19 -15
- package/build/Header/Nav/Nav.test.js +5 -5
- package/build/Header/Nav/__snapshots__/Nav.test.js.snap +101 -0
- package/build/Header/__snapshots__/Header.test.js.snap +79 -0
- package/build/Hidden/Hidden.js +17 -13
- package/build/Hidden/Hidden.test.js +6 -6
- package/build/Hidden/__snapshots__/Hidden.test.js.snap +3 -0
- package/build/Hidden/index.js +4 -2
- package/build/Icon/Icon.js +90 -15
- package/build/Icon/Icon.test.js +49 -56
- package/build/Icon/__snapshots__/Icon.test.js.snap +32 -0
- package/build/Icon/index.js +22 -1
- package/build/Icon/styles.js +16 -9
- package/build/Input/Input.js +29 -25
- package/build/Input/Input.test.js +21 -21
- package/build/Input/__snapshots__/Input.test.js.snap +194 -0
- package/build/Input/index.js +17 -13
- package/build/Label/Label.js +17 -13
- package/build/Label/Label.test.js +6 -6
- package/build/Label/__snapshots__/Label.test.js.snap +82 -0
- package/build/LayerApp/LayerApp.js +22 -18
- package/build/LayerApp/LayerApp.test.js +4 -4
- package/build/LayerApp/__snapshots__/LayerApp.test.js.snap +37 -0
- package/build/Modal/Modal.js +55 -37
- package/build/Modal/Modal.test.js +15 -12
- package/build/Modal/__snapshots__/Modal.test.js.snap +208 -0
- package/build/Modal/index.js +19 -13
- package/build/Modal/styles.js +43 -31
- package/build/NavAside/NavAside.js +24 -19
- package/build/NavAside/NavAside.test.js +15 -13
- package/build/NavAside/__snapshots__/NavAside.test.js.snap +116 -0
- package/build/NavAside/index.js +16 -12
- package/build/NavIcon/NavIcon.js +41 -20
- package/build/NavIcon/styles.js +6 -16
- package/build/NavItem/NavItem.js +29 -16
- package/build/NavTab/NavTab.js +38 -29
- package/build/NavTop/NavTop.js +20 -16
- package/build/OrderBy/OrderBy.js +23 -19
- package/build/OrderBy/OrderBy.test.js +6 -6
- package/build/OrderBy/__snapshots__/OrderBy.test.js.snap +54 -0
- package/build/Pager/Break/Break.js +1 -1
- package/build/Pager/Break/Break.test.js +4 -4
- package/build/Pager/Break/__snapshots__/Break.test.js.snap +13 -0
- package/build/Pager/Page/Page.js +1 -1
- package/build/Pager/Page/Page.test.js +5 -5
- package/build/Pager/Page/__snapshots__/Page.test.js.snap +27 -0
- package/build/Pager/Pager.js +21 -17
- package/build/Pager/Pager.test.js +12 -12
- package/build/Pager/__snapshots__/Pager.test.js.snap +50 -0
- package/build/Pager/styles.js +1 -1
- package/build/Pill/Choice/Choice.js +23 -18
- package/build/Pill/Choice/styles.js +8 -3
- package/build/Pill/Group/Group.js +7 -4
- package/build/Pill/Group/styles.js +7 -4
- package/build/Pill/Pill.js +36 -23
- package/build/Pill/Pill.test.js +12 -12
- package/build/Pill/Stack/Stack.js +10 -7
- package/build/Pill/Stack/styles.js +4 -1
- package/build/Pill/__snapshots__/Pill.test.js.snap +62 -0
- package/build/Pill/styles.js +6 -2
- package/build/Placeholder/Placeholder.js +2 -2
- package/build/Placeholder/Placeholder.test.js +3 -3
- package/build/Placeholder/__snapshots__/Placeholder.test.js.snap +130 -0
- package/build/Placeholder/styles.js +23 -16
- package/build/Provider/Provider.js +89 -0
- package/build/Provider/index.js +13 -0
- package/build/Provider/useAtomic.js +17 -0
- package/build/{hooks → Provider}/usePrevious.js +1 -1
- package/build/Radio/Radio.js +29 -15
- package/build/Radio/Radio.test.js +6 -6
- package/build/Radio/__snapshots__/Radio.test.js.snap +83 -0
- package/build/RangeCounter/RangeCounter.js +17 -13
- package/build/RangeCounter/RangeCounter.test.js +3 -3
- package/build/RangeCounter/__snapshots__/RangeCounter.test.js.snap +20 -0
- package/build/RangeCounter/styles.js +1 -1
- package/build/Row/Row.js +1 -1
- package/build/Row/Row.test.js +2 -2
- package/build/Row/__snapshots__/Row.test.js.snap +22 -0
- package/build/SightLogo/SightLogo.js +2 -2
- package/build/SightLogo/SightLogo.test.js +2 -2
- package/build/SightLogo/__snapshots__/SightLogo.test.js.snap +24 -0
- package/build/SlideDown/SlideDown.js +41 -27
- package/build/SlideDown/SlideDown.test.js +22 -16
- package/build/SlideDown/__snapshots__/SlideDown.test.js.snap +42 -0
- package/build/SlideToggle/SlideToggle.js +31 -17
- package/build/SlideToggle/SlideToggle.test.js +7 -7
- package/build/SlideToggle/__snapshots__/SlideToggle.test.js.snap +62 -0
- package/build/SubHeader/SubHeader.js +20 -16
- package/build/SubHeader/SubHeader.test.js +7 -7
- package/build/SubHeader/__snapshots__/SubHeader.test.js.snap +50 -0
- package/build/SwitchGroup/SwitchGroup.js +17 -13
- package/build/SwitchGroup/SwitchGroup.test.js +6 -6
- package/build/SwitchGroup/__snapshots__/SwitchGroup.test.js.snap +52 -0
- package/build/SwitchGroup/styles.js +1 -1
- package/build/Tag/Tag.js +27 -10
- package/build/Tag/Tag.test.js +8 -8
- package/build/Tag/__snapshots__/Tag.test.js.snap +137 -0
- package/build/Tag/styles.js +72 -27
- package/build/Text/Text.js +454 -122
- package/build/Text/Text.test.js +13 -13
- package/build/Text/__snapshots__/Text.test.js.snap +216 -0
- package/build/Text/styles.js +171 -78
- package/build/TextField/TextField.js +455 -302
- package/build/TextField/TextField.test.js +138 -146
- package/build/TextField/__snapshots__/TextField.test.js.snap +258 -0
- package/build/TextField/index.js +6 -1
- package/build/TextField/styles.js +99 -33
- package/build/Tip/Tip.js +91 -27
- package/build/Tip/Tip.test.js +8 -8
- package/build/Tip/__snapshots__/Tip.test.js.snap +49 -0
- package/build/Tip/styles.js +32 -12
- package/build/Title/Title.js +16 -12
- package/build/Title/Title.test.js +3 -3
- package/build/Title/__snapshots__/Title.test.js.snap +31 -0
- package/build/Toaster/Toast/Toast.js +11 -11
- package/build/Toaster/Toaster.js +27 -23
- package/build/Toaster/Toaster.test.js +6 -6
- package/build/Toaster/__snapshots__/Toaster.test.js.snap +5 -0
- package/build/Tooltip/Tooltip.js +210 -0
- package/build/Tooltip/Tooltip.test.js +35 -0
- package/build/Tooltip/__snapshots__/Tooltip.test.js.snap +33 -0
- package/build/Tooltip/hooks.js +132 -0
- package/build/Tooltip/index.js +18 -0
- package/build/Tooltip/styles.js +44 -0
- package/build/TourTip/TourTip.js +15 -11
- package/build/TourTip/TourTip.test.js +2 -2
- package/build/TourTip/__snapshots__/TourTip.test.js.snap +74 -0
- package/build/Visible/Visible.js +16 -12
- package/build/Visible/Visible.test.js +4 -4
- package/build/Visible/__snapshots__/Visible.test.js.snap +3 -0
- package/build/WindowSize/WindowSize.js +17 -11
- package/build/WindowSize/WindowSize.test.js +4 -4
- package/build/WindowSize/__snapshots__/WindowSize.test.js.snap +3 -0
- package/build/index.js +82 -8
- package/build/plugin/babel.js +61 -0
- package/build/subatomic/colors.js +8 -3
- package/build/subatomic/fonts.js +1 -1
- package/build/subatomic/icons/attachment.js +23 -0
- package/build/subatomic/icons/attachmentSolid.js +23 -0
- package/build/subatomic/icons/avatarSmile.js +23 -0
- package/build/subatomic/icons/book.js +23 -0
- package/build/subatomic/icons/cash.js +23 -0
- package/build/subatomic/icons/copy.js +23 -0
- package/build/subatomic/icons/copySolid.js +23 -0
- package/build/subatomic/icons/crossSolid.js +23 -0
- package/build/subatomic/icons/dislike.js +1 -1
- package/build/subatomic/icons/dislikeSolid.js +23 -0
- package/build/subatomic/icons/energy.js +23 -0
- package/build/subatomic/icons/energySolid.js +23 -0
- package/build/subatomic/icons/eye.js +1 -1
- package/build/subatomic/icons/eyeClosed.js +1 -1
- package/build/subatomic/icons/eyeClosedSolid.js +23 -0
- package/build/subatomic/icons/eyeSolid.js +23 -0
- package/build/subatomic/icons/hourGlass.js +23 -0
- package/build/subatomic/icons/like.js +1 -1
- package/build/subatomic/icons/likeSolid.js +23 -0
- package/build/subatomic/icons/location.js +23 -0
- package/build/subatomic/icons/locationSolid.js +23 -0
- package/build/subatomic/icons/matchJob.js +23 -0
- package/build/subatomic/icons/messages.js +1 -1
- package/build/subatomic/icons/messagesSolid.js +1 -1
- package/build/subatomic/icons/moreOptionsHorizontal.js +23 -0
- package/build/subatomic/icons/noMessages.js +23 -0
- package/build/subatomic/icons/noMessagesSolid.js +23 -0
- package/build/subatomic/icons/occDart.js +25 -8
- package/build/subatomic/icons/occHorizontal.js +25 -8
- package/build/subatomic/icons/occLogo.js +65 -0
- package/build/subatomic/icons/occVertical.js +25 -8
- package/build/subatomic/icons/profile.js +23 -0
- package/build/subatomic/icons/profileSolid.js +23 -0
- package/build/subatomic/icons/profileView.js +23 -0
- package/build/subatomic/icons/refresh.js +23 -0
- package/build/subatomic/icons/refreshSolid.js +23 -0
- package/build/subatomic/icons/sendMessage.js +23 -0
- package/build/subatomic/icons/sendMessageSolid.js +23 -0
- package/build/subatomic/icons/starsSolid.js +23 -0
- package/build/subatomic/icons/suitcase.js +23 -0
- package/build/subatomic/icons/suitcaseSolid.js +23 -0
- package/build/subatomic/icons/tag.js +1 -1
- package/build/subatomic/icons/tagSolid.js +23 -0
- package/build/subatomic/icons/trash.js +1 -1
- package/build/subatomic/icons/trashSolid.js +1 -1
- package/build/subatomic/icons/warning.js +23 -0
- package/build/subatomic/icons/warningSolid.js +23 -0
- package/build/subatomic/icons/webSite.js +23 -0
- package/build/subatomic/icons/webSiteSolid.js +23 -0
- package/build/subatomic/icons.js +230 -112
- package/build/subatomic/mappedIcons.js +171 -0
- package/build/tokens/borderRadius.json +8 -0
- package/build/tokens/colors.json +567 -0
- package/build/tokens/fonts.json +231 -0
- package/build/tokens/index.js +47 -0
- package/build/tokens/shadows.json +13 -0
- package/build/tokens/spacing.json +16 -0
- package/commitlint.config.js +6 -0
- package/package.json +124 -113
- package/playroom/FrameComponent.js +31 -0
- package/playroom/styles.js +14 -0
- package/playroom.config.js +7 -7
- package/build/Grid/Grid.test.js +0 -22
- package/build/Grid/Row/Rowdsd.js +0 -39
- package/build/hooks/useEventListener.js +0 -23
- package/yarn-error.log +0 -10737
@@ -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,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
13
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
15
|
|
14
|
-
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); }
|
15
|
-
|
16
16
|
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); }
|
17
17
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -21,27 +21,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
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
|
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
|
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
|
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
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
33
37
|
|
34
|
-
var Menu =
|
35
|
-
/*#__PURE__*/
|
36
|
-
function (_React$Component) {
|
38
|
+
var Menu = /*#__PURE__*/function (_React$Component) {
|
37
39
|
_inherits(Menu, _React$Component);
|
38
40
|
|
41
|
+
var _super = _createSuper(Menu);
|
42
|
+
|
39
43
|
function Menu(props) {
|
40
44
|
var _this;
|
41
45
|
|
42
46
|
_classCallCheck(this, Menu);
|
43
47
|
|
44
|
-
_this =
|
48
|
+
_this = _super.call(this, props);
|
45
49
|
_this.state = {
|
46
50
|
open: false
|
47
51
|
};
|
@@ -86,30 +90,30 @@ function (_React$Component) {
|
|
86
90
|
id = _this$props.id,
|
87
91
|
label = _this$props.label,
|
88
92
|
buttons = _this$props.buttons;
|
89
|
-
return _react["default"].createElement("div", {
|
93
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
90
94
|
id: id,
|
91
95
|
className: classes.menu
|
92
|
-
}, _react["default"].createElement("div", {
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
93
97
|
className: classes.btnContainer
|
94
|
-
}, _react["default"].createElement("button", {
|
98
|
+
}, /*#__PURE__*/_react["default"].createElement("button", {
|
95
99
|
className: "".concat(classes.btnMenu, " ").concat(open ? classes.btnMenuOpen : ''),
|
96
100
|
onClick: this.toggleMenu
|
97
|
-
}, _react["default"].createElement("p", {
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
98
102
|
className: classes.label
|
99
|
-
}, label), _react["default"].createElement("i", {
|
103
|
+
}, label), /*#__PURE__*/_react["default"].createElement("i", {
|
100
104
|
className: classes.menuIcon
|
101
|
-
})), _react["default"].createElement("ul", {
|
105
|
+
})), /*#__PURE__*/_react["default"].createElement("ul", {
|
102
106
|
className: "".concat(classes.dropdownMenu, " ").concat(open ? classes.dropdownMenuOpen : '')
|
103
107
|
}, buttons.map(function (button, index) {
|
104
108
|
if (button == 'separator') {
|
105
|
-
return _react["default"].createElement("li", {
|
109
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
106
110
|
key: index,
|
107
111
|
className: classes.separator
|
108
112
|
});
|
109
113
|
} else {
|
110
|
-
return _react["default"].createElement("li", {
|
114
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
111
115
|
key: button.id
|
112
|
-
}, _react["default"].createElement("a", _extends({
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement("a", _extends({
|
113
117
|
className: "".concat(classes.listAnchor).concat(button.type == "signOut" ? " ".concat(classes.signOut) : '')
|
114
118
|
}, button), button.label));
|
115
119
|
}
|
@@ -39,14 +39,14 @@ var buttons = [{
|
|
39
39
|
}];
|
40
40
|
describe("Menu", function () {
|
41
41
|
it('matches the snapshot', function () {
|
42
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
42
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
43
43
|
classes: classes,
|
44
44
|
buttons: buttons
|
45
45
|
}));
|
46
46
|
expect(wrapper).toMatchSnapshot();
|
47
47
|
});
|
48
48
|
it('renders the label', function () {
|
49
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
49
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
50
50
|
classes: classes,
|
51
51
|
label: "Menu",
|
52
52
|
buttons: buttons
|
@@ -55,7 +55,7 @@ describe("Menu", function () {
|
|
55
55
|
});
|
56
56
|
it('toggles the menu', function () {
|
57
57
|
var propagation = jest.fn();
|
58
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
58
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
59
59
|
classes: classes,
|
60
60
|
buttons: buttons
|
61
61
|
}));
|
@@ -66,21 +66,21 @@ describe("Menu", function () {
|
|
66
66
|
expect(wrapper.find('.dropdownMenu').hasClass('dropdownMenuOpen')).toBe(true);
|
67
67
|
});
|
68
68
|
it('renders all the items', function () {
|
69
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
69
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
70
70
|
classes: classes,
|
71
71
|
buttons: buttons
|
72
72
|
}));
|
73
73
|
expect(wrapper.find('li').length).toBe(5);
|
74
74
|
});
|
75
75
|
it('renders a separator', function () {
|
76
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
76
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
77
77
|
classes: classes,
|
78
78
|
buttons: buttons
|
79
79
|
}));
|
80
80
|
expect(wrapper.find('li').at(3).hasClass('separator')).toBe(true);
|
81
81
|
});
|
82
82
|
it('renders a button to sign out', function () {
|
83
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Menu["default"], {
|
83
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Menu["default"], {
|
84
84
|
classes: classes,
|
85
85
|
buttons: buttons
|
86
86
|
}));
|
@@ -94,7 +94,7 @@ describe("MenuJSS", function () {
|
|
94
94
|
href: 'http://occ.com.mx',
|
95
95
|
label: 'Item 1'
|
96
96
|
}];
|
97
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
|
97
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
98
98
|
buttons: buttons
|
99
99
|
}));
|
100
100
|
expect(wrapper).toMatchSnapshot();
|
@@ -0,0 +1,113 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Menu matches the snapshot 1`] = `ShallowWrapper {}`;
|
4
|
+
|
5
|
+
exports[`Menu styles matches the snapshot 1`] = `
|
6
|
+
Object {
|
7
|
+
"@media (max-width: 767px)": Object {
|
8
|
+
"dropdownMenu": Object {
|
9
|
+
"width": "200px",
|
10
|
+
},
|
11
|
+
},
|
12
|
+
"btnContainer": Object {
|
13
|
+
"display": "inline-block",
|
14
|
+
"position": "relative",
|
15
|
+
"verticalAlign": "middle",
|
16
|
+
},
|
17
|
+
"btnMenu": Object {
|
18
|
+
"&:hover": Object {
|
19
|
+
"background": "#ffffff",
|
20
|
+
"color": "#1476fb",
|
21
|
+
},
|
22
|
+
"&:hover $menuIcon": Object {
|
23
|
+
"background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iIzE0NzZmYiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
|
24
|
+
},
|
25
|
+
"background": "none",
|
26
|
+
"border": "none",
|
27
|
+
"borderRadius": "3px",
|
28
|
+
"color": "#ffffff",
|
29
|
+
"cursor": "pointer",
|
30
|
+
"marginLeft": "10px",
|
31
|
+
"outline": "none !important",
|
32
|
+
"padding": "5px 10px 2px 10px",
|
33
|
+
"transition": "0.3s all",
|
34
|
+
},
|
35
|
+
"btnMenuOpen": Object {
|
36
|
+
"& $menuIcon": Object {
|
37
|
+
"background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjMTQ3NmZiIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iIzE0NzZmYiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
|
38
|
+
},
|
39
|
+
"background": "#ffffff",
|
40
|
+
"color": "#1476fb",
|
41
|
+
},
|
42
|
+
"dropdownMenu": Object {
|
43
|
+
"backgroundClip": "padding-box",
|
44
|
+
"backgroundColor": "#ffffff",
|
45
|
+
"border": "1px solid rgba(0,0,0,.15)",
|
46
|
+
"boxShadow": "0 6px 12px rgba(0,0,0,.175)",
|
47
|
+
"display": "none",
|
48
|
+
"float": "left",
|
49
|
+
"fontSize": "14px",
|
50
|
+
"listStyle": "none",
|
51
|
+
"margin": "13px 0 0 -187px",
|
52
|
+
"minWidth": "160px",
|
53
|
+
"padding": "5px 0",
|
54
|
+
"position": "absolute",
|
55
|
+
"right": "0",
|
56
|
+
"textAlign": "left",
|
57
|
+
"top": "100%",
|
58
|
+
"zIndex": "1000",
|
59
|
+
},
|
60
|
+
"dropdownMenuOpen": Object {
|
61
|
+
"display": "block",
|
62
|
+
},
|
63
|
+
"label": Object {
|
64
|
+
"display": "inline-block",
|
65
|
+
"margin": "0",
|
66
|
+
"maxWidth": "65px",
|
67
|
+
"overflow": "hidden",
|
68
|
+
"paddingRight": "5px",
|
69
|
+
"textOverflow": "ellipsis",
|
70
|
+
"whiteSpace": "nowrap",
|
71
|
+
},
|
72
|
+
"listAnchor": Object {
|
73
|
+
"&:hover, &:focus": Object {
|
74
|
+
"color": "#1476fb",
|
75
|
+
"textDecoration": "none",
|
76
|
+
},
|
77
|
+
"clear": "both",
|
78
|
+
"color": "#000",
|
79
|
+
"cursor": "pointer",
|
80
|
+
"display": "block",
|
81
|
+
"fontWeight": "400",
|
82
|
+
"lineHeight": "1.42857143",
|
83
|
+
"margin": "5px 0 5px 0",
|
84
|
+
"padding": "0 10px",
|
85
|
+
"textDecoration": "none",
|
86
|
+
"whiteSpace": "nowrap",
|
87
|
+
},
|
88
|
+
"menu": Object {
|
89
|
+
"cursor": "pointer !important",
|
90
|
+
"display": "inline-block",
|
91
|
+
"marginTop": "5px",
|
92
|
+
},
|
93
|
+
"menuIcon": Object {
|
94
|
+
"background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjRkZGRkZGIiBjeD0iNy45IiBjeT0iMi45IiByPSIxLjUiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSIjRkZGRkZGIiBjeD0iNy45IiBjeT0iMTIuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iI0ZGRkZGRiIgY3g9IjcuOSIgY3k9IjcuOSIgcj0iMS41Ii8+CiAgICAgICAgICAgIDwvc3ZnPg==)",
|
95
|
+
"backgroundPosition": "center center",
|
96
|
+
"backgroundRepeat": "no-repeat",
|
97
|
+
"display": "inline-block",
|
98
|
+
"height": "16px",
|
99
|
+
"transition": "0.3s all",
|
100
|
+
"width": "16px",
|
101
|
+
},
|
102
|
+
"separator": Object {
|
103
|
+
"background": "#ebebeb",
|
104
|
+
"height": "1px",
|
105
|
+
},
|
106
|
+
"signOut": Object {
|
107
|
+
"color": "#ff456a !important",
|
108
|
+
"margin": "10px 0 5px 0",
|
109
|
+
},
|
110
|
+
}
|
111
|
+
`;
|
112
|
+
|
113
|
+
exports[`MenuJSS matches the snapshot 1`] = `ShallowWrapper {}`;
|
package/build/Header/Nav/Nav.js
CHANGED
@@ -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,33 +17,35 @@ var _colors = _interopRequireDefault(require("../../subatomic/colors"));
|
|
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
|
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
27
|
|
28
|
-
function
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
29
29
|
|
30
|
-
function
|
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
31
|
|
32
|
-
function
|
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); }
|
33
33
|
|
34
|
-
function
|
34
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
35
|
+
|
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; } }
|
35
37
|
|
36
|
-
|
37
|
-
|
38
|
-
function (_React$Component) {
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
39
|
+
|
40
|
+
var Nav = /*#__PURE__*/function (_React$Component) {
|
39
41
|
_inherits(Nav, _React$Component);
|
40
42
|
|
43
|
+
var _super = _createSuper(Nav);
|
44
|
+
|
41
45
|
function Nav() {
|
42
46
|
_classCallCheck(this, Nav);
|
43
47
|
|
44
|
-
return
|
48
|
+
return _super.apply(this, arguments);
|
45
49
|
}
|
46
50
|
|
47
51
|
_createClass(Nav, [{
|
@@ -59,19 +63,19 @@ function (_React$Component) {
|
|
59
63
|
active = _this$props.active,
|
60
64
|
navigate = _this$props.navigate,
|
61
65
|
buttons = _this$props.buttons;
|
62
|
-
return _react["default"].createElement("ul", {
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("ul", {
|
63
67
|
className: classes.menu
|
64
68
|
}, buttons.map(function (button) {
|
65
|
-
return _react["default"].createElement("li", {
|
69
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
66
70
|
key: button.id,
|
67
71
|
onClick: navigate,
|
68
72
|
className: "".concat(classes.listItem, " ").concat(active == button.id ? classes.activeItem : ''),
|
69
73
|
id: button.id
|
70
|
-
}, _react["default"].createElement(_Icon["default"], {
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
71
75
|
iconName: button.icon,
|
72
76
|
colors: active == button.id ? [_colors["default"].white] : [_colors["default"].darkBlue],
|
73
77
|
className: classes.icon
|
74
|
-
}), _react["default"].createElement("a", {
|
78
|
+
}), /*#__PURE__*/_react["default"].createElement("a", {
|
75
79
|
className: classes.listAnchor
|
76
80
|
}, button.label));
|
77
81
|
}));
|
@@ -34,14 +34,14 @@ var buttons = [{
|
|
34
34
|
}];
|
35
35
|
describe("Nav", function () {
|
36
36
|
it('matches the snapshot', function () {
|
37
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
|
37
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
|
38
38
|
classes: classes,
|
39
39
|
buttons: buttons
|
40
40
|
}));
|
41
41
|
expect(wrapper).toMatchSnapshot();
|
42
42
|
});
|
43
43
|
it('renders all the buttons', function () {
|
44
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
|
44
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
|
45
45
|
classes: classes,
|
46
46
|
buttons: buttons
|
47
47
|
}));
|
@@ -49,7 +49,7 @@ describe("Nav", function () {
|
|
49
49
|
});
|
50
50
|
it('calls the onClick function', function () {
|
51
51
|
var onClick = jest.fn();
|
52
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
|
52
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
|
53
53
|
classes: classes,
|
54
54
|
navigate: onClick,
|
55
55
|
buttons: buttons
|
@@ -58,7 +58,7 @@ describe("Nav", function () {
|
|
58
58
|
expect(onClick.mock.calls.length).toBe(1);
|
59
59
|
});
|
60
60
|
it('sets an active button', function () {
|
61
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_Nav["default"], {
|
61
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Nav["default"], {
|
62
62
|
classes: classes,
|
63
63
|
active: "item1",
|
64
64
|
buttons: buttons
|
@@ -68,7 +68,7 @@ describe("Nav", function () {
|
|
68
68
|
});
|
69
69
|
describe("NavJSS", function () {
|
70
70
|
it('matches the snapshot', function () {
|
71
|
-
var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_index["default"], {
|
71
|
+
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
72
72
|
buttons: buttons
|
73
73
|
}));
|
74
74
|
expect(wrapper).toMatchSnapshot();
|
@@ -0,0 +1,101 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Nav matches the snapshot 1`] = `ShallowWrapper {}`;
|
4
|
+
|
5
|
+
exports[`Nav styles matches the snapshot 1`] = `
|
6
|
+
Object {
|
7
|
+
"@media (max-width: 767px)": Object {
|
8
|
+
"activeItem": Object {
|
9
|
+
"& $icon": Object {
|
10
|
+
"marginBottom": "14px",
|
11
|
+
},
|
12
|
+
"& $listAnchor": Object {
|
13
|
+
"display": "none",
|
14
|
+
},
|
15
|
+
"&:after": Object {
|
16
|
+
"background": "#06f7fa",
|
17
|
+
"borderRadius": "50%",
|
18
|
+
"bottom": "0",
|
19
|
+
"content": "\\"\\"",
|
20
|
+
"display": "block",
|
21
|
+
"height": "4px",
|
22
|
+
"left": "50%",
|
23
|
+
"marginBottom": "8px",
|
24
|
+
"position": "absolute",
|
25
|
+
"transform": "translateX(-50%)",
|
26
|
+
"width": "4px",
|
27
|
+
},
|
28
|
+
},
|
29
|
+
"icon": Object {},
|
30
|
+
"listAnchor": Object {},
|
31
|
+
"listItem": Object {
|
32
|
+
"&:last-child": Object {
|
33
|
+
"marginRight": "0",
|
34
|
+
},
|
35
|
+
"margin": "0 25px 0 0",
|
36
|
+
},
|
37
|
+
"menu": Object {
|
38
|
+
"clear": "both",
|
39
|
+
"margin": "0",
|
40
|
+
"textAlign": "center",
|
41
|
+
},
|
42
|
+
},
|
43
|
+
"@media (min-width: 768px)": Object {
|
44
|
+
"listItem": Object {
|
45
|
+
"float": "left",
|
46
|
+
},
|
47
|
+
"menu": Object {
|
48
|
+
"float": "left",
|
49
|
+
},
|
50
|
+
},
|
51
|
+
"activeItem": Object {
|
52
|
+
"& $icon, &:hover $icon": Object {
|
53
|
+
"filter": "brightness(1)",
|
54
|
+
},
|
55
|
+
"& $listAnchor, &:hover $listAnchor": Object {
|
56
|
+
"color": "#ffffff",
|
57
|
+
},
|
58
|
+
},
|
59
|
+
"icon": Object {
|
60
|
+
"backgroundPosition": "center center",
|
61
|
+
"backgroundRepeat": "no-repeat",
|
62
|
+
},
|
63
|
+
"listAnchor": Object {
|
64
|
+
"color": "#104791",
|
65
|
+
"display": "block",
|
66
|
+
"lineHeight": "20px",
|
67
|
+
"marginBottom": "2px",
|
68
|
+
"marginTop": "-4px",
|
69
|
+
"padding": "0",
|
70
|
+
"position": "relative",
|
71
|
+
"textAlign": "center",
|
72
|
+
"textDecoration": "none !important",
|
73
|
+
"transition": "0.3s all",
|
74
|
+
},
|
75
|
+
"listItem": Object {
|
76
|
+
"&:hover $icon": Object {
|
77
|
+
"filter": "brightness(0.8)",
|
78
|
+
},
|
79
|
+
"&:hover $listAnchor": Object {
|
80
|
+
"color": "#224099",
|
81
|
+
},
|
82
|
+
"cursor": "pointer",
|
83
|
+
"display": "inline-block",
|
84
|
+
"fontSize": "12px",
|
85
|
+
"margin": "7px 30px 0 0",
|
86
|
+
"padding": "5px 0 0 0",
|
87
|
+
"position": "relative",
|
88
|
+
"textAlign": "center",
|
89
|
+
"width": "auto",
|
90
|
+
},
|
91
|
+
"menu": Object {
|
92
|
+
"background": "#1476fb",
|
93
|
+
"listStyle": "none",
|
94
|
+
"margin": "0 10px",
|
95
|
+
"paddingLeft": "0",
|
96
|
+
"textAlign": "center",
|
97
|
+
},
|
98
|
+
}
|
99
|
+
`;
|
100
|
+
|
101
|
+
exports[`NavJSS matches the snapshot 1`] = `ShallowWrapper {}`;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Header matches the snapshot 1`] = `ShallowWrapper {}`;
|
4
|
+
|
5
|
+
exports[`Header styles matches the snapshot 1`] = `
|
6
|
+
Object {
|
7
|
+
"@media (max-width: 767px)": Object {
|
8
|
+
"content": Object {
|
9
|
+
"borderTop": "1px solid transparent",
|
10
|
+
},
|
11
|
+
"master": Object {
|
12
|
+
"boxShadow": "none",
|
13
|
+
"left": "0",
|
14
|
+
"position": "fixed",
|
15
|
+
"top": "0",
|
16
|
+
"width": "100%",
|
17
|
+
"zIndex": "10",
|
18
|
+
},
|
19
|
+
},
|
20
|
+
"@media (min-width: 1200px)": Object {
|
21
|
+
"master": Object {
|
22
|
+
"padding": "0 45px 0 45px",
|
23
|
+
},
|
24
|
+
},
|
25
|
+
"bubble": Object {
|
26
|
+
"background": "url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICAgICAgICAgICAJIHZpZXdCb3g9IjAgMCA1MCA0MS45IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MCA0MS45OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiNERkVERkYiIGQ9Ik0yNSwwQzExLjIsMCwwLDkuMSwwLDIwLjNjMCw0LDEuNSw3LjgsNCwxMC45YzAuMywwLjQsMSwxLDAuOCwxLjhjLTAuMSwwLjUtMi4zLDcuNi0yLjMsNy42CiAgICAgICAgICAgIAljLTAuMiwwLjYsMC4yLDEuMywxLDEuM2MwLjYsMCwxLTAuMiwxLTAuMnM3LjQtMyw3LjgtMy4yYzEtMC41LDIuNC0wLjEsMywwLjFjMywxLDYuMywxLjQsOS44LDEuNEMzOC45LDQwLDUwLDMxLjYsNTAsMjAuNAogICAgICAgICAgICAJQzUwLDkuMSwzOC44LDAsMjUsMHoiLz4KICAgICAgICAgICAgPC9zdmc+)",
|
27
|
+
"display": "block",
|
28
|
+
"height": "25px",
|
29
|
+
"width": "25px",
|
30
|
+
},
|
31
|
+
"content": Object {
|
32
|
+
"borderBottom": "1px solid transparent",
|
33
|
+
"boxShadow": "0px 0px 0px 0px rgba(0, 0, 0, 0.75)",
|
34
|
+
},
|
35
|
+
"master": Object {
|
36
|
+
"backgroundColor": "#1476fb",
|
37
|
+
"boxShadow": "0 6px 5px -3px rgba(0,0,0,0.12), 0 6px 18px 0 rgba(0,29,124,0.08)",
|
38
|
+
"minHeight": "60px",
|
39
|
+
"padding": "0 15px 0 15px",
|
40
|
+
},
|
41
|
+
"messages": Object {
|
42
|
+
"cursor": "pointer",
|
43
|
+
"display": "inline-flex",
|
44
|
+
"outline": "0",
|
45
|
+
"transform": "translateY(30%)",
|
46
|
+
},
|
47
|
+
"navbar": Object {
|
48
|
+
"border": "none",
|
49
|
+
"fontFamily": "'OccText', sans-serif",
|
50
|
+
"position": "relative",
|
51
|
+
"zIndex": "9",
|
52
|
+
},
|
53
|
+
"separate": Object {
|
54
|
+
"marginTop": "60px",
|
55
|
+
"position": "relative",
|
56
|
+
"zIndex": "9",
|
57
|
+
},
|
58
|
+
"shadow": Object {
|
59
|
+
"boxShadow": "0 6px 5px -3px rgba(0,0,0,0.12), 0 6px 18px 0 rgba(0,29,124,0.08) !important",
|
60
|
+
},
|
61
|
+
"title": Object {
|
62
|
+
"color": "#ffffff",
|
63
|
+
"float": "left",
|
64
|
+
"fontSize": "16px",
|
65
|
+
"overflow": "hidden",
|
66
|
+
"paddingBottom": "5px",
|
67
|
+
"paddingTop": "17px",
|
68
|
+
"textOverflow": "ellipsis",
|
69
|
+
"whiteSpace": "nowrap",
|
70
|
+
"width": "calc(100% - 150px)",
|
71
|
+
},
|
72
|
+
"user": Object {
|
73
|
+
"float": "right !important",
|
74
|
+
"paddingTop": "9px",
|
75
|
+
},
|
76
|
+
}
|
77
|
+
`;
|
78
|
+
|
79
|
+
exports[`HeaderJSS matches the snapshot 1`] = `ShallowWrapper {}`;
|