blue-react 8.8.3 → 9.0.0-alpha1
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/dist/components/ActionMenu.js +109 -98
- package/dist/components/ActionMenuSwitch.js +55 -44
- package/dist/components/Body.js +50 -38
- package/dist/components/Caret.js +32 -19
- package/dist/components/DocumentView.js +88 -76
- package/dist/components/Header.js +34 -22
- package/dist/components/HeaderTitle.js +66 -54
- package/dist/components/Intro.js +48 -35
- package/dist/components/Layout.js +295 -283
- package/dist/components/MenuItem.js +139 -130
- package/dist/components/Modal.js +173 -164
- package/dist/components/ModalProvider.js +195 -184
- package/dist/components/Outside.js +63 -50
- package/dist/components/Page.js +74 -62
- package/dist/components/Search.js +168 -157
- package/dist/components/SidebarMenu.js +69 -56
- package/dist/components/SlimContainer.js +34 -21
- package/dist/components/Status.js +76 -64
- package/dist/components/StatusProvider.js +79 -68
- package/dist/components/Switch.js +70 -57
- package/dist/components/Utilities.js +192 -178
- package/dist/components/shared.js +37 -23
- package/dist/style.css +15 -153
- package/dist/style.min.css +5 -5
- package/dist/style.scss +7 -8
- package/dist/styles/_action-menu.scss +1 -1
- package/dist/styles/_bootstrap-optimizations.scss +0 -8
- package/dist/styles/_caret.scss +3 -3
- package/dist/styles/_general.scss +0 -17
- package/dist/styles/_layout.scss +1 -1
- package/dist/styles/_variables.scss +3 -15
- package/dist/styles/mixins/_sidebar.scss +1 -1
- package/package.json +3 -3
- package/dist/styles/_switch.scss +0 -21
|
@@ -1,101 +1,112 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
if (typeof define === "function" && define.amd) {
|
|
5
|
+
define(["exports", "react", "./MenuItem", "./Utilities"], factory);
|
|
6
|
+
} else if (typeof exports !== "undefined") {
|
|
7
|
+
factory(exports, require("react"), require("./MenuItem"), require("./Utilities"));
|
|
8
|
+
} else {
|
|
9
|
+
var mod = {
|
|
10
|
+
exports: {}
|
|
11
|
+
};
|
|
12
|
+
factory(mod.exports, global.react, global.MenuItem, global.Utilities);
|
|
13
|
+
global.ActionMenu = mod.exports;
|
|
14
|
+
}
|
|
15
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react, _MenuItem, _Utilities) {
|
|
16
|
+
"use strict";
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(_exports, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
_exports.default = ActionMenu;
|
|
22
|
+
_react = _interopRequireWildcard(_react);
|
|
23
|
+
_MenuItem = _interopRequireDefault(_MenuItem);
|
|
24
|
+
_Utilities = _interopRequireDefault(_Utilities);
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
+
|
|
36
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
+
|
|
38
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
|
+
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Action Menu on the top right of a page. You can place Actions here which are in context of the current page.
|
|
46
|
+
*/
|
|
47
|
+
function ActionMenu(props) {
|
|
48
|
+
var hideToggleAction = props.hideToggleAction,
|
|
49
|
+
children = props.children,
|
|
50
|
+
className = props.className,
|
|
51
|
+
_props$toggleIcon = props.toggleIcon,
|
|
52
|
+
toggleIcon = _props$toggleIcon === void 0 ? /*#__PURE__*/_react.default.createElement("svg", {
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
+
width: "16",
|
|
55
|
+
height: "16",
|
|
56
|
+
fill: "currentColor",
|
|
57
|
+
className: "bi bi-three-dots-vertical",
|
|
58
|
+
viewBox: "0 0 16 16"
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
60
|
+
d: "M9.5 13a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0-5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0-5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"
|
|
61
|
+
})) : _props$toggleIcon;
|
|
62
|
+
|
|
63
|
+
var _break = props.break || "lg";
|
|
64
|
+
|
|
65
|
+
var _useState = (0, _react.useState)(false),
|
|
66
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
67
|
+
actionsToggledIn = _useState2[0],
|
|
68
|
+
setActionsToggledIn = _useState2[1];
|
|
69
|
+
|
|
70
|
+
var toggleActions = function toggleActions() {
|
|
71
|
+
_Utilities.default.toggleActions();
|
|
72
|
+
|
|
73
|
+
initToggleStatus();
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var initToggleStatus = function initToggleStatus() {
|
|
77
|
+
setActionsToggledIn(_Utilities.default.hasClass(document.querySelector(".blue-actions"), "open"));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
(0, _react.useEffect)(function () {
|
|
81
|
+
initToggleStatus();
|
|
82
|
+
var appWrapper = document.querySelector(".blue-wrapper");
|
|
83
|
+
|
|
84
|
+
if (appWrapper) {
|
|
85
|
+
appWrapper.onclick = toggleActions;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
document.querySelectorAll(".blue-actions-menu .nav-link").forEach(function (link) {
|
|
89
|
+
link.addEventListener("click", function () {
|
|
90
|
+
if (actionsToggledIn) {
|
|
91
|
+
toggleActions();
|
|
92
|
+
}
|
|
93
|
+
});
|
|
83
94
|
});
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
}
|
|
95
|
+
}, []);
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
+
className: "blue-actions navbar ".concat(className, " navbar-expand").concat(_break !== "none" ? "-".concat(_break) : "", " ").concat(_break)
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
className: "blue-header-wrapper",
|
|
100
|
+
onClick: _Utilities.default.scrollToTop
|
|
101
|
+
}), /*#__PURE__*/_react.default.createElement("ul", {
|
|
102
|
+
className: "blue-actions-menu nav navbar-nav navbar-right"
|
|
103
|
+
}, !actionsToggledIn && !hideToggleAction ? /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
104
|
+
className: "blue-actions-menu-toggle",
|
|
105
|
+
onClick: function onClick() {
|
|
106
|
+
return toggleActions();
|
|
107
|
+
},
|
|
108
|
+
icon: toggleIcon,
|
|
109
|
+
"aria-label": "Toggle menu"
|
|
110
|
+
}) : "", children));
|
|
111
|
+
}
|
|
112
|
+
});
|
|
@@ -1,44 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
if (typeof define === "function" && define.amd) {
|
|
3
|
+
define(["exports", "react", "./Switch"], factory);
|
|
4
|
+
} else if (typeof exports !== "undefined") {
|
|
5
|
+
factory(exports, require("react"), require("./Switch"));
|
|
6
|
+
} else {
|
|
7
|
+
var mod = {
|
|
8
|
+
exports: {}
|
|
9
|
+
};
|
|
10
|
+
factory(mod.exports, global.react, global.Switch);
|
|
11
|
+
global.ActionMenuSwitch = mod.exports;
|
|
12
|
+
}
|
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react, _Switch) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(_exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
_exports.default = ActionMenuSwitch;
|
|
20
|
+
_react = _interopRequireDefault(_react);
|
|
21
|
+
_Switch = _interopRequireDefault(_Switch);
|
|
22
|
+
var _excluded = ["label"];
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
27
|
+
|
|
28
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
* Use a solution with Bootstrap's `.form-check.form-switch` or `MenuItem` with a switch icon.
|
|
35
|
+
* Switch for the Action Menu.
|
|
36
|
+
*/
|
|
37
|
+
function ActionMenuSwitch(_ref) {
|
|
38
|
+
var label = _ref.label,
|
|
39
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
42
|
+
className: "nav-item"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
44
|
+
href: "javascript:void(0)",
|
|
45
|
+
className: "nav-link blue-actions-menu-item",
|
|
46
|
+
onClick: function onClick() {
|
|
47
|
+
if (props.onChange) props.onChange();
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_Switch.default, _extends({}, props, {
|
|
50
|
+
elementType: "span"
|
|
51
|
+
})), label && /*#__PURE__*/_react.default.createElement("span", {
|
|
52
|
+
className: "blue-actions-label"
|
|
53
|
+
}, "\xA0", label)));
|
|
54
|
+
}
|
|
55
|
+
});
|
package/dist/components/Body.js
CHANGED
|
@@ -1,38 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
if (typeof define === "function" && define.amd) {
|
|
3
|
+
define(["exports", "react"], factory);
|
|
4
|
+
} else if (typeof exports !== "undefined") {
|
|
5
|
+
factory(exports, require("react"));
|
|
6
|
+
} else {
|
|
7
|
+
var mod = {
|
|
8
|
+
exports: {}
|
|
9
|
+
};
|
|
10
|
+
factory(mod.exports, global.react);
|
|
11
|
+
global.Body = mod.exports;
|
|
12
|
+
}
|
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(_exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
_exports.default = Body;
|
|
20
|
+
_react = _interopRequireDefault(_react);
|
|
21
|
+
var _excluded = ["id", "className", "containerClass", "hasActions", "onClick", "children"];
|
|
22
|
+
|
|
23
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
|
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
+
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Contains the content of the page.
|
|
31
|
+
*/
|
|
32
|
+
function Body(_ref) {
|
|
33
|
+
var id = _ref.id,
|
|
34
|
+
className = _ref.className,
|
|
35
|
+
containerClass = _ref.containerClass,
|
|
36
|
+
hasActions = _ref.hasActions,
|
|
37
|
+
onClick = _ref.onClick,
|
|
38
|
+
children = _ref.children,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
|
|
41
|
+
var pageBodyClassName = "blue-page";
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
id: id,
|
|
44
|
+
className: className ? pageBodyClassName + " " + className : pageBodyClassName + (hasActions ? " has-actions" : "") + " break-".concat(rest.break || "md"),
|
|
45
|
+
onClick: onClick
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
+
className: containerClass || "container-fluid"
|
|
48
|
+
}, children));
|
|
49
|
+
}
|
|
50
|
+
});
|
package/dist/components/Caret.js
CHANGED
|
@@ -1,22 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
if (typeof define === "function" && define.amd) {
|
|
3
|
+
define(["exports", "react"], factory);
|
|
4
|
+
} else if (typeof exports !== "undefined") {
|
|
5
|
+
factory(exports, require("react"));
|
|
6
|
+
} else {
|
|
7
|
+
var mod = {
|
|
8
|
+
exports: {}
|
|
9
|
+
};
|
|
10
|
+
factory(mod.exports, global.react);
|
|
11
|
+
global.Caret = mod.exports;
|
|
12
|
+
}
|
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react) {
|
|
14
|
+
"use strict";
|
|
2
15
|
|
|
3
|
-
Object.defineProperty(
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
Object.defineProperty(_exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
_exports.default = Caret;
|
|
20
|
+
_react = _interopRequireDefault(_react);
|
|
9
21
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
23
|
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function Caret(_ref) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
24
|
+
/**
|
|
25
|
+
* Caret icon component.
|
|
26
|
+
*/
|
|
27
|
+
function Caret(_ref) {
|
|
28
|
+
var open = _ref.open,
|
|
29
|
+
mirrored = _ref.mirrored,
|
|
30
|
+
className = _ref.className;
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
32
|
+
className: "blue-caret " + (open ? " blue-caret-open " : "") + (mirrored ? " blue-caret-mirrored " : "") + className
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|