@coinbase/cds-mobile 8.38.0 → 8.38.2
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 +18 -0
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/esm/accordion/__figma__/Accordion.figma.js +1 -1
- package/esm/buttons/__figma__/AvatarButton.figma.js +1 -1
- package/esm/buttons/__figma__/Button.figma.js +1 -1
- package/esm/buttons/__figma__/IconButton.figma.js +1 -1
- package/esm/buttons/__figma__/SlideButton.figma.js +1 -1
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +1 -1
- package/esm/cards/ContentCard/__figma__/ContentCardBody.figma.js +1 -1
- package/esm/cards/ContentCard/__figma__/ContentCardFooter.figma.js +5 -5
- package/esm/cards/ContentCard/__figma__/ContentCardHeader.figma.js +1 -1
- package/esm/cards/__figma__/AnnouncementCard.figma.js +1 -0
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +1 -1
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +1 -1
- package/esm/cards/__figma__/NudgeCard.figma.js +1 -1
- package/esm/cards/__figma__/UpsellCard.figma.js +1 -1
- package/esm/cells/__figma__/ContentCell.figma.js +1 -1
- package/esm/cells/__figma__/ListCell.figma.js +2 -2
- package/esm/chips/__figma__/InputChip.figma.js +10 -9
- package/esm/chips/__figma__/SelectChip.figma.js +7 -8
- package/esm/chips/__figma__/TabbedChips.figma.js +1 -1
- package/esm/coachmark/__figma__/Coachmark.figma.js +1 -1
- package/esm/controls/TextInput.js +17 -12
- package/esm/controls/__figma__/CheckboxCell.figma.js +2 -2
- package/esm/controls/__figma__/CheckboxGroup.figma.js +1 -1
- package/esm/controls/__figma__/RadioCell.figma.js +43 -3
- package/esm/controls/__figma__/RadioGroup.figma.js +1 -1
- package/esm/controls/__figma__/SearchInput.figma.js +1 -1
- package/esm/controls/__figma__/SelectOption.figma.js +1 -1
- package/esm/controls/__figma__/Switch.figma.js +1 -1
- package/esm/controls/__figma__/TextInput.figma.js +2 -2
- package/esm/controls/__stories__/TextInput.stories.js +80 -5
- package/esm/dates/__figma__/DatePicker.figma.js +1 -1
- package/esm/dates/__stories__/DateInput.stories.js +68 -1
- package/esm/dates/__stories__/DatePicker.stories.js +62 -1
- package/esm/dots/__figma__/DotCount.figma.js +1 -1
- package/esm/dots/__figma__/DotStatusColor.figma.js +1 -1
- package/esm/dots/__figma__/DotSymbol.figma.js +1 -1
- package/esm/icons/__figma__/Icon.figma.js +423 -423
- package/esm/icons/__figma__/LogoMark.figma.js +1 -1
- package/esm/icons/__figma__/LogoWordmark.figma.js +2 -2
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +1 -1
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +1 -1
- package/esm/illustrations/__figma__/HeroSquare.figma.js +350 -350
- package/esm/illustrations/__figma__/Pictogram.figma.js +295 -295
- package/esm/illustrations/__figma__/SpotIcon.figma.js +56 -56
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +183 -183
- package/esm/illustrations/__figma__/SpotSquare.figma.js +198 -198
- package/esm/layout/__figma__/Divider.figma.js +2 -2
- package/esm/layout/__figma__/Fallback.figma.js +1 -1
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +1 -1
- package/esm/navigation/__figma__/BrowserBar.figma.js +1 -1
- package/esm/navigation/__figma__/TopNavBar.figma.js +76 -69
- package/esm/numpad/__figma__/Numpad.figma.js +1 -1
- package/esm/overlays/__figma__/Toast.figma.js +1 -1
- package/esm/overlays/modal/__figma__/Modal.figma.js +1 -1
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +2 -2
- package/esm/overlays/tray/__figma__/Tray.figma.js +29 -32
- package/esm/page/__figma__/PageFooter.figma.js +1 -1
- package/esm/page/__figma__/PageHeader.figma.js +1 -1
- package/esm/section-header/__figma__/SectionHeader.figma.js +1 -1
- package/esm/sticky-footer/__figma__/StickyFooter.figma.js +1 -1
- package/esm/system/__figma__/AndroidNavigationBar.figma.js +1 -0
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +3 -3
- package/esm/tabs/__figma__/TabNavigation.figma.js +1 -1
- package/esm/tag/__figma__/Tag.figma.js +2 -2
- package/esm/typography/__figma__/Link.figma.js +1 -1
- package/esm/visualizations/__figma__/ProgressBar.figma.js +2 -2
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +1 -1
- package/package.json +2 -3
- package/dts/controls/__figma__/Select.figma.d.ts +0 -2
- package/dts/controls/__figma__/Select.figma.d.ts.map +0 -1
- package/esm/controls/__figma__/Select.figma.js +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,24 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.38.2 ((1/22/2026, 09:16 AM PST))
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 8.38.1 (1/15/2026 PST)
|
|
16
|
+
|
|
17
|
+
#### 🐞 Fixes
|
|
18
|
+
|
|
19
|
+
- Support TextInput labelNode on compact and inside labelVariant. [[#293](https://github.com/coinbase/cds/pull/293)]
|
|
20
|
+
|
|
21
|
+
#### 📘 Misc
|
|
22
|
+
|
|
23
|
+
- Internal: code connect file lint fixes. [[#311](https://github.com/coinbase/cds/pull/311)]
|
|
24
|
+
|
|
25
|
+
#### 📘 Misc
|
|
26
|
+
|
|
27
|
+
- Internal: update figma code connect config and some mapping files. [[#304](https://github.com/coinbase/cds/pull/304)]
|
|
28
|
+
|
|
11
29
|
## 8.38.0 (1/14/2026 PST)
|
|
12
30
|
|
|
13
31
|
#### 🚀 Updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/controls/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAEV,SAAS,IAAI,WAAW,E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AgB,CAAC,cAAc,CAAC,CAAC;IAChD;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAWJ,eAAO,MAAM,SAAS;IAjElB;;;OAGG;YACK,cAAc,CAAC,OAAO,CAAC;IAC/B;;OAEG;aACM,MAAM;IACf,uHAAuH;YAC/G,KAAK,CAAC,SAAS;IACvB,mHAAmH;UAC7G,KAAK,CAAC,SAAS;IACrB;;OAEG;gBACS;QACV,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IACD;;;OAGG;4CACqC,MAAM;IAC9C;;;OAGG;gBACS,KAAK,CAAC,SAAS;;YAKnB,gBAAgB,CAAC,OAAO,CAAC;eACtB,gBAAgB,CAAC,UAAU,CAAC;mBACxB,gBAAgB,CAAC,cAAc,CAAC;IAC/C;;;OAGG;gBACS,cAAc;IAC1B;;;OAGG;gBACS,gBAAgB,CAAC,WAAW,CAAC,GAAG,OAAO;IACnD;;;OAGG;eACQ,OAAO;sCA4PrB,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { Accordion } from '../Accordion';
|
|
|
7
7
|
import { AccordionItem } from '../AccordionItem';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(Accordion, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=148%3A2954', {
|
|
10
|
-
imports: ["import { Accordion } from '@coinbase/cds-mobile/accordion/Accordion'
|
|
10
|
+
imports: ["import { Accordion } from '@coinbase/cds-mobile/accordion/Accordion'", "import { AccordionItem } from '@coinbase/cds-mobile/accordion/AccordionItem'"],
|
|
11
11
|
props: {
|
|
12
12
|
subtitle: figma.boolean('show subtitle', {
|
|
13
13
|
true: figma.string('subtitle'),
|
|
@@ -3,7 +3,7 @@ import { figma } from '@figma/code-connect';
|
|
|
3
3
|
import { AvatarButton } from '../AvatarButton';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
figma.connect(AvatarButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=276-23400&m=dev', {
|
|
6
|
-
imports: ["import {AvatarButton} from '@coinbase/cds-mobile/buttons/AvatarButton'
|
|
6
|
+
imports: ["import {AvatarButton} from '@coinbase/cds-mobile/buttons/AvatarButton'"],
|
|
7
7
|
props: {
|
|
8
8
|
// state: figma.enum('state', {
|
|
9
9
|
// active: 'active',
|
|
@@ -5,7 +5,7 @@ import { figma } from '@figma/code-connect';
|
|
|
5
5
|
import { Button } from '../Button';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
figma.connect(Button, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=89-3096&m=dev', {
|
|
8
|
-
imports: ["import { Button } from '@coinbase/cds-mobile/buttons/Button'
|
|
8
|
+
imports: ["import { Button } from '@coinbase/cds-mobile/buttons/Button'"],
|
|
9
9
|
props: {
|
|
10
10
|
variant: figma.enum('variant', {
|
|
11
11
|
primary: 'primary',
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { IconButton } from '../IconButton';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
figma.connect(IconButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=47-358&m=dev', {
|
|
7
|
-
imports: ["import {IconButton} from '@coinbase/cds-mobile/buttons/IconButton'
|
|
7
|
+
imports: ["import {IconButton} from '@coinbase/cds-mobile/buttons/IconButton'"],
|
|
8
8
|
props: {
|
|
9
9
|
variant: figma.enum('variant', {
|
|
10
10
|
primary: 'primary',
|
|
@@ -5,7 +5,7 @@ import { figma } from '@figma/code-connect';
|
|
|
5
5
|
import { SlideButton } from '../SlideButton';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
figma.connect(SlideButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=49598-10283&m=dev', {
|
|
8
|
-
imports: ["import { SlideButton } from '@coinbase/cds-mobile/buttons/SlideButton'
|
|
8
|
+
imports: ["import { SlideButton } from '@coinbase/cds-mobile/buttons/SlideButton'"],
|
|
9
9
|
props: {
|
|
10
10
|
checked: figma.enum('Position', {
|
|
11
11
|
// TODO: fix falsy values returning undefined. This is an existing issue in code connect https://github.com/figma/code-connect/issues/193
|
|
@@ -6,7 +6,7 @@ import { figma } from '@figma/code-connect';
|
|
|
6
6
|
import { ContentCard } from '../ContentCard';
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
figma.connect(ContentCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705%3A22920', {
|
|
9
|
-
imports: ["import { ContentCard } from '@coinbase/cds-mobile/cards/ContentCard/ContentCard'
|
|
9
|
+
imports: ["import { ContentCard } from '@coinbase/cds-mobile/cards/ContentCard/ContentCard'"],
|
|
10
10
|
props: {
|
|
11
11
|
header: figma.boolean('show card header', {
|
|
12
12
|
true: figma.children('.📦 ContentCardHeader'),
|
|
@@ -7,7 +7,7 @@ import { figma } from '@figma/code-connect';
|
|
|
7
7
|
import { ContentCardBody } from '../ContentCardBody';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(ContentCardBody, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705-24336', {
|
|
10
|
-
imports: ["import { ContentCardBody } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardBody'
|
|
10
|
+
imports: ["import { ContentCardBody } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardBody'"],
|
|
11
11
|
props: {
|
|
12
12
|
body: figma.string('body'),
|
|
13
13
|
label: figma.string('label'),
|
|
@@ -15,7 +15,7 @@ import { ContentCardFooter } from '../ContentCardFooter';
|
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
const URL = 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705-24360';
|
|
17
17
|
figma.connect(ContentCardFooter, URL, {
|
|
18
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'
|
|
18
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'"],
|
|
19
19
|
variant: {
|
|
20
20
|
type: 'button'
|
|
21
21
|
},
|
|
@@ -35,7 +35,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
figma.connect(ContentCardFooter, URL, {
|
|
38
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'
|
|
38
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'", "import { RemoteImageGroup } from '@coinbase/cds-mobile/media/RemoteImageGroup'"],
|
|
39
39
|
variant: {
|
|
40
40
|
type: 'media + button'
|
|
41
41
|
},
|
|
@@ -53,7 +53,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
figma.connect(ContentCardFooter, URL, {
|
|
56
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'
|
|
56
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'", "import { Avatar } from '@coinbase/cds-mobile/media/Avatar'", "import { VStack } from '@coinbase/cds-mobile/layout/VStack'", "import { HStack } from '@coinbase/cds-mobile/layout/HStack'", "import { Text } from '@coinbase/cds-mobile/typography/Text'", "import { Text } from '@coinbase/cds-mobile/typography/Text'"],
|
|
57
57
|
variant: {
|
|
58
58
|
type: 'custom'
|
|
59
59
|
},
|
|
@@ -86,7 +86,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
figma.connect(ContentCardFooter, URL, {
|
|
89
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'
|
|
89
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'", "import { IconCounterButton } from '@coinbase/cds-mobile/buttons/IconCounterButton'", "import { HStack } from '@coinbase/cds-mobile/layout/HStack'"],
|
|
90
90
|
variant: {
|
|
91
91
|
type: 'engagement + button'
|
|
92
92
|
},
|
|
@@ -116,7 +116,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
figma.connect(ContentCardFooter, URL, {
|
|
119
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'
|
|
119
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardFooter'", "import { IconCounterButton } from '@coinbase/cds-mobile/buttons/IconCounterButton'", "import { HStack } from '@coinbase/cds-mobile/layout/HStack'"],
|
|
120
120
|
variant: {
|
|
121
121
|
type: 'engagement'
|
|
122
122
|
},
|
|
@@ -5,7 +5,7 @@ import { figma } from '@figma/code-connect';
|
|
|
5
5
|
import { ContentCardHeader } from '../ContentCardHeader';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
figma.connect(ContentCardHeader, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705%3A24320', {
|
|
8
|
-
imports: ["import { ContentCardHeader } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardHeader'
|
|
8
|
+
imports: ["import { ContentCardHeader } from '@coinbase/cds-mobile/cards/ContentCard/ContentCardHeader'"],
|
|
9
9
|
props: {
|
|
10
10
|
title: figma.string('metadata label'),
|
|
11
11
|
meta: figma.string('metadata'),
|
|
@@ -2,6 +2,7 @@ import { figma } from '@figma/code-connect';
|
|
|
2
2
|
import { AnnouncementCard } from '../AnnouncementCard';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
figma.connect(AnnouncementCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=61%3A956', {
|
|
5
|
+
imports: ["import { AnnouncementCard } from '@coinbase/cds-mobile/cards/AnnouncementCard'"],
|
|
5
6
|
props: {
|
|
6
7
|
showtopdivider29390: figma.boolean('show top divider'),
|
|
7
8
|
illustration5960: figma.instance('illustration'),
|
|
@@ -5,7 +5,7 @@ import { figma } from '@figma/code-connect';
|
|
|
5
5
|
import { ContainedAssetCard } from '../ContainedAssetCard';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
figma.connect(ContainedAssetCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10084%3A2875', {
|
|
8
|
-
imports: ["import { ContainedAssetCard } from '@coinbase/cds-mobile/cards/ContainedAssetCard'
|
|
8
|
+
imports: ["import { ContainedAssetCard } from '@coinbase/cds-mobile/cards/ContainedAssetCard'"],
|
|
9
9
|
props: {
|
|
10
10
|
// showverified1025912: figma.boolean('↳ show verified'),
|
|
11
11
|
header: figma.instance('header'),
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { FloatingAssetCard } from '../FloatingAssetCard';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
figma.connect(FloatingAssetCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A3012', {
|
|
7
|
-
imports: ["import { FloatingAssetCard } from '@coinbase/cds-mobile/cards/FloatingAssetCard'
|
|
7
|
+
imports: ["import { FloatingAssetCard } from '@coinbase/cds-mobile/cards/FloatingAssetCard'"],
|
|
8
8
|
props: {
|
|
9
9
|
// showverified1025919: figma.boolean('↳ show verified'),
|
|
10
10
|
title: figma.string('title'),
|
|
@@ -5,7 +5,7 @@ import { figma } from '@figma/code-connect';
|
|
|
5
5
|
import { NudgeCard } from '../NudgeCard';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
figma.connect(NudgeCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A4433', {
|
|
8
|
-
imports: ["import { NudgeCard } from '@coinbase/cds-mobile/cards/NudgeCard'
|
|
8
|
+
imports: ["import { NudgeCard } from '@coinbase/cds-mobile/cards/NudgeCard'"],
|
|
9
9
|
props: {
|
|
10
10
|
// onActionPress: figma.boolean('compact', {
|
|
11
11
|
// true: undefined,
|
|
@@ -6,7 +6,7 @@ import { useTheme } from '../../hooks/useTheme';
|
|
|
6
6
|
import { UpsellCard } from '../UpsellCard';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
figma.connect(UpsellCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A6279', {
|
|
9
|
-
imports: ["import { useTheme } from '@coinbase/cds-mobile/hooks/useTheme'
|
|
9
|
+
imports: ["import { useTheme } from '@coinbase/cds-mobile/hooks/useTheme'", "import { UpsellCard } from '@coinbase/cds-mobile/cards/UpsellCard'"],
|
|
10
10
|
props: {
|
|
11
11
|
media: figma.instance('media'),
|
|
12
12
|
title: figma.nestedProps('string.upsell', {
|
|
@@ -3,7 +3,7 @@ import { figma } from '@figma/code-connect';
|
|
|
3
3
|
import { ContentCell } from '../ContentCell';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
figma.connect(ContentCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=237-16238&m=dev', {
|
|
6
|
-
imports: ["import { ContentCell } from '@coinbase/cds-mobile/cells/ContentCell
|
|
6
|
+
imports: ["import { ContentCell } from '@coinbase/cds-mobile/cells/ContentCell"],
|
|
7
7
|
props: {
|
|
8
8
|
selected: figma.enum('state', {
|
|
9
9
|
selected: true
|
|
@@ -3,7 +3,7 @@ import { figma } from '@figma/code-connect';
|
|
|
3
3
|
import { ListCell } from '../ListCell';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=236-27897&m=dev', {
|
|
6
|
-
imports: ["import { ListCell } from '@coinbase/cds-mobile/cells/ListCell'
|
|
6
|
+
imports: ["import { ListCell } from '@coinbase/cds-mobile/cells/ListCell'"],
|
|
7
7
|
props: {
|
|
8
8
|
selected: figma.enum('state', {
|
|
9
9
|
selected: true
|
|
@@ -34,7 +34,7 @@ figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨
|
|
|
34
34
|
example: props => /*#__PURE__*/_jsx(ListCell, _extends({}, props))
|
|
35
35
|
});
|
|
36
36
|
figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=236-28162&m=dev', {
|
|
37
|
-
imports: ["import { ListCell } from '@coinbase/cds-mobile/cells/ListCell'
|
|
37
|
+
imports: ["import { ListCell } from '@coinbase/cds-mobile/cells/ListCell'"],
|
|
38
38
|
props: {
|
|
39
39
|
selected: figma.enum('state', {
|
|
40
40
|
selected: true
|
|
@@ -1,24 +1,25 @@
|
|
|
1
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
2
|
import { figma } from '@figma/code-connect';
|
|
4
3
|
import { InputChip } from '../InputChip';
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
5
|
figma.connect(InputChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10177-5161&m=dev', {
|
|
7
6
|
imports: ["import { InputChip } from '@coinbase/cds-mobile/chips/InputChip'"],
|
|
8
7
|
props: {
|
|
9
|
-
children: figma.
|
|
8
|
+
children: figma.textContent('value'),
|
|
10
9
|
start: figma.boolean('show start', {
|
|
11
10
|
true: figma.instance('start'),
|
|
12
11
|
false: undefined
|
|
13
12
|
}),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
disabled: figma.enum('state', {
|
|
14
|
+
disabled: true,
|
|
15
|
+
default: false,
|
|
16
|
+
focused: false,
|
|
17
|
+
hovered: false,
|
|
18
|
+
pressed: false
|
|
19
|
+
}),
|
|
21
20
|
compact: figma.boolean('compact')
|
|
21
|
+
// NOTE: The Figma 'show label' property doesn't have a direct mapping.
|
|
22
|
+
// To hide the label in React, omit the `children` prop or pass undefined.
|
|
22
23
|
},
|
|
23
24
|
example: props => /*#__PURE__*/_jsx(InputChip, _extends({
|
|
24
25
|
onPress: () => {}
|
|
@@ -8,14 +8,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
figma.connect(SelectChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10177-5222&m=dev', {
|
|
9
9
|
imports: ["import { SelectChip } from '@coinbase/cds-mobile/chips'"],
|
|
10
10
|
props: {
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// focused: 'focused',
|
|
16
|
-
// open: 'open',
|
|
17
|
-
// }),
|
|
18
|
-
disabled: figma.boolean('disabled'),
|
|
11
|
+
// 'disabled' is derived from state='disabled' in Figma (not a separate boolean)
|
|
12
|
+
disabled: figma.enum('state', {
|
|
13
|
+
disabled: true
|
|
14
|
+
}),
|
|
19
15
|
active: figma.boolean('active'),
|
|
20
16
|
compact: figma.boolean('compact'),
|
|
21
17
|
start: figma.boolean('show start', {
|
|
@@ -23,11 +19,14 @@ figma.connect(SelectChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/
|
|
|
23
19
|
false: undefined
|
|
24
20
|
}),
|
|
25
21
|
end: figma.instance('end')
|
|
22
|
+
// Note: 'show label' property not mapped - React component always renders
|
|
23
|
+
// valueLabel, value, or placeholder text (no prop to hide the label).
|
|
26
24
|
},
|
|
27
25
|
example: props => {
|
|
28
26
|
const options = ['USD', 'CAD', 'GBP', 'JPY'];
|
|
29
27
|
const [value, setValue] = useState(options[0]);
|
|
30
28
|
return /*#__PURE__*/_jsx(SelectChip, _extends({}, props, {
|
|
29
|
+
disabled: props.disabled,
|
|
31
30
|
onChange: setValue,
|
|
32
31
|
value: value,
|
|
33
32
|
children: options.map(option => /*#__PURE__*/_jsx(SelectOption, {
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { TabbedChips } from '../TabbedChips';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
figma.connect(TabbedChips, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10188%3A4476', {
|
|
7
|
-
imports: ["import { TabbedChips } from '@coinbase/cds-mobile/chips/TabbedChips'
|
|
7
|
+
imports: ["import { TabbedChips } from '@coinbase/cds-mobile/chips/TabbedChips'"],
|
|
8
8
|
props: {
|
|
9
9
|
overflow: figma.boolean('overflowing'),
|
|
10
10
|
platform: figma.enum('platform', {
|
|
@@ -7,7 +7,7 @@ import { Checkbox } from '../../controls';
|
|
|
7
7
|
import { Coachmark } from '../Coachmark';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(Coachmark, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=24997-8568', {
|
|
10
|
-
imports: ["import { Coachmark } from '@coinbase/cds-mobile/tour/Coachmark'
|
|
10
|
+
imports: ["import { Coachmark } from '@coinbase/cds-mobile/tour/Coachmark'"],
|
|
11
11
|
props: {
|
|
12
12
|
// onClose: figma.boolean('dismissable', {
|
|
13
13
|
// true: () => {},
|
|
@@ -76,12 +76,13 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
76
76
|
(_internalRef$current = internalRef.current) == null || _internalRef$current.focus();
|
|
77
77
|
}
|
|
78
78
|
}, [setFocused, internalRef, editableInputAddonProps.readOnly]);
|
|
79
|
+
const hasLabel = useMemo(() => !!label || !!labelNode, [label, labelNode]);
|
|
79
80
|
const containerSpacing = useMemo(() => _extends({}, !!start && {
|
|
80
81
|
paddingStart: theme.space[0.5]
|
|
81
|
-
}, labelVariant === 'inside' &&
|
|
82
|
+
}, labelVariant === 'inside' && hasLabel && !compact && {
|
|
82
83
|
paddingBottom: 0,
|
|
83
84
|
paddingTop: 0
|
|
84
|
-
}), [start,
|
|
85
|
+
}), [start, theme.space, labelVariant, hasLabel, compact]);
|
|
85
86
|
|
|
86
87
|
// Get the accessability label from the start node child
|
|
87
88
|
const startIconA11yLabel = useMemo(() => {
|
|
@@ -158,23 +159,27 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
158
159
|
disabled: disabled,
|
|
159
160
|
testID: testID
|
|
160
161
|
}, editableInputAddonProps)),
|
|
161
|
-
labelNode: !compact && (labelNode ? labelNode :
|
|
162
|
+
labelNode: !compact && (labelNode && labelVariant !== 'inside' ? labelNode : hasLabel && /*#__PURE__*/_jsx(Pressable, {
|
|
162
163
|
accessibilityRole: "button",
|
|
163
164
|
disabled: disabled,
|
|
164
165
|
onPress: handleNodePress,
|
|
165
|
-
children: /*#__PURE__*/_jsx(
|
|
166
|
-
paddingTop: 0,
|
|
167
|
-
paddingBottom: 0,
|
|
166
|
+
children: /*#__PURE__*/_jsx(Box, _extends({}, labelVariant === 'inside' && {
|
|
168
167
|
paddingStart: start ? 0.5 : 2,
|
|
169
168
|
paddingEnd: 2,
|
|
170
169
|
background: readOnlyInputBackground
|
|
171
170
|
}, {
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
children: labelNode ? labelNode : /*#__PURE__*/_jsx(InputLabel, _extends({
|
|
172
|
+
testID: (_testIDMap$label = testIDMap == null ? void 0 : testIDMap.label) != null ? _testIDMap$label : ''
|
|
173
|
+
}, labelVariant === 'inside' && {
|
|
174
|
+
paddingTop: 0,
|
|
175
|
+
paddingBottom: 0
|
|
176
|
+
}, {
|
|
177
|
+
children: label
|
|
178
|
+
}))
|
|
174
179
|
}))
|
|
175
180
|
})),
|
|
176
181
|
labelVariant: labelVariant,
|
|
177
|
-
startNode: (compact &&
|
|
182
|
+
startNode: (compact && hasLabel || !!start) && /*#__PURE__*/_jsx(Box, {
|
|
178
183
|
alignItems: "center",
|
|
179
184
|
background: readOnlyInputBackground,
|
|
180
185
|
justifyContent: "center",
|
|
@@ -188,10 +193,10 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
188
193
|
importantForAccessibility: startIconA11yLabel ? 'auto' : 'no',
|
|
189
194
|
onPress: handleNodePress,
|
|
190
195
|
children: /*#__PURE__*/_jsxs(HStack, {
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
paddingStart: compact ? 2 : undefined,
|
|
197
|
+
children: [compact && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
193
198
|
children: label
|
|
194
|
-
}), !!start && /*#__PURE__*/_jsx(TextInputFocusVariantContext.Provider, {
|
|
199
|
+
})), !!start && /*#__PURE__*/_jsx(TextInputFocusVariantContext.Provider, {
|
|
195
200
|
value: focusedVariant,
|
|
196
201
|
children: inaccessibleStart
|
|
197
202
|
})]
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { CheckboxCell } from '../CheckboxCell';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
figma.connect(CheckboxCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2772&t=pdfsCDffPYWTRujC-4', {
|
|
7
|
-
imports: ["import { CheckboxCell } from '@coinbase/cds-
|
|
7
|
+
imports: ["import { CheckboxCell } from '@coinbase/cds-mobile/controls/CheckboxCell'"],
|
|
8
8
|
props: {
|
|
9
9
|
title: figma.string('title text'),
|
|
10
10
|
description: figma.boolean('description', {
|
|
@@ -18,7 +18,7 @@ figma.connect(CheckboxCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
figma.connect(CheckboxCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2772&t=pdfsCDffPYWTRujC-4', {
|
|
21
|
-
imports: ["import { CheckboxCell } from '@coinbase/cds-
|
|
21
|
+
imports: ["import { CheckboxCell } from '@coinbase/cds-mobile/controls/CheckboxCell'"],
|
|
22
22
|
variant: {
|
|
23
23
|
state: 'selected'
|
|
24
24
|
},
|
|
@@ -6,7 +6,7 @@ import { figma } from '@figma/code-connect';
|
|
|
6
6
|
import { CheckboxGroup } from '../CheckboxGroup';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
figma.connect(CheckboxGroup, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A10032', {
|
|
9
|
-
imports: ["import { CheckboxGroup } from '@coinbase/cds-mobile/controls/CheckboxGroup'
|
|
9
|
+
imports: ["import { CheckboxGroup } from '@coinbase/cds-mobile/controls/CheckboxGroup'"],
|
|
10
10
|
props: {
|
|
11
11
|
children: figma.children('*')
|
|
12
12
|
},
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { RadioCell } from '../RadioCell';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
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-
|
|
7
|
+
imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
|
|
8
8
|
props: {
|
|
9
9
|
title: figma.string('title text'),
|
|
10
10
|
description: figma.boolean('description', {
|
|
@@ -18,9 +18,9 @@ figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
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-
|
|
21
|
+
imports: ["import { RadioCell } from '@coinbase/cds-mobile/controls/RadioCell'"],
|
|
22
22
|
variant: {
|
|
23
|
-
|
|
23
|
+
selected: true
|
|
24
24
|
},
|
|
25
25
|
props: {
|
|
26
26
|
title: figma.string('title text'),
|
|
@@ -35,4 +35,44 @@ figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E
|
|
|
35
35
|
checked: true
|
|
36
36
|
}, props));
|
|
37
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
|
+
}
|
|
38
78
|
});
|
|
@@ -5,7 +5,7 @@ import { Radio } from '../Radio';
|
|
|
5
5
|
import { RadioGroup } from '../RadioGroup';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
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-
|
|
8
|
+
imports: ["import { ControlGroup } from '@coinbase/cds-mobile/controls/ControlGroup'", "import { Radio } from '@coinbase/cds-mobile/controls/Radio'"],
|
|
9
9
|
props: {
|
|
10
10
|
options: figma.enum('quantity', {
|
|
11
11
|
'1': [{
|
|
@@ -6,7 +6,7 @@ import { figma } from '@figma/code-connect';
|
|
|
6
6
|
import { SearchInput } from '../SearchInput';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
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'
|
|
9
|
+
imports: ["import { SearchInput } from '@coinbase/cds-mobile/controls/SearchInput'"],
|
|
10
10
|
props: {
|
|
11
11
|
compact: figma.boolean('compact'),
|
|
12
12
|
disabled: figma.boolean('disabled'),
|
|
@@ -4,7 +4,7 @@ import { figma } from '@figma/code-connect';
|
|
|
4
4
|
import { SelectOption } from '../SelectOption';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
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'
|
|
7
|
+
imports: ["import { SelectOption } from '@coinbase/cds-mobile/controls/SelectOption'"],
|
|
8
8
|
props: {
|
|
9
9
|
disabled: figma.boolean('disabled'),
|
|
10
10
|
compact: figma.boolean('compact'),
|
|
@@ -3,7 +3,7 @@ import { figma } from '@figma/code-connect';
|
|
|
3
3
|
import { Switch } from '../Switch';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
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'
|
|
6
|
+
imports: ["import { Switch } from '@coinbase/cds-mobile/controls/Switch'"],
|
|
7
7
|
props: {
|
|
8
8
|
children: figma.boolean('show label', {
|
|
9
9
|
true: figma.string('↳ label'),
|
|
@@ -8,7 +8,7 @@ import { Link } from '../../typography';
|
|
|
8
8
|
import { TextInput } from '../TextInput';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
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'
|
|
11
|
+
imports: ["import { TextInput } from '@coinbase/cds-mobile/controls/TextInput'"],
|
|
12
12
|
props: {
|
|
13
13
|
align: figma.boolean('right align text', {
|
|
14
14
|
true: 'end',
|
|
@@ -63,7 +63,7 @@ figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
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'
|
|
66
|
+
imports: ["import { TextInput } from '@coinbase/cds-mobile/controls/TextInput'"],
|
|
67
67
|
variant: {
|
|
68
68
|
'show end': true,
|
|
69
69
|
'↳ show suffix': true
|