@synerise/ds-tags 2.0.13 → 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,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.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@2.0.14...@synerise/ds-tags@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
+
17
+ ## [2.0.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@2.0.13...@synerise/ds-tags@2.0.14) (2026-10-28)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-tags
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@2.0.12...@synerise/ds-tags@2.0.13) (2026-10-26)
7
26
 
8
27
 
package/CLAUDE.md CHANGED
@@ -130,7 +130,7 @@ import type { TagsProps } from '@synerise/ds-tags';
130
130
 
131
131
  - Root container: `display: flex; margin-bottom: 24px` — the bottom margin is always applied.
132
132
  - Tags wrap via `flex-wrap: wrap`; each tag sits inside a `32px`-height overflow div.
133
- - The `LimitedTags` "+N" pill uses `grey-100` background / `grey-700` text and is always rendered `asPill`.
133
+ - The `LimitedTags` "+N" pill uses `var(--ds-tag-more-bg)` background / `var(--ds-tag-more-text)` text and is always rendered `asPill`.
134
134
  - Dropdown tag list has a hardcoded `max-height: 320px` (inside `DropdownTagsContainer`); use `maxHeight` prop on `Tags` to override the scrollable container height.
135
135
 
136
136
  ## Key dependencies
@@ -144,7 +144,7 @@ import type { TagsProps } from '@synerise/ds-tags';
144
144
  | `@synerise/ds-result` | "No results" empty-state inside the dropdown |
145
145
  | `@synerise/ds-scrollbar` | Scrollable container in `TagsDropdown` |
146
146
  | `@synerise/ds-button` | Add-tag trigger button and create-tag button |
147
- | `@synerise/ds-core` | `useTheme` hook for palette tokens |
147
+ | `@synerise/ds-core` | `useTheme` hook for the `zindex-dropdown` value (`theme.variables`) |
148
148
 
149
149
  ## Implementation notes
150
150
 
@@ -19,7 +19,7 @@ const TagsWrapper = /* @__PURE__ */ styled.div.withConfig({
19
19
  const Title = /* @__PURE__ */ styled.div.withConfig({
20
20
  displayName: "Tagsstyles__Title",
21
21
  componentId: "sc-156lf0a-4"
22
- })(["color:", ";font-weight:500;display:block;margin:6px 4px 0 0;"], (props) => props.theme.palette["grey-800"]);
22
+ })(["color:var(--ds-color-text-base-default);font-weight:500;display:block;margin:6px 4px 0 0;"]);
23
23
  const SelectedTags = /* @__PURE__ */ styled.div.withConfig({
24
24
  displayName: "Tagsstyles__SelectedTags",
25
25
  componentId: "sc-156lf0a-5"
@@ -1,6 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useRef, useState, useEffect } from "react";
3
- import { useTheme } from "@synerise/ds-core";
4
3
  import Icon, { Add3M, SearchM } from "@synerise/ds-icon";
5
4
  import Result from "@synerise/ds-result";
6
5
  import SearchBar from "@synerise/ds-search-bar";
@@ -20,7 +19,6 @@ const AddTags = ({
20
19
  onCreate,
21
20
  addButtonType
22
21
  }) => {
23
- const theme = useTheme();
24
22
  const searchRef = useRef(null);
25
23
  const [searchQuery, setSearchQuery] = useState("");
26
24
  const [isTagAddDropdownOpen, setIsTagAddDropdownOpen] = useState(false);
@@ -53,13 +51,13 @@ const AddTags = ({
53
51
  }, [isTagAddDropdownOpen]);
54
52
  return /* @__PURE__ */ jsx(TagsDropdown, { tags: selectablePool, trigger: ["click"], maxHeight, placement: overlayPlacement, open: isTagAddDropdownOpen, onOpenChange: setIsTagAddDropdownOpen, overlayStyle, tagShape, onTagClick: onPoolTagSelect, dropdownFooter, componentId: "tags-add", aboveTagsContent: isCreatable && /* @__PURE__ */ jsxs(Fragment, { children: [
55
53
  /* @__PURE__ */ jsxs(CreateTagDropdownButton, { "data-testid": "ds-tags-create-button", type: "ghost", mode: "icon-label", onClick: onCreateNewTag, marginless: !isSeparated, children: [
56
- /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Add3M, {}), size: 24, color: theme.palette["grey-500"] }),
54
+ /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Add3M, {}), size: 24 }),
57
55
  /* @__PURE__ */ jsx("span", { children: texts.createTagButtonLabel }),
58
56
  /* @__PURE__ */ jsx("strong", { children: searchQuery })
59
57
  ] }),
60
58
  isSeparated && /* @__PURE__ */ jsx(Separator, {})
61
- ] }), noTagsContent: /* @__PURE__ */ jsx(Result, { type: "no-results", description: noTagsContentLabel || "No results" }), dropdownHeader: /* @__PURE__ */ jsx(SearchBar, { handleInputRef: (ref) => searchRef.current = ref.current, value: searchQuery, onSearchChange: setSearchQuery, placeholder: texts.searchPlaceholder || "", iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}), color: theme.palette["grey-600"] }), onClearInput: () => setSearchQuery(""), clearTooltip: texts.clearTooltip }), children: /* @__PURE__ */ jsxs(AddTagButton, { isOpen: isTagAddDropdownOpen, type: "ghost", mode: addButtonType || (texts?.addButtonLabel ? "icon-label" : "single-icon"), children: [
62
- /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Add3M, {}), size: 24, color: theme.palette["grey-500"] }),
59
+ ] }), noTagsContent: /* @__PURE__ */ jsx(Result, { type: "no-results", description: noTagsContentLabel || "No results" }), dropdownHeader: /* @__PURE__ */ jsx(SearchBar, { handleInputRef: (ref) => searchRef.current = ref.current, value: searchQuery, onSearchChange: setSearchQuery, placeholder: texts.searchPlaceholder || "", iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}) }), onClearInput: () => setSearchQuery(""), clearTooltip: texts.clearTooltip }), children: /* @__PURE__ */ jsxs(AddTagButton, { isOpen: isTagAddDropdownOpen, type: "ghost", mode: addButtonType || (texts?.addButtonLabel ? "icon-label" : "single-icon"), children: [
60
+ /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Add3M, {}), size: 24 }),
63
61
  addButtonType !== "single-icon" && texts.addButtonLabel
64
62
  ] }) });
65
63
  };
@@ -8,7 +8,7 @@ const CreateTagDropdownButton = /* @__PURE__ */ styled(Button).withConfig({
8
8
  const Separator = /* @__PURE__ */ styled.hr.withConfig({
9
9
  displayName: "AddTagsstyles__Separator",
10
10
  componentId: "sc-1wg5ubr-1"
11
- })(["width:auto;margin:0;padding:0;padding-bottom:8px;border:0;height:1px;background-image:linear-gradient( to right,", " 33%,rgba(255,255,255,0) 0% );background-repeat:repeat-x;background-size:4px 1px;background-position:top;"], (props) => props.theme.palette["grey-300"]);
11
+ })(["width:auto;margin:0;padding:0;padding-bottom:8px;border:0;height:1px;background-image:linear-gradient( to right,var(--ds-color-border-base-strong) 33%,transparent 0% );background-repeat:repeat-x;background-size:4px 1px;background-position:top;"]);
12
12
  const AddTagButton = /* @__PURE__ */ styled(Button).withConfig({
13
13
  displayName: "AddTagsstyles__AddTagButton",
14
14
  componentId: "sc-1wg5ubr-2"
@@ -14,7 +14,7 @@ const LimitedTags = ({
14
14
  const theme = useTheme();
15
15
  return /* @__PURE__ */ jsx(TagsDropdown, { tags: limitedSelectedTags, trigger: ["hover"], tagShape, removable, onRemove: removable ? onRemove : void 0, disabled, componentId: "tags-limited", asPill: true, overlayStyle: {
16
16
  zIndex: parseInt(theme.variables["zindex-dropdown"], 10) + 1
17
- }, children: /* @__PURE__ */ jsx(LimitedTag, { id: "limited-tags", shape: tagShape, color: theme.palette["grey-100"], textColor: theme.palette["grey-700"], name: `+${limitedSelectedTags.length}`, asPill: true }) });
17
+ }, children: /* @__PURE__ */ jsx(LimitedTag, { id: "limited-tags", shape: tagShape, color: "var(--ds-tag-more-bg)", textColor: "var(--ds-tag-more-text)", name: `+${limitedSelectedTags.length}`, asPill: true }) });
18
18
  };
19
19
  export {
20
20
  LimitedTags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-tags",
3
- "version": "2.0.13",
3
+ "version": "2.1.0",
4
4
  "description": "Tags UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,16 +42,16 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-button": "^2.1.5",
46
- "@synerise/ds-dropdown": "^2.1.7",
47
- "@synerise/ds-icon": "^2.2.3",
48
- "@synerise/ds-information-card": "^2.0.13",
49
- "@synerise/ds-result": "^2.0.10",
50
- "@synerise/ds-scrollbar": "^2.0.9",
51
- "@synerise/ds-search-bar": "^2.0.11",
52
- "@synerise/ds-tag": "^2.0.10",
53
- "@synerise/ds-tooltip": "^2.0.10",
54
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-button": "^2.2.0",
46
+ "@synerise/ds-dropdown": "^2.2.0",
47
+ "@synerise/ds-icon": "^2.3.0",
48
+ "@synerise/ds-information-card": "^2.1.0",
49
+ "@synerise/ds-result": "^2.1.0",
50
+ "@synerise/ds-scrollbar": "^2.1.0",
51
+ "@synerise/ds-search-bar": "^2.1.0",
52
+ "@synerise/ds-tag": "^2.1.0",
53
+ "@synerise/ds-tooltip": "^2.1.0",
54
+ "@synerise/ds-utils": "^2.3.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@testing-library/user-event": "^14",
@@ -62,5 +62,5 @@
62
62
  "react": ">=16.9.0 <= 18.3.1",
63
63
  "styled-components": "^5.3.3"
64
64
  },
65
- "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
65
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
66
66
  }