labsense-ui-kit 1.1.52 → 1.1.53
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 +1 -0
- package/dist/index.js +29 -24
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -24
- 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
|
@@ -6919,25 +6919,28 @@ var Container$4 = styled__default.div(_templateObject$q || (_templateObject$q =
|
|
|
6919
6919
|
var $border = _ref3.$border;
|
|
6920
6920
|
return $border;
|
|
6921
6921
|
});
|
|
6922
|
-
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:
|
|
6923
|
-
var $
|
|
6922
|
+
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) {
|
|
6923
|
+
var $bordeBottom = _ref4.$bordeBottom;
|
|
6924
|
+
return $bordeBottom != null ? $bordeBottom : "1px solid " + colorVariables.border.light;
|
|
6925
|
+
}, function (_ref5) {
|
|
6926
|
+
var $headerPadding = _ref5.$headerPadding;
|
|
6924
6927
|
return $headerPadding ? $headerPadding : '0px';
|
|
6925
6928
|
});
|
|
6926
|
-
var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (
|
|
6927
|
-
var $disabled = _ref5.$disabled;
|
|
6928
|
-
return $disabled ? 'not-allowed' : 'pointer';
|
|
6929
|
-
}, function (_ref6) {
|
|
6929
|
+
var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (_ref6) {
|
|
6930
6930
|
var $disabled = _ref6.$disabled;
|
|
6931
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
6932
|
+
}, function (_ref7) {
|
|
6933
|
+
var $disabled = _ref7.$disabled;
|
|
6931
6934
|
return $disabled ? '0.6' : '1';
|
|
6932
|
-
}, colorVariables.text.medium, function (
|
|
6933
|
-
var $headerHeight =
|
|
6935
|
+
}, colorVariables.text.medium, function (_ref8) {
|
|
6936
|
+
var $headerHeight = _ref8.$headerHeight;
|
|
6934
6937
|
return $headerHeight ? $headerHeight : '34px';
|
|
6935
|
-
}, function (
|
|
6936
|
-
var $disabled =
|
|
6938
|
+
}, function (_ref9) {
|
|
6939
|
+
var $disabled = _ref9.$disabled;
|
|
6937
6940
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
6938
6941
|
});
|
|
6939
|
-
var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (
|
|
6940
|
-
var $headerHeight =
|
|
6942
|
+
var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (_ref10) {
|
|
6943
|
+
var $headerHeight = _ref10.$headerHeight;
|
|
6941
6944
|
return $headerHeight ? $headerHeight : '34px';
|
|
6942
6945
|
}, function (props) {
|
|
6943
6946
|
return props.$active ? 'block' : 'none';
|
|
@@ -6945,23 +6948,25 @@ var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObjec
|
|
|
6945
6948
|
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) {
|
|
6946
6949
|
return props.$active ? colorVariables["default"].primary : colorVariables.text.medium;
|
|
6947
6950
|
});
|
|
6948
|
-
var Tabs = function Tabs(
|
|
6949
|
-
var tabItems =
|
|
6950
|
-
|
|
6951
|
-
disabled =
|
|
6952
|
-
headerHeight =
|
|
6953
|
-
headerPadding =
|
|
6954
|
-
activeTab =
|
|
6955
|
-
border =
|
|
6956
|
-
|
|
6957
|
-
gap =
|
|
6958
|
-
overflow =
|
|
6951
|
+
var Tabs = function Tabs(_ref11) {
|
|
6952
|
+
var tabItems = _ref11.tabItems,
|
|
6953
|
+
_ref11$disabled = _ref11.disabled,
|
|
6954
|
+
disabled = _ref11$disabled === void 0 ? false : _ref11$disabled,
|
|
6955
|
+
headerHeight = _ref11.headerHeight,
|
|
6956
|
+
headerPadding = _ref11.headerPadding,
|
|
6957
|
+
activeTab = _ref11.activeTab,
|
|
6958
|
+
border = _ref11.border,
|
|
6959
|
+
_ref11$gap = _ref11.gap,
|
|
6960
|
+
gap = _ref11$gap === void 0 ? '24px' : _ref11$gap,
|
|
6961
|
+
overflow = _ref11.overflow,
|
|
6962
|
+
bordeBottom = _ref11.bordeBottom;
|
|
6959
6963
|
return React__default.createElement(Container$4, {
|
|
6960
6964
|
"$gap": gap,
|
|
6961
6965
|
"$border": border,
|
|
6962
6966
|
"$overflow": overflow
|
|
6963
6967
|
}, React__default.createElement(FirstContainer, {
|
|
6964
|
-
"$headerPadding": headerPadding
|
|
6968
|
+
"$headerPadding": headerPadding,
|
|
6969
|
+
"$bordeBottom": bordeBottom
|
|
6965
6970
|
}, tabItems.map(function (tab, index) {
|
|
6966
6971
|
return React__default.createElement(TabContainer, {
|
|
6967
6972
|
key: index,
|