@synerise/ds-tooltip 1.4.7 → 1.4.9
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 +8 -0
- package/README.md +22 -43
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.4.9](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.8...@synerise/ds-tooltip@1.4.9) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-tooltip
|
|
9
|
+
|
|
10
|
+
## [1.4.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.7...@synerise/ds-tooltip@1.4.8) (2026-03-09)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-tooltip
|
|
13
|
+
|
|
6
14
|
## [1.4.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.6...@synerise/ds-tooltip@1.4.7) (2026-02-23)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-tooltip
|
package/README.md
CHANGED
|
@@ -11,46 +11,25 @@ Tooltip UI Component
|
|
|
11
11
|
|
|
12
12
|
## API
|
|
13
13
|
|
|
14
|
-
| Property
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
| title
|
|
33
|
-
| trigger
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
| tutorials | steps of tutorial | Tutorials[] | - |
|
|
37
|
-
| type | type of tooltip | `default` / `icon` / `largeSimple` / `largeScrollable` / `tutorial` / `avatar` / `button` / `header-label` / `status` | `default` |
|
|
38
|
-
| visible | Whether the floating tooltip card is visible or not | boolean | `false` |
|
|
39
|
-
| timeToHideAfterClick | time after which tooltip disappears [ms] (value 0 inactivate this functionality) | number | 0 |
|
|
40
|
-
| render | render prop that allows to render custom component as tooltip | () => React.ReactNode | - |
|
|
41
|
-
| disabled | Determines if tooltip is disabled | boolean | `false` |
|
|
42
|
-
|
|
43
|
-
### ButtonSettings
|
|
44
|
-
|
|
45
|
-
| Property | Description | Type | Default |
|
|
46
|
-
| ---------- | ------------------------------------------- | ------------------------ | ------- |
|
|
47
|
-
| buttonIcon | Icon of button | React.ReactNode | - |
|
|
48
|
-
| label | Label of button | React.ReactNode / string | - |
|
|
49
|
-
| onClick | Callback executed after clicking the button | () => void | - |
|
|
50
|
-
|
|
51
|
-
### Tutorial
|
|
52
|
-
|
|
53
|
-
| Property | Description | Type | Default |
|
|
54
|
-
| ----------- | ---------------------------- | ------------------------ | ------- |
|
|
55
|
-
| title | title of tutorial step | string / React.ReactNode | - |
|
|
56
|
-
| description | description of tutorial step | string / React.ReactNode | - |
|
|
14
|
+
| Property | Description | Type | Default |
|
|
15
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
|
|
16
|
+
| button | Button to display in tooltip footer | ReactNode | - |
|
|
17
|
+
| description | Tooltip description text. Only rendered when `type` is `largeSimple` or `largeScrollable`. | ReactNode | - |
|
|
18
|
+
| disabled | Determines if tooltip is disabled — renders children directly without a wrapper | boolean | - |
|
|
19
|
+
| getPopupContainer | The DOM container of the tip, the default behavior is to create a `div` element in `body` | `() => HTMLElement` | `() => document.body` |
|
|
20
|
+
| icon | Icon displayed inline before the title text | ReactNode | - |
|
|
21
|
+
| image | Image/node rendered between title and description | ReactNode | - |
|
|
22
|
+
| offset | Space between trigger and tooltip: `default` = 8 px, `small` = 4 px | `'default'` \| `'small'` | `'default'` |
|
|
23
|
+
| onOpenChange | Callback executed when visibility of the tooltip changes | `(newOpen: boolean) => void` | - |
|
|
24
|
+
| open | Controlled open state | boolean | - |
|
|
25
|
+
| overlayStyle | Inline style applied to the tooltip content wrapper | CSSProperties | - |
|
|
26
|
+
| placement | The position of the tooltip relative to the target | `'top'` \| `'topLeft'` \| `'topCenter'` \| `'topRight'` \| `'bottom'` \| `'bottomLeft'` \| `'bottomCenter'` \| `'bottomRight'` \| `'left'` \| `'leftTop'` \| `'leftBottom'` \| `'right'` \| `'rightTop'` \| `'rightBottom'` | `'top'` |
|
|
27
|
+
| popoverProps | Additional props forwarded to the underlying `<Popover>` (escape hatch) | `Omit<PopoverOptions, 'zIndex' \| 'getPopupContainer'>` | - |
|
|
28
|
+
| render | Custom render prop — when provided, all structured content props are ignored | `() => ReactNode` | - |
|
|
29
|
+
| shortCuts | Keyboard hint(s) rendered as styled key badges beside the title | `ReactNode \| ReactNode[]` | - |
|
|
30
|
+
| status | Content rendered above the title row (e.g. a status badge) | ReactNode | - |
|
|
31
|
+
| timeToHideAfterClick | Time in ms after which tooltip auto-hides when `trigger` includes `'click'`. `0` disables auto-hide. | number | `0` |
|
|
32
|
+
| title | Tooltip title text or node | ReactNode | - |
|
|
33
|
+
| trigger | Tooltip trigger mode | `'hover'` \| `'click'` \| `Array<'hover' \| 'click'>` | `'hover'` |
|
|
34
|
+
| type | Visual variant of the tooltip | `'default'` \| `'largeSimple'` \| `'largeScrollable'` | `'default'` |
|
|
35
|
+
| zIndex | CSS z-index for the floating layer | number | theme `zindex-tooltip` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-tooltip",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "Tooltip UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/react": "^0.27.16",
|
|
39
|
-
"@synerise/ds-icon": "^1.
|
|
40
|
-
"@synerise/ds-popover": "^1.5.
|
|
41
|
-
"@synerise/ds-scrollbar": "^1.2.
|
|
42
|
-
"@synerise/ds-utils": "^1.
|
|
39
|
+
"@synerise/ds-icon": "^1.15.0",
|
|
40
|
+
"@synerise/ds-popover": "^1.5.2",
|
|
41
|
+
"@synerise/ds-scrollbar": "^1.2.16",
|
|
42
|
+
"@synerise/ds-utils": "^1.7.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@synerise/ds-core": "*",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@testing-library/user-event": "^14.6.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
|
|
53
53
|
}
|