@synerise/ds-list-item 2.3.0 → 2.4.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 +3 -3
- package/dist/components/Danger/Danger.d.ts +2 -2
- package/dist/components/HoverTooltip/HoverTooltip.const.d.ts +2 -1
- package/dist/components/HoverTooltip/HoverTooltip.const.js +4 -0
- package/dist/components/HoverTooltip/HoverTooltip.js +3 -2
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +2 -2
- package/package.json +8 -8
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.4.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.4.0...@synerise/ds-list-item@2.4.1) (2026-11-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-list-item
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **item-picker:** add a mixed list mode and open row cards on keyboard focus ([7237582](https://github.com/Synerise/synerise-design/commit/7237582567e8ab83877b945f7fd5a072b9858ee6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [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
26
|
|
|
8
27
|
|
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
|
|
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('
|
|
4
|
-
ItemComponent: React.ComponentType<import('
|
|
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;
|
|
@@ -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:
|
|
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('
|
|
4
|
-
ItemComponent: React.ComponentType<import('
|
|
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('
|
|
4
|
-
ItemComponent: React.ComponentType<import('
|
|
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
|
+
"version": "2.4.1",
|
|
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.
|
|
47
|
-
"@synerise/ds-divider": "^2.1.
|
|
48
|
-
"@synerise/ds-icon": "^2.3.
|
|
49
|
-
"@synerise/ds-popover": "^2.
|
|
50
|
-
"@synerise/ds-tooltip": "^2.1.
|
|
51
|
-
"@synerise/ds-utils": "^2.3.
|
|
46
|
+
"@synerise/ds-button": "^2.2.2",
|
|
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": "
|
|
65
|
+
"gitHead": "4547f33b8c9317ccc697f89a2b2c62bcf97fbec3"
|
|
66
66
|
}
|