-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Evgeniy
committed
May 31, 2023
1 parent
1c6af7e
commit 03f9fee
Showing
61 changed files
with
3,505 additions
and
5,609 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 |
---|---|---|
|
@@ -66,3 +66,5 @@ typings/ | |
.DS_Store | ||
src/**/*.scss.d.ts | ||
src/**/*.css.d.ts | ||
|
||
.idea |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
'../docs/**/*.mdx', | ||
'../src/**/*.story.tsx' | ||
], | ||
addons: [ | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-essentials', | ||
|
||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {} | ||
} | ||
}; | ||
|
||
export default config; |
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.
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 { ThemeProvider, darkTheme } from '../src/utils/Theme'; | ||
import theme from './theme'; | ||
|
||
const withProvider = (Story, context) => ( | ||
<ThemeProvider value={darkTheme}> | ||
<Story {...context} /> | ||
</ThemeProvider> | ||
); | ||
|
||
const preview = { | ||
decorators: [withProvider], | ||
parameters: { | ||
layout: 'centered', | ||
controls: { hideNoControlsWarning: true }, | ||
docs: { | ||
theme | ||
} | ||
} | ||
}; | ||
|
||
export default preview; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { create } from '@storybook/theming/create'; | ||
|
||
export const theme = create({ | ||
export default create({ | ||
base: 'dark', | ||
brandTitle: 'reablocks' | ||
brandTitle: 'reablocks', | ||
brandUrl: 'https://github.com/reaviz/reablocks' | ||
}); |
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
7 changes: 3 additions & 4 deletions
7
docs/components/data/Ellipsis.story.mdx → docs/components/data/Ellipsis.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Meta, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Ellipsis } from '../../../src/data/Ellipsis'; | ||
import * as EllipsisStories from '../../../src/data/Ellipsis/Ellipsis.story' | ||
|
||
<Meta title="Docs/Components/Data/Ellipsis" /> | ||
|
||
# Ellipsis | ||
Simple ellipsis component that handles expanding text. | ||
|
||
## Example | ||
<Canvas withSource="open"> | ||
<Story id="components-data-ellipsis--simple" /> | ||
</Canvas> | ||
<Canvas sourceState="shown" of={EllipsisStories.Simple} /> | ||
|
||
## API | ||
<ArgsTable of={Ellipsis} /> |
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
7 changes: 3 additions & 4 deletions
7
docs/components/data/Pluralize.story.mdx → docs/components/data/Pluralize.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Meta, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Pluralize } from '../../../src/data/Pluralize'; | ||
import * as PluralizeStories from '../../../src/data/Pluralize/Pluralize.story' | ||
|
||
<Meta title="Docs/Components/Data/Pluralize" /> | ||
|
||
# Pluralize | ||
Render nouns in singular or plural form. | ||
|
||
## Example | ||
<Canvas withSource="open"> | ||
<Story id="components-data-pluralize--simple" /> | ||
</Canvas> | ||
<Canvas sourceState="shown" of={PluralizeStories.Simple}/> | ||
|
||
## API | ||
<ArgsTable of={Pluralize} /> |
7 changes: 3 additions & 4 deletions
7
docs/components/data/Redact.story.mdx → docs/components/data/Redact.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Meta, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Redact } from '../../../src/data/Redact'; | ||
import * as RedactStories from '../../../src/data/Redact/Redact.story' | ||
|
||
<Meta title="Docs/Components/Data/Redact" /> | ||
|
||
# Redact | ||
A simple component that will intelligently redact text using [coverup](https://www.npmjs.com/package/coverup). | ||
|
||
## Example | ||
<Canvas withSource="open"> | ||
<Story id="components-data-redact--basic" /> | ||
</Canvas> | ||
<Canvas sourceState="shown" of={RedactStories.Basic} /> | ||
|
||
## API | ||
<ArgsTable of={Redact} /> |
7 changes: 3 additions & 4 deletions
7
docs/components/data/Sort.story.mdx → docs/components/data/Sort.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Meta, Canvas, ArgsTable } from '@storybook/addon-docs'; | ||
import { Sort } from '../../../src/data/Sort'; | ||
import * as SortStories from '../../../src/data/Sort/Sort.story'; | ||
|
||
<Meta title="Docs/Components/Data/Sort" /> | ||
|
||
# Sort | ||
A simple component that shows the sort direction and allows toggling. | ||
|
||
## Example | ||
<Canvas withSource="open"> | ||
<Story id="components-data-sort--simple" /> | ||
</Canvas> | ||
<Canvas sourceState="shown" of={SortStories.Simple} /> | ||
|
||
## API | ||
<ArgsTable of={Sort} /> |
7 changes: 3 additions & 4 deletions
7
docs/components/elements/Avatar.story.mdx → docs/components/elements/Avatar.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
7 changes: 3 additions & 4 deletions
7
...components/elements/AvatarGroup.story.mdx → docs/components/elements/AvatarGroup.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
11 changes: 6 additions & 5 deletions
11
docs/components/elements/Button.story.mdx → docs/components/elements/Button.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
Oops, something went wrong.