labsense-ui-kit 1.4.50 → 1.4.52

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.
@@ -8524,12 +8524,10 @@ var ButtonComponent = function ButtonComponent(_ref21) {
8524
8524
  icon: icon,
8525
8525
  weight: iconWeight,
8526
8526
  size: iconSize ? iconSize : size === 'small' ? 6 : size === 'medium' ? 8 : 10,
8527
- onClick: function onClick(e) {
8528
- if (iconClick) {
8529
- e.stopPropagation();
8530
- iconClick === null || iconClick === void 0 ? void 0 : iconClick();
8531
- }
8532
- },
8527
+ onClick: iconClick ? function (e) {
8528
+ e.stopPropagation();
8529
+ iconClick();
8530
+ } : undefined,
8533
8531
  cursor: disabled ? 'not-allowed' : iconClick ? 'pointer' : 'default',
8534
8532
  color: getIconColor()
8535
8533
  }), text && React.createElement(ButtonText, {
@@ -13256,7 +13254,7 @@ var Table = function Table(_ref9) {
13256
13254
  onChange: toggleSelectAll,
13257
13255
  "$borderSize": 2
13258
13256
  })), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
13259
- var _allCols, _columndata$maintext;
13257
+ var _allCols, _columndata$maintext, _columndata$maintext2;
13260
13258
  var currentGroupTitle = columndata.groupTitle || '';
13261
13259
  var prevGroupTitle = index > 0 ? allCols[index - 1].groupTitle || '' : '';
13262
13260
  var isFirstOfGroup = currentGroupTitle && currentGroupTitle !== prevGroupTitle;
@@ -13284,8 +13282,23 @@ var Table = function Table(_ref9) {
13284
13282
  "$lineHeight": 'normal'
13285
13283
  }, currentGroupTitle), React.createElement(LegendDivider, null)) : React.createElement(LegendDivider, {
13286
13284
  "$marginRight": currentGroupTitle !== (((_allCols = allCols[index + 1]) === null || _allCols === void 0 ? void 0 : _allCols.groupTitle) || '') ? '8px' : '0px'
13287
- })) : null), React.createElement(TableCell, {
13285
+ })) : null), columndata.sortable ? React.createElement(Container, {
13286
+ "$width": '100%',
13287
+ "$alignItems": 'center',
13288
+ "$gap": '6px',
13289
+ "$cursor": 'pointer',
13290
+ "$justifyContent": columndata.alignment === 'end' ? 'flex-end' : columndata.alignment === 'center' ? 'center' : 'flex-start',
13291
+ onClick: columndata.onSortClick
13292
+ }, React.createElement(TableCell, {
13288
13293
  maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
13294
+ alignment: columndata.alignment
13295
+ }), React.createElement(Icon, {
13296
+ icon: columndata.sortDirection === 'desc' ? 'ArrowDown' : 'ArrowUp',
13297
+ size: 10,
13298
+ color: 'currentColor',
13299
+ cursor: 'pointer'
13300
+ })) : React.createElement(TableCell, {
13301
+ maintext: (_columndata$maintext2 = columndata.maintext) != null ? _columndata$maintext2 : '',
13289
13302
  width: columndata.width,
13290
13303
  minWidth: columndata.minWidth,
13291
13304
  maxWidth: columndata.maxWidth,