@coinbase/cds-mobile 8.55.0 → 8.56.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 (112) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dts/alpha/carousel/Carousel.d.ts +4 -1
  3. package/dts/alpha/carousel/Carousel.d.ts.map +1 -1
  4. package/dts/buttons/IconCounterButton.d.ts +4 -1
  5. package/dts/buttons/IconCounterButton.d.ts.map +1 -1
  6. package/dts/cards/AnnouncementCard.d.ts +8 -2
  7. package/dts/cards/AnnouncementCard.d.ts.map +1 -1
  8. package/dts/cards/ContainedAssetCard.d.ts +2 -1
  9. package/dts/cards/ContainedAssetCard.d.ts.map +1 -1
  10. package/dts/cards/ContentCard/ContentCardBody.d.ts +12 -6
  11. package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -1
  12. package/dts/cards/ContentCard/ContentCardHeader.d.ts +24 -6
  13. package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -1
  14. package/dts/cards/FeatureEntryCard.d.ts +8 -2
  15. package/dts/cards/FeatureEntryCard.d.ts.map +1 -1
  16. package/dts/cards/FeedCard.d.ts +12 -3
  17. package/dts/cards/FeedCard.d.ts.map +1 -1
  18. package/dts/cards/FloatingAssetCard.d.ts +2 -1
  19. package/dts/cards/FloatingAssetCard.d.ts.map +1 -1
  20. package/dts/cards/NudgeCard.d.ts +2 -1
  21. package/dts/cards/NudgeCard.d.ts.map +1 -1
  22. package/dts/cards/UpsellCard.d.ts +2 -1
  23. package/dts/cards/UpsellCard.d.ts.map +1 -1
  24. package/dts/cells/Cell.d.ts +4 -2
  25. package/dts/cells/Cell.d.ts.map +1 -1
  26. package/dts/cells/CellMedia.d.ts +4 -2
  27. package/dts/cells/CellMedia.d.ts.map +1 -1
  28. package/dts/cells/ContentCell.d.ts +6 -3
  29. package/dts/cells/ContentCell.d.ts.map +1 -1
  30. package/dts/cells/ListCell.d.ts +4 -2
  31. package/dts/cells/ListCell.d.ts.map +1 -1
  32. package/dts/chips/Chip.d.ts.map +1 -1
  33. package/dts/chips/ChipProps.d.ts +6 -3
  34. package/dts/chips/ChipProps.d.ts.map +1 -1
  35. package/dts/chips/InputChip.d.ts.map +1 -1
  36. package/dts/chips/MediaChip.d.ts.map +1 -1
  37. package/dts/chips/SelectChip.d.ts +4 -2
  38. package/dts/chips/SelectChip.d.ts.map +1 -1
  39. package/dts/chips/TabbedChips.d.ts +2 -1
  40. package/dts/chips/TabbedChips.d.ts.map +1 -1
  41. package/dts/controls/CheckboxGroup.d.ts +6 -3
  42. package/dts/controls/CheckboxGroup.d.ts.map +1 -1
  43. package/dts/controls/RadioGroup.d.ts +6 -3
  44. package/dts/controls/RadioGroup.d.ts.map +1 -1
  45. package/dts/controls/Select.d.ts +2 -1
  46. package/dts/controls/Select.d.ts.map +1 -1
  47. package/dts/dates/DatePicker.d.ts +8 -4
  48. package/dts/dates/DatePicker.d.ts.map +1 -1
  49. package/dts/gradients/LinearGradient.d.ts +2 -1
  50. package/dts/gradients/LinearGradient.d.ts.map +1 -1
  51. package/dts/hooks/useStatusBarHeight.d.ts +2 -1
  52. package/dts/hooks/useStatusBarHeight.d.ts.map +1 -1
  53. package/dts/layout/Group.d.ts +2 -1
  54. package/dts/layout/Group.d.ts.map +1 -1
  55. package/dts/media/Avatar.d.ts +2 -1
  56. package/dts/media/Avatar.d.ts.map +1 -1
  57. package/dts/media/Carousel/Carousel.d.ts +4 -1
  58. package/dts/media/Carousel/Carousel.d.ts.map +1 -1
  59. package/dts/media/RemoteImage.d.ts +2 -1
  60. package/dts/media/RemoteImage.d.ts.map +1 -1
  61. package/dts/overlays/drawer/Drawer.d.ts +4 -2
  62. package/dts/overlays/drawer/Drawer.d.ts.map +1 -1
  63. package/dts/overlays/modal/ModalBody.d.ts +13 -2
  64. package/dts/overlays/modal/ModalBody.d.ts.map +1 -1
  65. package/dts/overlays/modal/ModalFooter.d.ts +19 -16
  66. package/dts/overlays/modal/ModalFooter.d.ts.map +1 -1
  67. package/dts/overlays/modal/ModalHeader.d.ts +5 -3
  68. package/dts/overlays/modal/ModalHeader.d.ts.map +1 -1
  69. package/dts/overlays/tray/Tray.d.ts +2 -1
  70. package/dts/overlays/tray/Tray.d.ts.map +1 -1
  71. package/dts/overlays/useModal.d.ts +2 -1
  72. package/dts/overlays/useModal.d.ts.map +1 -1
  73. package/dts/sticky-footer/StickyFooter.d.ts +4 -2
  74. package/dts/sticky-footer/StickyFooter.d.ts.map +1 -1
  75. package/dts/system/PressableOpacity.d.ts +8 -2
  76. package/dts/system/PressableOpacity.d.ts.map +1 -1
  77. package/dts/tabs/TabNavigation.d.ts +2 -1
  78. package/dts/tabs/TabNavigation.d.ts.map +1 -1
  79. package/dts/themes/coinbaseDenseTheme.d.ts +4 -1
  80. package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -1
  81. package/dts/typography/Text.d.ts +8 -2
  82. package/dts/typography/Text.d.ts.map +1 -1
  83. package/dts/visualizations/ProgressCircle.d.ts +4 -2
  84. package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
  85. package/esm/alpha/carousel/Carousel.js +4 -1
  86. package/esm/cards/AnnouncementCard.js +8 -2
  87. package/esm/cards/ContainedAssetCard.js +2 -1
  88. package/esm/cards/FeatureEntryCard.js +8 -2
  89. package/esm/cards/FeedCard.js +12 -3
  90. package/esm/cards/FloatingAssetCard.js +2 -1
  91. package/esm/cards/NudgeCard.js +2 -1
  92. package/esm/cards/UpsellCard.js +2 -1
  93. package/esm/cells/CellMedia.js +2 -1
  94. package/esm/cells/ContentCell.js +4 -2
  95. package/esm/chips/SelectChip.js +4 -2
  96. package/esm/chips/TabbedChips.js +2 -1
  97. package/esm/controls/CheckboxGroup.js +6 -3
  98. package/esm/controls/RadioGroup.js +6 -3
  99. package/esm/controls/Select.js +2 -1
  100. package/esm/hooks/useStatusBarHeight.js +2 -1
  101. package/esm/layout/Group.js +2 -1
  102. package/esm/media/Carousel/Carousel.js +4 -1
  103. package/esm/overlays/__stories__/ModalCustomPadding.stories.js +48 -0
  104. package/esm/overlays/modal/ModalBody.js +21 -5
  105. package/esm/overlays/modal/ModalFooter.js +15 -10
  106. package/esm/overlays/modal/ModalHeader.js +22 -15
  107. package/esm/overlays/tray/Tray.js +2 -1
  108. package/esm/overlays/useModal.js +2 -1
  109. package/esm/system/PressableOpacity.js +8 -2
  110. package/esm/tabs/TabNavigation.js +2 -1
  111. package/esm/themes/coinbaseDenseTheme.js +4 -1
  112. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EACL,QAAQ,EACR,KAAK,SAAS,EAEd,IAAI,IAAI,UAAU,EAClB,KAAK,SAAS,IAAI,eAAe,EACjC,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC/C;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;I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ChE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAiBvE,eAAO,MAAM,IAAI;eA3EJ,KAAK,CAAC,SAAS;YAClB,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;eAC7C,OAAO;IAClB;;;OAGG;YACK,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS;IAC9C;;;OAGG;WACI,SAAS,CAAC,UAAU,GAAG,SAAS;IACvC;;OAEG;eACQ,OAAO;IAClB;;OAEG;WACI,OAAO;IACd;;;OAGG;gBACS,OAAO;IACnB;;;OAGG;qBACc,OAAO;IACxB;;OAEG;oBACa,MAAM;IACtB;;;OAGG;gBACS,eAAe,CAAC,eAAe,CAAC;IAC5C;;;OAGG;aACM,OAAO;IAChB,wFAAwF;0BAClE,SAAS,CAAC,OAAO,CAAC;IACxC,wFAAwF;+BAC7D,SAAS,CAAC,iBAAiB,CAAC;IACvD;;;OAGG;sBACe,OAAO;IACzB,gEAAgE;aACvD,MAAM;sEAyThB,CAAC"}
@@ -10,7 +10,8 @@ export type ProgressCircleBaseProps = ProgressBaseProps & {
10
10
  */
11
11
  hideContent?: boolean;
12
12
  /**
13
- * @deprecated Use hideContent instead
13
+ * @deprecated Use hideContent instead. This will be removed in a future major release.
14
+ * @deprecationExpectedRemoval v8
14
15
  * Toggle used to hide the text rendered inside the circle.
15
16
  */
16
17
  hideText?: boolean;
@@ -72,7 +73,8 @@ export declare const ProgressCircle: React.MemoExoticComponent<
72
73
  */
73
74
  hideContent?: boolean;
74
75
  /**
75
- * @deprecated Use hideContent instead
76
+ * @deprecated Use hideContent instead. This will be removed in a future major release.
77
+ * @deprecationExpectedRemoval v8
76
78
  * Toggle used to hide the text rendered inside the circle.
77
79
  */
78
80
  hideText?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCirc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G;eACQ,OAAO;IAClB;;;;;OAKG;WACI,MAAM;IACb;;OAEG;kBACW,KAAK,CAAC,SAAS;;YAIrB,SAAS,CAAC,SAAS,CAAC;IAC5B,4EAA4E;aACnE;QACP,mBAAmB;QACnB,IAAI,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC5B,4BAA4B;QAC5B,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACpC,kBAAkB;QAClB,GAAG,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC3B,6BAA6B;QAC7B,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACrC,yCAAyC;QACzC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAChC,gCAAgC;QAChC,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;KAC/B;+BAyMF,CAAC"}
@@ -13,7 +13,10 @@ import { PROGRESS_INDICATOR_WIDTH, ProgressIndicator } from '../../visualization
13
13
  import { CarouselControlsWrapper } from './CarouselControlsWrapper';
14
14
  import { CarouselItem } from './CarouselItem';
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- /** @deprecated This component will be removed in a future version. Use new Carousel component instead. */
16
+ /**
17
+ * @deprecated Use new Carousel component instead. This will be removed in a future major release.
18
+ * @deprecationExpectedRemoval v8
19
+ */
17
20
  export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, forwardedRef) => {
18
21
  let {
19
22
  carouselRef,
@@ -5,9 +5,15 @@ import React, { memo } from 'react';
5
5
  import { Card } from './Card';
6
6
  import { CardBody } from './CardBody';
7
7
 
8
- /** @deprecated Use MessagingCard instead. AnnouncementCard will be removed in a future major release. */
8
+ /**
9
+ * @deprecated Use MessagingCard instead. This will be removed in a future major release.
10
+ * @deprecationExpectedRemoval v6
11
+ */
9
12
  import { jsx as _jsx } from "react/jsx-runtime";
10
- /** @deprecated Use MessagingCard instead. AnnouncementCard will be removed in a future major release. */
13
+ /**
14
+ * @deprecated Use MessagingCard instead. This will be removed in a future major release.
15
+ * @deprecationExpectedRemoval v6
16
+ */
11
17
  export const AnnouncementCard = /*#__PURE__*/memo(function AnnouncementCard(_ref) {
12
18
  let {
13
19
  onPress,
@@ -5,7 +5,8 @@ import { Pressable } from '../system';
5
5
  import { Text } from '../typography/Text';
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
7
  /**
8
- * @deprecated Use `MediaCard` instead. ContainedAssetCard will be removed in a future major release.
8
+ * @deprecated Use `MediaCard` instead. This will be removed in a future major release.
9
+ * @deprecationExpectedRemoval v9
9
10
  *
10
11
  * Migration guide:
11
12
  * ```tsx
@@ -5,9 +5,15 @@ import React, { memo } from 'react';
5
5
  import { Card } from './Card';
6
6
  import { CardBody } from './CardBody';
7
7
 
8
- /** @deprecated Use MessagingCard instead. FeatureEntryCard will be removed in a future major release. */
8
+ /**
9
+ * @deprecated Use MessagingCard instead. This will be removed in a future major release.
10
+ * @deprecationExpectedRemoval v6
11
+ */
9
12
  import { jsx as _jsx } from "react/jsx-runtime";
10
- /** @deprecated Use MessagingCard instead. FeatureEntryCard will be removed in a future major release. */
13
+ /**
14
+ * @deprecated Use MessagingCard instead. This will be removed in a future major release.
15
+ * @deprecationExpectedRemoval v6
16
+ */
11
17
  export const FeatureEntryCard = /*#__PURE__*/memo(function FeatureEntryCard(_ref) {
12
18
  let {
13
19
  onPress,
@@ -10,11 +10,20 @@ import { CardFooter } from './CardFooter';
10
10
  import { CardHeader } from './CardHeader';
11
11
  import { LikeButton } from './LikeButton';
12
12
 
13
- /** @deprecated Use the ContentCard component instead. */
13
+ /**
14
+ * @deprecated Use the ContentCard component instead. This will be removed in a future major release.
15
+ * @deprecationExpectedRemoval v9
16
+ */
14
17
 
15
- /** @deprecated Use the ContentCard component instead. */
18
+ /**
19
+ * @deprecated Use the ContentCard component instead. This will be removed in a future major release.
20
+ * @deprecationExpectedRemoval v8
21
+ */
16
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
- /** @deprecated Use the ContentCard component instead. */
23
+ /**
24
+ * @deprecated Use the ContentCard component instead. This will be removed in a future major release.
25
+ * @deprecationExpectedRemoval v8
26
+ */
18
27
  export const FeedCard = /*#__PURE__*/memo(function FeedCard(_ref) {
19
28
  let {
20
29
  testID = 'feed-card',
@@ -5,7 +5,8 @@ import { Pressable } from '../system';
5
5
  import { Text } from '../typography/Text';
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
7
  /**
8
- * @deprecated Use `MediaCard` instead. FloatingAssetCard will be removed in a future major release.
8
+ * @deprecated Use `MediaCard` instead. This will be removed in a future major release.
9
+ * @deprecationExpectedRemoval v9
9
10
  *
10
11
  * Migration guide:
11
12
  * ```tsx
@@ -10,7 +10,8 @@ import { Pressable } from '../system/Pressable';
10
10
  import { Text } from '../typography/Text';
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  /**
13
- * @deprecated Use `MessagingCard` with `type="nudge"` instead. NudgeCard will be removed in a future major release.
13
+ * @deprecated Use `MessagingCard` with `type="nudge"` instead. This will be removed in a future major release.
14
+ * @deprecationExpectedRemoval v9
14
15
  *
15
16
  * Migration guide:
16
17
  * ```tsx
@@ -6,7 +6,8 @@ import { Pressable } from '../system/Pressable';
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. UpsellCard will be removed in a future major release.
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
@@ -5,7 +5,8 @@ import { Box } from '../layout/Box';
5
5
  import { getSource, RemoteImage } from '../media/RemoteImage';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  /**
8
- * @deprecated This component will be removed in a future release. Pass media directly via the `media` prop.
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) {
@@ -11,7 +11,8 @@ import { CellAccessory } from './CellAccessory';
11
11
  import { condensedInnerSpacing, condensedOuterSpacing } from './ListCell';
12
12
 
13
13
  /**
14
- * @deprecated this component will be removed in a future version. Use ListCell instead.
14
+ * @deprecated Use ListCell instead. This will be removed in a future major release.
15
+ * @deprecationExpectedRemoval v9
15
16
  */
16
17
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
18
  function generateAccessibilityLabels(userLabel, title, subtitle) {
@@ -28,7 +29,8 @@ function generateAccessibilityLabels(userLabel, title, subtitle) {
28
29
  }
29
30
 
30
31
  /**
31
- * @deprecated this component will be removed in a future version. Use ListCell instead.
32
+ * @deprecated Use ListCell instead. This will be removed in a future major release.
33
+ * @deprecationExpectedRemoval v9
32
34
  */
33
35
  export const ContentCell = /*#__PURE__*/memo(function ContentCell(_ref) {
34
36
  var _props$borderRadius;
@@ -13,12 +13,14 @@ import { Tray } from '../overlays';
13
13
  import { MediaChip } from './MediaChip';
14
14
 
15
15
  /**
16
- * @deprecated This component is deprecated. Please use the new SelectChip alpha component instead.
16
+ * @deprecated This component is deprecated. Please use the new SelectChip alpha component instead. This will be removed in a future major release.
17
+ * @deprecationExpectedRemoval v9
17
18
  * @see {@link @coinbase/cds-mobile/alpha/select-chip/SelectChip}
18
19
  */
19
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
21
  /**
21
- * @deprecated This component is deprecated. Please use the new SelectChip alpha component instead.
22
+ * @deprecated This component is deprecated. Please use the new SelectChip alpha component instead. This will be removed in a future major release.
23
+ * @deprecationExpectedRemoval v9
22
24
  * @see {@link @coinbase/cds-mobile/alpha/select-chip/SelectChip}
23
25
  */
24
26
  export const SelectChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
@@ -87,6 +87,7 @@ const TabbedChipsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
87
87
  TabbedChipsComponent.displayName = 'TabbedChips';
88
88
 
89
89
  /**
90
- * @deprecated Use `TabbedChips(Alpha)` instead.
90
+ * @deprecated Use `TabbedChips(Alpha)` instead. This will be removed in a future major release.
91
+ * @deprecationExpectedRemoval v9
91
92
  */
92
93
  export const TabbedChips = TabbedChipsComponent;
@@ -8,7 +8,8 @@ import { Checkbox } from './Checkbox';
8
8
  import { ControlGroup } from './ControlGroup';
9
9
 
10
10
  /**
11
- * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead.
11
+ * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead. This will be removed in a future major release.
12
+ * @deprecationExpectedRemoval v8
12
13
  *
13
14
  * @example
14
15
  * // Instead of:
@@ -27,7 +28,8 @@ import { ControlGroup } from './ControlGroup';
27
28
  */
28
29
 
29
30
  /**
30
- * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead.
31
+ * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead. This will be removed in a future major release.
32
+ * @deprecationExpectedRemoval v8
31
33
  */
32
34
  import { jsx as _jsx } from "react/jsx-runtime";
33
35
  // Follows behavior describe in https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-2/checkbox-2.html
@@ -97,6 +99,7 @@ const CheckboxGroupWithRef = /*#__PURE__*/forwardRef(function CheckboxGroupWithR
97
99
 
98
100
  // Make memoized function stay generic function type
99
101
  /**
100
- * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead.
102
+ * @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead. This will be removed in a future major release.
103
+ * @deprecationExpectedRemoval v8
101
104
  */
102
105
  export const CheckboxGroup = /*#__PURE__*/memo(CheckboxGroupWithRef);
@@ -10,7 +10,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export { Radio };
11
11
 
12
12
  /**
13
- * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead.
13
+ * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead. This will be removed in a future major release.
14
+ * @deprecationExpectedRemoval v8
14
15
  *
15
16
  * @example
16
17
  * // Instead of:
@@ -27,7 +28,8 @@ export { Radio };
27
28
  */
28
29
 
29
30
  /**
30
- * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead.
31
+ * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead. This will be removed in a future major release.
32
+ * @deprecationExpectedRemoval v8
31
33
  */
32
34
 
33
35
  const RadioGroupWithRef = /*#__PURE__*/forwardRef(function RadioGroup(_ref, ref) {
@@ -90,6 +92,7 @@ const RadioGroupWithRef = /*#__PURE__*/forwardRef(function RadioGroup(_ref, ref)
90
92
 
91
93
  // Make memoized function stay generic function type
92
94
  /**
93
- * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead.
95
+ * @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead. This will be removed in a future major release.
96
+ * @deprecationExpectedRemoval v8
94
97
  */
95
98
  export const RadioGroup = /*#__PURE__*/memo(RadioGroupWithRef);
@@ -28,7 +28,8 @@ const variantColorMap = {
28
28
  secondary: 'fgMuted'
29
29
  };
30
30
  /**
31
- * @deprecated Please use the new Select alpha component instead.
31
+ * @deprecated Please use the new Select alpha component instead. This will be removed in a future major release.
32
+ * @deprecationExpectedRemoval v9
32
33
  */
33
34
  export const Select = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
34
35
  var _ref3;
@@ -4,7 +4,8 @@ const {
4
4
  StatusBarManager
5
5
  } = NativeModules;
6
6
  /**
7
- * @deprecated Use `useSafeAreaInsets().top` from `react-native-safe-area-context` instead.
7
+ * @deprecated Use `useSafeAreaInsets().top` from `react-native-safe-area-context` instead. This will be removed in a future major release.
8
+ * @deprecationExpectedRemoval v9
8
9
  * This approach is recommended by Expo and provides more reliable values across platforms.
9
10
  * @see https://docs.expo.dev/versions/latest/sdk/safe-area-context/
10
11
  *
@@ -7,7 +7,8 @@ import { Box } from './Box';
7
7
  import { Spacer } from './Spacer';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  /**
10
- * @deprecated Use `Box`, `HStack` or `VStack` instead.
10
+ * @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
11
+ * @deprecationExpectedRemoval v8
11
12
  * @danger Make sure to add a `key` prop to each item.
12
13
  */
13
14
  export const Group = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Group(_ref, forwardedRef) {
@@ -10,7 +10,10 @@ import { CarouselItem } from './CarouselItem';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const opacityConfig = convertMotionConfig(animateOpacityConfig);
12
12
  const sizeConfig = convertMotionConfig(animateSizeConfig);
13
- /** @deprecated This component will be removed in a future version. Use new Carousel component instead. */
13
+ /**
14
+ * @deprecated Use new Carousel component instead. This will be removed in a future major release.
15
+ * @deprecationExpectedRemoval v8
16
+ */
14
17
  export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, forwardedRef) => {
15
18
  let {
16
19
  carouselRef,
@@ -0,0 +1,48 @@
1
+ import React, { useCallback, useState } from 'react';
2
+ import { Button } from '../../buttons/Button';
3
+ import { Example, ExampleScreen } from '../../examples/ExampleScreen';
4
+ import { LoremIpsum } from '../../layout/__stories__/LoremIpsum';
5
+ import { Modal } from '../modal/Modal';
6
+ import { ModalBody } from '../modal/ModalBody';
7
+ import { ModalFooter } from '../modal/ModalFooter';
8
+ import { ModalHeader } from '../modal/ModalHeader';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export default function ModalCustomPaddingScreen() {
11
+ const [visible, setVisible] = useState(true);
12
+ const handleClose = useCallback(() => setVisible(false), []);
13
+ const handleOpen = useCallback(() => setVisible(true), []);
14
+ return /*#__PURE__*/_jsx(ExampleScreen, {
15
+ children: /*#__PURE__*/_jsxs(Example, {
16
+ title: "Modal with custom padding",
17
+ children: [/*#__PURE__*/_jsx(Button, {
18
+ onPress: handleOpen,
19
+ children: "Open Modal"
20
+ }), /*#__PURE__*/_jsxs(Modal, {
21
+ onRequestClose: handleClose,
22
+ visible: visible,
23
+ children: [/*#__PURE__*/_jsx(ModalHeader, {
24
+ closeAccessibilityLabel: "Close",
25
+ paddingX: 0,
26
+ paddingY: 0,
27
+ title: "Custom Padding Modal"
28
+ }), /*#__PURE__*/_jsx(ModalBody, {
29
+ paddingX: 0,
30
+ paddingY: 0,
31
+ children: /*#__PURE__*/_jsx(LoremIpsum, {})
32
+ }), /*#__PURE__*/_jsx(ModalFooter, {
33
+ paddingX: 0,
34
+ paddingY: 0,
35
+ primaryAction: /*#__PURE__*/_jsx(Button, {
36
+ onPress: handleClose,
37
+ children: "Save"
38
+ }),
39
+ secondaryAction: /*#__PURE__*/_jsx(Button, {
40
+ onPress: handleClose,
41
+ variant: "secondary",
42
+ children: "Cancel"
43
+ })
44
+ })]
45
+ })]
46
+ })
47
+ });
48
+ }
@@ -1,4 +1,4 @@
1
- const _excluded = ["children"];
1
+ const _excluded = ["children", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useMemo } from 'react';
@@ -6,11 +6,18 @@ import { KeyboardAvoidingView, ScrollView } from 'react-native';
6
6
  import { useModalContext } from '@coinbase/cds-common/overlays/ModalContext';
7
7
  import { useContentSize } from '../../hooks/useContentSize';
8
8
  import { useLayout } from '../../hooks/useLayout';
9
- import { Box } from '../../layout';
9
+ import { Box } from '../../layout/Box';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  export const ModalBody = _ref => {
12
12
  let {
13
- children
13
+ children,
14
+ padding,
15
+ paddingX = 3,
16
+ paddingY: paddingYProp,
17
+ paddingTop,
18
+ paddingBottom,
19
+ paddingStart,
20
+ paddingEnd
14
21
  } = _ref,
15
22
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
16
23
  const [{
@@ -25,6 +32,10 @@ export const ModalBody = _ref => {
25
32
 
26
33
  // dynamically set scrollEnabled base on content height
27
34
  const shouldEnableScroll = useMemo(() => contentHeight > scrollHeight, [contentHeight, scrollHeight]);
35
+ const paddingY = useMemo(() => {
36
+ if (paddingYProp !== undefined) return paddingYProp;
37
+ return hideDividers ? 0 : 3;
38
+ }, [paddingYProp, hideDividers]);
28
39
  return /*#__PURE__*/_jsx(KeyboardAvoidingView, {
29
40
  behavior: "padding",
30
41
  style: {
@@ -37,10 +48,15 @@ export const ModalBody = _ref => {
37
48
  }, props, {
38
49
  children: /*#__PURE__*/_jsx(Box, {
39
50
  flexGrow: 1,
40
- paddingX: 3
51
+ padding: padding,
52
+ paddingBottom: paddingBottom,
53
+ paddingEnd: paddingEnd,
54
+ paddingStart: paddingStart,
55
+ paddingTop: paddingTop,
56
+ paddingX: paddingX
41
57
  // remove vertical padding when dividers hidden
42
58
  ,
43
- paddingY: hideDividers ? 0 : 3,
59
+ paddingY: paddingY,
44
60
  children: children
45
61
  })
46
62
  }))
@@ -1,3 +1,6 @@
1
+ const _excluded = ["primaryAction", "secondaryAction", "direction", "paddingX", "paddingY"];
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ 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; }
1
4
  import React, { Fragment } from 'react';
2
5
  import { useModalContext } from '@coinbase/cds-common/overlays/ModalContext';
3
6
  import { ButtonGroup } from '../../buttons/ButtonGroup';
@@ -5,11 +8,13 @@ import { Box } from '../../layout/Box';
5
8
  import { jsx as _jsx } from "react/jsx-runtime";
6
9
  export const ModalFooter = _ref => {
7
10
  let {
8
- primaryAction,
9
- secondaryAction,
10
- direction = 'horizontal',
11
- testID
12
- } = _ref;
11
+ primaryAction,
12
+ secondaryAction,
13
+ direction = 'horizontal',
14
+ paddingX = 3,
15
+ paddingY = 2
16
+ } = _ref,
17
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
13
18
  const {
14
19
  hideDividers = false
15
20
  } = useModalContext();
@@ -20,11 +25,11 @@ export const ModalFooter = _ref => {
20
25
  if (isVertical) {
21
26
  actions.reverse();
22
27
  }
23
- return /*#__PURE__*/_jsx(Box, {
28
+ return /*#__PURE__*/_jsx(Box, _extends({
24
29
  borderedTop: !hideDividers,
25
- paddingX: 3,
26
- paddingY: 2,
27
- testID: testID,
30
+ paddingX: paddingX,
31
+ paddingY: paddingY
32
+ }, props, {
28
33
  children: /*#__PURE__*/_jsx(ButtonGroup, {
29
34
  block: !isVertical,
30
35
  direction: direction,
@@ -35,5 +40,5 @@ export const ModalFooter = _ref => {
35
40
  children: action
36
41
  }, i))
37
42
  })
38
- });
43
+ }));
39
44
  };
@@ -1,30 +1,37 @@
1
+ const _excluded = ["alignItems", "paddingX", "paddingY", "title", "onBackButtonClick", "backAccessibilityLabel", "backAccessibilityHint", "closeAccessibilityLabel", "closeAccessibilityHint"];
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ 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; }
1
4
  import React from 'react';
2
5
  import { useModalContext } from '@coinbase/cds-common/overlays/ModalContext';
3
6
  import { IconButton } from '../../buttons';
4
- import { Box, HStack } from '../../layout';
7
+ import { Box } from '../../layout/Box';
8
+ import { HStack } from '../../layout/HStack';
5
9
  import { Text } from '../../typography/Text';
6
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
11
  export const ModalHeader = _ref => {
8
12
  let {
9
- title,
10
- onBackButtonClick,
11
- backAccessibilityLabel,
12
- backAccessibilityHint,
13
- closeAccessibilityLabel,
14
- closeAccessibilityHint,
15
- testID
16
- } = _ref;
13
+ alignItems = 'center',
14
+ paddingX = 3,
15
+ paddingY = 2,
16
+ title,
17
+ onBackButtonClick,
18
+ backAccessibilityLabel,
19
+ backAccessibilityHint,
20
+ closeAccessibilityLabel,
21
+ closeAccessibilityHint
22
+ } = _ref,
23
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
17
24
  const {
18
25
  onRequestClose,
19
26
  hideCloseButton,
20
27
  hideDividers
21
28
  } = useModalContext();
22
- return /*#__PURE__*/_jsxs(HStack, {
23
- alignItems: "center",
29
+ return /*#__PURE__*/_jsxs(HStack, _extends({
30
+ alignItems: alignItems,
24
31
  borderedBottom: !hideDividers,
25
- paddingX: 3,
26
- paddingY: 2,
27
- testID: testID,
32
+ paddingX: paddingX,
33
+ paddingY: paddingY
34
+ }, props, {
28
35
  children: [/*#__PURE__*/_jsx(Box, {
29
36
  flexBasis: 0,
30
37
  flexGrow: 1,
@@ -59,5 +66,5 @@ export const ModalHeader = _ref => {
59
66
  testID: "modal-close-button"
60
67
  })
61
68
  })]
62
- });
69
+ }));
63
70
  };
@@ -122,7 +122,8 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_ref
122
122
  }));
123
123
 
124
124
  /**
125
- * @deprecated Redundant component.
125
+ * @deprecated Redundant component. This will be removed in a future major release.
126
+ * @deprecationExpectedRemoval v9
126
127
  */
127
128
  export const TrayStickyFooter = _ref4 => {
128
129
  let {
@@ -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 };
@@ -4,9 +4,15 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
4
4
  import React from 'react';
5
5
  import { Pressable } from './Pressable';
6
6
 
7
- /** @deprecated This component will be removed in a future version. Use `<Pressable background="transparent">` instead. */
7
+ /**
8
+ * @deprecated Use `<Pressable background="transparent">` instead. This will be removed in a future major release.
9
+ * @deprecationExpectedRemoval v8
10
+ */
8
11
  import { jsx as _jsx } from "react/jsx-runtime";
9
- /** @deprecated This component will be removed in a future version. Use `<Pressable background="transparent">` instead. */
12
+ /**
13
+ * @deprecated Use `<Pressable background="transparent">` instead. This will be removed in a future major release.
14
+ * @deprecationExpectedRemoval v8
15
+ */
10
16
  export const PressableOpacity = _ref => {
11
17
  let {
12
18
  children
@@ -145,7 +145,8 @@ const TabNavigationComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref,
145
145
  /**
146
146
  * TabNavigation renders a horizontal, tab-based navigation bar.
147
147
  * This component has a opinionated default style, but allows for customization through custom Component props.
148
- * @deprecated Use `Tabs` instead.
148
+ * @deprecated Use `Tabs` instead. This will be removed in a future major release.
149
+ * @deprecationExpectedRemoval v9
149
150
  */
150
151
  export const TabNavigation = TabNavigationComponent;
151
152
  TabNavigationComponent.displayName = 'TabNavigation';
@@ -2,7 +2,10 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
2
2
  import { coinbaseTheme } from './coinbaseTheme';
3
3
  export const coinbaseDenseThemeId = 'coinbase-dense';
4
4
 
5
- /** @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. */
5
+ /**
6
+ * @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.
7
+ * @deprecationExpectedRemoval v9
8
+ */
6
9
  export const coinbaseDenseTheme = _extends({}, coinbaseTheme, {
7
10
  id: coinbaseDenseThemeId,
8
11
  space: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-mobile",
3
- "version": "8.55.0",
3
+ "version": "8.56.0",
4
4
  "description": "Coinbase Design System - Mobile",
5
5
  "repository": {
6
6
  "type": "git",
@@ -197,9 +197,9 @@
197
197
  "react-native-svg": "^14.1.0"
198
198
  },
199
199
  "dependencies": {
200
- "@coinbase/cds-common": "^8.55.0",
200
+ "@coinbase/cds-common": "^8.56.0",
201
201
  "@coinbase/cds-icons": "^5.13.0",
202
- "@coinbase/cds-illustrations": "^4.34.0",
202
+ "@coinbase/cds-illustrations": "^4.35.0",
203
203
  "@coinbase/cds-lottie-files": "^3.3.4",
204
204
  "@coinbase/cds-utils": "^2.3.5",
205
205
  "@floating-ui/react-native": "^0.10.5",