@synerise/ds-column-manager 2.0.12 → 2.1.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.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-column-manager@2.0.12...@synerise/ds-column-manager@2.1.0) (2026-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.0.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-column-manager@2.0.11...@synerise/ds-column-manager@2.0.12) (2026-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-column-manager
package/CLAUDE.md CHANGED
@@ -120,9 +120,9 @@ const [columns, setColumns] = useState<MyColumn[]>([
120
120
  ## Styling
121
121
 
122
122
  - `ColumnManager.styles.ts` — styled `@synerise/ds-drawer` wrapper (fixed width `338px`), styled `@synerise/ds-search-bar` (height `52px`), flex list wrapper.
123
- - `ColumnManagerItem.styles.ts` — hover reveals drag handle (opacity transition), adds `grey-050` background and a `blue-600` left border on hover.
124
- - `ColumnManager.style.ts` (list) — `FixedSizeList` gets `blue-050` background and `blue-600` inset box-shadow; `user-select: none` when `isDragging`.
125
- - All colours via `theme.palette` tokens; no hardcoded hex values.
123
+ - `ColumnManagerItem.styles.ts` — hover reveals drag handle (opacity transition), adds `--ds-color-background-base-defaulthover` background and a 2px `--ds-color-background-brand-solid` left bar (`::before`) on hover.
124
+ - `ColumnManager.style.ts` (list) — `FixedSizeList` gets `--ds-color-background-brand-subtle` background and a `--ds-color-border-brand-default` inset box-shadow; `user-select: none` when `isDragging`.
125
+ - All colours via `var(--ds-*)` tokens; no hardcoded hex values.
126
126
 
127
127
  ## Custom hooks
128
128
 
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useMemo } from "react";
3
3
  import Button from "@synerise/ds-button";
4
- import { useTheme } from "@synerise/ds-core";
5
4
  import Drawer from "@synerise/ds-drawer";
6
5
  import Icon, { CloseM, SearchM } from "@synerise/ds-icon";
7
6
  import { Title } from "@synerise/ds-typography";
@@ -21,7 +20,6 @@ const ColumnManager = ({
21
20
  const [searchQuery, setSearchQuery] = useState("");
22
21
  const [currentColumns, setCurrentColumns] = useState(columns);
23
22
  const texts = useTranslations(customTexts);
24
- const theme = useTheme();
25
23
  useEffect(() => {
26
24
  setCurrentColumns(columns);
27
25
  }, [columns]);
@@ -66,7 +64,7 @@ const ColumnManager = ({
66
64
  marginLeft: "8px"
67
65
  }, mode: "single-icon", type: "ghost", onClick: hide, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(CloseM, {}) }) })
68
66
  ] }) }),
69
- /* @__PURE__ */ jsx(SearchBar, { onSearchChange: handleSearchChange, placeholder: texts.searchPlaceholder, value: searchQuery, onClearInput: () => handleSearchChange(""), iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}), color: theme.palette["grey-600"] }), clearTooltip: texts.searchClearTooltip || "" }),
67
+ /* @__PURE__ */ jsx(SearchBar, { onSearchChange: handleSearchChange, placeholder: texts.searchPlaceholder, value: searchQuery, onClearInput: () => handleSearchChange(""), iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}) }), clearTooltip: texts.searchClearTooltip || "" }),
70
68
  /* @__PURE__ */ jsx(ColumnManagerListWrapper, { children: /* @__PURE__ */ jsx(Drawer.DrawerContent, { style: {
71
69
  padding: "0",
72
70
  height: "100%"
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  const ColumnManagerActions = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "ColumnManagerActionsstyles__ColumnManagerActions",
4
4
  componentId: "sc-1vmwevx-0"
5
- })(["display:flex;flex:0 0 80px;flex-direction:row;align-items:center;justify-content:flex-end;background-color:", ";padding:24px;"], (props) => props.theme.palette["grey-050"]);
5
+ })(["display:flex;flex:0 0 80px;flex-direction:row;align-items:center;justify-content:flex-end;background-color:var(--ds-color-background-base-subtle);padding:24px;"]);
6
6
  const RightButtons = /* @__PURE__ */ styled.div.withConfig({
7
7
  displayName: "ColumnManagerActionsstyles__RightButtons",
8
8
  componentId: "sc-1vmwevx-1"
@@ -1,6 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { useTheme } from "@synerise/ds-core";
4
3
  import Icon, { DragHandleM } from "@synerise/ds-icon";
5
4
  import { RawSwitch } from "@synerise/ds-switch";
6
5
  import Tooltip from "@synerise/ds-tooltip";
@@ -18,7 +17,6 @@ const ColumnManagerItem = ({
18
17
  isDragged,
19
18
  ...rest
20
19
  }) => {
21
- const theme = useTheme();
22
20
  const iconComponent = ICON_MAP[item.type && TYPES_WITH_ICONS.includes(item.type) ? item.type : DEFAULT_ITEM_TYPE];
23
21
  const columnName = useMemo(() => {
24
22
  if (searchQuery) {
@@ -31,8 +29,8 @@ const ColumnManagerItem = ({
31
29
  }, [item.name, searchQuery]);
32
30
  return /* @__PURE__ */ jsxs(ColumnManagerItem$1, { "data-testid": "ds-column-manager-item", isDragged, ...rest, children: [
33
31
  /* @__PURE__ */ jsxs(ItemPart, { align: "left", children: [
34
- draggable && /* @__PURE__ */ jsx(DragHandler, { component: /* @__PURE__ */ jsx(DragHandleM, {}), color: theme.palette["grey-400"], ...dragHandleProps?.attributes, ...dragHandleProps?.listeners }),
35
- /* @__PURE__ */ jsx(Icon, { component: iconComponent, color: theme.palette["grey-600"] }),
32
+ draggable && /* @__PURE__ */ jsx(DragHandler, { component: /* @__PURE__ */ jsx(DragHandleM, {}), color: "var(--ds-color-icon-base-muted)", ...dragHandleProps?.attributes, ...dragHandleProps?.listeners }),
33
+ /* @__PURE__ */ jsx(Icon, { component: iconComponent, color: "var(--ds-color-icon-base-default)" }),
36
34
  /* @__PURE__ */ jsx(ColumnManagerItemName, { dangerouslySetInnerHTML: {
37
35
  __html: columnName
38
36
  } })
@@ -15,13 +15,13 @@ const ItemPart = /* @__PURE__ */ styled.div.withConfig({
15
15
  const ColumnManagerItem = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "ColumnManagerItemstyles__ColumnManagerItem",
17
17
  componentId: "sc-12ob8aa-3"
18
- })(["display:flex;flex-direction:row;align-items:center;height:56px;justify-content:space-between;width:100%;padding:13px 24px;position:relative;background:", ";border-bottom:1px solid ", ";", " &:hover{background-color:", ";&:before{width:2px;position:absolute;top:0;left:0;height:100%;background-color:", ";content:'';}", "{opacity:1;}", "{display:none;}&&{.ds-button{visibility:visible;opacity:1;}}}&&{.ds-button{position:absolute;right:36px;top:12px;display:flex;visibility:hidden;opacity:0;transition:all 0s;}}"], (props) => props.theme.palette.white, (props) => props.theme.palette["grey-200"], (props) => props.isDragged && `
18
+ })(["display:flex;flex-direction:row;align-items:center;height:56px;justify-content:space-between;width:100%;padding:13px 24px;position:relative;background:var(--ds-color-background-base-default);border-bottom:1px solid var(--ds-color-border-base-default);", " &:hover{background-color:var(--ds-color-background-base-defaulthover);&:before{width:2px;position:absolute;top:0;left:0;height:100%;background-color:var(--ds-color-background-brand-solid);content:'';}", "{opacity:1;}", "{display:none;}&&{.ds-button{visibility:visible;opacity:1;}}}&&{.ds-button{position:absolute;right:36px;top:12px;display:flex;visibility:hidden;opacity:0;transition:all 0s;}}"], (props) => props.isDragged && `
19
19
  opacity: 0;
20
- `, (props) => props.theme.palette["grey-050"], (props) => props.theme.palette["blue-600"], DragHandler, Icons);
20
+ `, DragHandler, Icons);
21
21
  const ColumnManagerItemName = /* @__PURE__ */ styled.span.withConfig({
22
22
  displayName: "ColumnManagerItemstyles__ColumnManagerItemName",
23
23
  componentId: "sc-12ob8aa-4"
24
- })(["font-size:13px;line-height:1.38;color:", ";margin-left:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;.search-highlight{font-weight:500;color:", ";}"], (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-800"]);
24
+ })(["font-size:13px;line-height:1.38;color:var(--ds-color-text-base-muted);margin-left:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;.search-highlight{font-weight:500;color:var(--ds-color-text-base-default);}"]);
25
25
  export {
26
26
  ColumnManagerItem,
27
27
  ColumnManagerItemName,
@@ -7,11 +7,11 @@ const ColumnManagerList = /* @__PURE__ */ styled.div.withConfig({
7
7
  const ListHeadline = /* @__PURE__ */ styled.span.withConfig({
8
8
  displayName: "ColumnManagerstyle__ListHeadline",
9
9
  componentId: "sc-8vnyk-1"
10
- })(["display:flex;width:100%;font-size:14px;line-height:1.42;font-weight:500;padding:24px 24px 12px;border-bottom:1px solid ", ";color:", ";"], (props) => props.theme.palette["grey-200"], (props) => props.theme.palette["grey-800"]);
10
+ })(["display:flex;width:100%;font-size:14px;line-height:1.42;font-weight:500;padding:24px 24px 12px;border-bottom:1px solid var(--ds-color-border-base-default);color:var(--ds-color-text-base-default);"]);
11
11
  const List = /* @__PURE__ */ styled(FixedSizeList).withConfig({
12
12
  displayName: "ColumnManagerstyle__List",
13
13
  componentId: "sc-8vnyk-2"
14
- })(["overflow-x:unset;overflow-y:unset;height:auto !important;background:", ";box-shadow:2px 0 0 0 ", " inset;", " ", ""], (props) => props.theme.palette["blue-050"], (props) => props.theme.palette["blue-600"], (props) => props.maxHeight !== void 0 && `max-height: ${props.maxHeight}px;`, (props) => props.isDragging && `user-select: none;`);
14
+ })(["overflow-x:unset;overflow-y:unset;height:auto !important;background:var(--ds-color-background-brand-subtle);box-shadow:2px 0 0 0 var(--ds-color-border-brand-default) inset;", " ", ""], (props) => props.maxHeight !== void 0 && `max-height: ${props.maxHeight}px;`, (props) => props.isDragging && `user-select: none;`);
15
15
  export {
16
16
  ColumnManagerList,
17
17
  List,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-column-manager",
3
- "version": "2.0.12",
3
+ "version": "2.1.0",
4
4
  "description": "ColumnManager UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,17 +39,17 @@
39
39
  "sideEffects": false,
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
- "@synerise/ds-button": "^2.1.6",
43
- "@synerise/ds-drawer": "^2.0.6",
44
- "@synerise/ds-icon": "^2.2.3",
45
- "@synerise/ds-result": "^2.0.11",
46
- "@synerise/ds-scrollbar": "^2.0.9",
47
- "@synerise/ds-search-bar": "^2.0.12",
48
- "@synerise/ds-sortable": "^2.0.5",
49
- "@synerise/ds-switch": "^2.0.11",
50
- "@synerise/ds-tooltip": "^2.0.11",
51
- "@synerise/ds-typography": "^2.0.11",
52
- "@synerise/ds-utils": "^2.2.2",
42
+ "@synerise/ds-button": "^2.2.0",
43
+ "@synerise/ds-drawer": "^2.1.0",
44
+ "@synerise/ds-icon": "^2.3.0",
45
+ "@synerise/ds-result": "^2.1.0",
46
+ "@synerise/ds-scrollbar": "^2.1.0",
47
+ "@synerise/ds-search-bar": "^2.1.0",
48
+ "@synerise/ds-sortable": "^2.1.0",
49
+ "@synerise/ds-switch": "^2.1.0",
50
+ "@synerise/ds-tooltip": "^2.1.0",
51
+ "@synerise/ds-typography": "^2.1.0",
52
+ "@synerise/ds-utils": "^2.3.0",
53
53
  "react-window": "1.8.11"
54
54
  },
55
55
  "devDependencies": {
@@ -61,5 +61,5 @@
61
61
  "react-intl": ">=3.12.0 <= 6.8",
62
62
  "styled-components": "^5.3.3"
63
63
  },
64
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
64
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
65
65
  }