iguazio.dashboard-react-controls 0.0.4 → 0.0.7
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/Backdrop/Backdrop.js +48 -0
- package/dist/components/Backdrop/Backdrop.scss +32 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.js +100 -0
- package/dist/components/ConfirmDialog/confirmDialog.scss +19 -0
- package/dist/components/FormCheckBox/FormCheckBox.js +57 -0
- package/dist/components/FormCheckBox/formCheckBox.scss +33 -0
- package/dist/components/FormInput/FormInput.js +418 -0
- package/dist/components/FormInput/formInput.scss +169 -0
- package/dist/components/FormSelect/FormSelect.js +306 -0
- package/dist/components/FormSelect/FormSelect.test.js +158 -0
- package/dist/components/FormSelect/formSelect.scss +303 -0
- package/dist/components/Modal/Modal.js +116 -0
- package/dist/components/Modal/Modal.scss +121 -0
- package/dist/components/PopUpDialog/PopUpDialog.js +1 -1
- package/dist/components/PopUpDialog/popUpDialog.scss +2 -2
- package/dist/components/Tip/Tip.js +132 -0
- package/dist/components/Tip/Tip.test.js +96 -0
- package/dist/components/Tip/tip.scss +89 -0
- package/dist/components/Wizard/Wizard.js +253 -0
- package/dist/components/Wizard/Wizard.scss +17 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.js +65 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.scss +67 -0
- package/dist/components/index.js +56 -0
- package/dist/constants.js +29 -3
- package/dist/elements/OptionsMenu/OptionsMenu.js +64 -0
- package/dist/elements/OptionsMenu/optionsMenu.scss +49 -0
- package/dist/elements/SelectOption/SelectOption.js +95 -0
- package/dist/elements/SelectOption/SelectOption.test.js +99 -0
- package/dist/elements/SelectOption/selectOption.scss +61 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.js +48 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.scss +36 -0
- package/dist/hooks/useDetectOutsideClick.js +34 -0
- package/dist/images/checkmark2.svg +3 -0
- package/dist/index.js +5 -1
- package/dist/scss/colors.scss +1 -0
- package/dist/scss/mixins.scss +11 -23
- package/dist/scss/variables.scss +1 -0
- package/dist/types.js +62 -2
- package/dist/utils/validationService.js +269 -0
- package/package.json +7 -4
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _react2 = require("@testing-library/react");
|
|
8
|
+
|
|
9
|
+
var _Tip = _interopRequireDefault(require("./Tip"));
|
|
10
|
+
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
|
|
15
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
16
|
+
|
|
17
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
18
|
+
|
|
19
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
|
|
23
|
+
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; }
|
|
24
|
+
|
|
25
|
+
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; }
|
|
26
|
+
|
|
27
|
+
jest.mock('../../images/question-mark.svg', function () {
|
|
28
|
+
return {
|
|
29
|
+
ReactComponent: 'Question-icon'
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var renderComponent = function renderComponent(props) {
|
|
34
|
+
return (0, _react2.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tip.default, _objectSpread({}, props)));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
describe('Tip component', function () {
|
|
38
|
+
var wrapper;
|
|
39
|
+
beforeEach(function () {
|
|
40
|
+
var props = {
|
|
41
|
+
text: 'Show tip component'
|
|
42
|
+
};
|
|
43
|
+
wrapper = renderComponent(props);
|
|
44
|
+
});
|
|
45
|
+
it('renders without crashing', function () {
|
|
46
|
+
expect(wrapper.queryByTestId('tip')).not.toBeNull();
|
|
47
|
+
});
|
|
48
|
+
it('should display tip text if mouse over the icon', function () {
|
|
49
|
+
var tipIcon = wrapper.getByTestId('tip-icon');
|
|
50
|
+
|
|
51
|
+
_react2.fireEvent.mouseEnter(tipIcon);
|
|
52
|
+
|
|
53
|
+
expect(wrapper.queryByTestId('tip-text')).not.toBeNull();
|
|
54
|
+
});
|
|
55
|
+
it('should hide tip text if mouse leave the icon', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
|
+
var tipIcon, tipText;
|
|
57
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
|
+
while (1) {
|
|
59
|
+
switch (_context.prev = _context.next) {
|
|
60
|
+
case 0:
|
|
61
|
+
tipIcon = wrapper.getByTestId('tip-icon');
|
|
62
|
+
|
|
63
|
+
_react2.fireEvent.mouseEnter(tipIcon);
|
|
64
|
+
|
|
65
|
+
expect(wrapper.queryByTestId('tip-text')).not.toBeNull();
|
|
66
|
+
|
|
67
|
+
_react2.fireEvent.mouseLeave(tipIcon);
|
|
68
|
+
|
|
69
|
+
_context.next = 6;
|
|
70
|
+
return (0, _react2.waitForElementToBeRemoved)(function () {
|
|
71
|
+
return wrapper.queryByTestId('tip-text');
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
case 6:
|
|
75
|
+
tipText = _context.sent;
|
|
76
|
+
expect(tipText).toBeUndefined();
|
|
77
|
+
|
|
78
|
+
case 8:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context.stop();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, _callee);
|
|
84
|
+
})));
|
|
85
|
+
it('should add the class "tip_big" if the length of the prop text is more than 40 characters', function () {
|
|
86
|
+
wrapper.rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tip.default, {
|
|
87
|
+
text: "Lorem Ipsum is simply dummy text of the printing and typesetting"
|
|
88
|
+
}));
|
|
89
|
+
var tipIcon = wrapper.getByTestId('tip-icon');
|
|
90
|
+
|
|
91
|
+
_react2.fireEvent.mouseEnter(tipIcon);
|
|
92
|
+
|
|
93
|
+
var tipText = wrapper.getByTestId('tip-text');
|
|
94
|
+
expect(tipText.className).toMatch('tip_big');
|
|
95
|
+
});
|
|
96
|
+
});
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import '../../scss/colors';
|
|
2
|
+
|
|
3
|
+
$arrowLength: 10px;
|
|
4
|
+
$iconLength: 16px;
|
|
5
|
+
$arrowOffset: 20px;
|
|
6
|
+
|
|
7
|
+
.tip-container {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tip {
|
|
14
|
+
position: fixed;
|
|
15
|
+
display: block;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
color: $white;
|
|
18
|
+
white-space: pre-line;
|
|
19
|
+
background: $primary;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
z-index: 9;
|
|
22
|
+
|
|
23
|
+
&_top {
|
|
24
|
+
&::after {
|
|
25
|
+
bottom: calc(-#{$arrowLength} / 2);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&_bottom {
|
|
30
|
+
&::after {
|
|
31
|
+
top: calc(-#{$arrowLength} / 2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&_left {
|
|
36
|
+
&::after {
|
|
37
|
+
right: calc(#{$arrowOffset});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&_right {
|
|
42
|
+
&::after {
|
|
43
|
+
left: calc(#{$arrowOffset});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&_small {
|
|
48
|
+
min-width: 100px;
|
|
49
|
+
max-width: 250px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&_big {
|
|
53
|
+
min-width: 250px;
|
|
54
|
+
max-width: 400px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&::after {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: $arrowLength;
|
|
60
|
+
height: $arrowLength;
|
|
61
|
+
background: $primary;
|
|
62
|
+
transform: rotate(45deg);
|
|
63
|
+
content: '';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.fade-enter {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.fade-enter-active {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
transition: opacity 200ms;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.fade-exit {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.fade-exit-active {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transition: opacity 200ms;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:export {
|
|
86
|
+
arrowlength: $arrowLength;
|
|
87
|
+
iconlength: $iconLength;
|
|
88
|
+
arrowoffset: $arrowOffset;
|
|
89
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
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 _reactFinalForm = require("react-final-form");
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
19
|
+
|
|
20
|
+
var _ConfirmDialog = _interopRequireDefault(require("../ConfirmDialog/ConfirmDialog"));
|
|
21
|
+
|
|
22
|
+
var _Modal = _interopRequireDefault(require("../Modal/Modal"));
|
|
23
|
+
|
|
24
|
+
var _WizardSteps = _interopRequireDefault(require("./WizardSteps/WizardSteps"));
|
|
25
|
+
|
|
26
|
+
var _constants = require("../../constants");
|
|
27
|
+
|
|
28
|
+
var _types = require("../../types");
|
|
29
|
+
|
|
30
|
+
var _common = require("../../utils/common.util");
|
|
31
|
+
|
|
32
|
+
require("./Wizard.scss");
|
|
33
|
+
|
|
34
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
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; }
|
|
47
|
+
|
|
48
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
49
|
+
|
|
50
|
+
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."); }
|
|
51
|
+
|
|
52
|
+
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); }
|
|
53
|
+
|
|
54
|
+
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; }
|
|
55
|
+
|
|
56
|
+
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; }
|
|
57
|
+
|
|
58
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
59
|
+
|
|
60
|
+
var Wizard = function Wizard(_ref) {
|
|
61
|
+
var children = _ref.children,
|
|
62
|
+
className = _ref.className,
|
|
63
|
+
confirmClose = _ref.confirmClose,
|
|
64
|
+
initialValues = _ref.initialValues,
|
|
65
|
+
isWizardOpen = _ref.isWizardOpen,
|
|
66
|
+
onWizardResolve = _ref.onWizardResolve,
|
|
67
|
+
onWizardSubmit = _ref.onWizardSubmit,
|
|
68
|
+
size = _ref.size,
|
|
69
|
+
title = _ref.title,
|
|
70
|
+
stepsConfig = _ref.stepsConfig,
|
|
71
|
+
submitButtonLabel = _ref.submitButtonLabel;
|
|
72
|
+
|
|
73
|
+
var _useState = (0, _react.useState)(0),
|
|
74
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
75
|
+
activeStepNumber = _useState2[0],
|
|
76
|
+
setActiveStepNumber = _useState2[1];
|
|
77
|
+
|
|
78
|
+
var activeStepTemplate = (0, _react.useMemo)(function () {
|
|
79
|
+
return _react.default.Children.toArray(children)[activeStepNumber];
|
|
80
|
+
}, [children, activeStepNumber]);
|
|
81
|
+
var totalSteps = (0, _react.useMemo)(function () {
|
|
82
|
+
return _react.default.Children.count(children) - 1 || 0;
|
|
83
|
+
}, [children]);
|
|
84
|
+
var hasSteps = (0, _react.useMemo)(function () {
|
|
85
|
+
return stepsConfig.some(function (step) {
|
|
86
|
+
return step.id;
|
|
87
|
+
});
|
|
88
|
+
}, [stepsConfig]);
|
|
89
|
+
var isLastStep = (0, _react.useMemo)(function () {
|
|
90
|
+
return activeStepNumber === totalSteps;
|
|
91
|
+
}, [activeStepNumber, totalSteps]);
|
|
92
|
+
var stepsMenu = (0, _react.useMemo)(function () {
|
|
93
|
+
return (stepsConfig === null || stepsConfig === void 0 ? void 0 : stepsConfig.map(function (step) {
|
|
94
|
+
return {
|
|
95
|
+
id: step.id,
|
|
96
|
+
label: step.label
|
|
97
|
+
};
|
|
98
|
+
})) || [];
|
|
99
|
+
}, [stepsConfig]);
|
|
100
|
+
var wizardClasses = (0, _classnames.default)('wizard-form', className, hasSteps && 'wizard-form__with-steps');
|
|
101
|
+
|
|
102
|
+
var goToNextStep = function goToNextStep() {
|
|
103
|
+
setActiveStepNumber(function (prevStep) {
|
|
104
|
+
return Math.min(++prevStep, totalSteps);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var goToPreviousStep = function goToPreviousStep() {
|
|
109
|
+
return setActiveStepNumber(function (prevStep) {
|
|
110
|
+
return Math.max(--prevStep, 0);
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
var jumpToStep = function jumpToStep(idx) {
|
|
115
|
+
return setActiveStepNumber(idx);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var _handleOnClose = function handleOnClose(FormState) {
|
|
119
|
+
if (confirmClose && FormState && FormState.dirty) {
|
|
120
|
+
(0, _common.openPopUp)(_ConfirmDialog.default, {
|
|
121
|
+
cancelButton: {
|
|
122
|
+
label: 'Cancel',
|
|
123
|
+
variant: _constants.TERTIARY_BUTTON
|
|
124
|
+
},
|
|
125
|
+
confirmButton: {
|
|
126
|
+
handler: onWizardResolve,
|
|
127
|
+
label: 'OK',
|
|
128
|
+
variant: _constants.SECONDARY_BUTTON
|
|
129
|
+
},
|
|
130
|
+
header: 'Are you sure?',
|
|
131
|
+
message: 'All changes will be lost'
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
onWizardResolve();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var handleSubmit = function handleSubmit(values) {
|
|
139
|
+
if (isLastStep) {
|
|
140
|
+
onWizardSubmit(values);
|
|
141
|
+
} else {
|
|
142
|
+
goToNextStep();
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var getDefaultActions = function getDefaultActions(FormState) {
|
|
147
|
+
if (hasSteps) {
|
|
148
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
149
|
+
onClick: goToPreviousStep,
|
|
150
|
+
disabled: activeStepNumber === 0,
|
|
151
|
+
label: "Back",
|
|
152
|
+
type: "button"
|
|
153
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
154
|
+
onClick: FormState.handleSubmit,
|
|
155
|
+
disabled: FormState.submitting,
|
|
156
|
+
label: isLastStep ? submitButtonLabel : 'Next',
|
|
157
|
+
type: "button",
|
|
158
|
+
variant: _constants.SECONDARY_BUTTON
|
|
159
|
+
})];
|
|
160
|
+
} else {
|
|
161
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
162
|
+
onClick: function onClick() {
|
|
163
|
+
return _handleOnClose(FormState);
|
|
164
|
+
},
|
|
165
|
+
label: "Cancel",
|
|
166
|
+
type: "button"
|
|
167
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
168
|
+
onClick: FormState.handleSubmit,
|
|
169
|
+
disabled: FormState.submitting,
|
|
170
|
+
label: submitButtonLabel,
|
|
171
|
+
type: "button",
|
|
172
|
+
variant: _constants.SECONDARY_BUTTON
|
|
173
|
+
})];
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
var renderModalActions = function renderModalActions(FormState) {
|
|
178
|
+
var _stepsConfig$activeSt;
|
|
179
|
+
|
|
180
|
+
if ((_stepsConfig$activeSt = stepsConfig[activeStepNumber]) !== null && _stepsConfig$activeSt !== void 0 && _stepsConfig$activeSt.getActions) {
|
|
181
|
+
return stepsConfig[activeStepNumber].getActions({
|
|
182
|
+
FormState: FormState,
|
|
183
|
+
goToNextStep: goToNextStep,
|
|
184
|
+
goToPreviousStep: goToPreviousStep,
|
|
185
|
+
handleOnClose: function handleOnClose() {
|
|
186
|
+
return _handleOnClose(FormState);
|
|
187
|
+
}
|
|
188
|
+
}).map(function (action) {
|
|
189
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread({}, action));
|
|
190
|
+
});
|
|
191
|
+
} else {
|
|
192
|
+
return getDefaultActions(FormState);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
197
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
|
|
198
|
+
initialValues: initialValues,
|
|
199
|
+
onSubmit: handleSubmit,
|
|
200
|
+
children: function children(FormState) {
|
|
201
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Modal.default, {
|
|
202
|
+
actions: renderModalActions(FormState),
|
|
203
|
+
className: wizardClasses,
|
|
204
|
+
onClose: function onClose() {
|
|
205
|
+
return _handleOnClose(FormState);
|
|
206
|
+
},
|
|
207
|
+
show: isWizardOpen,
|
|
208
|
+
size: size,
|
|
209
|
+
title: title,
|
|
210
|
+
children: [hasSteps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_WizardSteps.default, {
|
|
211
|
+
activeStepNumber: activeStepNumber,
|
|
212
|
+
jumpToStep: jumpToStep,
|
|
213
|
+
steps: stepsMenu
|
|
214
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
215
|
+
className: "wizard-form__content",
|
|
216
|
+
children: [activeStepTemplate, /*#__PURE__*/(0, _jsxRuntime.jsx)("pre", {
|
|
217
|
+
children: JSON.stringify(FormState, null, 2)
|
|
218
|
+
})]
|
|
219
|
+
})]
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
})
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
Wizard.defaultProps = {
|
|
227
|
+
className: '',
|
|
228
|
+
confirmClose: false,
|
|
229
|
+
initialValues: {},
|
|
230
|
+
size: _constants.MODAL_MD,
|
|
231
|
+
stepsConfig: [],
|
|
232
|
+
submitButtonLabel: 'Submit'
|
|
233
|
+
};
|
|
234
|
+
Wizard.propsTypes = {
|
|
235
|
+
className: _propTypes.default.string,
|
|
236
|
+
confirmClose: _propTypes.default.bool,
|
|
237
|
+
initialValues: _propTypes.default.object,
|
|
238
|
+
isOpen: _propTypes.default.bool.isRequired,
|
|
239
|
+
onResolve: _propTypes.default.func.isRequired,
|
|
240
|
+
onSubmit: _propTypes.default.func.isRequired,
|
|
241
|
+
size: _types.MODAL_SIZES,
|
|
242
|
+
title: _propTypes.default.string.isRequired,
|
|
243
|
+
stepsConfig: _types.WIZARD_STEPS_CONFIG,
|
|
244
|
+
submitButtonLabel: _propTypes.default.string
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
Wizard.Step = function (_ref2) {
|
|
248
|
+
var children = _ref2.children;
|
|
249
|
+
return children;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
var _default = Wizard;
|
|
253
|
+
exports.default = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.wizard-form {
|
|
2
|
+
&__with-steps {
|
|
3
|
+
.modal__body {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: row nowrap;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
padding-right: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wizard-form__content {
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
padding-right: 2rem;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 _Button = _interopRequireDefault(require("../../Button/Button"));
|
|
15
|
+
|
|
16
|
+
var _types = require("../../../types");
|
|
17
|
+
|
|
18
|
+
require("./WizardSteps.scss");
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
var WizardSteps = function WizardSteps(_ref) {
|
|
25
|
+
var activeStepNumber = _ref.activeStepNumber,
|
|
26
|
+
jumpToStep = _ref.jumpToStep,
|
|
27
|
+
steps = _ref.steps;
|
|
28
|
+
|
|
29
|
+
var getStepClassNames = function getStepClassNames(idx) {
|
|
30
|
+
return (0, _classnames.default)('wizard-steps__item', idx === activeStepNumber && 'active', idx < activeStepNumber && 'valid');
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var handleJumpToStep = function handleJumpToStep(event, idx) {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
jumpToStep(idx);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
|
+
className: "wizard-steps",
|
|
40
|
+
children: steps.map(function (_ref2, idx) {
|
|
41
|
+
var id = _ref2.id,
|
|
42
|
+
label = _ref2.label;
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
44
|
+
className: getStepClassNames(idx),
|
|
45
|
+
disabled: idx > activeStepNumber,
|
|
46
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
47
|
+
className: "wizard-steps__indicator",
|
|
48
|
+
children: idx + 1
|
|
49
|
+
}),
|
|
50
|
+
label: label,
|
|
51
|
+
onClick: function onClick(e) {
|
|
52
|
+
return handleJumpToStep(e, idx);
|
|
53
|
+
}
|
|
54
|
+
}, id);
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
WizardSteps.propTypes = {
|
|
60
|
+
activeStepNumber: _propTypes.default.number.isRequired,
|
|
61
|
+
jumpToStep: _propTypes.default.func.isRequired,
|
|
62
|
+
steps: _types.WIZARD_STEPS_CONFIG
|
|
63
|
+
};
|
|
64
|
+
var _default = WizardSteps;
|
|
65
|
+
exports.default = _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@import '../../../scss/variables';
|
|
2
|
+
@import '../../../scss/colors';
|
|
3
|
+
@import '../../../scss/borders';
|
|
4
|
+
|
|
5
|
+
.wizard-steps {
|
|
6
|
+
background-color: $white;
|
|
7
|
+
min-width: 260px;
|
|
8
|
+
margin-right: 1rem;
|
|
9
|
+
|
|
10
|
+
&__indicator {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border: 2px solid transparent;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
width: 36px;
|
|
18
|
+
height: 36px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__item:not(:last-child) {
|
|
22
|
+
margin-bottom: 10px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__item {
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
background-color: inherit;
|
|
28
|
+
border: 0;
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
font-size: 1em;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
min-height: 52px;
|
|
33
|
+
width: 100%;
|
|
34
|
+
|
|
35
|
+
&.active {
|
|
36
|
+
background-color: $malibuTwo;
|
|
37
|
+
color: $cornflowerBlue;
|
|
38
|
+
|
|
39
|
+
.wizard-steps__indicator {
|
|
40
|
+
border-color: transparent;
|
|
41
|
+
color: $white;
|
|
42
|
+
background-color: $malibu;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.valid {
|
|
47
|
+
color: $primary;
|
|
48
|
+
|
|
49
|
+
.wizard-steps__indicator {
|
|
50
|
+
border-color: $malibu;
|
|
51
|
+
color: $malibu;
|
|
52
|
+
background-color: inherit;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:disabled {
|
|
57
|
+
border: 0;
|
|
58
|
+
color: $spunPearl;
|
|
59
|
+
|
|
60
|
+
.wizard-steps__indicator {
|
|
61
|
+
border-color: $spunPearl;
|
|
62
|
+
color: $spunPearl;
|
|
63
|
+
background-color: inherit;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|