@synerise/ds-select 2.1.8 → 2.2.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 +11 -0
- package/CLAUDE.md +5 -4
- package/dist/Select.styles.js +11 -11
- package/package.json +10 -10
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.2.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@2.1.8...@synerise/ds-select@2.2.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.1.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@2.1.7...@synerise/ds-select@2.1.8) (2026-10-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-select
|
package/CLAUDE.md
CHANGED
|
@@ -64,10 +64,10 @@ sub-component: **`Select.Option`** (the DS `Option` marker). `Select.OptGroup` i
|
|
|
64
64
|
| `error` | `boolean` | `undefined` | Error visual state without a message. |
|
|
65
65
|
| `clearTooltip` | `string` | `undefined` | Tooltip on hover of the clear (×) control. |
|
|
66
66
|
| `prefixel` / `suffixel` | `ReactNode` | `undefined` | Addon nodes attached left/right of the selector (shared border). |
|
|
67
|
-
| `grey` | `boolean` | `undefined` | `
|
|
67
|
+
| `grey` | `boolean` | `undefined` | `var(--ds-color-background-base-subtle)` selector background when not in error state. |
|
|
68
68
|
| `asFormElement` | `boolean` | `undefined` | Forces a 16 px bottom margin even without `errorText`/`description`. |
|
|
69
69
|
| `raw` | `boolean` | `undefined` | Skips the `FormField` wrapper — renders only the selector; `ref` attaches to `SelectWrapper`. |
|
|
70
|
-
| `readOnly` | `boolean` | `undefined` | Non-interactive with readable styling (
|
|
70
|
+
| `readOnly` | `boolean` | `undefined` | Non-interactive with readable styling (`var(--ds-form-field-bg-default)` bg, `default` cursor, `var(--ds-form-field-text-value)` text). |
|
|
71
71
|
| `disabled` | `boolean` | `undefined` | Standard disabled state; ORed with `readOnly` to block interaction. |
|
|
72
72
|
| `selectorStyle` | `CSSObject` | `undefined` | Inline style object applied to the `Selector` box. |
|
|
73
73
|
| `listHeight` | `number \| string` | `256` | Max dropdown list height (px); also the windowed viewport height. |
|
|
@@ -128,9 +128,10 @@ const { Option } = Select;
|
|
|
128
128
|
- `SelectWrapper` (`.ds-select-wrapper`) — the flex row (selector + addons); carries the root
|
|
129
129
|
`onFocus`/`onBlur`/`onClick` and `data-*`/`aria-*` passthrough.
|
|
130
130
|
- `Selector` (`.ds-select`) — the trigger box; `large` height, `withPrefixel`/`withSuffixel`
|
|
131
|
-
border-radius removal, open/focus ring (
|
|
131
|
+
border-radius removal, open/focus ring (`--ds-form-field-border-focus`/`--ds-form-field-bg-focus`), error
|
|
132
|
+
(`--ds-form-field-border-validated`/`--ds-form-field-bg-validated`),
|
|
132
133
|
`readOnly` vs `disabled` differentiation, and the `selectorStyle` interpolation.
|
|
133
|
-
- `PrefixWrapper` / `SuffixWrapper` — `
|
|
134
|
+
- `PrefixWrapper` / `SuffixWrapper` — `var(--ds-form-field-affix-*)` addons with flush border join.
|
|
134
135
|
- Dropdown / options: `DropdownWrapper`, `ScrollList`, `Inner` (`role="listbox"`), `OptionItem`
|
|
135
136
|
(styled `ds-list-item`), `NotFound`, `Loading`. Selector content: `SelectionItem`, `Placeholder`,
|
|
136
137
|
`MultiValueArea`, `Chip`/`ChipLabel`/`ChipRemove`, `Arrow`, `ClearWrapper`, `SearchInputEl`.
|
package/dist/Select.styles.js
CHANGED
|
@@ -4,7 +4,7 @@ const HEIGHT = {
|
|
|
4
4
|
large: 48,
|
|
5
5
|
default: 32
|
|
6
6
|
};
|
|
7
|
-
const addonStyles = /* @__PURE__ */ css(["display:flex;align-items:center;background:
|
|
7
|
+
const addonStyles = /* @__PURE__ */ css(["display:flex;align-items:center;background:var(--ds-form-field-affix-bg);box-shadow:inset 0 0 0 1px var(--ds-form-field-affix-border);color:var(--ds-form-field-affix-text);font-size:13px;line-height:1.39;"]);
|
|
8
8
|
const SelectContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
9
9
|
displayName: "Selectstyles__SelectContainer",
|
|
10
10
|
componentId: "sc-n9lk0v-0"
|
|
@@ -24,10 +24,10 @@ const SuffixWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
|
24
24
|
const Selector = /* @__PURE__ */ styled.div.withConfig({
|
|
25
25
|
displayName: "Selectstyles__Selector",
|
|
26
26
|
componentId: "sc-n9lk0v-4"
|
|
27
|
-
})(["position:relative;display:flex;align-items:center;width:100%;min-width:0;box-sizing:border-box;", " border:1px solid
|
|
27
|
+
})(["position:relative;display:flex;align-items:center;width:100%;min-width:0;box-sizing:border-box;", " border:1px solid var(--ds-form-field-border-default);border-radius:3px;background-color:", ";color:var(--ds-form-field-text-value);font-size:13px;cursor:pointer;transition:all 0.3s;", " ", " ", " ", " ", " ", " ", " ", ""], (props) => {
|
|
28
28
|
const h = HEIGHT[props.$size ?? "default"] ?? HEIGHT.default;
|
|
29
29
|
return props.$multiple ? css(["min-height:", "px;height:auto;padding:3px 30px 3px 8px;flex-wrap:wrap;gap:4px;"], h) : css(["height:", "px;padding:0 30px 0 12px;"], h);
|
|
30
|
-
}, (props) => props
|
|
30
|
+
}, (props) => props.$grey ? "var(--ds-color-background-base-subtle)" : "var(--ds-form-field-bg-default)", (props) => props.$withPrefixel && css(["border-top-left-radius:0;border-bottom-left-radius:0;"]), (props) => props.$withSuffixel && css(["border-top-right-radius:0;border-bottom-right-radius:0;"]), (props) => !props.$open && !props.$error && css(["&:hover{border-color:var(--ds-form-field-border-hover);}"]), (props) => props.$clearable && css(["&:hover .ds-select-arrow{display:none;}&:hover .ds-select-clear{display:flex;}"]), (props) => props.$open && css(["box-shadow:inset 0 0 0 1px var(--ds-form-field-border-focus);border-color:var(--ds-form-field-border-focus);background-color:var(--ds-form-field-bg-focus);"]), (props) => props.$error && css(["border-color:var(--ds-form-field-border-validated);box-shadow:inset 0 0 0 1px var(--ds-form-field-border-validated);background:var(--ds-form-field-bg-validated);"]), (props) => props.$disabled && css(["cursor:", ";color:", ";background-color:", ";&:hover{border-color:var(--ds-form-field-border-default);}"], props.$readOnly ? "default" : "not-allowed", props.$readOnly ? "var(--ds-form-field-text-value)" : "var(--ds-form-field-text-disabled)", props.$readOnly ? "var(--ds-form-field-bg-default)" : "var(--ds-form-field-bg-disabled)"), (props) => !!props.$selectorStyle && css(props.$selectorStyle));
|
|
31
31
|
const SelectionItem = /* @__PURE__ */ styled.span.withConfig({
|
|
32
32
|
displayName: "Selectstyles__SelectionItem",
|
|
33
33
|
componentId: "sc-n9lk0v-5"
|
|
@@ -35,15 +35,15 @@ const SelectionItem = /* @__PURE__ */ styled.span.withConfig({
|
|
|
35
35
|
const Placeholder = /* @__PURE__ */ styled.span.withConfig({
|
|
36
36
|
displayName: "Selectstyles__Placeholder",
|
|
37
37
|
componentId: "sc-n9lk0v-6"
|
|
38
|
-
})(["flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:
|
|
38
|
+
})(["flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--ds-form-field-text-placeholder);"]);
|
|
39
39
|
const Arrow = /* @__PURE__ */ styled.span.withConfig({
|
|
40
40
|
displayName: "Selectstyles__Arrow",
|
|
41
41
|
componentId: "sc-n9lk0v-7"
|
|
42
|
-
})(["position:absolute;right:8px;top:50%;display:flex;align-items:center;transform:translateY(-50%) ", ";transition:transform 0.3s;color:
|
|
42
|
+
})(["position:absolute;right:8px;top:50%;display:flex;align-items:center;transform:translateY(-50%) ", ";transition:transform 0.3s;color:var(--ds-color-icon-base-subtle);pointer-events:none;"], (props) => props.$open ? "rotate(180deg)" : "");
|
|
43
43
|
const ClearWrapper = /* @__PURE__ */ styled.span.withConfig({
|
|
44
44
|
displayName: "Selectstyles__ClearWrapper",
|
|
45
45
|
componentId: "sc-n9lk0v-8"
|
|
46
|
-
})(["position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;align-items:center;cursor:pointer;color:
|
|
46
|
+
})(["position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;align-items:center;cursor:pointer;color:var(--ds-form-clear-icon);"]);
|
|
47
47
|
const DropdownWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
48
48
|
displayName: "Selectstyles__DropdownWrapper",
|
|
49
49
|
componentId: "sc-n9lk0v-9"
|
|
@@ -63,7 +63,7 @@ const VirtualRow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
63
63
|
const NotFound = /* @__PURE__ */ styled.div.withConfig({
|
|
64
64
|
displayName: "Selectstyles__NotFound",
|
|
65
65
|
componentId: "sc-n9lk0v-13"
|
|
66
|
-
})(["display:flex;align-items:center;justify-content:center;padding:8px 12px;color:
|
|
66
|
+
})(["display:flex;align-items:center;justify-content:center;padding:8px 12px;color:var(--ds-form-description-text-color);font-weight:normal;"]);
|
|
67
67
|
const Loading = /* @__PURE__ */ styled.div.withConfig({
|
|
68
68
|
displayName: "Selectstyles__Loading",
|
|
69
69
|
componentId: "sc-n9lk0v-14"
|
|
@@ -71,11 +71,11 @@ const Loading = /* @__PURE__ */ styled.div.withConfig({
|
|
|
71
71
|
const OptionItem = /* @__PURE__ */ styled(DSListItem).withConfig({
|
|
72
72
|
displayName: "Selectstyles__OptionItem",
|
|
73
73
|
componentId: "sc-n9lk0v-15"
|
|
74
|
-
})(["min-width:auto;font-weight:normal
|
|
74
|
+
})(["min-width:auto;font-weight:normal;&&.ds-select-item-option-active:not(.ds-select-item-option-selected):not(.ds-list-item-disabled) .ds-list-item-inner{background-color:var(--ds-list-item-role-normal-bg-hover);}"]);
|
|
75
75
|
const SearchInputEl = /* @__PURE__ */ styled.input.withConfig({
|
|
76
76
|
displayName: "Selectstyles__SearchInputEl",
|
|
77
77
|
componentId: "sc-n9lk0v-16"
|
|
78
|
-
})(["flex:1 1 30px;min-width:30px;width:100%;border:none;outline:none;background:transparent;padding:0;margin:0;font-family:inherit;font-size:13px;color:
|
|
78
|
+
})(["flex:1 1 30px;min-width:30px;width:100%;border:none;outline:none;background:transparent;padding:0;margin:0;font-family:inherit;font-size:13px;color:var(--ds-form-field-text-value);cursor:inherit;&::placeholder{color:var(--ds-form-field-text-placeholder);}&:disabled{cursor:not-allowed;}", ""], (props) => props.$overlay && css(["position:absolute;top:0;left:0;width:100%;height:100%;flex:none;box-sizing:border-box;padding:0 30px 0 12px;"]));
|
|
79
79
|
const MultiValueArea = /* @__PURE__ */ styled.div.withConfig({
|
|
80
80
|
displayName: "Selectstyles__MultiValueArea",
|
|
81
81
|
componentId: "sc-n9lk0v-17"
|
|
@@ -87,7 +87,7 @@ const TagMeasureRow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
87
87
|
const Chip = /* @__PURE__ */ styled.span.withConfig({
|
|
88
88
|
displayName: "Selectstyles__Chip",
|
|
89
89
|
componentId: "sc-n9lk0v-19"
|
|
90
|
-
})(["position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:max-content;max-width:100%;min-height:24px;padding:0 8px;background:
|
|
90
|
+
})(["position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:max-content;max-width:100%;min-height:24px;padding:0 8px;background:var(--ds-form-chip-bg-default);border:none;border-radius:3px;font-size:13px;line-height:1;color:var(--ds-form-chip-text-default);&:hover{background:var(--ds-form-chip-bg-hover);color:var(--ds-form-chip-text-default);}&:hover .ds-select-selection-item-label{max-width:calc(100% - 24px);}&:hover .ds-select-selection-item-remove{display:inline-flex;}"]);
|
|
91
91
|
const ChipLabel = /* @__PURE__ */ styled.span.withConfig({
|
|
92
92
|
displayName: "Selectstyles__ChipLabel",
|
|
93
93
|
componentId: "sc-n9lk0v-20"
|
|
@@ -95,7 +95,7 @@ const ChipLabel = /* @__PURE__ */ styled.span.withConfig({
|
|
|
95
95
|
const ChipRemove = /* @__PURE__ */ styled.span.withConfig({
|
|
96
96
|
displayName: "Selectstyles__ChipRemove",
|
|
97
97
|
componentId: "sc-n9lk0v-21"
|
|
98
|
-
})(["position:absolute;right:4px;top:50%;transform:translateY(-50%);display:none;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;color:
|
|
98
|
+
})(["position:absolute;right:4px;top:50%;transform:translateY(-50%);display:none;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;color:var(--ds-form-clear-icon);"]);
|
|
99
99
|
export {
|
|
100
100
|
Arrow,
|
|
101
101
|
Chip,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-select",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Select UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-dropdown": "^2.
|
|
46
|
-
"@synerise/ds-form-field": "^2.0
|
|
47
|
-
"@synerise/ds-icon": "^2.
|
|
48
|
-
"@synerise/ds-list-item": "^2.
|
|
49
|
-
"@synerise/ds-loader": "^2.0
|
|
50
|
-
"@synerise/ds-scrollbar": "^2.0
|
|
51
|
-
"@synerise/ds-tooltip": "^2.0
|
|
52
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-dropdown": "^2.2.0",
|
|
46
|
+
"@synerise/ds-form-field": "^2.1.0",
|
|
47
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
48
|
+
"@synerise/ds-list-item": "^2.3.0",
|
|
49
|
+
"@synerise/ds-loader": "^2.1.0",
|
|
50
|
+
"@synerise/ds-scrollbar": "^2.1.0",
|
|
51
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
52
|
+
"@synerise/ds-utils": "^2.3.0",
|
|
53
53
|
"react-window": "^1.8.11"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": ">=16.9.0 <= 18.3.1",
|
|
61
61
|
"styled-components": "^5.3.3"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
64
64
|
}
|