@coinbase/cds-mcp-server 8.19.1 → 8.20.1
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 +8 -0
- package/mcp-docs/mobile/components/AvatarButton.txt +1 -1
- package/mcp-docs/mobile/components/Button.txt +1 -1
- package/mcp-docs/mobile/components/CheckboxCell.txt +1 -1
- package/mcp-docs/mobile/components/Chip.txt +2 -1
- package/mcp-docs/mobile/components/ContentCell.txt +1 -0
- package/mcp-docs/mobile/components/IconButton.txt +1 -1
- package/mcp-docs/mobile/components/InputChip.txt +7 -3
- package/mcp-docs/mobile/components/Interactable.txt +1 -1
- package/mcp-docs/mobile/components/ListCell.txt +1 -0
- package/mcp-docs/mobile/components/MediaChip.txt +2 -1
- package/mcp-docs/mobile/components/Pressable.txt +1 -1
- package/mcp-docs/mobile/components/RadioCell.txt +1 -1
- package/mcp-docs/mobile/components/Select.txt +12 -12
- package/mcp-docs/mobile/components/SelectAlpha.txt +1211 -0
- package/mcp-docs/mobile/components/SelectChip.txt +2 -1
- package/mcp-docs/mobile/components/SelectOption.txt +3 -2
- package/mcp-docs/mobile/components/SlideButton.txt +1 -1
- package/mcp-docs/mobile/routes.txt +1 -0
- package/mcp-docs/web/components/AvatarButton.txt +1 -1
- package/mcp-docs/web/components/Button.txt +1 -1
- package/mcp-docs/web/components/CheckboxCell.txt +1 -1
- package/mcp-docs/web/components/Chip.txt +2 -2
- package/mcp-docs/web/components/IconButton.txt +1 -1
- package/mcp-docs/web/components/InputChip.txt +7 -2
- package/mcp-docs/web/components/Interactable.txt +1 -1
- package/mcp-docs/web/components/Link.txt +1 -1
- package/mcp-docs/web/components/MediaChip.txt +2 -2
- package/mcp-docs/web/components/Pressable.txt +1 -1
- package/mcp-docs/web/components/RadioCell.txt +1 -1
- package/mcp-docs/web/components/Select.txt +16 -16
- package/mcp-docs/web/components/SelectAlpha.txt +1115 -0
- package/mcp-docs/web/components/SelectChip.txt +3 -2
- package/mcp-docs/web/components/SelectOption.txt +2 -2
- package/mcp-docs/web/components/SidebarItem.txt +1 -1
- package/mcp-docs/web/components/TileButton.txt +1 -1
- package/mcp-docs/web/routes.txt +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.20.1 ((11/7/2025, 01:20 PM PST))
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 8.20.0 ((11/7/2025, 07:33 AM PST))
|
|
16
|
+
|
|
17
|
+
This is an artificial version bump with no new change.
|
|
18
|
+
|
|
11
19
|
## 8.19.1 (11/4/2025 PST)
|
|
12
20
|
|
|
13
21
|
This is an artificial version bump with no new change.
|
|
@@ -129,7 +129,7 @@ AvatarButton can use fallback colors with names when no image source is provided
|
|
|
129
129
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
130
130
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
131
131
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
132
|
-
| `blendStyles` | `
|
|
132
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
133
133
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
134
134
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
135
135
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -92,7 +92,7 @@ You can add an icon after the label of a button.
|
|
|
92
92
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
93
93
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
94
94
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
95
|
-
| `blendStyles` | `
|
|
95
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
96
96
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. Change to block and expand to 100% of parent width. |
|
|
97
97
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
98
98
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -90,7 +90,7 @@ function CustomCheckboxCellExample() {
|
|
|
90
90
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
91
91
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
92
92
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
93
|
-
| `blendStyles` | `
|
|
93
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
94
94
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
95
95
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
96
96
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -83,7 +83,7 @@ function Example() {
|
|
|
83
83
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
84
84
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
85
85
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
86
|
-
| `blendStyles` | `
|
|
86
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
87
87
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
88
88
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
89
89
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -128,6 +128,7 @@ function Example() {
|
|
|
128
128
|
| `fontWeight` | `inherit \| FontWeight` | No | `-` | - |
|
|
129
129
|
| `gap` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5` | No | `-` | - |
|
|
130
130
|
| `height` | `string \| number` | No | `-` | - |
|
|
131
|
+
| `invertColorScheme` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
131
132
|
| `inverted` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
132
133
|
| `justifyContent` | `flex-start \| flex-end \| center \| space-between \| space-around \| space-evenly` | No | `-` | - |
|
|
133
134
|
| `key` | `Key \| null` | No | `-` | - |
|
|
@@ -121,6 +121,7 @@ Note: The mobile ContentCellFallback uses theme-based line heights and reuses th
|
|
|
121
121
|
| `animated` | `boolean` | No | `-` | - |
|
|
122
122
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
123
123
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
124
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
124
125
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
125
126
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
126
127
|
| `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
@@ -173,7 +173,7 @@ Since icon buttons have no descriptive text or children, an accessibility label
|
|
|
173
173
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
174
174
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
175
175
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
176
|
-
| `blendStyles` | `
|
|
176
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
177
177
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
178
178
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
179
179
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -73,13 +73,12 @@ function Example() {
|
|
|
73
73
|
|
|
74
74
|
| Prop | Type | Required | Default | Description |
|
|
75
75
|
| --- | --- | --- | --- | --- |
|
|
76
|
-
| `value` | `string` | Yes | `-` | Value indicates what is currently selected |
|
|
77
76
|
| `alignContent` | `flex-start \| flex-end \| center \| stretch \| space-between \| space-around \| space-evenly` | No | `-` | - |
|
|
78
77
|
| `alignItems` | `flex-start \| flex-end \| center \| stretch \| baseline` | No | `-` | - |
|
|
79
78
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
80
79
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
81
80
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
82
|
-
| `blendStyles` | `
|
|
81
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
83
82
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
84
83
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
85
84
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -100,6 +99,7 @@ function Example() {
|
|
|
100
99
|
| `borderedTop` | `boolean` | No | `-` | Add a border to the top side of the box. |
|
|
101
100
|
| `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. |
|
|
102
101
|
| `bottom` | `string \| number` | No | `-` | - |
|
|
102
|
+
| `children` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | ReactNode placed in the center of the Chip |
|
|
103
103
|
| `color` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
104
104
|
| `columnGap` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5` | No | `-` | - |
|
|
105
105
|
| `compact` | `boolean` | No | `-` | Reduces spacing around Chip content |
|
|
@@ -110,6 +110,7 @@ function Example() {
|
|
|
110
110
|
| `disabled` | `boolean` | No | `-` | Is the element currently disabled. Whether the press behavior is disabled. |
|
|
111
111
|
| `display` | `flex \| none` | No | `-` | - |
|
|
112
112
|
| `elevation` | `0 \| 1 \| 2` | No | `-` | Determines box shadow styles. Parent should have overflow set to visible to ensure styles are not clipped. Is the element elevated. |
|
|
113
|
+
| `end` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | ReactNode placed after the value |
|
|
113
114
|
| `feedback` | `none \| light \| normal \| heavy` | No | `none` | Haptic feedback to trigger when being pressed. |
|
|
114
115
|
| `flexBasis` | `string \| number` | No | `-` | - |
|
|
115
116
|
| `flexDirection` | `row \| column \| row-reverse \| column-reverse` | No | `-` | - |
|
|
@@ -122,6 +123,8 @@ function Example() {
|
|
|
122
123
|
| `fontWeight` | `inherit \| FontWeight` | No | `-` | - |
|
|
123
124
|
| `gap` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5` | No | `-` | - |
|
|
124
125
|
| `height` | `string \| number` | No | `-` | - |
|
|
126
|
+
| `invertColorScheme` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
127
|
+
| `inverted` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
125
128
|
| `justifyContent` | `flex-start \| flex-end \| center \| space-between \| space-around \| space-evenly` | No | `-` | - |
|
|
126
129
|
| `key` | `Key \| null` | No | `-` | - |
|
|
127
130
|
| `left` | `string \| number` | No | `-` | - |
|
|
@@ -152,7 +155,7 @@ function Example() {
|
|
|
152
155
|
| `onPointerMoveCapture` | `((event: PointerEvent) => void)` | No | `-` | - |
|
|
153
156
|
| `onPointerUp` | `((event: PointerEvent) => void)` | No | `-` | - |
|
|
154
157
|
| `onPointerUpCapture` | `((event: PointerEvent) => void)` | No | `-` | - |
|
|
155
|
-
| `onPress` | `((event: GestureResponderEvent) => void) \| null` | No | `-` |
|
|
158
|
+
| `onPress` | `((event: GestureResponderEvent) => void) \| null` | No | `-` | Called when a single tap gesture is detected. |
|
|
156
159
|
| `onPressIn` | `(((event: GestureResponderEvent) => void) & ((event: GestureResponderEvent) => void))` | No | `-` | Callback fired before onPress when button is pressed. Called when a touch is engaged before onPress. |
|
|
157
160
|
| `onPressOut` | `(((event: GestureResponderEvent) => void) & ((event: GestureResponderEvent) => void))` | No | `-` | Callback fired before onPress when button is released. Called when a touch is released before onPress. |
|
|
158
161
|
| `opacity` | `number \| AnimatedNode` | No | `-` | - |
|
|
@@ -182,6 +185,7 @@ function Example() {
|
|
|
182
185
|
| `transparentWhileInactive` | `boolean` | No | `-` | Mark the background and border as transparent until the element is interacted with (hovered, pressed, etc). Must be used in conjunction with the pressed prop |
|
|
183
186
|
| `transparentWhilePressed` | `boolean` | No | `-` | Mark the background and border as transparent even while element is interacted with (elevation underlay issue). Must be used in conjunction with the pressed prop |
|
|
184
187
|
| `userSelect` | `none \| auto \| contain \| text \| all` | No | `-` | - |
|
|
188
|
+
| `value` | `string` | No | `-` | Value indicates what is currently selected |
|
|
185
189
|
| `width` | `string \| number` | No | `-` | - |
|
|
186
190
|
| `wrapperStyles` | `{ base?: StyleProp<ViewStyle>; pressed?: StyleProp<ViewStyle>; disabled?: StyleProp<ViewStyle>; }` | No | `-` | Apply styles to the outer container. |
|
|
187
191
|
| `zIndex` | `number` | No | `-` | - |
|
|
@@ -88,7 +88,7 @@ Since this component is low-level, it doesn't require much accessibility out of
|
|
|
88
88
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
89
89
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
90
90
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
91
|
-
| `blendStyles` | `
|
|
91
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
92
92
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
93
93
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
94
94
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -565,6 +565,7 @@ Mapping to `styles` / `classNames` keys:
|
|
|
565
565
|
| `animated` | `boolean` | No | `-` | - |
|
|
566
566
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
567
567
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
568
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
568
569
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
569
570
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
570
571
|
| `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
@@ -159,7 +159,7 @@ You can override the automatic spacing with custom values if needed.
|
|
|
159
159
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
160
160
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
161
161
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
162
|
-
| `blendStyles` | `
|
|
162
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
163
163
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
164
164
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
165
165
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -204,6 +204,7 @@ You can override the automatic spacing with custom values if needed.
|
|
|
204
204
|
| `fontWeight` | `inherit \| FontWeight` | No | `-` | - |
|
|
205
205
|
| `gap` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5` | No | `-` | - |
|
|
206
206
|
| `height` | `string \| number` | No | `-` | - |
|
|
207
|
+
| `invertColorScheme` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
207
208
|
| `inverted` | `boolean` | No | `false` | Invert the foreground and background colors to emphasize the Chip. Depending on your theme, it may be dangerous to use this prop in conjunction with transparentWhileInactive. |
|
|
208
209
|
| `justifyContent` | `flex-start \| flex-end \| center \| space-between \| space-around \| space-evenly` | No | `-` | - |
|
|
209
210
|
| `key` | `Key \| null` | No | `-` | - |
|
|
@@ -85,7 +85,7 @@ On web, all [ARIA attributes](https://developer.mozilla.org/en-US/docs/Web/Acces
|
|
|
85
85
|
| `android_ripple` | `PressableAndroidRippleConfig \| null` | No | `-` | Enables the Android ripple effect and configures its color. |
|
|
86
86
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
87
87
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
88
|
-
| `blendStyles` | `
|
|
88
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
89
89
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
90
90
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
91
91
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -90,7 +90,7 @@ function CustomRadioCellExample() {
|
|
|
90
90
|
| `alignSelf` | `auto \| FlexAlignType` | No | `-` | - |
|
|
91
91
|
| `aspectRatio` | `string \| number` | No | `-` | - |
|
|
92
92
|
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | Background color of the overlay (element being interacted with). |
|
|
93
|
-
| `blendStyles` | `
|
|
93
|
+
| `blendStyles` | `InteractableBlendStyles` | No | `-` | - |
|
|
94
94
|
| `block` | `boolean` | No | `-` | Set element to block and expand to 100% width. |
|
|
95
95
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
96
96
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
@@ -30,7 +30,7 @@ const SelectMobile = () => {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<>
|
|
33
|
-
<
|
|
33
|
+
<OldSelect value={value} onPress={handleOpenTray} />
|
|
34
34
|
{isTrayVisible && (
|
|
35
35
|
<Tray title={title} onCloseComplete={handleClose} ref={trayRef}>
|
|
36
36
|
{/* You must wrap options in Menu. Treat it as a Select on web */}
|
|
@@ -69,7 +69,7 @@ const SelectWithValueLabel = () => {
|
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
71
|
<>
|
|
72
|
-
<
|
|
72
|
+
<OldSelect
|
|
73
73
|
value={value}
|
|
74
74
|
valueLabel={selectedValueLabel}
|
|
75
75
|
placeholder="Choose something..."
|
|
@@ -104,7 +104,7 @@ The `Select` trigger can be customized similar to `TextInput`. These options are
|
|
|
104
104
|
You can add a label above the input and helper text below to provide context and guidance to users.
|
|
105
105
|
|
|
106
106
|
```jsx
|
|
107
|
-
<
|
|
107
|
+
<OldSelect
|
|
108
108
|
label="Make a selection"
|
|
109
109
|
helperText="You can only choose one"
|
|
110
110
|
value={value}
|
|
@@ -120,9 +120,9 @@ You can add a label above the input and helper text below to provide context and
|
|
|
120
120
|
When space is tight, this brings the label inside of the Input. Should be used with a `compact` `SelectOption`.
|
|
121
121
|
|
|
122
122
|
```jsx
|
|
123
|
-
<
|
|
123
|
+
<OldSelect compact label="Make a selection" value={value} onChange={setValue}>
|
|
124
124
|
...
|
|
125
|
-
</
|
|
125
|
+
</OldSelect>
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
### Variants
|
|
@@ -130,9 +130,9 @@ When space is tight, this brings the label inside of the Input. Should be used w
|
|
|
130
130
|
Variants can be used to surface positive or negative feedback. The available variants are `positive`, `negative`, `primary`, `foreground`, `foregroundMuted`, and `secondary`.
|
|
131
131
|
|
|
132
132
|
```jsx
|
|
133
|
-
<
|
|
133
|
+
<OldSelect variant="positive" label="Make a selection">
|
|
134
134
|
...
|
|
135
|
-
</
|
|
135
|
+
</OldSelect>
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
### Label Variants
|
|
@@ -148,17 +148,17 @@ When using the `inside` label variant, you should always include a `placeholder`
|
|
|
148
148
|
#### Outside label (default)
|
|
149
149
|
|
|
150
150
|
```jsx
|
|
151
|
-
<
|
|
151
|
+
<OldSelect label="Choose Option" placeholder="Select from list">
|
|
152
152
|
...
|
|
153
|
-
</
|
|
153
|
+
</OldSelect>
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
#### Inside label
|
|
157
157
|
|
|
158
158
|
```jsx
|
|
159
|
-
<
|
|
159
|
+
<OldSelect label="Choose Option" labelVariant="inside" placeholder="Select from list">
|
|
160
160
|
...
|
|
161
|
-
</
|
|
161
|
+
</OldSelect>
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
#### Inside label (with start content)
|
|
@@ -171,7 +171,7 @@ When using the `inside` label variant, you should always include a `placeholder`
|
|
|
171
171
|
placeholder="Search and select"
|
|
172
172
|
>
|
|
173
173
|
...
|
|
174
|
-
</
|
|
174
|
+
</OldSelect>
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
## Props
|