@coinbase/cds-mobile 8.16.3 → 8.17.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,22 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 8.17.0 ((10/16/2025, 07:14 AM PST))
12
+
13
+ This is an artificial version bump with no new change.
14
+
15
+ ## 8.16.5 (10/16/2025 PST)
16
+
17
+ #### 🐞 Fixes
18
+
19
+ - Fix onMount Stepper animations when step other than first is initially active. [[#109](https://github.com/coinbase/cds/pull/109)]
20
+
21
+ ## 8.16.4 (10/15/2025 PST)
22
+
23
+ #### 🐞 Fixes
24
+
25
+ - Fix Android Tray handle bar unfocusable issue. [[#99](https://github.com/coinbase/cds/pull/99)] [DX-4932]
26
+
11
27
  ## 8.16.3 (10/14/2025 PST)
12
28
 
13
29
  #### 🐞 Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/overlays/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAa/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAahF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CAAC;AAEzE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gDAAgD;IAChD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,GACvC,IAAI,CAAC,UAAU,EAAE,gBAAgB,GAAG,UAAU,CAAC,GAAG;IAChD,+CAA+C;IAC/C,QAAQ,EAAE,oBAAoB,GAAG,KAAK,CAAC,SA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M,IAAI;IAC3B;;;OAGG;wCACiC,OAAO;IAC3C,oEAAoE;aAC3D,MAAM,IAAI;IAEnB;;;OAGG;qCAC8B,MAAM;IACvC;;;OAGG;kCAC2B,MAAM;IACpC;;;OAGG;mBACY,oBAAoB,GAAG,KAAK,CAAC,SAAS;6CAwLxD,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import type { ViewProps } from 'react-native';
2
+ export type HandleBarProps = ViewProps & {
3
+ /** Callback fired when the handlebar is pressed via accessibility action */
4
+ onAccessibilityPress?: () => void;
5
+ };
2
6
  export declare const HandleBar: {
3
- (props: ViewProps): import('react/jsx-runtime').JSX.Element;
7
+ ({ onAccessibilityPress, ...props }: HandleBarProps): import('react/jsx-runtime').JSX.Element;
4
8
  displayName: string;
5
9
  };
6
10
  //# sourceMappingURL=HandleBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HandleBar.d.ts","sourceRoot":"","sources":["../../../src/overlays/handlebar/HandleBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9C,eAAO,MAAM,SAAS;YAAW,SAAS;;CAazC,CAAC"}
1
+ {"version":3,"file":"HandleBar.d.ts","sourceRoot":"","sources":["../../../src/overlays/handlebar/HandleBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA4B,SAAS,EAAE,MAAM,cAAc,CAAC;AAKxE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,4EAA4E;IAC5E,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,SAAS;yCAAwC,cAAc;;CAiC3E,CAAC"}
@@ -2,7 +2,7 @@ const _excluded = ["children", "pin", "onCloseComplete", "preventDismissGestures
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, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
5
- import { Animated, Modal, Platform, StyleSheet, useWindowDimensions, View } from 'react-native';
5
+ import { Animated, Modal, Platform, StyleSheet, useWindowDimensions } from 'react-native';
6
6
  import { drawerAnimationDefaultDuration, MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
7
7
  import { OverlayContentContext } from '@coinbase/cds-common/overlays/OverlayContentContext';
8
8
  import { horizontalDrawerPercentageOfView, verticalDrawerPercentageOfView as defaultVerticalDrawerPercentageOfView } from '@coinbase/cds-common/tokens/drawer';
@@ -118,34 +118,12 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Drawer(
118
118
  overflow: 'hidden'
119
119
  }
120
120
  });
121
- const combinedStyles = [cardStyles.spacing, drawerAnimationStyles];
122
121
  useImperativeHandle(ref, () => ({
123
122
  handleClose
124
123
  }), [handleClose]);
125
-
126
- // this hack clips internal content from overflowing the borderRadius, but also make sure the handlebar still shows if handlebar is enabled
127
- const content = useMemo(() => {
128
- if (shouldShowHandleBar) {
129
- return /*#__PURE__*/_jsxs(View, {
130
- children: [/*#__PURE__*/_jsx(HandleBar, {
131
- accessibilityLabel: handleBarAccessibilityLabel,
132
- accessibilityRole: "button",
133
- onAccessibilityTap: handleClose
134
- }), /*#__PURE__*/_jsx(Box, {
135
- borderRadius: 400,
136
- style: shouldShowHandleBar && cardStyles.overflowStyles,
137
- children: typeof children === 'function' ? children({
138
- handleClose
139
- }) : children
140
- })]
141
- });
142
- }
143
- return /*#__PURE__*/_jsx(View, {
144
- children: typeof children === 'function' ? children({
145
- handleClose
146
- }) : children
147
- });
148
- }, [shouldShowHandleBar, cardStyles, children, handleClose, handleBarAccessibilityLabel]);
124
+ const content = useMemo(() => typeof children === 'function' ? children({
125
+ handleClose
126
+ }) : children, [children, handleClose]);
149
127
  return /*#__PURE__*/_jsx(Modal, _extends({
150
128
  hardwareAccelerated: true,
151
129
  transparent: true,
@@ -163,20 +141,27 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Drawer(
163
141
  onTouchStart: handleOverlayPress,
164
142
  opacity: opacityAnimation,
165
143
  testID: "drawer-overlay"
166
- }), /*#__PURE__*/_jsx(Box, _extends({}, getPanGestureHandlers, {
144
+ }), /*#__PURE__*/_jsxs(Box, _extends({}, getPanGestureHandlers, {
167
145
  animated: true,
168
- borderRadius: isPinHorizontal ? 0 : 400,
169
- bordered: activeColorScheme === 'dark',
170
- elevation: 2,
171
- maxHeight: !isPinHorizontal ? verticalDrawerMaxHeight : '100%',
172
- onAccessibilityEscape: handleClose,
173
- pin: pin,
174
- style: combinedStyles
146
+ onAccessibilityEscape: handleClose
175
147
  // close modal when user performs the "escape" accessibility gesture
176
148
  // https://reactnative.dev/docs/accessibility#onaccessibilityescape-ios
177
149
  ,
150
+ pin: pin,
151
+ style: drawerAnimationStyles,
178
152
  width: isPinHorizontal ? horizontalDrawerWidth : '100%',
179
- children: content
153
+ children: [shouldShowHandleBar && /*#__PURE__*/_jsx(HandleBar, {
154
+ accessibilityLabel: handleBarAccessibilityLabel,
155
+ accessibilityRole: "button",
156
+ onAccessibilityPress: handleClose
157
+ }), /*#__PURE__*/_jsx(Box, {
158
+ borderRadius: isPinHorizontal ? 0 : 400,
159
+ bordered: activeColorScheme === 'dark',
160
+ elevation: 2,
161
+ maxHeight: !isPinHorizontal ? verticalDrawerMaxHeight : '100%',
162
+ style: [cardStyles.spacing, shouldShowHandleBar && cardStyles.overflowStyles],
163
+ children: content
164
+ })]
180
165
  }))]
181
166
  })
182
167
  }));
@@ -1,19 +1,37 @@
1
+ const _excluded = ["onAccessibilityPress"];
1
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); }
2
- import React from 'react';
3
- import { StyleSheet, View } from 'react-native';
4
- import { handleBarHeight, handleBarOffset } from '@coinbase/cds-common/tokens/drawer';
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
+ import { useCallback } from 'react';
5
+ import { Pressable, StyleSheet, View } from 'react-native';
6
+ import { handleBarHeight } from '@coinbase/cds-common/tokens/drawer';
5
7
  import { useTheme } from '../../hooks/useTheme';
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const HandleBar = props => {
9
+ export const HandleBar = _ref => {
10
+ let {
11
+ onAccessibilityPress
12
+ } = _ref,
13
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
8
14
  const theme = useTheme();
9
15
  const handleBarBackgroundColor = theme.color.bgSecondary;
10
16
  const handleBarStyles = {
11
- backgroundColor: handleBarBackgroundColor,
12
- marginBottom: theme.space[2]
17
+ backgroundColor: handleBarBackgroundColor
13
18
  };
14
- return /*#__PURE__*/_jsx(View, _extends({
19
+ const touchableAreaStyles = {
20
+ paddingBottom: theme.space[2],
21
+ paddingTop: theme.space[2]
22
+ };
23
+ const handleAccessibilityAction = useCallback(event => {
24
+ if (event.nativeEvent.actionName === 'activate') {
25
+ onAccessibilityPress == null || onAccessibilityPress();
26
+ }
27
+ }, [onAccessibilityPress]);
28
+ return /*#__PURE__*/_jsx(Pressable, _extends({
15
29
  accessible: true,
16
- style: styles.touchableArea,
30
+ accessibilityActions: onAccessibilityPress ? [{
31
+ name: 'activate'
32
+ }] : undefined,
33
+ onAccessibilityAction: handleAccessibilityAction,
34
+ style: [styles.touchableArea, touchableAreaStyles],
17
35
  testID: "handleBar"
18
36
  }, props, {
19
37
  children: /*#__PURE__*/_jsx(View, {
@@ -23,13 +41,7 @@ export const HandleBar = props => {
23
41
  };
24
42
  const styles = StyleSheet.create({
25
43
  touchableArea: {
26
- position: 'absolute',
27
- top: -handleBarOffset,
28
- left: 0,
29
- right: 0,
30
- height: handleBarOffset,
31
- alignItems: 'center',
32
- justifyContent: 'flex-end'
44
+ alignItems: 'center'
33
45
  },
34
46
  handleBar: {
35
47
  width: 64,
@@ -107,7 +107,7 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
107
107
  const previousComplete = (_usePreviousValue = usePreviousValue(complete)) != null ? _usePreviousValue : false;
108
108
  const previousActiveStepIndex = (_usePreviousValue2 = usePreviousValue(activeStepIndex)) != null ? _usePreviousValue2 : -1;
109
109
  const [progressSprings, progressSpringsApi] = useSprings(steps.length, index => ({
110
- progress: complete || activeStepIndex >= 0 && index <= activeStepIndex ? 1 : 0,
110
+ progress: complete ? 1 : 0,
111
111
  config: progressSpringConfig,
112
112
  immediate: !animate || disableAnimateOnMount && !hasMounted
113
113
  }));
@@ -117,7 +117,7 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
117
117
  let isAnimatingForward = false;
118
118
 
119
119
  // Case when going from not-complete to complete
120
- if (complete !== previousComplete) {
120
+ if (Boolean(complete) !== previousComplete) {
121
121
  if (complete) {
122
122
  // Going to complete: animate from activeStepIndex+1 to end
123
123
  stepsToAnimate = Array.from({
@@ -1,4 +1,4 @@
1
- const _excluded = ["steps", "activeStepId", "title"],
1
+ const _excluded = ["steps", "defaultActiveStepId", "title"],
2
2
  _excluded2 = ["onPress"],
3
3
  _excluded3 = ["active", "complete", "visited"];
4
4
  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); }
@@ -75,14 +75,14 @@ const twoLevelSteps = [{
75
75
  const StepperHorizontalExample = _ref => {
76
76
  let {
77
77
  steps = basicSteps,
78
- activeStepId,
78
+ defaultActiveStepId,
79
79
  title
80
80
  } = _ref,
81
81
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
82
82
  const [renderKey, setRenderKey] = useState(0);
83
83
  const [stepperState, stepperApi] = useStepper({
84
84
  steps,
85
- defaultActiveStepId: activeStepId
85
+ defaultActiveStepId
86
86
  });
87
87
  const [complete, setComplete] = useState(false);
88
88
  const activeIndex = stepperState.activeStepId ? steps.findIndex(step => step.id === stepperState.activeStepId) : -1;
@@ -199,7 +199,6 @@ const StepperHorizontalExample = _ref => {
199
199
  // ------------------------------------------------------------
200
200
  const NoActiveStep = () => {
201
201
  return /*#__PURE__*/_jsx(StepperHorizontalExample, {
202
- activeStepId: null,
203
202
  steps: basicSteps,
204
203
  title: "No Active Step"
205
204
  });
@@ -242,7 +241,7 @@ const StepperHorizontalScreen = () => {
242
241
  children: [/*#__PURE__*/_jsx(Example, {
243
242
  title: "Default",
244
243
  children: /*#__PURE__*/_jsx(StepperHorizontalExample, {
245
- activeStepId: basicSteps[2].id,
244
+ defaultActiveStepId: basicSteps[2].id,
246
245
  steps: basicSteps
247
246
  })
248
247
  }), /*#__PURE__*/_jsx(Example, {
@@ -258,13 +257,13 @@ const StepperHorizontalScreen = () => {
258
257
  }), /*#__PURE__*/_jsx(Example, {
259
258
  title: "No Label Text",
260
259
  children: /*#__PURE__*/_jsx(StepperHorizontalExample, {
261
- activeStepId: noLabelSteps[0].id,
260
+ defaultActiveStepId: noLabelSteps[0].id,
262
261
  steps: noLabelSteps
263
262
  })
264
263
  }), /*#__PURE__*/_jsx(Example, {
265
264
  title: "Long Text",
266
265
  children: /*#__PURE__*/_jsx(StepperHorizontalExample, {
267
- activeStepId: longLabelSteps[0].id,
266
+ defaultActiveStepId: longLabelSteps[0].id,
268
267
  steps: longLabelSteps
269
268
  })
270
269
  }), /*#__PURE__*/_jsx(Example, {
@@ -287,13 +286,13 @@ const StepperHorizontalScreen = () => {
287
286
  size: "s"
288
287
  }, props));
289
288
  },
290
- activeStepId: basicSteps[0].id,
289
+ defaultActiveStepId: basicSteps[0].id,
291
290
  steps: basicSteps
292
291
  })
293
292
  }), /*#__PURE__*/_jsx(Example, {
294
293
  title: "Nested Steps",
295
294
  children: /*#__PURE__*/_jsx(StepperHorizontalExample, {
296
- activeStepId: twoLevelSteps[0].id,
295
+ defaultActiveStepId: twoLevelSteps[0].id,
297
296
  steps: twoLevelSteps
298
297
  })
299
298
  }), /*#__PURE__*/_jsx(Example, {
@@ -302,22 +301,22 @@ const StepperHorizontalScreen = () => {
302
301
  gap: 4,
303
302
  children: [/*#__PURE__*/_jsx(StepperHorizontalExample, {
304
303
  StepperLabelComponent: null,
305
- activeStepId: basicSteps[0].id,
304
+ defaultActiveStepId: basicSteps[0].id,
306
305
  steps: basicSteps,
307
306
  title: "StepperLabelComponent = null"
308
307
  }), /*#__PURE__*/_jsx(StepperHorizontalExample, {
309
308
  StepperProgressComponent: null,
310
- activeStepId: basicSteps[0].id,
309
+ defaultActiveStepId: basicSteps[0].id,
311
310
  steps: basicSteps,
312
311
  title: "StepperProgressComponent = null"
313
312
  }), /*#__PURE__*/_jsx(StepperHorizontalExample, {
314
313
  StepperIconComponent: null,
315
- activeStepId: basicSteps[0].id,
314
+ defaultActiveStepId: basicSteps[0].id,
316
315
  steps: basicSteps,
317
316
  title: "StepperIconComponent = null"
318
317
  }), /*#__PURE__*/_jsx(StepperHorizontalExample, {
319
318
  StepperHeaderComponent: null,
320
- activeStepId: basicSteps[0].id,
319
+ defaultActiveStepId: basicSteps[0].id,
321
320
  steps: basicSteps,
322
321
  title: "StepperHeaderComponent = null"
323
322
  })]
@@ -1,4 +1,4 @@
1
- const _excluded = ["steps", "activeStepId", "title", "initialComplete", "skipParentSteps", "renderWithApi"];
1
+ const _excluded = ["steps", "defaultActiveStepId", "title", "initialComplete", "skipParentSteps", "renderWithApi"];
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, { useState } from 'react';
@@ -19,7 +19,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
19
19
  const StepperVerticalExample = _ref => {
20
20
  let {
21
21
  steps,
22
- activeStepId,
22
+ defaultActiveStepId,
23
23
  title,
24
24
  initialComplete,
25
25
  skipParentSteps,
@@ -29,7 +29,7 @@ const StepperVerticalExample = _ref => {
29
29
  const [renderKey, setRenderKey] = useState(0);
30
30
  const [stepperState, stepperApi] = useStepper({
31
31
  steps,
32
- defaultActiveStepId: activeStepId,
32
+ defaultActiveStepId,
33
33
  skipParentSteps
34
34
  });
35
35
  const [complete, setComplete] = useState(initialComplete || false);
@@ -164,6 +164,7 @@ const Default = () => {
164
164
  }];
165
165
  return /*#__PURE__*/_jsx(StepperVerticalExample, {
166
166
  completedStepAccessibilityLabel: "Finished",
167
+ defaultActiveStepId: steps[0].id,
167
168
  steps: steps
168
169
  });
169
170
  };
@@ -186,7 +187,6 @@ const NoActiveStep = () => {
186
187
  label: 'Final step'
187
188
  }];
188
189
  return /*#__PURE__*/_jsx(StepperVerticalExample, {
189
- activeStepId: null,
190
190
  steps: steps,
191
191
  title: "No Active Step"
192
192
  });
@@ -330,7 +330,7 @@ const CustomIconsAndStyles = () => {
330
330
  label: 'Final step'
331
331
  }];
332
332
  return /*#__PURE__*/_jsx(StepperVerticalExample, {
333
- activeStepId: steps[0].id,
333
+ defaultActiveStepId: steps[0].id,
334
334
  steps: steps,
335
335
  styles: {
336
336
  progress: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-mobile",
3
- "version": "8.16.3",
3
+ "version": "8.17.0",
4
4
  "description": "Coinbase Design System - Mobile",
5
5
  "repository": {
6
6
  "type": "git",
@@ -150,7 +150,7 @@
150
150
  "react-native-svg": "^14.1.0"
151
151
  },
152
152
  "dependencies": {
153
- "@coinbase/cds-common": "^8.16.3",
153
+ "@coinbase/cds-common": "^8.17.0",
154
154
  "@coinbase/cds-icons": "^5.4.2",
155
155
  "@coinbase/cds-illustrations": "^4.24.0",
156
156
  "@coinbase/cds-lottie-files": "^3.3.2",