@gridsuite/commons-ui 0.20.0 → 0.20.1

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.
@@ -5,8 +5,6 @@ exports["default"] = void 0;
5
5
 
6
6
  var _react = _interopRequireWildcard(require("react"));
7
7
 
8
- var _makeStyles = _interopRequireDefault(require("@mui/styles/makeStyles"));
9
-
10
8
  var _material = require("@mui/material");
11
9
 
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -25,24 +23,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
25
23
 
26
24
  var TERM_MIN_SIZE_BEFORE_SEARCH = 3;
27
25
 
28
- var styles = function styles(theme) {
29
- return {
30
- title: {
31
- padding: '0px'
32
- },
33
- content: {
34
- display: 'flex',
35
- alignItems: 'end',
36
- padding: '20px',
37
- paddingRight: '0px'
38
- }
39
- };
40
- };
41
-
42
- var useStyles = (0, _makeStyles["default"])(styles);
43
-
44
26
  var ElementSearchDialog = function ElementSearchDialog(props) {
45
- var classes = useStyles();
46
27
  var intl = (0, _reactIntl.useIntl)();
47
28
  var open = props.open,
48
29
  onClose = props.onClose,
@@ -86,9 +67,7 @@ var ElementSearchDialog = function ElementSearchDialog(props) {
86
67
  disableRestoreFocus: true,
87
68
  "aria-labelledby": "dialog-title-search",
88
69
  fullWidth: true
89
- }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
90
- className: classes.title
91
- }), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.Autocomplete, {
70
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.Autocomplete, {
92
71
  id: "element-search",
93
72
  forcePopupIcon: false,
94
73
  open: expanded,
@@ -99,10 +78,10 @@ var ElementSearchDialog = function ElementSearchDialog(props) {
99
78
  setExpanded(false);
100
79
  },
101
80
  fullWidth: true,
102
- onInputChange: function onInputChange(event, value) {
81
+ onInputChange: function onInputChange(_event, value) {
103
82
  return handleSearchTermChange(value);
104
83
  },
105
- onChange: function onChange(event, newValue) {
84
+ onChange: function onChange(_event, newValue) {
106
85
  return onSelectionChange(newValue);
107
86
  },
108
87
  getOptionLabel: function getOptionLabel(option) {
@@ -117,9 +96,9 @@ var ElementSearchDialog = function ElementSearchDialog(props) {
117
96
  noOptionsText: intl.formatMessage({
118
97
  id: 'element_search/noResult'
119
98
  }),
120
- renderOption: function renderOption(props, element, _ref) {
99
+ renderOption: function renderOption(optionProps, element, _ref) {
121
100
  var inputValue = _ref.inputValue;
122
- return renderElement(_extends({}, props, {
101
+ return renderElement(_extends({}, optionProps, {
123
102
  element: element,
124
103
  inputValue: inputValue,
125
104
  onClose: onClose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "main": "lib/index.js",
6
6
  "files": [