iguazio.dashboard-react-controls 2.2.15 → 2.2.17
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.
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
margin: 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
&-
|
|
69
|
+
&-secondary {
|
|
70
70
|
background: $brightTurquoise;
|
|
71
71
|
|
|
72
72
|
&:hover:not(:disabled) {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
&-
|
|
109
|
+
&-primary {
|
|
110
110
|
color: $white;
|
|
111
111
|
background: $malibu;
|
|
112
112
|
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
&:focus:not(:disabled) {
|
|
155
|
-
border:
|
|
155
|
+
border-color: transparent;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
&:hover:not(:disabled) {
|
|
@@ -82,6 +82,9 @@ const FormChipCell = _ref => {
|
|
|
82
82
|
isValueFocused: false,
|
|
83
83
|
isNewChip: false
|
|
84
84
|
});
|
|
85
|
+
(0, _react.useEffect)(() => {
|
|
86
|
+
formState.form.change('labelsAreInEditMode', editConfig.isEdit);
|
|
87
|
+
}, [editConfig.isEdit, formState.form]);
|
|
85
88
|
let chips = (0, _react.useMemo)(() => {
|
|
86
89
|
return isEditable || visibleChipsMaxLength === 'all' ? {
|
|
87
90
|
visibleChips: (0, _lodash.get)(formState.values, name),
|
|
@@ -75,7 +75,6 @@ const FormChipCellView = /*#__PURE__*/_react.default.forwardRef((_ref, _ref2) =>
|
|
|
75
75
|
const chipClassNames = (0, _classnames.default)('chip', 'chip__content', isEditable && 'data-ellipsis', shortChips && 'chip_short', chips.hiddenChips && 'chip_hidden', chipOptions.density && "chip-density_".concat(chipOptions.density), chipOptions.borderRadius && "chip-border_".concat(chipOptions.borderRadius), chipOptions.background && "chip-background_".concat(chipOptions.background), chipOptions.borderColor && "chip-border_".concat(chipOptions.borderColor), chipOptions.font && "chip-font_".concat(chipOptions.font), isEditable && 'editable', (showChips || isEditable) && 'chip_visible');
|
|
76
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalFormArrays.FieldArray, {
|
|
77
77
|
name: name,
|
|
78
|
-
initialValue: formState.initialValues[name],
|
|
79
78
|
validate: validateFields,
|
|
80
79
|
children: _ref3 => {
|
|
81
80
|
let {
|
|
@@ -110,7 +110,8 @@ const Wizard = _ref => {
|
|
|
110
110
|
onClick: goToPreviousStep,
|
|
111
111
|
disabled: activeStepNumber === 0,
|
|
112
112
|
label: "Back",
|
|
113
|
-
type: "button"
|
|
113
|
+
type: "button",
|
|
114
|
+
variant: _constants.LABEL_BUTTON
|
|
114
115
|
}));
|
|
115
116
|
}
|
|
116
117
|
defaultActions.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
@@ -119,7 +120,7 @@ const Wizard = _ref => {
|
|
|
119
120
|
onClick: goToNextStep,
|
|
120
121
|
label: 'Next',
|
|
121
122
|
type: "button",
|
|
122
|
-
variant: _constants.
|
|
123
|
+
variant: _constants.LABEL_BUTTON
|
|
123
124
|
}));
|
|
124
125
|
return defaultActions;
|
|
125
126
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iguazio.dashboard-react-controls",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
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",
|