-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement code connect for segmentedControl and heading (#4849)
* implement code connect for segmentedControl * add AI icon * rebase main * wip * Update jest snapshots * test(vrt): update snapshots * Package updates/revert * Add another bump for needed icon * revert octicons * reset * reset snapshots * test(vrt): update snapshots * reset * snaps --------- Co-authored-by: Tyler Jones <[email protected]> Co-authored-by: TylerJDev <[email protected]> Co-authored-by: lukasoppermann <[email protected]> Co-authored-by: Katie Langerman <[email protected]>
- Loading branch information
1 parent
e990fdb
commit 83386f4
Showing
13 changed files
with
3,775 additions
and
1,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// // @ts-nocheck | ||
// import React from 'react' | ||
// import {ActionBar} from '..' | ||
// import figma from '@figma/code-connect' | ||
|
||
// figma.connect( | ||
// ActionBar, | ||
// 'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=17042-65810&t=ARVklwnsUc0zUmot-4', | ||
// { | ||
// props: { | ||
// items: figma.children(['ActionBar.IconButton', 'ActionBar.Divider']), | ||
// }, | ||
// example: ({items}) => <ActionBar>{items}</ActionBar>, | ||
// }, | ||
// ) | ||
|
||
// figma.connect( | ||
// ActionBar.IconButton, | ||
// 'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=35848-26016&m=dev', | ||
// { | ||
// props: { | ||
// iconButton: figma.nestedProps('IconButton', { | ||
// icon: figma.instance('icon'), | ||
// ariaLabel: figma.string('aria-label'), | ||
// }), | ||
// }, | ||
// example: ({iconButton}) => <ActionBar.IconButton icon={iconButton.icon} aria-label={iconButton.ariaLabel} />, | ||
// }, | ||
// ) | ||
|
||
// figma.connect( | ||
// ActionBar.Divider, | ||
// 'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=17042-65808&t=ARVklwnsUc0zUmot-4', | ||
// { | ||
// props: {}, | ||
// example: () => <ActionBar.Divider />, | ||
// }, | ||
// ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
import Heading from './Heading' | ||
import figma from '@figma/code-connect' | ||
|
||
figma.connect( | ||
Heading, | ||
'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=21069-78785&t=LhKEppN9LJfzQQ49-4', | ||
{ | ||
props: { | ||
text: figma.textContent('Text'), | ||
variant: figma.enum('variant', { | ||
large: 'large', | ||
medium: 'medium', | ||
small: 'small', | ||
}), | ||
}, | ||
example: ({text, variant}) => <Heading variant={variant}>{text}</Heading>, | ||
}, | ||
) |
Oops, something went wrong.