57 Commits

Author SHA1 Message Date
paoloricciuti
4a7b7e0a98 add test for decorators run once 2023-11-20 20:43:18 +01:00
Jeppe Reinhold
692cf75bb1 e2e test for decorated svelte source output in docs 2023-11-10 14:36:18 +01:00
Kasper Peulen
4647e9f2be Reformat 2023-10-31 10:49:58 +01:00
Kasper Peulen
76c3821987 Remove await from getByX 2023-10-31 08:58:58 +01:00
Yann Braga
11d1e031e5 use @storybook/test in CLI templates 2023-10-27 16:00:46 +02:00
Jeppe Reinhold
270c94da50 support javascript in Svelte Vite docgen 2023-10-09 14:32:10 +02:00
j3rem1e
70d43ab43a Ignore type checking of globalThis 2023-09-18 20:40:54 +02:00
j3rem1e
048d7c6613 Move e2e tests into ButtonView 2023-09-14 21:10:13 +02:00
j3rem1e
e0fb28981d Adding e2e to test Svelte documentation 2023-09-09 19:40:30 +02:00
Yann Braga
de35e3eb05 fix sandbox template Form components
- for Vue, Vue3, HTML, Svelte, Preact, HTML and Angular
2023-06-19 21:10:36 +02:00
Yann Braga
ecbcad7b9d remove unnecessary wrapper css class 2023-04-19 12:20:04 +02:00
JW
1ae534cfaf Scope page.css 2023-04-19 12:09:24 +02:00
JW
078e3cf2d9 Scope Header.css 2023-04-19 12:07:14 +02:00
jonniebigodes
85adfc2986 Updates code references to 7.0 2023-03-30 21:05:45 +01:00
Jeppe Reinhold
440f6c02e1 Merge branch 'next' of github.com:storybookjs/storybook into 21470-bug-the-reset-controls-button-appears-to-be-resetting-the-value-back-to-undefined 2023-03-21 09:28:37 +01:00
Jeppe Reinhold
dbc1d81d5d add story to test reset story args in svelte 2023-03-17 22:19:50 +01:00
Yann Braga
4ec97162f0 update renderer templates to provide correct typescript examples 2023-03-17 15:47:50 +01:00
Yann Braga
1d8c2f7766 fix typechecks 2023-02-16 10:38:38 +01:00
Ian VanSchooten
62a3dea944 Rename ts and ts-legacy 2023-01-25 17:55:50 -05:00
Tom Coleman
427ec4433d Rename docsPage to autodocs
And change semantics: `docsPage:true` = `autodocs: 'tag'` and `docsPage: 'automatic'` = `autodocs: true`.
2022-12-21 21:49:57 +11:00
Norbert de Langen
fe9b5d6cee
Merge branch 'next' into norbert/sb-1063-vite-in-dev-mode-with-storystorev6 2022-12-13 09:14:33 +01:00
Jeppe Reinhold
9b5584c052 set default empty string on Button label 2022-12-13 00:15:37 +01:00
Norbert de Langen
3342776320
fix references to global in template dirs 2022-12-09 22:03:35 +01:00
Norbert de Langen
f5260920ca
fixing typings issues 2022-12-09 20:44:55 +01:00
Kasper Peulen
c44a33b5bf Fix check commanbd 2022-12-01 11:41:56 +01:00
Kasper Peulen
3d3265e195 Svelte: Use JSDocs and put manual enum arg type back as it is not inferred 2022-12-01 11:06:20 +01:00
Jeppe Reinhold
2cb1e88008
Merge pull request #19987 from storybookjs/jeppe/fix-svelte-decorators-slots
Svelte: Fix decorators with slots
2022-11-30 12:34:26 +01:00
Kasper Peulen
09dd5d7f73 Update CLI templates to TS 4.9 2022-11-29 17:03:55 +01:00
Kasper Peulen
1b08b3fdcf Svelte: Remove render functions and infer argTypes for CLI templates
I also tried to align more with svelte conventions:
- Forward click event with on:click
- Don't use props for events like you would do in react
2022-11-29 15:46:07 +01:00
Jeppe Reinhold
942e33919b cleanup 2022-11-29 13:17:22 +01:00
Jeppe Reinhold
3d43faef2a add decorator story to mdx stories 2022-11-29 12:23:03 +01:00
Jeppe Reinhold
e10534eddc add decorator stories to svelte renderer 2022-11-29 12:16:58 +01:00
Kasper Peulen
fb2cc54f0a Update layout comment 2022-11-17 16:55:37 +01:00
Kasper Peulen
da9433f91c Update Page stories template for 7 docs 2022-11-17 16:55:37 +01:00
Kasper Peulen
6f1588ff8e Update Header stories template for 7 docs 2022-11-17 16:55:37 +01:00
Kasper Peulen
b3e708b45d Update Button stories template for 7 docs 2022-11-17 16:55:37 +01:00
Jeppe Reinhold
55eff3ba38 Merge branch 'next' of github.com:storybookjs/storybook into jeppe/fix-svelte-in-docs 2022-11-02 13:30:52 +01:00
Tom Coleman
43f75b1fed Add docsPage tag to all Button/Header CLI templates 2022-11-02 17:02:43 +11:00
Jeppe Reinhold
12dcacc5d3 dont remount Svelte components on control change, make template stories reactive 2022-11-02 02:20:16 +01:00
Jeppe Reinhold
2e017abaa2 in Svelte templates, make backgroundColor prop optional 2022-11-01 21:53:30 +01:00
Kasper Peulen
96e68e4920 Migrate JS templates to CSF3 2022-10-31 11:54:00 +01:00
Kasper Peulen
960426dba3 Move all templates out of cli into renderers 2022-10-31 10:59:17 +01:00
Norbert de Langen
764697fc93
change every button in lib/cli/renderassets and renderer/*/template to use the label prop 2022-10-12 12:02:30 +02:00
Michael Shilman
bf3e0e4301 Update svelte-mdx.stories.mdx 2022-10-10 11:11:28 +08:00
Michael Shilman
8560f926af Fix svelte MDX 2022-10-10 10:59:03 +08:00
Michael Shilman
bcb4722860 Refactor MDX examples to sandboxes 2022-09-30 11:45:16 +08:00
Norbert de Langen
d2846e8c00
fix the svelte button component not accepting the onClick handler 2022-09-26 09:41:09 +02:00
Michael Shilman
150cf37d3c Skip story re-rendering test for vue3/svelte 2022-09-17 10:27:30 +08:00
Tom Coleman
062c73b900 Add placeholders so symlinks aren't broken 2022-09-15 10:56:20 +10:00
Tom Coleman
2abcf77c27 Added stories from Examples folder 2022-09-13 15:01:20 +10:00