@synerise/ds-list-item 2.1.3 → 2.2.1
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 +19 -0
- package/CLAUDE.md +1 -0
- package/dist/components/Text/Text.styles.js +1 -1
- package/package.json +8 -7
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
|
+
## [2.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.0...@synerise/ds-list-item@2.2.1) (2026-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-list-item
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.1.3...@synerise/ds-list-item@2.2.0) (2026-10-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **format-picker:** placeholder and clear action ([8475163](https://github.com/Synerise/synerise-design/commit/8475163f9dbd02c1d60e3aaca30aa7ec3f49df78))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.1.2...@synerise/ds-list-item@2.1.3) (2026-09-24)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-list-item
|
package/CLAUDE.md
CHANGED
|
@@ -176,6 +176,7 @@ import ListItem, { ListWrapper, ListContextProvider, useListContext } from '@syn
|
|
|
176
176
|
|
|
177
177
|
## Styling / Key dependencies / Implementation notes
|
|
178
178
|
|
|
179
|
+
- **`react-intl` (peer)** — `ListWrapper` calls `useIntl()`, so an `IntlProvider` must be present.
|
|
179
180
|
- **`@floating-ui/react` `useListItem`** — `Text` registers each item with floating-ui's list context via `useListItem()`. The merged ref (`useMergeRefs`) handles both the forwarded ref and the floating-ui ref. This is required for keyboard navigation in dropdowns.
|
|
180
181
|
- **`useDropdown` integration** — if an item is rendered inside `@synerise/ds-core`'s `DropdownProvider`, clicking an item calls `setIsOpen(false)` when `hideOnItemClick === true`.
|
|
181
182
|
- **`description` renders at `size="large"` and `size="auto"`** — setting `description` on a default-size item silently does nothing. At `large` it is one ellipsized line; at `auto` it wraps. The allow-list is `rendersDescription` in `components/Text/ItemLabel.const.ts`, deliberately not `size !== 'default'`, so a future size has to opt in explicitly.
|
|
@@ -9,7 +9,7 @@ const visibleElementStyle = () => css(["opacity:1;pointer-events:all;"]);
|
|
|
9
9
|
const SuffixWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
10
10
|
displayName: "Textstyles__SuffixWrapper",
|
|
11
11
|
componentId: "sc-1j4eogh-0"
|
|
12
|
-
})(["display:flex;order:10;justify-content:flex-end;transition:opacity ", ";", ";"], TRANSITION_FN, (props) => props.visible ? visibleElementStyle() : hiddenElementStyle());
|
|
12
|
+
})(["display:flex;order:10;justify-content:flex-end;flex-shrink:0;margin-left:8px;transition:opacity ", ";", ";"], TRANSITION_FN, (props) => props.visible ? visibleElementStyle() : hiddenElementStyle());
|
|
13
13
|
const SubMenuToggle = /* @__PURE__ */ styled.span.withConfig({
|
|
14
14
|
displayName: "Textstyles__SubMenuToggle",
|
|
15
15
|
componentId: "sc-1j4eogh-1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-list-item",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "ListItem UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -43,23 +43,24 @@
|
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@floating-ui/react": "^0.27.16",
|
|
46
|
-
"@synerise/ds-button": "^2.1.
|
|
47
|
-
"@synerise/ds-divider": "^2.0.
|
|
48
|
-
"@synerise/ds-icon": "^2.2.
|
|
46
|
+
"@synerise/ds-button": "^2.1.3",
|
|
47
|
+
"@synerise/ds-divider": "^2.0.8",
|
|
48
|
+
"@synerise/ds-icon": "^2.2.2",
|
|
49
49
|
"@synerise/ds-popover": "^2.0.3",
|
|
50
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
51
|
-
"@synerise/ds-utils": "^2.2.
|
|
50
|
+
"@synerise/ds-tooltip": "^2.0.8",
|
|
51
|
+
"@synerise/ds-utils": "^2.2.1",
|
|
52
52
|
"classnames": "^2.5.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@synerise/ds-core": "*",
|
|
56
56
|
"copy-to-clipboard": "^3.3.1",
|
|
57
57
|
"react": ">=16.9.0 <= 18.3.1",
|
|
58
|
+
"react-intl": ">=3.12.0 <= 6.8",
|
|
58
59
|
"styled-components": "^5.3.3"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@testing-library/react": "^14.0.0",
|
|
62
63
|
"vitest": "^4.0.0"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "ac1a96b3cd66d2836b0639b3d9920fc0ebd7f8f3"
|
|
65
66
|
}
|