@@ -32,12 +32,14 @@ export default {
32
32
} ,
33
33
} ;
34
34
35
- const Template : Story = props => html ` < div
36
- style ="position:relative; width:80px; height:80px; border: 2px dashed black; ">
37
- < uui-badge .look =${ props . look } ?attention =${ props . attention }
38
- > ${ props . slot } </ uui-badge
39
- >
40
- </ div > `;
35
+ const Template : Story = props => html ` < uui-icon-registry-essential >
36
+ < div
37
+ style ="position:relative; width:80px; height:80px; border: 2px dashed black; ">
38
+ < uui-badge .look =${ props . look } ?attention =${ props . attention }
39
+ > ${ props . slot } </ uui-badge
40
+ >
41
+ </ div >
42
+ </ uui-icon-registry-essential > `;
41
43
42
44
export const AAAOverview = Template . bind ( { } ) ;
43
45
AAAOverview . args = {
@@ -50,7 +52,7 @@ AAAOverview.parameters = {
50
52
docs : {
51
53
source : {
52
54
code : `
53
- <div style="position:relative;">
55
+ <div style="position:relative; width:80px; height:80px; border: 2px dashed black; ">
54
56
<uui-badge>1</uui-badge>
55
57
</div>
56
58
` ,
@@ -64,6 +66,17 @@ WithAttention.args = {
64
66
slot : '!' ,
65
67
attention : true ,
66
68
} ;
69
+ WithAttention . parameters = {
70
+ docs : {
71
+ source : {
72
+ code : `
73
+ <div style="position:relative; width:80px; height:80px; border: 2px dashed black;">
74
+ <uui-badge look="danger" attention>!</uui-badge>
75
+ </div>
76
+ ` ,
77
+ } ,
78
+ } ,
79
+ } ;
67
80
68
81
export const WithText = Template . bind ( { } ) ;
69
82
WithText . args = {
@@ -74,7 +87,9 @@ WithText.parameters = {
74
87
docs : {
75
88
source : {
76
89
code : `
90
+ <div style="position:relative; width:80px; height:80px; border: 2px dashed black;">
77
91
<uui-badge look="positive">Published</uui-badge>
92
+ </div>
78
93
` ,
79
94
} ,
80
95
} ,
@@ -83,7 +98,22 @@ WithText.parameters = {
83
98
export const WithIcon = Template . bind ( { } ) ;
84
99
WithIcon . args = {
85
100
look : 'positive' ,
86
- slot : html `< uui-icon name ="info "> </ uui-icon > ` ,
101
+ slot : html `< uui-icon name ="favorite "> </ uui-icon > ` ,
102
+ } ;
103
+ WithIcon . parameters = {
104
+ docs : {
105
+ source : {
106
+ code : `
107
+ <div style="position:relative; width:80px; height:80px; border: 2px dashed black;">
108
+ <uui-icon-registry-essential>
109
+ <uui-badge look="positive">
110
+ <uui-icon name="favorite"></uui-icon>
111
+ </uui-badge>
112
+ </uui-icon-registry-essential>
113
+ </div>
114
+ ` ,
115
+ } ,
116
+ } ,
87
117
} ;
88
118
89
119
export const OnButton : Story = props => html ` < uui-button look ="outline ">
@@ -99,7 +129,7 @@ OnButton.parameters = {
99
129
source : {
100
130
code : `
101
131
<uui-button look="outline">
102
- <uui-badge look="positive ">!</uui-badge>
132
+ <uui-badge look="danger ">!</uui-badge>
103
133
Button label
104
134
</uui-button>
105
135
` ,
@@ -122,3 +152,22 @@ Looks.args = {
122
152
look : 'primary' ,
123
153
slot : '!' ,
124
154
} ;
155
+
156
+ let lookNamesDocsCode = '' ;
157
+ InterfaceLookNames . forEach ( ( lookName : InterfaceLookType ) => {
158
+ lookNamesDocsCode =
159
+ lookNamesDocsCode +
160
+ `
161
+ <div style="position:relative; display:inline-block; width:10px; height:10px; margin-right:16px;">
162
+ <uui-badge look="${ lookName } ">!</uui-badge>
163
+ </div>
164
+ ` ;
165
+ } ) ;
166
+
167
+ Looks . parameters = {
168
+ docs : {
169
+ source : {
170
+ code : lookNamesDocsCode ,
171
+ } ,
172
+ } ,
173
+ } ;
0 commit comments