iguazio.dashboard-react-controls 2.2.13 → 2.2.14

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.
@@ -50,10 +50,11 @@ const FormSelect = _ref => {
50
50
  name,
51
51
  onChange,
52
52
  options,
53
+ preventWidthOverflow = false,
53
54
  required,
55
+ scrollToView = true,
54
56
  search = false,
55
57
  selectedItemAction,
56
- scrollToView = true,
57
58
  tooltip = '',
58
59
  withoutBorder = false,
59
60
  withSelectedIcon = true
@@ -291,7 +292,7 @@ const FormSelect = _ref => {
291
292
  autoHorizontalPosition: true
292
293
  },
293
294
  style: {
294
- maxWidth: "".concat(selectWidth < 500 ? 500 : selectWidth, "px"),
295
+ maxWidth: "".concat(selectWidth < 500 && !preventWidthOverflow ? 500 : selectWidth, "px"),
295
296
  minWidth: "".concat(selectWidth, "px")
296
297
  },
297
298
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -340,12 +341,13 @@ FormSelect.propTypes = {
340
341
  disabled: _propTypes.default.bool,
341
342
  hideSelectedOption: _propTypes.default.bool,
342
343
  label: _propTypes.default.string,
344
+ multiple: _propTypes.default.bool,
343
345
  name: _propTypes.default.string.isRequired,
344
346
  options: _types.SELECT_OPTIONS.isRequired,
347
+ preventWidthOverflow: _propTypes.default.bool,
348
+ scrollToView: _propTypes.default.bool,
345
349
  search: _propTypes.default.bool,
346
350
  tooltip: _propTypes.default.string,
347
- multiple: _propTypes.default.bool,
348
- scrollToView: _propTypes.default.bool,
349
351
  withoutBorder: _propTypes.default.bool,
350
352
  withSelectedIcon: _propTypes.default.bool
351
353
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
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",