@coinbase/cds-mobile 8.71.0 → 8.72.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.72.0 (5/12/2026 PST)
|
|
12
|
+
|
|
13
|
+
#### 🚀 Updates
|
|
14
|
+
|
|
15
|
+
- Feat: support key Tag props in component configs. [[#671](https://github.com/coinbase/cds/pull/671)]
|
|
16
|
+
|
|
11
17
|
## 8.71.0 (5/12/2026 PST)
|
|
12
18
|
|
|
13
19
|
#### 🚀 Updates
|
package/dts/tag/Tag.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ import type {
|
|
|
9
9
|
TagEmphasis,
|
|
10
10
|
TagIntent,
|
|
11
11
|
} from '@coinbase/cds-common/types';
|
|
12
|
-
import { type BoxProps } from '../layout';
|
|
12
|
+
import { type BoxBaseProps, type BoxProps } from '../layout/Box';
|
|
13
13
|
export type TagBaseProps = SharedProps &
|
|
14
|
-
SharedAccessibilityProps &
|
|
14
|
+
SharedAccessibilityProps &
|
|
15
|
+
Omit<BoxBaseProps, 'children' | 'color' | 'background'> & {
|
|
15
16
|
/** Children to render within the Tag. */
|
|
16
17
|
children: React.ReactNode;
|
|
17
18
|
/**
|
|
@@ -53,7 +54,8 @@ export type TagProps = TagBaseProps &
|
|
|
53
54
|
export declare const Tag: React.MemoExoticComponent<
|
|
54
55
|
React.ForwardRefExoticComponent<
|
|
55
56
|
SharedProps &
|
|
56
|
-
SharedAccessibilityProps &
|
|
57
|
+
SharedAccessibilityProps &
|
|
58
|
+
Omit<BoxBaseProps, 'children' | 'color' | 'background'> & {
|
|
57
59
|
/** Children to render within the Tag. */
|
|
58
60
|
children: React.ReactNode;
|
|
59
61
|
/**
|
package/dts/tag/Tag.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../src/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAOjE,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,WAAW,EACX,SAAS,EACV,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../src/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAOjE,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,WAAW,EACX,SAAS,EACV,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAO,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGtE,MAAM,MAAM,YAAY,GAAG,WAAW,GACpC,wBAAwB,GACxB,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC,GAAG;IACxD,yCAAyC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,sCAAsC;IACtC,UAAU,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC;IACrC,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAChC,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,uCAAuC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uBAAuB;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEJ,MAAM,MAAM,QAAQ,GAAG,YAAY,GACjC,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAEnE,eAAO,MAAM,GAAG;IAxCZ,yCAAyC;cAC/B,KAAK,CAAC,SAAS;IACzB;;;OAGG;aACM,SAAS;IAClB;;;OAGG;eACQ,WAAW;IACtB;;;OAGG;kBACW,cAAc;IAC5B,sCAAsC;iBACzB,SAAS,CAAC,aAAa;IACpC,gCAAgC;YACxB,SAAS,CAAC,aAAa;IAC/B,0EAA0E;eAC/D,QAAQ,CAAC,UAAU,CAAC;IAC/B,yBAAyB;YACjB,KAAK,CAAC,SAAS;IACvB,8CAA8C;gBAClC,QAAQ;IACpB,uCAAuC;sBACrB,OAAO;IACzB,uBAAuB;UACjB,KAAK,CAAC,SAAS;IACrB,4CAA4C;cAClC,QAAQ;IAClB,qCAAqC;oBACrB,OAAO;kGAmF1B,CAAC"}
|
package/esm/tag/Tag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["children", "intent", "emphasis", "colorScheme", "background", "color", "start", "startIcon", "startIconActive", "end", "endIcon", "endIconActive", "alignItems", "flexDirection", "gap", "justifyContent", "paddingY", "testID"];
|
|
1
|
+
const _excluded = ["children", "intent", "emphasis", "colorScheme", "background", "color", "start", "startIcon", "startIconActive", "end", "endIcon", "endIconActive", "alignItems", "flexDirection", "gap", "justifyContent", "paddingX", "paddingY", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "testID"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef, memo } from 'react';
|
|
@@ -6,7 +6,7 @@ import { tagBorderRadiusMap, tagEmphasisColorMap, tagFontMap, tagHorizontalSpaci
|
|
|
6
6
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
7
|
import { useTheme } from '../hooks/useTheme';
|
|
8
8
|
import { Icon } from '../icons/Icon';
|
|
9
|
-
import { Box } from '../layout';
|
|
9
|
+
import { Box } from '../layout/Box';
|
|
10
10
|
import { Text } from '../typography/Text';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedRef) => {
|
|
@@ -28,7 +28,13 @@ export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedR
|
|
|
28
28
|
flexDirection = 'row',
|
|
29
29
|
gap = 0.5,
|
|
30
30
|
justifyContent = 'center',
|
|
31
|
+
paddingX,
|
|
31
32
|
paddingY = 0.25,
|
|
33
|
+
font,
|
|
34
|
+
fontFamily,
|
|
35
|
+
fontSize,
|
|
36
|
+
fontWeight,
|
|
37
|
+
lineHeight,
|
|
32
38
|
testID = 'cds-tag'
|
|
33
39
|
} = mergedProps,
|
|
34
40
|
props = _objectWithoutPropertiesLoose(mergedProps, _excluded);
|
|
@@ -48,7 +54,7 @@ export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedR
|
|
|
48
54
|
flexDirection: flexDirection,
|
|
49
55
|
gap: gap,
|
|
50
56
|
justifyContent: justifyContent,
|
|
51
|
-
paddingX: tagHorizontalSpacing[intent],
|
|
57
|
+
paddingX: paddingX != null ? paddingX : tagHorizontalSpacing[intent],
|
|
52
58
|
paddingY: paddingY,
|
|
53
59
|
testID: testID
|
|
54
60
|
}, props, {
|
|
@@ -59,7 +65,11 @@ export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedR
|
|
|
59
65
|
size: "xs"
|
|
60
66
|
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
61
67
|
dangerouslySetColor: color,
|
|
62
|
-
font: tagFontMap[intent],
|
|
68
|
+
font: font != null ? font : tagFontMap[intent],
|
|
69
|
+
fontFamily: fontFamily,
|
|
70
|
+
fontSize: fontSize,
|
|
71
|
+
fontWeight: fontWeight,
|
|
72
|
+
lineHeight: lineHeight,
|
|
63
73
|
numberOfLines: 1,
|
|
64
74
|
testID: testID + "--text",
|
|
65
75
|
children: children
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-mobile",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.72.0",
|
|
4
4
|
"description": "Coinbase Design System - Mobile",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -196,9 +196,9 @@
|
|
|
196
196
|
"react-native-svg": "^14.1.0"
|
|
197
197
|
},
|
|
198
198
|
"dependencies": {
|
|
199
|
-
"@coinbase/cds-common": "^8.
|
|
199
|
+
"@coinbase/cds-common": "^8.72.0",
|
|
200
200
|
"@coinbase/cds-icons": "^5.16.0",
|
|
201
|
-
"@coinbase/cds-illustrations": "^4.
|
|
201
|
+
"@coinbase/cds-illustrations": "^4.39.0",
|
|
202
202
|
"@coinbase/cds-lottie-files": "^3.3.4",
|
|
203
203
|
"@coinbase/cds-utils": "^2.3.5",
|
|
204
204
|
"@floating-ui/react-native": "^0.10.5",
|