-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Showing
8 changed files
with
105 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'polaris.shopify.com': patch | ||
--- | ||
|
||
Update `AlphaCard` component docs |
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 was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
polaris.shopify.com/pages/examples/alpha-card-with-rounded-corners.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,15 @@ | ||
import {AlphaCard, Text} from '@shopify/polaris'; | ||
import React from 'react'; | ||
import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; | ||
|
||
function AlphaCardExample() { | ||
return ( | ||
<AlphaCard roundedAbove="md"> | ||
<Text as="h2" variant="bodyMd"> | ||
Content inside a card | ||
</Text> | ||
</AlphaCard> | ||
); | ||
} | ||
|
||
export default withPolarisExample(AlphaCardExample); |
15 changes: 15 additions & 0 deletions
15
polaris.shopify.com/pages/examples/alpha-card-with-subdued-background.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,15 @@ | ||
import {AlphaCard, Text} from '@shopify/polaris'; | ||
import React from 'react'; | ||
import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; | ||
|
||
function AlphaCardExample() { | ||
return ( | ||
<AlphaCard background="surface-subdued"> | ||
<Text as="h2" variant="bodyMd"> | ||
Content inside a card | ||
</Text> | ||
</AlphaCard> | ||
); | ||
} | ||
|
||
export default withPolarisExample(AlphaCardExample); |
46 changes: 46 additions & 0 deletions
46
polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.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 {AlphaCard, Text, AlphaStack} from '@shopify/polaris'; | ||
import React from 'react'; | ||
import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; | ||
|
||
function AlphaCardExample() { | ||
return ( | ||
<AlphaStack spacing="4" fullWidth> | ||
<AlphaCard> | ||
<Placeholder label="Content inside a card" /> | ||
</AlphaCard> | ||
<AlphaCard padding="4"> | ||
<Placeholder label="Content inside a card" /> | ||
</AlphaCard> | ||
<AlphaCard padding="2"> | ||
<Placeholder label="Content inside a card" /> | ||
</AlphaCard> | ||
<AlphaCard padding="0"> | ||
<Placeholder label="Content inside a card" /> | ||
</AlphaCard> | ||
</AlphaStack> | ||
); | ||
} | ||
|
||
const Placeholder = ({label = '', height = 'auto', width = 'auto'}) => { | ||
return ( | ||
<div | ||
style={{ | ||
background: '#7B47F1', | ||
height: height ?? undefined, | ||
width: width ?? undefined, | ||
}} | ||
> | ||
<div | ||
style={{ | ||
color: '#FFFFFF', | ||
}} | ||
> | ||
<Text as="h2" variant="bodyMd"> | ||
{label} | ||
</Text> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default withPolarisExample(AlphaCardExample); |
28 changes: 0 additions & 28 deletions
28
polaris.shopify.com/pages/examples/alpha-card-without-border-radius.tsx
This file was deleted.
Oops, something went wrong.