iguazio.dashboard-react-controls 2.2.1 → 2.2.2
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.
|
@@ -77,8 +77,12 @@ const NewChipForm = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
77
77
|
density,
|
|
78
78
|
font
|
|
79
79
|
} = chipOptions;
|
|
80
|
-
const minWidthInput =
|
|
81
|
-
|
|
80
|
+
const minWidthInput = (0, _react.useMemo)(() => {
|
|
81
|
+
return isEditable ? 25 : 20;
|
|
82
|
+
}, [isEditable]);
|
|
83
|
+
const minWidthValueInput = (0, _react.useMemo)(() => {
|
|
84
|
+
return isEditable ? 35 : 20;
|
|
85
|
+
}, [isEditable]);
|
|
82
86
|
const refInputKey = _react.default.useRef({});
|
|
83
87
|
const refInputValue = _react.default.useRef({});
|
|
84
88
|
const refInputContainer = _react.default.useRef();
|
|
@@ -98,7 +102,7 @@ const NewChipForm = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
98
102
|
valueFieldWidth
|
|
99
103
|
}));
|
|
100
104
|
}
|
|
101
|
-
}, [chipData.key, chipData.value, chipData.keyFieldWidth, chipData.valueFieldWidth, maxWidthInput, refInputKey, refInputValue]);
|
|
105
|
+
}, [minWidthInput, minWidthValueInput, chipData.key, chipData.value, chipData.keyFieldWidth, chipData.valueFieldWidth, maxWidthInput, refInputKey, refInputValue]);
|
|
102
106
|
const handleScroll = () => {
|
|
103
107
|
setShowValidationRules(false);
|
|
104
108
|
};
|
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.2",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"final-form-arrays": "^3.1.0",
|
|
65
65
|
"lodash": "^4.17.21",
|
|
66
66
|
"node": "21.6.2",
|
|
67
|
-
"prettier": "
|
|
67
|
+
"prettier": "3.2.5",
|
|
68
68
|
"prop-types": "^15.8.1",
|
|
69
69
|
"react": "^18.2.0",
|
|
70
70
|
"react-dom": "^18.2.0",
|
|
@@ -80,6 +80,10 @@
|
|
|
80
80
|
"scripts": {
|
|
81
81
|
"start": "react-scripts start",
|
|
82
82
|
"build": "react-scripts build",
|
|
83
|
+
"lint": "eslint 'src/**/*.{js,jsx}' --quiet",
|
|
84
|
+
"lint:fix": "eslint 'src/**/*.{js,jsx}' --fix",
|
|
85
|
+
"prettier": "prettier --check 'src/**/*.{js,jsx,scss}'",
|
|
86
|
+
"prettier:fix": "prettier --write 'src/**/*.{js,jsx,scss}'",
|
|
83
87
|
"test": "react-scripts test",
|
|
84
88
|
"eject": "react-scripts eject",
|
|
85
89
|
"build-storybook": "build-storybook",
|