@synerise/ds-sidebar 1.1.51 → 2.0.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,10 @@
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.0.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sidebar@1.1.51...@synerise/ds-sidebar@2.0.0) (2026-08-26)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-sidebar
9
+
6
10
  ## [1.1.51](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sidebar@1.1.50...@synerise/ds-sidebar@1.1.51) (2026-08-18)
7
11
 
8
12
  **Note:** Version bump only for package @synerise/ds-sidebar
package/CLAUDE.md CHANGED
@@ -69,7 +69,7 @@ A non-collapsible sidebar header variant with a title label and a ghost button t
69
69
 
70
70
  | Prop | Type | Default | Description |
71
71
  |------|------|---------|-------------|
72
- | `dataSource` | `MenuItemProps[]` | — | **Required.** Menu items in the dropdown |
72
+ | `dataSource` | `ListItemProps[]` | — | **Required.** List items in the dropdown |
73
73
  | `buttonLabel` | `string` | — | Button text |
74
74
  | `title` | `string` | — | Title text on the left |
75
75
 
@@ -108,7 +108,7 @@ import Sidebar from '@synerise/ds-sidebar';
108
108
  - DS-native `Collapse` / `CollapsePanel` (`src/Collapse/`) — the accordion engine (no antd)
109
109
  - `@synerise/ds-sortable` — `SortableContainer`, `DragOverlay`, `useSortable`, `CSS`
110
110
  - `@synerise/ds-icon` — expand icons (`AngleDownS`, `AngleUpS`) and drag handle (`DragHandleM`)
111
- - `@synerise/ds-dropdown`, `@synerise/ds-menu`, `@synerise/ds-button` — used by `SidebarWithButton`
111
+ - `@synerise/ds-dropdown`, `@synerise/ds-list-item`, `@synerise/ds-button` — used by `SidebarWithButton`
112
112
 
113
113
  ## Implementation notes
114
114
 
package/README.md CHANGED
@@ -54,6 +54,6 @@ import Sidebar from '@synerise/ds-sidebar'
54
54
 
55
55
  | Property | Description | Type | Default |
56
56
  | ----------- | ----------------------------- | -------------- | ------- |
57
- | dataSource | data of all items in dropdown | MenuItemProps[] | - |
57
+ | dataSource | data of all items in dropdown | ListItemProps[] | - |
58
58
  | buttonLabel | prop to show text of button | string | - |
59
59
  | title | prop to show title | string | - |
@@ -3,7 +3,7 @@ import { useState, useRef } from "react";
3
3
  import Button from "@synerise/ds-button";
4
4
  import Dropdown from "@synerise/ds-dropdown";
5
5
  import Icon, { AngleDownS } from "@synerise/ds-icon";
6
- import Menu from "@synerise/ds-menu";
6
+ import ListItem, { ListWrapper } from "@synerise/ds-list-item";
7
7
  import { useOnClickOutside } from "@synerise/ds-utils";
8
8
  import { SidebarWithButtonWrapper, TextWrapper } from "./SidebarWithButton.styles.js";
9
9
  const SidebarWithButton = ({
@@ -22,9 +22,9 @@ const SidebarWithButton = ({
22
22
  borderRadius: "3px"
23
23
  }, open: dropdownVisible, placement: "bottomLeft", size: 220, popoverProps: {
24
24
  testId: "sidebar-menu"
25
- }, asChild: true, overlay: /* @__PURE__ */ jsx(Dropdown.Wrapper, { ref, children: /* @__PURE__ */ jsx(Menu, { dataSource, asDropdownMenu: true, style: {
25
+ }, asChild: true, overlay: /* @__PURE__ */ jsx(Dropdown.Wrapper, { ref, children: /* @__PURE__ */ jsx(ListWrapper, { style: {
26
26
  width: "100%"
27
- } }) }), children: /* @__PURE__ */ jsxs(Button, { onClick: () => setDropdownVisible(!dropdownVisible), type: "ghost-primary", mode: "label-icon", children: [
27
+ }, children: dataSource.map((item, index) => /* @__PURE__ */ jsx(ListItem, { ...item }, item.itemKey ?? item.key ?? index)) }) }), children: /* @__PURE__ */ jsxs(Button, { onClick: () => setDropdownVisible(!dropdownVisible), type: "ghost-primary", mode: "label-icon", children: [
28
28
  buttonLabel,
29
29
  /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleDownS, {}) })
30
30
  ] }) })
@@ -1,6 +1,6 @@
1
- import { MenuItemProps } from '@synerise/ds-menu';
1
+ import { ListItemProps } from '@synerise/ds-list-item';
2
2
  export type SidebarWithButtonProps = {
3
- dataSource: MenuItemProps[];
3
+ dataSource: ListItemProps[];
4
4
  buttonLabel?: string;
5
5
  title?: string;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-sidebar",
3
- "version": "1.1.51",
3
+ "version": "2.0.0",
4
4
  "description": "Sidebar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,12 +42,12 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-button": "^1.5.37",
46
- "@synerise/ds-dropdown": "^1.4.0",
47
- "@synerise/ds-icon": "^1.18.5",
48
- "@synerise/ds-menu": "^1.4.34",
49
- "@synerise/ds-sortable": "^1.3.21",
50
- "@synerise/ds-utils": "^1.10.2",
45
+ "@synerise/ds-button": "^2.0.0",
46
+ "@synerise/ds-dropdown": "^2.0.0",
47
+ "@synerise/ds-icon": "^2.0.0",
48
+ "@synerise/ds-list-item": "^2.0.0",
49
+ "@synerise/ds-sortable": "^2.0.0",
50
+ "@synerise/ds-utils": "^2.0.0",
51
51
  "classnames": "^2.5.1"
52
52
  },
53
53
  "peerDependencies": {
@@ -56,5 +56,5 @@
56
56
  "styled-components": "^5.3.3",
57
57
  "vitest": "4"
58
58
  },
59
- "gitHead": "e1fece64a41fd18a78583ecb6c21ee00fe8c0759"
59
+ "gitHead": "033854a18f038079e9a16b0ff250f8401a2287c2"
60
60
  }