@coinbase/cds-mobile 9.1.2 → 9.2.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 (245) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dts/alpha/select/DefaultSelectControl.d.ts +9 -9
  3. package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
  4. package/dts/alpha/select/Select.d.ts.map +1 -1
  5. package/dts/alpha/select/types.d.ts +25 -8
  6. package/dts/alpha/select/types.d.ts.map +1 -1
  7. package/dts/sticky-footer/StickyFooter.d.ts +8 -0
  8. package/dts/sticky-footer/StickyFooter.d.ts.map +1 -1
  9. package/dts/visualizations/chart/bar/PercentageBarChart.d.ts +2 -2
  10. package/esm/alpha/select/DefaultSelectControl.js +34 -17
  11. package/esm/alpha/select/Select.js +59 -47
  12. package/esm/dates/DatePicker.js +0 -2
  13. package/esm/overlays/__stories__/TrayAction.stories.js +0 -1
  14. package/esm/overlays/__stories__/TrayInformational.stories.js +0 -2
  15. package/esm/overlays/__stories__/TrayMessaging.stories.js +0 -1
  16. package/esm/overlays/__stories__/TrayPromotional.stories.js +0 -1
  17. package/esm/overlays/__stories__/TrayRedesign.stories.js +0 -7
  18. package/esm/sticky-footer/StickyFooter.js +6 -3
  19. package/esm/system/__stories__/componentConfigStickerSheet/customComponentConfig.js +17 -11
  20. package/esm/system/__stories__/componentConfigStickerSheet/examples/Select.js +7 -0
  21. package/package.json +3 -3
  22. package/dts/accordion/__figma__/Accordion.figma.d.ts +0 -2
  23. package/dts/accordion/__figma__/Accordion.figma.d.ts.map +0 -1
  24. package/dts/alpha/__figma__/Select.figma.d.ts +0 -2
  25. package/dts/alpha/__figma__/Select.figma.d.ts.map +0 -1
  26. package/dts/alpha/data-card/__figma__/DataCard.figma.d.ts +0 -2
  27. package/dts/alpha/data-card/__figma__/DataCard.figma.d.ts.map +0 -1
  28. package/dts/buttons/__figma__/AvatarButton.figma.d.ts +0 -2
  29. package/dts/buttons/__figma__/AvatarButton.figma.d.ts.map +0 -1
  30. package/dts/buttons/__figma__/Button.figma.d.ts +0 -2
  31. package/dts/buttons/__figma__/Button.figma.d.ts.map +0 -1
  32. package/dts/buttons/__figma__/ButtonGroup.figma.d.ts +0 -2
  33. package/dts/buttons/__figma__/ButtonGroup.figma.d.ts.map +0 -1
  34. package/dts/buttons/__figma__/IconButton.figma.d.ts +0 -2
  35. package/dts/buttons/__figma__/IconButton.figma.d.ts.map +0 -1
  36. package/dts/buttons/__figma__/SlideButton.figma.d.ts +0 -2
  37. package/dts/buttons/__figma__/SlideButton.figma.d.ts.map +0 -1
  38. package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts +0 -2
  39. package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts.map +0 -1
  40. package/dts/cards/MediaCard/__figma__/MediaCard.figma.d.ts +0 -2
  41. package/dts/cards/MediaCard/__figma__/MediaCard.figma.d.ts.map +0 -1
  42. package/dts/cards/MessagingCard/__figma__/MessagingCard.figma.d.ts +0 -2
  43. package/dts/cards/MessagingCard/__figma__/MessagingCard.figma.d.ts.map +0 -1
  44. package/dts/cards/__figma__/AnnouncementCard.figma.d.ts +0 -2
  45. package/dts/cards/__figma__/AnnouncementCard.figma.d.ts.map +0 -1
  46. package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts +0 -2
  47. package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts.map +0 -1
  48. package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts +0 -2
  49. package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts.map +0 -1
  50. package/dts/cards/__figma__/NudgeCard.figma.d.ts +0 -2
  51. package/dts/cards/__figma__/NudgeCard.figma.d.ts.map +0 -1
  52. package/dts/cards/__figma__/UpsellCard.figma.d.ts +0 -2
  53. package/dts/cards/__figma__/UpsellCard.figma.d.ts.map +0 -1
  54. package/dts/carousel/__figma__/Carousel.figma.d.ts +0 -2
  55. package/dts/carousel/__figma__/Carousel.figma.d.ts.map +0 -1
  56. package/dts/cells/__figma__/ContentCell.figma.d.ts +0 -2
  57. package/dts/cells/__figma__/ContentCell.figma.d.ts.map +0 -1
  58. package/dts/cells/__figma__/ListCell.figma.d.ts +0 -2
  59. package/dts/cells/__figma__/ListCell.figma.d.ts.map +0 -1
  60. package/dts/chips/__figma__/InputChip.figma.d.ts +0 -2
  61. package/dts/chips/__figma__/InputChip.figma.d.ts.map +0 -1
  62. package/dts/chips/__figma__/SelectChip.figma.d.ts +0 -2
  63. package/dts/chips/__figma__/SelectChip.figma.d.ts.map +0 -1
  64. package/dts/chips/__figma__/TabbedChips.figma.d.ts +0 -2
  65. package/dts/chips/__figma__/TabbedChips.figma.d.ts.map +0 -1
  66. package/dts/coachmark/__figma__/Coachmark.figma.d.ts +0 -2
  67. package/dts/coachmark/__figma__/Coachmark.figma.d.ts.map +0 -1
  68. package/dts/controls/__figma__/Checkbox.figma.d.ts +0 -2
  69. package/dts/controls/__figma__/Checkbox.figma.d.ts.map +0 -1
  70. package/dts/controls/__figma__/CheckboxCell.figma.d.ts +0 -2
  71. package/dts/controls/__figma__/CheckboxCell.figma.d.ts.map +0 -1
  72. package/dts/controls/__figma__/CheckboxGroup.figma.d.ts +0 -2
  73. package/dts/controls/__figma__/CheckboxGroup.figma.d.ts.map +0 -1
  74. package/dts/controls/__figma__/RadioCell.figma.d.ts +0 -2
  75. package/dts/controls/__figma__/RadioCell.figma.d.ts.map +0 -1
  76. package/dts/controls/__figma__/RadioGroup.figma.d.ts +0 -2
  77. package/dts/controls/__figma__/RadioGroup.figma.d.ts.map +0 -1
  78. package/dts/controls/__figma__/SearchInput.figma.d.ts +0 -2
  79. package/dts/controls/__figma__/SearchInput.figma.d.ts.map +0 -1
  80. package/dts/controls/__figma__/SelectOption.figma.d.ts +0 -2
  81. package/dts/controls/__figma__/SelectOption.figma.d.ts.map +0 -1
  82. package/dts/controls/__figma__/Switch.figma.d.ts +0 -2
  83. package/dts/controls/__figma__/Switch.figma.d.ts.map +0 -1
  84. package/dts/controls/__figma__/TextInput.figma.d.ts +0 -2
  85. package/dts/controls/__figma__/TextInput.figma.d.ts.map +0 -1
  86. package/dts/dates/__figma__/DatePicker.figma.d.ts +0 -2
  87. package/dts/dates/__figma__/DatePicker.figma.d.ts.map +0 -1
  88. package/dts/dots/__figma__/DotCount.figma.d.ts +0 -2
  89. package/dts/dots/__figma__/DotCount.figma.d.ts.map +0 -1
  90. package/dts/dots/__figma__/DotStatusColor.figma.d.ts +0 -2
  91. package/dts/dots/__figma__/DotStatusColor.figma.d.ts.map +0 -1
  92. package/dts/dots/__figma__/DotSymbol.figma.d.ts +0 -2
  93. package/dts/dots/__figma__/DotSymbol.figma.d.ts.map +0 -1
  94. package/dts/icons/__figma__/Icon.figma.d.ts +0 -2
  95. package/dts/icons/__figma__/Icon.figma.d.ts.map +0 -1
  96. package/dts/icons/__figma__/LogoMark.figma.d.ts +0 -2
  97. package/dts/icons/__figma__/LogoMark.figma.d.ts.map +0 -1
  98. package/dts/icons/__figma__/LogoWordmark.figma.d.ts +0 -2
  99. package/dts/icons/__figma__/LogoWordmark.figma.d.ts.map +0 -1
  100. package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts +0 -2
  101. package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts.map +0 -1
  102. package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts +0 -2
  103. package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts.map +0 -1
  104. package/dts/illustrations/__figma__/HeroSquare.figma.d.ts +0 -2
  105. package/dts/illustrations/__figma__/HeroSquare.figma.d.ts.map +0 -1
  106. package/dts/illustrations/__figma__/Pictogram.figma.d.ts +0 -2
  107. package/dts/illustrations/__figma__/Pictogram.figma.d.ts.map +0 -1
  108. package/dts/illustrations/__figma__/SpotIcon.figma.d.ts +0 -2
  109. package/dts/illustrations/__figma__/SpotIcon.figma.d.ts.map +0 -1
  110. package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts +0 -2
  111. package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts.map +0 -1
  112. package/dts/illustrations/__figma__/SpotSquare.figma.d.ts +0 -2
  113. package/dts/illustrations/__figma__/SpotSquare.figma.d.ts.map +0 -1
  114. package/dts/layout/__figma__/Divider.figma.d.ts +0 -2
  115. package/dts/layout/__figma__/Divider.figma.d.ts.map +0 -1
  116. package/dts/layout/__figma__/Fallback.figma.d.ts +0 -2
  117. package/dts/layout/__figma__/Fallback.figma.d.ts.map +0 -1
  118. package/dts/media/__figma__/Avatar.figma.d.ts +0 -2
  119. package/dts/media/__figma__/Avatar.figma.d.ts.map +0 -1
  120. package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts +0 -2
  121. package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts.map +0 -1
  122. package/dts/navigation/__figma__/BrowserBar.figma.d.ts +0 -2
  123. package/dts/navigation/__figma__/BrowserBar.figma.d.ts.map +0 -1
  124. package/dts/navigation/__figma__/TopNavBar.figma.d.ts +0 -2
  125. package/dts/navigation/__figma__/TopNavBar.figma.d.ts.map +0 -1
  126. package/dts/numpad/__figma__/Numpad.figma.d.ts +0 -2
  127. package/dts/numpad/__figma__/Numpad.figma.d.ts.map +0 -1
  128. package/dts/overlays/__figma__/Alert.figma.d.ts +0 -2
  129. package/dts/overlays/__figma__/Alert.figma.d.ts.map +0 -1
  130. package/dts/overlays/__figma__/Toast.figma.d.ts +0 -2
  131. package/dts/overlays/__figma__/Toast.figma.d.ts.map +0 -1
  132. package/dts/overlays/modal/__figma__/Modal.figma.d.ts +0 -2
  133. package/dts/overlays/modal/__figma__/Modal.figma.d.ts.map +0 -1
  134. package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts +0 -2
  135. package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts.map +0 -1
  136. package/dts/overlays/tray/__figma__/Tray.figma.d.ts +0 -2
  137. package/dts/overlays/tray/__figma__/Tray.figma.d.ts.map +0 -1
  138. package/dts/page/__figma__/PageFooter.figma.d.ts +0 -2
  139. package/dts/page/__figma__/PageFooter.figma.d.ts.map +0 -1
  140. package/dts/page/__figma__/PageHeader.figma.d.ts +0 -2
  141. package/dts/page/__figma__/PageHeader.figma.d.ts.map +0 -1
  142. package/dts/perf/component-config/Button.component-config.perf-test.d.ts +0 -2
  143. package/dts/perf/component-config/Button.component-config.perf-test.d.ts.map +0 -1
  144. package/dts/perf/component-config/ComponentConfigProvider.perf-test.d.ts +0 -2
  145. package/dts/perf/component-config/ComponentConfigProvider.perf-test.d.ts.map +0 -1
  146. package/dts/perf/component-config/ComponentConfigStickerSheet.perf-test.d.ts +0 -2
  147. package/dts/perf/component-config/ComponentConfigStickerSheet.perf-test.d.ts.map +0 -1
  148. package/dts/section-header/__figma__/SectionHeader.figma.d.ts +0 -2
  149. package/dts/section-header/__figma__/SectionHeader.figma.d.ts.map +0 -1
  150. package/dts/sticky-footer/__figma__/StickyFooter.figma.d.ts +0 -2
  151. package/dts/sticky-footer/__figma__/StickyFooter.figma.d.ts.map +0 -1
  152. package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts +0 -2
  153. package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts.map +0 -1
  154. package/dts/tabs/__figma__/TabNavigation.figma.d.ts +0 -2
  155. package/dts/tabs/__figma__/TabNavigation.figma.d.ts.map +0 -1
  156. package/dts/tag/__figma__/Tag.figma.d.ts +0 -2
  157. package/dts/tag/__figma__/Tag.figma.d.ts.map +0 -1
  158. package/dts/typography/__figma__/Link.figma.d.ts +0 -2
  159. package/dts/typography/__figma__/Link.figma.d.ts.map +0 -1
  160. package/dts/visualizations/__figma__/ProgressBar.figma.d.ts +0 -2
  161. package/dts/visualizations/__figma__/ProgressBar.figma.d.ts.map +0 -1
  162. package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts +0 -2
  163. package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts.map +0 -1
  164. package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts +0 -2
  165. package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts.map +0 -1
  166. package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +0 -2
  167. package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +0 -1
  168. package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +0 -2
  169. package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +0 -1
  170. package/esm/accordion/__figma__/Accordion.figma.js +0 -42
  171. package/esm/alpha/__figma__/Select.figma.js +0 -63
  172. package/esm/alpha/data-card/__figma__/DataCard.figma.js +0 -29
  173. package/esm/buttons/__figma__/AvatarButton.figma.js +0 -25
  174. package/esm/buttons/__figma__/Button.figma.js +0 -65
  175. package/esm/buttons/__figma__/ButtonGroup.figma.js +0 -48
  176. package/esm/buttons/__figma__/IconButton.figma.js +0 -29
  177. package/esm/buttons/__figma__/SlideButton.figma.js +0 -27
  178. package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +0 -35
  179. package/esm/cards/MediaCard/__figma__/MediaCard.figma.js +0 -46
  180. package/esm/cards/MessagingCard/__figma__/MessagingCard.figma.js +0 -38
  181. package/esm/cards/__figma__/AnnouncementCard.figma.js +0 -19
  182. package/esm/cards/__figma__/ContainedAssetCard.figma.js +0 -39
  183. package/esm/cards/__figma__/FloatingAssetCard.figma.js +0 -30
  184. package/esm/cards/__figma__/NudgeCard.figma.js +0 -54
  185. package/esm/cards/__figma__/UpsellCard.figma.js +0 -48
  186. package/esm/carousel/__figma__/Carousel.figma.js +0 -36
  187. package/esm/cells/__figma__/ContentCell.figma.js +0 -35
  188. package/esm/cells/__figma__/ListCell.figma.js +0 -74
  189. package/esm/chips/__figma__/InputChip.figma.js +0 -27
  190. package/esm/chips/__figma__/SelectChip.figma.js +0 -38
  191. package/esm/chips/__figma__/TabbedChips.figma.js +0 -55
  192. package/esm/coachmark/__figma__/Coachmark.figma.js +0 -41
  193. package/esm/controls/__figma__/Checkbox.figma.js +0 -27
  194. package/esm/controls/__figma__/CheckboxCell.figma.js +0 -38
  195. package/esm/controls/__figma__/CheckboxGroup.figma.js +0 -23
  196. package/esm/controls/__figma__/RadioCell.figma.js +0 -78
  197. package/esm/controls/__figma__/RadioGroup.figma.js +0 -47
  198. package/esm/controls/__figma__/SearchInput.figma.js +0 -35
  199. package/esm/controls/__figma__/SelectOption.figma.js +0 -35
  200. package/esm/controls/__figma__/Switch.figma.js +0 -16
  201. package/esm/controls/__figma__/TextInput.figma.js +0 -125
  202. package/esm/dates/__figma__/DatePicker.figma.js +0 -43
  203. package/esm/dots/__figma__/DotCount.figma.js +0 -16
  204. package/esm/dots/__figma__/DotStatusColor.figma.js +0 -23
  205. package/esm/dots/__figma__/DotSymbol.figma.js +0 -45
  206. package/esm/icons/__figma__/Icon.figma.js +0 -3906
  207. package/esm/icons/__figma__/LogoMark.figma.js +0 -20
  208. package/esm/icons/__figma__/LogoWordmark.figma.js +0 -32
  209. package/esm/icons/__figma__/SubBrandLogoMark.figma.js +0 -47
  210. package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +0 -48
  211. package/esm/illustrations/__figma__/HeroSquare.figma.js +0 -2104
  212. package/esm/illustrations/__figma__/Pictogram.figma.js +0 -1774
  213. package/esm/illustrations/__figma__/SpotIcon.figma.js +0 -340
  214. package/esm/illustrations/__figma__/SpotRectangle.figma.js +0 -1102
  215. package/esm/illustrations/__figma__/SpotSquare.figma.js +0 -1192
  216. package/esm/jest.d.js +0 -12
  217. package/esm/layout/__figma__/Divider.figma.js +0 -27
  218. package/esm/layout/__figma__/Fallback.figma.js +0 -21
  219. package/esm/media/__figma__/Avatar.figma.js +0 -56
  220. package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +0 -31
  221. package/esm/navigation/__figma__/BrowserBar.figma.js +0 -58
  222. package/esm/navigation/__figma__/TopNavBar.figma.js +0 -319
  223. package/esm/numpad/__figma__/Numpad.figma.js +0 -63
  224. package/esm/overlays/__figma__/Alert.figma.js +0 -32
  225. package/esm/overlays/__figma__/Toast.figma.js +0 -51
  226. package/esm/overlays/modal/__figma__/Modal.figma.js +0 -74
  227. package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +0 -92
  228. package/esm/overlays/tray/__figma__/Tray.figma.js +0 -223
  229. package/esm/page/__figma__/PageFooter.figma.js +0 -61
  230. package/esm/page/__figma__/PageHeader.figma.js +0 -58
  231. package/esm/perf/component-config/Button.component-config.perf-test.js +0 -35
  232. package/esm/perf/component-config/ComponentConfigProvider.perf-test.js +0 -147
  233. package/esm/perf/component-config/ComponentConfigStickerSheet.perf-test.js +0 -326
  234. package/esm/perf/component-config/README.md +0 -8
  235. package/esm/section-header/__figma__/SectionHeader.figma.js +0 -50
  236. package/esm/sticky-footer/__figma__/StickyFooter.figma.js +0 -25
  237. package/esm/tabs/__figma__/SegmentedTabs.figma.js +0 -79
  238. package/esm/tabs/__figma__/TabNavigation.figma.js +0 -83
  239. package/esm/tag/__figma__/Tag.figma.js +0 -86
  240. package/esm/typography/__figma__/Link.figma.js +0 -28
  241. package/esm/visualizations/__figma__/ProgressBar.figma.js +0 -99
  242. package/esm/visualizations/__figma__/ProgressCircle.figma.js +0 -26
  243. package/esm/visualizations/sparkline/__figma__/Sparkline.figma.js +0 -22
  244. package/esm/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -85
  245. package/esm/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -104
@@ -1,78 +0,0 @@
1
- function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
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
- import { figma } from '@figma/code-connect';
4
- import { RadioCell } from '../RadioCell';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
7
- imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
8
- props: {
9
- title: figma.string('title text'),
10
- description: figma.boolean('description', {
11
- true: figma.string('description text'),
12
- false: undefined
13
- })
14
- },
15
- example: _ref => {
16
- let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
17
- return /*#__PURE__*/_jsx(RadioCell, _extends({}, props));
18
- }
19
- });
20
- figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
21
- imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
22
- variant: {
23
- selected: true
24
- },
25
- props: {
26
- title: figma.string('title text'),
27
- description: figma.boolean('description', {
28
- true: figma.string('description text'),
29
- false: undefined
30
- })
31
- },
32
- example: _ref2 => {
33
- let props = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));
34
- return /*#__PURE__*/_jsx(RadioCell, _extends({
35
- checked: true
36
- }, props));
37
- }
38
- });
39
- figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
40
- imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
41
- variant: {
42
- state: 'disabled'
43
- },
44
- props: {
45
- title: figma.string('title text'),
46
- description: figma.boolean('description', {
47
- true: figma.string('description text'),
48
- false: undefined
49
- })
50
- },
51
- example: _ref3 => {
52
- let props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
53
- return /*#__PURE__*/_jsx(RadioCell, _extends({
54
- disabled: true
55
- }, props));
56
- }
57
- });
58
- figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
59
- imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
60
- variant: {
61
- state: 'disabled',
62
- selected: true
63
- },
64
- props: {
65
- title: figma.string('title text'),
66
- description: figma.boolean('description', {
67
- true: figma.string('description text'),
68
- false: undefined
69
- })
70
- },
71
- example: _ref4 => {
72
- let props = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));
73
- return /*#__PURE__*/_jsx(RadioCell, _extends({
74
- checked: true,
75
- disabled: true
76
- }, props));
77
- }
78
- });
@@ -1,47 +0,0 @@
1
- import { useState } from 'react';
2
- import { figma } from '@figma/code-connect';
3
- import { ControlGroup } from '../ControlGroup';
4
- import { Radio } from '../Radio';
5
- import { RadioGroup } from '../RadioGroup';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- figma.connect(RadioGroup, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=355-14414&m=dev', {
8
- imports: ["import { ControlGroup } from '@coinbase/cds-mobile/controls/ControlGroup'", "import { Radio } from '@coinbase/cds-mobile/controls/Radio'"],
9
- props: {
10
- options: figma.enum('quantity', {
11
- '1': [{
12
- value: '1',
13
- children: 'Label'
14
- }],
15
- '2': [{
16
- value: '2',
17
- children: 'Label'
18
- }],
19
- '3': [{
20
- value: '3',
21
- children: 'Label'
22
- }],
23
- '4': [{
24
- value: '4',
25
- children: 'Label'
26
- }],
27
- '5': [{
28
- value: '5',
29
- children: 'Label'
30
- }]
31
- })
32
- },
33
- example: function Example(_ref) {
34
- let {
35
- options
36
- } = _ref;
37
- const [value, setValue] = useState('1');
38
- const onChange = value => value && setValue(value);
39
- return /*#__PURE__*/_jsx(ControlGroup, {
40
- ControlComponent: Radio,
41
- onChange: onChange,
42
- options: options,
43
- role: "radiogroup",
44
- value: value
45
- });
46
- }
47
- });
@@ -1,35 +0,0 @@
1
- const _excluded = ["text"];
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; }
4
- import React from 'react';
5
- import { figma } from '@figma/code-connect';
6
- import { SearchInput } from '../SearchInput';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- figma.connect(SearchInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252-12575&m=dev', {
9
- imports: ["import { SearchInput } from '@coinbase/cds-mobile/controls/SearchInput'"],
10
- props: {
11
- compact: figma.boolean('compact'),
12
- disabled: figma.boolean('disabled'),
13
- text: figma.nestedProps('string.search input', {
14
- placeholder: figma.enum('Ready-made', {
15
- Custom: figma.string('string'),
16
- 'Retail search': figma.textContent('search-input-label'),
17
- 'Retail send': figma.textContent('search-input-label'),
18
- 'Web3 search': figma.textContent('search-input-label'),
19
- 'Wallet search': figma.textContent('search-input-label'),
20
- 'Wallet send': figma.textContent('search-input-label')
21
- })
22
- })
23
- },
24
- example: _ref => {
25
- let {
26
- text
27
- } = _ref,
28
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
29
- return /*#__PURE__*/_jsx(SearchInput, _extends({
30
- onChangeText: () => {},
31
- placeholder: text.placeholder,
32
- value: ""
33
- }, props));
34
- }
35
- });
@@ -1,35 +0,0 @@
1
- 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); }
2
- import React from 'react';
3
- import { figma } from '@figma/code-connect';
4
- import { SelectOption } from '../SelectOption';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- figma.connect(SelectOption, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=244-11050&m=dev', {
7
- imports: ["import { SelectOption } from '@coinbase/cds-mobile/controls/SelectOption'"],
8
- props: {
9
- disabled: figma.boolean('disabled'),
10
- compact: figma.boolean('compact'),
11
- media: figma.boolean('show media', {
12
- true: figma.instance('media'),
13
- false: undefined
14
- }),
15
- title: figma.boolean('show title', {
16
- true: figma.string('title string'),
17
- false: undefined
18
- }),
19
- description: figma.boolean('show description', {
20
- true: figma.string('description string'),
21
- false: undefined
22
- }),
23
- detail: figma.boolean('show detail', {
24
- true: 'Detail',
25
- false: undefined
26
- }),
27
- accessory: figma.boolean('show accessory', {
28
- true: figma.instance('accessory'),
29
- false: undefined
30
- })
31
- },
32
- example: props => /*#__PURE__*/_jsx(SelectOption, _extends({
33
- value: ""
34
- }, props))
35
- });
@@ -1,16 +0,0 @@
1
- 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); }
2
- import { figma } from '@figma/code-connect';
3
- import { Switch } from '../Switch';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- figma.connect(Switch, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A9924', {
6
- imports: ["import { Switch } from '@coinbase/cds-mobile/controls/Switch'"],
7
- props: {
8
- children: figma.boolean('show label', {
9
- true: figma.string('↳ label'),
10
- false: undefined
11
- }),
12
- checked: figma.boolean('checked'),
13
- disabled: figma.boolean('disabled')
14
- },
15
- example: props => /*#__PURE__*/_jsx(Switch, _extends({}, props))
16
- });
@@ -1,125 +0,0 @@
1
- const _excluded = ["placeholder"],
2
- _excluded2 = ["placeholder", "endIcon"];
3
- 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); }
4
- 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; }
5
- import { figma } from '@figma/code-connect';
6
- import { HStack } from '../../layout';
7
- import { Link } from '../../typography';
8
- import { TextInput } from '../TextInput';
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
11
- imports: ["import { TextInput } from '@coinbase/cds-mobile/controls/TextInput'"],
12
- props: {
13
- align: figma.boolean('right align text', {
14
- true: 'end',
15
- false: undefined
16
- }),
17
- disabled: figma.boolean('disabled'),
18
- compact: figma.boolean('compact'),
19
- label: figma.boolean('show label', {
20
- true: figma.string('↳ label string'),
21
- false: undefined
22
- }),
23
- labelVariant: figma.boolean('label inside', {
24
- true: 'inside',
25
- false: 'outside'
26
- }),
27
- start: figma.boolean('show start', {
28
- true: figma.instance('↳ start icon'),
29
- false: undefined
30
- }),
31
- end: figma.boolean('show end', {
32
- true: figma.boolean('↳ show end icon', {
33
- true: figma.instance('↳ end icon'),
34
- false: undefined
35
- }),
36
- false: undefined
37
- }),
38
- helperText: figma.boolean('show helper text', {
39
- true: 'Assistive message',
40
- false: undefined
41
- }),
42
- placeholder: figma.nestedProps('string.text input', {
43
- text: figma.enum('Ready-made', {
44
- Custom: figma.string('string'),
45
- Email: figma.textContent('text-input-label'),
46
- Password: figma.textContent('text-input-label'),
47
- 'Legal name': figma.textContent('text-input-label')
48
- })
49
- }),
50
- variant: figma.enum('state', {
51
- positive: 'positive',
52
- negative: 'negative'
53
- })
54
- },
55
- example: _ref => {
56
- let {
57
- placeholder
58
- } = _ref,
59
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
60
- return /*#__PURE__*/_jsx(TextInput, _extends({
61
- placeholder: placeholder.text
62
- }, props));
63
- }
64
- });
65
- figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
66
- imports: ["import { TextInput } from '@coinbase/cds-mobile/controls/TextInput'"],
67
- variant: {
68
- 'show end': true,
69
- '↳ show suffix': true
70
- },
71
- props: {
72
- align: figma.boolean('right align text', {
73
- true: 'end',
74
- false: undefined
75
- }),
76
- disabled: figma.boolean('disabled'),
77
- compact: figma.boolean('compact'),
78
- label: figma.boolean('show label', {
79
- true: figma.string('↳ label string'),
80
- false: undefined
81
- }),
82
- labelVariant: figma.enum('label inside', {
83
- inside: 'inside',
84
- outside: 'outside'
85
- }),
86
- start: figma.boolean('show start', {
87
- true: figma.instance('↳ start icon'),
88
- false: undefined
89
- }),
90
- endIcon: figma.instance('↳ end icon'),
91
- helperText: figma.boolean('show helper text', {
92
- true: 'Assistive message',
93
- false: undefined
94
- }),
95
- placeholder: figma.nestedProps('string.text input', {
96
- text: figma.enum('Ready-made', {
97
- Custom: figma.string('string'),
98
- Email: figma.textContent('text-input-label'),
99
- Password: figma.textContent('text-input-label'),
100
- 'Legal name': figma.textContent('text-input-label')
101
- })
102
- }),
103
- variant: figma.enum('state', {
104
- positive: 'positive',
105
- negative: 'negative'
106
- })
107
- },
108
- example: _ref2 => {
109
- let {
110
- placeholder,
111
- endIcon
112
- } = _ref2,
113
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
114
- return /*#__PURE__*/_jsx(TextInput, _extends({
115
- end: /*#__PURE__*/_jsxs(HStack, {
116
- children: [/*#__PURE__*/_jsx(Link, {
117
- color: "fgPrimary",
118
- onPress: () => {},
119
- children: "copy"
120
- }), endIcon]
121
- }),
122
- placeholder: placeholder.text
123
- }, props));
124
- }
125
- });
@@ -1,43 +0,0 @@
1
- const _excluded = ["helperText"];
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; }
4
- /* eslint-disable react-hooks/rules-of-hooks */
5
-
6
- import React, { useState } from 'react';
7
- import { figma } from '@figma/code-connect';
8
- import { DatePicker } from '../DatePicker';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- figma.connect(DatePicker, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14743-53206&m=dev', {
11
- imports: ["import { DatePicker } from '@coinbase/cds-mobile/dates/DatePicker'"],
12
- props: {
13
- disabled: figma.boolean('disabled'),
14
- compact: figma.boolean('compact'),
15
- label: figma.string('label'),
16
- helperText: figma.nestedProps('.assistive text', {
17
- string: figma.textContent('Assistive text')
18
- })
19
- },
20
- example: _ref => {
21
- let {
22
- helperText
23
- } = _ref,
24
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
25
- const [date, setDate] = useState(null);
26
- const [error, setError] = useState(null);
27
- // @ts-expect-error not typed
28
- const handleChangeDate = date => {
29
- setDate(date);
30
- };
31
- // @ts-expect-error not typed
32
- const handleErrorDate = error => {
33
- setError(error);
34
- };
35
- return /*#__PURE__*/_jsx(DatePicker, _extends({
36
- date: date,
37
- error: error,
38
- helperText: helperText.string,
39
- onChangeDate: handleChangeDate,
40
- onErrorDate: handleErrorDate
41
- }, props));
42
- }
43
- });
@@ -1,16 +0,0 @@
1
- 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); }
2
- import React from 'react';
3
- import { figma } from '@figma/code-connect';
4
- import { DotCount } from '../DotCount';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- figma.connect(DotCount, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A11976', {
7
- imports: ["import { DotCount } from '@coinbase/cds-mobile/dots/DotCount'"],
8
- props: {
9
- count: figma.enum('type', {
10
- 'single digit': 1,
11
- '2 digits': 12,
12
- '3+ digits': 123
13
- })
14
- },
15
- example: props => /*#__PURE__*/_jsx(DotCount, _extends({}, props))
16
- });
@@ -1,23 +0,0 @@
1
- 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); }
2
- import React from 'react';
3
- import { figma } from '@figma/code-connect';
4
- import { DotStatusColor } from '../DotStatusColor';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- figma.connect(DotStatusColor, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A11983', {
7
- imports: ["import { DotStatusColor } from '@coinbase/cds-mobile/dots/DotStatusColor'"],
8
- props: {
9
- variant: figma.enum('variant', {
10
- positive: 'positive',
11
- negative: 'negative',
12
- primary: 'primary',
13
- foregroundMuted: 'foregroundMuted'
14
- }),
15
- size: figma.enum('size', {
16
- l: 'l',
17
- m: 'm',
18
- s: 's',
19
- xs: 'xs'
20
- })
21
- },
22
- example: props => /*#__PURE__*/_jsx(DotStatusColor, _extends({}, props))
23
- });
@@ -1,45 +0,0 @@
1
- const _excluded = ["children"];
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; }
4
- import React from 'react';
5
- import { figma } from '@figma/code-connect';
6
- import { DotSymbol } from '../DotSymbol';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- figma.connect(DotSymbol, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A12033', {
9
- imports: ["import { DotSymbol } from'@coinbase/cds-mobile/dots/DotSymbol'"],
10
- props: {
11
- children: figma.enum('symbol size', {
12
- l: figma.instance('48 media'),
13
- m: figma.instance('32 media'),
14
- s: figma.instance('32 media'),
15
- xs: figma.instance('24 media')
16
- }),
17
- symbol: figma.enum('symbol size', {
18
- l: figma.instance('l dot'),
19
- m: figma.instance('m dot'),
20
- s: figma.instance('s dot'),
21
- xs: figma.instance('xs dot')
22
- }),
23
- pin: figma.enum('pin', {
24
- 'bottom-end': 'bottom-end',
25
- 'bottom-start': 'bottom-start',
26
- 'top-start': 'top-start',
27
- 'top-end': 'top-end'
28
- }),
29
- size: figma.enum('symbol size', {
30
- l: 'l',
31
- m: 'm',
32
- s: 's',
33
- xs: 'xs'
34
- })
35
- },
36
- example: _ref => {
37
- let {
38
- children
39
- } = _ref,
40
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
41
- return /*#__PURE__*/_jsx(DotSymbol, _extends({}, props, {
42
- children: children
43
- }));
44
- }
45
- });