labsense-ui-kit 1.1.53 → 1.1.55
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/Table/index.d.ts +1 -0
- package/dist/Themes/index.d.ts +4 -3
- package/dist/index.js +51 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +51 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/Badge/Tooltip.d.ts +0 -22
- package/dist/Icons/SVGs/Add.d.ts +0 -4
- package/dist/Icons/SVGs/Play.d.ts +0 -4
- package/dist/Icons/SVGs/Recording.d.ts +0 -4
package/dist/index.modern.js
CHANGED
|
@@ -24,9 +24,10 @@ var light = {
|
|
|
24
24
|
light: '#FFFFFF'
|
|
25
25
|
},
|
|
26
26
|
accent: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
light_1: '#E1E8ED',
|
|
28
|
+
light_2: '#F5F8FA',
|
|
29
|
+
light_3: '#F0F3F5',
|
|
30
|
+
light_4: '#ECF0F4',
|
|
30
31
|
softBlue: '#D4EEFF',
|
|
31
32
|
extraSoftBlue: '#E4F4FF',
|
|
32
33
|
boldTransparent: '#5E5E5E80',
|
|
@@ -92,9 +93,10 @@ var dark = {
|
|
|
92
93
|
light: '#1A1A1A'
|
|
93
94
|
},
|
|
94
95
|
accent: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
light_1: '#2A2E33',
|
|
97
|
+
light_2: '#1F2327',
|
|
98
|
+
light_3: '#F0F3F5',
|
|
99
|
+
light_4: '#ECF0F4',
|
|
98
100
|
softBlue: '#2C3E50',
|
|
99
101
|
extraSoftBlue: '#34495E',
|
|
100
102
|
boldTransparent: '#D3D3D380',
|
|
@@ -3606,7 +3608,7 @@ var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _tag
|
|
|
3606
3608
|
return $minWidth != null ? $minWidth : 'auto';
|
|
3607
3609
|
}, function (_ref2) {
|
|
3608
3610
|
var $background = _ref2.$background;
|
|
3609
|
-
return $background != null ? $background : colorVariables.accent.
|
|
3611
|
+
return $background != null ? $background : colorVariables.accent.light_1;
|
|
3610
3612
|
}, function (_ref3) {
|
|
3611
3613
|
var $gap = _ref3.$gap;
|
|
3612
3614
|
return $gap != null ? $gap : '16px';
|
|
@@ -3619,7 +3621,7 @@ var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _tag
|
|
|
3619
3621
|
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " ", ";"])), vertical, horizontal);
|
|
3620
3622
|
}, function (_ref5) {
|
|
3621
3623
|
var $background = _ref5.$background;
|
|
3622
|
-
return $background != null ? $background : colorVariables.accent.
|
|
3624
|
+
return $background != null ? $background : colorVariables.accent.light_1;
|
|
3623
3625
|
}, function (_ref6) {
|
|
3624
3626
|
var $tooltipPosition = _ref6.$tooltipPosition;
|
|
3625
3627
|
if ($tooltipPosition.startsWith('top')) {
|
|
@@ -3645,7 +3647,7 @@ var IconTooltip = function IconTooltip(_ref7) {
|
|
|
3645
3647
|
infoText4 = _ref7.infoText4,
|
|
3646
3648
|
_ref7$tooltipCSS = _ref7.tooltipCSS,
|
|
3647
3649
|
tooltipCSS = _ref7$tooltipCSS === void 0 ? {
|
|
3648
|
-
background: colorVariables.accent.
|
|
3650
|
+
background: colorVariables.accent.light_1,
|
|
3649
3651
|
color: colorVariables.text.dark,
|
|
3650
3652
|
gap: '4px',
|
|
3651
3653
|
minWidth: 'max-content',
|
|
@@ -4766,7 +4768,7 @@ var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _tagge
|
|
|
4766
4768
|
return $width ? $width : 'max-content';
|
|
4767
4769
|
}, function (_ref22) {
|
|
4768
4770
|
var $menuBackground = _ref22.$menuBackground;
|
|
4769
|
-
return $menuBackground || colorVariables.accent.
|
|
4771
|
+
return $menuBackground || colorVariables.accent.light_2;
|
|
4770
4772
|
});
|
|
4771
4773
|
var SelectedOptionsWrapper = styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
|
|
4772
4774
|
var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-family: NotoSans, sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref23) {
|
|
@@ -4790,7 +4792,7 @@ var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _
|
|
|
4790
4792
|
case 'error':
|
|
4791
4793
|
return $disabled ? colorVariables.disabled.error : colorVariables["default"].error;
|
|
4792
4794
|
default:
|
|
4793
|
-
return $selectedOptionBackground || colorVariables.accent.
|
|
4795
|
+
return $selectedOptionBackground || colorVariables.accent.light_2;
|
|
4794
4796
|
}
|
|
4795
4797
|
}, function (_ref24) {
|
|
4796
4798
|
var $selectedOptionColor = _ref24.$selectedOptionColor;
|
|
@@ -5119,7 +5121,7 @@ var DropdownButton$1 = styled.div(_templateObject3$7 || (_templateObject3$7 = _t
|
|
|
5119
5121
|
}, function (_ref11) {
|
|
5120
5122
|
var $background = _ref11.$background,
|
|
5121
5123
|
$disabled = _ref11.$disabled;
|
|
5122
|
-
return $disabled ? colorVariables.border.light : $background || colorVariables.accent.
|
|
5124
|
+
return $disabled ? colorVariables.border.light : $background || colorVariables.accent.light_2;
|
|
5123
5125
|
}, function (_ref12) {
|
|
5124
5126
|
var $size = _ref12.$size;
|
|
5125
5127
|
switch ($size) {
|
|
@@ -5193,7 +5195,7 @@ var DropdownMenu$1 = styled.div(_templateObject7$3 || (_templateObject7$3 = _tag
|
|
|
5193
5195
|
return $width ? $width : 'max-content';
|
|
5194
5196
|
}, function (_ref24) {
|
|
5195
5197
|
var $menuBackground = _ref24.$menuBackground;
|
|
5196
|
-
return $menuBackground || colorVariables.accent.
|
|
5198
|
+
return $menuBackground || colorVariables.accent.light_2;
|
|
5197
5199
|
}, function (_ref25) {
|
|
5198
5200
|
var $top = _ref25.$top;
|
|
5199
5201
|
return $top && "top: " + $top + ";";
|
|
@@ -5204,7 +5206,7 @@ var DropdownMenu$1 = styled.div(_templateObject7$3 || (_templateObject7$3 = _tag
|
|
|
5204
5206
|
var OptionsWrapper = styled.div(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n max-height: 150px; \n overflow-y: auto;\n scrollbar-width: thin;\n width: 100%;\n"])));
|
|
5205
5207
|
var SearchContainer$1 = styled.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: ", ";\n border: ", ";\n border-bottom: 1px solid ", ";\n border-radius: ", ";\n padding: 10px 12px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n position: sticky;\n top: 0;\n z-index: 10; \n"])), function (_ref27) {
|
|
5206
5208
|
var $background = _ref27.$background;
|
|
5207
|
-
return $background || colorVariables.accent.
|
|
5209
|
+
return $background || colorVariables.accent.light_2;
|
|
5208
5210
|
}, function (_ref28) {
|
|
5209
5211
|
var $border = _ref28.$border;
|
|
5210
5212
|
return $border || 'none';
|
|
@@ -5445,7 +5447,7 @@ var useClickOutside = function useClickOutside(elRef, elCallback) {
|
|
|
5445
5447
|
|
|
5446
5448
|
var _templateObject$d, _templateObject2$a;
|
|
5447
5449
|
var ModalOverlay = styled.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: NotoSans, sans-serif;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
|
|
5448
|
-
var ModalContainer = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), colorVariables.accent.
|
|
5450
|
+
var ModalContainer = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), colorVariables.accent.light_1, function (_ref) {
|
|
5449
5451
|
var $maxWidth = _ref.$maxWidth;
|
|
5450
5452
|
return $maxWidth ? $maxWidth : '400px';
|
|
5451
5453
|
});
|
|
@@ -6041,7 +6043,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref8) {
|
|
|
6041
6043
|
"$position": 'relative'
|
|
6042
6044
|
}, searchBox && React.createElement(SearchContainer$3, {
|
|
6043
6045
|
"$borderBottom": searchBoxBorder,
|
|
6044
|
-
"$background": isSearchBarEnabled ? colorVariables.text.white : colorVariables.accent.
|
|
6046
|
+
"$background": isSearchBarEnabled ? colorVariables.text.white : colorVariables.accent.light_1,
|
|
6045
6047
|
"$borderRadius": searchBoxBorderRadius,
|
|
6046
6048
|
ref: searchBoxRef
|
|
6047
6049
|
}, React.createElement(Container, {
|
|
@@ -6316,7 +6318,7 @@ var Loader = function Loader(_ref4) {
|
|
|
6316
6318
|
};
|
|
6317
6319
|
|
|
6318
6320
|
var _templateObject$l;
|
|
6319
|
-
var PageInput = styled.input(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 32px;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n padding: 4px;\n color: ", ";\n text-align: center;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), colorVariables.accent.
|
|
6321
|
+
var PageInput = styled.input(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 32px;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n padding: 4px;\n color: ", ";\n text-align: center;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), colorVariables.accent.light_2, colorVariables.border.light, colorVariables.text.dark);
|
|
6320
6322
|
var Pagination = function Pagination(_ref) {
|
|
6321
6323
|
var totalPages = _ref.totalPages,
|
|
6322
6324
|
currentPage = _ref.currentPage,
|
|
@@ -6842,15 +6844,41 @@ var Table = function Table(_ref) {
|
|
|
6842
6844
|
type: 'checkbox',
|
|
6843
6845
|
checked: isAllSelected,
|
|
6844
6846
|
onChange: toggleSelectAll
|
|
6845
|
-
})), tableheaderconfig.headerdata.map(function (columndata,
|
|
6847
|
+
})), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
|
|
6846
6848
|
var _columndata$maintext;
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
+
var currentLegend = columndata.legend || '';
|
|
6850
|
+
var prevLegend = index > 0 ? allCols[index - 1].legend || '' : '';
|
|
6851
|
+
var isFirstOfGroup = currentLegend && currentLegend !== prevLegend;
|
|
6852
|
+
var isInLegendGroup = !!currentLegend;
|
|
6853
|
+
return React.createElement(Container, {
|
|
6854
|
+
key: index,
|
|
6855
|
+
"$flexDirection": 'column',
|
|
6856
|
+
"$width": columndata.width || '100px',
|
|
6857
|
+
"$gap": '8px'
|
|
6858
|
+
}, tableheaderconfig.headerdata.some(function (col) {
|
|
6859
|
+
return !!col.legend;
|
|
6860
|
+
}) && React.createElement(Container, {
|
|
6861
|
+
"$alignItems": 'center',
|
|
6862
|
+
"$height": '16px'
|
|
6863
|
+
}, isInLegendGroup ? React.createElement(Container, null, isFirstOfGroup ? React.createElement(Container, null, React.createElement(Span, {
|
|
6864
|
+
"$fontSize": '12px',
|
|
6865
|
+
"$fontWeight": '400',
|
|
6866
|
+
"$width": 'max-content',
|
|
6867
|
+
"$lineHeight": 'normal'
|
|
6868
|
+
}, currentLegend), React.createElement(Container, {
|
|
6869
|
+
"$flex": '1',
|
|
6870
|
+
"$height": '1px',
|
|
6871
|
+
"$background": colorVariables.border.extraLight
|
|
6872
|
+
})) : React.createElement(Container, {
|
|
6873
|
+
"$flex": '1',
|
|
6874
|
+
"$height": '1px',
|
|
6875
|
+
"$background": colorVariables.border.extraLight
|
|
6876
|
+
})) : null), React.createElement(TableCell, {
|
|
6849
6877
|
maintext: (_columndata$maintext = columndata.maintext) != null ? _columndata$maintext : '',
|
|
6850
6878
|
width: columndata.width,
|
|
6851
6879
|
alignment: columndata.alignment
|
|
6852
|
-
});
|
|
6853
|
-
})), loading ? React.createElement(Container, {
|
|
6880
|
+
}));
|
|
6881
|
+
})), React.createElement(Divider, null), loading ? React.createElement(Container, {
|
|
6854
6882
|
"$flexDirection": 'column',
|
|
6855
6883
|
"$alignItems": 'center',
|
|
6856
6884
|
"$justifyContent": 'center',
|
|
@@ -6872,7 +6900,7 @@ var Table = function Table(_ref) {
|
|
|
6872
6900
|
"$padding": '9px 12px',
|
|
6873
6901
|
"$minHeight": '30px',
|
|
6874
6902
|
"$alignItems": 'center',
|
|
6875
|
-
"$background": colorVariables.accent.
|
|
6903
|
+
"$background": colorVariables.accent.light_1,
|
|
6876
6904
|
onClick: function onClick() {
|
|
6877
6905
|
return toggleRoleVisibility(role);
|
|
6878
6906
|
},
|