@@ -26,6 +26,35 @@ export default meta
26
26
const Story = StoryFactory < Args > ( meta )
27
27
28
28
export const Basic = Story ( {
29
+ ...withRender (
30
+ ( ) => `
31
+ <h1 class="title text-xxx-large mb-none">Heading</h1>
32
+ <h2 class="subtitle text-xx-large">Subtitle</h2>` ,
33
+ ) ,
34
+ } )
35
+
36
+ export const Levels = Story ( {
37
+ ...withRender (
38
+ ( ) => `
39
+ <h1 class="title text-xxx-large">Heading 1</h1>
40
+ <h2 class="title text-xx-large">Heading 2</h2>
41
+ <h3 class="title text-x-large">Heading 3</h3>
42
+ <h4 class="title text-large">Heading 4</h4>
43
+ <h5 class="title text-normal">Heading 5</h5>` ,
44
+ ) ,
45
+ } )
46
+
47
+ export const Colors = Story ( {
48
+ ...withRender (
49
+ ( ) => `
50
+ <h4 class="title text-large">Default / Primary</h4>
51
+ <h4 class="title text-large text-success">Success</h4>
52
+ <h4 class="title text-large text-warning">Warning</h4>
53
+ <h4 class="title text-large text-danger">Danger</h4>` ,
54
+ ) ,
55
+ } )
56
+
57
+ export const Title = Story ( {
29
58
args : {
30
59
level : 'h1' ,
31
60
subtitle : false ,
@@ -44,38 +73,6 @@ export const Subtitle = Story({
44
73
} ,
45
74
} )
46
75
47
- export const Levels = Story ( {
48
- ...withRender (
49
- ( ) => `<div class="columns">
50
- <div class="column is-half bg-yellow-1">
51
- <bal-heading level="h1">Heading 1</bal-heading>
52
- <bal-heading level="h2">Heading 2</bal-heading>
53
- <bal-heading level="h3">Heading 3</bal-heading>
54
- <bal-heading level="h4">Heading 4</bal-heading>
55
- <bal-heading level="h5">Heading 5</bal-heading>
56
- </div>
57
- <div class="column is-half bg-yellow-2">
58
- <h1 class="title text-xxx-large">Heading 1</h1>
59
- <h2 class="title text-xx-large">Heading 2</h2>
60
- <h3 class="title text-x-large">Heading 3</h3>
61
- <h4 class="title text-large">Heading 4</h4>
62
- <h5 class="title text-normal">Heading 5</h5>
63
- </div>
64
- </div>` ,
65
- ) ,
66
- } )
67
-
68
- export const Colors = Story ( {
69
- ...withRender (
70
- ( ) => `<div>
71
- <bal-heading level="h4" space="none">Default / Primary</bal-heading>
72
- <bal-heading color="success" level="h4" space="none">Success</bal-heading>
73
- <bal-heading color="warning" level="h4" space="none">Warning</bal-heading>
74
- <bal-heading color="danger" level="h4" space="none">Danger</bal-heading>
75
- </div>` ,
76
- ) ,
77
- } )
78
-
79
76
export const Spacing = Story ( {
80
77
...withRender (
81
78
( ) => `<div>
@@ -106,15 +103,3 @@ export const AutoLevel = Story({
106
103
inverted : false ,
107
104
} ,
108
105
} )
109
-
110
- export const CSSUtilities = Story ( {
111
- ...withRender (
112
- ( ) => `<div>
113
- <h1 class="title text-xxx-large">Heading 1</h1>
114
- <h2 class="title text-xx-large">Heading 2</h2>
115
- <h3 class="title text-x-large">Heading 3</h3>
116
- <h4 class="title text-large">Heading 4</h4>
117
- <h5 class="title text-normal">Heading 5</h5>
118
- </div>` ,
119
- ) ,
120
- } )
0 commit comments