@coinbase/cds-web 8.22.1 → 8.22.2
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
|
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.22.2 (11/26/2025 PST)
|
|
12
|
+
|
|
13
|
+
#### 🐞 Fixes
|
|
14
|
+
|
|
15
|
+
- Wrap Select labels instead of truncating them. [[#179](https://github.com/coinbase/cds/pull/179)]
|
|
16
|
+
|
|
11
17
|
## 8.22.1 (11/24/2025 PST)
|
|
12
18
|
|
|
13
19
|
#### 🐞 Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAe9E,OAAO,KAAK,EAAE,kBAAkB,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AAyB7E,KAAK,wBAAwB,GAAG,CAC9B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KAClF,KAAK,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAe9E,OAAO,KAAK,EAAE,kBAAkB,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AAyB7E,KAAK,wBAAwB,GAAG,CAC9B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KAClF,KAAK,CAAC,YAAY,CAAC;AA0UxB,eAAO,MAAM,oBAAoB,EAAoC,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSelectOption.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectOption.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwD9D,KAAK,uBAAuB,GAAG,CAAC,IAAI,SAAS,UAAU,EAAE,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAChG,KAAK,EAAE,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,KACvF,KAAK,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultSelectOption.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectOption.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwD9D,KAAK,uBAAuB,GAAG,CAAC,IAAI,SAAS,UAAU,EAAE,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAChG,KAAK,EAAE,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,KACvF,KAAK,CAAC,YAAY,CAAC;AAmHxB,eAAO,MAAM,mBAAmB,EAAmC,uBAAuB,CAAC"}
|
|
@@ -165,12 +165,13 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
165
165
|
borderWidth: 0,
|
|
166
166
|
className: cx(noFocusOutlineCss, classNames === null || classNames === void 0 ? void 0 : classNames.controlInputNode),
|
|
167
167
|
disabled: disabled,
|
|
168
|
+
flexGrow: 1,
|
|
168
169
|
focusable: false,
|
|
169
170
|
minHeight: labelVariant === 'inside' ? LABEL_VARIANT_INSIDE_HEIGHT : compact ? COMPACT_HEIGHT : DEFAULT_HEIGHT,
|
|
171
|
+
minWidth: 0,
|
|
170
172
|
onClick: () => setOpen(s => !s),
|
|
171
173
|
paddingStart: 1,
|
|
172
174
|
style: styles === null || styles === void 0 ? void 0 : styles.controlInputNode,
|
|
173
|
-
width: "100%",
|
|
174
175
|
children: [!!startNode && /*#__PURE__*/_jsx(HStack, {
|
|
175
176
|
alignItems: "center",
|
|
176
177
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.controlStartNode,
|
|
@@ -183,8 +184,8 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
183
184
|
}), shouldShowCompactLabel ? /*#__PURE__*/_jsx(HStack, {
|
|
184
185
|
alignItems: "center",
|
|
185
186
|
height: "100%",
|
|
186
|
-
maxWidth: "40%",
|
|
187
187
|
paddingStart: 1,
|
|
188
|
+
width: "40%",
|
|
188
189
|
children: /*#__PURE__*/_jsx(InputLabel, {
|
|
189
190
|
color: "fg",
|
|
190
191
|
overflow: "truncate",
|
|
@@ -194,7 +195,7 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
194
195
|
alignItems: "center",
|
|
195
196
|
borderRadius: 200,
|
|
196
197
|
justifyContent: "space-between",
|
|
197
|
-
width:
|
|
198
|
+
width: shouldShowCompactLabel ? '60%' : '100%',
|
|
198
199
|
children: /*#__PURE__*/_jsx(HStack, {
|
|
199
200
|
ref: valueNodeContainerRef,
|
|
200
201
|
alignItems: "center",
|
|
@@ -41,7 +41,7 @@ const DefaultSelectOptionComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((
|
|
|
41
41
|
as: "div",
|
|
42
42
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.optionLabel,
|
|
43
43
|
font: "headline",
|
|
44
|
-
overflow: "
|
|
44
|
+
overflow: "wrap",
|
|
45
45
|
style: styles === null || styles === void 0 ? void 0 : styles.optionLabel,
|
|
46
46
|
children: label
|
|
47
47
|
}) : label, [label, classNames === null || classNames === void 0 ? void 0 : classNames.optionLabel, styles === null || styles === void 0 ? void 0 : styles.optionLabel]);
|
|
@@ -76,7 +76,6 @@ const DefaultSelectOptionComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((
|
|
|
76
76
|
className: cx(multiline ? multilineTextCss : undefined, classNames === null || classNames === void 0 ? void 0 : classNames.optionCell),
|
|
77
77
|
end: end,
|
|
78
78
|
innerSpacing: selectCellSpacingConfig.innerSpacing,
|
|
79
|
-
maxHeight: compact ? 56 : 64,
|
|
80
79
|
media: media,
|
|
81
80
|
minHeight: compact ? 40 : 56,
|
|
82
81
|
outerSpacing: selectCellSpacingConfig.outerSpacing,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-web",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.2",
|
|
4
4
|
"description": "Coinbase Design System - Web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"react-dom": "^18.3.1"
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@coinbase/cds-common": "^8.22.
|
|
150
|
+
"@coinbase/cds-common": "^8.22.2",
|
|
151
151
|
"@coinbase/cds-icons": "^5.7.0",
|
|
152
152
|
"@coinbase/cds-illustrations": "^4.28.0",
|
|
153
153
|
"@coinbase/cds-lottie-files": "^3.3.3",
|