linear-react-components-ui 1.1.20-beta.10 → 1.1.20-beta.12

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.
Files changed (155) hide show
  1. package/lib/alerts/BaseAlert.js +1 -1
  2. package/lib/alerts/Message.js +1 -1
  3. package/lib/assets/styles/button.scss +1 -0
  4. package/lib/assets/styles/select.scss +1 -2
  5. package/lib/assets/styles/table.scss +6 -10
  6. package/lib/assets/styles/toolbar.scss +0 -3
  7. package/lib/avatar/index.js +9 -8
  8. package/lib/badge/index.js +4 -4
  9. package/lib/buttons/DangerButton.js +1 -1
  10. package/lib/buttons/DefaultButton.js +17 -5
  11. package/lib/buttons/InfoButton.js +1 -1
  12. package/lib/buttons/PrimaryButton.js +1 -1
  13. package/lib/buttons/SuccessButton.js +1 -1
  14. package/lib/buttons/WarningButton.js +1 -1
  15. package/lib/buttons/button_container/index.js +1 -1
  16. package/lib/buttons/split_button/index.js +1 -1
  17. package/lib/buttons/types.d.ts +1 -0
  18. package/lib/calendar/base/Day.js +1 -1
  19. package/lib/calendar/base/Month.js +1 -1
  20. package/lib/calendar/base/helpers.js +2 -2
  21. package/lib/calendar/base/index.js +1 -1
  22. package/lib/dialog/Custom.js +1 -1
  23. package/lib/dialog/base/Content.d.ts +1 -1
  24. package/lib/dialog/base/Content.js +2 -3
  25. package/lib/dialog/base/Header.js +2 -2
  26. package/lib/dialog/base/index.js +4 -6
  27. package/lib/dialog/form/index.js +3 -8
  28. package/lib/dialog/types.d.ts +4 -34
  29. package/lib/drawer/Drawer.js +3 -3
  30. package/lib/drawer/Header.js +1 -1
  31. package/lib/dropdown/Popup.d.ts +1 -1
  32. package/lib/dropdown/Popup.js +43 -22
  33. package/lib/dropdown/helper.js +1 -1
  34. package/lib/dropdown/types.d.ts +6 -2
  35. package/lib/dropdown/withDropdown.js +7 -6
  36. package/lib/fieldset/index.js +7 -7
  37. package/lib/form/Field.js +24 -11
  38. package/lib/form/FieldArray.js +25 -10
  39. package/lib/form/FieldNumber.js +21 -9
  40. package/lib/form/FieldPeriod.js +5 -5
  41. package/lib/form/index.js +6 -9
  42. package/lib/form/types.d.ts +6 -10
  43. package/lib/form/withFieldHOC.js +2 -2
  44. package/lib/gridlayout/GridCol.js +5 -5
  45. package/lib/gridlayout/GridRow.js +4 -1
  46. package/lib/gridlayout/types.d.ts +1 -1
  47. package/lib/hint/index.js +7 -1
  48. package/lib/icons/helper.d.ts +0 -20
  49. package/lib/icons/helper.js +0 -20
  50. package/lib/icons/index.js +24 -27
  51. package/lib/inputs/base/InputTextBase.js +6 -9
  52. package/lib/inputs/base/Label.js +1 -1
  53. package/lib/inputs/base/helpers.js +7 -3
  54. package/lib/inputs/date/helpers.js +4 -1
  55. package/lib/inputs/date/index.js +9 -15
  56. package/lib/inputs/errorMessage/index.js +1 -1
  57. package/lib/inputs/file/DefaultFile.js +5 -6
  58. package/lib/inputs/file/DragDropFile.js +15 -17
  59. package/lib/inputs/file/File.js +3 -4
  60. package/lib/inputs/mask/BaseMask.js +1 -1
  61. package/lib/inputs/multiSelect/Dropdown.js +9 -10
  62. package/lib/inputs/multiSelect/helper.js +1 -2
  63. package/lib/inputs/multiSelect/index.js +7 -9
  64. package/lib/inputs/number/BaseNumber.d.ts +1 -1
  65. package/lib/inputs/number/BaseNumber.js +9 -2
  66. package/lib/inputs/number/Currency.d.ts +1 -1
  67. package/lib/inputs/number/Currency.js +11 -4
  68. package/lib/inputs/number/index.js +1 -1
  69. package/lib/inputs/period/PeriodList.js +1 -1
  70. package/lib/inputs/period/helper.js +3 -1
  71. package/lib/inputs/period/index.js +9 -14
  72. package/lib/inputs/search/index.js +1 -1
  73. package/lib/inputs/select/Dropdown.js +1 -1
  74. package/lib/inputs/select/helper.js +10 -13
  75. package/lib/inputs/select/multiple/Selecteds.js +1 -1
  76. package/lib/inputs/select/multiple/index.js +12 -19
  77. package/lib/inputs/select/simple/index.js +13 -22
  78. package/lib/inputs/select/types.d.ts +0 -1
  79. package/lib/inputs/textarea/index.js +1 -1
  80. package/lib/internals/withTooltip.js +9 -9
  81. package/lib/labelMessages/index.js +4 -3
  82. package/lib/labels/DefaultLabel.js +4 -1
  83. package/lib/labels/label_container/index.js +1 -1
  84. package/lib/list/Header.js +1 -1
  85. package/lib/list/Item.js +9 -7
  86. package/lib/list/index.js +1 -1
  87. package/lib/menus/float/MenuItem.js +2 -2
  88. package/lib/menus/float/SubMenuContainer.js +1 -1
  89. package/lib/menus/float/index.js +1 -1
  90. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  91. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  92. package/lib/menus/sidenav/NavMenuItem.js +7 -9
  93. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  94. package/lib/menus/sidenav/helpers.js +1 -1
  95. package/lib/menus/sidenav/index.js +5 -5
  96. package/lib/panel/Content.js +5 -7
  97. package/lib/panel/Default.js +2 -2
  98. package/lib/panel/Header.js +3 -3
  99. package/lib/permissionValidations.js +1 -1
  100. package/lib/popover/PopoverText.d.ts +3 -2
  101. package/lib/popover/PopoverText.js +5 -8
  102. package/lib/popover/PopoverTitle.d.ts +1 -0
  103. package/lib/popover/index.d.ts +3 -5
  104. package/lib/popover/index.js +20 -14
  105. package/lib/popover/types.d.ts +12 -1
  106. package/lib/progress/Bar.js +6 -6
  107. package/lib/radio/index.js +2 -2
  108. package/lib/shortcuts/index.js +1 -1
  109. package/lib/skeleton/SkeletonContainer.js +2 -1
  110. package/lib/skeleton/index.js +4 -1
  111. package/lib/spinner/index.js +2 -2
  112. package/lib/split/Split.js +1 -1
  113. package/lib/split/SplitSide.js +3 -3
  114. package/lib/table/Body.js +3 -3
  115. package/lib/table/Header.js +8 -11
  116. package/lib/table/HeaderColumn.d.ts +1 -1
  117. package/lib/table/HeaderColumn.js +6 -7
  118. package/lib/table/Row.js +3 -3
  119. package/lib/table/RowColumn.js +2 -3
  120. package/lib/table/index.js +6 -1
  121. package/lib/table/types.d.ts +2 -4
  122. package/lib/tabs/DropdownTabs.js +1 -1
  123. package/lib/tabs/Menu.js +1 -1
  124. package/lib/tabs/MenuTabs.js +2 -2
  125. package/lib/tabs/Panel.js +5 -7
  126. package/lib/tabs/context.js +3 -6
  127. package/lib/textContent/index.js +1 -1
  128. package/lib/toolbar/ButtonBar.js +1 -1
  129. package/lib/toolbar/index.js +1 -1
  130. package/lib/tooltip/index.js +7 -7
  131. package/lib/treetable/Body.js +1 -1
  132. package/lib/treetable/Header.js +2 -2
  133. package/lib/treetable/Row.js +8 -8
  134. package/lib/treeview/Header.js +1 -1
  135. package/lib/treeview/Node.js +11 -15
  136. package/lib/treeview/index.js +7 -11
  137. package/lib/treeview/types.d.ts +0 -4
  138. package/lib/uitour/index.js +6 -8
  139. package/package.json +2 -2
  140. package/lib/assets/styles/wizard.scss +0 -125
  141. package/lib/dialog/wizard/index.d.ts +0 -13
  142. package/lib/dialog/wizard/index.js +0 -74
  143. package/lib/dialog/wizard/progressbar.d.ts +0 -13
  144. package/lib/dialog/wizard/progressbar.js +0 -36
  145. package/lib/dialog/wizard/step.d.ts +0 -9
  146. package/lib/dialog/wizard/step.js +0 -22
  147. package/lib/dialog/wizard/useWizard.d.ts +0 -9
  148. package/lib/dialog/wizard/useWizard.js +0 -48
  149. package/lib/inputs/mask/imaskHOC.js +0 -203
  150. package/lib/menus/sidenav/popup_menu_help/index.js +0 -85
  151. package/lib/tabs/DropdownItems.js +0 -62
  152. package/lib/tabs/MenuItems.js +0 -70
  153. package/lib/treeview_old/Header.js +0 -29
  154. package/lib/treeview_old/Node.js +0 -68
  155. package/lib/treeview_old/index.js +0 -43
@@ -11,11 +11,10 @@ const getFilteredDataCombo = _ref => {
11
11
  inputText
12
12
  } = _ref;
13
13
  return dataSource.filter(item => {
14
- var _descriptionKey;
15
14
  if (typeof descriptionKey === 'string') {
16
15
  return item[descriptionKey].toLowerCase().indexOf(inputText.toLowerCase()) > -1;
17
16
  }
18
- return ((_descriptionKey = descriptionKey(item)) === null || _descriptionKey === void 0 ? void 0 : _descriptionKey.toLowerCase().indexOf(inputText.toLowerCase())) > -1;
17
+ return descriptionKey(item)?.toLowerCase().indexOf(inputText.toLowerCase()) > -1;
19
18
  });
20
19
  };
21
20
  var _default = exports.default = getFilteredDataCombo;
@@ -33,7 +33,7 @@ const MultiSelectField = props => {
33
33
  gridLayout,
34
34
  dropdownAlignButton = 'left'
35
35
  } = props;
36
- const componentId = "multiSelect-component".concat(uuid.v1());
36
+ const componentId = `multiSelect-component${uuid.v1()}`;
37
37
  const [dataCombo, setDataCombo] = (0, _react.useState)(dataSource);
38
38
  const [selecteds, setSelecteds] = (0, _react.useState)();
39
39
  const [inputValue, setInputValue] = (0, _react.useState)('');
@@ -68,8 +68,8 @@ const MultiSelectField = props => {
68
68
  };
69
69
  const onMouseMove = event => {
70
70
  const target = event.target;
71
- if ((target === null || target === void 0 ? void 0 : target.className) === '') return;
72
- const newInsideComponent = ['item', 'menubutton', 'filterinput', 'filtercontainer', 'label'].includes(target === null || target === void 0 ? void 0 : target.className);
71
+ if (target?.className === '') return;
72
+ const newInsideComponent = ['item', 'menubutton', 'filterinput', 'filtercontainer', 'label'].includes(target?.className);
73
73
  setInsideComponent(newInsideComponent);
74
74
  };
75
75
  const onBlurComponent = e => {
@@ -109,11 +109,10 @@ const MultiSelectField = props => {
109
109
  if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
110
110
  };
111
111
  const onClickOutSide = event => {
112
- var _componentRef$current;
113
112
  const {
114
113
  target
115
114
  } = event;
116
- if (target !== componentRef.current && !((_componentRef$current = componentRef.current) !== null && _componentRef$current !== void 0 && _componentRef$current.contains(target))) {
115
+ if (target !== componentRef.current && !componentRef.current?.contains(target)) {
117
116
  setOpened(false);
118
117
  setDataCombo(dataSource);
119
118
  setInputValue('');
@@ -139,8 +138,7 @@ const MultiSelectField = props => {
139
138
  };
140
139
  (0, _react.useEffect)(() => {
141
140
  if (gridLayout) {
142
- var _selectWrapper$curren;
143
- const currentGridEl = (_selectWrapper$curren = selectWrapper.current) === null || _selectWrapper$curren === void 0 ? void 0 : _selectWrapper$curren.parentElement;
141
+ const currentGridEl = selectWrapper.current?.parentElement;
144
142
  if (currentGridEl) setElementStyles(window.getComputedStyle(currentGridEl));
145
143
  }
146
144
  window.addEventListener('resize', onScreenResize);
@@ -154,10 +152,10 @@ const MultiSelectField = props => {
154
152
  }, []);
155
153
  (0, _react.useEffect)(() => {
156
154
  if (dataSource && dataSource.length > 0) {
157
- const newSelecteds = dataSource.filter(item => value === null || value === void 0 ? void 0 : value.includes(item[idKey]));
155
+ const newSelecteds = dataSource.filter(item => value?.includes(item[idKey]));
158
156
  setSelecteds(newSelecteds);
159
157
  }
160
- }, [value === null || value === void 0 ? void 0 : value.length, dataSource === null || dataSource === void 0 ? void 0 : dataSource.length]);
158
+ }, [value?.length, dataSource?.length]);
161
159
  (0, _react.useEffect)(() => {
162
160
  if (dataSource && dataCombo && !_lodash.default.isEqual(dataSource, dataCombo)) {
163
161
  const newDataCombo = (0, _helper.default)(_objectSpread(_objectSpread({}, props), {}, {
@@ -12,6 +12,6 @@ import '../../drawer/types.js';
12
12
  import '../../@types/Icon.js';
13
13
  import '../../icons/helper.js';
14
14
 
15
- declare const BaseNumber: (props: IBaseNumberProps) => JSX.Element;
15
+ declare const BaseNumber: ({ value, ...props }: IBaseNumberProps) => JSX.Element;
16
16
 
17
17
  export { BaseNumber as default };
@@ -7,8 +7,11 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _BaseMask = _interopRequireDefault(require("../mask/BaseMask"));
9
9
  var _format_number = require("./format_number");
10
+ const _excluded = ["value"];
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
12
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
12
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
17
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -54,13 +57,17 @@ const getEventProps = props => {
54
57
  }
55
58
  };
56
59
  };
57
- const BaseNumber = props => {
60
+ const BaseNumber = _ref => {
61
+ let {
62
+ value
63
+ } = _ref,
64
+ props = _objectWithoutProperties(_ref, _excluded);
58
65
  const eventProps = _objectSpread(_objectSpread({}, props), {}, {
59
66
  returnFormattedValueOnBlur: true,
60
67
  returnFormattedValueOnKeyDown: true
61
68
  });
62
69
  return /*#__PURE__*/_react.default.createElement(_BaseMask.default, _extends({
63
- value: (0, _format_number.numberToPtBR)(props.value),
70
+ value: (0, _format_number.numberToPtBR)(value ?? 0),
64
71
  thousandsSeparator: ".",
65
72
  radix: ",",
66
73
  mask: Number,
@@ -12,6 +12,6 @@ import '../../drawer/types.js';
12
12
  import '../../@types/Icon.js';
13
13
  import '../../icons/helper.js';
14
14
 
15
- declare const CurrencyField: (props: ICurrencyProps) => JSX.Element;
15
+ declare const CurrencyField: ({ displayCurrencySymbol, ...props }: ICurrencyProps) => JSX.Element;
16
16
 
17
17
  export { CurrencyField as default };
@@ -6,17 +6,24 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _BaseNumber = _interopRequireDefault(require("./BaseNumber"));
9
+ const _excluded = ["displayCurrencySymbol"];
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
11
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
- const CurrencyField = props => {
12
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
13
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
14
+ const CurrencyField = _ref => {
15
+ let {
16
+ displayCurrencySymbol
17
+ } = _ref,
18
+ props = _objectWithoutProperties(_ref, _excluded);
12
19
  const {
13
20
  currencySymbol = 'R$'
14
21
  } = props;
15
- const leftElements = props.displayCurrencySymbol ? /*#__PURE__*/_react.default.createElement("span", {
22
+ const leftElements = displayCurrencySymbol ? /*#__PURE__*/_react.default.createElement("span", {
16
23
  className: "currency-symbol"
17
24
  }, currencySymbol) : [];
18
- return /*#__PURE__*/_react.default.createElement(_BaseNumber.default, _extends({}, props, {
25
+ return /*#__PURE__*/_react.default.createElement(_BaseNumber.default, _extends({
19
26
  leftElements: leftElements
20
- }));
27
+ }, props));
21
28
  };
22
29
  var _default = exports.default = CurrencyField;
@@ -48,7 +48,7 @@ const NumberField = props => {
48
48
  if (props.onChange) props.onChange(event);
49
49
  };
50
50
  (0, _react.useEffect)(() => {
51
- setNumberValue(value.toString());
51
+ setNumberValue(value?.toString() ?? '');
52
52
  }, [value]);
53
53
  return /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
54
54
  value: numberValue,
@@ -42,7 +42,7 @@ const PeriodList = _ref => {
42
42
  role: "button",
43
43
  tabIndex: -1,
44
44
  onKeyDown: () => {},
45
- key: "item-".concat(item.id),
45
+ key: `item-${item.id}`,
46
46
  className: (0, _helper.getDropdownItemCssClass)(itemSelected),
47
47
  onClick: () => {
48
48
  const dates = item.id !== 'custom' ? (0, _helper.CalcDatesByPeriod)(item.id) : null;
@@ -12,7 +12,9 @@ const getCalendarDropdownStyle = _ref => {
12
12
  leftPosition,
13
13
  width
14
14
  } = _ref;
15
- return "top: ".concat(topPosition, "px;\n left: ").concat(leftPosition, "px;\n width:").concat(width, "px");
15
+ return `top: ${topPosition}px;
16
+ left: ${leftPosition}px;
17
+ width:${width}px`;
16
18
  };
17
19
  var _default = exports.default = getCalendarDropdownStyle;
18
20
  const getDropdownItemCssClass = function () {
@@ -55,8 +55,7 @@ const PeriodPicker = props => {
55
55
  const dropdownPeriodContainer = (0, _react.useRef)(null);
56
56
  const inputFinalRef = (0, _react.useRef)(null);
57
57
  const onScreenResize = () => {
58
- var _inputContainerRef$cu;
59
- const inputDimensionsAux = inputContainerRef === null || inputContainerRef === void 0 ? void 0 : (_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 ? void 0 : _inputContainerRef$cu.getBoundingClientRect();
58
+ const inputDimensionsAux = inputContainerRef?.current?.getBoundingClientRect();
60
59
  setInputDimensions(inputDimensionsAux);
61
60
  };
62
61
  const onClickOutside = event => {
@@ -159,12 +158,11 @@ const PeriodPicker = props => {
159
158
  }
160
159
  };
161
160
  const setValue = function (event, value) {
162
- var _inputInitialRef$curr, _inputFinalRef$curren;
163
161
  let shouldOpenDropdown = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
164
162
  const valueDateName = event ? event.target.name : '';
165
163
  const dateObj = (0, _moment.default)(value, 'DD/MM/YYYY');
166
- if (showCalendarValueInitial) (_inputInitialRef$curr = inputInitialRef.current) === null || _inputInitialRef$curr === void 0 ? void 0 : _inputInitialRef$curr.focus();
167
- if (showCalendarValueFinal) (_inputFinalRef$curren = inputFinalRef.current) === null || _inputFinalRef$curren === void 0 ? void 0 : _inputFinalRef$curren.focus();
164
+ if (showCalendarValueInitial) inputInitialRef.current?.focus();
165
+ if (showCalendarValueFinal) inputFinalRef.current?.focus();
168
166
  if (valueDateName === 'valueFinal' && valueInitial && dateObj.isBefore(valueInitial)) {
169
167
  setValueInitial(dateObj);
170
168
  setValueFinal(valueInitial);
@@ -193,8 +191,7 @@ const PeriodPicker = props => {
193
191
  });
194
192
  }
195
193
  if (valueDateName === 'valueInitial' && !valueFinal && shouldOpenDropdown) {
196
- var _inputFinalRef$curren2;
197
- (_inputFinalRef$curren2 = inputFinalRef.current) === null || _inputFinalRef$curren2 === void 0 ? void 0 : _inputFinalRef$curren2.focus();
194
+ inputFinalRef.current?.focus();
198
195
  setTimeout(() => setShowCalendarValueFinal(true), 100);
199
196
  }
200
197
  if (shouldCloseOnSelect) {
@@ -217,8 +214,7 @@ const PeriodPicker = props => {
217
214
  name: "calendar"
218
215
  }),
219
216
  onClick: () => {
220
- var _inputInitialRef$curr2;
221
- (_inputInitialRef$curr2 = inputInitialRef.current) === null || _inputInitialRef$curr2 === void 0 ? void 0 : _inputInitialRef$curr2.focus();
217
+ inputInitialRef.current?.focus();
222
218
  openCalendar('valueInitial');
223
219
  },
224
220
  customClass: "calendar-button",
@@ -269,8 +265,7 @@ const PeriodPicker = props => {
269
265
  });
270
266
  const setPeriodDates = (selected, dates) => {
271
267
  if (selected === 'custom') {
272
- var _inputInitialRef$curr3;
273
- (_inputInitialRef$curr3 = inputInitialRef.current) === null || _inputInitialRef$curr3 === void 0 ? void 0 : _inputInitialRef$curr3.focus();
268
+ inputInitialRef.current?.focus();
274
269
  setValuePeriodSelection(selected);
275
270
  setShowPeriodSelection(false);
276
271
  return;
@@ -344,14 +339,14 @@ const PeriodPicker = props => {
344
339
  }, props.label && /*#__PURE__*/_react.default.createElement("div", {
345
340
  className: "labelcontainer"
346
341
  }, /*#__PURE__*/_react.default.createElement("span", {
347
- className: "label ".concat(props.customClassForLabel, " ").concat(props.labelUppercase && ' -uppercase')
342
+ className: `label ${props.customClassForLabel} ${props.labelUppercase && ' -uppercase'}`
348
343
  }, props.label, props.required && /*#__PURE__*/_react.default.createElement("span", {
349
344
  className: "-requiredlabel"
350
345
  }, "*"))), /*#__PURE__*/_react.default.createElement("div", {
351
- className: "periodpicker-component ".concat(helperBase.getInputWrapperClass(_objectSpread(_objectSpread({}, props), {}, {
346
+ className: `periodpicker-component ${helperBase.getInputWrapperClass(_objectSpread(_objectSpread({}, props), {}, {
352
347
  value: !valueInitial ? '' : (0, _moment.default)(valueInitial).format('DD/MM/YYYY'),
353
348
  disabled: shouldDisable()
354
- }))),
349
+ }))}`,
355
350
  ref: inputContainerRef
356
351
  }, /*#__PURE__*/_react.default.createElement(_BaseMask.default, {
357
352
  permissionAttr: props.permissionAttr,
@@ -49,7 +49,7 @@ const SearchField = props => {
49
49
  };
50
50
  const shouldDisable = () => props.disabled || onDenied && (onDenied.disabled || onDenied.hideContent);
51
51
  const shouldBeReadOnly = () => props.readOnly || onDenied && onDenied.readOnly;
52
- const hideContent = onDenied === null || onDenied === void 0 ? void 0 : onDenied.hideContent;
52
+ const hideContent = onDenied?.hideContent;
53
53
  const buttonProps = () => {
54
54
  const disableCallbacks = shouldBeReadOnly() || shouldDisable() || hideContent;
55
55
  let propsButton = {
@@ -80,7 +80,7 @@ const Dropdown = props => {
80
80
  const disabled = currents && currents.length > 0 ? currents.some(s => s[idKey] === item[idKey]) : false;
81
81
  const itemSelected = Boolean(selected && selected[idKey] === item[idKey]);
82
82
  return /*#__PURE__*/_react.default.createElement("div", {
83
- key: "dropdowmIten ".concat(item[idKey], "}"),
83
+ key: `dropdowmIten ${item[idKey]}}`,
84
84
  className: helper.getDropdownItemCssClass(itemSelected, disabled, striped)
85
85
  }, /*#__PURE__*/_react.default.createElement("button", {
86
86
  className: "menubutton",
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.returnDropdownDynamicStyles = exports.getFilteredSimpleDataCombo = exports.getFilteredMultipleDataCombo = exports.getDropdownItemCssClass = exports.contentClass = void 0;
7
- const contentClass = props => "content ".concat(props.showClearButton ? '' : 'noclear');
7
+ const contentClass = props => `content ${props.showClearButton ? '' : 'noclear'}`;
8
8
  exports.contentClass = contentClass;
9
9
  const getDropdownItemCssClass = (selected, disabled, striped) => {
10
10
  let className = 'item';
@@ -21,12 +21,10 @@ const getFilteredSimpleDataCombo = _ref => {
21
21
  inputText
22
22
  } = _ref;
23
23
  return dataSource && dataSource.filter(item => {
24
- var _descriptionKey;
25
24
  if (typeof descriptionKey === 'string') {
26
- var _item$descriptionKey;
27
- return ((_item$descriptionKey = item[descriptionKey]) === null || _item$descriptionKey === void 0 ? void 0 : _item$descriptionKey.toLowerCase().indexOf(inputText === null || inputText === void 0 ? void 0 : inputText.toString().toLowerCase())) > -1;
25
+ return item[descriptionKey]?.toLowerCase().indexOf(inputText?.toString().toLowerCase()) > -1;
28
26
  }
29
- return ((_descriptionKey = descriptionKey(item)) === null || _descriptionKey === void 0 ? void 0 : _descriptionKey.toLowerCase().indexOf(inputText === null || inputText === void 0 ? void 0 : inputText.toString().toLowerCase())) > -1;
27
+ return descriptionKey(item)?.toLowerCase().indexOf(inputText?.toString().toLowerCase()) > -1;
30
28
  });
31
29
  };
32
30
  exports.getFilteredSimpleDataCombo = getFilteredSimpleDataCombo;
@@ -38,11 +36,10 @@ const getFilteredMultipleDataCombo = _ref2 => {
38
36
  currents
39
37
  } = _ref2;
40
38
  return dataSource.filter(item => {
41
- var _descriptionKey2;
42
39
  if (typeof descriptionKey === 'string') {
43
- return item[descriptionKey].toLowerCase().indexOf(inputText === null || inputText === void 0 ? void 0 : inputText.toString().toLowerCase()) > -1 && !currents.includes(item);
40
+ return item[descriptionKey].toLowerCase().indexOf(inputText?.toString().toLowerCase()) > -1 && !currents.includes(item);
44
41
  }
45
- return ((_descriptionKey2 = descriptionKey(item)) === null || _descriptionKey2 === void 0 ? void 0 : _descriptionKey2.toLowerCase().indexOf(inputText === null || inputText === void 0 ? void 0 : inputText.toString().toLowerCase())) > -1 && !currents.includes(item);
42
+ return descriptionKey(item)?.toLowerCase().indexOf(inputText?.toString().toLowerCase()) > -1 && !currents.includes(item);
46
43
  });
47
44
  };
48
45
  exports.getFilteredMultipleDataCombo = getFilteredMultipleDataCombo;
@@ -54,7 +51,7 @@ const returnDropdownPosition = function (_ref3) {
54
51
  } = _ref3;
55
52
  let aboveDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
56
53
  const DEFAULT_MARGIN_BOTTOM = 10;
57
- if (aboveDropdown && dropdownRef !== null && dropdownRef !== void 0 && dropdownRef.current && dropdownRects !== null && dropdownRects !== void 0 && dropdownRects.height) {
54
+ if (aboveDropdown && dropdownRef?.current && dropdownRects?.height) {
58
55
  return selectFieldRects.top + window.scrollY - (dropdownRef.current && dropdownRects.height) - DEFAULT_MARGIN_BOTTOM;
59
56
  }
60
57
  return selectFieldRects.top + window.scrollY + selectFieldRects.height;
@@ -65,10 +62,10 @@ const returnDropdownDynamicStyles = _ref4 => {
65
62
  dropdownMaxHeight,
66
63
  dropdownRef
67
64
  } = _ref4;
68
- const selectFieldRects = selectFieldRef !== null && selectFieldRef !== void 0 && selectFieldRef.current ? selectFieldRef.current.getBoundingClientRect() : undefined;
69
- const dropdownRects = dropdownRef !== null && dropdownRef !== void 0 && dropdownRef.current ? dropdownRef.current.getBoundingClientRect() : undefined;
70
- const selectFieldRectsBottom = selectFieldRects ? selectFieldRects === null || selectFieldRects === void 0 ? void 0 : selectFieldRects.bottom : 0;
71
- const selectFieldRectsTop = selectFieldRects ? selectFieldRects === null || selectFieldRects === void 0 ? void 0 : selectFieldRects.top : 0;
65
+ const selectFieldRects = selectFieldRef?.current ? selectFieldRef.current.getBoundingClientRect() : undefined;
66
+ const dropdownRects = dropdownRef?.current ? dropdownRef.current.getBoundingClientRect() : undefined;
67
+ const selectFieldRectsBottom = selectFieldRects ? selectFieldRects?.bottom : 0;
68
+ const selectFieldRectsTop = selectFieldRects ? selectFieldRects?.top : 0;
72
69
  const dropdownBottomDistance = window.innerHeight - selectFieldRectsBottom;
73
70
  const bottomOffset = 30;
74
71
  let maxDropdownBottomDistance = 200;
@@ -15,7 +15,7 @@ const Selecteds = _ref => {
15
15
  } = _ref;
16
16
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, currents.map(selected => /*#__PURE__*/_react.default.createElement("div", {
17
17
  className: "selecteditem",
18
- key: "selected-".concat(selected[idKey])
18
+ key: `selected-${selected[idKey]}`
19
19
  }, typeof descriptionKey === 'string' ? selected[descriptionKey] : descriptionKey(selected), /*#__PURE__*/_react.default.createElement("button", {
20
20
  className: "close",
21
21
  tabIndex: -1,
@@ -25,8 +25,7 @@ const MultipleSelect = props => {
25
25
  value = [],
26
26
  remoteSearch = false,
27
27
  descriptionKey,
28
- showClearButton,
29
- rightElements = []
28
+ showClearButton
30
29
  } = props;
31
30
  const [dataCombo, setDataCombo] = (0, _react.useState)(dataSource);
32
31
  const [currents, setCurrents] = (0, _react.useState)([]);
@@ -37,7 +36,7 @@ const MultipleSelect = props => {
37
36
  const [insideComponent, setInsideComponent] = (0, _react.useState)(false);
38
37
  const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
39
38
  const [valueFromProps, setValueFromProps] = (0, _react.useState)([]);
40
- const componentId = "select-component".concat(uuid.v1());
39
+ const componentId = `select-component${uuid.v1()}`;
41
40
  const componentRef = (0, _react.useRef)(null);
42
41
  const dropdownRef = (0, _react.useRef)(null);
43
42
  const selectWrapper = (0, _react.useRef)();
@@ -57,11 +56,10 @@ const MultipleSelect = props => {
57
56
  }
58
57
  };
59
58
  const onMouseMove = event => {
60
- var _dropdownRef$current, _dropdownRef$current$;
61
59
  const target = event.target;
62
- const idDropdown = ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : (_dropdownRef$current$ = _dropdownRef$current.parentElement) === null || _dropdownRef$current$ === void 0 ? void 0 : _dropdownRef$current$.id) || '';
60
+ const idDropdown = dropdownRef.current?.parentElement?.id || '';
63
61
  const dropdownElement = document.getElementById(idDropdown);
64
- const keepDropdownOpen = Boolean(dropdownElement === null || dropdownElement === void 0 ? void 0 : dropdownElement.contains(target));
62
+ const keepDropdownOpen = Boolean(dropdownElement?.contains(target));
65
63
  setInsideComponent(keepDropdownOpen);
66
64
  };
67
65
  const onClearClick = () => {
@@ -98,7 +96,6 @@ const MultipleSelect = props => {
98
96
  setDropdownWidth(dropdownWidthFocus);
99
97
  };
100
98
  const onSelect = select => {
101
- var _dropdownRef$current2;
102
99
  if (select === null) return;
103
100
  const currentsSelect = [...currents, select];
104
101
  setCurrents(currentsSelect);
@@ -106,17 +103,16 @@ const MultipleSelect = props => {
106
103
  setInputValue([]);
107
104
  if (inputTextRef && inputTextRef.current) inputTextRef.current.focus();
108
105
  if (props.onSelect) setSelected(props.onSelect(currentsSelect.map(i => i[idKey])));
109
- (_dropdownRef$current2 = dropdownRef.current) === null || _dropdownRef$current2 === void 0 ? void 0 : _dropdownRef$current2.focus();
106
+ dropdownRef.current?.focus();
110
107
  };
111
108
  const onUnselect = id => {
112
109
  if (currents) {
113
- var _dropdownRef$current3;
114
110
  const result = currents.filter(item => item[idKey] !== id);
115
111
  setCurrents(result);
116
112
  if (inputTextRef && inputTextRef.current) inputTextRef.current.focus();
117
113
  setOpened(false);
118
114
  if (props.onSelect) setSelected(props.onSelect(result.map(i => i[idKey])));
119
- (_dropdownRef$current3 = dropdownRef.current) === null || _dropdownRef$current3 === void 0 ? void 0 : _dropdownRef$current3.focus();
115
+ dropdownRef.current?.focus();
120
116
  }
121
117
  };
122
118
  const onOpenClose = () => {
@@ -133,11 +129,9 @@ const MultipleSelect = props => {
133
129
  const onInputKeyDown = e => {
134
130
  if (e.keyCode) {
135
131
  if (e.keyCode === constants.keyCodes.ENTER && selected && opened) {
136
- var _e$preventDefault;
137
- (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
132
+ e.preventDefault?.();
138
133
  if (!currents.some(current => current[idKey] === selected[idKey])) {
139
- var _e$preventDefault2;
140
- (_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
134
+ e.preventDefault?.();
141
135
  onSelect(selected);
142
136
  }
143
137
  } else if ([constants.keyCodes.ARROW_UP, constants.keyCodes.ARROW_DOWN].includes(e.keyCode)) {
@@ -183,7 +177,7 @@ const MultipleSelect = props => {
183
177
  }, []);
184
178
  (0, _react.useEffect)(() => {
185
179
  if (props.gridLayout) {
186
- const gridEl = document.querySelector("#".concat(componentId, ">.-withinput.grid-container"));
180
+ const gridEl = document.querySelector(`#${componentId}>.-withinput.grid-container`);
187
181
  if (gridElRef.current !== gridEl && gridEl) gridElRef.current = gridEl;
188
182
  }
189
183
  }, []);
@@ -235,14 +229,13 @@ const MultipleSelect = props => {
235
229
  },
236
230
  onClick: onFocus,
237
231
  onKeyDown: onInputKeyDown,
238
- customClassForWrapper: "selectwrapper ".concat((props.readOnly || shouldDisable() || shouldBeReadOnly()) && ' -undigitable'),
232
+ customClassForWrapper: `selectwrapper ${(props.readOnly || shouldDisable() || shouldBeReadOnly()) && ' -undigitable'}`,
239
233
  customClassForInputContent: "multiselect",
240
234
  inputBaseRef: r => {
241
235
  selectWrapper.current = r;
242
236
  },
243
237
  handlerSetOnDenied: setOnDenied,
244
- rightElements: [...rightElements, /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
245
- key: "action-buttons-multiselect",
238
+ rightElements: /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
246
239
  showClearButton: showClearButton,
247
240
  disabled: shouldDisable() || shouldBeReadOnly(),
248
241
  dropDownOpened: opened,
@@ -251,7 +244,7 @@ const MultipleSelect = props => {
251
244
  return onClearClick();
252
245
  },
253
246
  handlerOpenClose: onOpenClose
254
- })]
247
+ })
255
248
  }), /*#__PURE__*/_react.default.createElement(_Selecteds.default, _extends({}, props, {
256
249
  currents: currents,
257
250
  handlerOnUnselect: onUnselect
@@ -34,8 +34,7 @@ const SimpleSelect = props => {
34
34
  searchOnDropdown = false,
35
35
  allOptions = undefined,
36
36
  showClearButton = false,
37
- searchNotFoundText,
38
- rightElements = []
37
+ searchNotFoundText
39
38
  } = props;
40
39
  const descriptionKeyIsString = typeof descriptionKey === 'string';
41
40
  const dataSourceWithAllOptions = allOptions ? [{
@@ -51,7 +50,7 @@ const SimpleSelect = props => {
51
50
  const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
52
51
  const [isTyping, setIsTyping] = (0, _react.useState)(false);
53
52
  const dropdownRef = (0, _react.useRef)(null);
54
- const componentId = "select-component-".concat(name, "-").concat(uuid.v1());
53
+ const componentId = `select-component-${name}-${uuid.v1()}`;
55
54
  const componentRef = (0, _react.useRef)(null);
56
55
  const selectWrapper = (0, _react.useRef)();
57
56
  const gridElement = (0, _react.useRef)();
@@ -60,20 +59,18 @@ const SimpleSelect = props => {
60
59
  if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
61
60
  };
62
61
  const onClickOutside = event => {
63
- var _selectWrapper$curren, _dropdownRef$current;
64
62
  const {
65
63
  target
66
64
  } = event;
67
- if (target !== selectWrapper.current && !((_selectWrapper$curren = selectWrapper.current) !== null && _selectWrapper$curren !== void 0 && _selectWrapper$curren.contains(target)) && !((_dropdownRef$current = dropdownRef.current) !== null && _dropdownRef$current !== void 0 && _dropdownRef$current.contains(target))) {
65
+ if (target !== selectWrapper.current && !selectWrapper.current?.contains(target) && !dropdownRef.current?.contains(target)) {
68
66
  setOpened(false);
69
67
  }
70
68
  };
71
69
  const onMouseMove = event => {
72
- var _dropdownRef$current2, _dropdownRef$current3;
73
70
  const target = event.target;
74
- const idDropdown = ((_dropdownRef$current2 = dropdownRef.current) === null || _dropdownRef$current2 === void 0 ? void 0 : (_dropdownRef$current3 = _dropdownRef$current2.parentElement) === null || _dropdownRef$current3 === void 0 ? void 0 : _dropdownRef$current3.id) || '';
71
+ const idDropdown = dropdownRef.current?.parentElement?.id || '';
75
72
  const dropdownElement = document.getElementById(idDropdown);
76
- const keepDropdownOpen = Boolean(dropdownElement === null || dropdownElement === void 0 ? void 0 : dropdownElement.contains(target));
73
+ const keepDropdownOpen = Boolean(dropdownElement?.contains(target));
77
74
  setInsideComponent(keepDropdownOpen);
78
75
  };
79
76
  const getSelectEvent = selectedEvent => ({
@@ -113,7 +110,6 @@ const SimpleSelect = props => {
113
110
  }
114
111
  };
115
112
  const onSelect = selectedDropdown => {
116
- var _dropdownRef$current4;
117
113
  if (!selectedDropdown) return;
118
114
  setSelected(selectedDropdown);
119
115
  if (descriptionKeyIsString) setInputText(selectedDropdown[descriptionKey]);else setInputText(descriptionKey(selectedDropdown));
@@ -123,7 +119,7 @@ const SimpleSelect = props => {
123
119
  if (inputTextRef && inputTextRef.current) inputTextRef.current.focus();
124
120
  setOpened(false);
125
121
  });
126
- (_dropdownRef$current4 = dropdownRef.current) === null || _dropdownRef$current4 === void 0 ? void 0 : _dropdownRef$current4.focus();
122
+ dropdownRef.current?.focus();
127
123
  };
128
124
  const onOpenClose = () => {
129
125
  setOpened(prevState => !prevState);
@@ -159,8 +155,7 @@ const SimpleSelect = props => {
159
155
  const onInputKeyDown = e => {
160
156
  if (e.keyCode) {
161
157
  if (e.keyCode === constants.keyCodes.ENTER && selected && opened) {
162
- var _e$preventDefault;
163
- (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
158
+ e.preventDefault?.();
164
159
  onSelect(selected);
165
160
  } else if ([constants.keyCodes.ARROW_UP, constants.keyCodes.ARROW_DOWN].includes(e.keyCode)) {
166
161
  if (!opened) setOpened(true);
@@ -168,7 +163,7 @@ const SimpleSelect = props => {
168
163
  if (e.keyCode === constants.keyCodes.ARROW_DOWN) {
169
164
  index = dataCombo && index === dataCombo.length - 1 ? 0 : index + 1;
170
165
  } else {
171
- index = dataCombo && index === 0 ? (dataCombo === null || dataCombo === void 0 ? void 0 : dataCombo.length) - 1 : index - 1;
166
+ index = dataCombo && index === 0 ? dataCombo?.length - 1 : index - 1;
172
167
  }
173
168
  setSelected(dataCombo[index]);
174
169
  if (descriptionKeyIsString) setInputText(dataCombo[index][descriptionKey]);
@@ -205,7 +200,7 @@ const SimpleSelect = props => {
205
200
  }, []);
206
201
  (0, _react.useEffect)(() => {
207
202
  if (gridLayout) {
208
- const gridEl = document.querySelector("#".concat(componentId, ">.-withinput.grid-container"));
203
+ const gridEl = document.querySelector(`#${componentId}>.-withinput.grid-container`);
209
204
  if (gridElement.current !== gridEl && gridEl) gridElement.current = gridEl;
210
205
  }
211
206
  }, [gridLayout]);
@@ -213,10 +208,7 @@ const SimpleSelect = props => {
213
208
  if (dataSourceWithAllOptions.length > 0) {
214
209
  let newCurrent = null;
215
210
  if (value || value === 0) {
216
- newCurrent = dataSourceWithAllOptions.find(i => {
217
- var _i$idKey;
218
- return (value || value === 0) && ((_i$idKey = i[idKey]) === null || _i$idKey === void 0 ? void 0 : _i$idKey.toString().toLowerCase()) === (value === null || value === void 0 ? void 0 : value.toString().toLowerCase());
219
- });
211
+ newCurrent = dataSourceWithAllOptions.find(i => (value || value === 0) && i[idKey]?.toString().toLowerCase() === value?.toString().toLowerCase());
220
212
  } else if (dataSourceWithAllOptions.length > 0 && selectFirstOnEnter) {
221
213
  newCurrent = dataSourceWithAllOptions[0];
222
214
  }
@@ -269,14 +261,13 @@ const SimpleSelect = props => {
269
261
  },
270
262
  onClick: onFocus,
271
263
  onKeyDown: onInputKeyDown,
272
- customClassForWrapper: "selectwrapper ".concat((undigitable || searchOnDropdown || shouldBeReadOnly()) && ' -undigitable'),
264
+ customClassForWrapper: `selectwrapper ${(undigitable || searchOnDropdown || shouldBeReadOnly()) && ' -undigitable'}`,
273
265
  customClassForInputContent: "multiselect",
274
266
  inputBaseRef: r => {
275
267
  selectWrapper.current = r;
276
268
  },
277
269
  handlerSetOnDenied: inputOnDenied => setOnDenied(inputOnDenied),
278
- rightElements: [...rightElements, /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
279
- key: "action-buttons-simpleselect",
270
+ rightElements: /*#__PURE__*/_react.default.createElement(_ActionButtons.default, {
280
271
  disabled: shouldDisable() || shouldBeReadOnly(),
281
272
  showClearButton: showClearButton,
282
273
  dropDownOpened: opened,
@@ -285,7 +276,7 @@ const SimpleSelect = props => {
285
276
  return onClearClick();
286
277
  },
287
278
  handlerOpenClose: onOpenClose
288
- })]
279
+ })
289
280
  })), opened && /*#__PURE__*/_react.default.createElement(_Dropdown.default, _extends({}, props, {
290
281
  opened: opened,
291
282
  selected: selected,
@@ -50,7 +50,6 @@ 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[];
54
53
  }
55
54
  interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
56
55
  multiple?: boolean;
@@ -19,7 +19,7 @@ const TextArea = props => {
19
19
  rows: rows,
20
20
  type: type,
21
21
  cols: cols,
22
- customClass: "textarea-container ".concat(customClass)
22
+ customClass: `textarea-container ${customClass}`
23
23
  }));
24
24
  };
25
25
  var _default = exports.default = TextArea;