@coinbase/cds-web 8.26.0 → 8.27.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
@@ -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.27.0 (12/3/2025 PST)
12
+
13
+ #### 🚀 Updates
14
+
15
+ - Feat: introduce `unselected` state for ListCell. [[#194](https://github.com/coinbase/cds/pull/194)] [DX-4947]
16
+
11
17
  ## 8.26.0 (12/1/2025 PST)
12
18
 
13
19
  #### 🚀 Updates
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { PaddingProps } from '@coinbase/cds-common/types';
3
3
  import { type BoxDefaultElement, type BoxProps } from '../layout/Box';
4
4
  export declare const cellAccessoryTestId = 'accessory';
5
- export type CellAccessoryType = 'arrow' | 'more' | 'selected';
5
+ export type CellAccessoryType = 'arrow' | 'more' | 'selected' | 'unselected';
6
6
  export type CellAccessoryBaseProps = PaddingProps & {
7
7
  /** Type of accessory to display at the end. */
8
8
  type: CellAccessoryType;
@@ -1 +1 @@
1
- {"version":3,"file":"CellAccessory.d.ts","sourceRoot":"","sources":["../../src/cells/CellAccessory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EAAO,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG3E,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEtF,eAAO,MAAM,aAAa,mIA6BzB,CAAC"}
1
+ {"version":3,"file":"CellAccessory.d.ts","sourceRoot":"","sources":["../../src/cells/CellAccessory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EAAO,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG3E,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC;AAE7E,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEtF,eAAO,MAAM,aAAa,mIAiCzB,CAAC"}
@@ -39,6 +39,15 @@ export const CellAccessory = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
39
39
  size: "s"
40
40
  });
41
41
  }
42
+ if (type === 'unselected') {
43
+ icon = /*#__PURE__*/_jsx(Icon, {
44
+ name: "checkmark",
45
+ size: "s",
46
+ style: {
47
+ opacity: 0
48
+ }
49
+ });
50
+ }
42
51
  if (!icon) {
43
52
  return null;
44
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "8.26.0",
3
+ "version": "8.27.0",
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.26.0",
150
+ "@coinbase/cds-common": "^8.27.0",
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",