@synerise/ds-tooltip 1.1.7 → 1.1.8

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,17 @@
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
+ ## [1.1.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.1.7...@synerise/ds-tooltip@1.1.8) (2025-05-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tooltip:** add disabled prop ([9d7a794](https://github.com/synerise/synerise-design/commit/9d7a794caece285f019a3fe5eb5e4053990ea3f0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.1.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.1.6...@synerise/ds-tooltip@1.1.7) (2025-05-19)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-tooltip
package/README.md CHANGED
@@ -38,6 +38,7 @@ Tooltip UI Component
38
38
  | visible | Whether the floating tooltip card is visible or not | boolean | `false` |
39
39
  | timeToHideAfterClick | time after which tooltip disappears [ms] (value 0 inactivate this functionality) | number | 0 |
40
40
  | render | render prop that allows to render custom component as tooltip | () => React.ReactNode | - |
41
+ | disabled | Determines if tooltip is disabled | boolean | `false` |
41
42
 
42
43
 
43
44
  ### ButtonSettings
package/dist/Tooltip.d.ts CHANGED
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import './style/index.less';
4
4
  import { TooltipProps } from './Tooltip.types';
5
- declare const Tooltip: ({ type, icon, title, shortCuts, status, description, tutorials, tutorialAutoplay, tutorialAutoplaySpeed, timeToHideAfterClick, offset, children, button, render, image, ...props }: TooltipProps) => React.JSX.Element;
5
+ declare const Tooltip: ({ type, icon, title, shortCuts, status, description, tutorials, tutorialAutoplay, tutorialAutoplaySpeed, timeToHideAfterClick, offset, children, button, render, image, disabled, ...props }: TooltipProps) => React.JSX.Element;
6
6
  export default Tooltip;
package/dist/Tooltip.js CHANGED
@@ -1,4 +1,4 @@
1
- var _excluded = ["type", "icon", "title", "shortCuts", "status", "description", "tutorials", "tutorialAutoplay", "tutorialAutoplaySpeed", "timeToHideAfterClick", "offset", "children", "button", "render", "image"];
1
+ var _excluded = ["type", "icon", "title", "shortCuts", "status", "description", "tutorials", "tutorialAutoplay", "tutorialAutoplaySpeed", "timeToHideAfterClick", "offset", "children", "button", "render", "image", "disabled"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useRef, useState, useMemo, useEffect } from 'react';
@@ -43,6 +43,7 @@ var Tooltip = function Tooltip(_ref) {
43
43
  button = _ref.button,
44
44
  render = _ref.render,
45
45
  image = _ref.image,
46
+ disabled = _ref.disabled,
46
47
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
47
48
  var _useState = useState(false),
48
49
  isVisible = _useState[0],
@@ -130,7 +131,7 @@ var Tooltip = function Tooltip(_ref) {
130
131
  getPopupContainer: getPopupContainer
131
132
  }, handleHideAfterClick, props), children);
132
133
  }
133
- return titleExists ? /*#__PURE__*/React.createElement(AntdTooltip, _extends({
134
+ return titleExists && !disabled ? /*#__PURE__*/React.createElement(AntdTooltip, _extends({
134
135
  overlayClassName: overlayClassName,
135
136
  title: tooltipContent,
136
137
  align: {
@@ -21,6 +21,7 @@ export type TooltipExtendedProps = {
21
21
  offset?: 'default' | 'small';
22
22
  button?: ReactNode;
23
23
  render?: () => ReactNode;
24
+ disabled?: boolean;
24
25
  };
25
26
  export default TooltipExtendedProps;
26
27
  export type TooltipProps = Omit<TooltipPropsWithTitle, 'title'> & TooltipExtendedProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-tooltip",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Tooltip UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^1.5.0",
38
- "@synerise/ds-scrollbar": "^1.0.8",
39
- "@synerise/ds-utils": "^1.1.0"
37
+ "@synerise/ds-icon": "^1.5.1",
38
+ "@synerise/ds-scrollbar": "^1.0.9",
39
+ "@synerise/ds-utils": "^1.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
@@ -44,5 +44,5 @@
44
44
  "react": ">=16.9.0 <= 18.3.1",
45
45
  "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "8aa16b27c86c97e3ac774d92561ab0a03176c439"
47
+ "gitHead": "9e9cc54e3690b4d51323f91c81b3b79305984da6"
48
48
  }