@coinbase/cds-web 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.
- package/CHANGELOG.md +11 -0
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/alpha/select/Select.d.ts.map +1 -1
- package/dts/alpha/select/types.d.ts +16 -2
- package/dts/alpha/select/types.d.ts.map +1 -1
- package/esm/alpha/select/DefaultSelectControl.js +30 -12
- package/esm/alpha/select/Select.js +17 -3
- package/package.json +3 -3
- package/dts/accordion/__figma__/Accordion.figma.d.ts +0 -2
- package/dts/accordion/__figma__/Accordion.figma.d.ts.map +0 -1
- package/dts/alpha/__figma__/Select.figma.d.ts +0 -2
- package/dts/alpha/__figma__/Select.figma.d.ts.map +0 -1
- package/dts/alpha/data-card/__figma__/DataCard.figma.d.ts +0 -2
- package/dts/alpha/data-card/__figma__/DataCard.figma.d.ts.map +0 -1
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts +0 -2
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts.map +0 -1
- package/dts/buttons/__figma__/Button.figma.d.ts +0 -2
- package/dts/buttons/__figma__/Button.figma.d.ts.map +0 -1
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts +0 -2
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts.map +0 -1
- package/dts/buttons/__figma__/IconButton.figma.d.ts +0 -2
- package/dts/buttons/__figma__/IconButton.figma.d.ts.map +0 -1
- package/dts/buttons/__figma__/TileButton.figma.d.ts +0 -2
- package/dts/buttons/__figma__/TileButton.figma.d.ts.map +0 -1
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts +0 -2
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts.map +0 -1
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts +0 -2
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts.map +0 -1
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts +0 -2
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts.map +0 -1
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts +0 -2
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts.map +0 -1
- package/dts/cards/MediaCard/__figma__/MediaCard.figma.d.ts +0 -2
- package/dts/cards/MediaCard/__figma__/MediaCard.figma.d.ts.map +0 -1
- package/dts/cards/MessagingCard/__figma__/MessagingCard.figma.d.ts +0 -2
- package/dts/cards/MessagingCard/__figma__/MessagingCard.figma.d.ts.map +0 -1
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts +0 -2
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts.map +0 -1
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts +0 -2
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts.map +0 -1
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts +0 -2
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts.map +0 -1
- package/dts/cards/__figma__/NudgeCard.figma.d.ts +0 -2
- package/dts/cards/__figma__/NudgeCard.figma.d.ts.map +0 -1
- package/dts/cards/__figma__/UpsellCard.figma.d.ts +0 -2
- package/dts/cards/__figma__/UpsellCard.figma.d.ts.map +0 -1
- package/dts/carousel/__figma__/Carousel.figma.d.ts +0 -2
- package/dts/carousel/__figma__/Carousel.figma.d.ts.map +0 -1
- package/dts/cells/__figma__/ContentCell.figma.d.ts +0 -2
- package/dts/cells/__figma__/ContentCell.figma.d.ts.map +0 -1
- package/dts/cells/__figma__/ListCell.figma.d.ts +0 -2
- package/dts/cells/__figma__/ListCell.figma.d.ts.map +0 -1
- package/dts/chips/__figma__/InputChip.figma.d.ts +0 -2
- package/dts/chips/__figma__/InputChip.figma.d.ts.map +0 -1
- package/dts/chips/__figma__/SelectChip.figma.d.ts +0 -2
- package/dts/chips/__figma__/SelectChip.figma.d.ts.map +0 -1
- package/dts/chips/__figma__/TabbedChips.figma.d.ts +0 -2
- package/dts/chips/__figma__/TabbedChips.figma.d.ts.map +0 -1
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts +0 -2
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/Checkbox.figma.d.ts +0 -2
- package/dts/controls/__figma__/Checkbox.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts +0 -2
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts +0 -2
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts +0 -2
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/RadioCell.figma.d.ts +0 -2
- package/dts/controls/__figma__/RadioCell.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/RadioGroup.figma.d.ts +0 -2
- package/dts/controls/__figma__/RadioGroup.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/SearchInput.figma.d.ts +0 -2
- package/dts/controls/__figma__/SearchInput.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/SelectOption.figma.d.ts +0 -2
- package/dts/controls/__figma__/SelectOption.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/Switch.figma.d.ts +0 -2
- package/dts/controls/__figma__/Switch.figma.d.ts.map +0 -1
- package/dts/controls/__figma__/TextInput.figma.d.ts +0 -2
- package/dts/controls/__figma__/TextInput.figma.d.ts.map +0 -1
- package/dts/dates/__figma__/DatePicker.figma.d.ts +0 -2
- package/dts/dates/__figma__/DatePicker.figma.d.ts.map +0 -1
- package/dts/dots/__figma__/DotCount.figma.d.ts +0 -2
- package/dts/dots/__figma__/DotCount.figma.d.ts.map +0 -1
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts +0 -2
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts.map +0 -1
- package/dts/dots/__figma__/DotSymbol.figma.d.ts +0 -2
- package/dts/dots/__figma__/DotSymbol.figma.d.ts.map +0 -1
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts +0 -2
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts.map +0 -1
- package/dts/icons/__figma__/Icon.figma.d.ts +0 -2
- package/dts/icons/__figma__/Icon.figma.d.ts.map +0 -1
- package/dts/icons/__figma__/LogoMark.figma.d.ts +0 -2
- package/dts/icons/__figma__/LogoMark.figma.d.ts.map +0 -1
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts +0 -2
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts.map +0 -1
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts +0 -2
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts.map +0 -1
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts +0 -2
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts.map +0 -1
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts +0 -2
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts.map +0 -1
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts +0 -2
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts.map +0 -1
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts +0 -2
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts.map +0 -1
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts +0 -2
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts.map +0 -1
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts +0 -2
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts.map +0 -1
- package/dts/layout/__figma__/Divider.figma.d.ts +0 -2
- package/dts/layout/__figma__/Divider.figma.d.ts.map +0 -1
- package/dts/layout/__figma__/Fallback.figma.d.ts +0 -2
- package/dts/layout/__figma__/Fallback.figma.d.ts.map +0 -1
- package/dts/media/__figma__/Avatar.figma.d.ts +0 -2
- package/dts/media/__figma__/Avatar.figma.d.ts.map +0 -1
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts +0 -2
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/NavLink.figma.d.ts +0 -2
- package/dts/navigation/__figma__/NavLink.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts +0 -2
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts +0 -2
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/Sidebar.figma.d.ts +0 -2
- package/dts/navigation/__figma__/Sidebar.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts +0 -2
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts.map +0 -1
- package/dts/overlays/__figma__/Alert.figma.d.ts +0 -2
- package/dts/overlays/__figma__/Alert.figma.d.ts.map +0 -1
- package/dts/overlays/__figma__/Toast.figma.d.ts +0 -2
- package/dts/overlays/__figma__/Toast.figma.d.ts.map +0 -1
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts +0 -2
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts.map +0 -1
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts +0 -2
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts.map +0 -1
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts +0 -2
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts.map +0 -1
- package/dts/overlays/tray/__figma__/Tray.figma.d.ts +0 -2
- package/dts/overlays/tray/__figma__/Tray.figma.d.ts.map +0 -1
- package/dts/page/__figma__/PageFooter.figma.d.ts +0 -2
- package/dts/page/__figma__/PageFooter.figma.d.ts.map +0 -1
- package/dts/page/__figma__/PageHeader.figma.d.ts +0 -2
- package/dts/page/__figma__/PageHeader.figma.d.ts.map +0 -1
- package/dts/pagination/__figma__/Pagination.figma.d.ts +0 -2
- package/dts/pagination/__figma__/Pagination.figma.d.ts.map +0 -1
- package/dts/perf/component-config/Button.component-config.perf-test.d.ts +0 -2
- package/dts/perf/component-config/Button.component-config.perf-test.d.ts.map +0 -1
- package/dts/perf/component-config/ComponentConfigProvider.perf-test.d.ts +0 -2
- package/dts/perf/component-config/ComponentConfigProvider.perf-test.d.ts.map +0 -1
- package/dts/perf/component-config/ComponentConfigStickerSheet.perf-test.d.ts +0 -2
- package/dts/perf/component-config/ComponentConfigStickerSheet.perf-test.d.ts.map +0 -1
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts +0 -2
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts.map +0 -1
- package/dts/tables/__figma__/TableCell.figma.d.ts +0 -2
- package/dts/tables/__figma__/TableCell.figma.d.ts.map +0 -1
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts +0 -2
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts.map +0 -1
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts +0 -2
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts.map +0 -1
- package/dts/tag/__figma__/Tag.figma.d.ts +0 -2
- package/dts/tag/__figma__/Tag.figma.d.ts.map +0 -1
- package/dts/typography/__figma__/Link.figma.d.ts +0 -2
- package/dts/typography/__figma__/Link.figma.d.ts.map +0 -1
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts +0 -2
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts.map +0 -1
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts +0 -2
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts.map +0 -1
- package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts +0 -2
- package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts.map +0 -1
- package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +0 -2
- package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +0 -1
- package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +0 -2
- package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +0 -1
- package/esm/accordion/__figma__/Accordion.figma.js +0 -47
- package/esm/alpha/__figma__/Select.figma.js +0 -68
- package/esm/alpha/data-card/__figma__/DataCard.figma.js +0 -29
- package/esm/buttons/__figma__/AvatarButton.figma.js +0 -30
- package/esm/buttons/__figma__/Button.figma.js +0 -63
- package/esm/buttons/__figma__/ButtonGroup.figma.js +0 -54
- package/esm/buttons/__figma__/IconButton.figma.js +0 -35
- package/esm/buttons/__figma__/TileButton.figma.js +0 -29
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +0 -37
- package/esm/cards/ContentCard/__figma__/ContentCardBody.figma.js +0 -55
- package/esm/cards/ContentCard/__figma__/ContentCardFooter.figma.js +0 -150
- package/esm/cards/ContentCard/__figma__/ContentCardHeader.figma.js +0 -29
- package/esm/cards/MediaCard/__figma__/MediaCard.figma.js +0 -50
- package/esm/cards/MessagingCard/__figma__/MessagingCard.figma.js +0 -42
- package/esm/cards/__figma__/AnnouncementCard.figma.js +0 -20
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +0 -45
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +0 -36
- package/esm/cards/__figma__/NudgeCard.figma.js +0 -60
- package/esm/cards/__figma__/UpsellCard.figma.js +0 -59
- package/esm/carousel/__figma__/Carousel.figma.js +0 -36
- package/esm/cells/__figma__/ContentCell.figma.js +0 -40
- package/esm/cells/__figma__/ListCell.figma.js +0 -79
- package/esm/chips/__figma__/InputChip.figma.js +0 -31
- package/esm/chips/__figma__/SelectChip.figma.js +0 -46
- package/esm/chips/__figma__/TabbedChips.figma.js +0 -55
- package/esm/coachmark/__figma__/Coachmark.figma.js +0 -49
- package/esm/controls/__figma__/Checkbox.figma.js +0 -32
- package/esm/controls/__figma__/CheckboxCell.figma.js +0 -43
- package/esm/controls/__figma__/CheckboxGroup.figma.js +0 -27
- package/esm/controls/__figma__/NativeTextArea.figma.js +0 -30
- package/esm/controls/__figma__/RadioCell.figma.js +0 -83
- package/esm/controls/__figma__/RadioGroup.figma.js +0 -47
- package/esm/controls/__figma__/SearchInput.figma.js +0 -44
- package/esm/controls/__figma__/SelectOption.figma.js +0 -38
- package/esm/controls/__figma__/Switch.figma.js +0 -20
- package/esm/controls/__figma__/TextInput.figma.js +0 -130
- package/esm/dates/__figma__/DatePicker.figma.js +0 -46
- package/esm/dots/__figma__/DotCount.figma.js +0 -19
- package/esm/dots/__figma__/DotStatusColor.figma.js +0 -27
- package/esm/dots/__figma__/DotSymbol.figma.js +0 -49
- package/esm/dropdown/__figma__/Dropdown.figma.js +0 -20
- package/esm/icons/__figma__/Icon.figma.js +0 -3909
- package/esm/icons/__figma__/LogoMark.figma.js +0 -23
- package/esm/icons/__figma__/LogoWordmark.figma.js +0 -35
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +0 -51
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +0 -52
- package/esm/illustrations/__figma__/HeroSquare.figma.js +0 -2103
- package/esm/illustrations/__figma__/Pictogram.figma.js +0 -1773
- package/esm/illustrations/__figma__/SpotIcon.figma.js +0 -339
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +0 -1101
- package/esm/illustrations/__figma__/SpotSquare.figma.js +0 -1191
- package/esm/layout/__figma__/Divider.figma.js +0 -31
- package/esm/layout/__figma__/Fallback.figma.js +0 -25
- package/esm/media/__figma__/Avatar.figma.js +0 -61
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +0 -39
- package/esm/navigation/__figma__/NavLink.figma.js +0 -58
- package/esm/navigation/__figma__/NavigationBar.figma.js +0 -284
- package/esm/navigation/__figma__/NavigationTitle.figma.js +0 -18
- package/esm/navigation/__figma__/Sidebar.figma.js +0 -40
- package/esm/navigation/__figma__/SidebarItem.figma.js +0 -24
- package/esm/overlays/__figma__/Alert.figma.js +0 -37
- package/esm/overlays/__figma__/Toast.figma.js +0 -51
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.css +0 -1
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.js +0 -104
- package/esm/overlays/modal/__figma__/Modal.figma.js +0 -81
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +0 -93
- package/esm/overlays/tray/__figma__/Tray.figma.js +0 -191
- package/esm/page/__figma__/PageFooter.figma.js +0 -61
- package/esm/page/__figma__/PageHeader.figma.js +0 -57
- package/esm/pagination/__figma__/Pagination.figma.js +0 -22
- package/esm/perf/component-config/Button.component-config.perf-test.js +0 -43
- package/esm/perf/component-config/ComponentConfigProvider.perf-test.js +0 -134
- package/esm/perf/component-config/ComponentConfigStickerSheet.perf-test.js +0 -332
- package/esm/perf/component-config/README.md +0 -8
- package/esm/section-header/__figma__/SectionHeader.figma.js +0 -58
- package/esm/tables/__figma__/TableCell.figma.js +0 -116
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +0 -82
- package/esm/tabs/__figma__/TabNavigation.figma.js +0 -82
- package/esm/tag/__figma__/Tag.figma.js +0 -90
- package/esm/typography/__figma__/Link.figma.js +0 -32
- package/esm/visualizations/__figma__/ProgressBar.figma.js +0 -103
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +0 -29
- package/esm/visualizations/sparkline/__figma__/Sparkline.figma.js +0 -24
- package/esm/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -89
- package/esm/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -108
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { figma } from '@figma/code-connect';
|
|
8
|
-
import { Divider } from '../Divider';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
figma.connect(Divider, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=283-19869&m=dev', {
|
|
11
|
-
imports: ["import { Divider } from '@coinbase/cds-web/layout/Divider'"],
|
|
12
|
-
props: {
|
|
13
|
-
color: figma.enum('type', {
|
|
14
|
-
line: 'bgLine',
|
|
15
|
-
lineHeavy: 'bgLineHeavy'
|
|
16
|
-
})
|
|
17
|
-
},
|
|
18
|
-
example: props => /*#__PURE__*/_jsx(Divider, _objectSpread({}, props))
|
|
19
|
-
});
|
|
20
|
-
figma.connect(Divider, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=60-654&m=dev', {
|
|
21
|
-
imports: ["import { Divider } from '@coinbase/cds-web/layout/Divider'"],
|
|
22
|
-
props: {
|
|
23
|
-
color: figma.enum('type', {
|
|
24
|
-
line: 'bgLine',
|
|
25
|
-
lineHeavy: 'bgLineHeavy'
|
|
26
|
-
})
|
|
27
|
-
},
|
|
28
|
-
example: props => /*#__PURE__*/_jsx(Divider, _objectSpread({
|
|
29
|
-
direction: "vertical"
|
|
30
|
-
}, props))
|
|
31
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { figma } from '@figma/code-connect';
|
|
8
|
-
import { Fallback } from '../Fallback';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
figma.connect(Fallback, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=731-14951&m=dev', {
|
|
11
|
-
imports: ["import { Fallback } from '@coinbase/cds-web/layout/Fallback'"],
|
|
12
|
-
props: {
|
|
13
|
-
shape: figma.enum('shape', {
|
|
14
|
-
circle: 'circle',
|
|
15
|
-
rectangle: 'rectangle'
|
|
16
|
-
}),
|
|
17
|
-
width: figma.enum('shape', {
|
|
18
|
-
circle: 32,
|
|
19
|
-
rectangle: 150
|
|
20
|
-
})
|
|
21
|
-
},
|
|
22
|
-
example: props => /*#__PURE__*/_jsx(Fallback, _objectSpread({
|
|
23
|
-
height: 32
|
|
24
|
-
}, props))
|
|
25
|
-
});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const _excluded = ["variant", "shape"];
|
|
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
|
-
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
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
-
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; }
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { figma } from '@figma/code-connect';
|
|
11
|
-
import { Avatar } from '../Avatar';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
figma.connect(Avatar, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=60-643&m=dev', {
|
|
14
|
-
imports: ["import {Avatar} from '@coinbase/cds-web/media/Avatar'"],
|
|
15
|
-
props: {
|
|
16
|
-
shape: figma.enum('shape', {
|
|
17
|
-
circle: 'circle',
|
|
18
|
-
square: 'square',
|
|
19
|
-
polygon: 'polygon'
|
|
20
|
-
}),
|
|
21
|
-
size: figma.enum('size', {
|
|
22
|
-
'm (24)': 'm',
|
|
23
|
-
'l (32)': 'l',
|
|
24
|
-
'xl (40)': 'xl',
|
|
25
|
-
'xxl (48)': 'xxl',
|
|
26
|
-
'xxxl (56)': 'xxxl'
|
|
27
|
-
}),
|
|
28
|
-
colorScheme: figma.enum('color scheme', {
|
|
29
|
-
teal: 'teal',
|
|
30
|
-
purple: 'purple',
|
|
31
|
-
pink: 'pink',
|
|
32
|
-
green: 'green',
|
|
33
|
-
gray: 'gray',
|
|
34
|
-
NA: 'blue',
|
|
35
|
-
blue: 'blue'
|
|
36
|
-
}),
|
|
37
|
-
variant: figma.enum('variant', {
|
|
38
|
-
image: 'image',
|
|
39
|
-
initial: 'initial',
|
|
40
|
-
NFT: 'nft'
|
|
41
|
-
}),
|
|
42
|
-
name: figma.enum('variant', {
|
|
43
|
-
initial: figma.string('initial')
|
|
44
|
-
}),
|
|
45
|
-
src: figma.enum('variant', {
|
|
46
|
-
image: 'url'
|
|
47
|
-
})
|
|
48
|
-
},
|
|
49
|
-
// @ts-expect-error shape mapping issue
|
|
50
|
-
example: _ref => {
|
|
51
|
-
let {
|
|
52
|
-
variant,
|
|
53
|
-
shape
|
|
54
|
-
} = _ref,
|
|
55
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
-
return /*#__PURE__*/_jsx(Avatar, _objectSpread(_objectSpread({}, props), {}, {
|
|
57
|
-
alt: variant,
|
|
58
|
-
shape: shape
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const _excluded = ["pictogram"];
|
|
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
|
-
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
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
-
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; }
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { figma } from '@figma/code-connect';
|
|
11
|
-
import { MultiContentModule } from '../MultiContentModule';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
figma.connect(MultiContentModule, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14727%3A26365', {
|
|
14
|
-
imports: ["import { MultiContentModule } from '@coinbase/cds-web/multi-content-module/MultiContentModule'"],
|
|
15
|
-
props: {
|
|
16
|
-
title: figma.string('headline'),
|
|
17
|
-
description: figma.boolean('show description', {
|
|
18
|
-
true: figma.string('description'),
|
|
19
|
-
false: undefined
|
|
20
|
-
}),
|
|
21
|
-
pictogram: figma.instance('↳ illustration type').getProps(),
|
|
22
|
-
children: figma.instance('↳ content type'),
|
|
23
|
-
action: figma.enum('action type', {
|
|
24
|
-
button: figma.instance('action type'),
|
|
25
|
-
'button group': figma.instance('action type'),
|
|
26
|
-
'button + secondary content': figma.instance('action type'),
|
|
27
|
-
none: undefined
|
|
28
|
-
})
|
|
29
|
-
},
|
|
30
|
-
example: _ref => {
|
|
31
|
-
let {
|
|
32
|
-
pictogram
|
|
33
|
-
} = _ref,
|
|
34
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
return /*#__PURE__*/_jsx(MultiContentModule, _objectSpread({
|
|
36
|
-
pictogram: pictogram.name
|
|
37
|
-
}, props));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const _excluded = ["children"];
|
|
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
|
-
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
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
-
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; }
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { figma } from '@figma/code-connect';
|
|
11
|
-
import { HStack } from '../../layout';
|
|
12
|
-
import { NavLink } from '../NavLink';
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
figma.connect(NavLink, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=240-16872&m=dev', {
|
|
15
|
-
imports: ["import { NavLink } from '@coinbase/cds-web/navigation/NavLink'"],
|
|
16
|
-
props: {
|
|
17
|
-
children: figma.string('navLink string'),
|
|
18
|
-
active: figma.enum('state', {
|
|
19
|
-
active: true
|
|
20
|
-
})
|
|
21
|
-
// state: figma.enum("state", {
|
|
22
|
-
// active: "active",
|
|
23
|
-
// default: "default",
|
|
24
|
-
// focused: "focused",
|
|
25
|
-
// hover: "hover",
|
|
26
|
-
// pressed: "pressed",
|
|
27
|
-
// }),
|
|
28
|
-
},
|
|
29
|
-
example: _ref => {
|
|
30
|
-
let {
|
|
31
|
-
children
|
|
32
|
-
} = _ref,
|
|
33
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
-
return /*#__PURE__*/_jsx(NavLink, _objectSpread(_objectSpread({}, props), {}, {
|
|
35
|
-
children: children
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
figma.connect(NavLink, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=283-19790&m=dev', {
|
|
40
|
-
imports: ["import { NavLink } from '@coinbase/cds-web/navigation/NavLink'", "import { HStack } from '@coinbase/cds-web/layout/HStack'"],
|
|
41
|
-
example: () => /*#__PURE__*/_jsxs(HStack, {
|
|
42
|
-
gap: 4,
|
|
43
|
-
children: [/*#__PURE__*/_jsx(NavLink, {
|
|
44
|
-
active: true,
|
|
45
|
-
children: "NavLink"
|
|
46
|
-
}), /*#__PURE__*/_jsx(NavLink, {
|
|
47
|
-
children: "NavLink"
|
|
48
|
-
}), /*#__PURE__*/_jsx(NavLink, {
|
|
49
|
-
children: "NavLink"
|
|
50
|
-
}), /*#__PURE__*/_jsx(NavLink, {
|
|
51
|
-
children: "NavLink"
|
|
52
|
-
}), /*#__PURE__*/_jsx(NavLink, {
|
|
53
|
-
children: "NavLink"
|
|
54
|
-
}), /*#__PURE__*/_jsx(NavLink, {
|
|
55
|
-
children: "NavLink"
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
});
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { figma } from '@figma/code-connect';
|
|
3
|
-
import { Button, IconButton } from '../../buttons';
|
|
4
|
-
import { SearchInput } from '../../controls';
|
|
5
|
-
import { HStack } from '../../layout';
|
|
6
|
-
import { Avatar } from '../../media';
|
|
7
|
-
import { TabNavigation } from '../../tabs';
|
|
8
|
-
import { NavigationBar } from '../NavigationBar';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
figma.connect(NavigationBar, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10414-896', {
|
|
11
|
-
imports: ["import { NavigationBar } from '@coinbase/cds-web/navigation/NavigationBar'"],
|
|
12
|
-
props: {
|
|
13
|
-
// showsearch27799: figma.boolean('show search'),
|
|
14
|
-
// showhelpcenter176314: figma.boolean('show help center'),
|
|
15
|
-
// showsecondarycta24034: figma.boolean('show secondary cta'),
|
|
16
|
-
// shownotification24028: figma.boolean('show notification'),
|
|
17
|
-
// type156900: figma.instance('type'),
|
|
18
|
-
// showpagetitle80: figma.boolean('show page title'),
|
|
19
|
-
// showtabs24024: figma.boolean('show tabs'),
|
|
20
|
-
// showprimarycta24032: figma.boolean('show primary cta'),
|
|
21
|
-
// showbackarrow24022: figma.boolean('show back arrow'),
|
|
22
|
-
// device: figma.enum('device', {
|
|
23
|
-
// desktop: 'desktop',
|
|
24
|
-
// tablet: 'tablet',
|
|
25
|
-
// 'responsive mobile': 'responsive-mobile',
|
|
26
|
-
// }),
|
|
27
|
-
children: figma.boolean('show page title', {
|
|
28
|
-
true: figma.children('.NavigationTitle'),
|
|
29
|
-
false: undefined
|
|
30
|
-
}),
|
|
31
|
-
start: figma.boolean('show back arrow', {
|
|
32
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
33
|
-
compact: true,
|
|
34
|
-
name: "backArrow",
|
|
35
|
-
variant: "secondary"
|
|
36
|
-
}),
|
|
37
|
-
false: undefined
|
|
38
|
-
}),
|
|
39
|
-
search: figma.boolean('show search', {
|
|
40
|
-
true: /*#__PURE__*/_jsx(SearchInput, {
|
|
41
|
-
compact: true,
|
|
42
|
-
onChangeText: () => {},
|
|
43
|
-
placeholder: "Search",
|
|
44
|
-
value: ""
|
|
45
|
-
}),
|
|
46
|
-
false: undefined
|
|
47
|
-
}),
|
|
48
|
-
primaryButton: figma.boolean('show primary cta', {
|
|
49
|
-
true: /*#__PURE__*/_jsx(Button, {
|
|
50
|
-
compact: true,
|
|
51
|
-
children: "Button"
|
|
52
|
-
}),
|
|
53
|
-
false: undefined
|
|
54
|
-
}),
|
|
55
|
-
secondaryButton: figma.boolean('show secondary cta', {
|
|
56
|
-
true: /*#__PURE__*/_jsx(Button, {
|
|
57
|
-
compact: true,
|
|
58
|
-
variant: "secondary",
|
|
59
|
-
children: "Button"
|
|
60
|
-
}),
|
|
61
|
-
false: undefined
|
|
62
|
-
}),
|
|
63
|
-
helpButton: figma.boolean('show help center', {
|
|
64
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
65
|
-
compact: true,
|
|
66
|
-
name: "unknown",
|
|
67
|
-
variant: "secondary"
|
|
68
|
-
}),
|
|
69
|
-
false: undefined
|
|
70
|
-
}),
|
|
71
|
-
notificationButton: figma.boolean('show notification', {
|
|
72
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
73
|
-
compact: true,
|
|
74
|
-
name: "bell",
|
|
75
|
-
variant: "secondary"
|
|
76
|
-
}),
|
|
77
|
-
false: undefined
|
|
78
|
-
}),
|
|
79
|
-
tabs: figma.boolean('show tabs', {
|
|
80
|
-
true: /*#__PURE__*/_jsx(TabNavigation, {
|
|
81
|
-
onChange: () => {},
|
|
82
|
-
tabs: [{
|
|
83
|
-
id: 'first_primary_tab',
|
|
84
|
-
label: 'Primary tab'
|
|
85
|
-
}, {
|
|
86
|
-
id: 'second_primary_tab',
|
|
87
|
-
label: 'Primary tab'
|
|
88
|
-
}, {
|
|
89
|
-
id: 'third_primary_tab',
|
|
90
|
-
label: 'Primary tab'
|
|
91
|
-
}],
|
|
92
|
-
value: "first_primary_tab"
|
|
93
|
-
}),
|
|
94
|
-
false: undefined
|
|
95
|
-
})
|
|
96
|
-
},
|
|
97
|
-
example: _ref => {
|
|
98
|
-
let {
|
|
99
|
-
start,
|
|
100
|
-
search,
|
|
101
|
-
primaryButton,
|
|
102
|
-
secondaryButton,
|
|
103
|
-
helpButton,
|
|
104
|
-
notificationButton,
|
|
105
|
-
tabs,
|
|
106
|
-
children
|
|
107
|
-
} = _ref;
|
|
108
|
-
return /*#__PURE__*/_jsx(NavigationBar, {
|
|
109
|
-
bottom: tabs,
|
|
110
|
-
end: /*#__PURE__*/_jsxs(HStack, {
|
|
111
|
-
gap: 2,
|
|
112
|
-
children: [search, /*#__PURE__*/_jsxs(HStack, {
|
|
113
|
-
gap: 1,
|
|
114
|
-
children: [primaryButton, secondaryButton]
|
|
115
|
-
}), /*#__PURE__*/_jsxs(HStack, {
|
|
116
|
-
gap: 1,
|
|
117
|
-
children: [helpButton, notificationButton, /*#__PURE__*/_jsx(IconButton, {
|
|
118
|
-
compact: true,
|
|
119
|
-
name: "appSwitcher",
|
|
120
|
-
variant: "secondary"
|
|
121
|
-
}), /*#__PURE__*/_jsx(Avatar, {
|
|
122
|
-
alt: "initial",
|
|
123
|
-
colorScheme: "blue",
|
|
124
|
-
name: "S",
|
|
125
|
-
shape: "circle",
|
|
126
|
-
size: "xl"
|
|
127
|
-
})]
|
|
128
|
-
})]
|
|
129
|
-
}),
|
|
130
|
-
start: start,
|
|
131
|
-
children: /*#__PURE__*/_jsx(HStack, {
|
|
132
|
-
alignItems: "center",
|
|
133
|
-
flexGrow: 1,
|
|
134
|
-
gap: 1,
|
|
135
|
-
children: children
|
|
136
|
-
})
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
figma.connect(NavigationBar, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10414-896', {
|
|
141
|
-
imports: ["import { NavigationBar } from '@coinbase/cds-web/navigation/NavigationBar'"],
|
|
142
|
-
variant: {
|
|
143
|
-
device: 'tablet'
|
|
144
|
-
},
|
|
145
|
-
props: {
|
|
146
|
-
children: figma.boolean('show page title', {
|
|
147
|
-
true: figma.children('.NavigationTitle'),
|
|
148
|
-
false: undefined
|
|
149
|
-
}),
|
|
150
|
-
start: figma.boolean('show back arrow', {
|
|
151
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
152
|
-
compact: true,
|
|
153
|
-
name: "backArrow",
|
|
154
|
-
variant: "secondary"
|
|
155
|
-
}),
|
|
156
|
-
false: undefined
|
|
157
|
-
}),
|
|
158
|
-
search: figma.boolean('show search', {
|
|
159
|
-
true: /*#__PURE__*/_jsx(SearchInput, {
|
|
160
|
-
compact: true,
|
|
161
|
-
onChangeText: () => {},
|
|
162
|
-
placeholder: "Search",
|
|
163
|
-
value: ""
|
|
164
|
-
}),
|
|
165
|
-
false: undefined
|
|
166
|
-
}),
|
|
167
|
-
helpButton: figma.boolean('show help center', {
|
|
168
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
169
|
-
compact: true,
|
|
170
|
-
name: "unknown",
|
|
171
|
-
variant: "secondary"
|
|
172
|
-
}),
|
|
173
|
-
false: undefined
|
|
174
|
-
}),
|
|
175
|
-
notificationButton: figma.boolean('show notification', {
|
|
176
|
-
true: /*#__PURE__*/_jsx(IconButton, {
|
|
177
|
-
compact: true,
|
|
178
|
-
name: "bell",
|
|
179
|
-
variant: "secondary"
|
|
180
|
-
}),
|
|
181
|
-
false: undefined
|
|
182
|
-
}),
|
|
183
|
-
tabs: figma.boolean('show tabs', {
|
|
184
|
-
true: /*#__PURE__*/_jsx(TabNavigation, {
|
|
185
|
-
onChange: () => {},
|
|
186
|
-
tabs: [{
|
|
187
|
-
id: 'first_primary_tab',
|
|
188
|
-
label: 'Primary tab'
|
|
189
|
-
}, {
|
|
190
|
-
id: 'second_primary_tab',
|
|
191
|
-
label: 'Primary tab'
|
|
192
|
-
}, {
|
|
193
|
-
id: 'third_primary_tab',
|
|
194
|
-
label: 'Primary tab'
|
|
195
|
-
}],
|
|
196
|
-
value: "first_primary_tab"
|
|
197
|
-
}),
|
|
198
|
-
false: undefined
|
|
199
|
-
})
|
|
200
|
-
},
|
|
201
|
-
example: _ref2 => {
|
|
202
|
-
let {
|
|
203
|
-
start,
|
|
204
|
-
search,
|
|
205
|
-
helpButton,
|
|
206
|
-
notificationButton,
|
|
207
|
-
tabs,
|
|
208
|
-
children
|
|
209
|
-
} = _ref2;
|
|
210
|
-
return /*#__PURE__*/_jsx(NavigationBar, {
|
|
211
|
-
bottom: tabs,
|
|
212
|
-
end: /*#__PURE__*/_jsxs(HStack, {
|
|
213
|
-
gap: 2,
|
|
214
|
-
children: [search, /*#__PURE__*/_jsxs(HStack, {
|
|
215
|
-
gap: 1,
|
|
216
|
-
children: [helpButton, notificationButton, /*#__PURE__*/_jsx(IconButton, {
|
|
217
|
-
compact: true,
|
|
218
|
-
name: "appSwitcher",
|
|
219
|
-
variant: "secondary"
|
|
220
|
-
}), /*#__PURE__*/_jsx(Avatar, {
|
|
221
|
-
alt: "initial",
|
|
222
|
-
colorScheme: "blue",
|
|
223
|
-
name: "S",
|
|
224
|
-
shape: "circle",
|
|
225
|
-
size: "xl"
|
|
226
|
-
})]
|
|
227
|
-
})]
|
|
228
|
-
}),
|
|
229
|
-
start: start,
|
|
230
|
-
children: /*#__PURE__*/_jsx(HStack, {
|
|
231
|
-
alignItems: "center",
|
|
232
|
-
flexGrow: 1,
|
|
233
|
-
gap: 1,
|
|
234
|
-
children: children
|
|
235
|
-
})
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
figma.connect(NavigationBar, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10414-896', {
|
|
240
|
-
imports: ["import { NavigationBar } from '@coinbase/cds-web/navigation/NavigationBar'"],
|
|
241
|
-
variant: {
|
|
242
|
-
device: 'responsive mobile'
|
|
243
|
-
},
|
|
244
|
-
props: {
|
|
245
|
-
children: figma.instance('type')
|
|
246
|
-
},
|
|
247
|
-
example: _ref3 => {
|
|
248
|
-
let {
|
|
249
|
-
children
|
|
250
|
-
} = _ref3;
|
|
251
|
-
return /*#__PURE__*/_jsx(NavigationBar, {
|
|
252
|
-
end: /*#__PURE__*/_jsxs(HStack, {
|
|
253
|
-
gap: 1,
|
|
254
|
-
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
255
|
-
compact: true,
|
|
256
|
-
name: "search",
|
|
257
|
-
variant: "secondary"
|
|
258
|
-
}), /*#__PURE__*/_jsx(IconButton, {
|
|
259
|
-
compact: true,
|
|
260
|
-
name: "appSwitcher",
|
|
261
|
-
variant: "secondary"
|
|
262
|
-
}), /*#__PURE__*/_jsx(Avatar, {
|
|
263
|
-
alt: "initial",
|
|
264
|
-
colorScheme: "blue",
|
|
265
|
-
name: "S",
|
|
266
|
-
shape: "circle",
|
|
267
|
-
size: "xl"
|
|
268
|
-
})]
|
|
269
|
-
}),
|
|
270
|
-
start: /*#__PURE__*/_jsx(IconButton, {
|
|
271
|
-
compact: true,
|
|
272
|
-
transparent: true,
|
|
273
|
-
name: "hamburger",
|
|
274
|
-
variant: "secondary"
|
|
275
|
-
}),
|
|
276
|
-
children: /*#__PURE__*/_jsx(HStack, {
|
|
277
|
-
alignItems: "center",
|
|
278
|
-
flexGrow: 1,
|
|
279
|
-
gap: 1,
|
|
280
|
-
children: children
|
|
281
|
-
})
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { figma } from '@figma/code-connect';
|
|
3
|
-
import { NavigationTitle } from '../NavigationTitle';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
figma.connect(NavigationTitle, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=1221-19383', {
|
|
6
|
-
imports: ["import { NavigationTitle } from '@coinbase/cds-web/navigation/NavigationTitle'"],
|
|
7
|
-
props: {
|
|
8
|
-
children: figma.string('page title')
|
|
9
|
-
},
|
|
10
|
-
example: _ref => {
|
|
11
|
-
let {
|
|
12
|
-
children
|
|
13
|
-
} = _ref;
|
|
14
|
-
return /*#__PURE__*/_jsx(NavigationTitle, {
|
|
15
|
-
children: children
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const _excluded = ["children"];
|
|
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
|
-
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
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
-
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; }
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { figma } from '@figma/code-connect';
|
|
11
|
-
import { LogoMark } from '../../icons';
|
|
12
|
-
import { Sidebar } from '../Sidebar';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
figma.connect(Sidebar, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252-13321&m=dev', {
|
|
15
|
-
imports: ["import { Sidebar } from '@coinbase/cds-web/navigation/Sidebar'", "import { SidebarItem } from '@coinbase/cds-web/navigation/SidebarItem'", "import { LogoMark } from '@coinbase/cds-web/icons/LogoMark'"],
|
|
16
|
-
props: {
|
|
17
|
-
type: figma.enum('type', {
|
|
18
|
-
default: 'default',
|
|
19
|
-
condensed: 'condensed',
|
|
20
|
-
custom: 'custom'
|
|
21
|
-
}),
|
|
22
|
-
children: figma.children(['Home', 'Assets', 'Label', 'Pay', 'For you', 'Earn', 'Borrow', 'Defi', 'More', 'Sidebar Item']),
|
|
23
|
-
collapsed: figma.boolean('collapsed')
|
|
24
|
-
},
|
|
25
|
-
example: _ref => {
|
|
26
|
-
let {
|
|
27
|
-
children
|
|
28
|
-
} = _ref,
|
|
29
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
return (
|
|
31
|
-
/*#__PURE__*/
|
|
32
|
-
// @ts-expect-error multiple children will be rendered based on figma instance
|
|
33
|
-
_jsx(Sidebar, _objectSpread(_objectSpread({
|
|
34
|
-
logo: /*#__PURE__*/_jsx(LogoMark, {})
|
|
35
|
-
}, props), {}, {
|
|
36
|
-
children: children
|
|
37
|
-
}))
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { figma } from '@figma/code-connect';
|
|
8
|
-
import { SidebarItem } from '../SidebarItem';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
figma.connect(SidebarItem, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=252-12892', {
|
|
11
|
-
imports: ["import { SidebarItem } from '@coinbase/cds-web/navigation/SidebarItem';"],
|
|
12
|
-
variant: {
|
|
13
|
-
type: 'default',
|
|
14
|
-
state: 'default',
|
|
15
|
-
active: 'true'
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
title: figma.textContent('Label')
|
|
19
|
-
},
|
|
20
|
-
example: props => /*#__PURE__*/_jsx(SidebarItem, _objectSpread({
|
|
21
|
-
active: true,
|
|
22
|
-
icon: "home"
|
|
23
|
-
}, props))
|
|
24
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
7
|
-
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); }
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { figma } from '@figma/code-connect';
|
|
10
|
-
import { Alert } from '../Alert';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
figma.connect(Alert, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=35-698&m=dev', {
|
|
13
|
-
imports: ["import { Alert } from '@coinbase/cds-web/overlays/Alert'"],
|
|
14
|
-
props: {
|
|
15
|
-
body: figma.string('body'),
|
|
16
|
-
title: figma.string('title'),
|
|
17
|
-
pictogram: figma.boolean('illustration', {
|
|
18
|
-
true: figma.instance('spotsquare'),
|
|
19
|
-
false: undefined
|
|
20
|
-
}),
|
|
21
|
-
dismissActionLabel: figma.enum('footer', {
|
|
22
|
-
'single action': '',
|
|
23
|
-
stacked: 'Button'
|
|
24
|
-
}),
|
|
25
|
-
preferredActionVariant: figma.enum('type', {
|
|
26
|
-
default: 'primary',
|
|
27
|
-
destructive: 'negative'
|
|
28
|
-
})
|
|
29
|
-
},
|
|
30
|
-
// @ts-expect-error pictogram mapping issue
|
|
31
|
-
example: _ref => {
|
|
32
|
-
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
33
|
-
return /*#__PURE__*/_jsx(Alert, _objectSpread(_objectSpread({}, props), {}, {
|
|
34
|
-
preferredActionLabel: "Button"
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
});
|