iguazio.dashboard-react-controls 0.0.1
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/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/components/Button/Button.js +83 -0
- package/dist/components/Button/Button.scss +156 -0
- package/dist/components/PopUpDialog/PopUpDialog.js +137 -0
- package/dist/components/PopUpDialog/popUpDialog.scss +82 -0
- package/dist/components/RoundedIcon/RoundedIcon.js +73 -0
- package/dist/components/RoundedIcon/roundedIcon.scss +45 -0
- package/dist/components/Tooltip/Tooltip.js +196 -0
- package/dist/components/Tooltip/Tooltip.test.js +139 -0
- package/dist/components/Tooltip/tooltip.scss +9 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +46 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +47 -0
- package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +23 -0
- package/dist/components/TooltipTemplate/textTooltipTemplate.scss +21 -0
- package/dist/components/index.js +47 -0
- package/dist/constants.js +18 -0
- package/dist/fonts/roboto-v27-latin-300.eot +0 -0
- package/dist/fonts/roboto-v27-latin-300.svg +1 -0
- package/dist/fonts/roboto-v27-latin-300.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-300.woff +0 -0
- package/dist/fonts/roboto-v27-latin-300.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-500.eot +0 -0
- package/dist/fonts/roboto-v27-latin-500.svg +1 -0
- package/dist/fonts/roboto-v27-latin-500.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-500.woff +0 -0
- package/dist/fonts/roboto-v27-latin-500.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.svg +326 -0
- package/dist/fonts/roboto-v27-latin-500italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-700.eot +0 -0
- package/dist/fonts/roboto-v27-latin-700.svg +309 -0
- package/dist/fonts/roboto-v27-latin-700.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-700.woff +0 -0
- package/dist/fonts/roboto-v27-latin-700.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.svg +1 -0
- package/dist/fonts/roboto-v27-latin-700italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-italic.svg +323 -0
- package/dist/fonts/roboto-v27-latin-italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-regular.eot +0 -0
- package/dist/fonts/roboto-v27-latin-regular.svg +308 -0
- package/dist/fonts/roboto-v27-latin-regular.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-regular.woff +0 -0
- package/dist/fonts/roboto-v27-latin-regular.woff2 +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.eot +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.svg +341 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.ttf +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.woff +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.woff2 +0 -0
- package/dist/images/add-circle-question.svg +7 -0
- package/dist/images/add-circle.svg +5 -0
- package/dist/images/add.svg +4 -0
- package/dist/images/alerts-mini.svg +4 -0
- package/dist/images/alerts.svg +3 -0
- package/dist/images/api-getaway-icon.svg +5 -0
- package/dist/images/arrow.svg +3 -0
- package/dist/images/back-arrow.svg +5 -0
- package/dist/images/best-iteration-icon.svg +4 -0
- package/dist/images/checkbox-checked.svg +3 -0
- package/dist/images/checkbox-unchecked.svg +3 -0
- package/dist/images/checkmark.svg +3 -0
- package/dist/images/clock.svg +4 -0
- package/dist/images/close.svg +3 -0
- package/dist/images/code.svg +3 -0
- package/dist/images/collapse.svg +3 -0
- package/dist/images/dashboard-icon.svg +3 -0
- package/dist/images/dashboard-mini.svg +4 -0
- package/dist/images/data-analytics-mini.svg +4 -0
- package/dist/images/data-analytics.svg +3 -0
- package/dist/images/data-preparation-mini.svg +14 -0
- package/dist/images/data-preperation.svg +13 -0
- package/dist/images/datasets-icon.svg +3 -0
- package/dist/images/db-icon.svg +3 -0
- package/dist/images/delete.svg +3 -0
- package/dist/images/dl-mini.svg +4 -0
- package/dist/images/dl.svg +3 -0
- package/dist/images/dots-icon.png +0 -0
- package/dist/images/drop-file.svg +5 -0
- package/dist/images/dropdown.svg +3 -0
- package/dist/images/edit.svg +3 -0
- package/dist/images/elipsis.svg +3 -0
- package/dist/images/etl-mini.svg +11 -0
- package/dist/images/etl.svg +10 -0
- package/dist/images/expand.svg +3 -0
- package/dist/images/eye.svg +4 -0
- package/dist/images/feed-mini.svg +4 -0
- package/dist/images/file-icon.svg +3 -0
- package/dist/images/filter.svg +5 -0
- package/dist/images/flow-icon.svg +7 -0
- package/dist/images/function-icon.svg +3 -0
- package/dist/images/function2-icon.svg +29 -0
- package/dist/images/horovod.svg +3 -0
- package/dist/images/ic-calendar.svg +3 -0
- package/dist/images/ic-key.svg +3 -0
- package/dist/images/ic_arrow-right.svg +3 -0
- package/dist/images/ic_copy-to-clipboard.svg +3 -0
- package/dist/images/ic_remote.svg +3 -0
- package/dist/images/ic_target-with-arrow-unset.svg +4 -0
- package/dist/images/ic_target-with-dart.svg +3 -0
- package/dist/images/iguazio-logo.png +0 -0
- package/dist/images/invalid.svg +3 -0
- package/dist/images/jupyter.svg +3 -0
- package/dist/images/listview.svg +3 -0
- package/dist/images/lock-icon.svg +3 -0
- package/dist/images/ml-mini.svg +16 -0
- package/dist/images/ml.svg +10 -0
- package/dist/images/mlrun-logo-circle-small.png +0 -0
- package/dist/images/model-icon.svg +29 -0
- package/dist/images/model-serving-mini.svg +13 -0
- package/dist/images/model-serving.svg +12 -0
- package/dist/images/model-training-mini.svg +11 -0
- package/dist/images/model-training.svg +3 -0
- package/dist/images/models-icon.svg +3 -0
- package/dist/images/nlp-mini.svg +4 -0
- package/dist/images/nlp.svg +3 -0
- package/dist/images/nosql.svg +3 -0
- package/dist/images/nuclio.svg +3 -0
- package/dist/images/other.svg +3 -0
- package/dist/images/overview-icon.svg +49 -0
- package/dist/images/package.svg +4 -0
- package/dist/images/partition.svg +3 -0
- package/dist/images/pin-icon.svg +3 -0
- package/dist/images/pipelines.svg +3 -0
- package/dist/images/plus.svg +4 -0
- package/dist/images/popout.svg +4 -0
- package/dist/images/pref-icon.svg +3 -0
- package/dist/images/private-project-icon.svg +3 -0
- package/dist/images/projects.svg +3 -0
- package/dist/images/question-mark.svg +5 -0
- package/dist/images/range-arrow-small.svg +3 -0
- package/dist/images/realtime-icon-b.svg +40 -0
- package/dist/images/realtime-icon.svg +4 -0
- package/dist/images/refresh.svg +3 -0
- package/dist/images/rocket-icon.svg +12 -0
- package/dist/images/run.svg +3 -0
- package/dist/images/run2-icon.svg +14 -0
- package/dist/images/search.svg +3 -0
- package/dist/images/serving-icon.svg +44 -0
- package/dist/images/set-icon.svg +29 -0
- package/dist/images/settings.svg +3 -0
- package/dist/images/severity-error.svg +10 -0
- package/dist/images/severity-ok.svg +10 -0
- package/dist/images/severity-warning.svg +10 -0
- package/dist/images/simulator-mini.svg +4 -0
- package/dist/images/simulators.svg +3 -0
- package/dist/images/sitemap-icon.svg +3 -0
- package/dist/images/spark.svg +3 -0
- package/dist/images/stream.svg +5 -0
- package/dist/images/success_done.svg +3 -0
- package/dist/images/timer-outline-icon.svg +3 -0
- package/dist/images/tsdb-icon.svg +3 -0
- package/dist/images/unpin-icon.svg +3 -0
- package/dist/images/unsuccess_alert.svg +4 -0
- package/dist/images/upload-icon.svg +5 -0
- package/dist/images/user.svg +3 -0
- package/dist/images/users.svg +3 -0
- package/dist/images/vector-icon.svg +74 -0
- package/dist/images/view-details.svg +3 -0
- package/dist/images/vs-code.svg +3 -0
- package/dist/images/warning.svg +10 -0
- package/dist/images/workflow-icon.svg +6 -0
- package/dist/images/yaml.svg +4 -0
- package/dist/index.js +24 -0
- package/dist/scss/borders.scss +20 -0
- package/dist/scss/colors.scss +68 -0
- package/dist/scss/common.scss +59 -0
- package/dist/scss/fonts.scss +105 -0
- package/dist/scss/mixins.scss +1004 -0
- package/dist/scss/shadows.scss +14 -0
- package/dist/scss/variables.scss +13 -0
- package/dist/types.js +23 -0
- package/dist/utils/common.util.js +22 -0
- package/package.json +100 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
15
|
+
|
|
16
|
+
var _TextTooltipTemplate = _interopRequireDefault(require("../TooltipTemplate/TextTooltipTemplate"));
|
|
17
|
+
|
|
18
|
+
require("./roundedIcon.scss");
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
var RoundedIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
25
|
+
var children = _ref.children,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
disabled = _ref.disabled,
|
|
28
|
+
id = _ref.id,
|
|
29
|
+
isActive = _ref.isActive,
|
|
30
|
+
onClick = _ref.onClick,
|
|
31
|
+
tooltipText = _ref.tooltipText;
|
|
32
|
+
var wrapperClassNames = (0, _classnames.default)('round-icon-cp', className);
|
|
33
|
+
var IconClassNames = (0, _classnames.default)('round-icon-cp__circle', isActive && 'round-icon-cp__circle-active');
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: wrapperClassNames,
|
|
36
|
+
ref: ref,
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
|
|
38
|
+
hidden: !tooltipText,
|
|
39
|
+
template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
|
|
40
|
+
text: tooltipText
|
|
41
|
+
}),
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
43
|
+
onClick: onClick,
|
|
44
|
+
disabled: disabled,
|
|
45
|
+
id: id,
|
|
46
|
+
className: IconClassNames,
|
|
47
|
+
children: children
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
RoundedIcon.defaultProps = {
|
|
54
|
+
className: '',
|
|
55
|
+
disabled: false,
|
|
56
|
+
id: '',
|
|
57
|
+
isActive: false,
|
|
58
|
+
onClick: function onClick() {},
|
|
59
|
+
tooltipText: ''
|
|
60
|
+
};
|
|
61
|
+
RoundedIcon.propTypes = {
|
|
62
|
+
children: _propTypes.default.node.isRequired,
|
|
63
|
+
className: _propTypes.default.string,
|
|
64
|
+
disabled: _propTypes.default.bool,
|
|
65
|
+
id: _propTypes.default.string,
|
|
66
|
+
isActive: _propTypes.default.bool,
|
|
67
|
+
onClick: _propTypes.default.func,
|
|
68
|
+
tooltipText: _propTypes.default.string
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var _default = /*#__PURE__*/_react.default.memo(RoundedIcon);
|
|
72
|
+
|
|
73
|
+
exports.default = _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import '../../scss/colors.scss';
|
|
2
|
+
|
|
3
|
+
.round-icon-cp {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
margin: 0 0.2rem;
|
|
8
|
+
|
|
9
|
+
&__circle {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
width: 30px;
|
|
14
|
+
height: 30px;
|
|
15
|
+
padding: 4px;
|
|
16
|
+
|
|
17
|
+
& > * {
|
|
18
|
+
position: relative;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
margin: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
width: inherit;
|
|
30
|
+
height: inherit;
|
|
31
|
+
background-color: $mulledWineThree;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transition: opacity 0.3s ease-in-out;
|
|
35
|
+
content: '';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover,
|
|
39
|
+
&-active {
|
|
40
|
+
&::before {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactDom = require("react-dom");
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
var _reactTransitionGroup = require("react-transition-group");
|
|
17
|
+
|
|
18
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
+
|
|
20
|
+
var _lodash = require("lodash");
|
|
21
|
+
|
|
22
|
+
var _common = require("../../utils/common.util");
|
|
23
|
+
|
|
24
|
+
require("./tooltip.scss");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
+
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
+
|
|
38
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
+
|
|
40
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
+
|
|
42
|
+
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."); }
|
|
43
|
+
|
|
44
|
+
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); }
|
|
45
|
+
|
|
46
|
+
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; }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
+
|
|
52
|
+
var Tooltip = function Tooltip(_ref) {
|
|
53
|
+
var children = _ref.children,
|
|
54
|
+
className = _ref.className,
|
|
55
|
+
hidden = _ref.hidden,
|
|
56
|
+
template = _ref.template,
|
|
57
|
+
textShow = _ref.textShow;
|
|
58
|
+
|
|
59
|
+
var _useState = (0, _react.useState)(false),
|
|
60
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
61
|
+
show = _useState2[0],
|
|
62
|
+
setShow = _useState2[1];
|
|
63
|
+
|
|
64
|
+
var _useState3 = (0, _react.useState)({}),
|
|
65
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
66
|
+
style = _useState4[0],
|
|
67
|
+
setStyle = _useState4[1];
|
|
68
|
+
|
|
69
|
+
var tooltipClassNames = (0, _classnames.default)('data-ellipsis', 'tooltip-wrapper', className);
|
|
70
|
+
var duration = 200;
|
|
71
|
+
var parentRef = (0, _react.useRef)();
|
|
72
|
+
var tooltipRef = (0, _react.useRef)();
|
|
73
|
+
var offset = 10;
|
|
74
|
+
var defaultStyle = {
|
|
75
|
+
transition: "opacity ".concat(duration, "ms ease-in-out ").concat(duration, "ms")
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var handleScroll = function handleScroll() {
|
|
79
|
+
setShow(false);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
83
|
+
setShow(false);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
var handleMouseEnter = (0, _react.useCallback)(function (event) {
|
|
87
|
+
var _parentRef$current$ch = _slicedToArray(parentRef.current.childNodes, 1),
|
|
88
|
+
child = _parentRef$current$ch[0];
|
|
89
|
+
|
|
90
|
+
var show = !hidden && (textShow ? true : !child ? false : child.nodeType !== Node.TEXT_NODE ||
|
|
91
|
+
/*
|
|
92
|
+
If the child node is a text node and the text of the child node inside the container is greater than the width of the container, then show tooltip.
|
|
93
|
+
*/
|
|
94
|
+
child.nodeType === Node.TEXT_NODE && parentRef.current.scrollWidth > parentRef.current.offsetWidth);
|
|
95
|
+
|
|
96
|
+
if (show) {
|
|
97
|
+
var _parentRef$current$ge, _parentRef$current, _tooltipRef$current$g, _tooltipRef$current;
|
|
98
|
+
|
|
99
|
+
setShow(true);
|
|
100
|
+
|
|
101
|
+
var _ref2 = (_parentRef$current$ge = parentRef === null || parentRef === void 0 ? void 0 : (_parentRef$current = parentRef.current) === null || _parentRef$current === void 0 ? void 0 : _parentRef$current.getBoundingClientRect()) !== null && _parentRef$current$ge !== void 0 ? _parentRef$current$ge : {},
|
|
102
|
+
height = _ref2.height,
|
|
103
|
+
top = _ref2.top,
|
|
104
|
+
bottom = _ref2.bottom;
|
|
105
|
+
|
|
106
|
+
var _ref3 = (_tooltipRef$current$g = (_tooltipRef$current = tooltipRef.current) === null || _tooltipRef$current === void 0 ? void 0 : _tooltipRef$current.getBoundingClientRect()) !== null && _tooltipRef$current$g !== void 0 ? _tooltipRef$current$g : {
|
|
107
|
+
height: 0,
|
|
108
|
+
width: 0
|
|
109
|
+
},
|
|
110
|
+
tooltipHeight = _ref3.height,
|
|
111
|
+
tooltipWidth = _ref3.width;
|
|
112
|
+
|
|
113
|
+
var leftPosition = event.x - (event.x + tooltipWidth - window.innerWidth + offset);
|
|
114
|
+
var left = event.x + tooltipWidth + offset > window.innerWidth ? leftPosition > offset ? leftPosition : offset : event.x + offset;
|
|
115
|
+
|
|
116
|
+
if (top + height + offset + tooltipHeight >= window.innerHeight) {
|
|
117
|
+
setStyle({
|
|
118
|
+
top: bottom - height - offset - tooltipHeight,
|
|
119
|
+
left: left
|
|
120
|
+
});
|
|
121
|
+
} else {
|
|
122
|
+
setStyle({
|
|
123
|
+
top: top + height + offset,
|
|
124
|
+
left: left
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}, [hidden, textShow]);
|
|
129
|
+
var clearStyles = (0, _lodash.debounce)(function () {
|
|
130
|
+
if (!(0, _common.isEveryObjectValueEmpty)(style)) {
|
|
131
|
+
setStyle({});
|
|
132
|
+
}
|
|
133
|
+
}, 100);
|
|
134
|
+
(0, _react.useEffect)(function () {
|
|
135
|
+
var node = parentRef.current;
|
|
136
|
+
|
|
137
|
+
if (node) {
|
|
138
|
+
node.addEventListener('mouseenter', handleMouseEnter);
|
|
139
|
+
node.addEventListener('mouseleave', handleMouseLeave);
|
|
140
|
+
return function () {
|
|
141
|
+
node.removeEventListener('mouseenter', handleMouseEnter);
|
|
142
|
+
node.removeEventListener('mouseleave', handleMouseLeave);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}, [parentRef, handleMouseEnter]);
|
|
146
|
+
(0, _react.useEffect)(function () {
|
|
147
|
+
if (show) {
|
|
148
|
+
window.addEventListener('scroll', handleScroll, true);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return function () {
|
|
152
|
+
return window.removeEventListener('scroll', handleScroll, true);
|
|
153
|
+
};
|
|
154
|
+
}, [show]);
|
|
155
|
+
(0, _react.useEffect)(function () {
|
|
156
|
+
window.addEventListener('resize', clearStyles);
|
|
157
|
+
return function () {
|
|
158
|
+
window.removeEventListener('resize', clearStyles);
|
|
159
|
+
};
|
|
160
|
+
}, [clearStyles, style]);
|
|
161
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
162
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
163
|
+
"data-testid": "tooltip-wrapper",
|
|
164
|
+
ref: parentRef,
|
|
165
|
+
className: tooltipClassNames,
|
|
166
|
+
children: children
|
|
167
|
+
}), !hidden && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
168
|
+
classNames: "fade",
|
|
169
|
+
in: show,
|
|
170
|
+
timeout: duration,
|
|
171
|
+
unmountOnExit: true,
|
|
172
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
173
|
+
"data-testid": "tooltip",
|
|
174
|
+
ref: tooltipRef,
|
|
175
|
+
style: _objectSpread(_objectSpread({}, defaultStyle), style),
|
|
176
|
+
className: "tooltip",
|
|
177
|
+
children: template
|
|
178
|
+
})
|
|
179
|
+
}), document.getElementById('overlay_container'))]
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
Tooltip.defaultProps = {
|
|
184
|
+
hidden: false,
|
|
185
|
+
textShow: false
|
|
186
|
+
};
|
|
187
|
+
Tooltip.propTypes = {
|
|
188
|
+
className: _propTypes.default.string,
|
|
189
|
+
hidden: _propTypes.default.bool,
|
|
190
|
+
template: _propTypes.default.element.isRequired,
|
|
191
|
+
textShow: _propTypes.default.bool
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
var _default = /*#__PURE__*/_react.default.memo(Tooltip);
|
|
195
|
+
|
|
196
|
+
exports.default = _default;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// todo: rewrite existing tests
|
|
2
|
+
// import {
|
|
3
|
+
// cleanup,
|
|
4
|
+
// fireEvent,
|
|
5
|
+
// render,
|
|
6
|
+
// waitForElementToBeRemoved
|
|
7
|
+
// } from '@testing-library/react'
|
|
8
|
+
// import React from 'react'
|
|
9
|
+
// import Tooltip from './Tooltip'
|
|
10
|
+
//
|
|
11
|
+
// const renderComponent = props =>
|
|
12
|
+
// render(
|
|
13
|
+
// <Tooltip {...props}>
|
|
14
|
+
// <div>tooltip</div>
|
|
15
|
+
// </Tooltip>
|
|
16
|
+
// )
|
|
17
|
+
//
|
|
18
|
+
// window.resizeTo = function resizeTo(width, height) {
|
|
19
|
+
// Object.assign(this, {
|
|
20
|
+
// innerWidth: width,
|
|
21
|
+
// innerHeight: height,
|
|
22
|
+
// outerWidth: width,
|
|
23
|
+
// outerHeight: height
|
|
24
|
+
// }).dispatchEvent(new this.Event('resize'))
|
|
25
|
+
// }
|
|
26
|
+
//
|
|
27
|
+
// describe('Tooltip', () => {
|
|
28
|
+
// let wrapper
|
|
29
|
+
// beforeEach(() => {
|
|
30
|
+
// const props = {
|
|
31
|
+
// template: <div>It's tooltip</div>
|
|
32
|
+
// }
|
|
33
|
+
// wrapper = renderComponent(props)
|
|
34
|
+
// })
|
|
35
|
+
//
|
|
36
|
+
// afterEach(cleanup)
|
|
37
|
+
//
|
|
38
|
+
// it('renders without crashing', () => {
|
|
39
|
+
// expect(wrapper.queryByTestId('tooltip-wrapper')).not.toBeNull()
|
|
40
|
+
// })
|
|
41
|
+
//
|
|
42
|
+
// it('should hide tooltip while scrolling', async () => {
|
|
43
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
44
|
+
//
|
|
45
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
46
|
+
//
|
|
47
|
+
// const tooltip = wrapper.getByTestId('tooltip')
|
|
48
|
+
//
|
|
49
|
+
// expect(tooltip).not.toBeNull()
|
|
50
|
+
//
|
|
51
|
+
// fireEvent.scroll(window)
|
|
52
|
+
//
|
|
53
|
+
// const removeTooltip = await waitForElementToBeRemoved(
|
|
54
|
+
// wrapper.getByTestId('tooltip')
|
|
55
|
+
// )
|
|
56
|
+
// expect(removeTooltip).toBeUndefined()
|
|
57
|
+
// })
|
|
58
|
+
//
|
|
59
|
+
// it('should hide tooltip when mouse leave', async () => {
|
|
60
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
61
|
+
//
|
|
62
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
63
|
+
//
|
|
64
|
+
// const tooltip = wrapper.getByTestId('tooltip')
|
|
65
|
+
//
|
|
66
|
+
// expect(tooltip).not.toBeNull()
|
|
67
|
+
//
|
|
68
|
+
// fireEvent.mouseLeave(tooltipWrapper)
|
|
69
|
+
//
|
|
70
|
+
// const removeTooltip = await waitForElementToBeRemoved(
|
|
71
|
+
// wrapper.getByTestId('tooltip')
|
|
72
|
+
// )
|
|
73
|
+
// expect(removeTooltip).toBeUndefined()
|
|
74
|
+
// })
|
|
75
|
+
//
|
|
76
|
+
// it('should show tooltip on the top', () => {
|
|
77
|
+
// window.resizeTo(800, 10)
|
|
78
|
+
//
|
|
79
|
+
// wrapper.rerender(
|
|
80
|
+
// <Tooltip template={<div>It's tooltip 123</div>}>
|
|
81
|
+
// <div>tooltip</div>
|
|
82
|
+
// </Tooltip>
|
|
83
|
+
// )
|
|
84
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
85
|
+
//
|
|
86
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
87
|
+
//
|
|
88
|
+
// const tooltip = wrapper.getByTestId('tooltip')
|
|
89
|
+
//
|
|
90
|
+
// expect(tooltip.style.top).toBe('-10px')
|
|
91
|
+
// })
|
|
92
|
+
//
|
|
93
|
+
// it('should always show tooltip if textShow set to "true"', () => {
|
|
94
|
+
// wrapper.rerender(
|
|
95
|
+
// <Tooltip template={<div>It's tooltip 123</div>} textShow={true}>
|
|
96
|
+
// tooltip
|
|
97
|
+
// </Tooltip>
|
|
98
|
+
// )
|
|
99
|
+
//
|
|
100
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
101
|
+
//
|
|
102
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
103
|
+
//
|
|
104
|
+
// const tooltip = wrapper.getByTestId('tooltip')
|
|
105
|
+
//
|
|
106
|
+
// expect(tooltip).not.toBeNull()
|
|
107
|
+
// })
|
|
108
|
+
//
|
|
109
|
+
// it('should not show tooltip if children is empty', () => {
|
|
110
|
+
// const children = null
|
|
111
|
+
// wrapper.rerender(
|
|
112
|
+
// <Tooltip template={<div>tooltip</div>}>{children}</Tooltip>
|
|
113
|
+
// )
|
|
114
|
+
//
|
|
115
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
116
|
+
//
|
|
117
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
118
|
+
//
|
|
119
|
+
// const tooltip = wrapper.queryByTestId('tooltip')
|
|
120
|
+
//
|
|
121
|
+
// expect(tooltip).toBeNull()
|
|
122
|
+
// })
|
|
123
|
+
//
|
|
124
|
+
// it('should show tooltip if children is a "Node"', () => {
|
|
125
|
+
// const children = <div>children</div>
|
|
126
|
+
// wrapper.rerender(
|
|
127
|
+
// <Tooltip template={<div>tooltip</div>}>{children}</Tooltip>
|
|
128
|
+
// )
|
|
129
|
+
//
|
|
130
|
+
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
131
|
+
//
|
|
132
|
+
// fireEvent.mouseEnter(tooltipWrapper)
|
|
133
|
+
//
|
|
134
|
+
// const tooltip = wrapper.queryByTestId('tooltip')
|
|
135
|
+
//
|
|
136
|
+
// expect(tooltip).not.toBeNull()
|
|
137
|
+
// })
|
|
138
|
+
// })
|
|
139
|
+
"use strict";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
require("./producerTooltipTemplate.scss");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
var ProducerTooltipTemplate = function ProducerTooltipTemplate(_ref) {
|
|
19
|
+
var kind = _ref.kind,
|
|
20
|
+
owner = _ref.owner;
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
22
|
+
className: "tooltip-container",
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
+
className: "tooltip-container__kind",
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
|
+
children: "Kind:"
|
|
27
|
+
}), " ", kind]
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
|
+
className: "tooltip-container__owner",
|
|
30
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31
|
+
children: "Owner:"
|
|
32
|
+
}), " ", owner]
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
ProducerTooltipTemplate.defaultProps = {
|
|
38
|
+
kind: '',
|
|
39
|
+
owner: ''
|
|
40
|
+
};
|
|
41
|
+
ProducerTooltipTemplate.propTypes = {
|
|
42
|
+
kind: _propTypes.default.string.isRequired,
|
|
43
|
+
owner: _propTypes.default.string.isRequired
|
|
44
|
+
};
|
|
45
|
+
var _default = ProducerTooltipTemplate;
|
|
46
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
require("./textTooltipTemplate.scss");
|
|
17
|
+
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var TextTooltipTemplate = function TextTooltipTemplate(_ref) {
|
|
27
|
+
var text = _ref.text,
|
|
28
|
+
warning = _ref.warning;
|
|
29
|
+
var textRef = (0, _react.useRef)();
|
|
30
|
+
var tooltipClassNames = (0, _classnames.default)('tooltip-template', 'tooltip__text', warning && 'tooltip__warning');
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
className: tooltipClassNames,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
34
|
+
ref: textRef,
|
|
35
|
+
children: text
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
TextTooltipTemplate.propTypes = {
|
|
41
|
+
text: ''
|
|
42
|
+
};
|
|
43
|
+
TextTooltipTemplate.propTypes = {
|
|
44
|
+
text: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element, _propTypes.default.number])
|
|
45
|
+
};
|
|
46
|
+
var _default = TextTooltipTemplate;
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '../../scss/shadows';
|
|
2
|
+
@import '../../scss/colors';
|
|
3
|
+
|
|
4
|
+
.tooltip-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
padding: 15px 10px;
|
|
8
|
+
background-color: $white;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
box-shadow: $tooltipShadow;
|
|
11
|
+
|
|
12
|
+
&__kind,
|
|
13
|
+
&__owner {
|
|
14
|
+
color: $doveGray;
|
|
15
|
+
|
|
16
|
+
span {
|
|
17
|
+
color: $doveGrayTwo;
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
line-height: 24px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import '../../scss/colors';
|
|
2
|
+
@import '../../scss/shadows';
|
|
3
|
+
|
|
4
|
+
.tooltip {
|
|
5
|
+
&-template {
|
|
6
|
+
padding: 6px 8px;
|
|
7
|
+
word-break: break-word;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__text {
|
|
11
|
+
color: $white;
|
|
12
|
+
background-color: $primary;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__warning {
|
|
17
|
+
color: $amaranth;
|
|
18
|
+
background-color: $white;
|
|
19
|
+
box-shadow: $tooltipShadow;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Button", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Button.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "PopUpDialog", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _PopUpDialog.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "RoundedIcon", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _RoundedIcon.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "TextTooltipTemplate", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _TextTooltipTemplate.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _Tooltip.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var _Button = _interopRequireDefault(require("./Button/Button"));
|
|
38
|
+
|
|
39
|
+
var _PopUpDialog = _interopRequireDefault(require("./PopUpDialog/PopUpDialog"));
|
|
40
|
+
|
|
41
|
+
var _RoundedIcon = _interopRequireDefault(require("./RoundedIcon/RoundedIcon"));
|
|
42
|
+
|
|
43
|
+
var _TextTooltipTemplate = _interopRequireDefault(require("./TooltipTemplate/TextTooltipTemplate"));
|
|
44
|
+
|
|
45
|
+
var _Tooltip = _interopRequireDefault(require("./Tooltip/Tooltip"));
|
|
46
|
+
|
|
47
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TERTIARY_BUTTON = exports.SECONDARY_BUTTON = exports.PRIMARY_BUTTON = exports.LABEL_BUTTON = exports.DANGER_BUTTON = void 0;
|
|
7
|
+
|
|
8
|
+
/*=========== BUTTONS =============*/
|
|
9
|
+
var PRIMARY_BUTTON = 'primary';
|
|
10
|
+
exports.PRIMARY_BUTTON = PRIMARY_BUTTON;
|
|
11
|
+
var SECONDARY_BUTTON = 'secondary';
|
|
12
|
+
exports.SECONDARY_BUTTON = SECONDARY_BUTTON;
|
|
13
|
+
var TERTIARY_BUTTON = 'tertiary';
|
|
14
|
+
exports.TERTIARY_BUTTON = TERTIARY_BUTTON;
|
|
15
|
+
var DANGER_BUTTON = 'danger';
|
|
16
|
+
exports.DANGER_BUTTON = DANGER_BUTTON;
|
|
17
|
+
var LABEL_BUTTON = 'label';
|
|
18
|
+
exports.LABEL_BUTTON = LABEL_BUTTON;
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html lang=en><meta charset=utf-8><meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"><title>Error 500 (Server Error)!!1</title><style>*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{color:#222;text-align:unset;margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px;}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}pre{white-space:pre-wrap;}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}</style><div id="af-error-container"><a href=//www.google.com><span id=logo aria-label=Google></span></a><p><b>500.</b> <ins>That’s an error.</ins><p>There was an error. Please try again later. <ins>That’s all we know.</ins></div>
|