Skip to content

Commit

Permalink
Unordered list working
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Nov 22, 2024
1 parent 539e4ef commit ff3e3b5
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 59 deletions.
1 change: 1 addition & 0 deletions packages/react/figma/Accordion.figma.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import figma from '@figma/code-connect'
import React from 'react'
import { Accordion } from '../src/Accordion/Accordion'
import { AccordionSection } from '../src/Accordion/AccordionSection'

Expand Down
70 changes: 70 additions & 0 deletions packages/react/figma/UnorderedList.figma.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import figma from '@figma/code-connect'
import React from 'react'
import { UnorderedList } from '../src/UnorderedList/UnorderedList'
import { UnorderedListItem } from '../src/UnorderedList/UnorderedListItem'

/**
* -- This file was auto-generated by `figma connect create` --
* `props` includes a mapping from Figma properties and variants to
* suggested values. You should update this to match the props of your
* code component, and update the `example` function to return the
* code example you'd like to see in Figma
*/

figma.connect(
UnorderedList,
'https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=24090-19658&node-type=frame&m=dev',
{
props: {
children: figma.children(['_Unordered list item']),
size: figma.enum('Size', {
Default: undefined,
Small: 'small',
}),
},
example: ({ children, size }) => <UnorderedList size={size}>{children}</UnorderedList>,
},
)

figma.connect(
UnorderedListItem,
'https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=24090-20028&node-type=frame&m=dev',
{
props: {
text: figma.string('Text'),
children: figma.children(['_Unordered list sub list']),
},
example: ({ text, children }) => (
<UnorderedList.Item>
{text}
{children}
</UnorderedList.Item>
),
},
)

figma.connect(
UnorderedList,
'https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=24093-1757&node-type=frame&m=dev',
{
props: {
children: figma.children(['_Unordered list sub item']),
size: figma.enum('Size', {
Default: undefined,
Small: 'small',
}),
},
example: ({ children, size }) => <UnorderedList size={size}>{children}</UnorderedList>,
},
)

figma.connect(
UnorderedListItem,
'https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=24093-1751&node-type=frame&m=dev',
{
props: {
text: figma.string('Text'),
},
example: ({ text }) => <UnorderedList.Item>{text}</UnorderedList.Item>,
},
)
37 changes: 0 additions & 37 deletions packages/react/src/Badge/Badge.figma.tsx

This file was deleted.

9 changes: 1 addition & 8 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
"strict": true,
"target": "es2020"
},
"include": [
"next-env.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"figma/Accordion.figma.tsx",
"figma/Button.figma.tsx",
"figma/Heading.figma.tsx"
],
"include": ["next-env.d.ts", "src/**/*.ts", "src/**/*.tsx", "figma/**/*.tsx"],
"exclude": ["node_modules"]
}
132 changes: 118 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff3e3b5

Please sign in to comment.