labsense-ui-kit 1.1.59 → 1.1.61

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.
@@ -3357,7 +3357,7 @@ var Icon = function Icon(_ref2) {
3357
3357
  };
3358
3358
 
3359
3359
  var _templateObject$1, _templateObject2$1;
3360
- var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n box-shadow: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3360
+ var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n box-shadow: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3361
3361
  var $flex = _ref.$flex;
3362
3362
  return $flex;
3363
3363
  }, function (_ref2) {
@@ -3418,104 +3418,110 @@ var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemp
3418
3418
  var $borderTopRightRadius = _ref20.$borderTopRightRadius;
3419
3419
  return $borderTopRightRadius;
3420
3420
  }, function (_ref21) {
3421
- var $cursor = _ref21.$cursor;
3422
- return $cursor;
3421
+ var $borderBottomRightRadius = _ref21.$borderBottomRightRadius;
3422
+ return $borderBottomRightRadius;
3423
3423
  }, function (_ref22) {
3424
- var $fontSize = _ref22.$fontSize;
3425
- return $fontSize;
3424
+ var $borderBottomLeftRadius = _ref22.$borderBottomLeftRadius;
3425
+ return $borderBottomLeftRadius;
3426
3426
  }, function (_ref23) {
3427
- var $opacity = _ref23.$opacity;
3428
- return $opacity;
3427
+ var $cursor = _ref23.$cursor;
3428
+ return $cursor;
3429
3429
  }, function (_ref24) {
3430
- var $pointerEvents = _ref24.$pointerEvents;
3431
- return $pointerEvents;
3430
+ var $fontSize = _ref24.$fontSize;
3431
+ return $fontSize;
3432
3432
  }, function (_ref25) {
3433
- var $position = _ref25.$position;
3434
- return $position;
3433
+ var $opacity = _ref25.$opacity;
3434
+ return $opacity;
3435
3435
  }, function (_ref26) {
3436
- var $top = _ref26.$top;
3437
- return $top;
3436
+ var $pointerEvents = _ref26.$pointerEvents;
3437
+ return $pointerEvents;
3438
3438
  }, function (_ref27) {
3439
- var $bottom = _ref27.$bottom;
3440
- return $bottom;
3439
+ var $position = _ref27.$position;
3440
+ return $position;
3441
3441
  }, function (_ref28) {
3442
- var $left = _ref28.$left;
3443
- return $left;
3442
+ var $top = _ref28.$top;
3443
+ return $top;
3444
3444
  }, function (_ref29) {
3445
- var $right = _ref29.$right;
3446
- return $right;
3445
+ var $bottom = _ref29.$bottom;
3446
+ return $bottom;
3447
3447
  }, function (_ref30) {
3448
- var $textAlign = _ref30.$textAlign;
3449
- return $textAlign;
3448
+ var $left = _ref30.$left;
3449
+ return $left;
3450
3450
  }, function (_ref31) {
3451
- var $color = _ref31.$color;
3452
- return $color;
3451
+ var $right = _ref31.$right;
3452
+ return $right;
3453
3453
  }, function (_ref32) {
3454
- var $overflow = _ref32.$overflow;
3455
- return $overflow || 'visible';
3454
+ var $textAlign = _ref32.$textAlign;
3455
+ return $textAlign;
3456
3456
  }, function (_ref33) {
3457
- var $overflowY = _ref33.$overflowY;
3458
- return $overflowY;
3457
+ var $color = _ref33.$color;
3458
+ return $color;
3459
3459
  }, function (_ref34) {
3460
- var $zIndex = _ref34.$zIndex;
3461
- return $zIndex;
3460
+ var $overflow = _ref34.$overflow;
3461
+ return $overflow || 'visible';
3462
3462
  }, function (_ref35) {
3463
- var $scrollbarWidth = _ref35.$scrollbarWidth;
3464
- return $scrollbarWidth;
3463
+ var $overflowY = _ref35.$overflowY;
3464
+ return $overflowY;
3465
3465
  }, function (_ref36) {
3466
- var $border = _ref36.$border;
3467
- return $border;
3466
+ var $zIndex = _ref36.$zIndex;
3467
+ return $zIndex;
3468
3468
  }, function (_ref37) {
3469
- var $borderTop = _ref37.$borderTop;
3470
- return $borderTop;
3469
+ var $scrollbarWidth = _ref37.$scrollbarWidth;
3470
+ return $scrollbarWidth;
3471
3471
  }, function (_ref38) {
3472
- var $borderBottom = _ref38.$borderBottom;
3473
- return $borderBottom;
3472
+ var $border = _ref38.$border;
3473
+ return $border;
3474
3474
  }, function (_ref39) {
3475
- var $borderLeft = _ref39.$borderLeft;
3476
- return $borderLeft;
3475
+ var $borderTop = _ref39.$borderTop;
3476
+ return $borderTop;
3477
3477
  }, function (_ref40) {
3478
- var $transition = _ref40.$transition;
3479
- return $transition;
3478
+ var $borderBottom = _ref40.$borderBottom;
3479
+ return $borderBottom;
3480
3480
  }, function (_ref41) {
3481
- var $boxShadow = _ref41.$boxShadow;
3482
- return $boxShadow;
3481
+ var $borderLeft = _ref41.$borderLeft;
3482
+ return $borderLeft;
3483
3483
  }, function (_ref42) {
3484
- var $hoverBackground = _ref42.$hoverBackground;
3485
- return $hoverBackground;
3484
+ var $transition = _ref42.$transition;
3485
+ return $transition;
3486
3486
  }, function (_ref43) {
3487
- var $hoverColor = _ref43.$hoverColor;
3487
+ var $boxShadow = _ref43.$boxShadow;
3488
+ return $boxShadow;
3489
+ }, function (_ref44) {
3490
+ var $hoverBackground = _ref44.$hoverBackground;
3491
+ return $hoverBackground;
3492
+ }, function (_ref45) {
3493
+ var $hoverColor = _ref45.$hoverColor;
3488
3494
  return $hoverColor;
3489
3495
  });
3490
- var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (_ref44) {
3491
- var $fontFamily = _ref44.$fontFamily;
3496
+ var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (_ref46) {
3497
+ var $fontFamily = _ref46.$fontFamily;
3492
3498
  return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
3493
- }, function (_ref45) {
3494
- var $fontWeight = _ref45.$fontWeight;
3499
+ }, function (_ref47) {
3500
+ var $fontWeight = _ref47.$fontWeight;
3495
3501
  return $fontWeight ? $fontWeight : '500';
3496
- }, function (_ref46) {
3497
- var $fontSize = _ref46.$fontSize;
3502
+ }, function (_ref48) {
3503
+ var $fontSize = _ref48.$fontSize;
3498
3504
  return $fontSize ? $fontSize : '16px';
3499
- }, function (_ref47) {
3500
- var $fontStyle = _ref47.$fontStyle;
3505
+ }, function (_ref49) {
3506
+ var $fontStyle = _ref49.$fontStyle;
3501
3507
  return $fontStyle ? $fontStyle : 'normal';
3502
- }, function (_ref48) {
3503
- var $color = _ref48.$color;
3508
+ }, function (_ref50) {
3509
+ var $color = _ref50.$color;
3504
3510
  return $color ? $color : colorVariables.text.medium;
3505
- }, function (_ref49) {
3506
- var $lineHeight = _ref49.$lineHeight;
3511
+ }, function (_ref51) {
3512
+ var $lineHeight = _ref51.$lineHeight;
3507
3513
  return $lineHeight ? $lineHeight : '100%';
3508
- }, function (_ref50) {
3509
- var $textAlign = _ref50.$textAlign;
3514
+ }, function (_ref52) {
3515
+ var $textAlign = _ref52.$textAlign;
3510
3516
  return $textAlign ? $textAlign : 'center';
3511
- }, function (_ref51) {
3512
- var $minWidth = _ref51.$minWidth;
3517
+ }, function (_ref53) {
3518
+ var $minWidth = _ref53.$minWidth;
3513
3519
  return $minWidth;
3514
- }, function (_ref52) {
3515
- var $width = _ref52.$width;
3520
+ }, function (_ref54) {
3521
+ var $width = _ref54.$width;
3516
3522
  return $width;
3517
- }, function (_ref53) {
3518
- var $overflowWrap = _ref53.$overflowWrap;
3523
+ }, function (_ref55) {
3524
+ var $overflowWrap = _ref55.$overflowWrap;
3519
3525
  return $overflowWrap;
3520
3526
  });
3521
3527
 
@@ -3605,33 +3611,36 @@ var Badge = function Badge(_ref4) {
3605
3611
  };
3606
3612
 
3607
3613
  var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3608
- var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: absolute;\n z-index: 10;\n align-items: center;\n justify-content: center;\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s;\n border-radius: 4px;\n padding: 6px 8px;\n border: ", ";\n min-width: ", ";\n min-width: ", ";\n background-color: ", ";\n gap: ", ";\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 8px;\n background-color: ", ";\n clip-path: polygon(50% 0%, 0% 100%, 100% 100%);\n\n ", "\n }\n"])), function (_ref) {
3609
- var $border = _ref.$border;
3610
- return $border;
3614
+ var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: absolute;\n z-index: 10;\n align-items: center;\n justify-content: center;\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s;\n border-radius: ", ";\n padding: 6px 8px;\n border: ", ";\n min-width: ", ";\n min-width: ", ";\n background-color: ", ";\n gap: ", ";\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 8px;\n background-color: ", ";\n clip-path: polygon(50% 0%, 0% 100%, 100% 100%);\n\n ", "\n }\n"])), function (_ref) {
3615
+ var $borderRadius = _ref.$borderRadius;
3616
+ return $borderRadius != null ? $borderRadius : '4px';
3611
3617
  }, function (_ref2) {
3612
- var $minWidth = _ref2.$minWidth;
3613
- return $minWidth != null ? $minWidth : 'auto';
3618
+ var $border = _ref2.$border;
3619
+ return $border;
3614
3620
  }, function (_ref3) {
3615
- var $maxWidth = _ref3.$maxWidth;
3616
- return $maxWidth != null ? $maxWidth : 'auto';
3621
+ var $minWidth = _ref3.$minWidth;
3622
+ return $minWidth != null ? $minWidth : 'auto';
3617
3623
  }, function (_ref4) {
3618
- var $background = _ref4.$background;
3619
- return $background != null ? $background : colorVariables.accent.light_1;
3624
+ var $maxWidth = _ref4.$maxWidth;
3625
+ return $maxWidth != null ? $maxWidth : 'auto';
3620
3626
  }, function (_ref5) {
3621
- var $gap = _ref5.$gap;
3622
- return $gap != null ? $gap : '16px';
3627
+ var $background = _ref5.$background;
3628
+ return $background != null ? $background : colorVariables.accent.light_1;
3623
3629
  }, function (_ref6) {
3624
- var $tooltipPosition = _ref6.$tooltipPosition,
3625
- $iconSize = _ref6.$iconSize,
3626
- $tooltipTop = _ref6.$tooltipTop;
3630
+ var $gap = _ref6.$gap;
3631
+ return $gap != null ? $gap : '16px';
3632
+ }, function (_ref7) {
3633
+ var $tooltipPosition = _ref7.$tooltipPosition,
3634
+ $iconSize = _ref7.$iconSize,
3635
+ $tooltipTop = _ref7.$tooltipTop;
3627
3636
  var vertical = $tooltipPosition.startsWith('top') ? "bottom: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";" : "top: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";";
3628
3637
  var horizontal = $tooltipPosition.endsWith('Left') ? css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3629
3638
  return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " ", ";"])), vertical, horizontal);
3630
- }, function (_ref7) {
3631
- var $background = _ref7.$background;
3632
- return $background != null ? $background : colorVariables.accent.light_1;
3633
3639
  }, function (_ref8) {
3634
- var $tooltipPosition = _ref8.$tooltipPosition;
3640
+ var $background = _ref8.$background;
3641
+ return $background != null ? $background : colorVariables.accent.light_1;
3642
+ }, function (_ref9) {
3643
+ var $tooltipPosition = _ref9.$tooltipPosition;
3635
3644
  if ($tooltipPosition.startsWith('top')) {
3636
3645
  return $tooltipPosition.endsWith('Left') ? css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["top: 100%; right: 10px; transform: rotate(180deg);"]))) : $tooltipPosition.endsWith('Right') ? css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["top: 100%; left: 10px; transform: rotate(180deg);"]))) : css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["top: 100%; left: 50%; transform: translateX(-50%) rotate(180deg);"])));
3637
3646
  } else {
@@ -3639,25 +3648,25 @@ var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _tag
3639
3648
  }
3640
3649
  });
3641
3650
  var TooltipWrapper$1 = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n align-items: center;\n cursor: pointer;\n\n &:hover ", " {\n visibility: visible;\n opacity: 1;\n }\n"])), TooltipContainer);
3642
- var IconTooltip = function IconTooltip(_ref9) {
3651
+ var IconTooltip = function IconTooltip(_ref10) {
3643
3652
  var _tooltipCSS$position;
3644
- var _ref9$icon = _ref9.icon,
3645
- icon = _ref9$icon === void 0 ? {
3653
+ var _ref10$icon = _ref10.icon,
3654
+ icon = _ref10$icon === void 0 ? {
3646
3655
  icon: 'Information',
3647
3656
  size: 12,
3648
3657
  weight: '0px',
3649
3658
  color: colorVariables.text.medium
3650
- } : _ref9$icon,
3651
- infoIcon = _ref9.infoIcon,
3652
- infoText = _ref9.infoText,
3653
- _ref9$tooltipCSS = _ref9.tooltipCSS,
3654
- tooltipCSS = _ref9$tooltipCSS === void 0 ? {
3659
+ } : _ref10$icon,
3660
+ infoIcon = _ref10.infoIcon,
3661
+ infoText = _ref10.infoText,
3662
+ _ref10$tooltipCSS = _ref10.tooltipCSS,
3663
+ tooltipCSS = _ref10$tooltipCSS === void 0 ? {
3655
3664
  background: colorVariables.accent.light_1,
3656
3665
  gap: '4px',
3657
3666
  minWidth: 'max-content',
3658
3667
  position: 'bottomCenter',
3659
3668
  tooltipTop: undefined
3660
- } : _ref9$tooltipCSS;
3669
+ } : _ref10$tooltipCSS;
3661
3670
  return React.createElement(TooltipWrapper$1, null, React.createElement(Icon, Object.assign({}, icon, {
3662
3671
  onClick: function onClick() {}
3663
3672
  })), React.createElement(TooltipContainer, {
@@ -3668,7 +3677,8 @@ var IconTooltip = function IconTooltip(_ref9) {
3668
3677
  "$background": tooltipCSS.background,
3669
3678
  "$gap": tooltipCSS.gap,
3670
3679
  "$iconSize": icon.size || 17,
3671
- "$border": tooltipCSS.border
3680
+ "$border": tooltipCSS.border,
3681
+ "$borderRadius": tooltipCSS.borderRadius
3672
3682
  }, infoIcon && React.createElement(Icon, Object.assign({}, infoIcon)), infoText));
3673
3683
  };
3674
3684
 
@@ -5346,7 +5356,8 @@ var SelectOption = function SelectOption(_ref32) {
5346
5356
  "$gap": '8px',
5347
5357
  "$overflow": 'visible'
5348
5358
  }, (title || titleRightNode) && React.createElement(Container, {
5349
- "$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
5359
+ "$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap,
5360
+ "$alignItems": 'center'
5350
5361
  }, title && React.createElement(TitleText$1, {
5351
5362
  "$size": size,
5352
5363
  htmlFor: title,