labsense-ui-kit 1.2.26 → 1.2.28
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/index.d.ts +2 -0
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Icons/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$clickable?: boolean | undefined;
|
|
4
|
+
$cursor?: string | undefined;
|
|
4
5
|
}>> & string;
|
|
5
6
|
declare const IconWrapperForSVG: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.SVGProps<SVGGElement>, never>> & string;
|
|
6
7
|
export { IconWrapper, IconWrapperForSVG };
|
|
@@ -8,6 +9,7 @@ export interface SVGProps {
|
|
|
8
9
|
size: number;
|
|
9
10
|
color: string;
|
|
10
11
|
weight: string;
|
|
12
|
+
cursor?: string;
|
|
11
13
|
}
|
|
12
14
|
export declare type IconNames = 'Add_1' | 'Add_2' | 'AddProfile' | 'AddUser' | 'AI_Web' | 'App' | 'Ascending' | 'Back' | 'Bin' | 'BrainNetworking' | 'Building' | 'Bulb' | 'Business' | 'Calendar' | 'Car' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'CircularEdit' | 'CircularFilledWarning' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'City' | 'Client' | 'Close' | 'CloseCircle' | 'CloseEye' | 'CloudCross' | 'Copy' | 'Copyright' | 'CPU' | 'Cube3D' | 'Cyber' | 'Decrease' | 'Descending' | 'DiagonalArrow' | 'Directory' | 'Disk' | 'DNS_1' | 'DNS_2' | 'DNS_3' | 'DocumentBadge' | 'DoubleQuotes' | 'DownArrow' | 'Download_2' | 'Download' | 'Email' | 'ExitFullScreen' | 'FaceRecognition' | 'FastDelivery' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'FilledCircleTick' | 'FilledPin' | 'Filter_1' | 'Filter_2' | 'Forward_10_Sec' | 'Forward' | 'FPS' | 'Free' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'Hamburger' | 'Handshake' | 'Hazard' | 'Help' | 'History' | 'Home' | 'Hospital' | 'Hexagon' | 'Information' | 'InformationFilled' | 'Instagram' | 'Install' | 'IP' | 'Key_2' | 'Key' | 'KeyDown' | 'KnobController' | 'LedBulb' | 'LeftArrow' | 'Letter' | 'Linkedin' | 'Licenses' | 'Live' | 'Lock' | 'Logout' | 'Manufacturing' | 'Maps' | 'Media' | 'Monitor' | 'MonitorEye' | 'More' | 'MultiMonitor' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Menu' | 'NetworkStorage' | 'NFS_Directory' | 'NoCam' | 'Node' | 'NoStorage' | 'Notifications' | 'OpenBin' | 'OpenBook' | 'OpenEye' | 'PasswordLock' | 'Pause' | 'PeopleAnalytics' | 'Phone' | 'Pin_2' | 'Pin' | 'Play_1' | 'Play_2' | 'Playback' | 'Power' | 'PremiumBadge' | 'ProcessingBulb' | 'Profile_1' | 'Profile_2' | 'Profile_3' | 'Recording_1' | 'Recording_2' | 'Rectangle' | 'Restaurant' | 'Retail' | 'Retry' | 'Return' | 'Rewind_10_Sec' | 'Rhombus' | 'RightArrow' | 'Rocket' | 'ROI' | 'RunAway' | 'SandTimer' | 'Scalable' | 'School' | 'Search' | 'SecureSystem' | 'Security' | 'Send' | 'Settings' | 'ShelfMonitoring' | 'Shield' | 'SlantLine' | 'Sort' | 'SquareEdit' | 'SquareTick' | 'Star' | 'StorageDisks' | 'Tag' | 'Team' | 'Team_2' | 'ThreeDots' | 'ThumbsUp' | 'Tick' | 'Timer' | 'Tool' | 'Tools' | 'TriangularFilledWarning' | 'UnPinned' | 'UpArrow' | 'VehicleNumber' | 'Video' | 'FullVolume' | 'Globe' | 'GlobeIcon' | 'Government' | 'Wallet' | 'Web' | 'WiFiCam' | 'WiFiLaptop' | 'Workflow' | 'X' | 'Youtube' | 'Zapper';
|
|
13
15
|
export interface IconProps {
|
package/dist/index.js
CHANGED
|
@@ -4913,8 +4913,9 @@ var Hospital = function Hospital(_ref) {
|
|
|
4913
4913
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
4914
4914
|
var wrapperCss = styled.css(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n svg {\n overflow: visible;\n vector-effect: non-scaling-stroke;\n line,\n path,\n circle,\n ellipse,\n foreignObject,\n polygon,\n polyline,\n rect,\n text,\n textPath,\n tspan {\n vector-effect: non-scaling-stroke;\n }\n }\n"])));
|
|
4915
4915
|
var IconWrapper = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n width: max-content;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n ", ";\n"])), function (_ref) {
|
|
4916
|
-
var $clickable = _ref.$clickable
|
|
4917
|
-
|
|
4916
|
+
var $clickable = _ref.$clickable,
|
|
4917
|
+
$cursor = _ref.$cursor;
|
|
4918
|
+
return $cursor ? $cursor : $clickable ? 'pointer' : 'default';
|
|
4918
4919
|
}, wrapperCss);
|
|
4919
4920
|
var IconWrapperForSVG = styled__default.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
|
|
4920
4921
|
var IconSVGs = {
|
|
@@ -6477,8 +6478,9 @@ var LabelText = styled__default.div(_templateObject5$4 || (_templateObject5$4 =
|
|
|
6477
6478
|
var $labelStyle = _ref19.$labelStyle;
|
|
6478
6479
|
return $labelStyle;
|
|
6479
6480
|
}, function (_ref20) {
|
|
6480
|
-
var
|
|
6481
|
-
|
|
6481
|
+
var $labelColor = _ref20.$labelColor,
|
|
6482
|
+
theme = _ref20.theme;
|
|
6483
|
+
return $labelColor || theme.text.medium;
|
|
6482
6484
|
});
|
|
6483
6485
|
var DropdownMenu = styled__default.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n max-height: 156px;\n padding: 4px;\n box-sizing: border-box;\n border: ", ";\n border-radius: ", ";\n width: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: 4px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-top: 8px;\n overflow-y: auto;\n position: absolute;\n z-index: 2;\n scrollbar-width: thin;\n"])), function (_ref21) {
|
|
6484
6486
|
var theme = _ref21.theme;
|
|
@@ -6687,7 +6689,8 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
6687
6689
|
weight: icon.weight || '1',
|
|
6688
6690
|
color: icon.color || themeColors.text.medium
|
|
6689
6691
|
}), React__default.createElement(LabelText, {
|
|
6690
|
-
"$labelStyle": labelStyle
|
|
6692
|
+
"$labelStyle": labelStyle,
|
|
6693
|
+
"$labelColor": labelColor
|
|
6691
6694
|
}, labelText)), React__default.createElement(Icon, {
|
|
6692
6695
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
6693
6696
|
size: 7,
|
|
@@ -8679,8 +8682,8 @@ var Table = function Table(_ref8) {
|
|
|
8679
8682
|
isAllSelected = _useState2[0],
|
|
8680
8683
|
setIsAllSelected = _useState2[1];
|
|
8681
8684
|
var getRole = function getRole(row) {
|
|
8682
|
-
var _row$rowData, _row$rowData$, _row$rowData$$CustomF, _row$rowData$$CustomF2;
|
|
8683
|
-
return ((_row$rowData = row.rowData) === null || _row$rowData === void 0 ? void 0 : (_row$rowData$ = _row$rowData[1]) === null || _row$rowData$ === void 0 ? void 0 : (_row$rowData$$CustomF = _row$rowData$.CustomFunction) === null || _row$rowData$$CustomF === void 0 ? void 0 : (_row$rowData$$CustomF2 = _row$rowData$$CustomF.props) === null || _row$rowData$$CustomF2 === void 0 ? void 0 : _row$rowData$$CustomF2.text) || 'Unassigned';
|
|
8685
|
+
var _row$rowData, _row$rowData$, _row$rowData$$CustomF, _row$rowData$$CustomF2, _row$rowData2, _row$rowData2$, _row$rowData2$$Custom, _row$rowData2$$Custom2;
|
|
8686
|
+
return ((_row$rowData = row.rowData) === null || _row$rowData === void 0 ? void 0 : (_row$rowData$ = _row$rowData[1]) === null || _row$rowData$ === void 0 ? void 0 : (_row$rowData$$CustomF = _row$rowData$.CustomFunction) === null || _row$rowData$$CustomF === void 0 ? void 0 : (_row$rowData$$CustomF2 = _row$rowData$$CustomF.props) === null || _row$rowData$$CustomF2 === void 0 ? void 0 : _row$rowData$$CustomF2.text) || ((_row$rowData2 = row.rowData) === null || _row$rowData2 === void 0 ? void 0 : (_row$rowData2$ = _row$rowData2[1]) === null || _row$rowData2$ === void 0 ? void 0 : (_row$rowData2$$Custom = _row$rowData2$.CustomFunction) === null || _row$rowData2$$Custom === void 0 ? void 0 : (_row$rowData2$$Custom2 = _row$rowData2$$Custom.props) === null || _row$rowData2$$Custom2 === void 0 ? void 0 : _row$rowData2$$Custom2.$text) || 'Unassigned';
|
|
8684
8687
|
};
|
|
8685
8688
|
var filteredRows = filter ? rowconfig.filter(function (row) {
|
|
8686
8689
|
return getRole(row);
|