Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ add storybook to cli #1561

Open
wants to merge 183 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 92 commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
0d4e33c
Storybook support
XavierGeerinck Jan 25, 2023
8b42574
build(storybook): :arrow_up: upgrade Storybook to v7.0.26
lloydrichards Jul 10, 2023
6e1af2e
refactor(storybook): :recycle: move stories out of /registry
lloydrichards Jul 10, 2023
406a675
refactor(storybook): :arrow_up: change to @storybook/nextjs
lloydrichards Jul 10, 2023
a41c81e
fix(storybook): :bug: fix single story in mdx
lloydrichards Jul 10, 2023
49708ff
fix(storybook): :bug: get tailwind and nextjs working with storybook
lloydrichards Jul 11, 2023
e9a86d5
refactor(storybook): :recycle: changed stories from MDX to CSF3
lloydrichards Jul 11, 2023
8c120e4
ci: :green_heart: format prettier
lloydrichards Jul 11, 2023
3754b0b
ci: :green_heart: lock unist-builder to v3.0.0
lloydrichards Jul 11, 2023
fc966fc
chore: :recycle: nit fixes for dependancies and comments
lloydrichards Jul 13, 2023
e520dde
feat(ui): :sparkles: added typography for NewYork style
lloydrichards Jul 13, 2023
1f16ddf
fix(storybook): :bug: globally set font variable
lloydrichards Jul 13, 2023
205868a
build: :arrow_up: upgrade storybook to v7.0.27
lloydrichards Jul 13, 2023
7b23b74
ci: :green_heart: formatted preview.tsx
lloydrichards Jul 13, 2023
6f61b2c
feat(storybook): :sparkles: added storybook files to registry and CLI
lloydrichards Jul 16, 2023
22630e3
fix: :white_check_mark: fix get-config.test.ts
lloydrichards Jul 16, 2023
9db924a
refactor(ui): :fire: remove typography component
lloydrichards Sep 19, 2023
dbc0c74
docs(www): improve astro guide (#858)
lgastler Jul 12, 2023
893f918
docs(www): update label in card demo (#799)
0ui Jul 12, 2023
b90ca86
docs(www): add typescript configuration question to cli docs (#898)
pedrovrima Jul 12, 2023
0058410
ci: rename repo owner (#1056)
shadcn Jul 27, 2023
8ab8458
docs(www): update import path next.mdx (#1062)
munan56 Jul 28, 2023
b163b6b
fix(www): overflow issue in documentation (#1055)
dev-shetty Jul 28, 2023
cbf7c90
fix(www): responsive cards (#1066)
shadcn Jul 28, 2023
0d55bd5
fix(combobox): search language by label in examples (#989)
limitless-dev Jul 30, 2023
6dfbe1b
fix(alert): padding on Firefox (#1059)
AntsiferovMaxim Jul 30, 2023
7b81ca6
style(card): remove extra spacing (#1082)
bernaferrari Aug 1, 2023
17aad57
fix(next-template): remove experimental `appdir` (#979)
vinaykulk621 Aug 1, 2023
3f6e1d1
docs(www): update import path for button (#839)
GrungeElFz Aug 3, 2023
71b30cb
docs(www): add dark mode for Vite. (#814)
stylessh Aug 3, 2023
c763815
docs(www): add missing "command" component to imports (#550)
rudyorre Aug 3, 2023
15f5bf2
fix(examples): update keyboard shortcut for opening dialog on Windows…
vinaykulk621 Aug 3, 2023
75c1404
docs(www): update import in remix installation (#974)
gutenye Aug 3, 2023
3c4631b
docs(www): add api reference for components.json (#982)
plbstl Aug 4, 2023
998d717
docs(www): fix typo
shadcn Aug 4, 2023
139088d
feat: themes (#1135)
shadcn Aug 7, 2023
7e70e51
fix: remove semicolon duplicated in theme.css (#1146)
torn4dom4n Aug 15, 2023
5a0e8a9
fix(www): extra semi
shadcn Aug 15, 2023
2f28cbc
fix(docs): missing form manual installation and aspect-ratio typo (#1…
dan5py Aug 16, 2023
a1a4b7a
fix(docs): add missing files in toast manual installation (#1243)
dan5py Aug 16, 2023
d5849b8
fix(www): payment method :has selector not working on Firefox (#1209)
alonsourena Aug 16, 2023
afc669f
fix(www): error in color values for slaet (#1224)
zsio Aug 17, 2023
566019e
docs(www): @hookform/resolvers installation missing (#1257)
edgarasben Aug 17, 2023
056f798
docs(www): remove unused `Link` import in form docs. (#1251)
vinaykulk621 Aug 17, 2023
f24b5be
fix(www): issue with border radius in component preview (#1265)
shadcn Aug 17, 2023
c9d9f04
docs: add contributing guide (#1266)
shadcn Aug 17, 2023
aac8557
docs: update CONTRIBUTING.md
shadcn Aug 17, 2023
eff5439
fix(toast): toast add missing text color class (#1162)
1danii Aug 17, 2023
3f388c9
docs(www): fix typo (#1270)
jsparkdev Aug 17, 2023
96cbe27
chore: remove a duplicate call in init.test (#1319)
K-Sato1995 Aug 24, 2023
c83bba8
chore(www): remove unneccesary imports (#1311)
dev-shetty Aug 24, 2023
cbb7975
docs(www): add Laravel install docs (#1279)
rcrosbourne Aug 24, 2023
75afc2b
fix(www): don't allow empty chat messages (#1137)
kevinmitch14 Aug 25, 2023
1675b7c
fix(scroll-area): missing key prop error (#1295)
SoyDiego Aug 25, 2023
13567bc
docs(www): update dark-mode for vite (#1118)
sankaSanjeeva Aug 26, 2023
946eb89
docs(www): update contrubuting.md and next.mdx (#1343)
NikharPandya Aug 31, 2023
9096d33
docs(www): update cli add options (#1484)
rajarju Sep 18, 2023
9e8f114
docs(www): update manual.mdx (#1471)
xbtmd Sep 18, 2023
9e8b34d
fix(www): rename DataTableFacetedFilter interface (#1438)
wobsoriano Sep 18, 2023
13fcaf3
docs(www): add missing prop to ThemeProvider (#1447)
RahimGuerfi Sep 18, 2023
95793b2
fix(www): enable input editing in the dialog demo (#1428)
yportfolio Sep 18, 2023
db35a19
fix(cli): deduplicate classNames in applyColorMapping (#1089)
santidalmasso Sep 19, 2023
100bc62
fix(cli): handle ts file extension (#1466)
c0b41 Sep 19, 2023
cc54329
feat(cli): support adding all components via CLI (#1033)
sramam Sep 19, 2023
cee0c25
feat(cli): add overwrite confirmation for existing components (#973)
plbstl Sep 19, 2023
b6e7468
chore: update repo for changeset
shadcn Sep 19, 2023
13ca8bd
feat(cli): do not ask for confirmation (#1554)
shadcn Sep 19, 2023
ce599fd
docs(cli): update link to documentation (#1555)
shadcn Sep 19, 2023
98606ef
chore(release): version packages (#1556)
github-actions[bot] Sep 19, 2023
354542b
fix(table): add relative class to handle overflow issue (#1370)
PixeledCode Sep 19, 2023
771bff5
fix: :recycle: remove old color story and update lock file
lloydrichards Sep 19, 2023
ddf9db8
build(storybook): :arrow_up: upgrade to storybook v7.4.2
lloydrichards Sep 19, 2023
f22c661
chore(storybook): :arrow_up: upgrade storybook to v7.4.5
lloydrichards Sep 28, 2023
d4be9fd
feat(storybook): :sparkles: add missing stories
lloydrichards Sep 28, 2023
d34e45f
refactor(storybook): :recycle: add missing Destructive story to Button
lloydrichards Sep 28, 2023
f4cb863
chore(storybook): :recycle: swap to alias import for stories
lloydrichards Sep 28, 2023
819caa7
chore(storybook): :construction_worker: update registry with new stor…
lloydrichards Sep 28, 2023
0f39a3f
feat(storybook): :sparkles: added Alert, Calender, Command and Form s…
lloydrichards Sep 28, 2023
e4dd1b5
feat(storybook): :sparkles: added Skeleton, Table and Toggle stories
lloydrichards Sep 28, 2023
8a1c761
fix(storybook): :bug: add args to all stories
lloydrichards Sep 28, 2023
a4f7be7
docs(www): add bun support for installation commands (#1445)
rgodha24 Sep 21, 2023
3027b1e
fix(scroll-area): added conditional flex-1 (#1296)
SoyDiego Sep 25, 2023
2799475
feat(storybook): :sparkles: added option to include stories in CLI init
lloydrichards Sep 28, 2023
24ce6b2
chore(storybook): :recycle: change default selected for stories in CL…
lloydrichards Sep 28, 2023
d41a900
chore(storybook): :memo: build registry with new stories
lloydrichards Sep 28, 2023
82a60dc
Merge branch 'main' into feat/storybook-cli
lloydrichards Oct 3, 2023
cccdc5b
chore(storybook): :green_heart: rebuild registry after merge
lloydrichards Oct 3, 2023
4b83d85
feat(storybook): :sparkles: added Toast story
lloydrichards Oct 15, 2023
8f669ca
chore(storybook): :arrow_up: upgrade storybook to v7.4.6
lloydrichards Oct 15, 2023
9763fda
Merge branch 'main' into feat/storybook-cli
lloydrichards Oct 15, 2023
3249b20
Merge branch 'main' into feat/storybook-cli
lloydrichards Oct 23, 2023
f4279c1
Merge branch 'main' into feat/storybook-cli
lloydrichards Oct 28, 2023
ca724cc
chore(storybook): :arrow_up: upgrade storybook to v7.5.2 and remove s…
lloydrichards Nov 3, 2023
d9ee6bd
fix(storybook): :pencil2: typo in colors story
lloydrichards Nov 3, 2023
74bff0c
Merge branch 'main' into feat/storybook-cli
lloydrichards Nov 6, 2023
8ef99b4
fix(storybook): :bug: wrap tooltip story in TooltipProvider
lloydrichards Nov 13, 2023
23ef40f
Merge branch 'main' into feat/storybook-cli
lloydrichards Nov 13, 2023
6ffaabf
Merge branch 'main' into feat/storybook-cli
lloydrichards Nov 19, 2023
15ce571
Merge branch 'main' into feat/storybook-cli
lloydrichards Nov 26, 2023
d739966
chore(storybook): :truck: move color stories into theme folder
lloydrichards Nov 29, 2023
fad6a6d
Merge branch 'main' into feat/storybook-cli
lloydrichards Dec 25, 2023
36c28a8
chore(deps): :arrow_up: update storybook to v7.6.6
lloydrichards Dec 25, 2023
16d2174
chore: :construction_worker: rebuilt registry
lloydrichards Dec 25, 2023
4e5601a
fix: :memo: remove comment in changelog
lloydrichards Dec 25, 2023
20c09c4
Merge branch 'main' into feat/storybook-cli
lloydrichards Dec 26, 2023
ef2e891
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 4, 2024
9c776c1
feat(storybook): :sparkles: add stories for new 0.5.0 components
lloydrichards Jan 4, 2024
727d7ba
fix(storybook): :bug: swap Geist font to Inter using preview-body.html
lloydrichards Jan 4, 2024
778ae19
fix: :green_heart: add Storybook addon-actions as a dep
lloydrichards Jan 5, 2024
fc209a7
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 7, 2024
bfecab0
chore: :adhesive_bandage: rebuild registry
lloydrichards Jan 7, 2024
35841cc
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 14, 2024
ab70ac2
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 16, 2024
b9a1747
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 20, 2024
b74c848
chore: :memo: rebuild registry
lloydrichards Jan 20, 2024
d8bfd38
docs(storybook): :memo: add JSDocs to all stories
lloydrichards Jan 22, 2024
4e6c05a
feat(storybook): :sparkles: add ToggleGroup story
lloydrichards Jan 22, 2024
1027b61
refactor(storybook): :recycle: abstract render and args to Base when …
lloydrichards Jan 22, 2024
044cd49
refactor(storybook): :recycle: add more Radix API based stories
lloydrichards Jan 22, 2024
12dbba5
style(storybook): :lipstick: center stories when appropriate
lloydrichards Jan 22, 2024
66313c8
chore: :adhesive_bandage: rebuild registry
lloydrichards Jan 22, 2024
ddaca57
docs(storybook): :memo: add note to Giest font fix
lloydrichards Jan 22, 2024
c32eb71
refactor(storybook): only import types for storybook
lloydrichards Jan 26, 2024
c4a2ec8
docs(storybook): :memo: expand documentation for each story
lloydrichards Jan 26, 2024
b6e90d2
Merge branch 'main' into feat/storybook-cli
lloydrichards Jan 29, 2024
63b7d45
refactor(storybook): :recycle: use satisfies and move default renders…
lloydrichards Jan 30, 2024
f43dd67
fix: :bug: rebuild lock file
lloydrichards Jan 30, 2024
bb9f883
refactor(storybook): :recycle: remove redundent render functions in meta
lloydrichards Jan 30, 2024
e9b1246
Merge branch 'main' into feat/storybook-cli
lloydrichards Feb 5, 2024
0401545
refactor(storybook): :recycle: remove dependencies between components
lloydrichards Feb 5, 2024
6b36499
Merge branch 'feat/storybook-cli' of https:/lloydrichards…
lloydrichards Feb 5, 2024
c038954
chore(storybook): :arrow_up: upgrade storybook to v7.6.12
lloydrichards Feb 5, 2024
322a289
revert: :rewind: remove registry build outputs
lloydrichards Feb 5, 2024
d43b3c7
chore: :package: rebuild lock file from latest commit
lloydrichards Feb 6, 2024
df3fe5e
revert(storybook): :rewind: change stories back to using render and o…
lloydrichards Feb 6, 2024
c5c90a4
fix(storybook): :bug: added missing props to button story
lloydrichards Feb 7, 2024
452b613
fix(storybook): :fire: remove center layout on aspect ratio story
lloydrichards Feb 7, 2024
c1bb547
fix(storybook): :fire: remove unused imports
lloydrichards Feb 7, 2024
eedbb55
docs(storybook): :memo: expand menu components with new stories
lloydrichards Feb 8, 2024
1a3d6d2
build: :heavy_plus_sign: add eslint-plugin-storybook
lloydrichards Feb 20, 2024
d209695
chore: :arrow_up: upgrade storybook v7.6.17
lloydrichards Feb 20, 2024
3b5cf29
chore: :wrench: remove eslint config from package.json
lloydrichards Feb 20, 2024
85871c9
docs(storybook): :memo: add token stories from tailwind config
lloydrichards Feb 20, 2024
f144708
fix(storybook): :bug: missing key and test-xs
lloydrichards Feb 21, 2024
9531bc8
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 6, 2024
c6960bf
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 9, 2024
e747041
fix(storybook): :memo: add stories for Breadcrumb and InputOTP
lloydrichards Mar 9, 2024
b95441a
chore(deps): :arrow_up: upgrade input-otp v1.1.0
lloydrichards Mar 11, 2024
4c70498
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 12, 2024
97e9c21
chore(deps): :arrow_up: upgrade storybook v8.0
lloydrichards Mar 12, 2024
65a3244
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 14, 2024
b7db662
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 20, 2024
02a2dd0
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 21, 2024
4713feb
Merge branch 'main' into feat/storybook-cli
lloydrichards Mar 26, 2024
cc156ab
chore: :green_heart: rebuild lock
lloydrichards Mar 26, 2024
b99c4c0
refactor: :recycle: move stories into ui registry
lloydrichards Mar 26, 2024
5b02963
refactor(storybook): :recycle: use composition for InputOTP story
lloydrichards Mar 26, 2024
dda0db1
Merge branch 'main' into feat/storybook-cli
lloydrichards Apr 2, 2024
1443abb
chore: remove lock file
lloydrichards Apr 8, 2024
5c2e01a
chore: replace lock
lloydrichards Apr 8, 2024
b229832
chore: :recycle: align build-registry script
lloydrichards Apr 8, 2024
3073bdd
chore: :recycle: align build-registry
lloydrichards Apr 8, 2024
4baf8c3
Merge remote-tracking branch 'original/main' into feat/storybook-cli
lloydrichards Apr 8, 2024
d9c3002
chore: :recycle: add back the storybook build scripts
lloydrichards Apr 8, 2024
b41f39c
Merge branch 'main' into feat/storybook-cli
lloydrichards Apr 9, 2024
f4d23f7
Merge branch 'main' into feat/storybook-cli
lloydrichards Apr 9, 2024
3065240
Merge branch 'main' into feat/storybook-cli
lloydrichards Apr 22, 2024
c342747
refactor(script): :recycle: use switch to alternate between file type…
lloydrichards Apr 30, 2024
2a8f829
Merge branch 'main' into feat/storybook-cli
lloydrichards May 19, 2024
5df58f1
chore: remove update to registry.ts
lloydrichards Jun 3, 2024
9a53eed
Merge branch 'main' into feat/storybook-cli
lloydrichards Jul 28, 2024
50d7636
chore: upgrade storybook to 8.2.6
lloydrichards Jul 28, 2024
2f27087
feat(storybook): ✨ add chart stories
lloydrichards Jul 30, 2024
3ccdf16
Merge branch 'main' into feat/storybook-cli
lloydrichards Aug 7, 2024
085afc4
Merge branch 'main' into feat/storybook-cli
lloydrichards Aug 24, 2024
0a9b085
Merge branch 'main' into feat/storybook-cli
lloydrichards Aug 31, 2024
9d430c1
chore: rebuild lock
lloydrichards Aug 31, 2024
3f9c0ea
refactor: :recycle: extend registry with item type for stories
lloydrichards Aug 31, 2024
f0683e4
chore: :arrow_up: upgrade storybook to v8.2.9
lloydrichards Aug 31, 2024
4d679ee
chore: :rotating_light: fix linting for stories
lloydrichards Aug 31, 2024
b096c9a
Merge branch 'main' into feat/storybook-cli
lloydrichards Sep 3, 2024
f3b6ac1
Merge branch 'main' into feat/storybook-cli
lloydrichards Sep 23, 2024
6af9889
Merge branch 'main' into feat/storybook-cli
lloydrichards Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions apps/www/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { dirname, join } from "path"
import type { StorybookConfig } from "@storybook/nextjs"

const config: StorybookConfig = {
stories: [
"../registry/stories/**/*.mdx",
"../registry/stories/**/*.stories.@(js|jsx|ts|tsx)",
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-styling",
lloydrichards marked this conversation as resolved.
Show resolved Hide resolved
"@storybook/addon-mdx-gfm",
],
framework: {
name: "@storybook/nextjs",
options: {},
},
docs: {
autodocs: true,
},
}
export default config
5 changes: 5 additions & 0 deletions apps/www/.storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<style>
:root {
--font-sans: Inter, sans-serif;
}
</style>
20 changes: 20 additions & 0 deletions apps/www/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Preview } from "@storybook/react"

import "../styles/globals.css"

const preview: Preview = {
parameters: {
nextjs: {
appDirectory: true,
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
}

export default preview
Loading