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.
@@ -12,6 +12,7 @@ interface ITooltipProps {
12
12
  position?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
13
13
  tooltipTop?: string;
14
14
  border?: string;
15
+ borderRadius?: string;
15
16
  };
16
17
  }
17
18
  declare const IconTooltip: React.FC<ITooltipProps>;
@@ -35,6 +35,8 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
35
35
  $borderRadius?: string | undefined;
36
36
  $borderTopLeftRadius?: string | undefined;
37
37
  $borderTopRightRadius?: string | undefined;
38
+ $borderBottomRightRadius?: string | undefined;
39
+ $borderBottomLeftRadius?: string | undefined;
38
40
  $borderTop?: string | undefined;
39
41
  $borderBottom?: string | undefined;
40
42
  $borderLeft?: string | undefined;
package/dist/index.js CHANGED
@@ -3361,7 +3361,7 @@ var Icon = function Icon(_ref2) {
3361
3361
  };
3362
3362
 
3363
3363
  var _templateObject$1, _templateObject2$1;
3364
- var Container = styled__default.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) {
3364
+ var Container = styled__default.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) {
3365
3365
  var $flex = _ref.$flex;
3366
3366
  return $flex;
3367
3367
  }, function (_ref2) {
@@ -3422,104 +3422,110 @@ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _t
3422
3422
  var $borderTopRightRadius = _ref20.$borderTopRightRadius;
3423
3423
  return $borderTopRightRadius;
3424
3424
  }, function (_ref21) {
3425
- var $cursor = _ref21.$cursor;
3426
- return $cursor;
3425
+ var $borderBottomRightRadius = _ref21.$borderBottomRightRadius;
3426
+ return $borderBottomRightRadius;
3427
3427
  }, function (_ref22) {
3428
- var $fontSize = _ref22.$fontSize;
3429
- return $fontSize;
3428
+ var $borderBottomLeftRadius = _ref22.$borderBottomLeftRadius;
3429
+ return $borderBottomLeftRadius;
3430
3430
  }, function (_ref23) {
3431
- var $opacity = _ref23.$opacity;
3432
- return $opacity;
3431
+ var $cursor = _ref23.$cursor;
3432
+ return $cursor;
3433
3433
  }, function (_ref24) {
3434
- var $pointerEvents = _ref24.$pointerEvents;
3435
- return $pointerEvents;
3434
+ var $fontSize = _ref24.$fontSize;
3435
+ return $fontSize;
3436
3436
  }, function (_ref25) {
3437
- var $position = _ref25.$position;
3438
- return $position;
3437
+ var $opacity = _ref25.$opacity;
3438
+ return $opacity;
3439
3439
  }, function (_ref26) {
3440
- var $top = _ref26.$top;
3441
- return $top;
3440
+ var $pointerEvents = _ref26.$pointerEvents;
3441
+ return $pointerEvents;
3442
3442
  }, function (_ref27) {
3443
- var $bottom = _ref27.$bottom;
3444
- return $bottom;
3443
+ var $position = _ref27.$position;
3444
+ return $position;
3445
3445
  }, function (_ref28) {
3446
- var $left = _ref28.$left;
3447
- return $left;
3446
+ var $top = _ref28.$top;
3447
+ return $top;
3448
3448
  }, function (_ref29) {
3449
- var $right = _ref29.$right;
3450
- return $right;
3449
+ var $bottom = _ref29.$bottom;
3450
+ return $bottom;
3451
3451
  }, function (_ref30) {
3452
- var $textAlign = _ref30.$textAlign;
3453
- return $textAlign;
3452
+ var $left = _ref30.$left;
3453
+ return $left;
3454
3454
  }, function (_ref31) {
3455
- var $color = _ref31.$color;
3456
- return $color;
3455
+ var $right = _ref31.$right;
3456
+ return $right;
3457
3457
  }, function (_ref32) {
3458
- var $overflow = _ref32.$overflow;
3459
- return $overflow || 'visible';
3458
+ var $textAlign = _ref32.$textAlign;
3459
+ return $textAlign;
3460
3460
  }, function (_ref33) {
3461
- var $overflowY = _ref33.$overflowY;
3462
- return $overflowY;
3461
+ var $color = _ref33.$color;
3462
+ return $color;
3463
3463
  }, function (_ref34) {
3464
- var $zIndex = _ref34.$zIndex;
3465
- return $zIndex;
3464
+ var $overflow = _ref34.$overflow;
3465
+ return $overflow || 'visible';
3466
3466
  }, function (_ref35) {
3467
- var $scrollbarWidth = _ref35.$scrollbarWidth;
3468
- return $scrollbarWidth;
3467
+ var $overflowY = _ref35.$overflowY;
3468
+ return $overflowY;
3469
3469
  }, function (_ref36) {
3470
- var $border = _ref36.$border;
3471
- return $border;
3470
+ var $zIndex = _ref36.$zIndex;
3471
+ return $zIndex;
3472
3472
  }, function (_ref37) {
3473
- var $borderTop = _ref37.$borderTop;
3474
- return $borderTop;
3473
+ var $scrollbarWidth = _ref37.$scrollbarWidth;
3474
+ return $scrollbarWidth;
3475
3475
  }, function (_ref38) {
3476
- var $borderBottom = _ref38.$borderBottom;
3477
- return $borderBottom;
3476
+ var $border = _ref38.$border;
3477
+ return $border;
3478
3478
  }, function (_ref39) {
3479
- var $borderLeft = _ref39.$borderLeft;
3480
- return $borderLeft;
3479
+ var $borderTop = _ref39.$borderTop;
3480
+ return $borderTop;
3481
3481
  }, function (_ref40) {
3482
- var $transition = _ref40.$transition;
3483
- return $transition;
3482
+ var $borderBottom = _ref40.$borderBottom;
3483
+ return $borderBottom;
3484
3484
  }, function (_ref41) {
3485
- var $boxShadow = _ref41.$boxShadow;
3486
- return $boxShadow;
3485
+ var $borderLeft = _ref41.$borderLeft;
3486
+ return $borderLeft;
3487
3487
  }, function (_ref42) {
3488
- var $hoverBackground = _ref42.$hoverBackground;
3489
- return $hoverBackground;
3488
+ var $transition = _ref42.$transition;
3489
+ return $transition;
3490
3490
  }, function (_ref43) {
3491
- var $hoverColor = _ref43.$hoverColor;
3491
+ var $boxShadow = _ref43.$boxShadow;
3492
+ return $boxShadow;
3493
+ }, function (_ref44) {
3494
+ var $hoverBackground = _ref44.$hoverBackground;
3495
+ return $hoverBackground;
3496
+ }, function (_ref45) {
3497
+ var $hoverColor = _ref45.$hoverColor;
3492
3498
  return $hoverColor;
3493
3499
  });
3494
- var Span = styled__default.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) {
3495
- var $fontFamily = _ref44.$fontFamily;
3500
+ var Span = styled__default.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) {
3501
+ var $fontFamily = _ref46.$fontFamily;
3496
3502
  return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
3497
- }, function (_ref45) {
3498
- var $fontWeight = _ref45.$fontWeight;
3503
+ }, function (_ref47) {
3504
+ var $fontWeight = _ref47.$fontWeight;
3499
3505
  return $fontWeight ? $fontWeight : '500';
3500
- }, function (_ref46) {
3501
- var $fontSize = _ref46.$fontSize;
3506
+ }, function (_ref48) {
3507
+ var $fontSize = _ref48.$fontSize;
3502
3508
  return $fontSize ? $fontSize : '16px';
3503
- }, function (_ref47) {
3504
- var $fontStyle = _ref47.$fontStyle;
3509
+ }, function (_ref49) {
3510
+ var $fontStyle = _ref49.$fontStyle;
3505
3511
  return $fontStyle ? $fontStyle : 'normal';
3506
- }, function (_ref48) {
3507
- var $color = _ref48.$color;
3512
+ }, function (_ref50) {
3513
+ var $color = _ref50.$color;
3508
3514
  return $color ? $color : colorVariables.text.medium;
3509
- }, function (_ref49) {
3510
- var $lineHeight = _ref49.$lineHeight;
3515
+ }, function (_ref51) {
3516
+ var $lineHeight = _ref51.$lineHeight;
3511
3517
  return $lineHeight ? $lineHeight : '100%';
3512
- }, function (_ref50) {
3513
- var $textAlign = _ref50.$textAlign;
3518
+ }, function (_ref52) {
3519
+ var $textAlign = _ref52.$textAlign;
3514
3520
  return $textAlign ? $textAlign : 'center';
3515
- }, function (_ref51) {
3516
- var $minWidth = _ref51.$minWidth;
3521
+ }, function (_ref53) {
3522
+ var $minWidth = _ref53.$minWidth;
3517
3523
  return $minWidth;
3518
- }, function (_ref52) {
3519
- var $width = _ref52.$width;
3524
+ }, function (_ref54) {
3525
+ var $width = _ref54.$width;
3520
3526
  return $width;
3521
- }, function (_ref53) {
3522
- var $overflowWrap = _ref53.$overflowWrap;
3527
+ }, function (_ref55) {
3528
+ var $overflowWrap = _ref55.$overflowWrap;
3523
3529
  return $overflowWrap;
3524
3530
  });
3525
3531
 
@@ -3609,33 +3615,36 @@ var Badge = function Badge(_ref4) {
3609
3615
  };
3610
3616
 
3611
3617
  var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3612
- var TooltipContainer = styled__default.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) {
3613
- var $border = _ref.$border;
3614
- return $border;
3618
+ var TooltipContainer = styled__default.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) {
3619
+ var $borderRadius = _ref.$borderRadius;
3620
+ return $borderRadius != null ? $borderRadius : '4px';
3615
3621
  }, function (_ref2) {
3616
- var $minWidth = _ref2.$minWidth;
3617
- return $minWidth != null ? $minWidth : 'auto';
3622
+ var $border = _ref2.$border;
3623
+ return $border;
3618
3624
  }, function (_ref3) {
3619
- var $maxWidth = _ref3.$maxWidth;
3620
- return $maxWidth != null ? $maxWidth : 'auto';
3625
+ var $minWidth = _ref3.$minWidth;
3626
+ return $minWidth != null ? $minWidth : 'auto';
3621
3627
  }, function (_ref4) {
3622
- var $background = _ref4.$background;
3623
- return $background != null ? $background : colorVariables.accent.light_1;
3628
+ var $maxWidth = _ref4.$maxWidth;
3629
+ return $maxWidth != null ? $maxWidth : 'auto';
3624
3630
  }, function (_ref5) {
3625
- var $gap = _ref5.$gap;
3626
- return $gap != null ? $gap : '16px';
3631
+ var $background = _ref5.$background;
3632
+ return $background != null ? $background : colorVariables.accent.light_1;
3627
3633
  }, function (_ref6) {
3628
- var $tooltipPosition = _ref6.$tooltipPosition,
3629
- $iconSize = _ref6.$iconSize,
3630
- $tooltipTop = _ref6.$tooltipTop;
3634
+ var $gap = _ref6.$gap;
3635
+ return $gap != null ? $gap : '16px';
3636
+ }, function (_ref7) {
3637
+ var $tooltipPosition = _ref7.$tooltipPosition,
3638
+ $iconSize = _ref7.$iconSize,
3639
+ $tooltipTop = _ref7.$tooltipTop;
3631
3640
  var vertical = $tooltipPosition.startsWith('top') ? "bottom: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";" : "top: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";";
3632
3641
  var horizontal = $tooltipPosition.endsWith('Left') ? styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? styled.css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3633
3642
  return styled.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " ", ";"])), vertical, horizontal);
3634
- }, function (_ref7) {
3635
- var $background = _ref7.$background;
3636
- return $background != null ? $background : colorVariables.accent.light_1;
3637
3643
  }, function (_ref8) {
3638
- var $tooltipPosition = _ref8.$tooltipPosition;
3644
+ var $background = _ref8.$background;
3645
+ return $background != null ? $background : colorVariables.accent.light_1;
3646
+ }, function (_ref9) {
3647
+ var $tooltipPosition = _ref9.$tooltipPosition;
3639
3648
  if ($tooltipPosition.startsWith('top')) {
3640
3649
  return $tooltipPosition.endsWith('Left') ? styled.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["top: 100%; right: 10px; transform: rotate(180deg);"]))) : $tooltipPosition.endsWith('Right') ? styled.css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["top: 100%; left: 10px; transform: rotate(180deg);"]))) : styled.css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["top: 100%; left: 50%; transform: translateX(-50%) rotate(180deg);"])));
3641
3650
  } else {
@@ -3643,25 +3652,25 @@ var TooltipContainer = styled__default.div(_templateObject$3 || (_templateObject
3643
3652
  }
3644
3653
  });
3645
3654
  var TooltipWrapper$1 = styled__default.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);
3646
- var IconTooltip = function IconTooltip(_ref9) {
3655
+ var IconTooltip = function IconTooltip(_ref10) {
3647
3656
  var _tooltipCSS$position;
3648
- var _ref9$icon = _ref9.icon,
3649
- icon = _ref9$icon === void 0 ? {
3657
+ var _ref10$icon = _ref10.icon,
3658
+ icon = _ref10$icon === void 0 ? {
3650
3659
  icon: 'Information',
3651
3660
  size: 12,
3652
3661
  weight: '0px',
3653
3662
  color: colorVariables.text.medium
3654
- } : _ref9$icon,
3655
- infoIcon = _ref9.infoIcon,
3656
- infoText = _ref9.infoText,
3657
- _ref9$tooltipCSS = _ref9.tooltipCSS,
3658
- tooltipCSS = _ref9$tooltipCSS === void 0 ? {
3663
+ } : _ref10$icon,
3664
+ infoIcon = _ref10.infoIcon,
3665
+ infoText = _ref10.infoText,
3666
+ _ref10$tooltipCSS = _ref10.tooltipCSS,
3667
+ tooltipCSS = _ref10$tooltipCSS === void 0 ? {
3659
3668
  background: colorVariables.accent.light_1,
3660
3669
  gap: '4px',
3661
3670
  minWidth: 'max-content',
3662
3671
  position: 'bottomCenter',
3663
3672
  tooltipTop: undefined
3664
- } : _ref9$tooltipCSS;
3673
+ } : _ref10$tooltipCSS;
3665
3674
  return React__default.createElement(TooltipWrapper$1, null, React__default.createElement(Icon, Object.assign({}, icon, {
3666
3675
  onClick: function onClick() {}
3667
3676
  })), React__default.createElement(TooltipContainer, {
@@ -3672,7 +3681,8 @@ var IconTooltip = function IconTooltip(_ref9) {
3672
3681
  "$background": tooltipCSS.background,
3673
3682
  "$gap": tooltipCSS.gap,
3674
3683
  "$iconSize": icon.size || 17,
3675
- "$border": tooltipCSS.border
3684
+ "$border": tooltipCSS.border,
3685
+ "$borderRadius": tooltipCSS.borderRadius
3676
3686
  }, infoIcon && React__default.createElement(Icon, Object.assign({}, infoIcon)), infoText));
3677
3687
  };
3678
3688
 
@@ -5350,7 +5360,8 @@ var SelectOption = function SelectOption(_ref32) {
5350
5360
  "$gap": '8px',
5351
5361
  "$overflow": 'visible'
5352
5362
  }, (title || titleRightNode) && React__default.createElement(Container, {
5353
- "$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
5363
+ "$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap,
5364
+ "$alignItems": 'center'
5354
5365
  }, title && React__default.createElement(TitleText$1, {
5355
5366
  "$size": size,
5356
5367
  htmlFor: title,