-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from gridaco/insiders-integrations/storybook
Insiders integrations/storybook - minimal storybook setup
- Loading branch information
Showing
6 changed files
with
4,683 additions
and
210 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,7 @@ | ||
module.exports = { | ||
stories: [ | ||
"../app/lib/components/**/*.stories.mdx", | ||
"../app/lib/components/**/*.stories.@(js|jsx|ts|tsx)", | ||
], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"], | ||
}; |
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,9 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
} |
21 changes: 21 additions & 0 deletions
21
app/lib/components/navigation/navigator-expansion-control-button.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,21 @@ | ||
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks"; | ||
import { NavigatorExpansionControlButton } from "./navigator-expansion-control-button"; | ||
|
||
<Meta title="navigation/navigator-expansion-control-button" /> | ||
|
||
Close or expand button used for global navigation. | ||
|
||
# Preview | ||
|
||
<Preview> | ||
<Story name="expand"> | ||
<NavigatorExpansionControlButton action="expand" /> | ||
</Story> | ||
<Story name="close"> | ||
<NavigatorExpansionControlButton action="close" /> | ||
</Story> | ||
</Preview> | ||
|
||
# Props | ||
|
||
<Props of={NavigatorExpansionControlButton} /> |
32 changes: 32 additions & 0 deletions
32
app/lib/components/navigation/primary-workmode-select.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,32 @@ | ||
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks"; | ||
import { PrimaryWorkmodeSelect } from "./primary-workmode-select"; | ||
|
||
<Meta title="navigation/primary-workmode-select" /> | ||
|
||
Primary workmode selector for navigation. | ||
|
||
# Preview | ||
|
||
<Preview> | ||
<Story name="default"> | ||
<PrimaryWorkmodeSelect | ||
set={{ | ||
first: "code", | ||
second: "design", | ||
}} | ||
selection={"code"} | ||
/> | ||
</Story> | ||
<Story name="no selection (for development)"> | ||
<PrimaryWorkmodeSelect | ||
set={{ | ||
first: "code", | ||
second: "design", | ||
}} | ||
/> | ||
</Story> | ||
</Preview> | ||
|
||
# Props | ||
|
||
<Props of={PrimaryWorkmodeSelect} /> |
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,50 +1,61 @@ | ||
{ | ||
"name": "@grida.co/assistant", | ||
"version": "0.1.0", | ||
"private": true, | ||
"license": "https://github.com/bridgedxyz/contributing-and-license", | ||
"description": "Grida assistant mono repository. for figma, sketch, zeplin.", | ||
"workspaces": { | ||
"packages": [ | ||
"app", | ||
"figma", | ||
"figma-core", | ||
"figma-native", | ||
"sketch", | ||
"web", | ||
"webdev", | ||
"xd", | ||
"packages/*", | ||
"packages/reflect-core/packages/*", | ||
"packages/design-sdk/*", | ||
"packages/base-sdk/*", | ||
"packages/base-sdk/_firstparty/*", | ||
"packages/reflect-core/packages/*", | ||
"packages/design-to-code/packages/designto-*", | ||
"packages/design-to-code/packages/builder-config", | ||
"packages/design-to-code/packages/coli/packages/*", | ||
"packages/design-to-code/packages/coli-web-builder/*", | ||
"packages/design-to-code/packages/reflect-detection" | ||
] | ||
}, | ||
"repository": "https://github.com/gridaco/assistant", | ||
"author": "Grida.co, bridged.xyz softmarshmallow <[email protected]>", | ||
"scripts": { | ||
"pull:all": "git submodule update --init --recursive", | ||
"figma-native": "yarn workspace figma-native run webpack:watch", | ||
"figma": "yarn workspace figma run build:dev && yarn web", | ||
"build:figma:prod": "yarn workspace figma run build", | ||
"sketch": "yarn workspace sketch run render", | ||
"web": "yarn workspace web run dev", | ||
"xd": "yarn workspace xd run build", | ||
"test": "cd figma-native && yarn build" | ||
}, | ||
"collective": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/bridged", | ||
"logo": "https://opencollective.com/bridged/logo.txt" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
} | ||
"name": "@grida.co/assistant", | ||
"version": "0.1.0", | ||
"private": true, | ||
"license": "https://github.com/bridgedxyz/contributing-and-license", | ||
"description": "Grida assistant mono repository. for figma, sketch, zeplin.", | ||
"workspaces": { | ||
"packages": [ | ||
"app", | ||
"figma", | ||
"figma-core", | ||
"figma-native", | ||
"sketch", | ||
"web", | ||
"webdev", | ||
"xd", | ||
"packages/*", | ||
"packages/reflect-core/packages/*", | ||
"packages/design-sdk/*", | ||
"packages/base-sdk/*", | ||
"packages/base-sdk/_firstparty/*", | ||
"packages/reflect-core/packages/*", | ||
"packages/design-to-code/packages/designto-*", | ||
"packages/design-to-code/packages/builder-config", | ||
"packages/design-to-code/packages/coli/packages/*", | ||
"packages/design-to-code/packages/coli-web-builder/*", | ||
"packages/design-to-code/packages/reflect-detection" | ||
] | ||
}, | ||
"repository": "https://github.com/gridaco/assistant", | ||
"author": "Grida.co, bridged.xyz softmarshmallow <[email protected]>", | ||
"scripts": { | ||
"pull:all": "git submodule update --init --recursive", | ||
"figma-native": "yarn workspace figma-native run webpack:watch", | ||
"figma": "yarn workspace figma run build:dev && yarn web", | ||
"build:figma:prod": "yarn workspace figma run build", | ||
"sketch": "yarn workspace sketch run render", | ||
"web": "yarn workspace web run dev", | ||
"xd": "yarn workspace xd run build", | ||
"test": "cd figma-native && yarn build", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook" | ||
}, | ||
"collective": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/bridged", | ||
"logo": "https://opencollective.com/bridged/logo.txt" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.15.5", | ||
"@storybook/addon-actions": "^6.3.8", | ||
"@storybook/addon-essentials": "^6.3.8", | ||
"@storybook/addon-links": "^6.3.8", | ||
"@storybook/react": "^6.3.8", | ||
"babel-loader": "^8.2.2" | ||
}, | ||
"dependencies": {} | ||
} |
Oops, something went wrong.
1175757
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: