@synerise/ds-list-item 2.3.0 → 2.4.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.4.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.3.0...@synerise/ds-list-item@2.4.0) (2026-11-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * **item-picker:** add a mixed list mode and open row cards on keyboard focus ([7237582](https://github.com/Synerise/synerise-design/commit/7237582567e8ab83877b945f7fd5a072b9858ee6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.4...@synerise/ds-list-item@2.3.0) (2026-10-29)
7
18
 
8
19
 
package/CLAUDE.md CHANGED
@@ -18,8 +18,8 @@ src/
18
18
  Text/DynamicLabel.tsx — swaps normal label for copiedLabel via CSS transition
19
19
  Text/utils.ts — renderAddon, removeHandlerProps, getCopyConfig
20
20
  Text/ItemLabel.const.ts — INDENT_WIDTH = 20 (px per indentLevel)
21
- HoverTooltip/HoverTooltip.tsx — wraps item in @synerise/ds-popover on hover
22
- HoverTooltip/HoverTooltip.const.ts — offset 8px, open 100ms / close 400ms delays
21
+ HoverTooltip/HoverTooltip.tsx — wraps item in @synerise/ds-popover on hover and keyboard focus
22
+ HoverTooltip/HoverTooltip.const.ts — offset 8px, open 100ms / close 400ms delays; focus opens after 100ms
23
23
  GroupItem/GroupItem.tsx — renders a title + array of ListItems or children
24
24
  SubMenu/SubMenu.tsx — collapsible inline sub-list, indented by level
25
25
  ListContext/ListContext.tsx — React context + useListContext hook
@@ -67,7 +67,7 @@ src/
67
67
  | `subMenuOpen` | `boolean` | — | Controlled open state of `subMenu`; when set, the component stops managing it internally — pair with `onSubMenuToggle` |
68
68
  | `onSubMenuToggle` | `(open: boolean) => void` | — | Fires with the next open state on every `subMenu` toggle (row click in default mode, or the suffix arrow when `selectableParent`) |
69
69
  | `indentLevel` | `number` | — | Left indent = `indentLevel * 20px` |
70
- | `renderHoverTooltip` | `() => JSX.Element` | — | Popover rendered on hover via `HoverTooltip`; wraps item in a `PropagationStopper` |
70
+ | `renderHoverTooltip` | `() => JSX.Element` | — | Popover rendered on hover and on keyboard focus of the row via `HoverTooltip` (`trigger={['hover', 'focus']}`); wraps item in a `PropagationStopper` |
71
71
  | `popoverProps` | `{ placement?, getPopupContainer?, offsetConfig?, flipConfig?, shiftConfig?, initialOpen? }` | — | Passed to `HoverTooltip`'s `Popover`; only used when `renderHoverTooltip` is set |
72
72
  | `onClick` | `ListItemEventHandler<MouseEvent \| KeyboardEvent>` | — | Receives `{ key, item, domEvent }` |
73
73
  | `onItemHover` | `ListItemEventHandler<MouseEvent>` | — | Fires on `mouseOver` |
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { NestedItemProps } from '../../ListItem.types';
3
- declare const Danger: React.ForwardRefExoticComponent<Omit<import('../../ListItem.types').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
- ItemComponent: React.ComponentType<import('../../ListItem.types').ListItemProps>;
3
+ declare const Danger: React.ForwardRefExoticComponent<Omit<import('../..').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
+ ItemComponent: React.ComponentType<import('../..').ListItemProps>;
5
5
  } & NestedItemProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export default Danger;
@@ -1,6 +1,7 @@
1
- import { FlipConfig, HoverConfig, OffsetConfig, ShiftConfig } from '@synerise/ds-popover';
1
+ import { FlipConfig, FocusConfig, HoverConfig, OffsetConfig, ShiftConfig } from '@synerise/ds-popover';
2
2
  export declare const TRANSITION_DURATION = 150;
3
3
  export declare const OFFSET_CONFIG: OffsetConfig;
4
4
  export declare const FLIP_CONFIG: FlipConfig;
5
5
  export declare const HOVER_CONFIG: HoverConfig;
6
+ export declare const FOCUS_CONFIG: FocusConfig;
6
7
  export declare const SHIFT_CONFIG: ShiftConfig;
@@ -9,11 +9,15 @@ const HOVER_CONFIG = {
9
9
  close: 400
10
10
  }
11
11
  };
12
+ const FOCUS_CONFIG = {
13
+ delay: 100
14
+ };
12
15
  const SHIFT_CONFIG = {
13
16
  crossAxis: true
14
17
  };
15
18
  export {
16
19
  FLIP_CONFIG,
20
+ FOCUS_CONFIG,
17
21
  HOVER_CONFIG,
18
22
  OFFSET_CONFIG,
19
23
  SHIFT_CONFIG,
@@ -2,8 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useCallback } from "react";
3
3
  import { useTheme } from "@synerise/ds-core";
4
4
  import { getPlacement, Popover, PopoverContent, PopoverTrigger } from "@synerise/ds-popover";
5
- import { TRANSITION_DURATION, HOVER_CONFIG, FLIP_CONFIG, OFFSET_CONFIG, SHIFT_CONFIG } from "./HoverTooltip.const.js";
5
+ import { TRANSITION_DURATION, FOCUS_CONFIG, HOVER_CONFIG, FLIP_CONFIG, OFFSET_CONFIG, SHIFT_CONFIG } from "./HoverTooltip.const.js";
6
6
  import { PropagationStopper } from "./HoverTooltip.styles.js";
7
+ const TRIGGER = ["hover", "focus"];
7
8
  const HoverTooltip = ({
8
9
  popoverProps,
9
10
  renderHoverTooltip,
@@ -16,7 +17,7 @@ const HoverTooltip = ({
16
17
  const popoverPlacement = getPlacement(popoverProps?.placement || "right");
17
18
  return (
18
19
  // onKeyDown is used to disallow propagating key events to tooltip's container element
19
- /* @__PURE__ */ jsx(PropagationStopper, { onKeyDown: cancelBubblingEvent, onClick: cancelBubblingEvent, children: /* @__PURE__ */ jsxs(Popover, { trigger: "hover", modal: false, componentId: "information-card", testId: "information-card", shiftConfig: SHIFT_CONFIG, offsetConfig: OFFSET_CONFIG, flipConfig: FLIP_CONFIG, hoverConfig: HOVER_CONFIG, transitionDuration: TRANSITION_DURATION, zIndex, ...popoverProps, placement: popoverPlacement, children: [
20
+ /* @__PURE__ */ jsx(PropagationStopper, { onKeyDown: cancelBubblingEvent, onClick: cancelBubblingEvent, children: /* @__PURE__ */ jsxs(Popover, { trigger: TRIGGER, modal: false, componentId: "information-card", testId: "information-card", shiftConfig: SHIFT_CONFIG, offsetConfig: OFFSET_CONFIG, flipConfig: FLIP_CONFIG, hoverConfig: HOVER_CONFIG, focusConfig: FOCUS_CONFIG, transitionDuration: TRANSITION_DURATION, zIndex, ...popoverProps, placement: popoverPlacement, children: [
20
21
  /* @__PURE__ */ jsx(PopoverContent, { children: renderHoverTooltip && renderHoverTooltip() }),
21
22
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style: {
22
23
  position: "relative",
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { NestedItemProps } from '../../ListItem.types';
3
- declare const Select: React.ForwardRefExoticComponent<Omit<import('../../ListItem.types').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
- ItemComponent: React.ComponentType<import('../../ListItem.types').ListItemProps>;
3
+ declare const Select: React.ForwardRefExoticComponent<Omit<import('../..').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
+ ItemComponent: React.ComponentType<import('../..').ListItemProps>;
5
5
  } & NestedItemProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export default Select;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { NestedItemProps } from '../../ListItem.types';
3
- declare const Text: React.ForwardRefExoticComponent<Omit<import('../../ListItem.types').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
- ItemComponent: React.ComponentType<import('../../ListItem.types').ListItemProps>;
3
+ declare const Text: React.ForwardRefExoticComponent<Omit<import('../..').ListItemProps, "level" | "higher" | "text" | "type"> & {
4
+ ItemComponent: React.ComponentType<import('../..').ListItemProps>;
5
5
  } & NestedItemProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export default Text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-list-item",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "ListItem UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,12 +43,12 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
45
  "@floating-ui/react": "^0.27.16",
46
- "@synerise/ds-button": "^2.2.0",
47
- "@synerise/ds-divider": "^2.1.0",
48
- "@synerise/ds-icon": "^2.3.0",
49
- "@synerise/ds-popover": "^2.2.0",
50
- "@synerise/ds-tooltip": "^2.1.0",
51
- "@synerise/ds-utils": "^2.3.0",
46
+ "@synerise/ds-button": "^2.2.1",
47
+ "@synerise/ds-divider": "^2.1.1",
48
+ "@synerise/ds-icon": "^2.3.1",
49
+ "@synerise/ds-popover": "^2.3.0",
50
+ "@synerise/ds-tooltip": "^2.1.1",
51
+ "@synerise/ds-utils": "^2.3.1",
52
52
  "classnames": "^2.5.1"
53
53
  },
54
54
  "peerDependencies": {
@@ -62,5 +62,5 @@
62
62
  "@testing-library/react": "^14.0.0",
63
63
  "vitest": "^4.0.0"
64
64
  },
65
- "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
65
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
66
66
  }