@coinbase/cds-web 9.1.1 → 9.1.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
|
+
## 9.1.2 (5/28/2026 PST)
|
|
12
|
+
|
|
13
|
+
#### 🐞 Fixes
|
|
14
|
+
|
|
15
|
+
- Add data attribute to popover container. [[#717](https://github.com/coinbase/cds/pull/717)]
|
|
16
|
+
|
|
11
17
|
## 9.1.1 (5/27/2026 PST)
|
|
12
18
|
|
|
13
19
|
#### 🐞 Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/overlays/popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAyBtE,OAAO,KAAK,EAAE,4BAA4B,EAAgB,MAAM,gBAAgB,CAAC;AAoBjF;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;mBAqDc,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/overlays/popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAyBtE,OAAO,KAAK,EAAE,4BAA4B,EAAgB,MAAM,gBAAgB,CAAC;AAoBjF;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;mBAqDc,CAAC;;;;wCAkJlC,CAAC"}
|
|
@@ -101,7 +101,8 @@ export const Popover = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
|
|
|
101
101
|
}, [computedSkid, getOffsetGap, computedGap, isAutoPlacement, rawPlacement]);
|
|
102
102
|
const {
|
|
103
103
|
refs,
|
|
104
|
-
floatingStyles
|
|
104
|
+
floatingStyles,
|
|
105
|
+
placement
|
|
105
106
|
} = useFloating({
|
|
106
107
|
placement: isAutoPlacement ? undefined : rawPlacement,
|
|
107
108
|
strategy,
|
|
@@ -124,6 +125,7 @@ export const Popover = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
|
|
|
124
125
|
}, []);
|
|
125
126
|
const memoizedContent = useMemo(() => /*#__PURE__*/_jsx("div", {
|
|
126
127
|
ref: refs.setFloating,
|
|
128
|
+
"data-placement": placement,
|
|
127
129
|
onClick: handleCaptureEvents,
|
|
128
130
|
onMouseDown: handleCaptureEvents,
|
|
129
131
|
style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
|
|
@@ -145,7 +147,7 @@ export const Popover = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
|
|
|
145
147
|
children: content
|
|
146
148
|
}))
|
|
147
149
|
})
|
|
148
|
-
}), [refs.setFloating,
|
|
150
|
+
}), [refs.setFloating, handleCaptureEvents, placement, floatingStyles, autoFocusDelay, disableAutoFocus, disableFocusTrap, disableTypeFocus, focusTabIndexElements, handleClose, respectNegativeTabIndex, restoreFocusOnUnmount, testID, controlledElementAccessibilityProps, content]);
|
|
149
151
|
const renderContent = hasHoverInteractions ? memoizedContent : /*#__PURE__*/_jsx(Box, {
|
|
150
152
|
"aria-label": accessibilityLabel,
|
|
151
153
|
"aria-modal": "true",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-web",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"description": "Coinbase Design System - Web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"react-dom": "^18.0.0 || ~19.1.2"
|
|
216
216
|
},
|
|
217
217
|
"dependencies": {
|
|
218
|
-
"@coinbase/cds-common": "^9.1.
|
|
218
|
+
"@coinbase/cds-common": "^9.1.2",
|
|
219
219
|
"@coinbase/cds-icons": "^5.17.0",
|
|
220
220
|
"@coinbase/cds-illustrations": "^4.40.1",
|
|
221
221
|
"@coinbase/cds-lottie-files": "^3.3.4",
|