generated from vtex-sites/base.store
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FS-358-feat/Add-product-title-from-faststore' of https:…
…//github.com/vtex-sites/gatsby.store into FS-358-feat/Add-product-title-from-faststore
- Loading branch information
Showing
37 changed files
with
1,176 additions
and
468 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
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
97 changes: 97 additions & 0 deletions
97
src/components/skeletons/FilterSkeleton/FilterSkeleton.stories.mdx
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,97 @@ | ||
import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs' | ||
import { | ||
TokenTable, | ||
TokenRow, | ||
TokenDivider, | ||
} from 'src/../.storybook/components' | ||
import FilterSkeleton from '.' | ||
|
||
<Meta | ||
component={FilterSkeleton} | ||
title="Features/Skeletons/FilterSkeleton" | ||
argTypes={{ | ||
loading: { | ||
control: 'boolean', | ||
table: { type: 'boolean', summary: true }, | ||
}, | ||
}} | ||
/> | ||
|
||
export const TemplateFilterSkeleton = ({ ...args }) => ( | ||
<FilterSkeleton {...args} /> | ||
) | ||
|
||
<header> | ||
|
||
# Filter Skeleton | ||
|
||
The loading placeholder for the <code>Filter</code> component used in PLP. | ||
|
||
</header> | ||
|
||
## Overview | ||
|
||
The `FilterSkeleton` component is part of [Skeletons](?path=/docs/features-skeletons-overview--usage) feature. | ||
|
||
--- | ||
|
||
## Usage | ||
|
||
`import FilterSkeleton from 'src/components/skeletons/FilterSkeleton'` | ||
|
||
<Canvas className="canvas-filter-skeleton"> | ||
<Story name="Usage" args={{ loading: true }}> | ||
{TemplateFilterSkeleton.bind({})} | ||
</Story> | ||
</Canvas> | ||
|
||
<ArgsTable story="Usage" /> | ||
|
||
--- | ||
|
||
<TokenTable> | ||
<TokenRow | ||
token="--fs-filter-skeleton-margin-top" | ||
value="var(--fs-spacing-1)" | ||
/> | ||
</TokenTable> | ||
|
||
### Title | ||
|
||
<TokenTable> | ||
<TokenRow token="--fs-filter-skeleton-title-max-width" value="30%" /> | ||
<TokenRow | ||
token="--fs-filter-skeleton-title-margin-bottom" | ||
value="var(--fs-spacing-2)" | ||
/> | ||
</TokenTable> | ||
|
||
### Content | ||
|
||
<TokenTable> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-min-height" | ||
value="var(--fs-spacing-8)" | ||
/> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-margin-bottom" | ||
value="var(--fs-spacing-0)" | ||
/> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-padding" | ||
value="var(--fs-spacing-1) var(--fs-spacing-1) var(--fs-spacing-0)" | ||
/> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-border-width" | ||
value="var(--fs-border-width)" | ||
/> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-border-color" | ||
value="var(--fs-border-color-light)" | ||
isColor | ||
/> | ||
<TokenRow | ||
token="--fs-filter-skeleton-content-border-radius" | ||
value="var(--fs-border-radius)" | ||
/> | ||
</TokenTable> |
22 changes: 13 additions & 9 deletions
22
src/components/skeletons/FilterSkeleton/FilterSkeleton.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
Oops, something went wrong.