labsense-ui-kit 1.1.67 → 1.1.69
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/Tabs/Tabs.d.ts +4 -0
- package/dist/index.js +33 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Tabs/Tabs.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6833,15 +6833,18 @@ var TableData = styled__default.div(_templateObject4$b || (_templateObject4$b =
|
|
|
6833
6833
|
var $isLegends = _ref.$isLegends;
|
|
6834
6834
|
return $isLegends ? 'calc(100% - 56px)' : 'calc(100% - 36px)';
|
|
6835
6835
|
});
|
|
6836
|
-
var LegendDivider = styled__default.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight)
|
|
6836
|
+
var LegendDivider = styled__default.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background: ", ";\n margin-right: ", ";\n"])), colorVariables.border.extraLight, function (_ref2) {
|
|
6837
|
+
var $marginRight = _ref2.$marginRight;
|
|
6838
|
+
return $marginRight != null ? $marginRight : '0px';
|
|
6839
|
+
});
|
|
6837
6840
|
var Divider = styled__default.div(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n height: 2px;\n background: ", ";\n"])), colorVariables.border.extraLight);
|
|
6838
|
-
var Table = function Table(
|
|
6839
|
-
var tableObject =
|
|
6840
|
-
|
|
6841
|
-
filter =
|
|
6842
|
-
loading =
|
|
6843
|
-
|
|
6844
|
-
noDataText =
|
|
6841
|
+
var Table = function Table(_ref3) {
|
|
6842
|
+
var tableObject = _ref3.tableObject,
|
|
6843
|
+
_ref3$filter = _ref3.filter,
|
|
6844
|
+
filter = _ref3$filter === void 0 ? false : _ref3$filter,
|
|
6845
|
+
loading = _ref3.loading,
|
|
6846
|
+
_ref3$noDataText = _ref3.noDataText,
|
|
6847
|
+
noDataText = _ref3$noDataText === void 0 ? 'No Data Found!' : _ref3$noDataText;
|
|
6845
6848
|
var rowconfig = tableObject.rowconfig,
|
|
6846
6849
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
6847
6850
|
var _useState = React.useState(new Set()),
|
|
@@ -6903,7 +6906,7 @@ var Table = function Table(_ref2) {
|
|
|
6903
6906
|
onChange: toggleSelectAll,
|
|
6904
6907
|
"$borderSize": 2
|
|
6905
6908
|
})), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
|
|
6906
|
-
var _columndata$maintext;
|
|
6909
|
+
var _allCols, _columndata$maintext;
|
|
6907
6910
|
var currentGroupTitle = columndata.groupTitle || '';
|
|
6908
6911
|
var prevGroupTitle = index > 0 ? allCols[index - 1].groupTitle || '' : '';
|
|
6909
6912
|
var isFirstOfGroup = currentGroupTitle && currentGroupTitle !== prevGroupTitle;
|
|
@@ -6918,12 +6921,20 @@ var Table = function Table(_ref2) {
|
|
|
6918
6921
|
}) && React__default.createElement(Container, {
|
|
6919
6922
|
"$alignItems": 'center',
|
|
6920
6923
|
"$height": '16px'
|
|
6921
|
-
}, isInLegendGroup ? React__default.createElement(Container,
|
|
6924
|
+
}, isInLegendGroup ? React__default.createElement(Container, {
|
|
6925
|
+
"$width": '100%'
|
|
6926
|
+
}, isFirstOfGroup ? React__default.createElement(Container, {
|
|
6927
|
+
"$width": '100%',
|
|
6928
|
+
"$alignItems": 'center',
|
|
6929
|
+
"$gap": '4px'
|
|
6930
|
+
}, React__default.createElement(Span, {
|
|
6922
6931
|
"$fontSize": '12px',
|
|
6923
6932
|
"$fontWeight": '400',
|
|
6924
6933
|
"$width": 'max-content',
|
|
6925
6934
|
"$lineHeight": 'normal'
|
|
6926
|
-
}, currentGroupTitle), React__default.createElement(LegendDivider, null)) : React__default.createElement(LegendDivider,
|
|
6935
|
+
}, currentGroupTitle), React__default.createElement(LegendDivider, null)) : React__default.createElement(LegendDivider, {
|
|
6936
|
+
"$marginRight": currentGroupTitle !== (((_allCols = allCols[index + 1]) === null || _allCols === void 0 ? void 0 : _allCols.groupTitle) || '') ? '8px' : '0px'
|
|
6937
|
+
})) : null), React__default.createElement(TableCell, {
|
|
6927
6938
|
maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
|
|
6928
6939
|
width: columndata.width,
|
|
6929
6940
|
alignment: columndata.alignment
|
|
@@ -6944,9 +6955,9 @@ var Table = function Table(_ref2) {
|
|
|
6944
6955
|
"$isLegends": tableheaderconfig.headerdata.some(function (col) {
|
|
6945
6956
|
return !!col.groupTitle;
|
|
6946
6957
|
})
|
|
6947
|
-
}, Object.entries(roleGroups).map(function (
|
|
6948
|
-
var role =
|
|
6949
|
-
rows =
|
|
6958
|
+
}, Object.entries(roleGroups).map(function (_ref4) {
|
|
6959
|
+
var role = _ref4[0],
|
|
6960
|
+
rows = _ref4[1];
|
|
6950
6961
|
return React__default.createElement(React__default.Fragment, {
|
|
6951
6962
|
key: role
|
|
6952
6963
|
}, React__default.createElement(Container, {
|
|
@@ -6992,7 +7003,7 @@ var Table = function Table(_ref2) {
|
|
|
6992
7003
|
}))));
|
|
6993
7004
|
};
|
|
6994
7005
|
|
|
6995
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$a;
|
|
7006
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$a, _templateObject6$8;
|
|
6996
7007
|
var Container$4 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%; \n display: flex;\n flex-direction: column;\n overflow: ", ";\n gap: ", ";\n border: ", ";\n border-radius: 8px;\n"])), function (_ref) {
|
|
6997
7008
|
var $overflow = _ref.$overflow;
|
|
6998
7009
|
return $overflow || 'visible';
|
|
@@ -7003,7 +7014,7 @@ var Container$4 = styled__default.div(_templateObject$q || (_templateObject$q =
|
|
|
7003
7014
|
var $border = _ref3.$border;
|
|
7004
7015
|
return $border;
|
|
7005
7016
|
});
|
|
7006
|
-
var FirstContainer = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n font-family: NotoSans, sans-serif;\n font-size: 16px;\n gap: 24px;\n border-bottom: ", ";\n padding: ", ";\n"])), function (_ref4) {
|
|
7017
|
+
var FirstContainer = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n font-family: NotoSans, sans-serif;\n font-size: 16px;\n gap: 24px;\n border-bottom: ", ";\n padding: ", ";\n justify-content: space-between;\n align-items: center;\n height: max-content;\n"])), function (_ref4) {
|
|
7007
7018
|
var $bordeBottom = _ref4.$bordeBottom;
|
|
7008
7019
|
return $bordeBottom != null ? $bordeBottom : "1px solid " + colorVariables.border.light;
|
|
7009
7020
|
}, function (_ref5) {
|
|
@@ -7029,9 +7040,10 @@ var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObjec
|
|
|
7029
7040
|
}, function (props) {
|
|
7030
7041
|
return props.$active ? 'block' : 'none';
|
|
7031
7042
|
}, colorVariables["default"].primary);
|
|
7032
|
-
var DetailsFirstContainer = styled__default.div(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 14px;\n line-height: 18px;\n font-weight: 500;\n font-family: NotoSans, sans-serif;\n height: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n"])), function (props) {
|
|
7043
|
+
var DetailsFirstContainer = styled__default.div(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 14px;\n line-height: 18px;\n font-weight: 500;\n font-family: NotoSans, sans-serif;\n height: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n white-space: nowrap;\n"])), function (props) {
|
|
7033
7044
|
return props.$active ? colorVariables["default"].primary : colorVariables.text.medium;
|
|
7034
7045
|
});
|
|
7046
|
+
var TabItemsWrapper = styled__default.div(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 24px;\n // overflow-x: auto;\n scrollbar-width: thin;\n"])));
|
|
7035
7047
|
var Tabs = function Tabs(_ref11) {
|
|
7036
7048
|
var tabItems = _ref11.tabItems,
|
|
7037
7049
|
_ref11$disabled = _ref11.disabled,
|
|
@@ -7043,7 +7055,8 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7043
7055
|
_ref11$gap = _ref11.gap,
|
|
7044
7056
|
gap = _ref11$gap === void 0 ? '24px' : _ref11$gap,
|
|
7045
7057
|
overflow = _ref11.overflow,
|
|
7046
|
-
bordeBottom = _ref11.bordeBottom
|
|
7058
|
+
bordeBottom = _ref11.bordeBottom,
|
|
7059
|
+
tabRightNode = _ref11.tabRightNode;
|
|
7047
7060
|
return React__default.createElement(Container$4, {
|
|
7048
7061
|
"$gap": gap,
|
|
7049
7062
|
"$border": border,
|
|
@@ -7051,7 +7064,7 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7051
7064
|
}, React__default.createElement(FirstContainer, {
|
|
7052
7065
|
"$headerPadding": headerPadding,
|
|
7053
7066
|
"$bordeBottom": bordeBottom
|
|
7054
|
-
}, tabItems.map(function (tab, index) {
|
|
7067
|
+
}, React__default.createElement(TabItemsWrapper, null, tabItems.map(function (tab, index) {
|
|
7055
7068
|
return React__default.createElement(TabContainer, {
|
|
7056
7069
|
key: index,
|
|
7057
7070
|
onClick: function onClick() {
|
|
@@ -7070,7 +7083,7 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7070
7083
|
}), React__default.createElement(DetailsFirstContainer, {
|
|
7071
7084
|
"$active": activeTab === tab.title
|
|
7072
7085
|
}, tab.title)));
|
|
7073
|
-
})), tabItems.map(function (tab, index) {
|
|
7086
|
+
})), tabRightNode === null || tabRightNode === void 0 ? void 0 : tabRightNode.node), tabItems.map(function (tab, index) {
|
|
7074
7087
|
return activeTab === tab.title && React__default.createElement(Container$4, {
|
|
7075
7088
|
key: index,
|
|
7076
7089
|
"$overflow": overflow
|