@coinbase/cds-web 8.55.1 → 8.56.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.
- package/CHANGELOG.md +16 -0
- package/dts/alpha/combobox/DefaultComboboxControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/buttons/IconCounterButton.d.ts +4 -1
- package/dts/buttons/IconCounterButton.d.ts.map +1 -1
- package/dts/cards/AnnouncementCard.d.ts +4 -1
- package/dts/cards/AnnouncementCard.d.ts.map +1 -1
- package/dts/cards/ContainedAssetCard.d.ts +2 -1
- package/dts/cards/ContainedAssetCard.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardBody.d.ts +6 -3
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +12 -3
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -1
- package/dts/cards/FeatureEntryCard.d.ts +8 -2
- package/dts/cards/FeatureEntryCard.d.ts.map +1 -1
- package/dts/cards/FeedCard.d.ts +8 -2
- package/dts/cards/FeedCard.d.ts.map +1 -1
- package/dts/cards/FloatingAssetCard.d.ts +2 -1
- package/dts/cards/FloatingAssetCard.d.ts.map +1 -1
- package/dts/cards/NudgeCard.d.ts +2 -1
- package/dts/cards/NudgeCard.d.ts.map +1 -1
- package/dts/cards/UpsellCard.d.ts +2 -1
- package/dts/cards/UpsellCard.d.ts.map +1 -1
- package/dts/cells/Cell.d.ts +8 -4
- package/dts/cells/Cell.d.ts.map +1 -1
- package/dts/cells/CellMedia.d.ts +4 -2
- package/dts/cells/CellMedia.d.ts.map +1 -1
- package/dts/cells/ContentCell.d.ts +6 -3
- package/dts/cells/ContentCell.d.ts.map +1 -1
- package/dts/cells/ListCell.d.ts +4 -2
- package/dts/cells/ListCell.d.ts.map +1 -1
- package/dts/chips/ChipProps.d.ts +6 -3
- package/dts/chips/ChipProps.d.ts.map +1 -1
- package/dts/chips/SelectChip.d.ts +6 -3
- package/dts/chips/SelectChip.d.ts.map +1 -1
- package/dts/chips/TabbedChips.d.ts +2 -1
- package/dts/chips/TabbedChips.d.ts.map +1 -1
- package/dts/controls/CheckboxGroup.d.ts +4 -2
- package/dts/controls/CheckboxGroup.d.ts.map +1 -1
- package/dts/controls/RadioGroup.d.ts +6 -3
- package/dts/controls/RadioGroup.d.ts.map +1 -1
- package/dts/controls/SegmentedControl.d.ts +2 -1
- package/dts/controls/SegmentedControl.d.ts.map +1 -1
- package/dts/controls/Select.d.ts +2 -1
- package/dts/controls/Select.d.ts.map +1 -1
- package/dts/dates/DatePicker.d.ts +20 -10
- package/dts/dates/DatePicker.d.ts.map +1 -1
- package/dts/hooks/useCheckboxGroupState.d.ts +2 -1
- package/dts/hooks/useCheckboxGroupState.d.ts.map +1 -1
- package/dts/layout/Group.d.ts +2 -1
- package/dts/layout/Group.d.ts.map +1 -1
- package/dts/loaders/MaterialSpinner.d.ts +2 -1
- package/dts/loaders/MaterialSpinner.d.ts.map +1 -1
- package/dts/media/Avatar.d.ts +2 -1
- package/dts/media/Avatar.d.ts.map +1 -1
- package/dts/media/Hexagon.d.ts +2 -1
- package/dts/media/Hexagon.d.ts.map +1 -1
- package/dts/overlays/modal/ModalFooter.d.ts +8 -4
- package/dts/overlays/modal/ModalFooter.d.ts.map +1 -1
- package/dts/overlays/modal/ModalHeader.d.ts +10 -5
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -1
- package/dts/overlays/useModal.d.ts +2 -1
- package/dts/overlays/useModal.d.ts.map +1 -1
- package/dts/system/ButtonOrLink.d.ts +4 -1
- package/dts/system/ButtonOrLink.d.ts.map +1 -1
- package/dts/system/PressableOpacity.d.ts +12 -3
- package/dts/system/PressableOpacity.d.ts.map +1 -1
- package/dts/tables/TableCell.d.ts +2 -1
- package/dts/tables/TableCell.d.ts.map +1 -1
- package/dts/tabs/TabNavigation.d.ts.map +1 -1
- package/dts/themes/coinbaseDenseTheme.d.ts +4 -1
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -1
- package/dts/typography/Text.d.ts +4 -1
- package/dts/typography/Text.d.ts.map +1 -1
- package/dts/visualizations/Counter.d.ts +2 -1
- package/dts/visualizations/Counter.d.ts.map +1 -1
- package/dts/visualizations/ProgressCircle.d.ts +4 -2
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
- package/esm/alpha/combobox/DefaultComboboxControl.js +1 -0
- package/esm/alpha/select/DefaultSelectControl.js +7 -7
- package/esm/cards/AnnouncementCard.js +4 -1
- package/esm/cards/ContainedAssetCard.js +2 -1
- package/esm/cards/FeatureEntryCard.js +8 -2
- package/esm/cards/FeedCard.js +8 -2
- package/esm/cards/FloatingAssetCard.js +2 -1
- package/esm/cards/NudgeCard.js +2 -1
- package/esm/cards/UpsellCard.js +2 -1
- package/esm/cells/CellMedia.js +2 -1
- package/esm/cells/ContentCell.js +4 -2
- package/esm/chips/SelectChip.js +4 -2
- package/esm/chips/TabbedChips.js +2 -1
- package/esm/controls/CheckboxGroup.js +4 -2
- package/esm/controls/RadioGroup.js +6 -3
- package/esm/controls/SegmentedControl.js +2 -1
- package/esm/controls/Select.js +2 -1
- package/esm/hooks/useCheckboxGroupState.js +2 -1
- package/esm/layout/Group.js +2 -1
- package/esm/loaders/MaterialSpinner.js +2 -1
- package/esm/media/Hexagon.js +2 -1
- package/esm/overlays/useModal.js +2 -1
- package/esm/system/ButtonOrLink.js +4 -1
- package/esm/system/PressableOpacity.js +12 -3
- package/esm/tabs/TabNavigation.js +2 -1
- package/esm/themes/coinbaseDenseTheme.js +4 -1
- package/esm/visualizations/Counter.js +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["type", "options", "value", "onChange", "open", "placeholder", "disabled", "setOpen", "variant", "helperText", "label", "labelVariant", "contentNode", "startNode", "endNode", "compact", "blendStyles", "align", "bordered", "borderWidth", "focusedBorderWidth", "maxSelectedOptionsToShow", "hiddenSelectedOptionsLabel", "removeSelectedOptionAccessibilityLabel", "accessibilityLabel", "ariaHaspopup", "tabIndex", "styles", "classNames"];
|
|
1
|
+
const _excluded = ["role", "type", "options", "value", "onChange", "open", "placeholder", "disabled", "setOpen", "variant", "helperText", "label", "labelVariant", "contentNode", "startNode", "endNode", "compact", "blendStyles", "align", "bordered", "borderWidth", "focusedBorderWidth", "maxSelectedOptionsToShow", "hiddenSelectedOptionsLabel", "removeSelectedOptionAccessibilityLabel", "accessibilityLabel", "ariaHaspopup", "tabIndex", "styles", "classNames"];
|
|
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; }
|
|
@@ -38,6 +38,7 @@ const variantColor = {
|
|
|
38
38
|
};
|
|
39
39
|
const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
40
40
|
let {
|
|
41
|
+
role = 'button',
|
|
41
42
|
type,
|
|
42
43
|
options,
|
|
43
44
|
value,
|
|
@@ -72,7 +73,6 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
72
73
|
const isMultiSelect = type === 'multi';
|
|
73
74
|
const shouldShowCompactLabel = compact && label && !isMultiSelect;
|
|
74
75
|
const hasValue = value !== null && !(Array.isArray(value) && value.length === 0);
|
|
75
|
-
|
|
76
76
|
// Map of options to their values
|
|
77
77
|
// If multiple options share the same value, the first occurrence wins (matches native HTML select behavior)
|
|
78
78
|
const optionsMap = useMemo(() => {
|
|
@@ -226,14 +226,13 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
226
226
|
children: singleValueContent
|
|
227
227
|
}) : singleValueContent;
|
|
228
228
|
}, [hasValue, isMultiSelect, singleValueContent, align, value, maxSelectedOptionsToShow, hiddenSelectedOptionsLabel, optionsMap, removeSelectedOptionAccessibilityLabel, handleUnselectValue]);
|
|
229
|
-
const inputNode = useMemo(() =>
|
|
230
|
-
/*#__PURE__*/
|
|
231
|
-
// We don't offer control over setting the role since this must always be a button
|
|
232
|
-
_jsxs(Pressable, {
|
|
229
|
+
const inputNode = useMemo(() => /*#__PURE__*/_jsxs(Pressable, {
|
|
233
230
|
ref: controlPressableRef,
|
|
234
231
|
noScaleOnPress: true,
|
|
235
232
|
accessibilityLabel: computedControlAccessibilityLabel,
|
|
233
|
+
"aria-expanded": open,
|
|
236
234
|
"aria-haspopup": ariaHaspopup,
|
|
235
|
+
as: role === 'combobox' ? 'div' : 'button',
|
|
237
236
|
background: "transparent",
|
|
238
237
|
blendStyles: interactableBlendStyles,
|
|
239
238
|
borderWidth: 0,
|
|
@@ -246,6 +245,7 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
246
245
|
minWidth: 0,
|
|
247
246
|
onClick: () => setOpen(s => !s),
|
|
248
247
|
paddingStart: 1,
|
|
248
|
+
role: role,
|
|
249
249
|
style: styles === null || styles === void 0 ? void 0 : styles.controlInputNode,
|
|
250
250
|
tabIndex: tabIndex,
|
|
251
251
|
children: [!!startNode && /*#__PURE__*/_jsx(HStack, {
|
|
@@ -286,7 +286,7 @@ const DefaultSelectControlComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(
|
|
|
286
286
|
children: [valueNode, contentNode]
|
|
287
287
|
})
|
|
288
288
|
})]
|
|
289
|
-
}), [computedControlAccessibilityLabel, ariaHaspopup, interactableBlendStyles, classNames === null || classNames === void 0 ? void 0 : classNames.controlInputNode, classNames === null || classNames === void 0 ? void 0 : classNames.controlStartNode, classNames === null || classNames === void 0 ? void 0 : classNames.controlValueNode, disabled, labelVariant, compact, styles === null || styles === void 0 ? void 0 : styles.controlInputNode, styles === null || styles === void 0 ? void 0 : styles.controlStartNode, styles === null || styles === void 0 ? void 0 : styles.controlValueNode, tabIndex, startNode, shouldShowCompactLabel, labelNode, align, isMultiSelect, valueNode, contentNode, setOpen]);
|
|
289
|
+
}), [computedControlAccessibilityLabel, ariaHaspopup, open, role, interactableBlendStyles, classNames === null || classNames === void 0 ? void 0 : classNames.controlInputNode, classNames === null || classNames === void 0 ? void 0 : classNames.controlStartNode, classNames === null || classNames === void 0 ? void 0 : classNames.controlValueNode, disabled, labelVariant, compact, styles === null || styles === void 0 ? void 0 : styles.controlInputNode, styles === null || styles === void 0 ? void 0 : styles.controlStartNode, styles === null || styles === void 0 ? void 0 : styles.controlValueNode, tabIndex, startNode, shouldShowCompactLabel, labelNode, align, isMultiSelect, valueNode, contentNode, setOpen]);
|
|
290
290
|
const endNode = useMemo(() => /*#__PURE__*/_jsx(Pressable, {
|
|
291
291
|
"aria-hidden": true,
|
|
292
292
|
flexShrink: 0,
|
|
@@ -10,7 +10,10 @@ import React, { memo } from 'react';
|
|
|
10
10
|
import { Card } from './Card';
|
|
11
11
|
import { CardBody } from './CardBody';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use MessagingCard instead. This will be removed in a future major release.
|
|
15
|
+
* @deprecationExpectedRemoval v6
|
|
16
|
+
*/
|
|
14
17
|
export const AnnouncementCard = /*#__PURE__*/memo(function AnnouncementCard(_ref) {
|
|
15
18
|
let {
|
|
16
19
|
width,
|
|
@@ -23,7 +23,8 @@ const pressCss = "pressCss-p1uriugu";
|
|
|
23
23
|
const focusRingCss = "focusRingCss-f6cdk3o";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* @deprecated Use `MediaCard` instead.
|
|
26
|
+
* @deprecated Use `MediaCard` instead. This will be removed in a future major release.
|
|
27
|
+
* @deprecationExpectedRemoval v9
|
|
27
28
|
*
|
|
28
29
|
* Migration guide:
|
|
29
30
|
* ```tsx
|
|
@@ -10,9 +10,15 @@ import React, { memo } from 'react';
|
|
|
10
10
|
import { Card } from './Card';
|
|
11
11
|
import { CardBody } from './CardBody';
|
|
12
12
|
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use MessagingCard instead. This will be removed in a future major release.
|
|
15
|
+
* @deprecationExpectedRemoval v6
|
|
16
|
+
*/
|
|
14
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use MessagingCard instead. This will be removed in a future major release.
|
|
20
|
+
* @deprecationExpectedRemoval v6
|
|
21
|
+
*/
|
|
16
22
|
export const FeatureEntryCard = /*#__PURE__*/memo(function FeatureEntryCard(_ref) {
|
|
17
23
|
let {
|
|
18
24
|
onClick,
|
package/esm/cards/FeedCard.js
CHANGED
|
@@ -16,9 +16,15 @@ import { CardFooter } from './CardFooter';
|
|
|
16
16
|
import { CardHeader } from './CardHeader';
|
|
17
17
|
import { LikeButton } from './LikeButton';
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use the ContentCard component instead. This will be removed in a future major release.
|
|
21
|
+
* @deprecationExpectedRemoval v8
|
|
22
|
+
*/
|
|
20
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use the ContentCard component instead. This will be removed in a future major release.
|
|
26
|
+
* @deprecationExpectedRemoval v8
|
|
27
|
+
*/
|
|
22
28
|
export const FeedCard = /*#__PURE__*/memo(function FeedCard(_ref) {
|
|
23
29
|
let {
|
|
24
30
|
testID = 'feed-card',
|
|
@@ -19,7 +19,8 @@ const pressCss = "pressCss-plkgnmc";
|
|
|
19
19
|
const focusRingCss = "focusRingCss-fqgx809";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* @deprecated Use `MediaCard` instead.
|
|
22
|
+
* @deprecated Use `MediaCard` instead. This will be removed in a future major release.
|
|
23
|
+
* @deprecationExpectedRemoval v9
|
|
23
24
|
*
|
|
24
25
|
* Migration guide:
|
|
25
26
|
* ```tsx
|
package/esm/cards/NudgeCard.js
CHANGED
|
@@ -45,7 +45,8 @@ const getCardBodyPaddingProps = _ref => {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
* @deprecated Use `MessagingCard` with `type="nudge"` instead.
|
|
48
|
+
* @deprecated Use `MessagingCard` with `type="nudge"` instead. This will be removed in a future major release.
|
|
49
|
+
* @deprecationExpectedRemoval v9
|
|
49
50
|
*
|
|
50
51
|
* Migration guide:
|
|
51
52
|
* ```tsx
|
package/esm/cards/UpsellCard.js
CHANGED
|
@@ -6,7 +6,8 @@ import { Pressable } from '../system';
|
|
|
6
6
|
import { Text } from '../typography/Text';
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated Use `MessagingCard` with `type="upsell"` instead.
|
|
9
|
+
* @deprecated Use `MessagingCard` with `type="upsell"` instead. This will be removed in a future major release.
|
|
10
|
+
* @deprecationExpectedRemoval v9
|
|
10
11
|
*
|
|
11
12
|
* Migration guide:
|
|
12
13
|
* ```tsx
|
package/esm/cells/CellMedia.js
CHANGED
|
@@ -5,7 +5,8 @@ import { Box } from '../layout/Box';
|
|
|
5
5
|
import { RemoteImage } from '../media/RemoteImage';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
|
-
* @deprecated This
|
|
8
|
+
* @deprecated Pass media directly via the `media` prop. This will be removed in a future major release.
|
|
9
|
+
* @deprecationExpectedRemoval v9
|
|
9
10
|
* For example: `<Avatar src={...} />`, `<Icon name={...} />`, `<RemoteImage source={...} />`, or a Pictogram.
|
|
10
11
|
*/
|
|
11
12
|
export const CellMedia = /*#__PURE__*/memo(function CellMedia(props) {
|
package/esm/cells/ContentCell.js
CHANGED
|
@@ -23,11 +23,13 @@ const truncationCss = "truncationCss-t1vpzve9";
|
|
|
23
23
|
export const contentCellDefaultElement = 'div';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* @deprecated
|
|
26
|
+
* @deprecated Use ListCell instead. This will be removed in a future major release.
|
|
27
|
+
* @deprecationExpectedRemoval v9
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
|
-
* @deprecated
|
|
31
|
+
* @deprecated Use ListCell instead. This will be removed in a future major release.
|
|
32
|
+
* @deprecationExpectedRemoval v9
|
|
31
33
|
*/
|
|
32
34
|
export const ContentCell = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
33
35
|
var _props$borderRadius;
|
package/esm/chips/SelectChip.js
CHANGED
|
@@ -16,12 +16,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
export const SELECT_CHIP_DEFAULT_TEST_ID = 'select-chip';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @deprecated This component is deprecated. Please use the new SelectChip alpha component instead.
|
|
19
|
+
* @deprecated This component is deprecated. Please use the new SelectChip alpha component instead. This will be removed in a future major release.
|
|
20
|
+
* @deprecationExpectedRemoval v9
|
|
20
21
|
* @see {@link @coinbase/cds-web/alpha/select-chip/SelectChip}
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
* @deprecated This component is deprecated. Please use the new SelectChip alpha component instead.
|
|
25
|
+
* @deprecated This component is deprecated. Please use the new SelectChip alpha component instead. This will be removed in a future major release.
|
|
26
|
+
* @deprecationExpectedRemoval v9
|
|
25
27
|
* @see {@link @coinbase/cds-web/alpha/select-chip/SelectChip}
|
|
26
28
|
*/
|
|
27
29
|
export const SelectChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function SelectChip(_ref, ref) {
|
package/esm/chips/TabbedChips.js
CHANGED
|
@@ -140,7 +140,8 @@ const TabbedChipsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
|
|
|
140
140
|
TabbedChipsComponent.displayName = 'TabbedChips';
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* @deprecated Use `TabbedChips(Alpha)` instead.
|
|
143
|
+
* @deprecated Use `TabbedChips(Alpha)` instead. This will be removed in a future major release.
|
|
144
|
+
* @deprecationExpectedRemoval v9
|
|
144
145
|
*/
|
|
145
146
|
export const TabbedChips = TabbedChipsComponent;
|
|
146
147
|
import "./TabbedChips.css";
|
|
@@ -16,7 +16,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
const checkboxCss = "checkboxCss-cmjsxse";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead.
|
|
19
|
+
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead. This will be removed in a future major release.
|
|
20
|
+
* @deprecationExpectedRemoval v8
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* // Instead of:
|
|
@@ -35,7 +36,8 @@ const checkboxCss = "checkboxCss-cmjsxse";
|
|
|
35
36
|
*/
|
|
36
37
|
|
|
37
38
|
/**
|
|
38
|
-
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead.
|
|
39
|
+
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead. This will be removed in a future major release.
|
|
40
|
+
* @deprecationExpectedRemoval v8
|
|
39
41
|
*/
|
|
40
42
|
|
|
41
43
|
// Follows behavior describe in https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-2/checkbox-2.html
|
|
@@ -15,7 +15,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
export { Radio, useHandleRadioSelect };
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead.
|
|
18
|
+
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead. This will be removed in a future major release.
|
|
19
|
+
* @deprecationExpectedRemoval v6
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
22
|
* // Instead of:
|
|
@@ -33,7 +34,8 @@ export { Radio, useHandleRadioSelect };
|
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead.
|
|
37
|
+
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead. This will be removed in a future major release.
|
|
38
|
+
* @deprecationExpectedRemoval v8
|
|
37
39
|
*/
|
|
38
40
|
|
|
39
41
|
const RadioGroupWithRef = /*#__PURE__*/forwardRef(function RadioGroup(_ref, ref) {
|
|
@@ -80,6 +82,7 @@ const RadioGroupWithRef = /*#__PURE__*/forwardRef(function RadioGroup(_ref, ref)
|
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
/**
|
|
83
|
-
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead.
|
|
85
|
+
* @deprecated RadioGroup is deprecated. Use ControlGroup with role="radiogroup" instead. This will be removed in a future major release.
|
|
86
|
+
* @deprecationExpectedRemoval v6
|
|
84
87
|
*/
|
|
85
88
|
export const RadioGroup = /*#__PURE__*/memo(RadioGroupWithRef);
|
|
@@ -106,7 +106,8 @@ function SegmentedControlInternal(props, ref) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* @deprecated SegmentedControl is deprecated and will be removed in a future version. Please use Tabs or SegmentedTabs instead.
|
|
109
|
+
* @deprecated SegmentedControl is deprecated and will be removed in a future version. Please use Tabs or SegmentedTabs instead. This will be removed in a future major release.
|
|
110
|
+
* @deprecationExpectedRemoval v9
|
|
110
111
|
*/
|
|
111
112
|
export const SegmentedControl = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(SegmentedControlInternal));
|
|
112
113
|
SegmentedControl.displayName = 'SegmentedControl';
|
package/esm/controls/Select.js
CHANGED
|
@@ -18,7 +18,8 @@ import { SelectTrigger } from './SelectTrigger';
|
|
|
18
18
|
import { useRefocusTrigger } from './useRefocusTrigger';
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated Please use the new Select alpha component instead.
|
|
21
|
+
* @deprecated Please use the new Select alpha component instead. This will be removed in a future major release.
|
|
22
|
+
* @deprecationExpectedRemoval v9
|
|
22
23
|
*/
|
|
23
24
|
export const Select = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Select(_ref, ref) {
|
|
24
25
|
let {
|
|
@@ -4,7 +4,8 @@ import { useGroupToggler } from '@coinbase/cds-common/hooks/useGroupToggler';
|
|
|
4
4
|
*
|
|
5
5
|
* @param values - An array of all possible options. Make sure the array doesn't change if it's the same values so that the handlers will also stay the same.
|
|
6
6
|
* @param initialState - Initial checked option values.
|
|
7
|
-
* @deprecated Do not use this.
|
|
7
|
+
* @deprecated Do not use this. This will be removed in a future major release.
|
|
8
|
+
* @deprecationExpectedRemoval v9
|
|
8
9
|
* @returns [
|
|
9
10
|
* state,
|
|
10
11
|
{
|
package/esm/layout/Group.js
CHANGED
|
@@ -32,7 +32,8 @@ const fallbackRenderItem = _ref2 => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @deprecated Use `Box`, `HStack` or `VStack` instead.
|
|
35
|
+
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
36
|
+
* @deprecationExpectedRemoval v8
|
|
36
37
|
* @danger Make sure to add a `key` prop to each item.
|
|
37
38
|
*/
|
|
38
39
|
export const Group = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
@@ -9,7 +9,8 @@ import { useMotionProps } from '../motion/useMotionProps';
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
const circleCss = "circleCss-c1agunln";
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated Use Spinner component instead
|
|
12
|
+
* @deprecated Use Spinner component instead. This will be removed in a future major release.
|
|
13
|
+
* @deprecationExpectedRemoval v7
|
|
13
14
|
*/
|
|
14
15
|
export const MaterialSpinner = /*#__PURE__*/memo(_ref => {
|
|
15
16
|
let {
|
package/esm/media/Hexagon.js
CHANGED
|
@@ -36,7 +36,8 @@ export const HexagonAvatarClipPath = () => {
|
|
|
36
36
|
HexagonAvatarClipPath.displayName = 'HexagonAvatarClipPath';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* @deprecated will be removed in a future
|
|
39
|
+
* @deprecated This will be removed in a future major release.
|
|
40
|
+
* @deprecationExpectedRemoval v9
|
|
40
41
|
*/
|
|
41
42
|
export const hexagonSvgTransformStyles = {
|
|
42
43
|
standard: {
|
package/esm/overlays/useModal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useModal } from '@coinbase/cds-common/overlays/useModal';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated Use the visible and onRequestClose props as outlined in the docs here https://cds.coinbase.com/components/modal#get-started
|
|
4
|
+
* @deprecated Use the visible and onRequestClose props as outlined in the docs here https://cds.coinbase.com/components/modal#get-started. This will be removed in a future major release.
|
|
5
|
+
* @deprecationExpectedRemoval v7
|
|
5
6
|
*/
|
|
6
7
|
export { useModal };
|
|
@@ -19,7 +19,10 @@ import { getTabIndex, handleButtonFocusOnSafariOrFirefoxOnMac, isNativeClick, is
|
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
const accessibilityCss = "accessibilityCss-akx0ly6";
|
|
21
21
|
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use Pressable instead. This will be removed in a future major release.
|
|
24
|
+
* @deprecationExpectedRemoval v9
|
|
25
|
+
*/
|
|
23
26
|
export const ButtonOrLink = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
24
27
|
let {
|
|
25
28
|
children,
|
|
@@ -11,11 +11,20 @@ import { Pressable } from './Pressable';
|
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
export const pressableOpacityDefaultElement = 'button';
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `<Pressable background="transparent">` instead. This will be removed in a future major release.
|
|
16
|
+
* @deprecationExpectedRemoval v9
|
|
17
|
+
*/
|
|
15
18
|
|
|
16
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `<Pressable background="transparent">` instead. This will be removed in a future major release.
|
|
21
|
+
* @deprecationExpectedRemoval v8
|
|
22
|
+
*/
|
|
17
23
|
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `<Pressable background="transparent">` instead. This will be removed in a future major release.
|
|
26
|
+
* @deprecationExpectedRemoval v8
|
|
27
|
+
*/
|
|
19
28
|
export const PressableOpacity = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
20
29
|
let {
|
|
21
30
|
children,
|
|
@@ -37,7 +37,8 @@ const fallbackLayout = {
|
|
|
37
37
|
/**
|
|
38
38
|
* TabNavigation renders a horizontal, tab-based navigation bar.
|
|
39
39
|
* This component has a opinionated default style, but allows for customization through custom Component props.
|
|
40
|
-
* @deprecated Use Tabs instead.
|
|
40
|
+
* @deprecated Use Tabs instead. This will be removed in a future major release.
|
|
41
|
+
* @deprecationExpectedRemoval v8
|
|
41
42
|
*/
|
|
42
43
|
const TabNavigationComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
43
44
|
var _scrollRef$current, _scrollRef$current2, _scrollRef$current3;
|
|
@@ -6,7 +6,10 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
6
6
|
import { coinbaseTheme } from './coinbaseTheme';
|
|
7
7
|
export const coinbaseDenseThemeId = 'coinbase-dense';
|
|
8
8
|
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This theme was created to test backwards compatibility, it is not officially supported by CDS. Please copy it into your own repo and modify it as needed. Do not import it directly from CDS. This will be removed in a future major release.
|
|
11
|
+
* @deprecationExpectedRemoval v9
|
|
12
|
+
*/
|
|
10
13
|
export const coinbaseDenseTheme = _objectSpread(_objectSpread({}, coinbaseTheme), {}, {
|
|
11
14
|
id: coinbaseDenseThemeId,
|
|
12
15
|
space: {
|
|
@@ -5,7 +5,8 @@ const containerCss = "containerCss-cw9uypc";
|
|
|
5
5
|
const hiddenCss = "hiddenCss-hy2p56v";
|
|
6
6
|
const visibleCss = "visibleCss-vt3gpqt";
|
|
7
7
|
/**
|
|
8
|
-
* @deprecated This
|
|
8
|
+
* @deprecated Moved to cds-web-sparkline. This will be removed in a future major release.
|
|
9
|
+
* @deprecationExpectedRemoval v6
|
|
9
10
|
*/
|
|
10
11
|
export const Counter = _ref => {
|
|
11
12
|
let {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-web",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.56.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.
|
|
210
|
+
"@coinbase/cds-common": "^8.56.1",
|
|
211
211
|
"@coinbase/cds-icons": "^5.13.0",
|
|
212
212
|
"@coinbase/cds-illustrations": "^4.35.0",
|
|
213
213
|
"@coinbase/cds-lottie-files": "^3.3.4",
|