@coinbase/cds-web 9.8.0 → 9.10.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
  3. package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
  4. package/dts/alpha/select/Select.d.ts +1 -0
  5. package/dts/alpha/select/Select.d.ts.map +1 -1
  6. package/dts/alpha/select/types.d.ts +27 -2
  7. package/dts/alpha/select/types.d.ts.map +1 -1
  8. package/dts/alpha/select-chip/SelectChip.d.ts +8 -2
  9. package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -1
  10. package/dts/alpha/select-chip/SelectChipControl.d.ts +3 -4
  11. package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -1
  12. package/dts/alpha/tabbed-chips/TabbedChips.d.ts +8 -1
  13. package/dts/alpha/tabbed-chips/TabbedChips.d.ts.map +1 -1
  14. package/dts/buttons/AvatarButton.d.ts +7 -3
  15. package/dts/buttons/AvatarButton.d.ts.map +1 -1
  16. package/dts/buttons/Button.d.ts +11 -1
  17. package/dts/buttons/Button.d.ts.map +1 -1
  18. package/dts/buttons/IconButton.d.ts +18 -2
  19. package/dts/buttons/IconButton.d.ts.map +1 -1
  20. package/dts/cards/FeedCard.d.ts.map +1 -1
  21. package/dts/cards/NudgeCard.d.ts +1 -1
  22. package/dts/cards/UpsellCard.d.ts +1 -1
  23. package/dts/carousel/DefaultCarouselNavigation.d.ts +8 -0
  24. package/dts/carousel/DefaultCarouselNavigation.d.ts.map +1 -1
  25. package/dts/chips/Chip.d.ts +2 -2
  26. package/dts/chips/Chip.d.ts.map +1 -1
  27. package/dts/chips/ChipProps.d.ts +11 -1
  28. package/dts/chips/ChipProps.d.ts.map +1 -1
  29. package/dts/chips/MediaChip.d.ts.map +1 -1
  30. package/dts/controls/NativeInput.d.ts +2 -0
  31. package/dts/controls/NativeInput.d.ts.map +1 -1
  32. package/dts/controls/NativeTextArea.d.ts +8 -3
  33. package/dts/controls/NativeTextArea.d.ts.map +1 -1
  34. package/dts/controls/SearchInput.d.ts +5 -2
  35. package/dts/controls/SearchInput.d.ts.map +1 -1
  36. package/dts/controls/TextInput.d.ts +27 -4
  37. package/dts/controls/TextInput.d.ts.map +1 -1
  38. package/dts/dates/DateInput.d.ts +18 -3
  39. package/dts/dates/DateInput.d.ts.map +1 -1
  40. package/dts/dates/DatePicker.d.ts +13 -0
  41. package/dts/dates/DatePicker.d.ts.map +1 -1
  42. package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts +1 -10
  43. package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts.map +1 -1
  44. package/dts/tabs/Paddle.d.ts +7 -0
  45. package/dts/tabs/Paddle.d.ts.map +1 -1
  46. package/esm/alpha/select/DefaultSelectControl.js +70 -32
  47. package/esm/alpha/select/DefaultSelectDropdown.js +5 -2
  48. package/esm/alpha/select/Select.js +8 -1
  49. package/esm/alpha/select/types.js +8 -0
  50. package/esm/alpha/select-chip/SelectChip.js +14 -6
  51. package/esm/alpha/select-chip/SelectChipControl.js +2 -0
  52. package/esm/alpha/tabbed-chips/TabbedChips.js +10 -5
  53. package/esm/buttons/Button.js +47 -6
  54. package/esm/buttons/IconButton.js +31 -3
  55. package/esm/cards/CardBody.js +1 -1
  56. package/esm/cards/FeedCard.js +23 -8
  57. package/esm/cards/MessagingCard/MessagingCardLayout.js +2 -2
  58. package/esm/cards/NudgeCard.js +1 -1
  59. package/esm/cards/UpsellCard.js +2 -2
  60. package/esm/carousel/DefaultCarouselNavigation.js +10 -3
  61. package/esm/chips/Chip.js +24 -5
  62. package/esm/chips/MediaChip.js +7 -3
  63. package/esm/controls/NativeInput.js +3 -0
  64. package/esm/controls/SearchInput.js +15 -7
  65. package/esm/controls/TextInput.css +2 -2
  66. package/esm/controls/TextInput.js +37 -18
  67. package/esm/dates/DateInput.js +2 -1
  68. package/esm/dates/DatePicker.js +4 -2
  69. package/esm/overlays/Toast.js +1 -1
  70. package/esm/pagination/DefaultPaginationNavigationButton.js +1 -1
  71. package/esm/pagination/DefaultPaginationNavigationTextButton.js +3 -3
  72. package/esm/pagination/DefaultPaginationPageButton.js +1 -1
  73. package/esm/tabs/Paddle.js +3 -1
  74. package/esm/visualizations/ProgressContainerWithButtons.js +2 -2
  75. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- const _excluded = ["label", "labelFont", "labelColor", "accessibilityLabel", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "font", "compact", "suffix", "onFocus", "onBlur", "borderRadius", "height", "inputNode", "bordered", "focusedBorderWidth", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "labelVariant", "labelNode", "inputBackground"];
1
+ const _excluded = ["label", "labelFont", "labelColor", "accessibilityLabel", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "font", "compact", "size", "suffix", "onFocus", "onBlur", "borderRadius", "height", "inputNode", "bordered", "focusedBorderWidth", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "labelVariant", "labelNode", "inputBackground"];
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; }
@@ -22,17 +22,19 @@ import { InputStack } from './InputStack';
22
22
  import { NativeInput } from './NativeInput';
23
23
 
24
24
  /**
25
- * In normal circumstances, padding horizontal should be 2 (16px).
26
- * If compact is true, the padding top should be 1.
27
- * If labelVariant is 'inside', the padding top should be 3.5 (28px).
28
- * This gives the absolute positioning of the label space.
29
- * The bottom will be 1 (8px) in this case to equal padding of inside label.
30
- * If start exist, the padding between input area and icon should be 0.5 (4px).
25
+ * Horizontal padding is size-invariant: 2 (16px) at every size. Only vertical padding
26
+ * varies with size — 2 (16px) at `l`, 1.5 (12px) at `m`, 1 (8px) at `s`.
27
+ * If labelVariant is 'inside' and stacked, the input yields its top padding to the label
28
+ * and keeps 0.75 (6px) at the bottom to match the label's top padding.
29
+ * When an inline label precedes the input, the gap between them is 1 (8px).
30
+ * When a start node precedes the input, the gap contributed here is 0.5 (4px); the start
31
+ * node supplies the rest of the spacing (e.g. InputIcon's own paddingX).
31
32
  */
32
33
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
33
34
  const nativeInputContainerCss = "nativeInputContainerCss-nvfk24";
34
35
  const insideLabelCss = "insideLabelCss-i1dqgbcz";
35
36
  const insideLabelCssStartCss = "insideLabelCssStartCss-i1scwjk";
37
+ const defaultTextInputSize = 'l';
36
38
  const variantColorMap = {
37
39
  primary: 'fgPrimary',
38
40
  positive: 'fgPositive',
@@ -60,6 +62,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
60
62
  align = 'start',
61
63
  font = 'body',
62
64
  compact = false,
65
+ size,
63
66
  suffix = '',
64
67
  onFocus,
65
68
  onBlur,
@@ -117,6 +120,20 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
117
120
  return undefined;
118
121
  }, [disabled, nativeInputRestProps.readOnly]);
119
122
  const hasLabel = useMemo(() => !!label || !!labelNode, [label, labelNode]);
123
+
124
+ // Geometry is driven entirely by the resolved size. An explicit `size` always wins;
125
+ // the deprecated `compact` only maps to `s` as a fallback so legacy callers keep dense spacing.
126
+ const resolvedSize = size !== null && size !== void 0 ? size : compact ? 's' : defaultTextInputSize;
127
+ // compact only forces label placement (inline start slot) when the caller did NOT set an
128
+ // explicit size. Once `size` is provided, label placement follows normal `labelVariant` rules.
129
+ const isCompactLabel = Boolean(compact) && size === undefined;
130
+
131
+ // Label placement is independent of size. `compact` (set alone) forces an inside label;
132
+ // otherwise placement follows `labelVariant`. An inside label sits horizontally in the start
133
+ // slot at every size EXCEPT `l`, where it stacks vertically above the input.
134
+ const wantsInsideLabel = hasLabel && (isCompactLabel || labelVariant === 'inside');
135
+ const insideVerticalLabel = wantsInsideLabel && !isCompactLabel && resolvedSize === 'l';
136
+ const insideHorizontalLabel = wantsInsideLabel && !insideVerticalLabel;
120
137
  const inputElement = useMemo(() => {
121
138
  /** Ensures that the renderedInput has the blurring, focusing, disabled features */
122
139
  if (inputNode) {
@@ -140,11 +157,13 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
140
157
  align: align,
141
158
  "aria-invalid": variant === 'negative',
142
159
  caretColor: variantColorMap[focusedVariant],
143
- compact: compact,
160
+ compact: resolvedSize === 's',
144
161
  containerSpacing: nativeInputContainerCss,
145
162
  "data-compact": compact,
146
- "data-labelvariant": compact || !hasLabel ? 'outside' : labelVariant,
147
- "data-start": !!start || compact,
163
+ "data-inlinelabel": insideHorizontalLabel,
164
+ "data-labelvariant": insideVerticalLabel ? 'inside' : 'outside',
165
+ "data-size": resolvedSize,
166
+ "data-start": !!start,
148
167
  disabled: disabled,
149
168
  font: font,
150
169
  id: shouldSetLabelId ? labelId : undefined,
@@ -152,7 +171,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
152
171
  onFocus: handleOnFocus,
153
172
  testID: testID
154
173
  }, nativeInputRestProps));
155
- }, [inputNode, refs, shouldSetHelperTextId, helperTextId, accessibilityLabel, label, align, variant, focusedVariant, compact, hasLabel, labelVariant, start, disabled, font, shouldSetLabelId, labelId, handleOnBlur, handleOnFocus, testID, nativeInputRestProps]);
174
+ }, [inputNode, refs, shouldSetHelperTextId, helperTextId, accessibilityLabel, label, align, variant, focusedVariant, compact, resolvedSize, insideVerticalLabel, insideHorizontalLabel, start, disabled, font, shouldSetLabelId, labelId, handleOnBlur, handleOnFocus, testID, nativeInputRestProps]);
156
175
  return /*#__PURE__*/_jsx(TextInputFocusVariantContext.Provider, {
157
176
  value: focused ? focusedVariant : undefined,
158
177
  children: /*#__PURE__*/_jsx(InputStack, {
@@ -194,31 +213,31 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
194
213
  }) : helperText),
195
214
  inputBackground: readOnlyInputBackground !== null && readOnlyInputBackground !== void 0 ? readOnlyInputBackground : inputBackground,
196
215
  inputNode: inputElement,
197
- labelNode: !compact && (labelNode ? labelVariant === 'inside' ? /*#__PURE__*/_jsx(Box, {
216
+ labelNode: !insideHorizontalLabel && (labelNode ? insideVerticalLabel ? /*#__PURE__*/_jsx(Box, {
198
217
  background: readOnlyInputBackground,
199
218
  paddingEnd: 2,
200
219
  paddingStart: start ? 0.5 : 2,
201
220
  paddingTop: 1,
202
221
  children: labelNode
203
222
  }) : labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
204
- background: labelVariant === 'inside' ? readOnlyInputBackground : undefined,
205
- className: cx(labelVariant === 'inside' && insideLabelCss, labelVariant === 'inside' && !!start && insideLabelCssStartCss),
223
+ background: insideVerticalLabel ? readOnlyInputBackground : undefined,
224
+ className: cx(insideVerticalLabel && insideLabelCss, insideVerticalLabel && !!start && insideLabelCssStartCss),
206
225
  color: labelColor,
207
226
  font: labelFont,
208
227
  htmlFor: shouldSetLabelId ? labelId : undefined,
209
228
  testID: (_testIDMap$label = testIDMap === null || testIDMap === void 0 ? void 0 : testIDMap.label) !== null && _testIDMap$label !== void 0 ? _testIDMap$label : '',
210
229
  children: label
211
230
  })),
212
- labelVariant: labelVariant,
213
- startNode: (compact || !!start) && /*#__PURE__*/_jsxs(HStack, {
231
+ labelVariant: insideVerticalLabel ? 'inside' : 'outside',
232
+ startNode: (insideHorizontalLabel || !!start) && /*#__PURE__*/_jsxs(HStack, {
214
233
  alignItems: "center",
215
234
  background: readOnlyInputBackground,
216
235
  gap: 2,
217
236
  justifyContent: "center",
218
237
  onClick: handleNodePress,
219
- paddingStart: compact && hasLabel ? 2 : undefined,
238
+ paddingStart: insideHorizontalLabel && hasLabel ? 2 : undefined,
220
239
  testID: (_testIDMap$start = testIDMap === null || testIDMap === void 0 ? void 0 : testIDMap.start) !== null && _testIDMap$start !== void 0 ? _testIDMap$start : '',
221
- children: [compact && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
240
+ children: [insideHorizontalLabel && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
222
241
  color: labelColor,
223
242
  font: labelFont,
224
243
  htmlFor: shouldSetLabelId ? labelId : undefined,
@@ -15,6 +15,7 @@ import { useComponentConfig } from '../hooks/useComponentConfig';
15
15
  import { VStack } from '../layout/VStack';
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  export const DateInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
18
+ var _ref;
18
19
  const mergedProps = useComponentConfig('DateInput', _props);
19
20
  const {
20
21
  date,
@@ -95,7 +96,7 @@ export const DateInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
95
96
  children: /*#__PURE__*/_jsx(TextInput, _objectSpread({
96
97
  ref: ref,
97
98
  end: end,
98
- helperText: helperText || (error === null || error === void 0 ? void 0 : error.message) || intlDateFormat.dateStringFormat,
99
+ helperText: (_ref = helperText !== null && helperText !== void 0 ? helperText : error === null || error === void 0 ? void 0 : error.message) !== null && _ref !== void 0 ? _ref : intlDateFormat.dateStringFormat,
99
100
  onBlur: handleBlur,
100
101
  onChange: handleChange,
101
102
  onClick: onClick,
@@ -1,4 +1,4 @@
1
- const _excluded = ["date", "onChangeDate", "error", "onErrorDate", "required", "disabled", "seedDate", "disabledDates", "highlightedDates", "highlightedDateAccessibilityHint", "minDate", "maxDate", "requiredError", "invalidDateError", "disabledDateError", "label", "restoreFocusOnUnmount", "accessibilityLabel", "accessibilityLabelledBy", "calendarIconButtonAccessibilityLabel", "openCalendarAccessibilityLabel", "closeCalendarAccessibilityLabel", "nextArrowAccessibilityLabel", "previousArrowAccessibilityLabel", "compact", "variant", "helperText", "showOverlay", "defaultOpen", "calendarStyle", "calendarClassName", "dateInputStyle", "dateInputClassName", "classNames", "styles", "width", "onOpen", "onClose", "onConfirm", "onCancel", "onChange"];
1
+ const _excluded = ["date", "onChangeDate", "error", "onErrorDate", "required", "disabled", "seedDate", "disabledDates", "highlightedDates", "highlightedDateAccessibilityHint", "minDate", "maxDate", "requiredError", "invalidDateError", "disabledDateError", "label", "restoreFocusOnUnmount", "accessibilityLabel", "accessibilityLabelledBy", "calendarIconButtonAccessibilityLabel", "openCalendarAccessibilityLabel", "closeCalendarAccessibilityLabel", "nextArrowAccessibilityLabel", "previousArrowAccessibilityLabel", "compact", "size", "variant", "helperText", "showOverlay", "defaultOpen", "calendarStyle", "calendarClassName", "dateInputStyle", "dateInputClassName", "classNames", "styles", "width", "onOpen", "onClose", "onConfirm", "onCancel", "onChange"];
2
2
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
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
  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; }
@@ -63,6 +63,7 @@ export const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
63
63
  nextArrowAccessibilityLabel,
64
64
  previousArrowAccessibilityLabel,
65
65
  compact,
66
+ size,
66
67
  variant,
67
68
  helperText,
68
69
  showOverlay,
@@ -153,9 +154,10 @@ export const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
153
154
  onErrorDate: onErrorDate,
154
155
  required: required,
155
156
  requiredError: requiredError,
157
+ size: size,
156
158
  style: _objectSpread(_objectSpread({}, dateInputStyle), styles === null || styles === void 0 ? void 0 : styles.dateInput),
157
159
  variant: variant
158
- }, props)), [date, onChangeDate, error, onErrorDate, required, compact, disabled, dateInputCalendarButton, requiredError, invalidDateError, disabledDates, minDate, maxDate, disabledDateError, onChange, label, accessibilityLabel, accessibilityLabelledBy, helperText, variant, dateInputClassName, dateInputStyle, classNames, styles, props]);
160
+ }, props)), [date, onChangeDate, error, onErrorDate, required, compact, size, disabled, dateInputCalendarButton, requiredError, invalidDateError, disabledDates, minDate, maxDate, disabledDateError, onChange, label, accessibilityLabel, accessibilityLabelledBy, helperText, variant, dateInputClassName, dateInputStyle, classNames, styles, props]);
159
161
  const calendar = useMemo(() => /*#__PURE__*/_jsx(MotionVStack, _objectSpread(_objectSpread({
160
162
  background: true,
161
163
  borderRadius: 400,
@@ -125,9 +125,9 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
125
125
  background: variant
126
126
  }), /*#__PURE__*/_jsxs(HStack, {
127
127
  children: [!!action && /*#__PURE__*/_jsx(Button, {
128
- compact: true,
129
128
  transparent: true,
130
129
  onClick: handleActionPress,
130
+ size: "s",
131
131
  testID: (_action$testID = action.testID) !== null && _action$testID !== void 0 ? _action$testID : 'toast-action',
132
132
  children: action.label
133
133
  }), !hideCloseButton && /*#__PURE__*/_jsx(IconButton, _objectSpread({
@@ -18,12 +18,12 @@ export const DefaultPaginationNavigationButton = /*#__PURE__*/forwardRef((_ref,
18
18
  } = _ref;
19
19
  return /*#__PURE__*/_jsx(IconButton, {
20
20
  ref: ref,
21
- compact: true,
22
21
  transparent: true,
23
22
  accessibilityLabel: accessibilityLabel,
24
23
  disabled: disabled,
25
24
  name: iconMap[direction],
26
25
  onClick: onClick,
26
+ size: "s",
27
27
  testID: testID,
28
28
  variant: "secondary"
29
29
  });
@@ -1,4 +1,4 @@
1
- const _excluded = ["onClick", "disabled", "accessibilityLabel", "testID", "children", "variant", "compact"];
1
+ const _excluded = ["onClick", "disabled", "accessibilityLabel", "testID", "children", "variant", "size"];
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; }
@@ -17,16 +17,16 @@ export const DefaultPaginationNavigationTextButton = /*#__PURE__*/forwardRef((_r
17
17
  testID,
18
18
  children,
19
19
  variant = 'secondary',
20
- compact = true
20
+ size = 's'
21
21
  } = _ref,
22
22
  restProps = _objectWithoutProperties(_ref, _excluded);
23
23
  return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
24
24
  ref: ref,
25
25
  "aria-label": accessibilityLabel,
26
- compact: compact,
27
26
  "data-testid": testID,
28
27
  disabled: disabled,
29
28
  onClick: onClick,
29
+ size: size,
30
30
  variant: variant
31
31
  }, restProps), {}, {
32
32
  children: children
@@ -25,12 +25,12 @@ export const DefaultPaginationPageButton = /*#__PURE__*/forwardRef((_ref, ref) =
25
25
  const isSingleDigit = page < 10;
26
26
  return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
27
27
  ref: ref,
28
- compact: true,
29
28
  accessibilityLabel: accessibilityLabel,
30
29
  "aria-current": isCurrentPage ? 'page' : undefined,
31
30
  className: cx(isSingleDigit && circularButtonCss),
32
31
  disabled: disabled,
33
32
  onClick: handleClick,
33
+ size: "s",
34
34
  testID: testID,
35
35
  transparent: !isCurrentPage,
36
36
  variant: isCurrentPage ? 'primary' : 'secondary'
@@ -35,7 +35,8 @@ export const Paddle = _ref => {
35
35
  onClick,
36
36
  testID = "cds-paddle--".concat(direction),
37
37
  accessibilityLabel,
38
- paddleStyle
38
+ paddleStyle,
39
+ size
39
40
  } = _ref;
40
41
  const buttonMotionProps = useMotionProps({
41
42
  enterConfigs: [_objectSpread(_objectSpread({}, animatePaddleOpacityConfig), {}, {
@@ -73,6 +74,7 @@ export const Paddle = _ref => {
73
74
  accessibilityLabel: accessibilityLabel,
74
75
  name: direction === 'left' ? 'caretLeft' : 'caretRight',
75
76
  onClick: onClick,
77
+ size: size,
76
78
  style: paddleStyle,
77
79
  testID: testID,
78
80
  variant: "secondary"
@@ -27,12 +27,12 @@ export const ProgressContainerWithButtons = _ref => {
27
27
  children: [children({
28
28
  calculateProgress
29
29
  }), /*#__PURE__*/_jsx(Button, {
30
- compact: true,
31
30
  onClick: reRender,
31
+ size: "s",
32
32
  children: "Re-render"
33
33
  }), !hideIncrease && /*#__PURE__*/_jsx(Button, {
34
- compact: true,
35
34
  onClick: increase,
35
+ size: "s",
36
36
  children: "Increase 20%"
37
37
  })]
38
38
  }, num);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -227,9 +227,9 @@
227
227
  "react-dom": "^18.0.0 || ~19.1.2"
228
228
  },
229
229
  "dependencies": {
230
- "@coinbase/cds-common": "^9.8.0",
230
+ "@coinbase/cds-common": "^9.10.0",
231
231
  "@coinbase/cds-icons": "^5.21.0",
232
- "@coinbase/cds-illustrations": "^4.44.0",
232
+ "@coinbase/cds-illustrations": "^4.45.0",
233
233
  "@coinbase/cds-lottie-files": "^3.3.4",
234
234
  "@coinbase/cds-utils": "^2.3.5",
235
235
  "@floating-ui/react-dom": "^2.1.1",