@coinbase/cds-mobile 8.60.0 → 8.61.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 +14 -0
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/cards/Card.d.ts +4 -0
- package/dts/cards/Card.d.ts.map +1 -1
- package/dts/cards/CardBody.d.ts +4 -0
- package/dts/cards/CardBody.d.ts.map +1 -1
- package/dts/cards/CardFooter.d.ts +4 -0
- package/dts/cards/CardFooter.d.ts.map +1 -1
- package/dts/cards/CardGroup.d.ts +12 -0
- package/dts/cards/CardGroup.d.ts.map +1 -1
- package/dts/cards/CardHeader.d.ts +8 -0
- package/dts/cards/CardHeader.d.ts.map +1 -1
- package/dts/cards/CardMedia.d.ts +8 -0
- package/dts/cards/CardMedia.d.ts.map +1 -1
- package/esm/buttons/Button.js +19 -6
- package/esm/buttons/IconButton.js +8 -7
- package/esm/buttons/__stories__/Button.stories.js +32 -0
- package/esm/buttons/__stories__/IconButton.stories.js +32 -0
- package/esm/cards/Card.js +5 -0
- package/esm/cards/CardBody.js +5 -0
- package/esm/cards/CardFooter.js +4 -0
- package/esm/cards/CardGroup.js +14 -0
- package/esm/cards/CardHeader.js +9 -0
- package/esm/cards/CardMedia.js +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,20 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.61.0 (3/30/2026 PST)
|
|
12
|
+
|
|
13
|
+
#### 🚀 Updates
|
|
14
|
+
|
|
15
|
+
- Feat: support Button and IconButton size customization. [[#565](https://github.com/coinbase/cds/pull/565)]
|
|
16
|
+
|
|
17
|
+
#### 📘 Misc
|
|
18
|
+
|
|
19
|
+
- Deprecate Card and its sub-components. [[#562](https://github.com/coinbase/cds/pull/562)]
|
|
20
|
+
|
|
21
|
+
#### 📘 Misc
|
|
22
|
+
|
|
23
|
+
- Chore: deprecate CardGroup. [[#560](https://github.com/coinbase/cds/pull/560)]
|
|
24
|
+
|
|
11
25
|
## 8.60.0 (3/29/2026 PST)
|
|
12
26
|
|
|
13
27
|
#### 🚀 Updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/buttons/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AACtF,OAAO,EAIL,KAAK,IAAI,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,wBAAwB,EACxB,WAAW,EACZ,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAMzE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAejB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,WAAW,GACvC,IAAI,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,GACpD,kBAAkB,GAAG;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,uCAAuC;IACvC,eAAe,CAAC,EAAE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ACxB,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,eAAO,MAAM,MAAM;;;;;;;;;IAnDf;;;OAGG;cACO,aAAa;IACvB,mCAAmC;eACxB,OAAO;IAClB,wDAAwD;cAC9C,OAAO;IACjB;;OAEG;yBACkB,MAAM;IAC3B,2EAA2E;kBAC7D,OAAO;IACrB,0DAA0D;YAClD,OAAO;IACf,yDAAyD;cAC/C,OAAO;IACjB,4CAA4C;cAClC,KAAK,CAAC,SAAS;IACzB,yBAAyB;YACjB,KAAK,CAAC,SAAS;IACvB,iDAAiD;gBACrC,QAAQ;IACpB,uCAAuC;sBACrB,OAAO;IACzB,uBAAuB;UACjB,KAAK,CAAC,SAAS;IACrB,+CAA+C;cACrC,QAAQ;IAClB,qCAAqC;oBACrB,OAAO;IACvB;;;OAGG;YACK,OAAO,GAAG,KAAK;IACvB,kDAAkD;WAC3C,MAAM;IACb,oCAAoC;qBACnB,OAAO;IACxB;;;OAGG;oBACa,MAAM;+BAkLzB,CAAC"}
|
package/dts/cards/Card.d.ts
CHANGED
|
@@ -17,5 +17,9 @@ export type CardBaseProps = Pick<
|
|
|
17
17
|
pressableProps?: Omit<PressableProps, 'onPress'>;
|
|
18
18
|
};
|
|
19
19
|
export type CardProps = CardBaseProps & BoxProps;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use ContentCard instead. This will be removed in a future major release.
|
|
22
|
+
* @deprecationExpectedRemoval v10
|
|
23
|
+
*/
|
|
20
24
|
export declare const Card: React.NamedExoticComponent<CardProps>;
|
|
21
25
|
//# sourceMappingURL=Card.d.ts.map
|
package/dts/cards/Card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/cards/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAI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AS,GAAG,aAAa,GAAG,QAAQ,CAAC;AAkCjD;;;GAGG;AACH,eAAO,MAAM,IAAI,uCAsFf,CAAC"}
|
package/dts/cards/CardBody.d.ts
CHANGED
|
@@ -52,5 +52,9 @@ export type CardBodyBaseProps = Pick<
|
|
|
52
52
|
action?: React.ReactNode;
|
|
53
53
|
};
|
|
54
54
|
export type CardBodyProps = CardBodyBaseProps & BoxProps;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use ContentCardBody instead. This will be removed in a future major release.
|
|
57
|
+
* @deprecationExpectedRemoval v10
|
|
58
|
+
*/
|
|
55
59
|
export declare const CardBody: React.NamedExoticComponent<CardBodyProps>;
|
|
56
60
|
//# sourceMappingURL=CardBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardBody.d.ts","sourceRoot":"","sources":["../../src/cards/CardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGjF,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAO5D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACC,YAAY,GAAG;IACb,aAAa,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IAC1C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,uFAAuF;IACvF,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;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AAc,CAAC,SAAS,CAAC,CAAC;IAC1C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,uFAAuF;IACvF,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,mEAAmE;IACnE,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,kEAAkE;IAClE,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AA8BzD;;;GAGG;AACH,eAAO,MAAM,QAAQ,2CA0InB,CAAC"}
|
|
@@ -10,5 +10,9 @@ export type CardFooterBaseProps = Pick<
|
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
12
12
|
export type CardFooterProps = CardFooterBaseProps & Omit<BoxProps, 'children'>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use ContentCardFooter instead. This will be removed in a future major release.
|
|
15
|
+
* @deprecationExpectedRemoval v10
|
|
16
|
+
*/
|
|
13
17
|
export declare const CardFooter: React.NamedExoticComponent<CardFooterProps>;
|
|
14
18
|
//# sourceMappingURL=CardFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFooter.d.ts","sourceRoot":"","sources":["../../src/cards/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGxD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG;IAC/B,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAE/E,eAAO,MAAM,UAAU,6CAYrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"CardFooter.d.ts","sourceRoot":"","sources":["../../src/cards/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGxD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG;IAC/B,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,UAAU,6CAYrB,CAAC"}
|
package/dts/cards/CardGroup.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { View } from 'react-native';
|
|
3
3
|
import type { GroupProps, RenderGroupItem } from '../layout/Group';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
6
|
+
* @deprecationExpectedRemoval v10
|
|
7
|
+
*/
|
|
4
8
|
export type CardGroupBaseProps = GroupProps;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
11
|
+
* @deprecationExpectedRemoval v10
|
|
12
|
+
*/
|
|
5
13
|
export type CardGroupProps = CardGroupBaseProps;
|
|
6
14
|
export type CardGroupRenderItem = RenderGroupItem;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
17
|
+
* @deprecationExpectedRemoval v10
|
|
18
|
+
*/
|
|
7
19
|
export declare const CardGroup: React.MemoExoticComponent<
|
|
8
20
|
React.ForwardRefExoticComponent<
|
|
9
21
|
import('../styles/styleProps').StyleProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardGroup.d.ts","sourceRoot":"","sources":["../../src/cards/CardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGnE,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAC5C,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAChD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA2BrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"CardGroup.d.ts","sourceRoot":"","sources":["../../src/cards/CardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGnE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAC5C;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAChD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA2BrB,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CardHeaderProps as CardHeaderBaseProps } from '@coinbase/cds-common/types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use ContentCardHeaderProps instead. This will be removed in a future major release.
|
|
5
|
+
* @deprecationExpectedRemoval v10
|
|
6
|
+
*/
|
|
3
7
|
export type CardHeaderProps = CardHeaderBaseProps;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use ContentCardHeader instead. This will be removed in a future major release.
|
|
10
|
+
* @deprecationExpectedRemoval v10
|
|
11
|
+
*/
|
|
4
12
|
export declare const CardHeader: React.MemoExoticComponent<
|
|
5
13
|
({
|
|
6
14
|
avatar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../src/cards/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMzF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAElD,eAAO,MAAM,UAAU,gFAC+B,eAAe,6CAoBpE,CAAC"}
|
|
1
|
+
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../src/cards/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMzF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,UAAU,gFAC+B,eAAe,6CAoBpE,CAAC"}
|
package/dts/cards/CardMedia.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { CardMediaProps as CommonCardMediaProps } from '@coinbase/cds-common/types';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use SpotSquare when `type` is "spotSquare", Pictogram when `type` is "pictogram", or RemoteImage when `type` is "image". This will be removed in a future major release.
|
|
4
|
+
* @deprecationExpectedRemoval v10
|
|
5
|
+
*/
|
|
2
6
|
export type CardMediaProps = CommonCardMediaProps;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use SpotSquare when `type` is "spotSquare", Pictogram when `type` is "pictogram", or RemoteImage when `type` is "image". This will be removed in a future major release.
|
|
9
|
+
* @deprecationExpectedRemoval v10
|
|
10
|
+
*/
|
|
3
11
|
export declare const CardMedia: import('react').NamedExoticComponent<CommonCardMediaProps>;
|
|
4
12
|
//# sourceMappingURL=CardMedia.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardMedia.d.ts","sourceRoot":"","sources":["../../src/cards/CardMedia.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,cAAc,IAAI,oBAAoB,EACvC,MAAM,4BAA4B,CAAC;AAKpC,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAclD,eAAO,MAAM,SAAS,4DAiCpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"CardMedia.d.ts","sourceRoot":"","sources":["../../src/cards/CardMedia.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,cAAc,IAAI,oBAAoB,EACvC,MAAM,4BAA4B,CAAC;AAKpC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAclD;;;GAGG;AACH,eAAO,MAAM,SAAS,4DAiCpB,CAAC"}
|
package/esm/buttons/Button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["variant", "loading", "progressCircleSize", "transparent", "block", "compact", "children", "start", "startIcon", "startIconActive", "end", "endIcon", "endIconActive", "flush", "noScaleOnPress", "numberOfLines", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "background", "color", "style", "wrapperStyles", "feedback", "borderColor", "borderWidth", "borderRadius", "accessibilityLabel", "accessibilityHint"];
|
|
1
|
+
const _excluded = ["variant", "loading", "progressCircleSize", "transparent", "block", "compact", "children", "start", "startIcon", "startIconActive", "end", "endIcon", "endIconActive", "flush", "noScaleOnPress", "numberOfLines", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "background", "color", "style", "wrapperStyles", "feedback", "borderColor", "borderWidth", "borderRadius", "height", "accessibilityLabel", "accessibilityHint", "padding", "paddingStart", "paddingEnd", "paddingTop", "paddingBottom", "paddingX", "paddingY"];
|
|
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, isValidElement, memo, useCallback, useMemo } from 'react';
|
|
@@ -61,8 +61,16 @@ export const Button = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Button(
|
|
|
61
61
|
borderColor,
|
|
62
62
|
borderWidth = 100,
|
|
63
63
|
borderRadius = compact ? 700 : 900,
|
|
64
|
+
height = interactableHeight[compact ? 'compact' : 'regular'],
|
|
64
65
|
accessibilityLabel,
|
|
65
|
-
accessibilityHint
|
|
66
|
+
accessibilityHint,
|
|
67
|
+
padding,
|
|
68
|
+
paddingStart,
|
|
69
|
+
paddingEnd,
|
|
70
|
+
paddingTop,
|
|
71
|
+
paddingBottom,
|
|
72
|
+
paddingX: paddingXProp,
|
|
73
|
+
paddingY: paddingYProp
|
|
66
74
|
} = _ref,
|
|
67
75
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
68
76
|
const theme = useTheme();
|
|
@@ -75,7 +83,6 @@ export const Button = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Button(
|
|
|
75
83
|
const borderColorValue = borderColor != null ? borderColor : variantStyle.borderColor;
|
|
76
84
|
const sizingStyle = block ? styles.block : styles.inline;
|
|
77
85
|
const justifyContent = flush ? 'flex-start' : hasIcon ? 'space-between' : 'center';
|
|
78
|
-
const minHeight = interactableHeight[compact ? 'compact' : 'regular'];
|
|
79
86
|
const {
|
|
80
87
|
paddingX,
|
|
81
88
|
paddingY,
|
|
@@ -110,6 +117,7 @@ export const Button = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Button(
|
|
|
110
117
|
borderRadius: borderRadius,
|
|
111
118
|
borderWidth: borderWidth,
|
|
112
119
|
feedback: feedback,
|
|
120
|
+
height: height,
|
|
113
121
|
loading: loading,
|
|
114
122
|
marginEnd: marginEnd,
|
|
115
123
|
marginStart: marginStart,
|
|
@@ -122,9 +130,14 @@ export const Button = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Button(
|
|
|
122
130
|
alignItems: "center",
|
|
123
131
|
flexWrap: "nowrap",
|
|
124
132
|
justifyContent: justifyContent,
|
|
125
|
-
minHeight:
|
|
126
|
-
|
|
127
|
-
|
|
133
|
+
minHeight: height,
|
|
134
|
+
padding: padding,
|
|
135
|
+
paddingBottom: paddingBottom,
|
|
136
|
+
paddingEnd: paddingEnd,
|
|
137
|
+
paddingStart: paddingStart,
|
|
138
|
+
paddingTop: paddingTop,
|
|
139
|
+
paddingX: paddingXProp != null ? paddingXProp : paddingX,
|
|
140
|
+
paddingY: paddingYProp != null ? paddingYProp : paddingY,
|
|
128
141
|
style: sizingStyle,
|
|
129
142
|
children: loading ? /*#__PURE__*/_jsx(ProgressCircle, {
|
|
130
143
|
indeterminate: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["name", "active", "variant", "transparent", "compact", "background", "color", "borderColor", "iconSize", "borderWidth", "borderRadius", "feedback", "flush", "loading", "progressCircleSize", "style", "accessibilityHint", "accessibilityLabel"];
|
|
1
|
+
const _excluded = ["name", "active", "variant", "transparent", "compact", "background", "color", "borderColor", "iconSize", "borderWidth", "borderRadius", "height", "width", "feedback", "flush", "loading", "progressCircleSize", "style", "accessibilityHint", "accessibilityLabel"];
|
|
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 { forwardRef, memo, useCallback, useMemo } from 'react';
|
|
@@ -24,6 +24,8 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Ico
|
|
|
24
24
|
iconSize = compact ? 's' : 'm',
|
|
25
25
|
borderWidth = 100,
|
|
26
26
|
borderRadius = 1000,
|
|
27
|
+
height = interactableHeight[compact ? 'compact' : 'regular'],
|
|
28
|
+
width = interactableHeight[compact ? 'compact' : 'regular'],
|
|
27
29
|
feedback = compact ? 'light' : 'normal',
|
|
28
30
|
flush,
|
|
29
31
|
loading,
|
|
@@ -40,7 +42,6 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Ico
|
|
|
40
42
|
const colorValue = color != null ? color : variantStyle.color;
|
|
41
43
|
const backgroundValue = background != null ? background : variantStyle.background;
|
|
42
44
|
const borderColorValue = borderColor != null ? borderColor : variantStyle.borderColor;
|
|
43
|
-
const minHeight = interactableHeight[compact ? 'compact' : 'regular'];
|
|
44
45
|
const {
|
|
45
46
|
marginStart,
|
|
46
47
|
marginEnd
|
|
@@ -49,12 +50,12 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Ico
|
|
|
49
50
|
flush
|
|
50
51
|
});
|
|
51
52
|
const sizingStyle = useMemo(() => ({
|
|
52
|
-
height:
|
|
53
|
-
width:
|
|
53
|
+
height: height,
|
|
54
|
+
width: width,
|
|
54
55
|
alignItems: 'center',
|
|
55
56
|
flexDirection: 'column',
|
|
56
57
|
justifyContent: 'center'
|
|
57
|
-
}), [
|
|
58
|
+
}), [height, width]);
|
|
58
59
|
const pressableStyle = useCallback(state => [sizingStyle, typeof style === 'function' ? style(state) : style], [sizingStyle, style]);
|
|
59
60
|
return /*#__PURE__*/_jsx(Pressable, _extends({
|
|
60
61
|
ref: ref,
|
|
@@ -73,9 +74,9 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Ico
|
|
|
73
74
|
}, props, {
|
|
74
75
|
children: loading ? /*#__PURE__*/_jsx(Box, {
|
|
75
76
|
alignItems: "center",
|
|
76
|
-
height:
|
|
77
|
+
height: height,
|
|
77
78
|
justifyContent: "center",
|
|
78
|
-
width:
|
|
79
|
+
width: width,
|
|
79
80
|
children: /*#__PURE__*/_jsx(ProgressCircle, {
|
|
80
81
|
indeterminate: true,
|
|
81
82
|
color: colorValue,
|
|
@@ -222,6 +222,38 @@ const ButtonScreen = () => {
|
|
|
222
222
|
},
|
|
223
223
|
children: "Hello world"
|
|
224
224
|
})
|
|
225
|
+
}), /*#__PURE__*/_jsxs(Example, {
|
|
226
|
+
inline: true,
|
|
227
|
+
title: "Small",
|
|
228
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
229
|
+
gap: 2,
|
|
230
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
231
|
+
height: 32,
|
|
232
|
+
paddingY: 0,
|
|
233
|
+
children: "I am a button"
|
|
234
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
235
|
+
loading: true,
|
|
236
|
+
height: 32,
|
|
237
|
+
paddingY: 0,
|
|
238
|
+
children: "I am a button"
|
|
239
|
+
})]
|
|
240
|
+
}), /*#__PURE__*/_jsxs(HStack, {
|
|
241
|
+
gap: 2,
|
|
242
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
243
|
+
compact: true,
|
|
244
|
+
height: 24,
|
|
245
|
+
paddingY: 0,
|
|
246
|
+
progressCircleSize: 16,
|
|
247
|
+
children: "I am a button"
|
|
248
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
249
|
+
compact: true,
|
|
250
|
+
loading: true,
|
|
251
|
+
height: 24,
|
|
252
|
+
paddingY: 0,
|
|
253
|
+
progressCircleSize: 16,
|
|
254
|
+
children: "I am a button"
|
|
255
|
+
})]
|
|
256
|
+
})]
|
|
225
257
|
})]
|
|
226
258
|
});
|
|
227
259
|
};
|
|
@@ -322,6 +322,38 @@ const IconButtonScreen = () => {
|
|
|
322
322
|
}), variant.title]
|
|
323
323
|
}, index);
|
|
324
324
|
})
|
|
325
|
+
}), /*#__PURE__*/_jsxs(Example, {
|
|
326
|
+
inline: true,
|
|
327
|
+
title: "Small",
|
|
328
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
329
|
+
accessibilityLabel: accessibilityLabel,
|
|
330
|
+
height: 32,
|
|
331
|
+
name: iconName,
|
|
332
|
+
onPress: onPress,
|
|
333
|
+
width: 32
|
|
334
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
335
|
+
loading: true,
|
|
336
|
+
accessibilityLabel: accessibilityLabel,
|
|
337
|
+
height: 32,
|
|
338
|
+
name: iconName,
|
|
339
|
+
onPress: onPress,
|
|
340
|
+
width: 32
|
|
341
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
342
|
+
compact: true,
|
|
343
|
+
accessibilityLabel: accessibilityLabel,
|
|
344
|
+
height: 24,
|
|
345
|
+
name: iconName,
|
|
346
|
+
onPress: onPress,
|
|
347
|
+
width: 24
|
|
348
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
349
|
+
compact: true,
|
|
350
|
+
loading: true,
|
|
351
|
+
accessibilityLabel: accessibilityLabel,
|
|
352
|
+
height: 24,
|
|
353
|
+
name: iconName,
|
|
354
|
+
onPress: onPress,
|
|
355
|
+
width: 24
|
|
356
|
+
})]
|
|
325
357
|
})]
|
|
326
358
|
});
|
|
327
359
|
};
|
package/esm/cards/Card.js
CHANGED
|
@@ -39,6 +39,11 @@ const getBorderRadiusPinStyle = borderRadius => ({
|
|
|
39
39
|
},
|
|
40
40
|
all: {}
|
|
41
41
|
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use ContentCard instead. This will be removed in a future major release.
|
|
45
|
+
* @deprecationExpectedRemoval v10
|
|
46
|
+
*/
|
|
42
47
|
export const Card = /*#__PURE__*/memo(function OldCard(_ref) {
|
|
43
48
|
let {
|
|
44
49
|
children,
|
package/esm/cards/CardBody.js
CHANGED
|
@@ -31,6 +31,11 @@ const CardBodyAction = /*#__PURE__*/memo(function CardBodyAction(_ref) {
|
|
|
31
31
|
children: children
|
|
32
32
|
}));
|
|
33
33
|
});
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use ContentCardBody instead. This will be removed in a future major release.
|
|
37
|
+
* @deprecationExpectedRemoval v10
|
|
38
|
+
*/
|
|
34
39
|
export const CardBody = /*#__PURE__*/memo(function CardBody(_ref2) {
|
|
35
40
|
var _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _props$maxWidth, _props$minHeight;
|
|
36
41
|
let {
|
package/esm/cards/CardFooter.js
CHANGED
|
@@ -5,6 +5,10 @@ import React, { memo } from 'react';
|
|
|
5
5
|
import { gutter } from '@coinbase/cds-common/tokens/sizing';
|
|
6
6
|
import { HStack } from '../layout/HStack';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use ContentCardFooter instead. This will be removed in a future major release.
|
|
10
|
+
* @deprecationExpectedRemoval v10
|
|
11
|
+
*/
|
|
8
12
|
export const CardFooter = /*#__PURE__*/memo(function CardFooter(_ref) {
|
|
9
13
|
let {
|
|
10
14
|
children,
|
package/esm/cards/CardGroup.js
CHANGED
|
@@ -5,7 +5,21 @@ import React, { forwardRef, memo } from 'react';
|
|
|
5
5
|
import { gutter } from '@coinbase/cds-common/tokens/sizing';
|
|
6
6
|
import { Divider } from '../layout/Divider';
|
|
7
7
|
import { Group } from '../layout/Group';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
11
|
+
* @deprecationExpectedRemoval v10
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
16
|
+
* @deprecationExpectedRemoval v10
|
|
17
|
+
*/
|
|
8
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
21
|
+
* @deprecationExpectedRemoval v10
|
|
22
|
+
*/
|
|
9
23
|
export const CardGroup = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function CardGroup(_ref, ref) {
|
|
10
24
|
let {
|
|
11
25
|
accessibilityLabel,
|
package/esm/cards/CardHeader.js
CHANGED
|
@@ -2,7 +2,16 @@ import React, { memo } from 'react';
|
|
|
2
2
|
import { HStack } from '../layout/HStack';
|
|
3
3
|
import { RemoteImage } from '../media/RemoteImage';
|
|
4
4
|
import { Text } from '../typography/Text';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use ContentCardHeaderProps instead. This will be removed in a future major release.
|
|
8
|
+
* @deprecationExpectedRemoval v10
|
|
9
|
+
*/
|
|
5
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use ContentCardHeader instead. This will be removed in a future major release.
|
|
13
|
+
* @deprecationExpectedRemoval v10
|
|
14
|
+
*/
|
|
6
15
|
export const CardHeader = /*#__PURE__*/memo(_ref => {
|
|
7
16
|
let {
|
|
8
17
|
avatar,
|
package/esm/cards/CardMedia.js
CHANGED
|
@@ -5,6 +5,11 @@ import { memo } from 'react';
|
|
|
5
5
|
import { defaultMediaDimension, defaultMediaSize, defaultPictogramMediaDimension } from '@coinbase/cds-common/tokens/card';
|
|
6
6
|
import { Pictogram, SpotSquare } from '../illustrations';
|
|
7
7
|
import { getSource, RemoteImage } from '../media/RemoteImage';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use SpotSquare when `type` is "spotSquare", Pictogram when `type` is "pictogram", or RemoteImage when `type` is "image". This will be removed in a future major release.
|
|
11
|
+
* @deprecationExpectedRemoval v10
|
|
12
|
+
*/
|
|
8
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
14
|
const imageProps = {
|
|
10
15
|
start: {
|
|
@@ -17,6 +22,11 @@ const imageProps = {
|
|
|
17
22
|
},
|
|
18
23
|
end: defaultMediaSize
|
|
19
24
|
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use SpotSquare when `type` is "spotSquare", Pictogram when `type` is "pictogram", or RemoteImage when `type` is "image". This will be removed in a future major release.
|
|
28
|
+
* @deprecationExpectedRemoval v10
|
|
29
|
+
*/
|
|
20
30
|
export const CardMedia = /*#__PURE__*/memo(function CardMedia(_ref) {
|
|
21
31
|
var _props$alt;
|
|
22
32
|
let {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-mobile",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.61.0",
|
|
4
4
|
"description": "Coinbase Design System - Mobile",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"react-native-svg": "^14.1.0"
|
|
198
198
|
},
|
|
199
199
|
"dependencies": {
|
|
200
|
-
"@coinbase/cds-common": "^8.
|
|
200
|
+
"@coinbase/cds-common": "^8.61.0",
|
|
201
201
|
"@coinbase/cds-icons": "^5.13.0",
|
|
202
202
|
"@coinbase/cds-illustrations": "^4.36.0",
|
|
203
203
|
"@coinbase/cds-lottie-files": "^3.3.4",
|