-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52c1553
commit 053441e
Showing
35 changed files
with
1,117 additions
and
438 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 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,21 @@ | ||
import { figma } from "@figma/code-connect"; | ||
import { Flow, Layout } from "ui"; | ||
import { StandardFooter } from "./Footers"; | ||
|
||
const FIGMA_URL_STANDARD_FOOTER = | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=7717-4142&t=nZCpXAWLyKWF2wPs-11"; | ||
|
||
figma.connect(StandardFooter, FIGMA_URL_STANDARD_FOOTER, { | ||
props: { | ||
left: figma.children(["Logo", "Button Group"]), | ||
lists: figma.children(["Text Link List"]), | ||
}, | ||
example: ({ lists, left }) => ( | ||
<StandardFooter> | ||
<Layout gap="xl" alignSecondary="start"> | ||
<Flow gap="lg">{left}</Flow> | ||
{lists} | ||
</Layout> | ||
</StandardFooter> | ||
), | ||
}); |
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,8 @@ | ||
import { Section, type SectionProps } from "ui"; | ||
|
||
export type StandardFooterProps = Omit<SectionProps, "variant" | "padding">; | ||
export function StandardFooter({ className, ...props }: StandardFooterProps) { | ||
return ( | ||
<Section elementType="footer" variant="stroke" padding="sm" {...props} /> | ||
); | ||
} |
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,111 @@ | ||
import { figma } from "@figma/code-connect"; | ||
import { Card, Flow, Form, Layout } from "ui"; | ||
|
||
// Shipping Form | ||
figma.connect( | ||
Layout, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=9762-3140&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children([ | ||
"Legend", | ||
"Description", | ||
"Input Field", | ||
"Select Field", | ||
"Text Area Field", | ||
"Switch Field", | ||
"Checkbox Field", | ||
"Button Group", | ||
]), | ||
}, | ||
example: ({ children }) => ( | ||
<Card variant="padded"> | ||
<Flow gap="sm">{children}</Flow> | ||
</Card> | ||
), | ||
}, | ||
); | ||
|
||
// Contact Form | ||
figma.connect( | ||
Layout, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=56-15992&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children([ | ||
"Input Field", | ||
"Text Area Field", | ||
"Button Group", | ||
]), | ||
}, | ||
example: ({ children }) => ( | ||
<Card variant="padded"> | ||
<Flow gap="sm">{children}</Flow> | ||
</Card> | ||
), | ||
}, | ||
); | ||
|
||
// Newsletter Form | ||
figma.connect( | ||
Form, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=56-15991&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children(["Input Field", "Button"]), | ||
}, | ||
example: ({ children }) => <Form singleLine>{children}</Form>, | ||
}, | ||
); | ||
|
||
// Log in Form | ||
figma.connect( | ||
Layout, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=2143-14838&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children(["Input Field", "Button Group"]), | ||
}, | ||
example: ({ children }) => ( | ||
<Card variant="padded"> | ||
<Flow gap="sm">{children}</Flow> | ||
</Card> | ||
), | ||
}, | ||
); | ||
|
||
// Register Form | ||
figma.connect( | ||
Layout, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=2143-14829&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children([ | ||
"Input Field", | ||
"Checkbox Field", | ||
"Button Group", | ||
]), | ||
}, | ||
example: ({ children }) => ( | ||
<Card variant="padded"> | ||
<Flow gap="sm">{children}</Flow> | ||
</Card> | ||
), | ||
}, | ||
); | ||
|
||
// Forgot Password Form | ||
figma.connect( | ||
Layout, | ||
"https://staging.figma.com/design/YfiqA0yWMXuLJAzkZNpBdy/SDS?node-id=2143-14939&t=qJR3PLmBgMwoBka4-11", | ||
{ | ||
props: { | ||
children: figma.children(["Input Field", "Button Group"]), | ||
}, | ||
example: ({ children }) => ( | ||
<Card variant="padded"> | ||
<Flow gap="sm">{children}</Flow> | ||
</Card> | ||
), | ||
}, | ||
); |
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
Empty file.
Oops, something went wrong.