labsense-ui-kit 1.1.51 → 1.1.53

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.
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icons';
3
+ interface ITooltipProps {
4
+ icon: IconProps;
5
+ infoIcon?: IconProps;
6
+ infoText: string;
7
+ infoText2?: string;
8
+ infoText3?: string;
9
+ infoText4?: string;
10
+ tooltipCSS?: {
11
+ background?: string;
12
+ color?: string;
13
+ gap?: string;
14
+ minWidth?: string;
15
+ position?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
16
+ tooltipTop?: string;
17
+ fontSize?: string;
18
+ fontWeight?: string;
19
+ };
20
+ }
21
+ declare const IconTooltip: React.FC<ITooltipProps>;
22
+ export default IconTooltip;
@@ -1,3 +1,3 @@
1
1
  import Badge from './Badge';
2
- import Tooltip from './Tooltip';
3
- export { Badge, Tooltip };
2
+ import IconTooltip from './IconTooltip';
3
+ export { Badge, IconTooltip };
@@ -18,6 +18,7 @@ interface TabProps {
18
18
  border?: string;
19
19
  gap?: string;
20
20
  overflow?: string;
21
+ bordeBottom?: string;
21
22
  }
22
23
  declare const Tabs: React.FC<TabProps>;
23
24
  export default Tabs;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Badge, Tooltip } from './Badge';
1
+ import { Badge, IconTooltip } from './Badge';
2
2
  import { Breadcrumbs, BreadcrumbDetail } from './Breadcrums';
3
3
  import { Button, ButtonProps, ButtonLoaderProps } from './Buttons';
4
4
  import { ButtonCarousel } from './Carousel';
@@ -17,7 +17,7 @@ import { InternalTabs, Tabs, TabContentProps } from './Tabs';
17
17
  import { ThemeColorsInterface } from './Themes';
18
18
  import { colorVariables, themes } from './Themes/Colors';
19
19
  import { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds } from './Utils/Date&Time';
20
- export { Badge, Tooltip };
20
+ export { Badge, IconTooltip };
21
21
  export { Breadcrumbs, BreadcrumbDetail };
22
22
  export { Button, ButtonProps, ButtonLoaderProps };
23
23
  export { ButtonCarousel };
package/dist/index.js CHANGED
@@ -3633,7 +3633,7 @@ var TooltipContainer = styled__default.div(_templateObject$3 || (_templateObject
3633
3633
  }
3634
3634
  });
3635
3635
  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);
3636
- var InfoTooltip = function InfoTooltip(_ref7) {
3636
+ var IconTooltip = function IconTooltip(_ref7) {
3637
3637
  var _tooltipCSS$position;
3638
3638
  var _ref7$icon = _ref7.icon,
3639
3639
  icon = _ref7$icon === void 0 ? {
@@ -6919,25 +6919,28 @@ var Container$4 = styled__default.div(_templateObject$q || (_templateObject$q =
6919
6919
  var $border = _ref3.$border;
6920
6920
  return $border;
6921
6921
  });
6922
- var FirstContainer = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n font-family: NotoSans, sans-serif;\n font-size: 16px;\n gap: 24px;\n border-bottom: 1px solid ", ";\n padding: ", ";\n"])), colorVariables.border.light, function (_ref4) {
6923
- var $headerPadding = _ref4.$headerPadding;
6922
+ var FirstContainer = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n font-family: NotoSans, sans-serif;\n font-size: 16px;\n gap: 24px;\n border-bottom: ", ";\n padding: ", ";\n"])), function (_ref4) {
6923
+ var $bordeBottom = _ref4.$bordeBottom;
6924
+ return $bordeBottom != null ? $bordeBottom : "1px solid " + colorVariables.border.light;
6925
+ }, function (_ref5) {
6926
+ var $headerPadding = _ref5.$headerPadding;
6924
6927
  return $headerPadding ? $headerPadding : '0px';
6925
6928
  });
6926
- var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (_ref5) {
6927
- var $disabled = _ref5.$disabled;
6928
- return $disabled ? 'not-allowed' : 'pointer';
6929
- }, function (_ref6) {
6929
+ var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (_ref6) {
6930
6930
  var $disabled = _ref6.$disabled;
6931
+ return $disabled ? 'not-allowed' : 'pointer';
6932
+ }, function (_ref7) {
6933
+ var $disabled = _ref7.$disabled;
6931
6934
  return $disabled ? '0.6' : '1';
6932
- }, colorVariables.text.medium, function (_ref7) {
6933
- var $headerHeight = _ref7.$headerHeight;
6935
+ }, colorVariables.text.medium, function (_ref8) {
6936
+ var $headerHeight = _ref8.$headerHeight;
6934
6937
  return $headerHeight ? $headerHeight : '34px';
6935
- }, function (_ref8) {
6936
- var $disabled = _ref8.$disabled;
6938
+ }, function (_ref9) {
6939
+ var $disabled = _ref9.$disabled;
6937
6940
  return $disabled ? 'not-allowed' : 'pointer';
6938
6941
  });
6939
- var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (_ref9) {
6940
- var $headerHeight = _ref9.$headerHeight;
6942
+ var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (_ref10) {
6943
+ var $headerHeight = _ref10.$headerHeight;
6941
6944
  return $headerHeight ? $headerHeight : '34px';
6942
6945
  }, function (props) {
6943
6946
  return props.$active ? 'block' : 'none';
@@ -6945,23 +6948,25 @@ var TabItemContainer = styled__default.div(_templateObject4$c || (_templateObjec
6945
6948
  var DetailsFirstContainer = styled__default.div(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 14px;\n line-height: 18px;\n font-weight: 500;\n font-family: NotoSans, sans-serif;\n height: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n"])), function (props) {
6946
6949
  return props.$active ? colorVariables["default"].primary : colorVariables.text.medium;
6947
6950
  });
6948
- var Tabs = function Tabs(_ref10) {
6949
- var tabItems = _ref10.tabItems,
6950
- _ref10$disabled = _ref10.disabled,
6951
- disabled = _ref10$disabled === void 0 ? false : _ref10$disabled,
6952
- headerHeight = _ref10.headerHeight,
6953
- headerPadding = _ref10.headerPadding,
6954
- activeTab = _ref10.activeTab,
6955
- border = _ref10.border,
6956
- _ref10$gap = _ref10.gap,
6957
- gap = _ref10$gap === void 0 ? '24px' : _ref10$gap,
6958
- overflow = _ref10.overflow;
6951
+ var Tabs = function Tabs(_ref11) {
6952
+ var tabItems = _ref11.tabItems,
6953
+ _ref11$disabled = _ref11.disabled,
6954
+ disabled = _ref11$disabled === void 0 ? false : _ref11$disabled,
6955
+ headerHeight = _ref11.headerHeight,
6956
+ headerPadding = _ref11.headerPadding,
6957
+ activeTab = _ref11.activeTab,
6958
+ border = _ref11.border,
6959
+ _ref11$gap = _ref11.gap,
6960
+ gap = _ref11$gap === void 0 ? '24px' : _ref11$gap,
6961
+ overflow = _ref11.overflow,
6962
+ bordeBottom = _ref11.bordeBottom;
6959
6963
  return React__default.createElement(Container$4, {
6960
6964
  "$gap": gap,
6961
6965
  "$border": border,
6962
6966
  "$overflow": overflow
6963
6967
  }, React__default.createElement(FirstContainer, {
6964
- "$headerPadding": headerPadding
6968
+ "$headerPadding": headerPadding,
6969
+ "$bordeBottom": bordeBottom
6965
6970
  }, tabItems.map(function (tab, index) {
6966
6971
  return React__default.createElement(TabContainer, {
6967
6972
  key: index,
@@ -7034,6 +7039,7 @@ exports.Container = Container;
7034
7039
  exports.DatePicker = DatePicker;
7035
7040
  exports.DropdownMenu = DropdownMenu$1;
7036
7041
  exports.Icon = Icon;
7042
+ exports.IconTooltip = IconTooltip;
7037
7043
  exports.InternalTabs = InternalTabs;
7038
7044
  exports.Loader = Loader;
7039
7045
  exports.MultiSelectDropdown = MultiSelectDropdown;
@@ -7053,7 +7059,6 @@ exports.Tabs = Tabs;
7053
7059
  exports.TextArea = TextArea;
7054
7060
  exports.TextField = TextField;
7055
7061
  exports.TextFieldWithDropdown = TextFieldWithDropdown;
7056
- exports.Tooltip = InfoTooltip;
7057
7062
  exports.colorVariables = colorVariables;
7058
7063
  exports.convertEpochToDateString = convertEpochToDateString;
7059
7064
  exports.convertEpochToOnlyDate = convertEpochToOnlyDate;