@coinbase/cds-web 8.44.0 → 8.44.1

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dts/alpha/data-card/DataCard.d.ts +2 -0
  3. package/dts/alpha/data-card/DataCard.d.ts.map +1 -1
  4. package/dts/alpha/data-card/DataCardLayout.d.ts +8 -0
  5. package/dts/alpha/data-card/DataCardLayout.d.ts.map +1 -1
  6. package/dts/alpha/select/types.d.ts +114 -114
  7. package/dts/alpha/select/types.d.ts.map +1 -1
  8. package/dts/alpha/tabbed-chips/TabbedChips.d.ts +7 -21
  9. package/dts/alpha/tabbed-chips/TabbedChips.d.ts.map +1 -1
  10. package/dts/banner/Banner.d.ts.map +1 -1
  11. package/dts/cards/ContentCard/ContentCardBody.d.ts +8 -24
  12. package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -1
  13. package/dts/cards/ContentCard/ContentCardHeader.d.ts +6 -18
  14. package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -1
  15. package/dts/cards/MediaCard/MediaCardLayout.d.ts +10 -0
  16. package/dts/cards/MediaCard/MediaCardLayout.d.ts.map +1 -1
  17. package/dts/cards/MediaCard/index.d.ts +2 -0
  18. package/dts/cards/MediaCard/index.d.ts.map +1 -1
  19. package/dts/cards/MessagingCard/MessagingCardLayout.d.ts +10 -0
  20. package/dts/cards/MessagingCard/MessagingCardLayout.d.ts.map +1 -1
  21. package/dts/cards/MessagingCard/index.d.ts +2 -0
  22. package/dts/cards/MessagingCard/index.d.ts.map +1 -1
  23. package/dts/carousel/Carousel.d.ts +14 -46
  24. package/dts/carousel/Carousel.d.ts.map +1 -1
  25. package/dts/cells/Cell.d.ts +22 -6
  26. package/dts/cells/Cell.d.ts.map +1 -1
  27. package/dts/cells/ContentCell.d.ts +26 -6
  28. package/dts/cells/ContentCell.d.ts.map +1 -1
  29. package/dts/cells/ListCell.d.ts +30 -10
  30. package/dts/cells/ListCell.d.ts.map +1 -1
  31. package/dts/chips/ChipProps.d.ts +6 -2
  32. package/dts/chips/ChipProps.d.ts.map +1 -1
  33. package/dts/controls/CheckboxCell.d.ts +10 -0
  34. package/dts/controls/CheckboxCell.d.ts.map +1 -1
  35. package/dts/controls/RadioCell.d.ts +10 -0
  36. package/dts/controls/RadioCell.d.ts.map +1 -1
  37. package/dts/dots/DotCount.d.ts +8 -30
  38. package/dts/dots/DotCount.d.ts.map +1 -1
  39. package/dts/icons/Icon.d.ts +6 -4
  40. package/dts/icons/Icon.d.ts.map +1 -1
  41. package/dts/navigation/Sidebar.d.ts +10 -30
  42. package/dts/navigation/Sidebar.d.ts.map +1 -1
  43. package/dts/numbers/RollingNumber/RollingNumber.d.ts +38 -138
  44. package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -1
  45. package/dts/overlays/handlebar/HandleBar.d.ts +6 -6
  46. package/dts/overlays/handlebar/HandleBar.d.ts.map +1 -1
  47. package/dts/overlays/tray/Tray.d.ts +48 -88
  48. package/dts/overlays/tray/Tray.d.ts.map +1 -1
  49. package/dts/page/PageHeader.d.ts +11 -31
  50. package/dts/page/PageHeader.d.ts.map +1 -1
  51. package/dts/stepper/Stepper.d.ts +17 -17
  52. package/dts/stepper/Stepper.d.ts.map +1 -1
  53. package/dts/visualizations/ProgressBar.d.ts +12 -48
  54. package/dts/visualizations/ProgressBar.d.ts.map +1 -1
  55. package/dts/visualizations/ProgressBarWithFixedLabels.d.ts +10 -36
  56. package/dts/visualizations/ProgressBarWithFixedLabels.d.ts.map +1 -1
  57. package/dts/visualizations/ProgressBarWithFloatLabel.d.ts +8 -30
  58. package/dts/visualizations/ProgressBarWithFloatLabel.d.ts.map +1 -1
  59. package/dts/visualizations/ProgressCircle.d.ts +20 -72
  60. package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
  61. package/esm/banner/Banner.js +5 -4
  62. package/esm/overlays/tray/Tray.js +36 -11
  63. package/package.json +2 -2
@@ -24,54 +24,28 @@ export type ProgressCircleBaseProps = ProgressBaseProps & {
24
24
  contentNode?: React.ReactNode;
25
25
  };
26
26
  export type ProgressCircleProps = ProgressCircleBaseProps & {
27
- /**
28
- * Custom styles for the progress circle root.
29
- */
30
27
  style?: React.CSSProperties;
31
- /**
32
- * Custom class name for the progress circle root.
33
- */
34
28
  className?: string;
35
- /**
36
- * Custom styles for the progress circle.
37
- */
29
+ /** Custom styles for individual elements of the ProgressCircle component */
38
30
  styles?: {
39
- /**
40
- * Custom styles for the progress circle root.
41
- */
31
+ /** Root element */
42
32
  root?: React.CSSProperties;
43
- /**
44
- * Custom styles for the progress circle svg.
45
- */
33
+ /** SVG element */
46
34
  svg?: React.CSSProperties;
47
- /**
48
- * Custom styles for the background circle.
49
- */
35
+ /** Background circle element */
50
36
  circle?: React.CSSProperties;
51
- /**
52
- * Custom styles for the foreground circle.
53
- */
37
+ /** Foreground progress circle element */
54
38
  progress?: React.CSSProperties;
55
39
  };
56
- /**
57
- * Custom class names for the progress circle.
58
- */
40
+ /** Custom class names for individual elements of the ProgressCircle component */
59
41
  classNames?: {
60
- /**
61
- * Class name for the progress circle root.
62
- */
42
+ /** Root element */
63
43
  root?: string;
64
- /**
65
- * Class name for the progress circle svg.
66
- */
44
+ /** SVG element */
67
45
  svg?: string;
68
- /**
69
- * Class name for the progress circle background circle.
70
- */
46
+ /** Background circle element */
71
47
  circle?: string;
72
- /**
73
- * Class name for the progress circle foreground circle.
74
- */
48
+ /** Foreground progress circle element */
75
49
  progress?: string;
76
50
  };
77
51
  };
@@ -118,54 +92,28 @@ export declare const ProgressCircle: React.MemoExoticComponent<
118
92
  */
119
93
  contentNode?: React.ReactNode;
120
94
  } & {
121
- /**
122
- * Custom styles for the progress circle root.
123
- */
124
95
  style?: React.CSSProperties;
125
- /**
126
- * Custom class name for the progress circle root.
127
- */
128
96
  className?: string;
129
- /**
130
- * Custom styles for the progress circle.
131
- */
97
+ /** Custom styles for individual elements of the ProgressCircle component */
132
98
  styles?: {
133
- /**
134
- * Custom styles for the progress circle root.
135
- */
99
+ /** Root element */
136
100
  root?: React.CSSProperties;
137
- /**
138
- * Custom styles for the progress circle svg.
139
- */
101
+ /** SVG element */
140
102
  svg?: React.CSSProperties;
141
- /**
142
- * Custom styles for the background circle.
143
- */
103
+ /** Background circle element */
144
104
  circle?: React.CSSProperties;
145
- /**
146
- * Custom styles for the foreground circle.
147
- */
105
+ /** Foreground progress circle element */
148
106
  progress?: React.CSSProperties;
149
107
  };
150
- /**
151
- * Custom class names for the progress circle.
152
- */
108
+ /** Custom class names for individual elements of the ProgressCircle component */
153
109
  classNames?: {
154
- /**
155
- * Class name for the progress circle root.
156
- */
110
+ /** Root element */
157
111
  root?: string;
158
- /**
159
- * Class name for the progress circle svg.
160
- */
112
+ /** SVG element */
161
113
  svg?: string;
162
- /**
163
- * Class name for the progress circle background circle.
164
- */
114
+ /** Background circle element */
165
115
  circle?: string;
166
- /**
167
- * Class name for the progress circle foreground circle.
168
- */
116
+ /** Foreground progress circle element */
169
117
  progress?: string;
170
118
  };
171
119
  } & React.RefAttributes<HTMLDivElement>
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle.d.ts","sourceRoot":"","sources":["../../src/visualizations/ProgressCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAatD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAWvD,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,m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luded = ["variant", "startIcon", "startIconActive", "onClose", "primaryAction", "secondaryAction", "title", "children", "showDismiss", "testID", "style", "className", "numberOfLines", "label", "styleVariant", "startIconAccessibilityLabel", "closeAccessibilityLabel", "borderRadius", "margin", "marginY", "marginX", "marginTop", "marginBottom", "marginStart", "marginEnd"];
1
+ const _excluded = ["variant", "startIcon", "startIconActive", "onClose", "primaryAction", "secondaryAction", "title", "children", "showDismiss", "testID", "style", "className", "numberOfLines", "label", "styleVariant", "startIconAccessibilityLabel", "closeAccessibilityLabel", "borderRadius", "margin", "marginY", "marginX", "marginTop", "marginBottom", "marginStart", "marginEnd", "width"];
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -47,7 +47,8 @@ export const Banner = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
47
47
  marginTop,
48
48
  marginBottom,
49
49
  marginStart,
50
- marginEnd
50
+ marginEnd,
51
+ width = '100%'
51
52
  } = _ref,
52
53
  props = _objectWithoutProperties(_ref, _excluded);
53
54
  const [isCollapsed, setIsCollapsed] = useState(false);
@@ -114,7 +115,7 @@ export const Banner = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
114
115
  }), [borderColor]);
115
116
  const content = /*#__PURE__*/_jsxs(Box, _objectSpread(_objectSpread({
116
117
  position: "relative",
117
- width: "100%"
118
+ width: width
118
119
  }, !showDismiss && marginStyles), {}, {
119
120
  height: "fit-content",
120
121
  children: [/*#__PURE__*/_jsxs(HStack, _objectSpread(_objectSpread({
@@ -200,7 +201,7 @@ export const Banner = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
200
201
  display: "block",
201
202
  height: "fit-content",
202
203
  position: "relative",
203
- width: "100%"
204
+ width: width
204
205
  }, marginStyles), {}, {
205
206
  children: [/*#__PURE__*/_jsx(Collapsible, {
206
207
  accessibilityLabelledBy: accessibilityLabelledBy,
@@ -48,6 +48,31 @@ const trayContainerPinTopCss = "trayContainerPinTopCss-t1ql0a7m";
48
48
  const trayContainerPinLeftCss = "trayContainerPinLeftCss-tddpnpb";
49
49
  const trayContainerPinRightCss = "trayContainerPinRightCss-t17d10kx";
50
50
 
51
+ /**
52
+ * Static class names for Tray component parts.
53
+ * Use these selectors to target specific elements with CSS.
54
+ */
55
+ export const trayClassNames = {
56
+ /** Root container element */
57
+ root: 'cds-Tray',
58
+ /** Overlay backdrop element */
59
+ overlay: 'cds-Tray-overlay',
60
+ /** Animated sliding container element */
61
+ container: 'cds-Tray-container',
62
+ /** Header section element */
63
+ header: 'cds-Tray-header',
64
+ /** Title text element */
65
+ title: 'cds-Tray-title',
66
+ /** Content area element */
67
+ content: 'cds-Tray-content',
68
+ /** Handle bar container element, only rendered when showHandleBar is true and pin is "bottom" */
69
+ handleBar: 'cds-Tray-handleBar',
70
+ /** Handle bar indicator element, only rendered when showHandleBar is true and pin is "bottom" */
71
+ handleBarHandle: 'cds-Tray-handleBarHandle',
72
+ /** Close button element */
73
+ closeButton: 'cds-Tray-closeButton'
74
+ };
75
+
51
76
  // Extended ref type for web implementation
52
77
 
53
78
  const animationConfig = {
@@ -226,7 +251,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
226
251
  containerId: trayContainerId,
227
252
  children: /*#__PURE__*/_jsxs(Box, {
228
253
  ref: trayRef,
229
- className: classNames === null || classNames === void 0 ? void 0 : classNames.root,
254
+ className: cx(trayClassNames.root, classNames === null || classNames === void 0 ? void 0 : classNames.root),
230
255
  height: "100vh",
231
256
  pin: "all",
232
257
  position: "fixed",
@@ -234,7 +259,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
234
259
  width: "100vw",
235
260
  zIndex: zIndex,
236
261
  children: [/*#__PURE__*/_jsx(Overlay, {
237
- className: classNames === null || classNames === void 0 ? void 0 : classNames.overlay,
262
+ className: cx(trayClassNames.overlay, classNames === null || classNames === void 0 ? void 0 : classNames.overlay),
238
263
  onClick: handleOverlayClick,
239
264
  style: styles === null || styles === void 0 ? void 0 : styles.overlay,
240
265
  testID: "tray-overlay"
@@ -251,7 +276,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
251
276
  animate: animateValue,
252
277
  "aria-modal": "true",
253
278
  bordered: theme.activeColorScheme === 'dark',
254
- className: cx(trayContainerBaseCss, trayContainerPinCss, classNames === null || classNames === void 0 ? void 0 : classNames.container),
279
+ className: cx(trayContainerBaseCss, trayContainerPinCss, trayClassNames.container, classNames === null || classNames === void 0 ? void 0 : classNames.container),
255
280
  "data-testid": "tray",
256
281
  drag: !preventDismiss ? 'y' : undefined,
257
282
  dragConstraints: {
@@ -285,7 +310,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
285
310
  minHeight: 0,
286
311
  width: "100%",
287
312
  children: [(shouldShowTitle || headerContent || shouldShowHandleBar) && /*#__PURE__*/_jsxs(VStack, {
288
- className: cx(shouldShrinkPadding && trayHeaderBorderBaseCss, shouldShrinkPadding && hasScrolledDown && trayHeaderBorderVisibleCss, classNames === null || classNames === void 0 ? void 0 : classNames.header),
313
+ className: cx(shouldShrinkPadding && trayHeaderBorderBaseCss, shouldShrinkPadding && hasScrolledDown && trayHeaderBorderVisibleCss, trayClassNames.header, classNames === null || classNames === void 0 ? void 0 : classNames.header),
289
314
  flexShrink: 0,
290
315
  overflow: "hidden",
291
316
  paddingBottom: shouldShrinkPadding ? 0.75 : 1,
@@ -293,8 +318,8 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
293
318
  style: styles === null || styles === void 0 ? void 0 : styles.header,
294
319
  children: [shouldShowHandleBar && (preventDismiss ? /*#__PURE__*/_jsx(HandleBar, {
295
320
  classNames: {
296
- root: classNames === null || classNames === void 0 ? void 0 : classNames.handleBar,
297
- handle: classNames === null || classNames === void 0 ? void 0 : classNames.handleBarHandle
321
+ root: cx(trayClassNames.handleBar, classNames === null || classNames === void 0 ? void 0 : classNames.handleBar),
322
+ handle: cx(trayClassNames.handleBarHandle, classNames === null || classNames === void 0 ? void 0 : classNames.handleBarHandle)
298
323
  },
299
324
  styles: {
300
325
  root: styles === null || styles === void 0 ? void 0 : styles.handleBar,
@@ -304,8 +329,8 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
304
329
  accessibilityHint: closeAccessibilityHint,
305
330
  accessibilityLabel: closeAccessibilityLabel,
306
331
  classNames: {
307
- root: classNames === null || classNames === void 0 ? void 0 : classNames.handleBar,
308
- handle: classNames === null || classNames === void 0 ? void 0 : classNames.handleBarHandle
332
+ root: cx(trayClassNames.handleBar, classNames === null || classNames === void 0 ? void 0 : classNames.handleBar),
333
+ handle: cx(trayClassNames.handleBarHandle, classNames === null || classNames === void 0 ? void 0 : classNames.handleBarHandle)
309
334
  },
310
335
  onClose: handleClose,
311
336
  onPointerDown: e => {
@@ -322,7 +347,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
322
347
  justifyContent: title ? 'space-between' : 'flex-end',
323
348
  paddingX: horizontalPadding,
324
349
  children: [title && (typeof title === 'string' ? /*#__PURE__*/_jsx(Text, {
325
- className: classNames === null || classNames === void 0 ? void 0 : classNames.title,
350
+ className: cx(trayClassNames.title, classNames === null || classNames === void 0 ? void 0 : classNames.title),
326
351
  font: "title3",
327
352
  style: styles === null || styles === void 0 ? void 0 : styles.title,
328
353
  children: title
@@ -330,7 +355,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
330
355
  transparent: true,
331
356
  accessibilityHint: closeAccessibilityHint,
332
357
  accessibilityLabel: closeAccessibilityLabel,
333
- className: classNames === null || classNames === void 0 ? void 0 : classNames.closeButton,
358
+ className: cx(trayClassNames.closeButton, classNames === null || classNames === void 0 ? void 0 : classNames.closeButton),
334
359
  margin: isSideTray ? -1.5 : undefined,
335
360
  name: "close",
336
361
  onClick: handleClose,
@@ -340,7 +365,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
340
365
  }), headerContent]
341
366
  }), /*#__PURE__*/_jsx(VStack, {
342
367
  ref: contentRef,
343
- className: classNames === null || classNames === void 0 ? void 0 : classNames.content,
368
+ className: cx(trayClassNames.content, classNames === null || classNames === void 0 ? void 0 : classNames.content),
344
369
  flexGrow: 1,
345
370
  minHeight: 0,
346
371
  overflow: "hidden",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "8.44.0",
3
+ "version": "8.44.1",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -207,7 +207,7 @@
207
207
  "react-dom": "^18.3.1"
208
208
  },
209
209
  "dependencies": {
210
- "@coinbase/cds-common": "^8.44.0",
210
+ "@coinbase/cds-common": "^8.44.1",
211
211
  "@coinbase/cds-icons": "^5.11.0",
212
212
  "@coinbase/cds-illustrations": "^4.31.0",
213
213
  "@coinbase/cds-lottie-files": "^3.3.4",