@coinbase/cds-web 9.6.9 → 9.6.11

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,16 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 9.6.11 ((7/22/2026, 10:11 AM PST))
12
+
13
+ This is an artificial version bump with no new change.
14
+
15
+ ## 9.6.10 (7/22/2026 PST)
16
+
17
+ #### 🐞 Fixes
18
+
19
+ - Fix: Remove max-width constraint for ReactNode children of Tooltip. [[#801](https://github.com/coinbase/cds/pull/801)]
20
+
11
21
  ## 9.6.9 (7/22/2026 PST)
12
22
 
13
23
  #### 🐞 Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/overlays/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAWhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD,eAAO,MAAM,OAAO,qCAAiB,YAAY,6CA+H/C,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/overlays/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAOhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD,eAAO,MAAM,OAAO,qCAAiB,YAAY,6CA+H/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../src/overlays/tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAgBzD,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GACtD,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,eAAO,MAAM,cAAc;;;wMA+E1B,CAAC"}
1
+ {"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../src/overlays/tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAgBzD,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GACtD,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,eAAO,MAAM,cAAc;;;wMAmF1B,CAAC"}
@@ -1,11 +1,11 @@
1
1
  export * from './Link';
2
2
  export * from './Text';
3
3
  export * from './TextBody';
4
- export * from './TextFallback';
5
4
  export * from './TextCaption';
6
5
  export * from './TextDisplay1';
7
6
  export * from './TextDisplay2';
8
7
  export * from './TextDisplay3';
8
+ export * from './TextFallback';
9
9
  export * from './TextHeadline';
10
10
  export * from './TextInherited';
11
11
  export * from './TextLabel1';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -48,10 +48,10 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_pro
48
48
  }
49
49
  return /*#__PURE__*/_jsx(TextFallback, {
50
50
  "aria-hidden": true,
51
+ percentage: true,
51
52
  className: classNames === null || classNames === void 0 ? void 0 : classNames.helperText,
52
53
  disableRandomRectWidth: disableRandomRectWidth,
53
54
  font: "body",
54
- percentage: true,
55
55
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 4),
56
56
  style: styles === null || styles === void 0 ? void 0 : styles.helperText,
57
57
  testID: "list-cell-fallback-helper-text",
@@ -67,20 +67,20 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_pro
67
67
  flexShrink: 0,
68
68
  children: [!!detail && /*#__PURE__*/_jsx(TextFallback, {
69
69
  "aria-hidden": true,
70
+ percentage: true,
70
71
  className: classNames === null || classNames === void 0 ? void 0 : classNames.detail,
71
72
  disableRandomRectWidth: disableRandomRectWidth,
72
73
  font: "body",
73
- percentage: true,
74
74
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 0),
75
75
  style: styles === null || styles === void 0 ? void 0 : styles.detail,
76
76
  testID: "list-cell-fallback-detail",
77
77
  width: 60
78
78
  }), !!subdetail && /*#__PURE__*/_jsx(TextFallback, {
79
79
  "aria-hidden": true,
80
+ percentage: true,
80
81
  className: classNames === null || classNames === void 0 ? void 0 : classNames.subdetail,
81
82
  disableRandomRectWidth: disableRandomRectWidth,
82
83
  font: spacingVariant === 'condensed' ? 'label2' : 'body',
83
- percentage: true,
84
84
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 1),
85
85
  style: styles === null || styles === void 0 ? void 0 : styles.subdetail,
86
86
  testID: "list-cell-fallback-subdetail",
@@ -94,10 +94,10 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_pro
94
94
  }
95
95
  return /*#__PURE__*/_jsx(TextFallback, {
96
96
  "aria-hidden": true,
97
+ percentage: true,
97
98
  className: classNames === null || classNames === void 0 ? void 0 : classNames.title,
98
99
  disableRandomRectWidth: disableRandomRectWidth,
99
100
  font: "headline",
100
- percentage: true,
101
101
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 2),
102
102
  style: styles === null || styles === void 0 ? void 0 : styles.title,
103
103
  testID: "list-cell-fallback-title",
@@ -110,10 +110,10 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_pro
110
110
  }
111
111
  return /*#__PURE__*/_jsx(TextFallback, {
112
112
  "aria-hidden": true,
113
+ percentage: true,
113
114
  className: classNames === null || classNames === void 0 ? void 0 : classNames.subtitle,
114
115
  disableRandomRectWidth: disableRandomRectWidth,
115
116
  font: "label1",
116
- percentage: true,
117
117
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 2),
118
118
  style: styles === null || styles === void 0 ? void 0 : styles.subtitle,
119
119
  testID: "list-cell-fallback-subtitle",
@@ -126,10 +126,10 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_pro
126
126
  }
127
127
  return /*#__PURE__*/_jsx(TextFallback, {
128
128
  "aria-hidden": true,
129
+ percentage: true,
129
130
  className: classNames === null || classNames === void 0 ? void 0 : classNames.description,
130
131
  disableRandomRectWidth: disableRandomRectWidth,
131
132
  font: spacingVariant === 'condensed' ? 'label2' : 'body',
132
- percentage: true,
133
133
  rectWidthVariant: getRectWidthVariant(rectWidthVariant, 3),
134
134
  style: styles === null || styles === void 0 ? void 0 : styles.description,
135
135
  testID: "list-cell-fallback-description",
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
7
7
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
8
8
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
9
9
  import React, { cloneElement, memo, useCallback, useMemo, useRef } from 'react';
10
- import { tooltipMaxWidth, tooltipPaddingX, tooltipPaddingY } from '@coinbase/cds-common/tokens/tooltip';
10
+ import { tooltipPaddingX, tooltipPaddingY } from '@coinbase/cds-common/tokens/tooltip';
11
11
  import { useComponentConfig } from '../../hooks/useComponentConfig';
12
12
  import { Popover } from '../popover/Popover';
13
13
  import { TooltipContent } from './TooltipContent';
@@ -42,7 +42,7 @@ export const Tooltip = /*#__PURE__*/memo(_props => {
42
42
  closeDelay,
43
43
  background = 'bg',
44
44
  borderRadius = 200,
45
- maxWidth = tooltipMaxWidth,
45
+ maxWidth,
46
46
  paddingX = tooltipPaddingX,
47
47
  paddingY = tooltipPaddingY,
48
48
  color = 'fg',
@@ -27,7 +27,7 @@ export const TooltipContent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, r
27
27
  placement = 'top',
28
28
  background = 'bg',
29
29
  borderRadius = 200,
30
- maxWidth = tooltipMaxWidth,
30
+ maxWidth,
31
31
  paddingX = tooltipPaddingX,
32
32
  paddingY = tooltipPaddingY,
33
33
  color = 'fg',
@@ -42,6 +42,8 @@ export const TooltipContent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, r
42
42
  padding: "var(--space-".concat(gap, ")"),
43
43
  zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : zIndexTokens.tooltip
44
44
  }), [gap, zIndex]);
45
+ const isTextContent = typeof content === 'string';
46
+ const contentMaxWidth = maxWidth !== null && maxWidth !== void 0 ? maxWidth : isTextContent ? tooltipMaxWidth : undefined;
45
47
  const motionProps = useMotionProps({
46
48
  style: outerStyle,
47
49
  enterConfigs: [animateInOpacityConfig, getTranslateConfigByPlacement({
@@ -62,12 +64,13 @@ export const TooltipContent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, r
62
64
  "data-testid": testID,
63
65
  elevation: elevation,
64
66
  id: tooltipId,
65
- maxWidth: maxWidth,
67
+ maxWidth: contentMaxWidth,
66
68
  paddingX: paddingX,
67
69
  paddingY: paddingY,
68
- role: "tooltip"
70
+ role: "tooltip",
71
+ width: "max-content"
69
72
  }, props), {}, {
70
- children: typeof content === 'string' ? /*#__PURE__*/_jsx(Text, {
73
+ children: isTextContent ? /*#__PURE__*/_jsx(Text, {
71
74
  className: textCss,
72
75
  color: color,
73
76
  font: font,
@@ -1,11 +1,11 @@
1
1
  export * from './Link';
2
2
  export * from './Text';
3
3
  export * from './TextBody';
4
- export * from './TextFallback';
5
4
  export * from './TextCaption';
6
5
  export * from './TextDisplay1';
7
6
  export * from './TextDisplay2';
8
7
  export * from './TextDisplay3';
8
+ export * from './TextFallback';
9
9
  export * from './TextHeadline';
10
10
  export * from './TextInherited';
11
11
  export * from './TextLabel1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "9.6.9",
3
+ "version": "9.6.11",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -227,7 +227,7 @@
227
227
  "react-dom": "^18.0.0 || ~19.1.2"
228
228
  },
229
229
  "dependencies": {
230
- "@coinbase/cds-common": "^9.6.9",
230
+ "@coinbase/cds-common": "^9.6.11",
231
231
  "@coinbase/cds-icons": "^5.21.0",
232
232
  "@coinbase/cds-illustrations": "^4.44.0",
233
233
  "@coinbase/cds-lottie-files": "^3.3.4",