-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add page templates to website (#3484)
- Loading branch information
Showing
33 changed files
with
815 additions
and
231 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
43 changes: 43 additions & 0 deletions
43
packages/paste-website/src/components/ingredients/Ingredients.tsx
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,43 @@ | ||
import * as React from 'react'; | ||
import {Box} from '@twilio-paste/box'; | ||
import {Card} from '@twilio-paste/card'; | ||
|
||
interface ListProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Ingredients: React.FC<ListProps> = ({children}) => { | ||
return ( | ||
<Box display="flex" flexDirection="row" columnGap="space130" justifyContent="center" marginBottom="space70"> | ||
{children} | ||
</Box> | ||
); | ||
}; | ||
|
||
const Required: React.FC<ListProps> = ({children}) => { | ||
return ( | ||
<Box maxWidth="size40"> | ||
<Card padding="space0"> | ||
<Box paddingX="space70" paddingBottom="space40" paddingTop="space60"> | ||
<strong>Required</strong> | ||
{children} | ||
</Box> | ||
</Card> | ||
</Box> | ||
); | ||
}; | ||
|
||
const Related: React.FC<ListProps> = ({children}) => { | ||
return ( | ||
<Box maxWidth="size40"> | ||
<Card padding="space0"> | ||
<Box paddingX="space70" paddingBottom="space40" paddingTop="space60"> | ||
<strong>Related</strong> | ||
{children} | ||
</Box> | ||
</Card> | ||
</Box> | ||
); | ||
}; | ||
|
||
export {Ingredients, Required, Related}; |
46 changes: 46 additions & 0 deletions
46
packages/paste-website/src/components/ingredients/ObjectDetailsIngredients.tsx
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,46 @@ | ||
import * as React from 'react'; | ||
import {UnorderedList, ListItem} from '@twilio-paste/list'; | ||
import {Anchor} from '@twilio-paste/anchor'; | ||
|
||
import {Ingredients, Required, Related} from './Ingredients'; | ||
|
||
const ObjectDetailsIngredients: React.FC = () => { | ||
return ( | ||
<Ingredients> | ||
<Required> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/breadcrumb">Breadcrumb</Anchor> and{' '} | ||
<Anchor href="/components/heading">Heading</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/description-list">Description List</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/stack">Stack</Anchor> and <Anchor href="/components/grid">Grid</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Required> | ||
<Related> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/anchor">Anchor</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/button">Button</Anchor> and{' '} | ||
<Anchor href="components/button-group">Button Group</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/in-page-navigation">In Page Navigation</Anchor> and{' '} | ||
<Anchor href="/components/tabs">Tabs</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/icon">Icon: Information</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Related> | ||
</Ingredients> | ||
); | ||
}; | ||
|
||
export {ObjectDetailsIngredients}; |
64 changes: 64 additions & 0 deletions
64
packages/paste-website/src/components/ingredients/ObjectsListIngredients.tsx
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,64 @@ | ||
import * as React from 'react'; | ||
import {UnorderedList, ListItem} from '@twilio-paste/list'; | ||
import {Anchor} from '@twilio-paste/anchor'; | ||
|
||
import {Ingredients, Required, Related} from './Ingredients'; | ||
|
||
const ObjectsListIngredients: React.FC = () => { | ||
return ( | ||
<Ingredients> | ||
<Required> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/breadcrumb">Breadcrumb</Anchor> and{' '} | ||
<Anchor href="/components/heading">Heading</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/data-grid">Data Grid</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Required> | ||
<Related> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/anchor">Anchor</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/button">Button</Anchor> and{' '} | ||
<Anchor href="components/button-group">Button Group</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/in-page-navigation">In Page Navigation</Anchor> and{' '} | ||
<Anchor href="/components/tabs">Tabs</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/paragraph">Paragraph</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/icon">Icons: Export, Filter, More, Search</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/patterns/filter-group">Filter group pattern</Anchor> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/select">Select</Anchor> and{' '} | ||
<Anchor href="/components/combobox">Combobox</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/separator">Separator</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/input">Input</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/patterns/data-export">Data export pattern</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Related> | ||
</Ingredients> | ||
); | ||
}; | ||
|
||
export {ObjectsListIngredients}; |
77 changes: 77 additions & 0 deletions
77
packages/paste-website/src/components/ingredients/SettingsIngredients.tsx
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,77 @@ | ||
import * as React from 'react'; | ||
import {UnorderedList, ListItem} from '@twilio-paste/list'; | ||
import {Anchor} from '@twilio-paste/anchor'; | ||
|
||
import {Ingredients, Required, Related} from './Ingredients'; | ||
|
||
const SettingsIngredients: React.FC = () => { | ||
return ( | ||
<Ingredients> | ||
<Required> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/breadcrumb">Breadcrumb</Anchor> and{' '} | ||
<Anchor href="/components/heading">Heading</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/form">Form</Anchor> and form elements like{' '} | ||
<Anchor href="/components/input">Input</Anchor>, <Anchor href="/components/checkbox">Checkbox</Anchor>,{' '} | ||
<Anchor href="/components/radio-group">Radio Group</Anchor>,{' '} | ||
<Anchor href="/components/select">Select</Anchor>, <Anchor href="/components/combobox">Combobox</Anchor>,{' '} | ||
<Anchor href="/components/textarea">Textarea</Anchor>,{' '} | ||
<Anchor href="/components/date-picker">Date Picker</Anchor>,{' '} | ||
<Anchor href="/components/time-picker">Time Picker</Anchor>,{' '} | ||
<Anchor href="/components/help-text">Help Text</Anchor>, and <Anchor href="/components/label">Label</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/button">Button</Anchor> and{' '} | ||
<Anchor href="/components/button-group">Button Group</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Required> | ||
<Related> | ||
<UnorderedList> | ||
<ListItem> | ||
<Anchor href="/components/anchor">Anchor</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/avatar">Avatar</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/badge">Badge</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/callout">Callout</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/card">Card</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/description-list">Description List</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/in-page-navigation">In Page Navigation</Anchor> and{' '} | ||
<Anchor href="/components/tabs">Tabs</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/modal">Modal</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/paragraph">Paragraph</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/separator">Separator</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/switch">Switch</Anchor> | ||
</ListItem> | ||
<ListItem> | ||
<Anchor href="/components/icon">Icons: Information, Copy, Edit</Anchor> | ||
</ListItem> | ||
</UnorderedList> | ||
</Related> | ||
</Ingredients> | ||
); | ||
}; | ||
|
||
export {SettingsIngredients}; |
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
Oops, something went wrong.