@synerise/ds-tooltip 0.14.9 → 0.14.11

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.14.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@0.14.10...@synerise/ds-tooltip@0.14.11) (2023-12-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tooltip:** fixed tooltip styles ([e97be65](https://github.com/synerise/synerise-design/commit/e97be657bb21017dbd41b65f596cdc82177e6981))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.14.10](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@0.14.9...@synerise/ds-tooltip@0.14.10) (2023-11-16)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-tooltip
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.14.9](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@0.14.8...@synerise/ds-tooltip@0.14.9) (2023-10-30)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-tooltip
package/dist/Tooltip.js CHANGED
@@ -82,13 +82,19 @@ var Tooltip = function Tooltip(_ref) {
82
82
  onClick: button == null ? void 0 : button.onClick
83
83
  }, button == null ? void 0 : button.buttonIcon, button == null ? void 0 : button.label)) : /*#__PURE__*/React.createElement(React.Fragment, null);
84
84
  }, [button]);
85
+
86
+ var captureClick = function captureClick(event) {
87
+ event.stopPropagation();
88
+ };
89
+
85
90
  var tooltipComponent = /*#__PURE__*/React.createElement(S.TooltipComponent, {
91
+ onClick: captureClick,
86
92
  tooltipType: type
87
93
  }, /*#__PURE__*/React.createElement(S.TooltipContent, null, /*#__PURE__*/React.createElement(S.TooltipStatus, {
88
94
  tooltipType: type
89
95
  }, type && shouldRenderStatus(status, type)), /*#__PURE__*/React.createElement(S.TooltipTitle, {
90
96
  tooltipType: type
91
- }, type && shouldRenderIcon(type, icon), type && shouldRenderTitle(type, title)), /*#__PURE__*/React.createElement(S.TooltipDescription, {
97
+ }, type && shouldRenderIcon(type, icon), /*#__PURE__*/React.createElement(S.TooltipTitleWrapper, null, type && shouldRenderTitle(type, title))), /*#__PURE__*/React.createElement(S.TooltipDescription, {
92
98
  tooltipType: type
93
99
  }, type === 'largeScrollable' && /*#__PURE__*/React.createElement(Scrollbar, {
94
100
  absolute: true,
@@ -98,6 +104,7 @@ var Tooltip = function Tooltip(_ref) {
98
104
  }
99
105
  }, /*#__PURE__*/React.createElement(React.Fragment, null, shouldRenderDescription(description, type))), type !== 'largeScrollable' && shouldRenderDescription(description, type))), renderButton);
100
106
  var buttonComponent = /*#__PURE__*/React.createElement(S.TooltipComponent, {
107
+ onClick: captureClick,
101
108
  tooltipType: type
102
109
  }, /*#__PURE__*/React.createElement(S.TooltipContent, null, /*#__PURE__*/React.createElement(S.TooltipStatus, {
103
110
  tooltipType: type
@@ -107,6 +114,7 @@ var Tooltip = function Tooltip(_ref) {
107
114
  tooltipType: type
108
115
  }, description)), renderButton);
109
116
  var tutorialComponent = /*#__PURE__*/React.createElement(S.TooltipComponent, {
117
+ onClick: captureClick,
110
118
  tooltipType: type
111
119
  }, /*#__PURE__*/React.createElement(Carousel, {
112
120
  autoplay: tutorialAutoplay,
@@ -5,6 +5,7 @@ export declare const TooltipDescription: import("styled-components").StyledCompo
5
5
  export declare const TooltipTitle: import("styled-components").StyledComponent<"div", any, Omit<TooltipExtendedProps, "type"> & {
6
6
  tooltipType: tooltipTypes;
7
7
  }, never>;
8
+ export declare const TooltipTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
9
  export declare const TooltipButton: import("styled-components").StyledComponent<"div", any, {}, never>;
9
10
  export declare const TooltipContent: import("styled-components").StyledComponent<"div", any, {}, never>;
10
11
  export declare const TooltipStatus: import("styled-components").StyledComponent<"div", any, Omit<TooltipExtendedProps, "type"> & {
@@ -10,27 +10,31 @@ var titlesWithPadding = ['icon', 'tutorial', 'button', 'header-label'];
10
10
  export var TooltipTitle = styled.div.withConfig({
11
11
  displayName: "Tooltipstyles__TooltipTitle",
12
12
  componentId: "mghjny-1"
13
- })(["margin-bottom:", ";font-size:13px;line-height:1.38;font-weight:", ";display:flex;align-items:center;justify-content:flex-start;text-align:inherit;word-break:break-all;", "{align-self:flex-start;}"], function (_ref) {
13
+ })(["margin-bottom:", ";font-size:13px;line-height:1.38;font-weight:", ";display:flex;width:100%;align-items:center;justify-content:flex-start;text-align:inherit;", "{align-self:flex-start;}"], function (_ref) {
14
14
  var tooltipType = _ref.tooltipType;
15
15
  return titlesWithPadding.includes(String(tooltipType)) ? '8px' : '0px';
16
16
  }, function (props) {
17
17
  return props.tooltipType === 'default' ? 400 : 500;
18
18
  }, IconContainer);
19
+ export var TooltipTitleWrapper = styled.div.withConfig({
20
+ displayName: "Tooltipstyles__TooltipTitleWrapper",
21
+ componentId: "mghjny-2"
22
+ })(["white-space:break-spaces;max-width:100%;width:fit-content;"]);
19
23
  export var TooltipButton = styled.div.withConfig({
20
24
  displayName: "Tooltipstyles__TooltipButton",
21
- componentId: "mghjny-2"
25
+ componentId: "mghjny-3"
22
26
  })(["width:100%;padding:8px;background-color:rgba(56,67,80,0.9);display:flex;flex-direction:row;align-items:center;justify-content:flex-end;"]);
23
27
  export var TooltipContent = styled.div.withConfig({
24
28
  displayName: "Tooltipstyles__TooltipContent",
25
- componentId: "mghjny-3"
29
+ componentId: "mghjny-4"
26
30
  })(["width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"]);
27
31
  export var TooltipStatus = styled.div.withConfig({
28
32
  displayName: "Tooltipstyles__TooltipStatus",
29
- componentId: "mghjny-4"
33
+ componentId: "mghjny-5"
30
34
  })(["padding-bottom:2px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"]);
31
35
  export var TooltipComponent = styled.div.withConfig({
32
36
  displayName: "Tooltipstyles__TooltipComponent",
33
- componentId: "mghjny-5"
37
+ componentId: "mghjny-6"
34
38
  })(["background-color:rgba(56,67,80,0.9);min-height:24px;width:100%;border-radius:3px;color:", ";overflow:hidden;text-align:left;", "{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;", "}.ant-carousel{position:relative;width:100%;.slick-track{width:100%;}.slick-dots-bottom{position:relative;bottom:0;height:32px;padding:0 18px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;margin:0;background-color:rgba(56,67,80,0.9);li{width:8px;height:8px;border-radius:50%;background-color:rgba(56,67,80,0.9);margin:0 8px 0 0;display:flex;align-items:center;justify-content:center;button{box-sizing:content-box;background-color:", ";border:2px solid rgba(56,67,80,0.9);height:4px;width:4px;border-radius:50%;opacity:1;}}li.slick-active{button{border:2px solid ", ";background-color:", ";}}}}"], function (props) {
35
39
  return props.theme.palette['grey-200'];
36
40
  }, TooltipContent, function (props) {
@@ -77,7 +81,7 @@ export var TooltipComponent = styled.div.withConfig({
77
81
  });
78
82
  export var TutorialItem = styled.div.withConfig({
79
83
  displayName: "Tooltipstyles__TutorialItem",
80
- componentId: "mghjny-6"
84
+ componentId: "mghjny-7"
81
85
  })(["padding:16px;color:", ";"], function (props) {
82
86
  return props.theme.palette.white;
83
87
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-tooltip",
3
- "version": "0.14.9",
3
+ "version": "0.14.11",
4
4
  "description": "Tooltip UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@synerise/ds-button": "^0.18.7",
37
37
  "@synerise/ds-icon": "^0.58.7",
38
- "@synerise/ds-scrollbar": "^0.6.12"
38
+ "@synerise/ds-scrollbar": "^0.6.13"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@synerise/ds-core": "*",
@@ -47,5 +47,5 @@
47
47
  "@synerise/ds-utils": "^0.24.21",
48
48
  "@testing-library/react": "10.0.1"
49
49
  },
50
- "gitHead": "854aa713ea3fb1e9348fd351888da807f761a3f4"
50
+ "gitHead": "b5c243a1f88351e9bc0185d35fc35ea3673dab89"
51
51
  }