labsense-ui-kit 1.2.79 → 1.2.81
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/Icons/SVGs/Drag_Indicator.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +1 -0
- package/dist/Icons/index.d.ts +1 -1
- package/dist/Table/index.d.ts +3 -0
- package/dist/index.js +29 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1444,6 +1444,23 @@ var Download = function Download(_ref) {
|
|
|
1444
1444
|
}));
|
|
1445
1445
|
};
|
|
1446
1446
|
|
|
1447
|
+
var Drag_Indicator = function Drag_Indicator(_ref) {
|
|
1448
|
+
var size = _ref.size,
|
|
1449
|
+
color = _ref.color,
|
|
1450
|
+
weight = _ref.weight;
|
|
1451
|
+
return React.createElement("svg", {
|
|
1452
|
+
width: size,
|
|
1453
|
+
height: size,
|
|
1454
|
+
strokeWidth: weight,
|
|
1455
|
+
viewBox: '0 0 24 24',
|
|
1456
|
+
fill: 'none',
|
|
1457
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
1458
|
+
}, React.createElement("path", {
|
|
1459
|
+
d: "M10,4A2,2,0,1,1,8,2,2,2,0,0,1,10,4ZM8,10a2,2,0,1,0,2,2A2,2,0,0,0,8,10Zm0,8a2,2,0,1,0,2,2A2,2,0,0,0,8,18ZM16,6a2,2,0,1,0-2-2A2,2,0,0,0,16,6Zm0,8a2,2,0,1,0-2-2A2,2,0,0,0,16,14Zm0,8a2,2,0,1,0-2-2A2,2,0,0,0,16,22Z",
|
|
1460
|
+
fill: color
|
|
1461
|
+
}));
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1447
1464
|
var Email = function Email(_ref) {
|
|
1448
1465
|
var size = _ref.size,
|
|
1449
1466
|
color = _ref.color,
|
|
@@ -5792,6 +5809,7 @@ var IconSVGs = {
|
|
|
5792
5809
|
DownArrow: DownArrow,
|
|
5793
5810
|
Download_2: Download_2,
|
|
5794
5811
|
Download: Download,
|
|
5812
|
+
Drag_Indicator: Drag_Indicator,
|
|
5795
5813
|
Email: Email,
|
|
5796
5814
|
ExitFullScreen: ExitFullScreen,
|
|
5797
5815
|
FaceRecognition_2: FaceRecognition_2,
|
|
@@ -9350,11 +9368,10 @@ var Sidebar = function Sidebar(_ref22) {
|
|
|
9350
9368
|
};
|
|
9351
9369
|
var isRouteActive = function isRouteActive(item) {
|
|
9352
9370
|
var _item$children2;
|
|
9353
|
-
if (!item.url || item.url === '#') return false;
|
|
9354
9371
|
var currentBase = getBasePath(location.pathname);
|
|
9355
9372
|
var itemBase = item.activeUrl ? getBasePath(item.activeUrl) : getBasePath(item.url);
|
|
9356
9373
|
return currentBase === itemBase || ((_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.some(function (child) {
|
|
9357
|
-
return
|
|
9374
|
+
return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
|
|
9358
9375
|
}));
|
|
9359
9376
|
};
|
|
9360
9377
|
var ChildLink = React.memo(function (_ref23) {
|
|
@@ -9543,12 +9560,14 @@ var ContainerWrapper = styled.div(_templateObject$o || (_templateObject$o = _tag
|
|
|
9543
9560
|
var $minHeight = _ref.$minHeight;
|
|
9544
9561
|
return $minHeight;
|
|
9545
9562
|
});
|
|
9546
|
-
var CellContainer = styled.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n align-items:", ";\n justify-content: center;\n width: ", ";\n min-width: ", ";\n display: flex;\n flex-direction: column;\n background: ", ";\n padding: ", ";\n gap: 4px;\n height: 100%\n"])), function (props) {
|
|
9563
|
+
var CellContainer = styled.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n align-items:", ";\n justify-content: center;\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n display: flex;\n flex-direction: column;\n background: ", ";\n padding: ", ";\n gap: 4px;\n height: 100%\n"])), function (props) {
|
|
9547
9564
|
return props.$align;
|
|
9548
9565
|
}, function (props) {
|
|
9549
9566
|
return props.$width || 'auto';
|
|
9550
9567
|
}, function (props) {
|
|
9551
9568
|
return props.$minWidth;
|
|
9569
|
+
}, function (props) {
|
|
9570
|
+
return props.$maxWidth;
|
|
9552
9571
|
}, function (props) {
|
|
9553
9572
|
return props.$background || 'inherit';
|
|
9554
9573
|
}, function (props) {
|
|
@@ -9587,6 +9606,7 @@ var TableCell = function TableCell(_ref2) {
|
|
|
9587
9606
|
alignment = _ref2$alignment === void 0 ? 'center' : _ref2$alignment,
|
|
9588
9607
|
width = _ref2.width,
|
|
9589
9608
|
minWidth = _ref2.minWidth,
|
|
9609
|
+
maxWidth = _ref2.maxWidth,
|
|
9590
9610
|
CustomFunction = _ref2.CustomFunction,
|
|
9591
9611
|
padding = _ref2.padding,
|
|
9592
9612
|
minHeight = _ref2.minHeight;
|
|
@@ -9596,12 +9616,14 @@ var TableCell = function TableCell(_ref2) {
|
|
|
9596
9616
|
}, CustomFunction ? React.createElement(CellContainer, {
|
|
9597
9617
|
"$align": alignment,
|
|
9598
9618
|
"$width": width,
|
|
9599
|
-
"$minWidth": minWidth
|
|
9619
|
+
"$minWidth": minWidth,
|
|
9620
|
+
"$maxWidth": maxWidth
|
|
9600
9621
|
}, CustomFunction) : React.createElement(CellContainer, {
|
|
9601
9622
|
"$align": alignment,
|
|
9602
9623
|
"$width": width,
|
|
9603
9624
|
"$minWidth": minWidth,
|
|
9604
|
-
"$padding": padding
|
|
9625
|
+
"$padding": padding,
|
|
9626
|
+
"$maxWidth": maxWidth
|
|
9605
9627
|
}, React.createElement(MainText, {
|
|
9606
9628
|
"$mtc": maintextcolor,
|
|
9607
9629
|
"$mtfs": maintextfontsize,
|
|
@@ -9795,6 +9817,8 @@ var Table = function Table(_ref8) {
|
|
|
9795
9817
|
})) : null), React.createElement(TableCell, {
|
|
9796
9818
|
maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
|
|
9797
9819
|
width: columndata.width,
|
|
9820
|
+
minWidth: columndata.minWidth,
|
|
9821
|
+
maxWidth: columndata.maxWidth,
|
|
9798
9822
|
alignment: columndata.alignment
|
|
9799
9823
|
}));
|
|
9800
9824
|
})), React.createElement(Divider, null), loading ? React.createElement(Container, {
|