@coinbase/cds-mobile 9.1.3 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dts/alpha/index.d.ts +1 -0
- package/dts/alpha/index.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectControl.d.ts +9 -9
- 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 +25 -8
- package/dts/alpha/select/types.d.ts.map +1 -1
- package/dts/alpha/tabbed-chips/index.d.ts +2 -0
- package/dts/alpha/tabbed-chips/index.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/PercentageBarChart.d.ts +2 -2
- package/esm/alpha/index.js +2 -1
- package/esm/alpha/select/DefaultSelectControl.js +34 -17
- package/esm/alpha/select/Select.js +59 -47
- package/esm/alpha/tabbed-chips/index.js +1 -0
- package/esm/system/__stories__/componentConfigStickerSheet/customComponentConfig.js +17 -11
- package/esm/system/__stories__/componentConfigStickerSheet/examples/Select.js +7 -0
- package/package.json +7 -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__/SlideButton.figma.d.ts +0 -2
- package/dts/buttons/__figma__/SlideButton.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/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__/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/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__/BrowserBar.figma.d.ts +0 -2
- package/dts/navigation/__figma__/BrowserBar.figma.d.ts.map +0 -1
- package/dts/navigation/__figma__/TopNavBar.figma.d.ts +0 -2
- package/dts/navigation/__figma__/TopNavBar.figma.d.ts.map +0 -1
- package/dts/numpad/__figma__/Numpad.figma.d.ts +0 -2
- package/dts/numpad/__figma__/Numpad.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__/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/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/sticky-footer/__figma__/StickyFooter.figma.d.ts +0 -2
- package/dts/sticky-footer/__figma__/StickyFooter.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 -42
- package/esm/alpha/__figma__/Select.figma.js +0 -63
- package/esm/alpha/data-card/__figma__/DataCard.figma.js +0 -29
- package/esm/buttons/__figma__/AvatarButton.figma.js +0 -25
- package/esm/buttons/__figma__/Button.figma.js +0 -65
- package/esm/buttons/__figma__/ButtonGroup.figma.js +0 -48
- package/esm/buttons/__figma__/IconButton.figma.js +0 -29
- package/esm/buttons/__figma__/SlideButton.figma.js +0 -27
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +0 -35
- package/esm/cards/MediaCard/__figma__/MediaCard.figma.js +0 -46
- package/esm/cards/MessagingCard/__figma__/MessagingCard.figma.js +0 -38
- package/esm/cards/__figma__/AnnouncementCard.figma.js +0 -19
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +0 -39
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +0 -30
- package/esm/cards/__figma__/NudgeCard.figma.js +0 -54
- package/esm/cards/__figma__/UpsellCard.figma.js +0 -48
- package/esm/carousel/__figma__/Carousel.figma.js +0 -36
- package/esm/cells/__figma__/ContentCell.figma.js +0 -35
- package/esm/cells/__figma__/ListCell.figma.js +0 -74
- package/esm/chips/__figma__/InputChip.figma.js +0 -27
- package/esm/chips/__figma__/SelectChip.figma.js +0 -38
- package/esm/chips/__figma__/TabbedChips.figma.js +0 -55
- package/esm/coachmark/__figma__/Coachmark.figma.js +0 -41
- package/esm/controls/__figma__/Checkbox.figma.js +0 -27
- package/esm/controls/__figma__/CheckboxCell.figma.js +0 -38
- package/esm/controls/__figma__/CheckboxGroup.figma.js +0 -23
- package/esm/controls/__figma__/RadioCell.figma.js +0 -78
- package/esm/controls/__figma__/RadioGroup.figma.js +0 -47
- package/esm/controls/__figma__/SearchInput.figma.js +0 -35
- package/esm/controls/__figma__/SelectOption.figma.js +0 -35
- package/esm/controls/__figma__/Switch.figma.js +0 -16
- package/esm/controls/__figma__/TextInput.figma.js +0 -125
- package/esm/dates/__figma__/DatePicker.figma.js +0 -43
- package/esm/dots/__figma__/DotCount.figma.js +0 -16
- package/esm/dots/__figma__/DotStatusColor.figma.js +0 -23
- package/esm/dots/__figma__/DotSymbol.figma.js +0 -45
- package/esm/icons/__figma__/Icon.figma.js +0 -3906
- package/esm/icons/__figma__/LogoMark.figma.js +0 -20
- package/esm/icons/__figma__/LogoWordmark.figma.js +0 -32
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +0 -47
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +0 -48
- package/esm/illustrations/__figma__/HeroSquare.figma.js +0 -2104
- package/esm/illustrations/__figma__/Pictogram.figma.js +0 -1774
- package/esm/illustrations/__figma__/SpotIcon.figma.js +0 -340
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +0 -1102
- package/esm/illustrations/__figma__/SpotSquare.figma.js +0 -1192
- package/esm/jest.d.js +0 -12
- package/esm/layout/__figma__/Divider.figma.js +0 -27
- package/esm/layout/__figma__/Fallback.figma.js +0 -21
- package/esm/media/__figma__/Avatar.figma.js +0 -56
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +0 -31
- package/esm/navigation/__figma__/BrowserBar.figma.js +0 -58
- package/esm/navigation/__figma__/TopNavBar.figma.js +0 -319
- package/esm/numpad/__figma__/Numpad.figma.js +0 -63
- package/esm/overlays/__figma__/Alert.figma.js +0 -32
- package/esm/overlays/__figma__/Toast.figma.js +0 -51
- package/esm/overlays/modal/__figma__/Modal.figma.js +0 -74
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +0 -92
- package/esm/overlays/tray/__figma__/Tray.figma.js +0 -220
- package/esm/page/__figma__/PageFooter.figma.js +0 -61
- package/esm/page/__figma__/PageHeader.figma.js +0 -58
- package/esm/perf/component-config/Button.component-config.perf-test.js +0 -35
- package/esm/perf/component-config/ComponentConfigProvider.perf-test.js +0 -147
- package/esm/perf/component-config/ComponentConfigStickerSheet.perf-test.js +0 -326
- package/esm/perf/component-config/README.md +0 -8
- package/esm/section-header/__figma__/SectionHeader.figma.js +0 -50
- package/esm/sticky-footer/__figma__/StickyFooter.figma.js +0 -26
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +0 -79
- package/esm/tabs/__figma__/TabNavigation.figma.js +0 -83
- package/esm/tag/__figma__/Tag.figma.js +0 -86
- package/esm/typography/__figma__/Link.figma.js +0 -28
- package/esm/visualizations/__figma__/ProgressBar.figma.js +0 -99
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +0 -26
- package/esm/visualizations/sparkline/__figma__/Sparkline.figma.js +0 -22
- package/esm/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -85
- package/esm/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -104
|
@@ -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
|
-
});
|