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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SVGProps } from '..';
3
+ declare const Drag_Indicator: React.FC<SVGProps>;
4
+ export default Drag_Indicator;
@@ -59,6 +59,7 @@ export { default as DoubleQuotes } from './DoubleQuotes';
59
59
  export { default as DownArrow } from './DownArrow';
60
60
  export { default as Download_2 } from './Download_2';
61
61
  export { default as Download } from './Download';
62
+ export { default as Drag_Indicator } from './Drag_Indicator';
62
63
  export { default as Email } from './Email';
63
64
  export { default as ExitFullScreen } from './ExitFullScreen';
64
65
  export { default as FaceRecognition_2 } from './FaceRecognition_2';
@@ -10,7 +10,7 @@ export interface SVGProps {
10
10
  color: string;
11
11
  weight: string;
12
12
  }
13
- export declare type IconNames = 'Add_1' | 'Add_2' | 'AddProfile' | 'AddUser' | 'AI_Brain' | 'AI_License' | 'AI_Web' | 'Analytics' | 'App' | 'ArrowDown' | 'ArrowUp' | 'Ascending' | 'Back' | 'Bag' | 'Bank' | 'Bell' | 'Bin' | 'BrainNetworking' | 'Building' | 'Bulb' | 'Business' | 'Calendar' | 'Car' | 'Cart_check' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'Check' | 'CircularEdit' | 'CircularFilledWarning' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'City' | 'Client' | 'Close' | 'CloseCircle_2' | 'CloseCircle' | 'CloseEye' | 'CloudCross' | 'Copy_2' | 'Copy' | 'Copyright' | 'CPU' | 'Cube3D' | 'Cyber' | 'Dashboard' | 'Data_search' | 'Decrease' | 'Descending' | 'DiagonalArrow' | 'Directory' | 'Disk' | 'DNS_1' | 'DNS_2' | 'DNS_3' | 'Document' | 'DocumentBadge' | 'DoubleQuotes' | 'DownArrow' | 'Download_2' | 'Download' | 'Email' | 'ExitFullScreen' | 'FaceRecognition_2' | 'FaceRecognition' | 'FastDelivery' | 'File' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'FilledCircleTick' | 'FilledPin' | 'Filter_1' | 'Filter_2' | 'Flow' | 'Forward_10_Sec' | 'Forward' | 'FPS' | 'Free' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'Hamburger' | 'Hammer' | 'Handshake' | 'Hazard' | 'Help' | 'History' | 'Home_2' | 'Home' | 'Hospital' | 'Increase' | 'Hexagon' | 'Highway' | 'Information' | 'InformationFilled' | 'Instagram' | 'Install' | 'IP' | 'Key_2' | 'Key' | 'KeyDown' | 'KnobController' | 'Large_building' | 'LedBulb' | 'LeftArrow' | 'Letter' | 'License' | 'Linkedin' | 'Licenses' | 'Live' | 'Location' | 'Lock' | 'Logout' | 'Mail' | 'Manufacturing' | 'Maps' | 'Media' | 'Monitor' | 'MonitorEye' | 'More' | 'MultiMonitor' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Network' | 'Menu' | 'MeterUp' | 'NetworkStorage' | 'NFS_Directory' | 'NoCam' | 'Node' | 'NoStorage' | 'Notifications' | 'OpenBin' | 'OpenBook' | 'OpenEye' | 'PasswordLock' | 'Pause' | 'PeopleAnalytics' | 'Phone' | 'Pin_2' | 'Pin' | 'Play_1' | 'Play_2' | 'Playback' | 'PoliceBadge' | 'Power' | 'PremiumBadge' | 'ProcessingBulb' | 'Profile_1' | 'Profile_2' | 'Profile_3' | 'QR' | 'Recording_1' | 'Recording_2' | 'Recording_3' | 'Rectangle' | 'Restaurant' | 'Retail' | 'Retry' | 'Return' | 'Rewind_10_Sec' | 'Rhombus' | 'RightArrow' | 'Ringing_Bell' | 'Rocket' | 'ROI' | 'RunAway' | 'Rupee' | 'SandTimer' | 'Scalable' | 'School' | 'Search' | 'SecureSystem' | 'Security' | 'Send' | 'Settings' | 'ShelfMonitoring' | 'Shield' | 'ShoppingCart' | 'Sink' | 'SlantLine' | 'Small_building' | 'Sort_2' | 'Sort' | 'Source' | 'SquareEdit' | 'SquareTick' | 'Star_2' | 'Star' | 'StorageDisks' | 'Tag' | 'Team' | 'Team_2' | 'Technology' | 'ThreeDots' | 'ThumbsUp_2' | 'ThumbsUp' | 'Tick' | 'Timer' | 'Tool' | 'Tools' | 'Tools_2' | 'Translate' | 'TriangularFilledWarning' | 'UnPinned' | 'UpArrow' | 'UploadFile' | 'VehicleNumber' | 'Video' | 'FullVolume_2' | 'FullVolume' | 'Globe' | 'GlobeIcon' | 'Government' | 'Wallet' | 'Web' | 'WiFiCam' | 'WiFiLaptop' | 'Workflow' | 'X' | 'Youtube' | 'Zapper';
13
+ export declare type IconNames = 'Add_1' | 'Add_2' | 'AddProfile' | 'AddUser' | 'AI_Brain' | 'AI_License' | 'AI_Web' | 'Analytics' | 'App' | 'ArrowDown' | 'ArrowUp' | 'Ascending' | 'Back' | 'Bag' | 'Bank' | 'Bell' | 'Bin' | 'BrainNetworking' | 'Building' | 'Bulb' | 'Business' | 'Calendar' | 'Car' | 'Cart_check' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'Check' | 'CircularEdit' | 'CircularFilledWarning' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'City' | 'Client' | 'Close' | 'CloseCircle_2' | 'CloseCircle' | 'CloseEye' | 'CloudCross' | 'Copy_2' | 'Copy' | 'Copyright' | 'CPU' | 'Cube3D' | 'Cyber' | 'Dashboard' | 'Data_search' | 'Decrease' | 'Descending' | 'DiagonalArrow' | 'Directory' | 'Disk' | 'DNS_1' | 'DNS_2' | 'DNS_3' | 'Document' | 'DocumentBadge' | 'DoubleQuotes' | 'DownArrow' | 'Download_2' | 'Download' | 'Drag_Indicator' | 'Email' | 'ExitFullScreen' | 'FaceRecognition_2' | 'FaceRecognition' | 'FastDelivery' | 'File' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'FilledCircleTick' | 'FilledPin' | 'Filter_1' | 'Filter_2' | 'Flow' | 'Forward_10_Sec' | 'Forward' | 'FPS' | 'Free' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'Hamburger' | 'Hammer' | 'Handshake' | 'Hazard' | 'Help' | 'History' | 'Home_2' | 'Home' | 'Hospital' | 'Increase' | 'Hexagon' | 'Highway' | 'Information' | 'InformationFilled' | 'Instagram' | 'Install' | 'IP' | 'Key_2' | 'Key' | 'KeyDown' | 'KnobController' | 'Large_building' | 'LedBulb' | 'LeftArrow' | 'Letter' | 'License' | 'Linkedin' | 'Licenses' | 'Live' | 'Location' | 'Lock' | 'Logout' | 'Mail' | 'Manufacturing' | 'Maps' | 'Media' | 'Monitor' | 'MonitorEye' | 'More' | 'MultiMonitor' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Network' | 'Menu' | 'MeterUp' | 'NetworkStorage' | 'NFS_Directory' | 'NoCam' | 'Node' | 'NoStorage' | 'Notifications' | 'OpenBin' | 'OpenBook' | 'OpenEye' | 'PasswordLock' | 'Pause' | 'PeopleAnalytics' | 'Phone' | 'Pin_2' | 'Pin' | 'Play_1' | 'Play_2' | 'Playback' | 'PoliceBadge' | 'Power' | 'PremiumBadge' | 'ProcessingBulb' | 'Profile_1' | 'Profile_2' | 'Profile_3' | 'QR' | 'Recording_1' | 'Recording_2' | 'Recording_3' | 'Rectangle' | 'Restaurant' | 'Retail' | 'Retry' | 'Return' | 'Rewind_10_Sec' | 'Rhombus' | 'RightArrow' | 'Ringing_Bell' | 'Rocket' | 'ROI' | 'RunAway' | 'Rupee' | 'SandTimer' | 'Scalable' | 'School' | 'Search' | 'SecureSystem' | 'Security' | 'Send' | 'Settings' | 'ShelfMonitoring' | 'Shield' | 'ShoppingCart' | 'Sink' | 'SlantLine' | 'Small_building' | 'Sort_2' | 'Sort' | 'Source' | 'SquareEdit' | 'SquareTick' | 'Star_2' | 'Star' | 'StorageDisks' | 'Tag' | 'Team' | 'Team_2' | 'Technology' | 'ThreeDots' | 'ThumbsUp_2' | 'ThumbsUp' | 'Tick' | 'Timer' | 'Tool' | 'Tools' | 'Tools_2' | 'Translate' | 'TriangularFilledWarning' | 'UnPinned' | 'UpArrow' | 'UploadFile' | 'VehicleNumber' | 'Video' | 'FullVolume_2' | 'FullVolume' | 'Globe' | 'GlobeIcon' | 'Government' | 'Wallet' | 'Web' | 'WiFiCam' | 'WiFiLaptop' | 'Workflow' | 'X' | 'Youtube' | 'Zapper';
14
14
  export interface IconProps {
15
15
  icon: IconNames;
16
16
  size?: number;
@@ -4,6 +4,8 @@ import TableCell from './TableCell';
4
4
  import TableRow from './TableRow';
5
5
  interface HeaderCellConfig {
6
6
  width?: string;
7
+ minWidth?: string;
8
+ maxWidth?: string;
7
9
  maintext?: string;
8
10
  alignment?: string;
9
11
  CustomFunction?: React.ReactElement;
@@ -28,6 +30,7 @@ interface TableCellProps {
28
30
  CustomFunction?: React.ReactElement;
29
31
  width?: string;
30
32
  minWidth?: string;
33
+ maxWidth?: string;
31
34
  background?: string;
32
35
  padding?: string;
33
36
  minHeight?: string;
package/dist/index.js CHANGED
@@ -1448,6 +1448,23 @@ var Download = function Download(_ref) {
1448
1448
  }));
1449
1449
  };
1450
1450
 
1451
+ var Drag_Indicator = function Drag_Indicator(_ref) {
1452
+ var size = _ref.size,
1453
+ color = _ref.color,
1454
+ weight = _ref.weight;
1455
+ return React__default.createElement("svg", {
1456
+ width: size,
1457
+ height: size,
1458
+ strokeWidth: weight,
1459
+ viewBox: '0 0 24 24',
1460
+ fill: 'none',
1461
+ xmlns: 'http://www.w3.org/2000/svg'
1462
+ }, React__default.createElement("path", {
1463
+ 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",
1464
+ fill: color
1465
+ }));
1466
+ };
1467
+
1451
1468
  var Email = function Email(_ref) {
1452
1469
  var size = _ref.size,
1453
1470
  color = _ref.color,
@@ -5796,6 +5813,7 @@ var IconSVGs = {
5796
5813
  DownArrow: DownArrow,
5797
5814
  Download_2: Download_2,
5798
5815
  Download: Download,
5816
+ Drag_Indicator: Drag_Indicator,
5799
5817
  Email: Email,
5800
5818
  ExitFullScreen: ExitFullScreen,
5801
5819
  FaceRecognition_2: FaceRecognition_2,
@@ -9354,11 +9372,10 @@ var Sidebar = function Sidebar(_ref22) {
9354
9372
  };
9355
9373
  var isRouteActive = function isRouteActive(item) {
9356
9374
  var _item$children2;
9357
- if (!item.url || item.url === '#') return false;
9358
9375
  var currentBase = getBasePath(location.pathname);
9359
9376
  var itemBase = item.activeUrl ? getBasePath(item.activeUrl) : getBasePath(item.url);
9360
9377
  return currentBase === itemBase || ((_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.some(function (child) {
9361
- return child.url && currentBase === getBasePath(child.activeUrl) || child.url && currentBase === getBasePath(child.url);
9378
+ return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
9362
9379
  }));
9363
9380
  };
9364
9381
  var ChildLink = React__default.memo(function (_ref23) {
@@ -9547,12 +9564,14 @@ var ContainerWrapper = styled__default.div(_templateObject$o || (_templateObject
9547
9564
  var $minHeight = _ref.$minHeight;
9548
9565
  return $minHeight;
9549
9566
  });
9550
- var CellContainer = styled__default.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) {
9567
+ var CellContainer = styled__default.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) {
9551
9568
  return props.$align;
9552
9569
  }, function (props) {
9553
9570
  return props.$width || 'auto';
9554
9571
  }, function (props) {
9555
9572
  return props.$minWidth;
9573
+ }, function (props) {
9574
+ return props.$maxWidth;
9556
9575
  }, function (props) {
9557
9576
  return props.$background || 'inherit';
9558
9577
  }, function (props) {
@@ -9591,6 +9610,7 @@ var TableCell = function TableCell(_ref2) {
9591
9610
  alignment = _ref2$alignment === void 0 ? 'center' : _ref2$alignment,
9592
9611
  width = _ref2.width,
9593
9612
  minWidth = _ref2.minWidth,
9613
+ maxWidth = _ref2.maxWidth,
9594
9614
  CustomFunction = _ref2.CustomFunction,
9595
9615
  padding = _ref2.padding,
9596
9616
  minHeight = _ref2.minHeight;
@@ -9600,12 +9620,14 @@ var TableCell = function TableCell(_ref2) {
9600
9620
  }, CustomFunction ? React__default.createElement(CellContainer, {
9601
9621
  "$align": alignment,
9602
9622
  "$width": width,
9603
- "$minWidth": minWidth
9623
+ "$minWidth": minWidth,
9624
+ "$maxWidth": maxWidth
9604
9625
  }, CustomFunction) : React__default.createElement(CellContainer, {
9605
9626
  "$align": alignment,
9606
9627
  "$width": width,
9607
9628
  "$minWidth": minWidth,
9608
- "$padding": padding
9629
+ "$padding": padding,
9630
+ "$maxWidth": maxWidth
9609
9631
  }, React__default.createElement(MainText, {
9610
9632
  "$mtc": maintextcolor,
9611
9633
  "$mtfs": maintextfontsize,
@@ -9799,6 +9821,8 @@ var Table = function Table(_ref8) {
9799
9821
  })) : null), React__default.createElement(TableCell, {
9800
9822
  maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
9801
9823
  width: columndata.width,
9824
+ minWidth: columndata.minWidth,
9825
+ maxWidth: columndata.maxWidth,
9802
9826
  alignment: columndata.alignment
9803
9827
  }));
9804
9828
  })), React__default.createElement(Divider, null), loading ? React__default.createElement(Container, {