@coinbase/cds-web 8.16.1 → 8.16.3

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
+ ## 8.16.3 ((10/14/2025, 02:02 PM PST))
12
+
13
+ This is an artificial version bump with no new change.
14
+
15
+ ## 8.16.2 (10/10/2025 PST)
16
+
17
+ #### 🐞 Fixes
18
+
19
+ - Change layoutSpacing to spacingVariant. [[#95](https://github.com/coinbase/cds/pull/95)]
20
+
11
21
  ## 8.16.1 (10/9/2025 PST)
12
22
 
13
23
  #### 🐞 Fixes
@@ -5,18 +5,16 @@ import { type CellAccessoryType } from './CellAccessory';
5
5
  import { type CellDetailProps } from './CellDetail';
6
6
  export declare const listCellDefaultElement = 'div';
7
7
  export type ListCellDefaultElement = typeof listCellDefaultElement;
8
- export declare const hugInnerSpacing: {
9
- paddingX: 2;
10
- paddingY: 0.5;
11
- marginX: 0;
8
+ export declare const condensedInnerSpacing: {
9
+ readonly paddingX: 2;
10
+ readonly paddingY: 0.5;
11
+ readonly marginX: 0;
12
12
  };
13
- export declare const hugOuterSpacing: {
14
- paddingX: 0;
15
- paddingY: 0;
16
- marginX: 0;
13
+ export declare const condensedOuterSpacing: {
14
+ readonly paddingX: 0;
15
+ readonly paddingY: 0;
16
+ readonly marginX: 0;
17
17
  };
18
- type CellStyles = NonNullable<CellBaseProps['styles']>;
19
- type CellClassNames = NonNullable<CellBaseProps['classNames']>;
20
18
  export type ListCellBaseProps = Polymorphic.ExtendableProps<
21
19
  Omit<CellBaseProps, 'children'>,
22
20
  CellDetailProps & {
@@ -37,34 +35,29 @@ export type ListCellBaseProps = Polymorphic.ExtendableProps<
37
35
  */
38
36
  compact?: boolean;
39
37
  /**
40
- * Layout spacing configuration.
41
- * Deprecated values: 'spacious' and 'compact'. Prefer 'hug'.
42
- * This prop will be removed in the next major release, new list cell will only have 'hug' spacing.
38
+ * Spacing variant configuration.
39
+ * Deprecated value: 'compact'. Prefer 'condensed'.
43
40
  *
44
- * When 'spacious' is set, the cell will have the following behavior:
45
- * 1. min-height is 80px
46
- * 2. Effective padding is '16px 24px' with 8px padding around the pressable area
47
- * 3. border radius is 8px for pressable area
48
- * 4. Title always cap at 1 line when there is no description, cap at 2 lines when there is description
49
- * 5. Description and subdetail have font 'body'
41
+ * When `spacingVariant="normal"`:
42
+ * 1. `min-height` is `80px`
43
+ * 2. `padding` is `'var(--space-2) var(--space-3)'`
44
+ * 3. `border-radius` is `'var(--borderRadius-200)'`
45
+ * 4. when there is a description, title's `numberOfLines={1}` otherwise title's `numberOfLines={2}`
46
+ * 5. description and subdetail have font `body`
50
47
  *
51
- * When 'compact' is set, the cell will have the following behavior:
52
- * 1. min-height is 40px
53
- * 2. Effective padding is '16px 24px' with 8px padding around the pressable area
54
- * 3. border radius is 8px for pressable area
55
- * 4. Title always cap at 1 line when there is no description, cap at 2 lines when there is description
56
- * 5. Description and subdetail have font 'body'
48
+ * When `spacingVariant="compact"`:
49
+ * 1. same as `spacingVariant="normal"`, except `min-height` is `40px`
57
50
  *
58
- * When 'hug' is set, the cell will have the following behavior:
59
- * 1. No min-height, height is determined by the content
60
- * 2. Padding is '4px 16px', no extra padding around the pressable area
61
- * 3. 0 border radius for pressable area
62
- * 4. Title always cap at 2 lines
63
- * 5. Description and subdetail have font 'label2'
51
+ * When `spacingVariant="condensed"`:
52
+ * 1. `min-height` is undefined
53
+ * 2. `padding` is `'var(--space-1) var(--space-2)'`
54
+ * 3. `border-radius` is `--borderRadius-0`
55
+ * 4. title's `numberOfLines={2}`
56
+ * 5. description and subdetail have font `label2`
64
57
  *
65
- * @default 'spacious'
58
+ * @default 'normal'
66
59
  */
67
- layoutSpacing?: 'spacious' | 'compact' | 'hug';
60
+ spacingVariant?: 'normal' | 'compact' | 'condensed';
68
61
  /** Description of content. Max 1 line (with title) or 2 lines (without), otherwise will truncate. */
69
62
  description?: React.ReactNode;
70
63
  /**
@@ -88,22 +81,30 @@ export type ListCellBaseProps = Polymorphic.ExtendableProps<
88
81
  /** Title of content. Max 1 line (with description) or 2 lines (without), otherwise will truncate. */
89
82
  title?: React.ReactNode;
90
83
  /** Class names for the components */
91
- classNames?: Pick<
92
- CellClassNames,
93
- 'root' | 'media' | 'intermediary' | 'end' | 'accessory' | 'contentContainer' | 'pressable'
94
- > & {
95
- mainContent?: CellClassNames['topContent'];
96
- helperText?: CellClassNames['bottomContent'];
84
+ classNames?: {
85
+ root?: string;
86
+ media?: string;
87
+ intermediary?: string;
88
+ end?: string;
89
+ accessory?: string;
90
+ contentContainer?: string;
91
+ pressable?: string;
92
+ mainContent?: string;
93
+ helperText?: string;
97
94
  title?: string;
98
95
  description?: string;
99
96
  };
100
97
  /** Styles for the components */
101
- styles?: Pick<
102
- CellStyles,
103
- 'root' | 'media' | 'intermediary' | 'end' | 'accessory' | 'contentContainer' | 'pressable'
104
- > & {
105
- mainContent?: CellStyles['topContent'];
106
- helperText?: CellStyles['bottomContent'];
98
+ styles?: {
99
+ root?: React.CSSProperties;
100
+ media?: React.CSSProperties;
101
+ intermediary?: React.CSSProperties;
102
+ end?: React.CSSProperties;
103
+ accessory?: React.CSSProperties;
104
+ contentContainer?: React.CSSProperties;
105
+ pressable?: React.CSSProperties;
106
+ mainContent?: React.CSSProperties;
107
+ helperText?: React.CSSProperties;
107
108
  title?: React.CSSProperties;
108
109
  description?: React.CSSProperties;
109
110
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ListCell.d.ts","sourceRoot":"","sources":["../../src/cells/ListCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMxD,OAAO,EAAQ,KAAK,aAAa,EAAoB,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAiB,KAAK,iBAAiB,EAAE,M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,CAAC,KAAK,CAClF,WAAW,EACX,iBAAiB,CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG,CAAC,CAAC,WAAW,SAAS,KAAK,CAAC,WAAW,GAAG,sBAAsB,EACvF,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAC9B,WAAW,CAAC,WAAW,CAAC,GAC3B,WAAW,CAAC,UAAU,CAAC;AAEzB,eAAO,MAAM,QAAQ,EAAE,iBA4ItB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { type CSSProperties } from 'react';
2
2
  import type { FallbackRectWidthProps, SharedProps } from '@coinbase/cds-common/types';
3
- import { type CellBaseProps } from './Cell';
4
3
  import type { CellMediaType } from './CellMedia';
4
+ import { type ListCellBaseProps } from './ListCell';
5
5
  export type ListCellFallbackBaseProps = SharedProps &
6
6
  FallbackRectWidthProps &
7
- Pick<CellBaseProps, 'innerSpacing' | 'outerSpacing'> & {
7
+ Pick<ListCellBaseProps, 'innerSpacing' | 'outerSpacing' | 'spacingVariant'> & {
8
8
  /** Display description shimmer. */
9
9
  description?: boolean;
10
10
  /** Display detail shimmer. */
@@ -17,8 +17,6 @@ export type ListCellFallbackBaseProps = SharedProps &
17
17
  subdetail?: boolean;
18
18
  /** Display title shimmer. */
19
19
  title?: boolean;
20
- /** Layout spacing configuration. */
21
- layoutSpacing?: 'spacious' | 'compact' | 'hug';
22
20
  };
23
21
  export type ListCellFallbackProps = ListCellFallbackBaseProps & {
24
22
  /** Class names to apply to the detail, bottomContent, and title. */
@@ -1 +1 @@
1
- {"version":3,"file":"ListCellFallback.d.ts","sourceRoot":"","sources":["../../src/cells/ListCellFallback.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAMtF,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,KAA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AAE,aAAa,CAAC;QAC3B,4CAA4C;QAC5C,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,+CAA+C;QAC/C,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,2CAA2C;QAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,iDAAiD;QACjD,WAAW,CAAC,EAAE,aAAa,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,gBAAgB,6DAgK3B,CAAC"}
@@ -1,4 +1,4 @@
1
- const _excluded = ["as", "accessory", "end", "action", "compact", "title", "description", "detail", "disabled", "disableMultilineTitle", "disableSelectionAccessory", "helperText", "media", "multiline", "selected", "subdetail", "variant", "intermediary", "priority", "innerSpacing", "outerSpacing", "layoutSpacing", "className", "classNames", "styles", "style"];
1
+ const _excluded = ["as", "accessory", "end", "action", "compact", "title", "description", "detail", "disabled", "disableMultilineTitle", "disableSelectionAccessory", "helperText", "media", "multiline", "selected", "subdetail", "variant", "intermediary", "priority", "innerSpacing", "outerSpacing", "spacingVariant", "className", "classNames", "styles", "style"];
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -18,13 +18,13 @@ import { CellDetail } from './CellDetail';
18
18
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
19
  const overflowCss = "overflowCss-onthvgs";
20
20
  export const listCellDefaultElement = 'div';
21
- export const hugInnerSpacing = {
21
+ export const condensedInnerSpacing = {
22
22
  paddingX: 2,
23
23
  paddingY: 0.5,
24
24
  marginX: 0
25
25
  };
26
26
  // no padding outside of the pressable area
27
- export const hugOuterSpacing = {
27
+ export const condensedOuterSpacing = {
28
28
  paddingX: 0,
29
29
  paddingY: 0,
30
30
  marginX: 0
@@ -53,7 +53,7 @@ export const ListCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
53
53
  priority,
54
54
  innerSpacing,
55
55
  outerSpacing,
56
- layoutSpacing = compact ? 'compact' : 'spacious',
56
+ spacingVariant = compact ? 'compact' : 'normal',
57
57
  className,
58
58
  classNames,
59
59
  styles,
@@ -61,7 +61,7 @@ export const ListCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
61
61
  } = _ref,
62
62
  props = _objectWithoutProperties(_ref, _excluded);
63
63
  const Component = as !== null && as !== void 0 ? as : listCellDefaultElement;
64
- const minHeight = layoutSpacing === 'compact' ? compactListHeight : layoutSpacing === 'spacious' ? listHeight : undefined;
64
+ const minHeight = spacingVariant === 'compact' ? compactListHeight : spacingVariant === 'normal' ? listHeight : undefined;
65
65
  const accessoryType = selected && !disableSelectionAccessory ? 'selected' : accessory;
66
66
  const end = useMemo(() => {
67
67
  if (endProp) {
@@ -80,28 +80,28 @@ export const ListCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
80
80
  return /*#__PURE__*/_jsx(CellDetail, {
81
81
  detail: detail,
82
82
  subdetail: subdetail,
83
- subdetailFont: layoutSpacing === 'hug' ? 'label2' : 'body',
83
+ subdetailFont: spacingVariant === 'condensed' ? 'label2' : 'body',
84
84
  variant: variant
85
85
  });
86
86
  }
87
87
  return undefined;
88
- }, [endProp, action, detail, subdetail, variant, layoutSpacing]);
88
+ }, [endProp, action, detail, subdetail, variant, spacingVariant]);
89
89
  return /*#__PURE__*/_jsx(Cell, _objectSpread(_objectSpread({
90
90
  ref: ref,
91
91
  accessory: accessoryType && /*#__PURE__*/_jsx(CellAccessory, {
92
92
  type: accessoryType
93
93
  }),
94
94
  as: Component,
95
- borderRadius: (_props$borderRadius = props.borderRadius) !== null && _props$borderRadius !== void 0 ? _props$borderRadius : layoutSpacing === 'hug' ? 0 : undefined,
95
+ borderRadius: (_props$borderRadius = props.borderRadius) !== null && _props$borderRadius !== void 0 ? _props$borderRadius : spacingVariant === 'condensed' ? 0 : undefined,
96
96
  bottomContent: helperText,
97
97
  className: cx(className, classNames === null || classNames === void 0 ? void 0 : classNames.root),
98
98
  disabled: disabled,
99
99
  end: end,
100
- innerSpacing: innerSpacing !== null && innerSpacing !== void 0 ? innerSpacing : layoutSpacing === 'hug' ? hugInnerSpacing : undefined,
100
+ innerSpacing: innerSpacing !== null && innerSpacing !== void 0 ? innerSpacing : spacingVariant === 'condensed' ? condensedInnerSpacing : undefined,
101
101
  intermediary: intermediary,
102
102
  media: media,
103
103
  minHeight: minHeight,
104
- outerSpacing: outerSpacing !== null && outerSpacing !== void 0 ? outerSpacing : layoutSpacing === 'hug' ? hugOuterSpacing : undefined,
104
+ outerSpacing: outerSpacing !== null && outerSpacing !== void 0 ? outerSpacing : spacingVariant === 'condensed' ? condensedOuterSpacing : undefined,
105
105
  priority: priority,
106
106
  selected: selected,
107
107
  style: _objectSpread(_objectSpread({}, style), styles === null || styles === void 0 ? void 0 : styles.root),
@@ -122,8 +122,8 @@ export const ListCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
122
122
  display: "block",
123
123
  font: "headline",
124
124
  numberOfLines: disableMultilineTitle ? 1 :
125
- // wrap at 2 lines in hug layoutSpacing regardless of description
126
- layoutSpacing === 'hug' ? 2 : description ? 1 : 2,
125
+ // wrap at 2 lines in condensed spacingVariant regardless of description
126
+ spacingVariant === 'condensed' ? 2 : description ? 1 : 2,
127
127
  overflow: "wrap",
128
128
  style: styles === null || styles === void 0 ? void 0 : styles.title,
129
129
  children: title
@@ -132,7 +132,7 @@ export const ListCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
132
132
  className: cx(multiline ? overflowCss : undefined, classNames === null || classNames === void 0 ? void 0 : classNames.description),
133
133
  color: "fgMuted",
134
134
  display: "block",
135
- font: layoutSpacing === 'hug' ? 'label2' : 'body',
135
+ font: spacingVariant === 'condensed' ? 'label2' : 'body',
136
136
  overflow: multiline ? undefined : 'truncate',
137
137
  style: styles === null || styles === void 0 ? void 0 : styles.description,
138
138
  children: description
@@ -1,4 +1,4 @@
1
- const _excluded = ["classNames", "styles", "title", "description", "detail", "subdetail", "media", "disableRandomRectWidth", "rectWidthVariant", "helperText", "layoutSpacing", "innerSpacing", "outerSpacing"];
1
+ const _excluded = ["classNames", "styles", "title", "description", "detail", "subdetail", "media", "disableRandomRectWidth", "rectWidthVariant", "helperText", "spacingVariant", "innerSpacing", "outerSpacing"];
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -11,7 +11,7 @@ import { getRectWidthVariant } from '@coinbase/cds-common/utils/getRectWidthVari
11
11
  import { VStack } from '../layout';
12
12
  import { Fallback } from '../layout/Fallback';
13
13
  import { Cell } from './Cell';
14
- import { hugInnerSpacing, hugOuterSpacing } from './ListCell';
14
+ import { condensedInnerSpacing, condensedOuterSpacing } from './ListCell';
15
15
  import { MediaFallback } from './MediaFallback';
16
16
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_ref) {
@@ -26,7 +26,7 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_ref
26
26
  disableRandomRectWidth,
27
27
  rectWidthVariant,
28
28
  helperText,
29
- layoutSpacing,
29
+ spacingVariant,
30
30
  innerSpacing,
31
31
  outerSpacing
32
32
  } = _ref,
@@ -121,9 +121,9 @@ export const ListCellFallback = /*#__PURE__*/memo(function ListCellFallback(_ref
121
121
  return /*#__PURE__*/_jsx(Cell, _objectSpread(_objectSpread({
122
122
  bottomContent: bottomContentFallback,
123
123
  detail: detailFallback,
124
- innerSpacing: innerSpacing !== null && innerSpacing !== void 0 ? innerSpacing : layoutSpacing === 'hug' ? hugInnerSpacing : undefined,
124
+ innerSpacing: innerSpacing !== null && innerSpacing !== void 0 ? innerSpacing : spacingVariant === 'condensed' ? condensedInnerSpacing : undefined,
125
125
  media: mediaFallback,
126
- outerSpacing: outerSpacing !== null && outerSpacing !== void 0 ? outerSpacing : layoutSpacing === 'hug' ? hugOuterSpacing : undefined
126
+ outerSpacing: outerSpacing !== null && outerSpacing !== void 0 ? outerSpacing : spacingVariant === 'condensed' ? condensedOuterSpacing : undefined
127
127
  }, props), {}, {
128
128
  children: /*#__PURE__*/_jsxs(VStack, {
129
129
  gap: 0.5,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "8.16.1",
3
+ "version": "8.16.3",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -147,9 +147,9 @@
147
147
  "react-dom": "^18.3.1"
148
148
  },
149
149
  "dependencies": {
150
- "@coinbase/cds-common": "^8.16.1",
150
+ "@coinbase/cds-common": "^8.16.3",
151
151
  "@coinbase/cds-icons": "^5.4.2",
152
- "@coinbase/cds-illustrations": "^4.23.1",
152
+ "@coinbase/cds-illustrations": "^4.24.0",
153
153
  "@coinbase/cds-lottie-files": "^3.3.2",
154
154
  "@coinbase/cds-utils": "^2.3.3",
155
155
  "@floating-ui/react-dom": "^2.1.1",