@synerise/ds-list-item 2.1.3 → 2.2.0

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
+ # [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)
7
+
8
+
9
+ ### Features
10
+
11
+ * **format-picker:** placeholder and clear action ([8475163](https://github.com/Synerise/synerise-design/commit/8475163f9dbd02c1d60e3aaca30aa7ec3f49df78))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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
18
 
8
19
  **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",
3
+ "version": "2.2.0",
4
4
  "description": "ListItem UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,11 +43,11 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
45
  "@floating-ui/react": "^0.27.16",
46
- "@synerise/ds-button": "^2.1.1",
47
- "@synerise/ds-divider": "^2.0.6",
48
- "@synerise/ds-icon": "^2.2.0",
46
+ "@synerise/ds-button": "^2.1.2",
47
+ "@synerise/ds-divider": "^2.0.7",
48
+ "@synerise/ds-icon": "^2.2.1",
49
49
  "@synerise/ds-popover": "^2.0.3",
50
- "@synerise/ds-tooltip": "^2.0.6",
50
+ "@synerise/ds-tooltip": "^2.0.7",
51
51
  "@synerise/ds-utils": "^2.2.0",
52
52
  "classnames": "^2.5.1"
53
53
  },
@@ -55,11 +55,12 @@
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": "6b725db2b0de1a2dfc6e9a3744f6c2fb2a04cc04"
65
+ "gitHead": "7331c532cf684b40b130328005359a348aa06976"
65
66
  }