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
@@ -21,7 +21,7 @@ const Shortcuts = _ref => {
21
21
  style: style
22
22
  }, /*#__PURE__*/_react.default.createElement("kbd", {
23
23
  "data-testid": "shortcut",
24
- className: "shortcut-component ".concat(type && "-".concat(type)),
24
+ className: `shortcut-component ${type && `-${type}`}`,
25
25
  style: styleShortcut
26
26
  }, shortcut), ":\xA0", description);
27
27
  };
@@ -13,7 +13,8 @@ const SkeletonContainer = _ref => {
13
13
  customClass,
14
14
  style
15
15
  } = _ref;
16
- const getClass = () => "skeletoncontainer-component ".concat(customClass, "\n ").concat(row && '-row');
16
+ const getClass = () => `skeletoncontainer-component ${customClass}
17
+ ${row && '-row'}`;
17
18
  return /*#__PURE__*/_react.default.createElement("div", {
18
19
  className: getClass(),
19
20
  style: style
@@ -35,7 +35,10 @@ const Skeleton = props => {
35
35
  width,
36
36
  height
37
37
  };
38
- const getClass = () => "skeleton-component ".concat(customClass, "\n ").concat(color && "-".concat(color), "\n ").concat(round && '-round', "\n ").concat(round && size && "-".concat(size));
38
+ const getClass = () => `skeleton-component ${customClass}
39
+ ${color && `-${color}`}
40
+ ${round && '-round'}
41
+ ${round && size && `-${size}`}`;
39
42
  const renderContent = () => /*#__PURE__*/_react.default.createElement("div", {
40
43
  className: getClass(),
41
44
  style: _objectSpread(_objectSpread({}, customStyles), style)
@@ -37,8 +37,8 @@ const Spinner = props => {
37
37
  };
38
38
  }, []);
39
39
  const getCssClass = () => {
40
- let css = "spinner-component -".concat(align, " ").concat(customClass, " ");
41
- if (heightAuto) css = "".concat(css, " -heightauto");
40
+ let css = `spinner-component -${align} ${customClass} `;
41
+ if (heightAuto) css = `${css} -heightauto`;
42
42
  return css;
43
43
  };
44
44
  if (delay) return null;
@@ -246,7 +246,7 @@ const Split = _ref => {
246
246
  } = state;
247
247
  let containerClasses = 'split-component';
248
248
  if (customClass) {
249
- containerClasses += " ".concat(customClass);
249
+ containerClasses += ` ${customClass}`;
250
250
  }
251
251
  if (vertical) {
252
252
  containerClasses += ' splitter-layout-vertical';
@@ -27,15 +27,15 @@ const SplitSide = _ref => {
27
27
  const splitSideStyle = {};
28
28
  if (!primary) {
29
29
  if (vertical) {
30
- splitSideStyle.height = "".concat(sizeSplitSide).concat(unit);
30
+ splitSideStyle.height = `${sizeSplitSide}${unit}`;
31
31
  } else {
32
- splitSideStyle.width = "".concat(sizeSplitSide).concat(unit);
32
+ splitSideStyle.width = `${sizeSplitSide}${unit}`;
33
33
  }
34
34
  } else {
35
35
  classes += ' layout-pane-primary';
36
36
  }
37
37
  return /*#__PURE__*/_react.default.createElement("div", {
38
- className: "".concat(classes, " ").concat(customClass),
38
+ className: `${classes} ${customClass}`,
39
39
  style: Object.assign({}, splitSideStyle, style)
40
40
  }, children);
41
41
  };
package/lib/table/Body.js CHANGED
@@ -28,7 +28,7 @@ const renderChildren = (children, _ref) => {
28
28
  key: index
29
29
  }, columns.map(id => /*#__PURE__*/_react.default.createElement(_index.Td, {
30
30
  style: {
31
- width: columnsWidth === null || columnsWidth === void 0 ? void 0 : columnsWidth[id - 1]
31
+ width: columnsWidth?.[id - 1]
32
32
  },
33
33
  key: id
34
34
  }, /*#__PURE__*/_react.default.createElement(_skeleton.default, {
@@ -63,9 +63,9 @@ const TableBody = _ref2 => {
63
63
  contain: strict ? 'strict' : 'size layout style'
64
64
  }
65
65
  }, /*#__PURE__*/_react.default.createElement("tbody", {
66
- className: "tbody ".concat(isSkeletonized ? 'skeleton-transparency' : '', " ").concat(customClass)
66
+ className: `tbody ${isSkeletonized ? 'skeleton-transparency' : ''} ${customClass}`
67
67
  }, renderChildren(children, context)))) : /*#__PURE__*/_react.default.createElement("tbody", {
68
- className: "tbody ".concat(isSkeletonized ? 'skeleton-transparency' : '', " ").concat(customClass)
68
+ className: `tbody ${isSkeletonized ? 'skeleton-transparency' : ''} ${customClass}`
69
69
  }, renderChildren(children, context));
70
70
  };
71
71
  var _default = exports.default = TableBody;
@@ -12,7 +12,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const getColumnsWidth = children => {
14
14
  const columnsWidth = [];
15
- if ( /*#__PURE__*/(0, _react.isValidElement)(children) && children.props) {
15
+ if (/*#__PURE__*/(0, _react.isValidElement)(children) && children.props) {
16
16
  let columns = children.props.children;
17
17
  if (!_lodash.default.isArray(columns)) columns = [columns];
18
18
  columns.forEach(element => {
@@ -20,14 +20,12 @@ const getColumnsWidth = children => {
20
20
  if (_lodash.default.isArray(element)) {
21
21
  element.forEach(elementArray => {
22
22
  if (elementArray && elementArray.props) {
23
- var _elementArray$props, _elementArray$props$s;
24
- colWidth = (_elementArray$props = elementArray.props) === null || _elementArray$props === void 0 ? void 0 : (_elementArray$props$s = _elementArray$props.style) === null || _elementArray$props$s === void 0 ? void 0 : _elementArray$props$s.width;
23
+ colWidth = elementArray.props?.style?.width;
25
24
  }
26
25
  columnsWidth.push(colWidth);
27
26
  });
28
27
  } else if (element && element.props) {
29
- var _element$props, _element$props$style;
30
- colWidth = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : (_element$props$style = _element$props.style) === null || _element$props$style === void 0 ? void 0 : _element$props$style.width;
28
+ colWidth = element.props?.style?.width;
31
29
  columnsWidth.push(colWidth);
32
30
  }
33
31
  });
@@ -36,9 +34,8 @@ const getColumnsWidth = children => {
36
34
  };
37
35
  const countColumnsFromChildren = (element, columnsCount) => {
38
36
  const count = columnsCount;
39
- if ( /*#__PURE__*/(0, _react.isValidElement)(element)) {
40
- var _element$props2;
41
- if (_lodash.default.isArray(element === null || element === void 0 ? void 0 : (_element$props2 = element.props) === null || _element$props2 === void 0 ? void 0 : _element$props2.children)) {
37
+ if (/*#__PURE__*/(0, _react.isValidElement)(element)) {
38
+ if (_lodash.default.isArray(element?.props?.children)) {
42
39
  const currentElement = element.props;
43
40
  currentElement.children.forEach(child => countColumnsFromChildren(child, count));
44
41
  } else if (element) {
@@ -51,7 +48,7 @@ const countColumnsFromChildren = (element, columnsCount) => {
51
48
  const getColumnsCount = (children, columnsCount) => {
52
49
  if (_lodash.default.isArray(children) && children.length > 0 && children[0].props) {
53
50
  countColumnsFromChildren(children[0].props.children, columnsCount);
54
- } else if ( /*#__PURE__*/(0, _react.isValidElement)(children) && children.props && children.props.children) {
51
+ } else if (/*#__PURE__*/(0, _react.isValidElement)(children) && children.props && children.props.children) {
55
52
  countColumnsFromChildren(children.props.children, columnsCount);
56
53
  }
57
54
  return columnsCount.current;
@@ -85,9 +82,9 @@ const Header = _ref => {
85
82
  tableLayout: 'fixed'
86
83
  }
87
84
  }, /*#__PURE__*/_react.default.createElement("thead", {
88
- className: "theader ".concat(customClass)
85
+ className: `theader ${customClass}`
89
86
  }, children))) : /*#__PURE__*/_react.default.createElement("thead", {
90
- className: "theader ".concat(customClass)
87
+ className: `theader ${customClass}`
91
88
  }, children);
92
89
  };
93
90
  var _default = exports.default = Header;
@@ -1,6 +1,6 @@
1
1
  import { ITableHeaderProps } from './types.js';
2
2
  import 'react';
3
3
 
4
- declare const HeaderColumn: (props: ITableHeaderProps) => JSX.Element | null;
4
+ declare const HeaderColumn: ({ customClass, style, children, textAlign, visible, id, rowSpan, colSpan, isMenuColumn, }: ITableHeaderProps) => JSX.Element | null;
5
5
 
6
6
  export { HeaderColumn as default };
@@ -11,9 +11,8 @@ var _helpers = _interopRequireDefault(require("./helpers"));
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- 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); }
15
- const HeaderColumn = props => {
16
- const {
14
+ const HeaderColumn = _ref => {
15
+ let {
17
16
  customClass,
18
17
  style,
19
18
  children,
@@ -23,7 +22,7 @@ const HeaderColumn = props => {
23
22
  rowSpan,
24
23
  colSpan,
25
24
  isMenuColumn = false
26
- } = props;
25
+ } = _ref;
27
26
  const {
28
27
  skeletonize,
29
28
  vertical,
@@ -39,13 +38,13 @@ const HeaderColumn = props => {
39
38
  });
40
39
  };
41
40
  if (!visible) return null;
42
- return /*#__PURE__*/_react.default.createElement("th", _extends({}, props, {
41
+ return /*#__PURE__*/_react.default.createElement("th", {
43
42
  id: id,
44
43
  rowSpan: rowSpan,
45
44
  colSpan: colSpan,
46
- className: "headercolumn ".concat(customClass, " text-align-").concat(textAlign, " ").concat(isMenuColumn && 'menu-column'),
45
+ className: `headercolumn ${customClass} text-align-${textAlign} ${isMenuColumn && 'menu-column'}`,
47
46
  style: style
48
- }), skeletonize && (skeletonInHeader || !skeletonInRows) && !vertical ? /*#__PURE__*/_react.default.createElement(_skeleton.default, {
47
+ }, skeletonize && (skeletonInHeader || !skeletonInRows) && !vertical ? /*#__PURE__*/_react.default.createElement(_skeleton.default, {
49
48
  height: style && style.height ? undefined : 16,
50
49
  style: {
51
50
  marginBottom: 0
package/lib/table/Row.js CHANGED
@@ -53,7 +53,7 @@ const Row = props => {
53
53
  }, !divider ? /*#__PURE__*/_react.default.createElement("tr", {
54
54
  onMouseEnter: onMouseEnter,
55
55
  onMouseLeave: onMouseLeave,
56
- className: "trow ".concat(customClass, " ").concat(rowId && selectedRowId === rowId ? '-selected' : ''),
56
+ className: `trow ${customClass} ${rowId && selectedRowId === rowId ? '-selected' : ''}`,
57
57
  onClick: e => {
58
58
  if (handleSelectRow && (rowId !== undefined || rowId !== null)) handleSelectRow(rowId);
59
59
  if (handleTableRowClick) handleTableRowClick(e, dataId);
@@ -67,11 +67,11 @@ const Row = props => {
67
67
  className: "trow trow-divider"
68
68
  }, vertical ? /*#__PURE__*/_react.default.createElement("th", {
69
69
  colSpan: dividerColSpan,
70
- className: "-divider -".concat(dividerColor),
70
+ className: `-divider -${dividerColor}`,
71
71
  style: dividerStyle
72
72
  }, dividerTitle || '') : /*#__PURE__*/_react.default.createElement("td", {
73
73
  colSpan: dividerColSpan,
74
- className: "-divider -".concat(dividerColor),
74
+ className: `-divider -${dividerColor}`,
75
75
  style: dividerStyle
76
76
  }, dividerTitle || '')));
77
77
  };
@@ -43,8 +43,7 @@ const RowColumn = props => {
43
43
  visible = true,
44
44
  rowSpan,
45
45
  colSpan,
46
- children,
47
- isMenuColumn = false
46
+ children
48
47
  } = props;
49
48
  const context = (0, _react.useContext)(_helpers.RowContext);
50
49
  const {
@@ -71,7 +70,7 @@ const RowColumn = props => {
71
70
  return /*#__PURE__*/_react.default.createElement("td", {
72
71
  rowSpan: rowSpan,
73
72
  colSpan: colSpan,
74
- className: "rowcolumn ".concat(customClass, " text-align-").concat(textAlign, " ").concat(!context.rowBorder && ' -noborder', " ").concat(!rowSpan ? ' -norowspan' : '', " ").concat(isMenuColumn && 'menu-column'),
73
+ className: `rowcolumn ${customClass} text-align-${textAlign} ${!context.rowBorder && ' -noborder'} ${!rowSpan ? ' -norowspan' : ''}`,
75
74
  style: style,
76
75
  onClick: e => getColClickEvent(e, _objectSpread(_objectSpread({}, context), props)),
77
76
  role: "presentation",
@@ -65,7 +65,12 @@ const getClass = _ref => {
65
65
  bodyScrollable,
66
66
  skeletonInRows = 10
67
67
  } = _ref;
68
- return "table-component ".concat(customClass, " ").concat(striped && '-striped', " \n ").concat(bordered && '-bordered', " ").concat(hovered && '-hovered', " ").concat(headerColored && '-headercolor', "\n ").concat(condensed && '-condensed', "\n ").concat(vertical && '-vertical', "\n ").concat(skeletonize && !skeletonInRows ? '-skeletonized' : '', "\n ").concat(bodyScrollable ? '-scrollable' : '');
68
+ return `table-component ${customClass} ${striped && '-striped'}
69
+ ${bordered && '-bordered'} ${hovered && '-hovered'} ${headerColored && '-headercolor'}
70
+ ${condensed && '-condensed'}
71
+ ${vertical && '-vertical'}
72
+ ${skeletonize && !skeletonInRows ? '-skeletonized' : ''}
73
+ ${bodyScrollable ? '-scrollable' : ''}`;
69
74
  };
70
75
  const Table = _ref2 => {
71
76
  let {
@@ -1,4 +1,4 @@
1
- import { TableHTMLAttributes, ReactNode, ComponentProps, MouseEvent, CSSProperties, LegacyRef, SetStateAction } from 'react';
1
+ import { TableHTMLAttributes, ReactNode, MouseEvent, CSSProperties, LegacyRef, SetStateAction } from 'react';
2
2
 
3
3
  interface ITableProps extends TableHTMLAttributes<HTMLTableElement> {
4
4
  children?: ReactNode;
@@ -19,7 +19,7 @@ interface ITableProps extends TableHTMLAttributes<HTMLTableElement> {
19
19
  skeletonInHeader?: boolean;
20
20
  skeletonHeight?: number;
21
21
  }
22
- interface ITableHeaderProps extends ComponentProps<'th'> {
22
+ interface ITableHeaderProps extends TableHTMLAttributes<HTMLTableElement> {
23
23
  children?: ReactNode;
24
24
  customClass?: string;
25
25
  textAlign?: string;
@@ -60,7 +60,6 @@ interface ITableRowProps extends Pick<TableHTMLAttributes<HTMLTableRowElement>,
60
60
  dividerStyle?: CSSProperties;
61
61
  rowSpan?: number;
62
62
  colSpan?: number;
63
- isMenuColumn?: boolean;
64
63
  }
65
64
  interface ITableContext {
66
65
  bodyScrollable?: boolean;
@@ -80,7 +79,6 @@ interface ITableContext {
80
79
  handleTableRowClick?: (e: MouseEvent, dataId?: number | string) => void;
81
80
  handlerSetColumnsWidth?: (width: (string | number | undefined)[]) => void;
82
81
  handlerSetColumnsCount?: (count: number) => void;
83
- tableContainer?: HTMLTableElement | null;
84
82
  }
85
83
  interface ITableRowContext {
86
84
  skeletonize?: boolean;
@@ -62,7 +62,7 @@ const DropdownTabs = _ref2 => {
62
62
  transparent: true,
63
63
  boxShadow: false,
64
64
  size: "large",
65
- customClass: "dropdownbutton ".concat(hasTabs ? 'show' : '')
65
+ customClass: `dropdownbutton ${hasTabs ? 'show' : ''}`
66
66
  }, /*#__PURE__*/_react.default.createElement(_list.default, {
67
67
  customClass: "dropdown-hide-tabs"
68
68
  }, uniqueTabs.map(tab => /*#__PURE__*/_react.default.createElement(DropdownTab, _extends({
package/lib/tabs/Menu.js CHANGED
@@ -40,7 +40,7 @@ const Menu = _ref => {
40
40
  tabMenuAlign: props.tabMenuAlign,
41
41
  firstTabIdent: props.firstTabIdent
42
42
  }), toolbar && /*#__PURE__*/_react.default.cloneElement(toolbar, {
43
- customClass: "menubar ".concat(customClassForToolBar)
43
+ customClass: `menubar ${customClassForToolBar}`
44
44
  }));
45
45
  };
46
46
  var _default = exports.default = Menu;
@@ -42,7 +42,7 @@ const MenuTab = _ref => {
42
42
  style: {
43
43
  width: tabWidth
44
44
  },
45
- className: "menuitem ".concat(selectedTabId === id && 'selected')
45
+ className: `menuitem ${selectedTabId === id && 'selected'}`
46
46
  }, /*#__PURE__*/_react.default.createElement(_buttons.default, {
47
47
  className: "btn menubutton",
48
48
  boxShadow: false,
@@ -71,7 +71,7 @@ const MenuTabs = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
71
71
  } = _ref2;
72
72
  const uniqueTabs = _lodash.default.uniqBy(tabs, 'id');
73
73
  return /*#__PURE__*/_react.default.createElement("ul", {
74
- className: "menu ".concat(firstTabIdent && '-firsttabident'),
74
+ className: `menu ${firstTabIdent && '-firsttabident'}`,
75
75
  style: helpers.menuStyles(tabMenuAlign),
76
76
  ref: ref
77
77
  }, uniqueTabs.map(tab => /*#__PURE__*/_react.default.createElement(MenuTab, _extends({
package/lib/tabs/Panel.js CHANGED
@@ -60,9 +60,8 @@ const Panel = props => {
60
60
  scrollHeight
61
61
  } = rootElementRef.current;
62
62
  if (scrollHeight !== lastScrollHeight.current) {
63
- var _observer;
64
63
  enableOnEndReached.current = true;
65
- (_observer = observer) === null || _observer === void 0 ? void 0 : _observer.disconnect();
64
+ observer?.disconnect();
66
65
  }
67
66
  });
68
67
  observer.observe(rootElementRef.current);
@@ -70,16 +69,15 @@ const Panel = props => {
70
69
  rootElementRef.current.addEventListener('resize', onScrollEndReached);
71
70
  }
72
71
  return () => {
73
- var _rootElementRef$curre, _rootElementRef$curre2, _observer2;
74
- (_rootElementRef$curre = rootElementRef.current) === null || _rootElementRef$curre === void 0 ? void 0 : _rootElementRef$curre.removeEventListener('scroll', onScrollEndReached);
75
- (_rootElementRef$curre2 = rootElementRef.current) === null || _rootElementRef$curre2 === void 0 ? void 0 : _rootElementRef$curre2.removeEventListener('resize', onScrollEndReached);
76
- (_observer2 = observer) === null || _observer2 === void 0 ? void 0 : _observer2.disconnect();
72
+ rootElementRef.current?.removeEventListener('scroll', onScrollEndReached);
73
+ rootElementRef.current?.removeEventListener('resize', onScrollEndReached);
74
+ observer?.disconnect();
77
75
  };
78
76
  }, [onScrollEndReached]);
79
77
  return /*#__PURE__*/_react.default.createElement("div", {
80
78
  ref: rootElementRef,
81
79
  id: id,
82
- className: "".concat(customClass, " panel ").concat(hidePanel),
80
+ className: `${customClass} panel ${hidePanel}`,
83
81
  style: style
84
82
  }, hideContent ? /*#__PURE__*/_react.default.createElement(_noPermission.default, null) : children);
85
83
  };
@@ -13,7 +13,6 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  const TabsContext = exports.TabsContext = /*#__PURE__*/(0, _react.createContext)({});
15
15
  function TabsProvider(_ref) {
16
- var _menuRef$current$clie, _menuRef$current;
17
16
  let {
18
17
  children,
19
18
  tabs: tabsProp,
@@ -26,12 +25,11 @@ function TabsProvider(_ref) {
26
25
  } = _ref;
27
26
  const [selectedTabId, setSelectedTabId] = _react.default.useState(selectedTab);
28
27
  const [containerWidth, setContainerWidth] = (0, _react.useState)(() => {
29
- var _container$current$cl, _container$current;
30
- return (_container$current$cl = (_container$current = container.current) === null || _container$current === void 0 ? void 0 : _container$current.clientWidth) !== null && _container$current$cl !== void 0 ? _container$current$cl : 0;
28
+ return container.current?.clientWidth ?? 0;
31
29
  });
32
30
  const [tabs, setTabs] = (0, _react.useState)((0, _tabHelpers.getTabs)(tabsProp));
33
31
  const menuRef = (0, _react.useRef)(null);
34
- const menuSize = ((_menuRef$current$clie = (_menuRef$current = menuRef.current) === null || _menuRef$current === void 0 ? void 0 : _menuRef$current.clientWidth) !== null && _menuRef$current$clie !== void 0 ? _menuRef$current$clie : 0) - 38 - (firstTabIdent ? 15 : 0);
32
+ const menuSize = (menuRef.current?.clientWidth ?? 0) - 38 - (firstTabIdent ? 15 : 0);
35
33
  const tabsWidth = (0, _react.useMemo)(() => {
36
34
  if (typeof tabsWidthProp === 'string') return tabsWidthProp === 'auto' ? 100 : parseInt(tabsWidthProp) || 100;
37
35
  return tabsWidthProp;
@@ -41,8 +39,7 @@ function TabsProvider(_ref) {
41
39
  setSelectedTabId(selectedTab);
42
40
  }
43
41
  if (tabs.length > 0 && selectedTabId === null) {
44
- var _tabs$;
45
- setSelectedTabId((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.id);
42
+ setSelectedTabId(tabs[0]?.id);
46
43
  }
47
44
  const dropdownTabs = (0, _react.useMemo)(() => {
48
45
  if (menuSize === 0) return [];
@@ -22,7 +22,7 @@ const TextContent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
22
22
  const typedRef = ref;
23
23
  return /*#__PURE__*/_react.default.createElement(Comp, _extends({
24
24
  ref: typedRef,
25
- className: "text-content-component ".concat(className),
25
+ className: `text-content-component ${className}`,
26
26
  "data-textcontent": Comp
27
27
  }, props), children);
28
28
  });
@@ -44,7 +44,7 @@ const ButtonBar = _ref => {
44
44
  transparent,
45
45
  skeletonize,
46
46
  boxShadow: false,
47
- customClass: "buttonbar ".concat(customClass)
47
+ customClass: `buttonbar ${customClass}`
48
48
  });
49
49
  return {
50
50
  default: /*#__PURE__*/_react.default.createElement(_buttons.default, getProps()),
@@ -58,7 +58,7 @@ const ToolBar = _ref => {
58
58
  value: contextValues
59
59
  }, /*#__PURE__*/_react.default.createElement("div", {
60
60
  ref: innerRef,
61
- className: "toolbar-component ".concat(size ? "".concat(size, "-bar") : '', " ").concat(customClass),
61
+ className: `toolbar-component ${size ? `${size}-bar` : ''} ${customClass}`,
62
62
  style: style
63
63
  }, children));
64
64
  };
@@ -23,14 +23,14 @@ const Tooltip = _ref => {
23
23
  } = _ref;
24
24
  const tooltipComponent = (0, _react.useRef)(document.createElement('div'));
25
25
  (0, _react.useEffect)(() => {
26
- tooltipComponent.current.id = "tooltip-".concat(uuid.v1());
27
- tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
26
+ tooltipComponent.current.id = `tooltip-${uuid.v1()}`;
27
+ tooltipComponent.current.className = `tooltip-component ${className} `;
28
28
  tooltipComponent.current.dataset.testid = 'tooltip-component';
29
29
  tooltipComponent.current.style.cssText = style;
30
30
  document.body.appendChild(tooltipComponent.current);
31
- const tooltipEl = document.querySelector("div#".concat(tooltipComponent.current.id));
32
- let widthDimension = tooltipEl === null || tooltipEl === void 0 ? void 0 : tooltipEl.offsetWidth;
33
- const heightDimension = tooltipEl === null || tooltipEl === void 0 ? void 0 : tooltipEl.offsetHeight;
31
+ const tooltipEl = document.querySelector(`div#${tooltipComponent.current.id}`);
32
+ let widthDimension = tooltipEl?.offsetWidth;
33
+ const heightDimension = tooltipEl?.offsetHeight;
34
34
  if (tooltipDimensions && tooltipDimensions.width) {
35
35
  widthDimension = tooltipDimensions.width;
36
36
  }
@@ -47,13 +47,13 @@ const Tooltip = _ref => {
47
47
  };
48
48
  }, []);
49
49
  (0, _react.useEffect)(() => {
50
- tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
50
+ tooltipComponent.current.className = `tooltip-component ${className} `;
51
51
  }, [className]);
52
52
  (0, _react.useEffect)(() => {
53
53
  tooltipComponent.current.style.cssText = style;
54
54
  }, [style]);
55
55
  (0, _react.useEffect)(() => {
56
- tooltipComponent.current.className = textError ? "tooltip-error tooltip-component ".concat(className) : "tooltip-component ".concat(className);
56
+ tooltipComponent.current.className = textError ? `tooltip-error tooltip-component ${className}` : `tooltip-component ${className}`;
57
57
  }, [textError]);
58
58
  const getTooltipContent = () => /*#__PURE__*/_react.default.createElement("div", {
59
59
  className: "tooltipcontent"
@@ -27,7 +27,7 @@ const TreeTableBody = () => {
27
27
  dataRow: element,
28
28
  rowLevel: element.rowLevel ? element.rowLevel + 1 : 0,
29
29
  key: element[rootPropName],
30
- rowId: "".concat(element[rootPropName]),
30
+ rowId: `${element[rootPropName]}`,
31
31
  style: stylesForRow
32
32
  })));
33
33
  };
@@ -15,9 +15,9 @@ const TreeTableHeader = () => {
15
15
  dataColumns
16
16
  } = (0, _react.useContext)(_helpers.TreeTableContext);
17
17
  return /*#__PURE__*/_react.default.createElement(_table.THeader, null, /*#__PURE__*/_react.default.createElement(_table.TRow, {
18
- key: "tr-header-".concat((0, _uuid.v1)())
18
+ key: `tr-header-${(0, _uuid.v1)()}`
19
19
  }, dataColumns.map(column => /*#__PURE__*/_react.default.createElement(_table.Th, {
20
- key: "th-".concat(column.name, "-").concat((0, _uuid.v1)()),
20
+ key: `th-${column.name}-${(0, _uuid.v1)()}`,
21
21
  style: column.style
22
22
  }, column.title))));
23
23
  };
@@ -94,7 +94,7 @@ const TreeRow = props => {
94
94
  let newElementsWithNewProps = [];
95
95
  if (elements) {
96
96
  newElementsWithNewProps = _react.default.Children.map(elements, element => {
97
- if ( /*#__PURE__*/_react.default.isValidElement(element) && element.props) {
97
+ if (/*#__PURE__*/_react.default.isValidElement(element) && element.props) {
98
98
  const _element$props = element.props,
99
99
  {
100
100
  validationKey,
@@ -134,14 +134,14 @@ const TreeRow = props => {
134
134
  onMouseLeave: () => setShowToolbarElements(false)
135
135
  }), /*#__PURE__*/_react.default.createElement(_table.Td, {
136
136
  ignoreTableColClick: true,
137
- key: "td-".concat(dataColumns[0].name, "-").concat((0, _uuid.v1)()),
137
+ key: `td-${dataColumns[0].name}-${(0, _uuid.v1)()}`,
138
138
  style: dataColumns[0].style
139
139
  }, /*#__PURE__*/_react.default.createElement("div", {
140
140
  className: "column-container"
141
141
  }, /*#__PURE__*/_react.default.createElement("span", {
142
- className: "column-more-childrens ".concat(rowLevel && 'line-path-decoration'),
142
+ className: `column-more-childrens ${rowLevel && 'line-path-decoration'}`,
143
143
  style: {
144
- marginLeft: "".concat(rowLevel, "rem")
144
+ marginLeft: `${rowLevel}rem`
145
145
  }
146
146
  }, /*#__PURE__*/_react.default.createElement("button", {
147
147
  tabIndex: -1,
@@ -165,20 +165,20 @@ const TreeRow = props => {
165
165
  size: "small",
166
166
  customClass: "row-toolbar"
167
167
  }, /*#__PURE__*/_react.default.createElement(_toolbar.ToolBarGroup, {
168
- key: "left-toolbar-".concat((0, _uuid.v1)()),
168
+ key: `left-toolbar-${(0, _uuid.v1)()}`,
169
169
  style: _objectSpread({
170
170
  float: 'left',
171
171
  height: 'fit-content'
172
172
  }, styleForLeftToolbar)
173
173
  }, showToolbarElements && leftToolbarElements && buildToolbarElements(leftToolbarElements)), /*#__PURE__*/_react.default.createElement(_toolbar.ToolBarGroup, {
174
- key: "right-toolbar-".concat((0, _uuid.v1)()),
174
+ key: `right-toolbar-${(0, _uuid.v1)()}`,
175
175
  style: _objectSpread({
176
176
  float: 'right',
177
177
  height: 'fit-content',
178
178
  gap: '4px'
179
179
  }, styleForRightToolbar)
180
180
  }, rightToolbarElements && buildToolbarElements(rightToolbarElements)))))), dataColumns.slice(1).map(column => /*#__PURE__*/_react.default.createElement(_table.Td, {
181
- key: "key-".concat(column.name, "-").concat((0, _uuid.v1)()),
181
+ key: `key-${column.name}-${(0, _uuid.v1)()}`,
182
182
  style: _objectSpread({}, column.style),
183
183
  ignoreTableColClick: true
184
184
  }, dataRow[column.name]))), open && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, childrens && childrens.length === 0 && isLoadingChildrens ? /*#__PURE__*/_react.default.createElement(_table.TRow, {
@@ -195,7 +195,7 @@ const TreeRow = props => {
195
195
  dataRow: item,
196
196
  rowLevel: item.rowLevel ? item.rowLevel + 1 : 1,
197
197
  key: item[rootPropName],
198
- rowId: "".concat(item[rootPropName]),
198
+ rowId: `${item[rootPropName]}`,
199
199
  style: stylesForRow
200
200
  })), childrens && childrens.length !== 0 && isLoadingChildrens && /*#__PURE__*/_react.default.createElement(_table.TRow, {
201
201
  key: "tr-loading-childrens"
@@ -13,7 +13,7 @@ const Header = props => {
13
13
  children
14
14
  } = props;
15
15
  return /*#__PURE__*/_react.default.createElement("div", {
16
- className: "treeviewheader ".concat(customClass)
16
+ className: `treeviewheader ${customClass}`
17
17
  }, title ? /*#__PURE__*/_react.default.createElement("div", {
18
18
  className: "title"
19
19
  }, title) : children);