labsense-ui-kit 1.1.62 → 1.1.64

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.
package/dist/index.js CHANGED
@@ -6787,7 +6787,7 @@ var TableRow = function TableRow(_ref) {
6787
6787
  }));
6788
6788
  };
6789
6789
 
6790
- var _templateObject$p, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$9;
6790
+ var _templateObject$p, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$9, _templateObject6$7;
6791
6791
  var TableContainer = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n background: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n border-radius: 8px;\n"])), colorVariables.brand.light);
6792
6792
  var TableHeader = styled__default.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n display: flex;\n background: ", ";\n color: ", ";\n min-height: 36px;\n align-items: center;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n padding: 9px 12px;\n"])), function (props) {
6793
6793
  return props.$hbcolor || 'transparent';
@@ -6795,15 +6795,19 @@ var TableHeader = styled__default.div(_templateObject2$k || (_templateObject2$k
6795
6795
  return props.$tcolor || 'white';
6796
6796
  });
6797
6797
  var TableContent = styled__default.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n svg {\n cursor: pointer;\n }\n"])));
6798
- var TableData = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n overflow: auto;\n scrollbar-width: thin;\n height: 100%;\n max-height: calc(100% - 36px);\n"])));
6799
- var Divider = styled__default.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
6800
- var Table = function Table(_ref) {
6801
- var tableObject = _ref.tableObject,
6802
- _ref$filter = _ref.filter,
6803
- filter = _ref$filter === void 0 ? false : _ref$filter,
6804
- loading = _ref.loading,
6805
- _ref$noDataText = _ref.noDataText,
6806
- noDataText = _ref$noDataText === void 0 ? 'No Data Found!' : _ref$noDataText;
6798
+ var TableData = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n overflow: auto;\n scrollbar-width: thin;\n height: 100%;\n : ;\n max-height: ", ";\n\n"])), function (_ref) {
6799
+ var $isLegends = _ref.$isLegends;
6800
+ return $isLegends ? 'calc(100% - 56px)' : 'calc(100% - 36px)';
6801
+ });
6802
+ var LegendDivider = styled__default.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n height: 1px;\n background: ", ";\n"])), colorVariables.border.extraLight);
6803
+ var Divider = styled__default.div(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
6804
+ var Table = function Table(_ref2) {
6805
+ var tableObject = _ref2.tableObject,
6806
+ _ref2$filter = _ref2.filter,
6807
+ filter = _ref2$filter === void 0 ? false : _ref2$filter,
6808
+ loading = _ref2.loading,
6809
+ _ref2$noDataText = _ref2.noDataText,
6810
+ noDataText = _ref2$noDataText === void 0 ? 'No Data Found!' : _ref2$noDataText;
6807
6811
  var rowconfig = tableObject.rowconfig,
6808
6812
  tableheaderconfig = tableObject.tableheaderconfig;
6809
6813
  var _useState = React.useState(new Set()),
@@ -6880,15 +6884,7 @@ var Table = function Table(_ref) {
6880
6884
  "$fontWeight": '400',
6881
6885
  "$width": 'max-content',
6882
6886
  "$lineHeight": 'normal'
6883
- }, currentLegend), React__default.createElement(Container, {
6884
- "$flex": '1',
6885
- "$height": '1px',
6886
- "$background": colorVariables.border.extraLight
6887
- })) : React__default.createElement(Container, {
6888
- "$flex": '1',
6889
- "$height": '1px',
6890
- "$background": colorVariables.border.extraLight
6891
- })) : null), React__default.createElement(TableCell, {
6887
+ }, currentLegend), React__default.createElement(LegendDivider, null)) : React__default.createElement(LegendDivider, null)) : null), React__default.createElement(TableCell, {
6892
6888
  maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
6893
6889
  width: columndata.width,
6894
6890
  alignment: columndata.alignment
@@ -6905,9 +6901,13 @@ var Table = function Table(_ref) {
6905
6901
  "$alignItems": 'center',
6906
6902
  "$padding": '24px 24px',
6907
6903
  "$justifyContent": 'center'
6908
- }, React__default.createElement(Span, null, noDataText)) : filter ? React__default.createElement(TableData, null, Object.entries(roleGroups).map(function (_ref2) {
6909
- var role = _ref2[0],
6910
- rows = _ref2[1];
6904
+ }, React__default.createElement(Span, null, noDataText)) : filter ? React__default.createElement(TableData, {
6905
+ "$isLegends": tableheaderconfig.headerdata.some(function (col) {
6906
+ return !!col.legend;
6907
+ })
6908
+ }, Object.entries(roleGroups).map(function (_ref3) {
6909
+ var role = _ref3[0],
6910
+ rows = _ref3[1];
6911
6911
  return React__default.createElement(React__default.Fragment, {
6912
6912
  key: role
6913
6913
  }, React__default.createElement(Container, {
@@ -6937,7 +6937,11 @@ var Table = function Table(_ref) {
6937
6937
  tableheaderconfig: tableheaderconfig
6938
6938
  }), rows.length > 1 && index < rows.length - 1 && React__default.createElement(Divider, null));
6939
6939
  }));
6940
- })) : React__default.createElement(TableData, null, filteredRows.map(function (row, index) {
6940
+ })) : React__default.createElement(TableData, {
6941
+ "$isLegends": tableheaderconfig.headerdata.some(function (col) {
6942
+ return !!col.legend;
6943
+ })
6944
+ }, filteredRows.map(function (row, index) {
6941
6945
  return React__default.createElement(React__default.Fragment, {
6942
6946
  key: index
6943
6947
  }, React__default.createElement(TableRow, {