@coinbase/cds-common 8.24.0 → 8.25.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.25.0 (12/1/2025 PST)
12
+
13
+ #### 🚀 Updates
14
+
15
+ - Add emphasis prop to Tag. [[#197](https://github.com/coinbase/cds/pull/197)]
16
+
11
17
  ## 8.24.0 ((12/1/2025, 06:51 AM PST))
12
18
 
13
19
  This is an artificial version bump with no new change.
@@ -1,8 +1,20 @@
1
1
  import type { ThemeVars } from '../core/theme';
2
- import type { TagColorScheme, TagIntent } from '../types/TagBaseProps';
2
+ import type { TagColorScheme, TagEmphasis, TagIntent } from '../types/TagBaseProps';
3
+ export declare const tagEmphasisMap: Record<TagEmphasis, TagIntent>;
3
4
  export declare const tagHorizontalSpacing: Record<TagIntent, ThemeVars.Space>;
4
5
  export declare const tagFontMap: Record<TagIntent, ThemeVars.FontFamily>;
5
6
  export declare const tagBorderRadiusMap: Record<TagIntent, ThemeVars.BorderRadius>;
7
+ type TagEmphasisColorMap = Record<
8
+ TagEmphasis,
9
+ Record<
10
+ TagColorScheme,
11
+ {
12
+ background: ThemeVars.SpectrumColor;
13
+ foreground: ThemeVars.SpectrumColor;
14
+ }
15
+ >
16
+ >;
17
+ export declare const tagEmphasisColorMap: TagEmphasisColorMap;
6
18
  type TagColorMap = Record<
7
19
  TagIntent,
8
20
  Record<
@@ -13,6 +25,9 @@ type TagColorMap = Record<
13
25
  }
14
26
  >
15
27
  >;
28
+ /**
29
+ * @deprecated Use tagEmphasisColorMap instead
30
+ */
16
31
  export declare const tagColorMap: TagColorMap;
17
32
  export {};
18
33
  //# sourceMappingURL=tags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/tokens/tags.ts"],"names":[],"mappings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IAAE,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC;IAAC,UAAU,EAAE,SAAS,CAAC,aAAa,CAAA;CAAE,CAC7E,CACF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,mBAqDjC,CAAC;AAEF,KAAK,WAAW,GAAG,MAAM,CACvB,SAAS,EACT,MAAM,CACJ,cAAc,EACd;IAAE,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC;IAAC,UAAU,EAAE,SAAS,CAAC,aAAa,CAAA;CAAE,CAC7E,CACF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAGzB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { ThemeVars } from '../core/theme';
2
2
  export type TagIntent = 'informational' | 'promotional';
3
+ export type TagEmphasis = 'low' | 'high';
3
4
  export type TagColorScheme = Extract<
4
5
  ThemeVars.SpectrumHue,
5
6
  'green' | 'purple' | 'blue' | 'yellow' | 'red' | 'gray'
@@ -1 +1 @@
1
- {"version":3,"file":"TagBaseProps.d.ts","sourceRoot":"","sources":["../../src/types/TagBaseProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,aAAa,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,SAAS,CAAC,WAAW,EACrB,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CACxD,CAAC"}
1
+ {"version":3,"file":"TagBaseProps.d.ts","sourceRoot":"","sources":["../../src/types/TagBaseProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,aAAa,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,SAAS,CAAC,WAAW,EACrB,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CACxD,CAAC"}
@@ -1,3 +1,7 @@
1
+ export const tagEmphasisMap = {
2
+ high: 'promotional',
3
+ low: 'informational'
4
+ };
1
5
  export const tagHorizontalSpacing = {
2
6
  informational: 0.5,
3
7
  promotional: 1
@@ -10,8 +14,8 @@ export const tagBorderRadiusMap = {
10
14
  informational: 100,
11
15
  promotional: 1000
12
16
  };
13
- export const tagColorMap = {
14
- informational: {
17
+ export const tagEmphasisColorMap = {
18
+ low: {
15
19
  green: {
16
20
  background: 'green0',
17
21
  foreground: 'green60'
@@ -37,7 +41,7 @@ export const tagColorMap = {
37
41
  foreground: 'gray80'
38
42
  }
39
43
  },
40
- promotional: {
44
+ high: {
41
45
  green: {
42
46
  background: 'green60',
43
47
  foreground: 'green0'
@@ -63,4 +67,11 @@ export const tagColorMap = {
63
67
  foreground: 'gray10'
64
68
  }
65
69
  }
70
+ };
71
+ /**
72
+ * @deprecated Use tagEmphasisColorMap instead
73
+ */
74
+ export const tagColorMap = {
75
+ informational: tagEmphasisColorMap.low,
76
+ promotional: tagEmphasisColorMap.high
66
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-common",
3
- "version": "8.24.0",
3
+ "version": "8.25.0",
4
4
  "description": "Coinbase Design System - Common",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@coinbase/cds-icons": "^5.7.0",
42
42
  "@coinbase/cds-illustrations": "^4.28.0",
43
- "@coinbase/cds-mcp-server": "^8.24.0",
43
+ "@coinbase/cds-mcp-server": "^8.25.0",
44
44
  "@coinbase/cds-utils": "^2.3.4",
45
45
  "@modelcontextprotocol/sdk": "^1.13.1",
46
46
  "d3-array": "^3.2.4",