@coinbase/cds-web 9.9.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.
- package/CHANGELOG.md +6 -0
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
- package/dts/alpha/select/Select.d.ts +1 -0
- package/dts/alpha/select/Select.d.ts.map +1 -1
- package/dts/alpha/select/types.d.ts +27 -2
- package/dts/alpha/select/types.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChip.d.ts +8 -2
- package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChipControl.d.ts +3 -4
- package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -1
- package/dts/alpha/tabbed-chips/TabbedChips.d.ts +8 -1
- package/dts/alpha/tabbed-chips/TabbedChips.d.ts.map +1 -1
- package/dts/buttons/AvatarButton.d.ts +7 -3
- package/dts/buttons/AvatarButton.d.ts.map +1 -1
- package/dts/buttons/Button.d.ts +11 -1
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/buttons/IconButton.d.ts +18 -2
- package/dts/buttons/IconButton.d.ts.map +1 -1
- package/dts/cards/FeedCard.d.ts.map +1 -1
- package/dts/cards/NudgeCard.d.ts +1 -1
- package/dts/cards/UpsellCard.d.ts +1 -1
- package/dts/carousel/DefaultCarouselNavigation.d.ts +8 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts.map +1 -1
- package/dts/chips/Chip.d.ts +2 -2
- package/dts/chips/Chip.d.ts.map +1 -1
- package/dts/chips/ChipProps.d.ts +11 -1
- package/dts/chips/ChipProps.d.ts.map +1 -1
- package/dts/chips/MediaChip.d.ts.map +1 -1
- package/dts/controls/NativeInput.d.ts +2 -0
- package/dts/controls/NativeInput.d.ts.map +1 -1
- package/dts/controls/NativeTextArea.d.ts +8 -3
- package/dts/controls/NativeTextArea.d.ts.map +1 -1
- package/dts/controls/SearchInput.d.ts +5 -2
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/TextInput.d.ts +27 -4
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/dts/dates/DateInput.d.ts +18 -3
- package/dts/dates/DateInput.d.ts.map +1 -1
- package/dts/dates/DatePicker.d.ts +13 -0
- package/dts/dates/DatePicker.d.ts.map +1 -1
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts +1 -10
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts.map +1 -1
- package/dts/tabs/Paddle.d.ts +7 -0
- package/dts/tabs/Paddle.d.ts.map +1 -1
- package/esm/alpha/select/DefaultSelectControl.js +70 -32
- package/esm/alpha/select/DefaultSelectDropdown.js +5 -2
- package/esm/alpha/select/Select.js +8 -1
- package/esm/alpha/select/types.js +8 -0
- package/esm/alpha/select-chip/SelectChip.js +14 -6
- package/esm/alpha/select-chip/SelectChipControl.js +2 -0
- package/esm/alpha/tabbed-chips/TabbedChips.js +10 -5
- package/esm/buttons/Button.js +47 -6
- package/esm/buttons/IconButton.js +31 -3
- package/esm/cards/CardBody.js +1 -1
- package/esm/cards/FeedCard.js +23 -8
- package/esm/cards/MessagingCard/MessagingCardLayout.js +2 -2
- package/esm/cards/NudgeCard.js +1 -1
- package/esm/cards/UpsellCard.js +2 -2
- package/esm/carousel/DefaultCarouselNavigation.js +10 -3
- package/esm/chips/Chip.js +24 -5
- package/esm/chips/MediaChip.js +7 -3
- package/esm/controls/NativeInput.js +3 -0
- package/esm/controls/SearchInput.js +15 -7
- package/esm/controls/TextInput.css +2 -2
- package/esm/controls/TextInput.js +37 -18
- package/esm/dates/DateInput.js +2 -1
- package/esm/dates/DatePicker.js +4 -2
- package/esm/overlays/Toast.js +1 -1
- package/esm/pagination/DefaultPaginationNavigationButton.js +1 -1
- package/esm/pagination/DefaultPaginationNavigationTextButton.js +3 -3
- package/esm/pagination/DefaultPaginationPageButton.js +1 -1
- package/esm/tabs/Paddle.js +3 -1
- package/esm/visualizations/ProgressContainerWithButtons.js +2 -2
- package/package.json +2 -2
|
@@ -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
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* If labelVariant is 'inside', the
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
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:
|
|
160
|
+
compact: resolvedSize === 's',
|
|
144
161
|
containerSpacing: nativeInputContainerCss,
|
|
145
162
|
"data-compact": compact,
|
|
146
|
-
"data-
|
|
147
|
-
"data-
|
|
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,
|
|
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: !
|
|
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:
|
|
205
|
-
className: cx(
|
|
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:
|
|
213
|
-
startNode: (
|
|
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:
|
|
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: [
|
|
240
|
+
children: [insideHorizontalLabel && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
222
241
|
color: labelColor,
|
|
223
242
|
font: labelFont,
|
|
224
243
|
htmlFor: shouldSetLabelId ? labelId : undefined,
|
package/esm/dates/DateInput.js
CHANGED
|
@@ -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
|
|
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,
|
package/esm/dates/DatePicker.js
CHANGED
|
@@ -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,
|
package/esm/overlays/Toast.js
CHANGED
|
@@ -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", "
|
|
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
|
-
|
|
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'
|
package/esm/tabs/Paddle.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"description": "Coinbase Design System - Web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"react-dom": "^18.0.0 || ~19.1.2"
|
|
228
228
|
},
|
|
229
229
|
"dependencies": {
|
|
230
|
-
"@coinbase/cds-common": "^9.
|
|
230
|
+
"@coinbase/cds-common": "^9.10.0",
|
|
231
231
|
"@coinbase/cds-icons": "^5.21.0",
|
|
232
232
|
"@coinbase/cds-illustrations": "^4.45.0",
|
|
233
233
|
"@coinbase/cds-lottie-files": "^3.3.4",
|