@coinbase/cds-web 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 +20 -0
- package/dts/controls/NativeInput.d.ts.map +1 -1
- 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__/TileButton.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 -8
- 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/NativeInput.js +3 -1
- package/esm/controls/TextInput.js +14 -6
- package/esm/controls/__figma__/CheckboxGroup.figma.js +1 -1
- package/esm/controls/__figma__/NativeTextArea.figma.js +1 -1
- package/esm/controls/__figma__/RadioCell.figma.js +41 -1
- 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/dates/__figma__/DatePicker.figma.js +1 -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/dropdown/__figma__/Dropdown.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__/NavLink.figma.js +2 -2
- package/esm/navigation/__figma__/NavigationBar.figma.js +3 -3
- package/esm/navigation/__figma__/NavigationTitle.figma.js +1 -1
- package/esm/navigation/__figma__/Sidebar.figma.js +1 -1
- package/esm/navigation/__figma__/SidebarItem.figma.js +28 -25
- package/esm/overlays/FocusTrap.js +2 -2
- package/esm/overlays/__figma__/Toast.figma.js +1 -1
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.js +3 -3
- package/esm/overlays/modal/__figma__/Modal.figma.js +1 -1
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +2 -2
- package/esm/page/__figma__/PageFooter.figma.js +1 -1
- package/esm/page/__figma__/PageHeader.figma.js +1 -1
- package/esm/pagination/__figma__/Pagination.figma.js +1 -1
- package/esm/section-header/__figma__/SectionHeader.figma.js +1 -1
- package/esm/tables/__figma__/TableCell.figma.js +2 -2
- 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 -47
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,26 @@ 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 PST)
|
|
12
|
+
|
|
13
|
+
#### 🐞 Fixes
|
|
14
|
+
|
|
15
|
+
- FocusTrap supports single focusable child and updates to its tests. [[#306](https://github.com/coinbase/cds/pull/306)]
|
|
16
|
+
|
|
17
|
+
## 8.38.1 (1/15/2026 PST)
|
|
18
|
+
|
|
19
|
+
#### 🐞 Fixes
|
|
20
|
+
|
|
21
|
+
- Support TextInput labelNode on compact and inside labelVariant. [[#293](https://github.com/coinbase/cds/pull/293)]
|
|
22
|
+
|
|
23
|
+
#### 📘 Misc
|
|
24
|
+
|
|
25
|
+
- Internal: code connect file lint fixes. [[#311](https://github.com/coinbase/cds/pull/311)]
|
|
26
|
+
|
|
27
|
+
#### 📘 Misc
|
|
28
|
+
|
|
29
|
+
- Internal: update figma code connect config and some mapping files. [[#304](https://github.com/coinbase/cds/pull/304)]
|
|
30
|
+
|
|
11
31
|
## 8.38.0 (1/14/2026 PST)
|
|
12
32
|
|
|
13
33
|
#### 🚀 Updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeInput.d.ts","sourceRoot":"","sources":["../../src/controls/NativeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAiF/E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;SAGK;IACL,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACnC,GAAG,WAAW,GACb,IAAI,CACF,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACD,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW;cAnBZ,OAAO;IACjB,gFAAgF;uBAC7D,MAAM;IACzB;;;SAGK;YACG,cAAc,CAAC,OAAO,CAAC;IAC/B;;OAEG;cACO,KAAK,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"NativeInput.d.ts","sourceRoot":"","sources":["../../src/controls/NativeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAiF/E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;SAGK;IACL,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACnC,GAAG,WAAW,GACb,IAAI,CACF,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACD,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW;cAnBZ,OAAO;IACjB,gFAAgF;uBAC7D,MAAM;IACzB;;;SAGK;YACG,cAAc,CAAC,OAAO,CAAC;IAC/B;;OAEG;cACO,KAAK,CAAC,iBAAiB;gNA8DlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/controls/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/controls/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAW/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA8CxD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC;;;;;;;SAOK;IACL,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uHAAuH;IACvH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,mHAAmH;IACnH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE;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,CAAC;IACF;;;OAGG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,GAAG,WAAW,GACb,IAAI,CACF,wBAAwB,EACxB,oBAAoB,GAAG,yBAAyB,GAAG,mBAAmB,CACvE,GACD,gBAAgB,GAChB,IAAI,CACF,mBAAmB,EACjB,QAAQ,GACR,SAAS,GACT,OAAO,GACP,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,iBAAiB,CACpB,GACD,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;AAE3E,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAkBhD,eAAO,MAAM,SAAS;IAvFpB;;OAEG;cACO,KAAK,CAAC,iBAAiB;IACjC;;;;;;;SAOK;gBACO,KAAK,CAAC,YAAY;IAC9B;;;OAGG;eACQ,OAAO;IAClB;;;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;oZA6R5B,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { Accordion } from '../Accordion';
|
|
|
12
12
|
import { AccordionItem } from '../AccordionItem';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
figma.connect(Accordion, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=148%3A2954', {
|
|
15
|
-
imports: ["import { Accordion } from '@coinbase/cds-web/accordion/Accordion'
|
|
15
|
+
imports: ["import { Accordion } from '@coinbase/cds-web/accordion/Accordion'", "import { AccordionItem } from '@coinbase/cds-web/accordion/AccordionItem'"],
|
|
16
16
|
props: {
|
|
17
17
|
subtitle: figma.boolean('show subtitle', {
|
|
18
18
|
true: figma.string('subtitle'),
|
|
@@ -8,7 +8,7 @@ import { figma } from '@figma/code-connect';
|
|
|
8
8
|
import { AvatarButton } from '../AvatarButton';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
figma.connect(AvatarButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=276-23400&m=dev', {
|
|
11
|
-
imports: ["import {AvatarButton} from '@coinbase/cds-web/buttons/AvatarButton'
|
|
11
|
+
imports: ["import {AvatarButton} from '@coinbase/cds-web/buttons/AvatarButton'"],
|
|
12
12
|
props: {
|
|
13
13
|
// state: figma.enum('state', {
|
|
14
14
|
// active: 'active',
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { Button } from '../Button';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(Button, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=89-3096&m=dev', {
|
|
13
|
-
imports: ["import { Button } from '@coinbase/cds-web/buttons/Button'
|
|
13
|
+
imports: ["import { Button } from '@coinbase/cds-web/buttons/Button'"],
|
|
14
14
|
props: {
|
|
15
15
|
variant: figma.enum('variant', {
|
|
16
16
|
primary: 'primary',
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { IconButton } from '../IconButton';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(IconButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=47-358&m=dev', {
|
|
13
|
-
imports: ["import {IconButton} from '@coinbase/cds-web/buttons/IconButton'
|
|
13
|
+
imports: ["import {IconButton} from '@coinbase/cds-web/buttons/IconButton'"],
|
|
14
14
|
props: {
|
|
15
15
|
variant: figma.enum('variant', {
|
|
16
16
|
primary: 'primary',
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { TileButton } from '../TileButton';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(TileButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=286%3A18370', {
|
|
14
|
-
imports: ["import { TileButton } from '@coinbase/cds-web/buttons/TileButton'
|
|
14
|
+
imports: ["import { TileButton } from '@coinbase/cds-web/buttons/TileButton'"],
|
|
15
15
|
props: {
|
|
16
16
|
title: figma.string('product text'),
|
|
17
17
|
children: figma.instance('product logo'),
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { ContentCard } from '../ContentCard';
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(ContentCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705%3A22920', {
|
|
14
|
-
imports: ["import { ContentCard } from '@coinbase/cds-web/cards/ContentCard/ContentCard'
|
|
14
|
+
imports: ["import { ContentCard } from '@coinbase/cds-web/cards/ContentCard/ContentCard'"],
|
|
15
15
|
props: {
|
|
16
16
|
header: figma.boolean('show card header', {
|
|
17
17
|
true: figma.children('.📦 ContentCardHeader'),
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { ContentCardBody } from '../ContentCardBody';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(ContentCardBody, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705-24336', {
|
|
14
|
-
imports: ["import { ContentCardBody } from '@coinbase/cds-web/cards/ContentCard/ContentCardBody'
|
|
14
|
+
imports: ["import { ContentCardBody } from '@coinbase/cds-web/cards/ContentCard/ContentCardBody'"],
|
|
15
15
|
props: {
|
|
16
16
|
body: figma.string('body'),
|
|
17
17
|
label: figma.string('label'),
|
|
@@ -21,7 +21,7 @@ import { ContentCardFooter } from '../ContentCardFooter';
|
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
const URL = 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705-24360';
|
|
23
23
|
figma.connect(ContentCardFooter, URL, {
|
|
24
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'
|
|
24
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'"],
|
|
25
25
|
variant: {
|
|
26
26
|
type: 'button'
|
|
27
27
|
},
|
|
@@ -41,7 +41,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
figma.connect(ContentCardFooter, URL, {
|
|
44
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'
|
|
44
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'", "import { RemoteImageGroup } from '@coinbase/cds-web/media/RemoteImageGroup'"],
|
|
45
45
|
variant: {
|
|
46
46
|
type: 'media + button'
|
|
47
47
|
},
|
|
@@ -59,7 +59,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
figma.connect(ContentCardFooter, URL, {
|
|
62
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'
|
|
62
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'", "import { Avatar } from '@coinbase/cds-web/media/Avatar'", "import { VStack } from '@coinbase/cds-web/layout/VStack'", "import { HStack } from '@coinbase/cds-web/layout/HStack'", "import { Text } from '@coinbase/cds-web/typography/Text'", "import { Text } from '@coinbase/cds-web/typography/Text'"],
|
|
63
63
|
variant: {
|
|
64
64
|
type: 'custom'
|
|
65
65
|
},
|
|
@@ -94,7 +94,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
figma.connect(ContentCardFooter, URL, {
|
|
97
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'
|
|
97
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'", "import { IconCounterButton } from '@coinbase/cds-web/buttons/IconCounterButton'", "import { HStack } from '@coinbase/cds-web/layout/HStack'"],
|
|
98
98
|
variant: {
|
|
99
99
|
type: 'engagement + button'
|
|
100
100
|
},
|
|
@@ -124,7 +124,7 @@ figma.connect(ContentCardFooter, URL, {
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
figma.connect(ContentCardFooter, URL, {
|
|
127
|
-
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'
|
|
127
|
+
imports: ["import { ContentCardFooter } from '@coinbase/cds-web/cards/ContentCard/ContentCardFooter'", "import { IconCounterButton } from '@coinbase/cds-web/buttons/IconCounterButton'", "import { HStack } from '@coinbase/cds-web/layout/HStack'"],
|
|
128
128
|
variant: {
|
|
129
129
|
type: 'engagement'
|
|
130
130
|
},
|
|
@@ -9,7 +9,7 @@ import { figma } from '@figma/code-connect';
|
|
|
9
9
|
import { ContentCardHeader } from '../ContentCardHeader';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
figma.connect(ContentCardHeader, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14705%3A24320', {
|
|
12
|
-
imports: ["import { ContentCardHeader } from '@coinbase/cds-web/cards/ContentCard/ContentCardHeader'
|
|
12
|
+
imports: ["import { ContentCardHeader } from '@coinbase/cds-web/cards/ContentCard/ContentCardHeader'"],
|
|
13
13
|
props: {
|
|
14
14
|
title: figma.string('metadata label'),
|
|
15
15
|
meta: figma.string('metadata'),
|
|
@@ -3,6 +3,7 @@ import { figma } from '@figma/code-connect';
|
|
|
3
3
|
import { AnnouncementCard } from '../AnnouncementCard';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
figma.connect(AnnouncementCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=61%3A956', {
|
|
6
|
+
imports: ["import { AnnouncementCard } from '@coinbase/cds-web/cards/AnnouncementCard'"],
|
|
6
7
|
props: {
|
|
7
8
|
showtopdivider29390: figma.boolean('show top divider'),
|
|
8
9
|
illustration5960: figma.instance('illustration'),
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { ContainedAssetCard } from '../ContainedAssetCard';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(ContainedAssetCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10084%3A2875', {
|
|
14
|
-
imports: ["import { ContainedAssetCard } from '@coinbase/cds-web/cards/ContainedAssetCard'
|
|
14
|
+
imports: ["import { ContainedAssetCard } from '@coinbase/cds-web/cards/ContainedAssetCard'"],
|
|
15
15
|
props: {
|
|
16
16
|
// showverified1025912: figma.boolean('↳ show verified'),
|
|
17
17
|
header: figma.instance('header'),
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { FloatingAssetCard } from '../FloatingAssetCard';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(FloatingAssetCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A3012', {
|
|
13
|
-
imports: ["import { FloatingAssetCard } from '@coinbase/cds-web/cards/FloatingAssetCard'
|
|
13
|
+
imports: ["import { FloatingAssetCard } from '@coinbase/cds-web/cards/FloatingAssetCard'"],
|
|
14
14
|
props: {
|
|
15
15
|
// showverified1025919: figma.boolean('↳ show verified'),
|
|
16
16
|
title: figma.string('title'),
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { NudgeCard } from '../NudgeCard';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(NudgeCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A4433', {
|
|
14
|
-
imports: ["import { NudgeCard } from '@coinbase/cds-web/cards/NudgeCard'
|
|
14
|
+
imports: ["import { NudgeCard } from '@coinbase/cds-web/cards/NudgeCard'"],
|
|
15
15
|
props: {
|
|
16
16
|
// onActionPress: figma.boolean('compact', {
|
|
17
17
|
// true: undefined,
|
|
@@ -11,7 +11,7 @@ import { useTheme } from '../../hooks/useTheme';
|
|
|
11
11
|
import { UpsellCard } from '../UpsellCard';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(UpsellCard, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10085%3A6279', {
|
|
14
|
-
imports: ["import { useTheme } from '@coinbase/cds-web/hooks/useTheme'
|
|
14
|
+
imports: ["import { useTheme } from '@coinbase/cds-web/hooks/useTheme'", "import { UpsellCard } from '@coinbase/cds-web/cards/UpsellCard'"],
|
|
15
15
|
props: {
|
|
16
16
|
media: figma.instance('media'),
|
|
17
17
|
// onDismissPress: figma.boolean('show dismiss', {
|
|
@@ -8,7 +8,7 @@ import { figma } from '@figma/code-connect';
|
|
|
8
8
|
import { ContentCell } from '../ContentCell';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
figma.connect(ContentCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=237-16238&m=dev', {
|
|
11
|
-
imports: ["import { ContentCell } from '@coinbase/cds-web/cells/ContentCell'
|
|
11
|
+
imports: ["import { ContentCell } from '@coinbase/cds-web/cells/ContentCell'"],
|
|
12
12
|
props: {
|
|
13
13
|
selected: figma.enum('state', {
|
|
14
14
|
selected: true
|
|
@@ -8,7 +8,7 @@ import { figma } from '@figma/code-connect';
|
|
|
8
8
|
import { ListCell } from '../ListCell';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=236-27897&m=dev', {
|
|
11
|
-
imports: ["import { ListCell } from '@coinbase/cds-web/cells/ListCell'
|
|
11
|
+
imports: ["import { ListCell } from '@coinbase/cds-web/cells/ListCell'"],
|
|
12
12
|
props: {
|
|
13
13
|
selected: figma.enum('state', {
|
|
14
14
|
selected: true
|
|
@@ -39,7 +39,7 @@ figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨
|
|
|
39
39
|
example: props => /*#__PURE__*/_jsx(ListCell, _objectSpread({}, props))
|
|
40
40
|
});
|
|
41
41
|
figma.connect(ListCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=236-28162&m=dev', {
|
|
42
|
-
imports: ["import { ListCell } from '@coinbase/cds-web/cells/ListCell'
|
|
42
|
+
imports: ["import { ListCell } from '@coinbase/cds-web/cells/ListCell'"],
|
|
43
43
|
props: {
|
|
44
44
|
selected: figma.enum('state', {
|
|
45
45
|
selected: true
|
|
@@ -9,19 +9,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
figma.connect(InputChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10177-5161&m=dev', {
|
|
10
10
|
imports: ["import { InputChip } from '@coinbase/cds-web/chips/InputChip'"],
|
|
11
11
|
props: {
|
|
12
|
-
children: figma.
|
|
12
|
+
children: figma.textContent('value'),
|
|
13
13
|
start: figma.boolean('show start', {
|
|
14
14
|
true: figma.instance('start'),
|
|
15
15
|
false: undefined
|
|
16
16
|
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
disabled: figma.enum('state', {
|
|
18
|
+
disabled: true,
|
|
19
|
+
default: false,
|
|
20
|
+
focused: false,
|
|
21
|
+
hovered: false,
|
|
22
|
+
pressed: false
|
|
23
|
+
}),
|
|
24
24
|
compact: figma.boolean('compact')
|
|
25
|
+
// NOTE: The Figma 'show label' property doesn't have a direct mapping.
|
|
26
|
+
// To hide the label in React, omit the `children` prop or pass undefined.
|
|
25
27
|
},
|
|
26
28
|
example: props => /*#__PURE__*/_jsx(InputChip, _objectSpread({
|
|
27
29
|
onClick: () => {}
|
|
@@ -13,14 +13,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
figma.connect(SelectChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=10177-5222&m=dev', {
|
|
14
14
|
imports: ["import { SelectChip } from '@coinbase/cds-web/chips'"],
|
|
15
15
|
props: {
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// focused: 'focused',
|
|
21
|
-
// open: 'open',
|
|
22
|
-
// }),
|
|
23
|
-
disabled: figma.boolean('disabled'),
|
|
16
|
+
// 'disabled' is derived from state='disabled' in Figma (not a separate boolean)
|
|
17
|
+
disabled: figma.enum('state', {
|
|
18
|
+
disabled: true
|
|
19
|
+
}),
|
|
24
20
|
active: figma.boolean('active'),
|
|
25
21
|
compact: figma.boolean('compact'),
|
|
26
22
|
start: figma.boolean('show start', {
|
|
@@ -28,6 +24,8 @@ figma.connect(SelectChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/
|
|
|
28
24
|
false: undefined
|
|
29
25
|
}),
|
|
30
26
|
end: figma.instance('end')
|
|
27
|
+
// Note: 'show label' property not mapped - React component always renders
|
|
28
|
+
// valueLabel, value, or placeholder text (no prop to hide the label).
|
|
31
29
|
},
|
|
32
30
|
example: props => {
|
|
33
31
|
const options = ['USD', 'CAD', 'GBP', 'JPY'];
|
|
@@ -40,6 +38,7 @@ figma.connect(SelectChip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/
|
|
|
40
38
|
});
|
|
41
39
|
return /*#__PURE__*/_jsx(SelectChip, _objectSpread(_objectSpread({}, props), {}, {
|
|
42
40
|
content: content,
|
|
41
|
+
disabled: props.disabled,
|
|
43
42
|
onChange: setValue,
|
|
44
43
|
value: value
|
|
45
44
|
}));
|
|
@@ -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-web/chips/TabbedChips'
|
|
7
|
+
imports: ["import { TabbedChips } from '@coinbase/cds-web/chips/TabbedChips'"],
|
|
8
8
|
props: {
|
|
9
9
|
overflow: figma.boolean('overflowing'),
|
|
10
10
|
platform: figma.enum('platform', {
|
|
@@ -12,7 +12,7 @@ import { Checkbox } from '../../controls';
|
|
|
12
12
|
import { Coachmark } from '../Coachmark';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
figma.connect(Coachmark, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=24997-8568', {
|
|
15
|
-
imports: ["import { Coachmark } from '@coinbase/cds-web/tour/Coachmark'
|
|
15
|
+
imports: ["import { Coachmark } from '@coinbase/cds-web/tour/Coachmark'"],
|
|
16
16
|
props: {
|
|
17
17
|
// onClose: figma.boolean('dismissable', {
|
|
18
18
|
// true: () => {},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["containerSpacing", "testID", "align", "onFocus", "onClick", "onBlur", "onKeyDown", "onChange", "accessibilityLabel", "accessibilityHint", "compact", "className", "style"];
|
|
1
|
+
const _excluded = ["containerSpacing", "testID", "align", "onFocus", "onClick", "onBlur", "onKeyDown", "onChange", "accessibilityLabel", "accessibilityLabelledBy", "accessibilityHint", "compact", "className", "style"];
|
|
2
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
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
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; }
|
|
@@ -24,6 +24,7 @@ export const NativeInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Na
|
|
|
24
24
|
onKeyDown,
|
|
25
25
|
onChange,
|
|
26
26
|
accessibilityLabel,
|
|
27
|
+
accessibilityLabelledBy,
|
|
27
28
|
accessibilityHint,
|
|
28
29
|
compact,
|
|
29
30
|
className,
|
|
@@ -42,6 +43,7 @@ export const NativeInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Na
|
|
|
42
43
|
ref: ref,
|
|
43
44
|
"aria-describedby": accessibilityHint,
|
|
44
45
|
"aria-label": accessibilityLabel,
|
|
46
|
+
"aria-labelledby": accessibilityLabelledBy,
|
|
45
47
|
className: cx(baseCss, containerSpacing !== null && containerSpacing !== void 0 ? containerSpacing : defaultContainerPadding, className),
|
|
46
48
|
"data-testid": testID,
|
|
47
49
|
onBlur: onBlur,
|
|
@@ -10,6 +10,7 @@ import React, { cloneElement, forwardRef, memo, useCallback, useMemo, useRef, us
|
|
|
10
10
|
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
11
11
|
import { usePrefixedId } from '@coinbase/cds-common/hooks/usePrefixedId';
|
|
12
12
|
import { cx } from '../cx';
|
|
13
|
+
import { Box } from '../layout/Box';
|
|
13
14
|
import { HStack } from '../layout/HStack';
|
|
14
15
|
import { Text } from '../typography/Text';
|
|
15
16
|
import { TextInputFocusVariantContext } from './context';
|
|
@@ -101,6 +102,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
101
102
|
}
|
|
102
103
|
return undefined;
|
|
103
104
|
}, [disabled, htmlInputElmProps.readOnly]);
|
|
105
|
+
const hasLabel = useMemo(() => !!label || !!labelNode, [label, labelNode]);
|
|
104
106
|
const inputElement = useMemo(() => {
|
|
105
107
|
/** Ensures that the renderedInput has the blurring, focusing, disabled features */
|
|
106
108
|
if (inputNode) {
|
|
@@ -126,7 +128,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
126
128
|
compact: compact,
|
|
127
129
|
containerSpacing: nativeInputContainerCss,
|
|
128
130
|
"data-compact": compact,
|
|
129
|
-
"data-labelvariant": compact || !
|
|
131
|
+
"data-labelvariant": compact || !hasLabel ? 'outside' : labelVariant,
|
|
130
132
|
"data-start": !!start || compact,
|
|
131
133
|
disabled: disabled,
|
|
132
134
|
id: shouldSetLabelId ? labelId : undefined,
|
|
@@ -134,7 +136,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
134
136
|
onFocus: handleOnFocus,
|
|
135
137
|
testID: testID
|
|
136
138
|
}, htmlInputElmProps));
|
|
137
|
-
}, [inputNode, refs, shouldSetHelperTextId, helperTextId, accessibilityLabel, label, align, variant, compact, labelVariant, start, disabled, shouldSetLabelId, labelId, handleOnBlur, handleOnFocus, testID, htmlInputElmProps]);
|
|
139
|
+
}, [inputNode, refs, shouldSetHelperTextId, helperTextId, accessibilityLabel, label, hasLabel, align, variant, compact, labelVariant, start, disabled, shouldSetLabelId, labelId, handleOnBlur, handleOnFocus, testID, htmlInputElmProps]);
|
|
138
140
|
return /*#__PURE__*/_jsx(TextInputFocusVariantContext.Provider, {
|
|
139
141
|
value: focused ? focusedVariant : undefined,
|
|
140
142
|
children: /*#__PURE__*/_jsx(InputStack, {
|
|
@@ -178,7 +180,13 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
178
180
|
}) : helperText),
|
|
179
181
|
inputBackground: readOnlyInputBackground !== null && readOnlyInputBackground !== void 0 ? readOnlyInputBackground : inputBackground,
|
|
180
182
|
inputNode: inputElement,
|
|
181
|
-
labelNode: !compact && (labelNode ?
|
|
183
|
+
labelNode: !compact && (labelNode ? labelVariant === 'inside' ? /*#__PURE__*/_jsx(Box, {
|
|
184
|
+
background: readOnlyInputBackground,
|
|
185
|
+
paddingEnd: 2,
|
|
186
|
+
paddingStart: start ? 0.5 : 2,
|
|
187
|
+
paddingTop: 1,
|
|
188
|
+
children: labelNode
|
|
189
|
+
}) : labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
182
190
|
background: labelVariant === 'inside' ? readOnlyInputBackground : undefined,
|
|
183
191
|
className: cx(labelVariant === 'inside' && insideLabelCss, labelVariant === 'inside' && !!start && insideLabelCssStartCss),
|
|
184
192
|
htmlFor: shouldSetLabelId ? labelId : undefined,
|
|
@@ -192,12 +200,12 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
192
200
|
gap: 2,
|
|
193
201
|
justifyContent: "center",
|
|
194
202
|
onClick: handleNodePress,
|
|
203
|
+
paddingStart: compact && hasLabel ? 2 : undefined,
|
|
195
204
|
testID: (_testIDMap$start = testIDMap === null || testIDMap === void 0 ? void 0 : testIDMap.start) !== null && _testIDMap$start !== void 0 ? _testIDMap$start : '',
|
|
196
|
-
children: [compact && !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
205
|
+
children: [compact && (labelNode ? labelNode : !!label && /*#__PURE__*/_jsx(InputLabel, {
|
|
197
206
|
htmlFor: shouldSetLabelId ? labelId : undefined,
|
|
198
|
-
paddingStart: 2,
|
|
199
207
|
children: label
|
|
200
|
-
}), !!start && /*#__PURE__*/_jsx(_Fragment, {
|
|
208
|
+
})), !!start && /*#__PURE__*/_jsx(_Fragment, {
|
|
201
209
|
children: start
|
|
202
210
|
})]
|
|
203
211
|
}),
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { CheckboxGroup } from '../CheckboxGroup';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(CheckboxGroup, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A10032', {
|
|
13
|
-
imports: ["import { CheckboxGroup } from '@coinbase/cds-web/controls/CheckboxGroup'
|
|
13
|
+
imports: ["import { CheckboxGroup } from '@coinbase/cds-web/controls/CheckboxGroup'"],
|
|
14
14
|
props: {
|
|
15
15
|
children: figma.children('*')
|
|
16
16
|
},
|
|
@@ -8,7 +8,7 @@ import { NativeTextArea } from '../NativeTextArea';
|
|
|
8
8
|
import { TextInput } from '../TextInput';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
figma.connect(NativeTextArea, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14089%3A46502', {
|
|
11
|
-
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'
|
|
11
|
+
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'", "import { NativeTextArea } from '@coinbase/cds-web/controls/NativeTextArea'"],
|
|
12
12
|
props: {
|
|
13
13
|
label: figma.boolean('show label', {
|
|
14
14
|
true: figma.string('↳ label string'),
|
|
@@ -25,7 +25,7 @@ figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E
|
|
|
25
25
|
figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
|
|
26
26
|
imports: ["import { RadioCell } from '@coinbase/cds-web/controls/RadioCell'"],
|
|
27
27
|
variant: {
|
|
28
|
-
|
|
28
|
+
selected: true
|
|
29
29
|
},
|
|
30
30
|
props: {
|
|
31
31
|
title: figma.string('title text'),
|
|
@@ -40,4 +40,44 @@ figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E
|
|
|
40
40
|
checked: true
|
|
41
41
|
}, props));
|
|
42
42
|
}
|
|
43
|
+
});
|
|
44
|
+
figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
|
|
45
|
+
imports: ["import { RadioCell } from '@coinbase/cds-web/controls/RadioCell'"],
|
|
46
|
+
variant: {
|
|
47
|
+
state: 'disabled'
|
|
48
|
+
},
|
|
49
|
+
props: {
|
|
50
|
+
title: figma.string('title text'),
|
|
51
|
+
description: figma.boolean('description', {
|
|
52
|
+
true: figma.string('description text'),
|
|
53
|
+
false: undefined
|
|
54
|
+
})
|
|
55
|
+
},
|
|
56
|
+
example: _ref3 => {
|
|
57
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
58
|
+
return /*#__PURE__*/_jsx(RadioCell, _objectSpread({
|
|
59
|
+
disabled: true
|
|
60
|
+
}, props));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
figma.connect(RadioCell, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/%E2%9C%A8-CDS-Components?node-id=54927-2624', {
|
|
64
|
+
imports: ["import { RadioCell } from '@coinbase/cds-web/controls/RadioCell'"],
|
|
65
|
+
variant: {
|
|
66
|
+
state: 'disabled',
|
|
67
|
+
selected: true
|
|
68
|
+
},
|
|
69
|
+
props: {
|
|
70
|
+
title: figma.string('title text'),
|
|
71
|
+
description: figma.boolean('description', {
|
|
72
|
+
true: figma.string('description text'),
|
|
73
|
+
false: undefined
|
|
74
|
+
})
|
|
75
|
+
},
|
|
76
|
+
example: _ref4 => {
|
|
77
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));
|
|
78
|
+
return /*#__PURE__*/_jsx(RadioCell, _objectSpread({
|
|
79
|
+
checked: true,
|
|
80
|
+
disabled: true
|
|
81
|
+
}, props));
|
|
82
|
+
}
|
|
43
83
|
});
|
|
@@ -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-web/controls/ControlGroup'
|
|
8
|
+
imports: ["import { ControlGroup } from '@coinbase/cds-web/controls/ControlGroup'", "import { Radio } from '@coinbase/cds-web/controls/Radio'"],
|
|
9
9
|
props: {
|
|
10
10
|
options: figma.enum('quantity', {
|
|
11
11
|
'1': [{
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { SearchInput } from '../SearchInput';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(SearchInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=67-767&m=dev', {
|
|
13
|
-
imports: ["import { SearchInput } from '@coinbase/cds-web/controls/SearchInput'
|
|
13
|
+
imports: ["import { SearchInput } from '@coinbase/cds-web/controls/SearchInput'"],
|
|
14
14
|
props: {
|
|
15
15
|
// state: figma.enum('state', {
|
|
16
16
|
// active: 'active',
|
|
@@ -7,7 +7,7 @@ import { figma } from '@figma/code-connect';
|
|
|
7
7
|
import { SelectOption } from '../SelectOption';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(SelectOption, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=244-11050&m=dev', {
|
|
10
|
-
imports: ["import { SelectOption } from '@coinbase/cds-web/controls'
|
|
10
|
+
imports: ["import { SelectOption } from '@coinbase/cds-web/controls'"],
|
|
11
11
|
props: {
|
|
12
12
|
disabled: figma.boolean('disabled'),
|
|
13
13
|
compact: figma.boolean('compact'),
|
|
@@ -7,7 +7,7 @@ import { figma } from '@figma/code-connect';
|
|
|
7
7
|
import { Switch } from '../Switch';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(Switch, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A9924', {
|
|
10
|
-
imports: ["import { Switch } from '@coinbase/cds-web/controls/Switch'
|
|
10
|
+
imports: ["import { Switch } from '@coinbase/cds-web/controls/Switch'"],
|
|
11
11
|
props: {
|
|
12
12
|
children: figma.boolean('show label', {
|
|
13
13
|
true: figma.string('↳ label'),
|
|
@@ -13,7 +13,7 @@ import { Link } from '../../typography';
|
|
|
13
13
|
import { TextInput } from '../TextInput';
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
|
|
16
|
-
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'
|
|
16
|
+
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'"],
|
|
17
17
|
props: {
|
|
18
18
|
align: figma.boolean('right align text', {
|
|
19
19
|
true: 'end',
|
|
@@ -68,7 +68,7 @@ figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
|
|
71
|
-
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'
|
|
71
|
+
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput'"],
|
|
72
72
|
variant: {
|
|
73
73
|
'show end': true,
|
|
74
74
|
'↳ show suffix': true
|
|
@@ -11,7 +11,7 @@ import { figma } from '@figma/code-connect';
|
|
|
11
11
|
import { DatePicker } from '../DatePicker';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
figma.connect(DatePicker, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=14743-53206&m=dev', {
|
|
14
|
-
imports: ["import { DatePicker } from '@coinbase/cds-web/dates/DatePicker'
|
|
14
|
+
imports: ["import { DatePicker } from '@coinbase/cds-web/dates/DatePicker'"],
|
|
15
15
|
props: {
|
|
16
16
|
disabled: figma.boolean('disabled'),
|
|
17
17
|
compact: figma.boolean('compact'),
|
|
@@ -7,7 +7,7 @@ import { figma } from '@figma/code-connect';
|
|
|
7
7
|
import { DotCount } from '../DotCount';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
figma.connect(DotCount, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A11976', {
|
|
10
|
-
imports: ["import { DotCount } from '@coinbase/cds-web/dots/DotCount'
|
|
10
|
+
imports: ["import { DotCount } from '@coinbase/cds-web/dots/DotCount'"],
|
|
11
11
|
props: {
|
|
12
12
|
count: figma.enum('type', {
|
|
13
13
|
'single digit': 1,
|
|
@@ -8,7 +8,7 @@ import { figma } from '@figma/code-connect';
|
|
|
8
8
|
import { DotStatusColor } from '../DotStatusColor';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
figma.connect(DotStatusColor, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A11983', {
|
|
11
|
-
imports: ["import { DotStatusColor } from '@coinbase/cds-web/dots/DotStatusColor'
|
|
11
|
+
imports: ["import { DotStatusColor } from '@coinbase/cds-web/dots/DotStatusColor'"],
|
|
12
12
|
props: {
|
|
13
13
|
variant: figma.enum('variant', {
|
|
14
14
|
positive: 'positive',
|
|
@@ -10,7 +10,7 @@ import { figma } from '@figma/code-connect';
|
|
|
10
10
|
import { DotSymbol } from '../DotSymbol';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
figma.connect(DotSymbol, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=155%3A12033', {
|
|
13
|
-
imports: ["import { DotSymbol } from'@coinbase/cds-web/dots/DotSymbol'
|
|
13
|
+
imports: ["import { DotSymbol } from'@coinbase/cds-web/dots/DotSymbol'"],
|
|
14
14
|
props: {
|
|
15
15
|
children: figma.enum('symbol size', {
|
|
16
16
|
l: figma.instance('48 media'),
|