@coinbase/cds-web 8.20.1 → 8.20.2
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.20.2 (11/12/2025 PST)
|
|
12
|
+
|
|
13
|
+
#### 🐞 Fixes
|
|
14
|
+
|
|
15
|
+
- Support custom buttons in ModalFooter. [[#155](https://github.com/coinbase/cds/pull/155)]
|
|
16
|
+
|
|
11
17
|
## 8.20.1 (11/7/2025 PST)
|
|
12
18
|
|
|
13
19
|
#### 🐞 Fixes
|
|
@@ -27,6 +27,6 @@ export declare const ModalFooter: ({
|
|
|
27
27
|
primaryAction,
|
|
28
28
|
secondaryAction,
|
|
29
29
|
...props
|
|
30
|
-
}: ModalFooterProps) => import('react/jsx-runtime').JSX.Element
|
|
30
|
+
}: ModalFooterProps) => import('react/jsx-runtime').JSX.Element;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=ModalFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../src/overlays/modal/ModalFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4BpE,KAAK,oBAAoB,GAAG;IAC1B,4BAA4B;IAC5B,aAAa,EAAE,WAAW,CACxB,KAAK,CAAC,YAAY,CAAC,eAAe,GAAG;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;KAAE,CAAC,CAC5E,CAAC;IACF,8BAA8B;IAC9B,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,GAAG;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;KAAE,CAAC,CAAC;CAC/F,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAElF,eAAO,MAAM,WAAW,GAAI,8FASzB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../src/overlays/modal/ModalFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4BpE,KAAK,oBAAoB,GAAG;IAC1B,4BAA4B;IAC5B,aAAa,EAAE,WAAW,CACxB,KAAK,CAAC,YAAY,CAAC,eAAe,GAAG;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;KAAE,CAAC,CAC5E,CAAC;IACF,8BAA8B;IAC9B,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,GAAG;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;KAAE,CAAC,CAAC;CAC/F,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAElF,eAAO,MAAM,WAAW,GAAI,8FASzB,gBAAgB,4CAkBlB,CAAC"}
|
|
@@ -8,7 +8,6 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
8
8
|
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; }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { useModalContext } from '@coinbase/cds-common/overlays/ModalContext';
|
|
11
|
-
import { Button } from '../../buttons/Button';
|
|
12
11
|
import { HStack } from '../../layout/HStack';
|
|
13
12
|
import { breakpoints } from '../../styles/media';
|
|
14
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -27,10 +26,6 @@ export const ModalFooter = _ref => {
|
|
|
27
26
|
const {
|
|
28
27
|
hideDividers
|
|
29
28
|
} = useModalContext();
|
|
30
|
-
if (primaryAction.type !== Button || secondaryAction && primaryAction.type !== Button) {
|
|
31
|
-
console.error('Modal footer actions need to be CDS Button component');
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
29
|
return /*#__PURE__*/_jsxs(HStack, _objectSpread(_objectSpread({
|
|
35
30
|
borderedTop: !hideDividers,
|
|
36
31
|
className: baseCss,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-web",
|
|
3
|
-
"version": "8.20.
|
|
3
|
+
"version": "8.20.2",
|
|
4
4
|
"description": "Coinbase Design System - Web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"react-dom": "^18.3.1"
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@coinbase/cds-common": "^8.20.
|
|
150
|
+
"@coinbase/cds-common": "^8.20.2",
|
|
151
151
|
"@coinbase/cds-icons": "^5.5.1",
|
|
152
152
|
"@coinbase/cds-illustrations": "^4.26.1",
|
|
153
153
|
"@coinbase/cds-lottie-files": "^3.3.3",
|