labsense-ui-kit 1.1.68 → 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 +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -6
- 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
|
@@ -7003,7 +7003,7 @@ var Table = function Table(_ref3) {
|
|
|
7003
7003
|
}))));
|
|
7004
7004
|
};
|
|
7005
7005
|
|
|
7006
|
-
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;
|
|
7007
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) {
|
|
7008
7008
|
var $overflow = _ref.$overflow;
|
|
7009
7009
|
return $overflow || 'visible';
|
|
@@ -7014,7 +7014,7 @@ var Container$4 = styled__default.div(_templateObject$q || (_templateObject$q =
|
|
|
7014
7014
|
var $border = _ref3.$border;
|
|
7015
7015
|
return $border;
|
|
7016
7016
|
});
|
|
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"])), 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) {
|
|
7018
7018
|
var $bordeBottom = _ref4.$bordeBottom;
|
|
7019
7019
|
return $bordeBottom != null ? $bordeBottom : "1px solid " + colorVariables.border.light;
|
|
7020
7020
|
}, function (_ref5) {
|
|
@@ -7040,9 +7040,10 @@ var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObjec
|
|
|
7040
7040
|
}, function (props) {
|
|
7041
7041
|
return props.$active ? 'block' : 'none';
|
|
7042
7042
|
}, colorVariables["default"].primary);
|
|
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"])), 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) {
|
|
7044
7044
|
return props.$active ? colorVariables["default"].primary : colorVariables.text.medium;
|
|
7045
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"])));
|
|
7046
7047
|
var Tabs = function Tabs(_ref11) {
|
|
7047
7048
|
var tabItems = _ref11.tabItems,
|
|
7048
7049
|
_ref11$disabled = _ref11.disabled,
|
|
@@ -7054,7 +7055,8 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7054
7055
|
_ref11$gap = _ref11.gap,
|
|
7055
7056
|
gap = _ref11$gap === void 0 ? '24px' : _ref11$gap,
|
|
7056
7057
|
overflow = _ref11.overflow,
|
|
7057
|
-
bordeBottom = _ref11.bordeBottom
|
|
7058
|
+
bordeBottom = _ref11.bordeBottom,
|
|
7059
|
+
tabRightNode = _ref11.tabRightNode;
|
|
7058
7060
|
return React__default.createElement(Container$4, {
|
|
7059
7061
|
"$gap": gap,
|
|
7060
7062
|
"$border": border,
|
|
@@ -7062,7 +7064,7 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7062
7064
|
}, React__default.createElement(FirstContainer, {
|
|
7063
7065
|
"$headerPadding": headerPadding,
|
|
7064
7066
|
"$bordeBottom": bordeBottom
|
|
7065
|
-
}, tabItems.map(function (tab, index) {
|
|
7067
|
+
}, React__default.createElement(TabItemsWrapper, null, tabItems.map(function (tab, index) {
|
|
7066
7068
|
return React__default.createElement(TabContainer, {
|
|
7067
7069
|
key: index,
|
|
7068
7070
|
onClick: function onClick() {
|
|
@@ -7081,7 +7083,7 @@ var Tabs = function Tabs(_ref11) {
|
|
|
7081
7083
|
}), React__default.createElement(DetailsFirstContainer, {
|
|
7082
7084
|
"$active": activeTab === tab.title
|
|
7083
7085
|
}, tab.title)));
|
|
7084
|
-
})), tabItems.map(function (tab, index) {
|
|
7086
|
+
})), tabRightNode === null || tabRightNode === void 0 ? void 0 : tabRightNode.node), tabItems.map(function (tab, index) {
|
|
7085
7087
|
return activeTab === tab.title && React__default.createElement(Container$4, {
|
|
7086
7088
|
key: index,
|
|
7087
7089
|
"$overflow": overflow
|