Skip to content

Commit 9a19d9e

Browse files
fix: Update <SelectOption> docs and add deprecation decorators (#148)
* Update examples to use correct React Live scope component name * Update deprecation message * Add deprecation flags to old Select components * Update changelogs
1 parent cf9e5f8 commit 9a19d9e

File tree

16 files changed

+37
-9
lines changed

16 files changed

+37
-9
lines changed

apps/docs/docs/components/inputs/Select/mobileMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"source": "https://github.com/coinbase/cds/blob/master/packages/mobile/src/controls/Select.tsx",
44
"figma": "https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?m=auto&node-id=415-15061&t=6hbCJmIQxCsPCzeU-1",
55
"description": "A control for selecting from a list of options.",
6-
"warning": "This component is deprecated. Please use SelectAlpha instead.",
6+
"warning": "This component is deprecated. Please use the new Select alpha component instead.",
77
"relatedComponents": [
88
{
99
"label": "SelectOption",

apps/docs/docs/components/inputs/Select/webMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"storybook": "https://cds-storybook.coinbase.com/?path=/story/components-select-select--asset-select",
55
"figma": "https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?m=auto&node-id=415-15061&t=6hbCJmIQxCsPCzeU-1",
66
"description": "A Dropdown control for selecting from a list of options.",
7-
"warning": "This component is deprecated. Please use SelectAlpha instead.",
7+
"warning": "This component is deprecated. Please use the new Select alpha component instead.",
88
"relatedComponents": [
99
{
1010
"label": "SelectAlpha",

apps/docs/docs/components/inputs/SelectOption/_mobileExamples.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const SelectMobile = () => {
2222

2323
return (
2424
<>
25-
<Select value={value} onPress={handleOpenTray} />
25+
<OldSelect value={value} onPress={handleOpenTray} />
2626
{isTrayVisible && (
2727
<Tray title={title} onCloseComplete={handleClose} ref={trayRef}>
2828
{/* You must wrap options in Menu. Treat it as a Select on web */}

apps/docs/docs/components/inputs/SelectOption/_webExamples.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function DefaultSelect() {
1010
const options = ['Option 1', 'Option 2', 'Option 3', 'Option 4', 'Option 5', 'Option 6'];
1111
return (
1212
<VStack paddding={2}>
13-
<Select value={value} placeholder="Choose something..." onChange={setValue}>
13+
<OldSelect value={value} placeholder="Choose something..." onChange={setValue}>
1414
{options.map((option) => (
1515
<SelectOption
1616
value={option}
@@ -20,7 +20,7 @@ function DefaultSelect() {
2020
media={<CellMedia type="icon" name="upload" />}
2121
/>
2222
))}
23-
</Select>
23+
</OldSelect>
2424
</VStack>
2525
);
2626
}

apps/docs/docs/components/inputs/SelectOption/mobileMetadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"source": "https://github.com/coinbase/cds/blob/master/packages/mobile/src/controls/SelectOption.tsx",
44
"figma": "https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?m=auto&node-id=466-13810&t=K73gadcWiDv2aYlS-1",
55
"description": "A single option of a Select component.",
6+
"warning": "This component is deprecated. Please use the new Select alpha component instead.",
67
"relatedComponents": [
78
{
89
"label": "Select",

apps/docs/docs/components/inputs/SelectOption/webMetadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"storybook": "https://cds-storybook.coinbase.com/?path=/story/components-select-selectoption--stories",
55
"figma": "https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?m=auto&node-id=466-13810&t=K73gadcWiDv2aYlS-1",
66
"description": "A single option of a Select component.",
7+
"warning": "This component is deprecated. Please use the new Select alpha component instead.",
78
"relatedComponents": [
89
{
910
"label": "Select",

packages/common/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.20.1 ((11/7/2025, 01:20 PM PST))
12+
13+
This is an artificial version bump with no new change.
14+
1115
## 8.20.0 (11/7/2025 PST)
1216

1317
#### 🚀 Updates

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-common",
3-
"version": "8.20.0",
3+
"version": "8.20.1",
44
"description": "Coinbase Design System - Common",
55
"repository": {
66
"type": "git",

packages/mcp-server/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.20.1 ((11/7/2025, 01:20 PM PST))
12+
13+
This is an artificial version bump with no new change.
14+
1115
## 8.20.0 ((11/7/2025, 07:33 AM PST))
1216

1317
This is an artificial version bump with no new change.

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-mcp-server",
3-
"version": "8.20.0",
3+
"version": "8.20.1",
44
"description": "Coinbase Design System - MCP Server",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)