iguazio.dashboard-react-controls 1.3.1 → 1.3.3

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.
@@ -123,5 +123,9 @@
123
123
  &-s3 {
124
124
  color: $sorbus;
125
125
  }
126
+
127
+ &-dbfs {
128
+ color: $chateauGreen;
129
+ }
126
130
  }
127
131
  }
@@ -473,7 +473,7 @@ FormInput.propTypes = {
473
473
  pattern: _propTypes.default.string,
474
474
  placeholder: _propTypes.default.string,
475
475
  required: _propTypes.default.bool,
476
- step: _propTypes.default.string,
476
+ step: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
477
477
  suggestionList: _propTypes.default.arrayOf(_propTypes.default.string),
478
478
  tip: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
479
479
  type: _propTypes.default.string,
@@ -1,4 +1,4 @@
1
- @import '~igz-controls/scss/colors';
1
+ @import '../../scss/colors';
2
2
 
3
3
  .form-field-toggle {
4
4
  position: relative;
@@ -11,10 +11,11 @@
11
11
  overflow-y: auto;
12
12
  height: 100%;
13
13
  width: 100%;
14
- padding: 1.5rem 1.5rem 1.5rem 1rem;
14
+ padding: 1.5rem 2rem 1.5rem 1rem;
15
15
  }
16
16
 
17
17
  .wizard-form__content {
18
18
  min-width: 350px;
19
+ height: 100%;
19
20
  }
20
21
  }
@@ -124,7 +124,12 @@ var useFormTable = function useFormTable(formState) {
124
124
  applyOrDiscardOrDelete(event);
125
125
  }
126
126
  exitEditMode();
127
- formState.form.mutators.remove(fieldsPath, index);
127
+ var values = (0, _lodash.get)(formState.values, fieldsPath);
128
+ if ((values === null || values === void 0 ? void 0 : values.length) > 1) {
129
+ formState.form.mutators.remove(fieldsPath, index);
130
+ } else {
131
+ formState.form.change(fieldsPath, []);
132
+ }
128
133
  event && event.stopPropagation();
129
134
  };
130
135
  var discardChanges = function discardChanges(event, fieldsPath, index) {
@@ -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="M2 13.4118H4V18H20V13.4118H22V18.1176C22 19.1624 21.11 20 20 20H4C2.9 20 2 19.1624 2 18.1176V13.4118ZM12 16.2353L17.55 11.0965L16.13 9.76941L13 12.7059V4H11V12.7059L7.88 9.76941L6.46 11.1059L12 16.2353Z" fill="#7F7989"/>
3
+ </svg>
@@ -139,6 +139,7 @@ textarea {
139
139
  min-height: $tableHeaderHeight;
140
140
  border-bottom: $primaryBorder;
141
141
  background-color: $white;
142
+ padding: 5px 0;
142
143
 
143
144
  &:not(.no-hover):hover {
144
145
  background-color: $alabaster;
@@ -307,7 +308,8 @@ textarea {
307
308
  }
308
309
 
309
310
  &_left {
310
- &::before, &::after {
311
+ &::before,
312
+ &::after {
311
313
  right: 15px;
312
314
  }
313
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
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",