iguazio.dashboard-react-controls 0.0.16 → 0.0.19

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.
Files changed (33) hide show
  1. package/dist/components/Backdrop/Backdrop.js +16 -0
  2. package/dist/components/ConfirmDialog/ConfirmDialog.js +16 -0
  3. package/dist/components/FormChipCell/FormChipCellView.js +21 -3
  4. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +17 -1
  5. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +1 -1
  6. package/dist/components/FormInput/formInput.scss +4 -0
  7. package/dist/components/FormSelect/FormSelect.js +4 -3
  8. package/dist/components/FormSelect/FormSelect.test.js +1 -1
  9. package/dist/components/FormSelect/formSelect.scss +4 -0
  10. package/dist/components/FormTextarea/FormTextarea.js +27 -10
  11. package/dist/components/FormTextarea/formTextarea.scss +12 -0
  12. package/dist/components/Modal/Modal.js +17 -33
  13. package/dist/components/RoundedIcon/RoundedIcon.js +16 -0
  14. package/dist/components/Tooltip/Tooltip.test.js +16 -0
  15. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +16 -0
  16. package/dist/components/TooltipTemplate/TextTooltipTemplate.js +16 -0
  17. package/dist/components/Wizard/Wizard.scss +2 -0
  18. package/dist/components/Wizard/WizardSteps/WizardSteps.js +16 -0
  19. package/dist/components/Wizard/WizardSteps/WizardSteps.scss +1 -0
  20. package/dist/constants.js +17 -0
  21. package/dist/elements/HiddenChipsBlock/HiddenChipsBlock.js +5 -3
  22. package/dist/elements/OptionsMenu/OptionsMenu.js +16 -0
  23. package/dist/elements/SelectOption/SelectOption.js +16 -0
  24. package/dist/elements/SelectOption/SelectOption.test.js +2 -2
  25. package/dist/elements/ValidationTemplate/ValidationTemplate.js +16 -0
  26. package/dist/hooks/useDetectOutsideClick.js +17 -0
  27. package/dist/scss/common.scss +0 -1
  28. package/dist/types.js +16 -0
  29. package/dist/utils/common.util.js +16 -0
  30. package/dist/utils/form.util.js +32 -2
  31. package/dist/utils/generateChipsList.util.js +16 -0
  32. package/dist/utils/getFirstScrollableParent.util.js +17 -0
  33. package/package.json +1 -1
@@ -17,6 +17,22 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
+ /*
21
+ Copyright 2022 Iguazio Systems Ltd.
22
+ Licensed under the Apache License, Version 2.0 (the "License") with
23
+ an addition restriction as set forth herein. You may not use this
24
+ file except in compliance with the License. You may obtain a copy of
25
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
26
+ Unless required by applicable law or agreed to in writing, software
27
+ distributed under the License is distributed on an "AS IS" BASIS,
28
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
29
+ implied. See the License for the specific language governing
30
+ permissions and limitations under the License.
31
+ In addition, you may not use the software for any purposes that are
32
+ illegal under applicable law, and the grant of the foregoing license
33
+ under the Apache 2.0 license is conditioned upon your compliance with
34
+ such restriction.
35
+ */
20
36
  var Backdrop = function Backdrop(_ref) {
21
37
  var _ref$duration = _ref.duration,
22
38
  duration = _ref$duration === void 0 ? 300 : _ref$duration,
@@ -23,6 +23,22 @@ var _jsxRuntime = require("react/jsx-runtime");
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
+ /*
27
+ Copyright 2022 Iguazio Systems Ltd.
28
+ Licensed under the Apache License, Version 2.0 (the "License") with
29
+ an addition restriction as set forth herein. You may not use this
30
+ file except in compliance with the License. You may obtain a copy of
31
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
32
+ Unless required by applicable law or agreed to in writing, software
33
+ distributed under the License is distributed on an "AS IS" BASIS,
34
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
35
+ implied. See the License for the specific language governing
36
+ permissions and limitations under the License.
37
+ In addition, you may not use the software for any purposes that are
38
+ illegal under applicable law, and the grant of the foregoing license
39
+ under the Apache 2.0 license is conditioned upon your compliance with
40
+ such restriction.
41
+ */
26
42
  var ConfirmDialog = function ConfirmDialog(_ref) {
27
43
  var cancelButton = _ref.cancelButton,
28
44
  className = _ref.className,
@@ -17,7 +17,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
17
17
 
18
18
  var _HiddenChipsBlock = _interopRequireDefault(require("../../elements/HiddenChipsBlock/HiddenChipsBlock"));
19
19
 
20
- var _components = require("igz-controls/components");
20
+ var _TextTooltipTemplate = _interopRequireDefault(require("../TooltipTemplate/TextTooltipTemplate"));
21
+
22
+ var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
21
23
 
22
24
  var _common = require("../../utils/common.util");
23
25
 
@@ -31,6 +33,22 @@ var _jsxRuntime = require("react/jsx-runtime");
31
33
 
32
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
35
 
36
+ /*
37
+ Copyright 2022 Iguazio Systems Ltd.
38
+ Licensed under the Apache License, Version 2.0 (the "License") with
39
+ an addition restriction as set forth herein. You may not use this
40
+ file except in compliance with the License. You may obtain a copy of
41
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
42
+ Unless required by applicable law or agreed to in writing, software
43
+ distributed under the License is distributed on an "AS IS" BASIS,
44
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
45
+ implied. See the License for the specific language governing
46
+ permissions and limitations under the License.
47
+ In addition, you may not use the software for any purposes that are
48
+ illegal under applicable law, and the grant of the foregoing license
49
+ under the Apache 2.0 license is conditioned upon your compliance with
50
+ such restriction.
51
+ */
34
52
  var FormChipCellView = /*#__PURE__*/_react.default.forwardRef(function (_ref, _ref2) {
35
53
  var chipOptions = _ref.chipOptions,
36
54
  chips = _ref.chips,
@@ -68,9 +86,9 @@ var FormChipCellView = /*#__PURE__*/_react.default.forwardRef(function (_ref, _r
68
86
  var chipData = fields.value[index];
69
87
  return index < chips.visibleChips.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
88
  className: "chip-block",
71
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
89
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
72
90
  hidden: editConfig.isEdit,
73
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
91
+ template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
74
92
  text: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
75
93
  className: "chip__content",
76
94
  children: [chipData.key, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _lodash = require("lodash");
13
13
 
14
- var _rangeArrowSmall = require("igz-controls/images/range-arrow-small.svg");
14
+ var _rangeArrowSmall = require("../../../images/range-arrow-small.svg");
15
15
 
16
16
  require("./InputNumberButtons.scss");
17
17
 
@@ -19,6 +19,22 @@ var _jsxRuntime = require("react/jsx-runtime");
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
+ /*
23
+ Copyright 2022 Iguazio Systems Ltd.
24
+ Licensed under the Apache License, Version 2.0 (the "License") with
25
+ an addition restriction as set forth herein. You may not use this
26
+ file except in compliance with the License. You may obtain a copy of
27
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
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
+ In addition, you may not use the software for any purposes that are
34
+ illegal under applicable law, and the grant of the foregoing license
35
+ under the Apache 2.0 license is conditioned upon your compliance with
36
+ such restriction.
37
+ */
22
38
  var InputNumberButtons = function InputNumberButtons(_ref) {
23
39
  var disabled = _ref.disabled,
24
40
  min = _ref.min,
@@ -16,7 +16,7 @@
16
16
  &__button {
17
17
  display: flex;
18
18
  width: 100%;
19
- height: 50%;
19
+ height: calc(50% + 1px);
20
20
  align-items: center;
21
21
  justify-content: center;
22
22
  padding: 0;
@@ -6,6 +6,10 @@
6
6
  .form-field-input {
7
7
  width: 100%;
8
8
 
9
+ input {
10
+ width: 100%;
11
+ }
12
+
9
13
  .form-field {
10
14
  @include inputSelectField;
11
15
 
@@ -108,11 +108,12 @@ var FormSelect = function FormSelect(_ref) {
108
108
 
109
109
  var selectWrapperClassNames = (0, _classnames.default)('form-field__wrapper', "form-field__wrapper-".concat(density), disabled && 'form-field__wrapper-disabled', isOpen && 'form-field__wrapper-active', isInvalid && 'form-field__wrapper-invalid', withoutBorder && 'without-border');
110
110
  var selectLabelClassName = (0, _classnames.default)('form-field__label', disabled && 'form-field__label-disabled');
111
+ var selectValueClassName = (0, _classnames.default)('form-field__select-value', !input.value && 'form-field__select-placeholder');
111
112
  var selectedOption = options.find(function (option) {
112
113
  return option.id === input.value;
113
114
  });
114
115
 
115
- var getLabel = function getLabel() {
116
+ var getSelectValue = function getSelectValue() {
116
117
  if (!input.value || !input.value.length) {
117
118
  return "Select Option".concat(multiple ? 's' : '');
118
119
  }
@@ -222,8 +223,8 @@ var FormSelect = function FormSelect(_ref) {
222
223
  "data-testid": "selected-option",
223
224
  className: "form-field__select",
224
225
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
225
- className: "form-field__select-value",
226
- children: getLabel()
226
+ className: selectValueClassName,
227
+ children: getSelectValue()
227
228
  })
228
229
  })
229
230
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -16,7 +16,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
16
 
17
17
  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; }
18
18
 
19
- jest.mock('igz-controls/images/dropdown.svg', function () {
19
+ jest.mock('../../images/dropdown.svg', function () {
20
20
  return {
21
21
  ReactComponent: 'caret-icon'
22
22
  };
@@ -51,6 +51,10 @@
51
51
  text-overflow: ellipsis;
52
52
  }
53
53
 
54
+ &-placeholder {
55
+ color: $spunPearl;
56
+ }
57
+
54
58
  &-sub_label {
55
59
  display: block;
56
60
  margin-left: 10px;
@@ -15,15 +15,19 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
 
16
16
  var _reactFinalForm = require("react-final-form");
17
17
 
18
- var _components = require("igz-controls/components");
18
+ var _TextTooltipTemplate = _interopRequireDefault(require("../TooltipTemplate/TextTooltipTemplate"));
19
19
 
20
- var _invalid = require("igz-controls/images/invalid.svg");
20
+ var _Tip = _interopRequireDefault(require("../Tip/Tip"));
21
+
22
+ var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
23
+
24
+ var _invalid = require("../../images/invalid.svg");
21
25
 
22
26
  require("./formTextarea.scss");
23
27
 
24
28
  var _jsxRuntime = require("react/jsx-runtime");
25
29
 
26
- var _excluded = ["className", "disabled", "focused", "iconClass", "invalidText", "label", "name", "onBlur", "onChange", "required", "textAreaIcon", "tip", "withoutBorder"];
30
+ var _excluded = ["className", "disabled", "focused", "iconClass", "invalidText", "label", "maxLength", "name", "onBlur", "onChange", "required", "textAreaIcon", "tip", "withoutBorder"];
27
31
 
28
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
33
 
@@ -53,13 +57,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
53
57
 
54
58
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
55
59
 
56
- var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
60
+ var FormTextarea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
57
61
  var className = _ref.className,
58
62
  disabled = _ref.disabled,
59
63
  focused = _ref.focused,
60
64
  iconClass = _ref.iconClass,
61
65
  invalidText = _ref.invalidText,
62
66
  label = _ref.label,
67
+ maxLength = _ref.maxLength,
63
68
  name = _ref.name,
64
69
  onBlur = _ref.onBlur,
65
70
  onChange = _ref.onChange,
@@ -78,6 +83,11 @@ var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
78
83
  isInvalid = _useState2[0],
79
84
  setIsInvalid = _useState2[1];
80
85
 
86
+ var _useState3 = (0, _react.useState)(input.value.length),
87
+ _useState4 = _slicedToArray(_useState3, 2),
88
+ textAreaCount = _useState4[0],
89
+ setTextAreaCount = _useState4[1];
90
+
81
91
  var textAreaRef = /*#__PURE__*/_react.default.createRef();
82
92
 
83
93
  var formFieldClassNames = (0, _classnames.default)('form-field-textarea', className);
@@ -99,6 +109,7 @@ var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
99
109
 
100
110
  var handleInputChange = function handleInputChange(event) {
101
111
  input.onChange(event);
112
+ setTextAreaCount(event.target.value.length);
102
113
  onChange && onChange(event.target.value);
103
114
  };
104
115
 
@@ -153,6 +164,7 @@ var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
153
164
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", _objectSpread(_objectSpread({
154
165
  "data-testid": "textarea",
155
166
  id: input.name,
167
+ maxLength: maxLength,
156
168
  ref: textAreaRef,
157
169
  required: isInvalid || required
158
170
  }, _objectSpread(_objectSpread({
@@ -164,14 +176,14 @@ var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
164
176
  }))
165
177
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
166
178
  className: "form-field__icons",
167
- children: [isInvalid && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
179
+ children: [isInvalid && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
168
180
  className: "form-field__warning",
169
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
181
+ template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
170
182
  text: (_meta$error$label = (_meta$error = meta.error) === null || _meta$error === void 0 ? void 0 : _meta$error.label) !== null && _meta$error$label !== void 0 ? _meta$error$label : invalidText,
171
183
  warning: true
172
184
  }),
173
185
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_invalid.ReactComponent, {})
174
- }), tip && !required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tip, {
186
+ }), tip && !required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tip.default, {
175
187
  text: tip,
176
188
  className: "form-field__tip"
177
189
  }), textAreaIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -180,13 +192,16 @@ var TextArea = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
180
192
  children: textAreaIcon
181
193
  })]
182
194
  })]
195
+ }), maxLength && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
196
+ className: "form-field__counter",
197
+ children: "".concat(maxLength - textAreaCount, " ").concat(maxLength - textAreaCount !== 1 ? 'characters' : 'character', " left")
183
198
  })]
184
199
  });
185
200
  }
186
201
  });
187
202
  });
188
203
 
189
- TextArea.defaultProps = {
204
+ FormTextarea.defaultProps = {
190
205
  className: '',
191
206
  disabled: false,
192
207
  focused: false,
@@ -194,6 +209,7 @@ TextArea.defaultProps = {
194
209
  textAreaIcon: null,
195
210
  invalidText: 'This field is invalid',
196
211
  label: '',
212
+ maxLength: null,
197
213
  onBlur: function onBlur() {},
198
214
  onChange: function onChange() {},
199
215
  placeholder: '',
@@ -201,7 +217,7 @@ TextArea.defaultProps = {
201
217
  rows: 3,
202
218
  tip: ''
203
219
  };
204
- TextArea.propTypes = {
220
+ FormTextarea.propTypes = {
205
221
  className: _propTypes.default.string,
206
222
  disabled: _propTypes.default.bool,
207
223
  focused: _propTypes.default.bool,
@@ -209,6 +225,7 @@ TextArea.propTypes = {
209
225
  textAreaIcon: _propTypes.default.element,
210
226
  invalidText: _propTypes.default.string,
211
227
  label: _propTypes.default.string,
228
+ maxLength: _propTypes.default.number,
212
229
  name: _propTypes.default.string.isRequired,
213
230
  onBlur: _propTypes.default.func,
214
231
  onChange: _propTypes.default.func,
@@ -217,6 +234,6 @@ TextArea.propTypes = {
217
234
  tip: _propTypes.default.string
218
235
  };
219
236
 
220
- var _default = /*#__PURE__*/_react.default.memo(TextArea);
237
+ var _default = /*#__PURE__*/_react.default.memo(FormTextarea);
221
238
 
222
239
  exports.default = _default;
@@ -6,6 +6,11 @@
6
6
  .form-field-textarea {
7
7
  width: 100%;
8
8
 
9
+ textarea {
10
+ width: 100%;
11
+ white-space: normal;
12
+ }
13
+
9
14
  .form-field {
10
15
  @include inputSelectField;
11
16
 
@@ -19,5 +24,12 @@
19
24
  }
20
25
  }
21
26
  }
27
+
28
+ &__counter {
29
+ color: $topaz;
30
+ font-size: 12px;
31
+ margin-top: 5px;
32
+ text-align: right;
33
+ }
22
34
  }
23
35
  }
@@ -1,13 +1,11 @@
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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.default = void 0;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
 
@@ -31,22 +29,22 @@ var _jsxRuntime = require("react/jsx-runtime");
31
29
 
32
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
31
 
34
- 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); }
35
-
36
- 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; }
37
-
38
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
-
40
- 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."); }
41
-
42
- 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); }
43
-
44
- 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; }
45
-
46
- 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; }
47
-
48
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
-
32
+ /*
33
+ Copyright 2022 Iguazio Systems Ltd.
34
+ Licensed under the Apache License, Version 2.0 (the "License") with
35
+ an addition restriction as set forth herein. You may not use this
36
+ file except in compliance with the License. You may obtain a copy of
37
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
38
+ Unless required by applicable law or agreed to in writing, software
39
+ distributed under the License is distributed on an "AS IS" BASIS,
40
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
41
+ implied. See the License for the specific language governing
42
+ permissions and limitations under the License.
43
+ In addition, you may not use the software for any purposes that are
44
+ illegal under applicable law, and the grant of the foregoing license
45
+ under the Apache 2.0 license is conditioned upon your compliance with
46
+ such restriction.
47
+ */
50
48
  var Modal = function Modal(_ref) {
51
49
  var actions = _ref.actions,
52
50
  children = _ref.children,
@@ -56,21 +54,7 @@ var Modal = function Modal(_ref) {
56
54
  size = _ref.size,
57
55
  show = _ref.show,
58
56
  title = _ref.title;
59
-
60
- var _useState = (0, _react.useState)(location.pathname),
61
- _useState2 = _slicedToArray(_useState, 2),
62
- currentLocation = _useState2[0],
63
- setCurrentLocation = _useState2[1];
64
-
65
57
  var modalClassNames = (0, _classnames.default)('modal', className, size && "modal-".concat(size));
66
- (0, _react.useEffect)(function () {
67
- setCurrentLocation(location.pathname);
68
- return function () {
69
- if (location.pathname !== currentLocation) {
70
- onClose();
71
- }
72
- };
73
- }, [currentLocation, location, onClose]);
74
58
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
75
59
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Backdrop.default, {
76
60
  onClose: onClose,
@@ -21,6 +21,22 @@ var _jsxRuntime = require("react/jsx-runtime");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
+ /*
25
+ Copyright 2022 Iguazio Systems Ltd.
26
+ Licensed under the Apache License, Version 2.0 (the "License") with
27
+ an addition restriction as set forth herein. You may not use this
28
+ file except in compliance with the License. You may obtain a copy of
29
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
30
+ Unless required by applicable law or agreed to in writing, software
31
+ distributed under the License is distributed on an "AS IS" BASIS,
32
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
33
+ implied. See the License for the specific language governing
34
+ permissions and limitations under the License.
35
+ In addition, you may not use the software for any purposes that are
36
+ illegal under applicable law, and the grant of the foregoing license
37
+ under the Apache 2.0 license is conditioned upon your compliance with
38
+ such restriction.
39
+ */
24
40
  var RoundedIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
25
41
  var children = _ref.children,
26
42
  className = _ref.className,
@@ -1,3 +1,19 @@
1
+ /*
2
+ Copyright 2022 Iguazio Systems Ltd.
3
+ Licensed under the Apache License, Version 2.0 (the "License") with
4
+ an addition restriction as set forth herein. You may not use this
5
+ file except in compliance with the License. You may obtain a copy of
6
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing
11
+ permissions and limitations under the License.
12
+ In addition, you may not use the software for any purposes that are
13
+ illegal under applicable law, and the grant of the foregoing license
14
+ under the Apache 2.0 license is conditioned upon your compliance with
15
+ such restriction.
16
+ */
1
17
  // todo: rewrite existing tests
2
18
  // import {
3
19
  // cleanup,
@@ -15,6 +15,22 @@ var _jsxRuntime = require("react/jsx-runtime");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
+ /*
19
+ Copyright 2022 Iguazio Systems Ltd.
20
+ Licensed under the Apache License, Version 2.0 (the "License") with
21
+ an addition restriction as set forth herein. You may not use this
22
+ file except in compliance with the License. You may obtain a copy of
23
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
24
+ Unless required by applicable law or agreed to in writing, software
25
+ distributed under the License is distributed on an "AS IS" BASIS,
26
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
27
+ implied. See the License for the specific language governing
28
+ permissions and limitations under the License.
29
+ In addition, you may not use the software for any purposes that are
30
+ illegal under applicable law, and the grant of the foregoing license
31
+ under the Apache 2.0 license is conditioned upon your compliance with
32
+ such restriction.
33
+ */
18
34
  var ProducerTooltipTemplate = function ProducerTooltipTemplate(_ref) {
19
35
  var kind = _ref.kind,
20
36
  owner = _ref.owner;
@@ -23,6 +23,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
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
25
 
26
+ /*
27
+ Copyright 2022 Iguazio Systems Ltd.
28
+ Licensed under the Apache License, Version 2.0 (the "License") with
29
+ an addition restriction as set forth herein. You may not use this
30
+ file except in compliance with the License. You may obtain a copy of
31
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
32
+ Unless required by applicable law or agreed to in writing, software
33
+ distributed under the License is distributed on an "AS IS" BASIS,
34
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
35
+ implied. See the License for the specific language governing
36
+ permissions and limitations under the License.
37
+ In addition, you may not use the software for any purposes that are
38
+ illegal under applicable law, and the grant of the foregoing license
39
+ under the Apache 2.0 license is conditioned upon your compliance with
40
+ such restriction.
41
+ */
26
42
  var TextTooltipTemplate = function TextTooltipTemplate(_ref) {
27
43
  var text = _ref.text,
28
44
  warning = _ref.warning;
@@ -3,6 +3,7 @@
3
3
  display: flex;
4
4
  flex-flow: row nowrap;
5
5
  overflow: hidden;
6
+ padding-top: 0;
6
7
  padding-right: 0;
7
8
  }
8
9
 
@@ -10,6 +11,7 @@
10
11
  overflow-y: auto;
11
12
  height: 100%;
12
13
  width: 100%;
14
+ padding-top: 1.5rem;
13
15
  padding-right: 2rem;
14
16
  padding-left: 1rem;
15
17
  }
@@ -21,6 +21,22 @@ var _jsxRuntime = require("react/jsx-runtime");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
+ /*
25
+ Copyright 2022 Iguazio Systems Ltd.
26
+ Licensed under the Apache License, Version 2.0 (the "License") with
27
+ an addition restriction as set forth herein. You may not use this
28
+ file except in compliance with the License. You may obtain a copy of
29
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
30
+ Unless required by applicable law or agreed to in writing, software
31
+ distributed under the License is distributed on an "AS IS" BASIS,
32
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
33
+ implied. See the License for the specific language governing
34
+ permissions and limitations under the License.
35
+ In addition, you may not use the software for any purposes that are
36
+ illegal under applicable law, and the grant of the foregoing license
37
+ under the Apache 2.0 license is conditioned upon your compliance with
38
+ such restriction.
39
+ */
24
40
  var WizardSteps = function WizardSteps(_ref) {
25
41
  var activeStepNumber = _ref.activeStepNumber,
26
42
  jumpToStep = _ref.jumpToStep,
@@ -6,6 +6,7 @@
6
6
  background-color: $white;
7
7
  min-width: 260px;
8
8
  margin-right: 1rem;
9
+ margin-top: 1.5rem;
9
10
  overflow-y: auto;
10
11
 
11
12
  &__indicator {
package/dist/constants.js CHANGED
@@ -5,6 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.validation = exports.TERTIARY_BUTTON = exports.TAB_SHIFT = exports.TAB = exports.SECONDARY_BUTTON = exports.PRIMARY_BUTTON = exports.MODAL_SM = exports.MODAL_MD = exports.MODAL_LG = exports.LABEL_BUTTON = exports.INTERNAL_SERVER_ERROR_STATUS_CODE = exports.FORBIDDEN_ERROR_STATUS_CODE = exports.DELETE = exports.DANGER_BUTTON = exports.CONFLICT_ERROR_STATUS_CODE = exports.CLICK = exports.BACKSPACE = void 0;
7
7
 
8
+ /*
9
+ Copyright 2022 Iguazio Systems Ltd.
10
+ Licensed under the Apache License, Version 2.0 (the "License") with
11
+ an addition restriction as set forth herein. You may not use this
12
+ file except in compliance with the License. You may obtain a copy of
13
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17
+ implied. See the License for the specific language governing
18
+ permissions and limitations under the License.
19
+ In addition, you may not use the software for any purposes that are
20
+ illegal under applicable law, and the grant of the foregoing license
21
+ under the Apache 2.0 license is conditioned upon your compliance with
22
+ such restriction.
23
+ */
24
+
8
25
  /*=========== EVENT KEYS =============*/
9
26
  var BACKSPACE = 'Backspace';
10
27
  exports.BACKSPACE = BACKSPACE;
@@ -15,7 +15,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _FormChip = _interopRequireDefault(require("../../components/FormChipCell/FormChip/FormChip"));
17
17
 
18
- var _components = require("igz-controls/components");
18
+ var _TextTooltipTemplate = _interopRequireDefault(require("../../components/TooltipTemplate/TextTooltipTemplate"));
19
+
20
+ var _Tooltip = _interopRequireDefault(require("../../components/Tooltip/Tooltip"));
19
21
 
20
22
  var _getFirstScrollableParent = require("../../utils/getFirstScrollableParent.util");
21
23
 
@@ -130,8 +132,8 @@ var HiddenChipsBlock = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
130
132
  ref: hiddenRef,
131
133
  className: hiddenChipsBlockClassNames,
132
134
  children: chips === null || chips === void 0 ? void 0 : chips.map(function (element, index) {
133
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
134
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
135
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
136
+ template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
135
137
  text: element.delimiter ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
136
138
  className: "chip__content",
137
139
  children: [element.key, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -19,6 +19,22 @@ var _jsxRuntime = require("react/jsx-runtime");
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
+ /*
23
+ Copyright 2022 Iguazio Systems Ltd.
24
+ Licensed under the Apache License, Version 2.0 (the "License") with
25
+ an addition restriction as set forth herein. You may not use this
26
+ file except in compliance with the License. You may obtain a copy of
27
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
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
+ In addition, you may not use the software for any purposes that are
34
+ illegal under applicable law, and the grant of the foregoing license
35
+ under the Apache 2.0 license is conditioned upon your compliance with
36
+ such restriction.
37
+ */
22
38
  var OptionsMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
23
39
  var children = _ref.children,
24
40
  show = _ref.show,
@@ -23,6 +23,22 @@ var _jsxRuntime = require("react/jsx-runtime");
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
+ /*
27
+ Copyright 2022 Iguazio Systems Ltd.
28
+ Licensed under the Apache License, Version 2.0 (the "License") with
29
+ an addition restriction as set forth herein. You may not use this
30
+ file except in compliance with the License. You may obtain a copy of
31
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
32
+ Unless required by applicable law or agreed to in writing, software
33
+ distributed under the License is distributed on an "AS IS" BASIS,
34
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
35
+ implied. See the License for the specific language governing
36
+ permissions and limitations under the License.
37
+ In addition, you may not use the software for any purposes that are
38
+ illegal under applicable law, and the grant of the foregoing license
39
+ under the Apache 2.0 license is conditioned upon your compliance with
40
+ such restriction.
41
+ */
26
42
  var SelectOption = function SelectOption(_ref) {
27
43
  var item = _ref.item,
28
44
  name = _ref.name,
@@ -20,12 +20,12 @@ var renderComponent = function renderComponent(props) {
20
20
  return (0, _react2.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, _objectSpread({}, props)));
21
21
  };
22
22
 
23
- jest.mock('igz-controls/images/checkbox-unchecked.svg', function () {
23
+ jest.mock('../../images/checkbox-unchecked.svg', function () {
24
24
  return {
25
25
  ReactComponent: 'unchecked-icon'
26
26
  };
27
27
  });
28
- jest.mock('igz-controls/images/checkbox-checked.svg', function () {
28
+ jest.mock('../../images/checkbox-checked.svg', function () {
29
29
  return {
30
30
  ReactComponent: 'unchecked-icon'
31
31
  };
@@ -21,6 +21,22 @@ var _jsxRuntime = require("react/jsx-runtime");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
+ /*
25
+ Copyright 2022 Iguazio Systems Ltd.
26
+ Licensed under the Apache License, Version 2.0 (the "License") with
27
+ an addition restriction as set forth herein. You may not use this
28
+ file except in compliance with the License. You may obtain a copy of
29
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
30
+ Unless required by applicable law or agreed to in writing, software
31
+ distributed under the License is distributed on an "AS IS" BASIS,
32
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
33
+ implied. See the License for the specific language governing
34
+ permissions and limitations under the License.
35
+ In addition, you may not use the software for any purposes that are
36
+ illegal under applicable law, and the grant of the foregoing license
37
+ under the Apache 2.0 license is conditioned upon your compliance with
38
+ such restriction.
39
+ */
24
40
  var ValidationTemplate = function ValidationTemplate(_ref) {
25
41
  var valid = _ref.valid,
26
42
  validationMessage = _ref.validationMessage;
@@ -7,6 +7,23 @@ exports.useDetectOutsideClick = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
+ /*
11
+ Copyright 2022 Iguazio Systems Ltd.
12
+ Licensed under the Apache License, Version 2.0 (the "License") with
13
+ an addition restriction as set forth herein. You may not use this
14
+ file except in compliance with the License. You may obtain a copy of
15
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19
+ implied. See the License for the specific language governing
20
+ permissions and limitations under the License.
21
+ In addition, you may not use the software for any purposes that are
22
+ illegal under applicable law, and the grant of the foregoing license
23
+ under the Apache 2.0 license is conditioned upon your compliance with
24
+ such restriction.
25
+ */
26
+
10
27
  /**
11
28
  * Hook for handling closing when clicking outside of an element
12
29
  * @function useDetectOutsideClick
@@ -53,7 +53,6 @@ textarea {
53
53
  background-color: transparent;
54
54
  padding: 0;
55
55
  resize: none;
56
- width: 100%;
57
56
 
58
57
  &::placeholder {
59
58
  color: $spunPearl;
package/dist/types.js CHANGED
@@ -11,6 +11,22 @@ var _constants = require("./constants");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
+ /*
15
+ Copyright 2022 Iguazio Systems Ltd.
16
+ Licensed under the Apache License, Version 2.0 (the "License") with
17
+ an addition restriction as set forth herein. You may not use this
18
+ file except in compliance with the License. You may obtain a copy of
19
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
20
+ Unless required by applicable law or agreed to in writing, software
21
+ distributed under the License is distributed on an "AS IS" BASIS,
22
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
23
+ implied. See the License for the specific language governing
24
+ permissions and limitations under the License.
25
+ In addition, you may not use the software for any purposes that are
26
+ illegal under applicable law, and the grant of the foregoing license
27
+ under the Apache 2.0 license is conditioned upon your compliance with
28
+ such restriction.
29
+ */
14
30
  var BUTTON_VARIANTS = _propTypes.default.oneOf([_constants.PRIMARY_BUTTON, _constants.SECONDARY_BUTTON, _constants.TERTIARY_BUTTON, _constants.DANGER_BUTTON, _constants.LABEL_BUTTON]);
15
31
 
16
32
  exports.BUTTON_VARIANTS = BUTTON_VARIANTS;
@@ -7,6 +7,22 @@ exports.openPopUp = exports.isEveryObjectValueEmpty = void 0;
7
7
 
8
8
  var _reactModalPromise = require("react-modal-promise");
9
9
 
10
+ /*
11
+ Copyright 2022 Iguazio Systems Ltd.
12
+ Licensed under the Apache License, Version 2.0 (the "License") with
13
+ an addition restriction as set forth herein. You may not use this
14
+ file except in compliance with the License. You may obtain a copy of
15
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19
+ implied. See the License for the specific language governing
20
+ permissions and limitations under the License.
21
+ In addition, you may not use the software for any purposes that are
22
+ illegal under applicable law, and the grant of the foregoing license
23
+ under the Apache 2.0 license is conditioned upon your compliance with
24
+ such restriction.
25
+ */
10
26
  var openPopUp = function openPopUp(element, props) {
11
27
  return (0, _reactModalPromise.create)(element)(props);
12
28
  };
@@ -3,10 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.setFieldState = void 0;
6
+ exports.setFieldState = exports.isEqualValues = void 0;
7
7
 
8
8
  var _lodash = require("lodash");
9
9
 
10
+ /*
11
+ Copyright 2022 Iguazio Systems Ltd.
12
+ Licensed under the Apache License, Version 2.0 (the "License") with
13
+ an addition restriction as set forth herein. You may not use this
14
+ file except in compliance with the License. You may obtain a copy of
15
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19
+ implied. See the License for the specific language governing
20
+ permissions and limitations under the License.
21
+ In addition, you may not use the software for any purposes that are
22
+ illegal under applicable law, and the grant of the foregoing license
23
+ under the Apache 2.0 license is conditioned upon your compliance with
24
+ such restriction.
25
+ */
10
26
  var setFieldState = function setFieldState(args, state) {
11
27
  var fieldName = args[0];
12
28
  var states = args[1];
@@ -19,4 +35,18 @@ var setFieldState = function setFieldState(args, state) {
19
35
  }
20
36
  };
21
37
 
22
- exports.setFieldState = setFieldState;
38
+ exports.setFieldState = setFieldState;
39
+
40
+ var isEqualValues = function isEqualValues(initialValues, values) {
41
+ var replacer = function replacer(key, value) {
42
+ if (value === '') {
43
+ return undefined;
44
+ }
45
+
46
+ return value;
47
+ };
48
+
49
+ return (0, _lodash.isEqual)(JSON.stringify(initialValues, replacer), JSON.stringify(values, replacer));
50
+ };
51
+
52
+ exports.isEqualValues = isEqualValues;
@@ -5,6 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.generateChipsList = void 0;
7
7
 
8
+ /*
9
+ Copyright 2022 Iguazio Systems Ltd.
10
+ Licensed under the Apache License, Version 2.0 (the "License") with
11
+ an addition restriction as set forth herein. You may not use this
12
+ file except in compliance with the License. You may obtain a copy of
13
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17
+ implied. See the License for the specific language governing
18
+ permissions and limitations under the License.
19
+ In addition, you may not use the software for any purposes that are
20
+ illegal under applicable law, and the grant of the foregoing license
21
+ under the Apache 2.0 license is conditioned upon your compliance with
22
+ such restriction.
23
+ */
8
24
  var generateChipsList = function generateChipsList(chips, maxLength) {
9
25
  if (chips.length > maxLength) {
10
26
  var hiddenChipsNumber = "+ ".concat(chips.length - maxLength);
@@ -4,6 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getFirstScrollableParentUtil = void 0;
7
+
8
+ /*
9
+ Copyright 2022 Iguazio Systems Ltd.
10
+ Licensed under the Apache License, Version 2.0 (the "License") with
11
+ an addition restriction as set forth herein. You may not use this
12
+ file except in compliance with the License. You may obtain a copy of
13
+ the License at http://www.apache.org/licenses/LICENSE-2.0.
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17
+ implied. See the License for the specific language governing
18
+ permissions and limitations under the License.
19
+ In addition, you may not use the software for any purposes that are
20
+ illegal under applicable law, and the grant of the foregoing license
21
+ under the Apache 2.0 license is conditioned upon your compliance with
22
+ such restriction.
23
+ */
7
24
  var regex = /(auto|scroll|hidden)/;
8
25
 
9
26
  var style = function style(node, prop) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "0.0.16",
3
+ "version": "0.0.19",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",