@coinbase/cds-mcp-server 9.6.4 → 9.6.6
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,14 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 9.6.6 (7/14/2026 PST)
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 9.6.5 (7/13/2026 PST)
|
|
16
|
+
|
|
17
|
+
This is an artificial version bump with no new change.
|
|
18
|
+
|
|
11
19
|
## 9.6.4 ((7/13/2026, 07:14 AM PST))
|
|
12
20
|
|
|
13
21
|
This is an artificial version bump with no new change.
|
|
@@ -276,6 +276,28 @@ function ColorAndTransition() {
|
|
|
276
276
|
}
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
+
### Custom, Non-Token Color
|
|
280
|
+
|
|
281
|
+
To apply a non-token color (e.g. a hex string), set `color` via `styles.text`.
|
|
282
|
+
|
|
283
|
+
```tsx
|
|
284
|
+
function CustomColor() {
|
|
285
|
+
const price = 12345.67;
|
|
286
|
+
return (
|
|
287
|
+
<RollingNumber
|
|
288
|
+
font="title1"
|
|
289
|
+
format={{ style: 'currency', currency: 'USD' }}
|
|
290
|
+
styles={{ text: { color: '#6366f1' } }}
|
|
291
|
+
value={price}
|
|
292
|
+
/>
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
:::warning
|
|
298
|
+
`colorPulseOnUpdate` will not work when a custom color is set.
|
|
299
|
+
:::
|
|
300
|
+
|
|
279
301
|
### Digit Transition Variants
|
|
280
302
|
|
|
281
303
|
RollingNumber supports two digit transition styles via the `digitTransitionVariant` prop:
|
|
@@ -729,8 +751,8 @@ ValueSection
|
|
|
729
751
|
| `borderTopWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
730
752
|
| `borderWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
731
753
|
| `bottom` | `null \| number \| AnimatedNode \| auto \| ${number}%` | No | `-` | - |
|
|
732
|
-
| `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 | `'fg'` | Base text color token. When {@link colorPulseOnUpdate } is true, the color briefly pulses to a positive or negative mid color before returning to this base color. |
|
|
733
|
-
| `colorPulseOnUpdate` | `boolean` | No | `-` | Enables color pulsing on positive or negative changes. |
|
|
754
|
+
| `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 | `'fg'` | Base text color token. When {@link colorPulseOnUpdate } is true, the color briefly pulses to a positive or negative mid color before returning to this base color. Only CDS design token colors are accepted here. To apply a non-token color (e.g. a hex string), use styles={{ text: { color: #FF0000 } }} instead. |
|
|
755
|
+
| `colorPulseOnUpdate` | `boolean` | No | `-` | Enables color pulsing on positive or negative changes. Overriding the default color using styles.text nullifies the effect. |
|
|
734
756
|
| `columnGap` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5` | No | `-` | - |
|
|
735
757
|
| `dangerouslySetBackground` | `string \| OpaqueColorValue` | No | `-` | - |
|
|
736
758
|
| `dangerouslySetColor` | `string \| OpaqueColorValue` | No | `-` | - |
|
|
@@ -831,15 +853,15 @@ ValueSection
|
|
|
831
853
|
|
|
832
854
|
| Selector | Static class name | Description |
|
|
833
855
|
| --- | --- | --- |
|
|
834
|
-
| `root` | `-` | Outer container element |
|
|
835
|
-
| `visibleContent` | `-` |
|
|
836
|
-
| `formattedValueSection` | `-` |
|
|
837
|
-
| `prefix` | `-` |
|
|
838
|
-
| `suffix` | `-` |
|
|
839
|
-
| `i18nPrefix` | `-` |
|
|
840
|
-
| `i18nSuffix` | `-` |
|
|
841
|
-
| `integer` | `-` |
|
|
842
|
-
| `fraction` | `-` |
|
|
843
|
-
| `text` | `-` |
|
|
856
|
+
| `root` | `-` | Outer container element. |
|
|
857
|
+
| `visibleContent` | `-` | Wrapper around the visible number (prefix, value, and suffix). |
|
|
858
|
+
| `formattedValueSection` | `-` | Wrapper around the formatted numeric value (the four i18n sections). |
|
|
859
|
+
| `prefix` | `-` | Container for the prefix prop content. |
|
|
860
|
+
| `suffix` | `-` | Container for the suffix prop content. |
|
|
861
|
+
| `i18nPrefix` | `-` | Container for the Intl.NumberFormat-generated prefix (e.g. $ in $1,000). |
|
|
862
|
+
| `i18nSuffix` | `-` | Container for the Intl.NumberFormat-generated suffix (e.g. K in 100K). |
|
|
863
|
+
| `integer` | `-` | Container for the integer portion of the value. |
|
|
864
|
+
| `fraction` | `-` | Container for the fractional portion of the value. |
|
|
865
|
+
| `text` | `-` | Style applied to every text element — digits, symbols, prefix text, and suffix text. Set color here to apply a custom (non-token) text color. |
|
|
844
866
|
|
|
845
867
|
|
|
@@ -336,6 +336,27 @@ function Example() {
|
|
|
336
336
|
}
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
+
### Custom, Non-Token Color
|
|
340
|
+
|
|
341
|
+
To apply a non-token color (e.g. a hex string) to the whole number, set `color` via the `style` prop. To color individual parts (prefix, suffix, integer, fraction, etc.), set `color` on the corresponding key of the `styles` object.
|
|
342
|
+
|
|
343
|
+
```tsx live
|
|
344
|
+
function Example() {
|
|
345
|
+
return (
|
|
346
|
+
<RollingNumber
|
|
347
|
+
font="title1"
|
|
348
|
+
format={{ style: 'currency', currency: 'USD' }}
|
|
349
|
+
style={{ color: '#6366f1' }}
|
|
350
|
+
value={12345.67}
|
|
351
|
+
/>
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
:::warning
|
|
357
|
+
`colorPulseOnUpdate` will not work when a custom color is set.
|
|
358
|
+
:::
|
|
359
|
+
|
|
339
360
|
### Digit Transition Variants
|
|
340
361
|
|
|
341
362
|
RollingNumber supports two digit transition styles via the `digitTransitionVariant` prop:
|
|
@@ -1036,8 +1057,8 @@ ValueSection
|
|
|
1036
1057
|
| `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. |
|
|
1037
1058
|
| `bottom` | `ResponsiveProp<Bottom<string \| number>>` | No | `-` | - |
|
|
1038
1059
|
| `classNames` | `{ root?: string; visibleContent?: string \| undefined; formattedValueSection?: string \| undefined; prefix?: string \| undefined; suffix?: string \| undefined; i18nPrefix?: string \| undefined; i18nSuffix?: string \| undefined; integer?: string \| undefined; fraction?: string \| undefined; text?: string \| undefined; } \| undefined` | No | `-` | Custom class names for individual elements of the RollingNumber component |
|
|
1039
|
-
| `color` | `((Color \| ResponsiveValue<Color>) & Color) \| undefined` | No | `'fg'` | Base text color token. When {@link colorPulseOnUpdate } is true, the color briefly pulses to a positive or negative mid color before returning to this base color. |
|
|
1040
|
-
| `colorPulseOnUpdate` | `boolean` | No | `-` | Enables color pulsing on positive or negative changes. |
|
|
1060
|
+
| `color` | `((Color \| ResponsiveValue<Color>) & Color) \| undefined` | No | `'fg'` | Base text color token. When {@link colorPulseOnUpdate } is true, the color briefly pulses to a positive or negative mid color before returning to this base color. To apply a non-token color (e.g. a hex string), set color via an inline style or className instead (style, styles.root, styles.visibleContent, styles.text, or classNames). A custom color is not compatible with {@link colorPulseOnUpdate }. |
|
|
1061
|
+
| `colorPulseOnUpdate` | `boolean` | No | `-` | Enables color pulsing on positive or negative changes. Only works with the token-driven {@link color } prop — it will not work if a custom color is applied via an inline style or className. |
|
|
1041
1062
|
| `columnGap` | `0 \| 1 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9 \| ResponsiveValue<Space \| undefined>` | No | `-` | - |
|
|
1042
1063
|
| `dangerouslySetBackground` | `string` | No | `-` | - |
|
|
1043
1064
|
| `dangerouslySetColor` | `string` | No | `-` | - |
|
|
@@ -1133,15 +1154,15 @@ ValueSection
|
|
|
1133
1154
|
|
|
1134
1155
|
| Selector | Static class name | Description |
|
|
1135
1156
|
| --- | --- | --- |
|
|
1136
|
-
| `root` | `-` | Outer container element |
|
|
1137
|
-
| `visibleContent` | `-` |
|
|
1138
|
-
| `formattedValueSection` | `-` |
|
|
1139
|
-
| `prefix` | `-` |
|
|
1140
|
-
| `suffix` | `-` |
|
|
1141
|
-
| `i18nPrefix` | `-` |
|
|
1142
|
-
| `i18nSuffix` | `-` |
|
|
1143
|
-
| `integer` | `-` |
|
|
1144
|
-
| `fraction` | `-` |
|
|
1145
|
-
| `text` | `-` |
|
|
1157
|
+
| `root` | `-` | Outer container element. |
|
|
1158
|
+
| `visibleContent` | `-` | Wrapper around the visible number (prefix, value, and suffix). |
|
|
1159
|
+
| `formattedValueSection` | `-` | Wrapper around the formatted numeric value (the four i18n sections). |
|
|
1160
|
+
| `prefix` | `-` | Container for the prefix prop content. |
|
|
1161
|
+
| `suffix` | `-` | Container for the suffix prop content. |
|
|
1162
|
+
| `i18nPrefix` | `-` | Container for the Intl.NumberFormat-generated prefix (e.g. $ in $1,000). |
|
|
1163
|
+
| `i18nSuffix` | `-` | Container for the Intl.NumberFormat-generated suffix (e.g. K in 100K). |
|
|
1164
|
+
| `integer` | `-` | Container for the integer portion of the value. |
|
|
1165
|
+
| `fraction` | `-` | Container for the fractional portion of the value. |
|
|
1166
|
+
| `text` | `-` | Style applied to every text element — digits, symbols, prefix text, and suffix text. |
|
|
1146
1167
|
|
|
1147
1168
|
|