@snack-uikit/accordion 0.10.2-preview-08c7f775.0 → 0.10.2

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
+ ## 0.10.2 (2025-02-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PDS-1424:** pass triggerSupportProps to QuestionTooltip ([c1c23f8](https://github.com/cloud-ru-tech/snack-uikit/commit/c1c23f84c4bf4aae64b41bd99a1d0121e27ee875))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.10.1 (2025-01-23)
7
18
 
8
19
  ### Only dependencies have been changed
@@ -34,7 +34,9 @@ function CollapseBlockHeader(_ref) {
34
34
  }), tip && (0, jsx_runtime_1.jsx)(tooltip_1.QuestionTooltip, {
35
35
  size: 's',
36
36
  tip: tip,
37
- triggerDataTestId: testIds_1.TEST_IDS.tooltip,
37
+ triggerSupportProps: {
38
+ 'data-test-id': testIds_1.TEST_IDS.tooltip
39
+ },
38
40
  tabIndex: -1
39
41
  })]
40
42
  }), description && (0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyM, {
@@ -5,5 +5,5 @@ import { Typography } from '@snack-uikit/typography';
5
5
  import { TEST_IDS } from '../../testIds';
6
6
  import styles from './styles.module.css';
7
7
  export function CollapseBlockHeader({ title, description, tip }) {
8
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: styles.headline, children: [_jsx(Typography.SansTitleM, { className: styles.title, "data-test-id": TEST_IDS.title, children: _jsx(TruncateString, { text: title, maxLines: 1 }) }), tip && _jsx(QuestionTooltip, { size: 's', tip: tip, triggerDataTestId: TEST_IDS.tooltip, tabIndex: -1 })] }), description && (_jsx(Typography.SansBodyM, { className: styles.subtitle, "data-test-id": TEST_IDS.description, children: _jsx(TruncateString, { text: description, maxLines: 2 }) }))] }));
8
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: styles.headline, children: [_jsx(Typography.SansTitleM, { className: styles.title, "data-test-id": TEST_IDS.title, children: _jsx(TruncateString, { text: title, maxLines: 1 }) }), tip && (_jsx(QuestionTooltip, { size: 's', tip: tip, triggerSupportProps: { 'data-test-id': TEST_IDS.tooltip }, tabIndex: -1 }))] }), description && (_jsx(Typography.SansBodyM, { className: styles.subtitle, "data-test-id": TEST_IDS.description, children: _jsx(TruncateString, { text: description, maxLines: 2 }) }))] }));
9
9
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Accordion",
7
- "version": "0.10.2-preview-08c7f775.0",
7
+ "version": "0.10.2",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -36,11 +36,11 @@
36
36
  "license": "Apache-2.0",
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@snack-uikit/button": "0.19.7-preview-08c7f775.0",
39
+ "@snack-uikit/button": "0.19.6",
40
40
  "@snack-uikit/icons": "0.24.2",
41
41
  "@snack-uikit/toggles": "0.13.5",
42
- "@snack-uikit/tooltip": "0.15.5",
43
- "@snack-uikit/truncate-string": "0.6.6",
42
+ "@snack-uikit/tooltip": "0.16.0",
43
+ "@snack-uikit/truncate-string": "0.6.7",
44
44
  "@snack-uikit/typography": "0.8.4",
45
45
  "@snack-uikit/utils": "3.7.0",
46
46
  "classnames": "2.5.1",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@types/lodash.debounce": "4.0.8"
51
51
  },
52
- "gitHead": "2f4d6256c36e231fb66b7b54e48cab8e916d6c79"
52
+ "gitHead": "4beda461fbd94378a1534458d7942270226a39ef"
53
53
  }
@@ -22,7 +22,14 @@ export function CollapseBlockHeader({ title, description, tip }: CollapseBlockHe
22
22
  <TruncateString text={title} maxLines={1} />
23
23
  </Typography.SansTitleM>
24
24
 
25
- {tip && <QuestionTooltip size='s' tip={tip} triggerDataTestId={TEST_IDS.tooltip} tabIndex={-1} />}
25
+ {tip && (
26
+ <QuestionTooltip
27
+ size='s'
28
+ tip={tip}
29
+ triggerSupportProps={{ 'data-test-id': TEST_IDS.tooltip }}
30
+ tabIndex={-1}
31
+ />
32
+ )}
26
33
  </div>
27
34
 
28
35
  {description && (