This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree 7 files changed +187
-191
lines changed
7 files changed +187
-191
lines changed Original file line number Diff line number Diff line change 1
- import { configure , addDecorator } from '@storybook/vue' ;
1
+ import { configure , addDecorator , addParameters } from '@storybook/vue' ;
2
2
import Vue from 'vue'
3
- import ThemeProvider from 'kiwi'
3
+ import { ThemeProvider } from 'kiwi'
4
4
import theme from '../src/lib/theme'
5
5
import icons from '../src/lib/plugin/iconsPaths'
6
6
import Kiwi from '../src/lib/plugin'
7
+ import storyBookTheme from './theme'
7
8
8
9
Vue . use ( Kiwi )
9
10
11
+ addParameters ( {
12
+ options : {
13
+ theme : storyBookTheme
14
+ }
15
+ } )
16
+
10
17
addDecorator ( ( ) => ( {
11
18
template : `
12
19
<ThemeProvider :theme="theme" :icons="icons" color-mode="light">
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export default create({
4
4
base : 'light' ,
5
5
brandTitle : 'Kiwi UI Storybook' ,
6
6
brandUrl : 'https://github.com/codebender828/kiwi-ui' ,
7
- brandImage : 'https://res.cloudinary.com/xtellar/image/upload/v1575300763 /kiwi-ui/kiwi-ui-logo-h_w4ltfh.svg' ,
7
+ brandImage : 'https://res.cloudinary.com/xtellar/image/upload/v1575300764 /kiwi-ui/kiwi-ui-logo-h_y75i1x.png'
8
8
} ) ;
Original file line number Diff line number Diff line change 10
10
"private" : false ,
11
11
"scripts" : {
12
12
"build" : " rollup -c && rollup -c --environment MINIFY" ,
13
+ "build:watch" : " rollup -c --watch" ,
13
14
"test" : " echo testing ..." ,
14
15
"clean" : " rm -rf ./dist"
15
16
},
27
28
"core-js" : " ^3.4.5"
28
29
},
29
30
"gitHead" : " bac5958955c86e8078fe444ee2738145b894af1d"
30
- }
31
+ }
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const Alert = {
41
41
42
42
return h ( Box , {
43
43
props : {
44
+ fontFamily : 'body' ,
44
45
...alertStyles ,
45
46
...forwardProps ( this . $props )
46
47
} ,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default {
33
33
d : 'inline-block' ,
34
34
textTransform : 'uppercase' ,
35
35
fontSize : 'xs' ,
36
+ fontFamily : 'body' ,
36
37
px : 1 ,
37
38
rounded : 'sm' ,
38
39
fontWeight : 'bold' ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default {
16
16
return h ( Box , {
17
17
props : {
18
18
as : this . as ,
19
+ fontFamily : this . as === 'kbd' ? 'mono' : 'body' ,
19
20
...forwardProps ( this . $props )
20
21
}
21
22
} , this . $slots . default )
You can’t perform that action at this time.
0 commit comments