iguazio.dashboard-react-controls 0.0.39 → 1.2.0
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 +4 -11
- package/dist/components/Button/Button.js +25 -28
- package/dist/components/ConfirmDialog/ConfirmDialog.js +10 -24
- package/dist/components/FormCheckBox/FormCheckBox.js +25 -25
- package/dist/components/FormChipCell/FormChip/FormChip.js +33 -33
- package/dist/components/FormChipCell/FormChipCell.js +66 -109
- package/dist/components/FormChipCell/FormChipCellView.js +19 -37
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +58 -90
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +24 -22
- package/dist/components/FormChipCell/formChipCell.util.js +0 -1
- package/dist/components/FormCombobox/FormCombobox.js +82 -140
- package/dist/components/FormInput/FormInput.js +110 -175
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +6 -21
- package/dist/components/FormKeyValueTable/FormKeyValueTable.js +23 -39
- package/dist/components/FormRadio/FormRadio.js +23 -22
- package/dist/components/FormSelect/FormSelect.js +56 -92
- package/dist/components/FormSelect/FormSelect.test.js +19 -35
- package/dist/components/FormTextarea/FormTextarea.js +44 -69
- package/dist/components/Modal/Modal.js +8 -21
- package/dist/components/Modal/Modal.scss +2 -2
- package/dist/components/PopUpDialog/PopUpDialog.js +28 -43
- package/dist/components/RoundedIcon/RoundedIcon.js +7 -18
- package/dist/components/RoundedIcon/roundedIcon.scss +2 -2
- package/dist/components/Tip/Tip.js +25 -40
- package/dist/components/Tip/Tip.test.js +36 -45
- package/dist/components/Tooltip/Tooltip.js +40 -64
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +2 -8
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +2 -12
- package/dist/components/Wizard/Wizard.js +35 -57
- package/dist/components/Wizard/Wizard.scss +1 -3
- package/dist/components/Wizard/WizardSteps/WizardSteps.js +4 -16
- package/dist/components/Wizard/WizardSteps/WizardSteps.scss +1 -0
- package/dist/components/index.js +0 -18
- package/dist/constants.js +4 -6
- package/dist/elements/FormActionButton/FormActionButton.js +6 -12
- package/dist/elements/FormRowActions/FormRowActions.js +6 -18
- package/dist/elements/HiddenChipsBlock/HiddenChipsBlock.js +37 -55
- package/dist/elements/OptionsMenu/OptionsMenu.js +4 -14
- package/dist/elements/SelectOption/SelectOption.js +6 -18
- package/dist/elements/SelectOption/SelectOption.test.js +19 -12
- package/dist/elements/SelectOption/selectOption.scss +5 -2
- package/dist/elements/ValidationTemplate/ValidationTemplate.js +2 -11
- package/dist/elements/index.js +0 -6
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/useDebounce.js +1 -5
- package/dist/hooks/useDetectOutsideClick.js +4 -8
- package/dist/hooks/useFormTable.hook.js +31 -41
- package/dist/images/archive-icon.svg +3 -0
- package/dist/images/arrow.svg +1 -1
- package/dist/images/close.svg +2 -2
- package/dist/images/collapse.svg +2 -2
- package/dist/images/copy-to-clipboard-icon.svg +3 -0
- package/dist/images/deploy-icon.svg +4 -0
- package/dist/images/edit.svg +1 -1
- package/dist/images/edit_old.svg +3 -0
- package/dist/images/expand.svg +2 -2
- package/dist/images/eye-icon.svg +3 -0
- package/dist/images/link-icon.svg +5 -0
- package/dist/images/monitor-icon.svg +3 -0
- package/dist/images/refresh.svg +1 -1
- package/dist/images/tag-icon.svg +4 -0
- package/dist/images/unarchive-icon.svg +3 -0
- package/dist/images/yaml.svg +2 -3
- package/dist/images/yaml_old.svg +4 -0
- package/dist/index.js +0 -13
- package/dist/scss/borders.scss +1 -1
- package/dist/scss/colors.scss +2 -0
- package/dist/scss/common.scss +7 -3
- package/dist/scss/mixins.scss +6 -19
- package/dist/scss/shadows.scss +3 -3
- package/dist/scss/variables.scss +2 -0
- package/dist/types.js +19 -49
- package/dist/utils/common.util.js +3 -13
- package/dist/utils/form.util.js +20 -24
- package/dist/utils/generateChipsList.util.js +0 -3
- package/dist/utils/getFirstScrollableParent.util.js +0 -5
- package/dist/utils/validation.util.js +72 -94
- package/package.json +104 -104
- package/dist/images/eye.svg +0 -4
|
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _reactTransitionGroup = require("react-transition-group");
|
|
13
|
-
|
|
14
10
|
var _components = require("../../components");
|
|
15
|
-
|
|
16
11
|
require("./optionsMenu.scss");
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
/*
|
|
23
15
|
Copyright 2022 Iguazio Systems Ltd.
|
|
24
16
|
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
@@ -35,14 +27,13 @@ illegal under applicable law, and the grant of the foregoing license
|
|
|
35
27
|
under the Apache 2.0 license is conditioned upon your compliance with
|
|
36
28
|
such restriction.
|
|
37
29
|
*/
|
|
30
|
+
|
|
38
31
|
var OptionsMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
39
32
|
var children = _ref.children,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
show = _ref.show,
|
|
34
|
+
timeout = _ref.timeout;
|
|
43
35
|
var _ref2 = ref.current ? ref.current.getBoundingClientRect() : {},
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
dropdownWidth = _ref2.width;
|
|
46
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
47
38
|
in: show,
|
|
48
39
|
timeout: timeout,
|
|
@@ -65,7 +56,6 @@ var OptionsMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
65
56
|
})
|
|
66
57
|
});
|
|
67
58
|
});
|
|
68
|
-
|
|
69
59
|
OptionsMenu.defaultProps = {
|
|
70
60
|
children: [],
|
|
71
61
|
show: false,
|
|
@@ -4,25 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _components = require("../../components");
|
|
15
|
-
|
|
16
11
|
var _types = require("../../types");
|
|
17
|
-
|
|
18
12
|
var _checkmark = require("../../images/checkmark.svg");
|
|
19
|
-
|
|
20
13
|
require("./selectOption.scss");
|
|
21
|
-
|
|
22
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
16
|
/*
|
|
27
17
|
Copyright 2022 Iguazio Systems Ltd.
|
|
28
18
|
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
@@ -39,15 +29,15 @@ illegal under applicable law, and the grant of the foregoing license
|
|
|
39
29
|
under the Apache 2.0 license is conditioned upon your compliance with
|
|
40
30
|
such restriction.
|
|
41
31
|
*/
|
|
32
|
+
|
|
42
33
|
var SelectOption = function SelectOption(_ref) {
|
|
43
34
|
var item = _ref.item,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
name = _ref.name,
|
|
36
|
+
_onClick = _ref.onClick,
|
|
37
|
+
multiple = _ref.multiple,
|
|
38
|
+
selectedId = _ref.selectedId,
|
|
39
|
+
withSelectedIcon = _ref.withSelectedIcon;
|
|
49
40
|
var selectClassName = (0, _classnames.default)('select__item', multiple && 'multiple', item.hidden && 'hidden', item.disabled && 'disabled');
|
|
50
|
-
|
|
51
41
|
if (multiple) {
|
|
52
42
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
43
|
"data-testid": "select-checkbox",
|
|
@@ -62,7 +52,6 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
62
52
|
})
|
|
63
53
|
});
|
|
64
54
|
}
|
|
65
|
-
|
|
66
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
56
|
"data-testid": "select-option",
|
|
68
57
|
className: selectClassName,
|
|
@@ -99,7 +88,6 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
99
88
|
})]
|
|
100
89
|
});
|
|
101
90
|
};
|
|
102
|
-
|
|
103
91
|
SelectOption.defaultProps = {
|
|
104
92
|
onClick: function onClick() {},
|
|
105
93
|
multiple: false,
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
4
|
var _react2 = require("@testing-library/react");
|
|
6
|
-
|
|
7
5
|
var _SelectOption = _interopRequireDefault(require("./SelectOption"));
|
|
8
|
-
|
|
9
6
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
8
|
+
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); }
|
|
13
9
|
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; }
|
|
14
|
-
|
|
15
10
|
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; }
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
|
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
|
|
14
|
+
Copyright 2022 Iguazio Systems Ltd.
|
|
15
|
+
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
16
|
+
an addition restriction as set forth herein. You may not use this
|
|
17
|
+
file except in compliance with the License. You may obtain a copy of
|
|
18
|
+
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
19
|
+
Unless required by applicable law or agreed to in writing, software
|
|
20
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
22
|
+
implied. See the License for the specific language governing
|
|
23
|
+
permissions and limitations under the License.
|
|
24
|
+
In addition, you may not use the software for any purposes that are
|
|
25
|
+
illegal under applicable law, and the grant of the foregoing license
|
|
26
|
+
under the Apache 2.0 license is conditioned upon your compliance with
|
|
27
|
+
such restriction.
|
|
28
|
+
*/
|
|
19
29
|
var renderComponent = function renderComponent(props) {
|
|
20
30
|
return (0, _react2.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, _objectSpread({}, props)));
|
|
21
31
|
};
|
|
22
|
-
|
|
23
32
|
jest.mock('../../images/checkbox-unchecked.svg', function () {
|
|
24
33
|
return {
|
|
25
34
|
ReactComponent: 'unchecked-icon'
|
|
@@ -76,9 +85,7 @@ describe('SelectOption component', function () {
|
|
|
76
85
|
disabled: true
|
|
77
86
|
}));
|
|
78
87
|
var selectOption = wrapper.getByTestId('select-option');
|
|
79
|
-
|
|
80
88
|
_react2.fireEvent.click(selectOption);
|
|
81
|
-
|
|
82
89
|
expect(mockCLick).toHaveBeenCalledTimes(0);
|
|
83
90
|
});
|
|
84
91
|
it('should display subLabel if it exists in props item', function () {
|
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _success_done = require("../../images/success_done.svg");
|
|
15
|
-
|
|
16
11
|
var _close = require("../../images/close.svg");
|
|
17
|
-
|
|
18
12
|
require("./ValidationTemplate.scss");
|
|
19
|
-
|
|
20
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
15
|
/*
|
|
25
16
|
Copyright 2022 Iguazio Systems Ltd.
|
|
26
17
|
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
@@ -37,9 +28,10 @@ illegal under applicable law, and the grant of the foregoing license
|
|
|
37
28
|
under the Apache 2.0 license is conditioned upon your compliance with
|
|
38
29
|
such restriction.
|
|
39
30
|
*/
|
|
31
|
+
|
|
40
32
|
var ValidationTemplate = function ValidationTemplate(_ref) {
|
|
41
33
|
var valid = _ref.valid,
|
|
42
|
-
|
|
34
|
+
validationMessage = _ref.validationMessage;
|
|
43
35
|
var validationClasses = (0, _classnames.default)('validation-option', valid && 'text-muted');
|
|
44
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
45
37
|
className: validationClasses,
|
|
@@ -55,7 +47,6 @@ var ValidationTemplate = function ValidationTemplate(_ref) {
|
|
|
55
47
|
})]
|
|
56
48
|
});
|
|
57
49
|
};
|
|
58
|
-
|
|
59
50
|
ValidationTemplate.propTypes = {
|
|
60
51
|
valid: _propTypes.default.bool.isRequired,
|
|
61
52
|
validationMessage: _propTypes.default.string.isRequired
|
package/dist/elements/index.js
CHANGED
|
@@ -33,15 +33,9 @@ Object.defineProperty(exports, "ValidationTemplate", {
|
|
|
33
33
|
return _ValidationTemplate.default;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
|
|
37
36
|
var _FormActionButton = _interopRequireDefault(require("./FormActionButton/FormActionButton"));
|
|
38
|
-
|
|
39
37
|
var _FormRowActions = _interopRequireDefault(require("./FormRowActions/FormRowActions"));
|
|
40
|
-
|
|
41
38
|
var _OptionsMenu = _interopRequireDefault(require("./OptionsMenu/OptionsMenu"));
|
|
42
|
-
|
|
43
39
|
var _SelectOption = _interopRequireDefault(require("./SelectOption/SelectOption"));
|
|
44
|
-
|
|
45
40
|
var _ValidationTemplate = _interopRequireDefault(require("./ValidationTemplate/ValidationTemplate"));
|
|
46
|
-
|
|
47
41
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/dist/hooks/index.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDebounce = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
Copyright 2022 Iguazio Systems Ltd.
|
|
12
10
|
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
@@ -23,6 +21,7 @@ illegal under applicable law, and the grant of the foregoing license
|
|
|
23
21
|
under the Apache 2.0 license is conditioned upon your compliance with
|
|
24
22
|
such restriction.
|
|
25
23
|
*/
|
|
24
|
+
|
|
26
25
|
var useDebounce = function useDebounce() {
|
|
27
26
|
return function (validate, time) {
|
|
28
27
|
var timeout = (0, _react.useRef)(null);
|
|
@@ -33,14 +32,12 @@ var useDebounce = function useDebounce() {
|
|
|
33
32
|
if (timeout.current) {
|
|
34
33
|
timeout.current();
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
if (value !== lastValue.current) {
|
|
38
36
|
var timerId = setTimeout(function () {
|
|
39
37
|
lastValue.current = value;
|
|
40
38
|
lastResult.current = validate(value);
|
|
41
39
|
resolve(lastResult.current);
|
|
42
40
|
}, time);
|
|
43
|
-
|
|
44
41
|
timeout.current = function () {
|
|
45
42
|
clearTimeout(timerId);
|
|
46
43
|
resolve(true);
|
|
@@ -52,5 +49,4 @@ var useDebounce = function useDebounce() {
|
|
|
52
49
|
};
|
|
53
50
|
};
|
|
54
51
|
};
|
|
55
|
-
|
|
56
52
|
exports.useDebounce = useDebounce;
|
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDetectOutsideClick = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
Copyright 2022 Iguazio Systems Ltd.
|
|
12
10
|
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
@@ -33,19 +31,17 @@ such restriction.
|
|
|
33
31
|
var useDetectOutsideClick = function useDetectOutsideClick(ref, handler) {
|
|
34
32
|
(0, _react.useEffect)(function () {
|
|
35
33
|
var onClick = function onClick(e) {
|
|
36
|
-
e.stopPropagation();
|
|
37
|
-
|
|
34
|
+
e.stopPropagation();
|
|
35
|
+
// If the active element exists and is clicked outside of
|
|
38
36
|
if (ref.current !== null && !ref.current.contains(e.target)) {
|
|
39
37
|
handler(e);
|
|
40
38
|
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
};
|
|
40
|
+
// If the item is active (ie open) then listen for clicks outside
|
|
44
41
|
window.addEventListener('click', onClick);
|
|
45
42
|
return function () {
|
|
46
43
|
window.removeEventListener('click', onClick);
|
|
47
44
|
};
|
|
48
45
|
}, [ref, handler]);
|
|
49
46
|
};
|
|
50
|
-
|
|
51
47
|
exports.useDetectOutsideClick = useDetectOutsideClick;
|
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.useFormTable = void 0;
|
|
7
|
-
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
|
|
10
9
|
var _lodash = require("lodash");
|
|
11
|
-
|
|
12
10
|
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; }
|
|
13
|
-
|
|
14
11
|
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; }
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
-
|
|
20
16
|
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."); }
|
|
21
|
-
|
|
22
17
|
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); }
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
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; }
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*
|
|
21
|
+
Copyright 2019 Iguazio Systems Ltd.
|
|
22
|
+
|
|
23
|
+
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
24
|
+
an addition restriction as set forth herein. You may not use this
|
|
25
|
+
file except in compliance with the License. You may obtain a copy of
|
|
26
|
+
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
27
|
+
|
|
28
|
+
Unless required by applicable law or agreed to in writing, software
|
|
29
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
30
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
31
|
+
implied. See the License for the specific language governing
|
|
32
|
+
permissions and limitations under the License.
|
|
33
|
+
|
|
34
|
+
In addition, you may not use the software for any purposes that are
|
|
35
|
+
illegal under applicable law, and the grant of the foregoing license
|
|
36
|
+
under the Apache 2.0 license is conditioned upon your compliance with
|
|
37
|
+
such restriction.
|
|
38
|
+
*/
|
|
30
39
|
var useFormTable = function useFormTable(formState) {
|
|
31
40
|
// `editingItem` should contain the `data` object with all fields that are used in the `formState`.
|
|
32
41
|
// Properties that aren't used in the `formState` should be placed directly in the `editingItem` object
|
|
@@ -46,10 +55,9 @@ var useFormTable = function useFormTable(formState) {
|
|
|
46
55
|
// }
|
|
47
56
|
// }
|
|
48
57
|
var _useState = (0, _react.useState)(null),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
editingItem = _useState2[0],
|
|
60
|
+
setEditingItem = _useState2[1];
|
|
53
61
|
var editingItemRef = (0, _react.useRef)(null);
|
|
54
62
|
var bottomScrollRef = (0, _react.useRef)(null);
|
|
55
63
|
(0, _react.useEffect)(function () {
|
|
@@ -58,7 +66,6 @@ var useFormTable = function useFormTable(formState) {
|
|
|
58
66
|
(0, _react.useEffect)(function () {
|
|
59
67
|
return function () {
|
|
60
68
|
var _editingItemRef$curre, _editingItemRef$curre2;
|
|
61
|
-
|
|
62
69
|
if ((_editingItemRef$curre = editingItemRef.current) !== null && _editingItemRef$curre !== void 0 && (_editingItemRef$curre2 = _editingItemRef$curre.ui) !== null && _editingItemRef$curre2 !== void 0 && _editingItemRef$curre2.isNew) {
|
|
63
70
|
formState.form.mutators.remove(editingItemRef.current.ui.fieldsPath, editingItemRef.current.ui.index);
|
|
64
71
|
} else if (editingItemRef.current) {
|
|
@@ -66,13 +73,11 @@ var useFormTable = function useFormTable(formState) {
|
|
|
66
73
|
}
|
|
67
74
|
};
|
|
68
75
|
}, [formState.form.mutators]);
|
|
69
|
-
|
|
70
76
|
var addNewRow = function addNewRow(event, fields, fieldsPath, newItem) {
|
|
71
77
|
applyOrDiscardOrDelete(event);
|
|
72
78
|
formState.form.mutators.push(fieldsPath, newItem);
|
|
73
79
|
setEditingItem(function () {
|
|
74
80
|
var _fields$value;
|
|
75
|
-
|
|
76
81
|
return _objectSpread(_objectSpread({}, newItem), {}, {
|
|
77
82
|
ui: {
|
|
78
83
|
isNew: true,
|
|
@@ -83,22 +88,20 @@ var useFormTable = function useFormTable(formState) {
|
|
|
83
88
|
});
|
|
84
89
|
scrollIntoView();
|
|
85
90
|
};
|
|
86
|
-
|
|
87
91
|
var applyChanges = function applyChanges(event, index) {
|
|
88
92
|
if (editingItem) {
|
|
89
93
|
if (!(0, _lodash.get)(formState === null || formState === void 0 ? void 0 : formState.errors, editingItem.ui.fieldsPath.split('.'), false)) {
|
|
90
94
|
exitEditMode();
|
|
91
|
-
|
|
92
95
|
if (editingItem.ui.isNew) {
|
|
93
96
|
scrollIntoView();
|
|
94
97
|
}
|
|
95
98
|
} else {
|
|
96
|
-
var errorField = (0, _lodash.get)(formState.errors, editingItem.ui.fieldsPath.split('.'), {})[index];
|
|
99
|
+
var errorField = (0, _lodash.get)(formState.errors, editingItem.ui.fieldsPath.split('.'), {})[index];
|
|
97
100
|
|
|
101
|
+
// Mark all empty fields as `modified` in order to highlight the error if the field is invalid
|
|
98
102
|
Object.entries(errorField.data).forEach(function (_ref) {
|
|
99
103
|
var _ref2 = _slicedToArray(_ref, 1),
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
fieldName = _ref2[0];
|
|
102
105
|
formState.form.mutators.setFieldState("".concat(editingItem.ui.fieldsPath, "[").concat(index, "].data.").concat(fieldName), {
|
|
103
106
|
modified: true
|
|
104
107
|
});
|
|
@@ -106,10 +109,8 @@ var useFormTable = function useFormTable(formState) {
|
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
};
|
|
109
|
-
|
|
110
112
|
var applyOrDiscardOrDelete = function applyOrDiscardOrDelete() {
|
|
111
113
|
var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
112
|
-
|
|
113
114
|
if (editingItem) {
|
|
114
115
|
if (!(0, _lodash.get)(formState === null || formState === void 0 ? void 0 : formState.errors, editingItem.ui.fieldsPath, false)) {
|
|
115
116
|
applyChanges(event, editingItem.ui.index);
|
|
@@ -118,33 +119,27 @@ var useFormTable = function useFormTable(formState) {
|
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
};
|
|
121
|
-
|
|
122
122
|
var deleteRow = function deleteRow(event, fieldsPath, index) {
|
|
123
123
|
if (editingItem && index !== editingItem.ui.index) {
|
|
124
124
|
applyOrDiscardOrDelete(event);
|
|
125
125
|
}
|
|
126
|
-
|
|
127
126
|
exitEditMode();
|
|
128
127
|
formState.form.mutators.remove(fieldsPath, index);
|
|
129
128
|
event && event.stopPropagation();
|
|
130
129
|
};
|
|
131
|
-
|
|
132
130
|
var discardChanges = function discardChanges(event, fieldsPath, index) {
|
|
133
131
|
exitEditMode();
|
|
134
132
|
formState.form.mutators.update(fieldsPath, index, (0, _lodash.omit)(editingItem, ['ui']));
|
|
135
133
|
event && event.stopPropagation();
|
|
136
134
|
};
|
|
137
|
-
|
|
138
135
|
var discardOrDelete = function discardOrDelete(event, fieldsPath, index) {
|
|
139
136
|
var _editingItem$ui;
|
|
140
|
-
|
|
141
137
|
if (!editingItem || editingItem !== null && editingItem !== void 0 && (_editingItem$ui = editingItem.ui) !== null && _editingItem$ui !== void 0 && _editingItem$ui.isNew) {
|
|
142
138
|
deleteRow(event, fieldsPath, index);
|
|
143
139
|
} else {
|
|
144
140
|
discardChanges(event, fieldsPath, index);
|
|
145
141
|
}
|
|
146
142
|
};
|
|
147
|
-
|
|
148
143
|
var enterEditMode = function enterEditMode(event, fields, fieldsPath, index) {
|
|
149
144
|
applyOrDiscardOrDelete(event);
|
|
150
145
|
setTimeout(function () {
|
|
@@ -159,11 +154,9 @@ var useFormTable = function useFormTable(formState) {
|
|
|
159
154
|
});
|
|
160
155
|
});
|
|
161
156
|
};
|
|
162
|
-
|
|
163
157
|
var exitEditMode = function exitEditMode() {
|
|
164
158
|
setEditingItem(null);
|
|
165
159
|
};
|
|
166
|
-
|
|
167
160
|
var scrollIntoView = function scrollIntoView() {
|
|
168
161
|
if (bottomScrollRef.current) {
|
|
169
162
|
setTimeout(function () {
|
|
@@ -174,11 +167,9 @@ var useFormTable = function useFormTable(formState) {
|
|
|
174
167
|
});
|
|
175
168
|
}
|
|
176
169
|
};
|
|
177
|
-
|
|
178
170
|
var isCurrentRowEditing = function isCurrentRowEditing(rowPath) {
|
|
179
171
|
return editingItem && "".concat(editingItem.ui.fieldsPath, "[").concat(editingItem.ui.index, "]") === rowPath;
|
|
180
172
|
};
|
|
181
|
-
|
|
182
173
|
return {
|
|
183
174
|
addNewRow: addNewRow,
|
|
184
175
|
applyChanges: applyChanges,
|
|
@@ -194,5 +185,4 @@ var useFormTable = function useFormTable(formState) {
|
|
|
194
185
|
isCurrentRowEditing: isCurrentRowEditing
|
|
195
186
|
};
|
|
196
187
|
};
|
|
197
|
-
|
|
198
188
|
exports.useFormTable = useFormTable;
|
package/dist/images/arrow.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M9
|
|
2
|
+
<path d="M9 15.825L12.7085 12L9 8.175L10.1417 7L15 12L10.1417 17L9 15.825Z" fill="#7F7989"/>
|
|
3
3
|
</svg>
|
package/dist/images/close.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M21 4.8L19.2 3L12 10.2L4.8 3L3 4.8L10.2 12L3 19.2L4.8 21L12 13.8L19.2 21L21 19.2L13.8 12L21 4.8Z" fill="#8A8493"/>
|
|
3
3
|
</svg>
|
package/dist/images/collapse.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path d="
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M17 4.53595L15.4532 3L12 6.45316L8.54684 3L7 4.53595L12 9.53595M7 18.8932L8.54684 20.4292L12 16.976L15.4532 20.4292L16.9891 18.8932L12 13.8932L7 18.8932Z" fill="#7F7989"/>
|
|
3
3
|
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16 2H4C2.9 2 2 2.9 2 4V18H4V4H16V2ZM15 6H8C6.9 6 6.01 6.9 6.01 8L6 22C6 23.1 6.89 24 7.99 24H19C20.1 24 21 23.1 21 22V12L15 6ZM8 22V8H14V13H19V22H8Z" fill="#7F7989"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12.9712 20L11.6794 16.9648C12.9237 16.5052 14.0886 15.8871 15.1665 15.1659L12.9712 20ZM7.03526 12.321L3.99992 11.0292L8.83427 8.83408C8.11308 9.91185 7.49492 11.0768 7.03526 12.321ZM17.7976 5.58495C18.0195 5.58495 18.2177 5.58495 18.3841 5.62458C18.5188 6.72611 18.3682 8.99258 15.7688 11.5919C14.4215 12.947 12.8127 13.9852 11.0058 14.6746L9.30185 13.0104C10.031 11.1798 11.0692 9.57108 12.4085 8.23181C14.5959 6.04459 16.5454 5.58495 17.7976 5.58495ZM17.7976 4.00001C16.2284 4.00001 13.8509 4.54681 11.2831 7.11442C9.54753 8.84993 8.50934 10.7598 7.8357 12.4319C7.61379 13.0263 7.76437 13.6761 8.20025 14.1199L9.88831 15.7999C10.1895 16.101 10.5937 16.2833 11.0137 16.2833C11.196 16.2833 11.3862 16.2358 11.5684 16.1644C13.2644 15.5146 15.1506 14.4527 16.8862 12.7172C21.3719 8.23181 19.6917 4.30907 19.6917 4.30907C19.6917 4.30907 18.9705 4.00001 17.7976 4.00001ZM14.0886 9.91185C13.4705 9.29372 13.4705 8.28728 14.0886 7.66915C14.7068 7.05102 15.7133 7.05102 16.3315 7.66915C16.9417 8.28728 16.9496 9.29372 16.3315 9.91185C15.7133 10.53 14.7068 10.53 14.0886 9.91185ZM7.51077 19.8494L10.3955 16.9648C10.1261 16.8935 9.86454 16.7746 9.62678 16.6082L6.39332 19.8494H7.51077ZM4.1505 19.8494H5.26795L9.04825 16.0773L7.92287 14.9599L4.1505 18.7321V19.8494ZM4.1505 17.6067L7.39189 14.3735C7.22546 14.1357 7.10658 13.8821 7.03526 13.6048L4.1505 16.4894V17.6067Z" fill="#7F7989"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.20025 14.1199C7.76437 13.6761 7.61379 13.0263 7.8357 12.4319C8.50934 10.7598 9.54753 8.84993 11.2831 7.11442C13.8509 4.54681 16.2284 4.00001 17.7976 4.00001C18.9705 4.00001 19.6917 4.30907 19.6917 4.30907C19.6917 4.30907 21.3719 8.23181 16.8862 12.7172C15.1506 14.4527 13.2644 15.5146 11.5684 16.1644C11.3862 16.2358 11.196 16.2833 11.0137 16.2833C10.5937 16.2833 10.1895 16.101 9.88831 15.7999L8.20025 14.1199ZM9.73983 15.9484C9.73974 15.9483 9.73991 15.9485 9.73983 15.9484L8.05212 14.2687L8.05044 14.267C7.55912 13.7668 7.38768 13.0315 7.63896 12.3585L7.64085 12.3534C8.32176 10.6632 9.37366 8.72682 11.1347 6.96592C13.7422 4.35849 16.1734 3.79001 17.7976 3.79001C18.4025 3.79001 18.8923 3.86969 19.2328 3.95017C19.4031 3.99042 19.5362 4.03089 19.6278 4.06179C19.6736 4.07724 19.7091 4.0903 19.7337 4.09975C19.746 4.10447 19.7556 4.10829 19.7624 4.11106L19.7706 4.1144L19.773 4.11545L19.7742 4.11594C19.7743 4.11597 19.7745 4.11605 19.6917 4.30907C19.8848 4.22639 19.8848 4.22654 19.8849 4.2267L19.8855 4.22816L19.8869 4.23136L19.8912 4.24206C19.8949 4.25108 19.8999 4.26388 19.9061 4.28034C19.9185 4.31325 19.9355 4.36085 19.9552 4.4223C19.9945 4.54519 20.0447 4.72362 20.0901 4.95096C20.1809 5.40564 20.2527 6.05659 20.1802 6.8502C20.035 8.44175 19.3113 10.5892 17.0347 12.8657C15.2753 14.625 13.363 15.7016 11.6442 16.3603C11.4474 16.4372 11.2305 16.4933 11.0137 16.4933C10.5328 16.4933 10.0764 16.2849 9.73983 15.9484ZM19.6917 4.30907L19.7742 4.11594L19.8517 4.14915L19.8849 4.2267L19.6917 4.30907ZM12.965 20.5216L11.3998 16.8442L11.6066 16.7679C12.8335 16.3146 13.9838 15.7046 15.0497 14.9914L15.6626 14.5813L12.965 20.5216ZM7.15585 12.6005L3.47827 11.0355L9.41892 8.33797L9.0088 8.95087C8.2956 10.0167 7.68547 11.167 7.23224 12.3937L7.15585 12.6005ZM15.7688 11.5919C18.3682 8.99258 18.5188 6.72611 18.3841 5.62458C18.2177 5.58495 18.0195 5.58495 17.7976 5.58495C16.5454 5.58495 14.5959 6.04459 12.4085 8.23181C11.0692 9.57108 10.031 11.1798 9.30185 13.0104L11.0058 14.6746C12.8127 13.9852 14.4215 12.947 15.7688 11.5919ZM11.0559 14.43C12.7848 13.7512 14.3252 12.7461 15.6199 11.4438C18.0507 9.01317 18.2849 6.89992 18.1918 5.80608C18.0822 5.7955 17.9534 5.79495 17.7976 5.79495C16.6035 5.79495 14.7066 6.23079 12.557 8.3803C11.2708 9.66646 10.2655 11.2064 9.54925 12.9585L11.0559 14.43ZM7.59775 20.0594H5.88719L9.60269 16.335L9.74721 16.4362C9.96418 16.5881 10.203 16.6967 10.4493 16.7618L10.8021 16.8552L7.59775 20.0594ZM3.9405 20.0594V18.6451L7.92235 14.6634L9.34592 16.0769L5.3548 20.0594H3.9405ZM3.9405 18.1128V16.4024L7.14699 13.1961L7.23864 13.5525C7.3034 13.8043 7.41126 14.035 7.56392 14.253L7.6651 14.3976L3.9405 18.1128ZM12.9712 20L15.1665 15.1659C15.058 15.2385 14.9486 15.31 14.8384 15.3805C13.9112 15.9729 12.9222 16.4875 11.876 16.8906C11.8107 16.9158 11.7452 16.9405 11.6794 16.9648L12.9712 20ZM7.03526 12.321C7.05955 12.2552 7.0843 12.1896 7.10947 12.1243C7.51262 11.0782 8.02725 10.0893 8.6197 9.16215C8.69014 9.05192 8.76168 8.94256 8.83427 8.83408L3.99992 11.0292L7.03526 12.321ZM10.3955 16.9648C10.3196 16.9448 10.2444 16.9209 10.1701 16.8933C9.98065 16.8228 9.79758 16.7278 9.62678 16.6082L6.39332 19.8494H7.51077L10.3955 16.9648ZM5.26795 19.8494H4.1505V18.7321L7.92287 14.9599L9.04825 16.0773L5.26795 19.8494ZM7.39189 14.3735C7.2718 14.2019 7.17647 14.0221 7.1059 13.8311C7.07866 13.7574 7.05512 13.682 7.03526 13.6048L4.1505 16.4894V17.6067L7.39189 14.3735Z" fill="#7F7989"/>
|
|
4
|
+
</svg>
|
package/dist/images/edit.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="
|
|
2
|
+
<path d="M14.06 9L15 9.94L5.92 19H5V18.08L14.06 9ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z" fill="#7F7989"/>
|
|
3
3
|
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3 17.25V21H6.75L17.81 9.94L14.06 6.19L3 17.25ZM20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C17.98 2.9 17.35 2.9 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04Z" fill="#7F7989"/>
|
|
3
|
+
</svg>
|
package/dist/images/expand.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path d="
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 5.14444L15.4532 8.66667L16.9891 7.1L12 2L7 7.1L8.54684 8.66667L12 5.14444ZM12 18.8556L8.54684 15.3333L7.01089 16.9L12 22L17 16.9L15.4532 15.3333L12 18.8556Z" fill="#7F7989"/>
|
|
3
3
|
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 5C7.45455 5 3.57273 7.69533 2 11.5C3.57273 15.3047 7.45455 18 12 18C16.5455 18 20.4273 15.3047 22 11.5C20.4273 7.69533 16.5455 5 12 5ZM12 15.8333C9.49091 15.8333 7.45455 13.892 7.45455 11.5C7.45455 9.108 9.49091 7.16667 12 7.16667C14.5091 7.16667 16.5455 9.108 16.5455 11.5C16.5455 13.892 14.5091 15.8333 12 15.8333ZM9.27273 11.5C9.27273 10.0613 10.4909 8.9 12 8.9C13.5091 8.9 14.7273 10.0613 14.7273 11.5C14.7273 12.9387 13.5091 14.1 12 14.1C10.4909 14.1 9.27273 12.9387 9.27273 11.5Z" fill="#7F7989"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.07107 13.2426L7.65685 14.6569L5.53553 12.5355C3.58291 10.5829 3.58291 7.41709 5.53553 5.46447C7.48816 3.51184 10.654 3.51184 12.6066 5.46447L14.7279 7.58579L13.3137 9L11.1924 6.87868C10.0208 5.70711 8.12132 5.70711 6.94975 6.87868C5.77817 8.05025 5.77817 9.94975 6.94975 11.1213L9.07107 13.2426Z" fill="#7F7989"/>
|
|
3
|
+
<path d="M14.0208 15.364L8.36396 9.70711L9.77817 8.29289L15.435 13.9497L14.0208 15.364Z" fill="#7F7989"/>
|
|
4
|
+
<path d="M16.1421 9L14.7279 10.4142L16.8492 12.5355C18.0208 13.7071 18.0208 15.6066 16.8492 16.7782C15.6777 17.9497 13.7782 17.9497 12.6066 16.7782L10.4853 14.6569L9.07107 16.0711L11.1924 18.1924C13.145 20.145 16.3108 20.145 18.2635 18.1924C20.2161 16.2398 20.2161 13.0739 18.2635 11.1213L16.1421 9Z" fill="#7F7989"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V12.9999H16.3636C16.1567 12.9999 15.9661 12.9413 15.8037 12.8177C15.6483 12.6999 15.5346 12.5428 15.4591 12.3561L15.4563 12.349L14.1822 8.89786L11.0686 17.3614C10.9669 17.616 10.8055 17.828 10.5872 17.9931C10.3614 18.1638 10.1023 18.2499 9.81818 18.2499C9.53405 18.2499 9.27492 18.1638 9.0492 17.9931C8.8309 17.828 8.6695 17.616 8.56782 17.3614L8.56547 17.3555L6.95324 12.9999H5V19ZM5 10.9999H7.63636C7.84328 10.9999 8.0339 11.0585 8.19631 11.1821C8.35165 11.2999 8.46544 11.457 8.54089 11.6438L8.54373 11.6508L9.81776 15.102L12.9314 6.63842C13.0331 6.38377 13.1945 6.17185 13.4128 6.00676C13.6386 5.83606 13.8977 5.74991 14.1818 5.74991C14.4659 5.74991 14.7251 5.83606 14.9508 6.00676C15.1691 6.17185 15.3305 6.38381 15.4322 6.63845L15.4345 6.64434L17.0468 10.9999H19V5H5V10.9999Z" fill="#7F7989"/>
|
|
3
|
+
</svg>
|