labsense-ui-kit 1.1.54 → 1.1.56

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.
@@ -7,6 +7,7 @@ interface HeaderCellConfig {
7
7
  maintext?: string;
8
8
  alignment?: string;
9
9
  CustomFunction?: React.ReactElement;
10
+ legend?: string;
10
11
  }
11
12
  interface HeaderConfig {
12
13
  headercolor?: string;
@@ -50,6 +50,7 @@ export interface ThemeColorsInterface {
50
50
  light_2: string;
51
51
  light_3: string;
52
52
  light_4: string;
53
+ light_5: string;
53
54
  softBlue: string;
54
55
  extraSoftBlue: string;
55
56
  boldTransparent: string;
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ var light = {
32
32
  light_2: '#F5F8FA',
33
33
  light_3: '#F0F3F5',
34
34
  light_4: '#ECF0F4',
35
+ light_5: '#F0F0F3',
35
36
  softBlue: '#D4EEFF',
36
37
  extraSoftBlue: '#E4F4FF',
37
38
  boldTransparent: '#5E5E5E80',
@@ -101,6 +102,7 @@ var dark = {
101
102
  light_2: '#1F2327',
102
103
  light_3: '#F0F3F5',
103
104
  light_4: '#ECF0F4',
105
+ light_5: '#F0F0F3',
104
106
  softBlue: '#2C3E50',
105
107
  extraSoftBlue: '#34495E',
106
108
  boldTransparent: '#D3D3D380',
@@ -6848,15 +6850,41 @@ var Table = function Table(_ref) {
6848
6850
  type: 'checkbox',
6849
6851
  checked: isAllSelected,
6850
6852
  onChange: toggleSelectAll
6851
- })), tableheaderconfig.headerdata.map(function (columndata, key) {
6853
+ })), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
6852
6854
  var _columndata$maintext;
6853
- return React__default.createElement(TableCell, {
6854
- key: key,
6855
+ var currentLegend = columndata.legend || '';
6856
+ var prevLegend = index > 0 ? allCols[index - 1].legend || '' : '';
6857
+ var isFirstOfGroup = currentLegend && currentLegend !== prevLegend;
6858
+ var isInLegendGroup = !!currentLegend;
6859
+ return React__default.createElement(Container, {
6860
+ key: index,
6861
+ "$flexDirection": 'column',
6862
+ "$width": columndata.width || '100px',
6863
+ "$gap": '8px'
6864
+ }, tableheaderconfig.headerdata.some(function (col) {
6865
+ return !!col.legend;
6866
+ }) && React__default.createElement(Container, {
6867
+ "$alignItems": 'center',
6868
+ "$height": '16px'
6869
+ }, isInLegendGroup ? React__default.createElement(Container, null, isFirstOfGroup ? React__default.createElement(Container, null, React__default.createElement(Span, {
6870
+ "$fontSize": '12px',
6871
+ "$fontWeight": '400',
6872
+ "$width": 'max-content',
6873
+ "$lineHeight": 'normal'
6874
+ }, currentLegend), React__default.createElement(Container, {
6875
+ "$flex": '1',
6876
+ "$height": '1px',
6877
+ "$background": colorVariables.border.extraLight
6878
+ })) : React__default.createElement(Container, {
6879
+ "$flex": '1',
6880
+ "$height": '1px',
6881
+ "$background": colorVariables.border.extraLight
6882
+ })) : null), React__default.createElement(TableCell, {
6855
6883
  maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
6856
6884
  width: columndata.width,
6857
6885
  alignment: columndata.alignment
6858
- });
6859
- })), loading ? React__default.createElement(Container, {
6886
+ }));
6887
+ })), React__default.createElement(Divider, null), loading ? React__default.createElement(Container, {
6860
6888
  "$flexDirection": 'column',
6861
6889
  "$alignItems": 'center',
6862
6890
  "$justifyContent": 'center',