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/index.modern.js
CHANGED
|
@@ -4909,8 +4909,9 @@ var Hospital = function Hospital(_ref) {
|
|
|
4909
4909
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
4910
4910
|
var wrapperCss = 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"])));
|
|
4911
4911
|
var IconWrapper = styled.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) {
|
|
4912
|
-
var $clickable = _ref.$clickable
|
|
4913
|
-
|
|
4912
|
+
var $clickable = _ref.$clickable,
|
|
4913
|
+
$cursor = _ref.$cursor;
|
|
4914
|
+
return $cursor ? $cursor : $clickable ? 'pointer' : 'default';
|
|
4914
4915
|
}, wrapperCss);
|
|
4915
4916
|
var IconWrapperForSVG = styled.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
|
|
4916
4917
|
var IconSVGs = {
|
|
@@ -6473,8 +6474,9 @@ var LabelText = styled.div(_templateObject5$4 || (_templateObject5$4 = _taggedTe
|
|
|
6473
6474
|
var $labelStyle = _ref19.$labelStyle;
|
|
6474
6475
|
return $labelStyle;
|
|
6475
6476
|
}, function (_ref20) {
|
|
6476
|
-
var
|
|
6477
|
-
|
|
6477
|
+
var $labelColor = _ref20.$labelColor,
|
|
6478
|
+
theme = _ref20.theme;
|
|
6479
|
+
return $labelColor || theme.text.medium;
|
|
6478
6480
|
});
|
|
6479
6481
|
var DropdownMenu = styled.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) {
|
|
6480
6482
|
var theme = _ref21.theme;
|
|
@@ -6683,7 +6685,8 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
6683
6685
|
weight: icon.weight || '1',
|
|
6684
6686
|
color: icon.color || themeColors.text.medium
|
|
6685
6687
|
}), React.createElement(LabelText, {
|
|
6686
|
-
"$labelStyle": labelStyle
|
|
6688
|
+
"$labelStyle": labelStyle,
|
|
6689
|
+
"$labelColor": labelColor
|
|
6687
6690
|
}, labelText)), React.createElement(Icon, {
|
|
6688
6691
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
6689
6692
|
size: 7,
|
|
@@ -8675,8 +8678,8 @@ var Table = function Table(_ref8) {
|
|
|
8675
8678
|
isAllSelected = _useState2[0],
|
|
8676
8679
|
setIsAllSelected = _useState2[1];
|
|
8677
8680
|
var getRole = function getRole(row) {
|
|
8678
|
-
var _row$rowData, _row$rowData$, _row$rowData$$CustomF, _row$rowData$$CustomF2;
|
|
8679
|
-
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';
|
|
8681
|
+
var _row$rowData, _row$rowData$, _row$rowData$$CustomF, _row$rowData$$CustomF2, _row$rowData2, _row$rowData2$, _row$rowData2$$Custom, _row$rowData2$$Custom2;
|
|
8682
|
+
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';
|
|
8680
8683
|
};
|
|
8681
8684
|
var filteredRows = filter ? rowconfig.filter(function (row) {
|
|
8682
8685
|
return getRole(row);
|