linear-react-components-ui 1.1.20-beta.5 → 1.1.20-beta.7

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.
@@ -19,6 +19,7 @@
19
19
  cursor: pointer;
20
20
  display: flex;
21
21
  align-items: center;
22
+ padding: 0 4px;
22
23
  }
23
24
  }
24
25
 
@@ -151,4 +152,4 @@
151
152
  font-style: italic;
152
153
  font-size: 13px;
153
154
  }
154
- }
155
+ }
@@ -25,7 +25,8 @@ const MultipleSelect = props => {
25
25
  value = [],
26
26
  remoteSearch = false,
27
27
  descriptionKey,
28
- showClearButton
28
+ showClearButton,
29
+ rightElements = []
29
30
  } = props;
30
31
  const [dataCombo, setDataCombo] = (0, _react.useState)(dataSource);
31
32
  const [currents, setCurrents] = (0, _react.useState)([]);
@@ -240,7 +241,8 @@ const MultipleSelect = props => {
240
241
  selectWrapper.current = r;
241
242
  },
242
243
  handlerSetOnDenied: setOnDenied,
243
- rightElements: /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
244
+ rightElements: [...rightElements, /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
245
+ key: "action-buttons-multiselect",
244
246
  showClearButton: showClearButton,
245
247
  disabled: shouldDisable() || shouldBeReadOnly(),
246
248
  dropDownOpened: opened,
@@ -249,7 +251,7 @@ const MultipleSelect = props => {
249
251
  return onClearClick();
250
252
  },
251
253
  handlerOpenClose: onOpenClose
252
- })
254
+ })]
253
255
  }), /*#__PURE__*/_react.default.createElement(_Selecteds.default, _extends({}, props, {
254
256
  currents: currents,
255
257
  handlerOnUnselect: onUnselect
@@ -34,7 +34,8 @@ const SimpleSelect = props => {
34
34
  searchOnDropdown = false,
35
35
  allOptions = undefined,
36
36
  showClearButton = false,
37
- searchNotFoundText
37
+ searchNotFoundText,
38
+ rightElements = []
38
39
  } = props;
39
40
  const descriptionKeyIsString = typeof descriptionKey === 'string';
40
41
  const dataSourceWithAllOptions = allOptions ? [{
@@ -274,7 +275,8 @@ const SimpleSelect = props => {
274
275
  selectWrapper.current = r;
275
276
  },
276
277
  handlerSetOnDenied: inputOnDenied => setOnDenied(inputOnDenied),
277
- rightElements: /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
278
+ rightElements: [...rightElements, /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
279
+ key: "action-buttons-simpleselect",
278
280
  disabled: shouldDisable() || shouldBeReadOnly(),
279
281
  showClearButton: showClearButton,
280
282
  dropDownOpened: opened,
@@ -283,7 +285,7 @@ const SimpleSelect = props => {
283
285
  return onClearClick();
284
286
  },
285
287
  handlerOpenClose: onOpenClose
286
- })
288
+ })]
287
289
  })), opened && /*#__PURE__*/_react.default.createElement(_Dropdown.default, _extends({}, props, {
288
290
  opened: opened,
289
291
  selected: selected,
@@ -50,6 +50,7 @@ interface ISimpleSelectProps {
50
50
  onFocus?: () => void;
51
51
  allOptions?: AllOptions;
52
52
  inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
53
+ rightElements?: JSX.Element[];
53
54
  }
54
55
  interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
55
56
  multiple?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.20-beta.5",
3
+ "version": "1.1.20-beta.7",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",