@ukic/web-components 2.35.0 → 2.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/ic-badge.cjs.entry.js +23 -0
  4. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
  7. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-toast.cjs.entry.js +2 -2
  11. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/collection/collection-manifest.json +1 -1
  14. package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
  15. package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
  16. package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
  17. package/dist/collection/components/ic-badge/ic-badge.js +39 -1
  18. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  19. package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
  20. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +194 -0
  21. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
  22. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
  23. package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
  24. package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
  25. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
  26. package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
  27. package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
  28. package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
  29. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
  30. package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
  31. package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
  32. package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
  33. package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
  34. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
  35. package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +4 -0
  36. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
  37. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  38. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -35
  39. package/dist/collection/components/ic-page-header/ic-page-header.stories.js +557 -0
  40. package/dist/collection/components/ic-pagination/ic-pagination.stories.js +125 -0
  41. package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +486 -0
  42. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
  43. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
  44. package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
  45. package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
  46. package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
  47. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
  48. package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
  49. package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
  50. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
  51. package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
  52. package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
  53. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
  54. package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
  55. package/dist/collection/components/ic-toast/ic-toast.js +2 -2
  56. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  57. package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
  58. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
  59. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  60. package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
  61. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
  62. package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -5
  63. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  64. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
  65. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
  66. package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
  67. package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
  68. package/dist/collection/patterns/z-index.stories.js +474 -0
  69. package/dist/components/ic-badge.js +25 -2
  70. package/dist/components/ic-badge.js.map +1 -1
  71. package/dist/components/ic-navigation-button.js +2 -2
  72. package/dist/components/ic-navigation-button.js.map +1 -1
  73. package/dist/components/ic-navigation-item.js +1 -1
  74. package/dist/components/ic-navigation-item.js.map +1 -1
  75. package/dist/components/ic-toast.js +2 -2
  76. package/dist/components/ic-toast.js.map +1 -1
  77. package/dist/components/ic-tooltip2.js.map +1 -1
  78. package/dist/core/core.esm.js +1 -1
  79. package/dist/core/core.esm.js.map +1 -1
  80. package/dist/core/p-3e8023ff.entry.js +2 -0
  81. package/dist/core/p-3e8023ff.entry.js.map +1 -0
  82. package/dist/core/p-ba06cc95.entry.js.map +1 -1
  83. package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
  84. package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
  85. package/dist/core/p-c05474f3.entry.js +2 -0
  86. package/dist/core/p-c05474f3.entry.js.map +1 -0
  87. package/dist/core/{p-5d3c6ea1.entry.js → p-d0299926.entry.js} +2 -2
  88. package/dist/core/p-d0299926.entry.js.map +1 -0
  89. package/dist/esm/core.js +1 -1
  90. package/dist/esm/ic-badge.entry.js +23 -0
  91. package/dist/esm/ic-badge.entry.js.map +1 -1
  92. package/dist/esm/ic-button_3.entry.js.map +1 -1
  93. package/dist/esm/ic-navigation-button.entry.js +2 -2
  94. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  95. package/dist/esm/ic-navigation-item.entry.js +1 -1
  96. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  97. package/dist/esm/ic-toast.entry.js +2 -2
  98. package/dist/esm/ic-toast.entry.js.map +1 -1
  99. package/dist/esm/loader.js +1 -1
  100. package/dist/types/components/ic-badge/ic-badge.d.ts +5 -0
  101. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
  102. package/dist/types/components.d.ts +7 -0
  103. package/hydrate/index.js +30 -7
  104. package/package.json +17 -12
  105. package/vscode-data.json +4 -0
  106. package/dist/core/p-405d89bb.entry.js +0 -2
  107. package/dist/core/p-405d89bb.entry.js.map +0 -1
  108. package/dist/core/p-5d3c6ea1.entry.js.map +0 -1
  109. package/dist/core/p-dfb3e76e.entry.js +0 -2
  110. package/dist/core/p-dfb3e76e.entry.js.map +0 -1
@@ -0,0 +1,1082 @@
1
+ import { html } from "lit-html";
2
+
3
+ const defaultArgs = {
4
+ accessibleLabel: "notification",
5
+ customColor: null,
6
+ maxNumber: 1000,
7
+ position: "far",
8
+ size: "default",
9
+ textLabel: "1",
10
+ type: "text",
11
+ variant: "neutral",
12
+ };
13
+
14
+ export default {
15
+ title: "Web Components/Badge",
16
+ component: "ic-badge",
17
+ };
18
+
19
+ export const Success = {
20
+ render: () =>
21
+ html`<div style="padding:16px;">
22
+ <ic-button variant="secondary" style="margin-right:16px"
23
+ ><ic-badge
24
+ text-label="1"
25
+ slot="badge"
26
+ variant="success"
27
+ size="small"
28
+ ></ic-badge
29
+ >Small</ic-button
30
+ >
31
+ <ic-button variant="secondary" style="margin-right:16px"
32
+ ><ic-badge text-label="1" slot="badge" variant="success"></ic-badge
33
+ >Default</ic-button
34
+ >
35
+ <ic-button variant="secondary"
36
+ ><ic-badge
37
+ text-label="1"
38
+ slot="badge"
39
+ variant="success"
40
+ size="large"
41
+ ></ic-badge
42
+ >Large</ic-button
43
+ >
44
+ </div>
45
+ <div style="padding:16px">
46
+ <ic-button variant="secondary" style="margin-right:16px"
47
+ ><ic-badge
48
+ type="dot"
49
+ slot="badge"
50
+ variant="success"
51
+ size="small"
52
+ ></ic-badge
53
+ >Small Dot</ic-button
54
+ >
55
+ <ic-button variant="secondary" style="margin-right:16px"
56
+ ><ic-badge type="dot" slot="badge" variant="success"></ic-badge
57
+ >Default Dot</ic-button
58
+ >
59
+ <ic-button variant="secondary"
60
+ ><ic-badge
61
+ type="dot"
62
+ slot="badge"
63
+ variant="success"
64
+ size="large"
65
+ ></ic-badge
66
+ >Large Dot</ic-button
67
+ >
68
+ </div>
69
+ <div style="padding:16px">
70
+ <ic-button variant="secondary" style="margin-right:16px"
71
+ ><ic-badge type="icon" slot="badge" variant="success" size="small">
72
+ <svg
73
+ slot="badge-icon"
74
+ xmlns="http://www.w3.org/2000/svg"
75
+ height="24px"
76
+ viewBox="0 0 24 24"
77
+ width="24px"
78
+ aria-label="retry"
79
+ >
80
+ <path d="M0 0h24v24H0V0z" fill="none" />
81
+ <path
82
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
83
+ /></svg></ic-badge
84
+ >Small Icon</ic-button
85
+ >
86
+ <ic-button variant="secondary" style="margin-right:16px"
87
+ ><ic-badge type="icon" slot="badge" variant="success">
88
+ <svg
89
+ slot="badge-icon"
90
+ xmlns="http://www.w3.org/2000/svg"
91
+ height="24px"
92
+ viewBox="0 0 24 24"
93
+ width="24px"
94
+ aria-label="retry"
95
+ >
96
+ <path d="M0 0h24v24H0V0z" fill="none" />
97
+ <path
98
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
99
+ /></svg></ic-badge
100
+ >Default Icon</ic-button
101
+ >
102
+ <ic-button variant="secondary"
103
+ ><ic-badge type="icon" slot="badge" variant="success" size="large">
104
+ <svg
105
+ slot="badge-icon"
106
+ xmlns="http://www.w3.org/2000/svg"
107
+ height="24px"
108
+ viewBox="0 0 24 24"
109
+ width="24px"
110
+ aria-label="retry"
111
+ >
112
+ <path d="M0 0h24v24H0V0z" fill="none" />
113
+ <path
114
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
115
+ /></svg></ic-badge
116
+ >Large Icon</ic-button
117
+ >
118
+ </div>`,
119
+
120
+ name: "Success",
121
+ };
122
+
123
+ export const Error = {
124
+ render: () =>
125
+ html`<div style="padding:16px;">
126
+ <ic-button variant="secondary" style="margin-right:16px"
127
+ ><ic-badge
128
+ text-label="1"
129
+ slot="badge"
130
+ variant="error"
131
+ size="small"
132
+ ></ic-badge
133
+ >Small</ic-button
134
+ >
135
+ <ic-button variant="secondary" style="margin-right:16px"
136
+ ><ic-badge text-label="1" slot="badge" variant="error"></ic-badge
137
+ >Default</ic-button
138
+ >
139
+ <ic-button variant="secondary"
140
+ ><ic-badge
141
+ text-label="1"
142
+ slot="badge"
143
+ variant="error"
144
+ size="large"
145
+ ></ic-badge
146
+ >Large</ic-button
147
+ >
148
+ </div>
149
+ <div style="padding:16px">
150
+ <ic-button variant="secondary" style="margin-right:16px"
151
+ ><ic-badge
152
+ type="dot"
153
+ slot="badge"
154
+ variant="error"
155
+ size="small"
156
+ ></ic-badge
157
+ >Small Dot</ic-button
158
+ >
159
+ <ic-button variant="secondary" style="margin-right:16px"
160
+ ><ic-badge type="dot" slot="badge" variant="error"></ic-badge>Default
161
+ Dot</ic-button
162
+ >
163
+ <ic-button variant="secondary"
164
+ ><ic-badge
165
+ type="dot"
166
+ slot="badge"
167
+ variant="error"
168
+ size="large"
169
+ ></ic-badge
170
+ >Large Dot</ic-button
171
+ >
172
+ </div>
173
+ <div style="padding:16px">
174
+ <ic-button variant="secondary" style="margin-right:16px"
175
+ ><ic-badge type="icon" slot="badge" variant="error" size="small">
176
+ <svg
177
+ slot="badge-icon"
178
+ xmlns="http://www.w3.org/2000/svg"
179
+ height="24px"
180
+ viewBox="0 0 24 24"
181
+ width="24px"
182
+ aria-label="retry"
183
+ >
184
+ <path d="M0 0h24v24H0V0z" fill="none" />
185
+ <path
186
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
187
+ />
188
+ </svg> </ic-badge
189
+ >Small Icon</ic-button
190
+ >
191
+ <ic-button variant="secondary" style="margin-right:16px"
192
+ ><ic-badge type="icon" slot="badge" variant="error">
193
+ <svg
194
+ slot="badge-icon"
195
+ xmlns="http://www.w3.org/2000/svg"
196
+ height="24px"
197
+ viewBox="0 0 24 24"
198
+ width="24px"
199
+ aria-label="retry"
200
+ >
201
+ <path d="M0 0h24v24H0V0z" fill="none" />
202
+ <path
203
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
204
+ />
205
+ </svg> </ic-badge
206
+ >Default Icon</ic-button
207
+ >
208
+ <ic-button variant="secondary"
209
+ ><ic-badge type="icon" slot="badge" variant="error" size="large">
210
+ <svg
211
+ slot="badge-icon"
212
+ xmlns="http://www.w3.org/2000/svg"
213
+ height="24px"
214
+ viewBox="0 0 24 24"
215
+ width="24px"
216
+ aria-label="retry"
217
+ >
218
+ <path d="M0 0h24v24H0V0z" fill="none" />
219
+ <path
220
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
221
+ /></svg></ic-badge
222
+ >Large Icon</ic-button
223
+ >
224
+ </div>`,
225
+
226
+ name: "Error",
227
+ };
228
+
229
+ export const Warning = {
230
+ render: () =>
231
+ html`<div style="padding:16px;">
232
+ <ic-button variant="secondary" style="margin-right:16px"
233
+ ><ic-badge
234
+ text-label="1"
235
+ slot="badge"
236
+ variant="warning"
237
+ size="small"
238
+ ></ic-badge
239
+ >Small</ic-button
240
+ >
241
+ <ic-button variant="secondary" style="margin-right:16px"
242
+ ><ic-badge text-label="1" slot="badge" variant="warning"></ic-badge
243
+ >Default</ic-button
244
+ >
245
+ <ic-button variant="secondary"
246
+ ><ic-badge
247
+ text-label="1"
248
+ slot="badge"
249
+ variant="warning"
250
+ size="large"
251
+ ></ic-badge
252
+ >Large</ic-button
253
+ >
254
+ </div>
255
+ <div style="padding:16px">
256
+ <ic-button variant="secondary" style="margin-right:16px"
257
+ ><ic-badge
258
+ type="dot"
259
+ slot="badge"
260
+ variant="warning"
261
+ size="small"
262
+ ></ic-badge
263
+ >Small Dot</ic-button
264
+ >
265
+ <ic-button variant="secondary" style="margin-right:16px"
266
+ ><ic-badge type="dot" slot="badge" variant="warning"></ic-badge
267
+ >Default Dot</ic-button
268
+ >
269
+ <ic-button variant="secondary"
270
+ ><ic-badge
271
+ type="dot"
272
+ slot="badge"
273
+ variant="warning"
274
+ size="large"
275
+ ></ic-badge
276
+ >Large Dot</ic-button
277
+ >
278
+ </div>
279
+ <div style="padding:16px">
280
+ <ic-button variant="secondary" style="margin-right:16px"
281
+ ><ic-badge type="icon" slot="badge" variant="warning" size="small">
282
+ <svg
283
+ slot="badge-icon"
284
+ xmlns="http://www.w3.org/2000/svg"
285
+ height="24px"
286
+ viewBox="0 0 24 24"
287
+ width="24px"
288
+ aria-label="retry"
289
+ >
290
+ <path d="M0 0h24v24H0V0z" fill="none" />
291
+ <path
292
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
293
+ />
294
+ </svg> </ic-badge
295
+ >Small Icon</ic-button
296
+ >
297
+ <ic-button variant="secondary" style="margin-right:16px"
298
+ ><ic-badge type="icon" slot="badge" variant="warning">
299
+ <svg
300
+ slot="badge-icon"
301
+ xmlns="http://www.w3.org/2000/svg"
302
+ height="24px"
303
+ viewBox="0 0 24 24"
304
+ width="24px"
305
+ aria-label="retry"
306
+ >
307
+ <path d="M0 0h24v24H0V0z" fill="none" />
308
+ <path
309
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
310
+ />
311
+ </svg> </ic-badge
312
+ >Default Icon</ic-button
313
+ >
314
+ <ic-button variant="secondary"
315
+ ><ic-badge type="icon" slot="badge" variant="warning" size="large">
316
+ <svg
317
+ slot="badge-icon"
318
+ xmlns="http://www.w3.org/2000/svg"
319
+ height="24px"
320
+ viewBox="0 0 24 24"
321
+ width="24px"
322
+ aria-label="retry"
323
+ >
324
+ <path d="M0 0h24v24H0V0z" fill="none" />
325
+ <path
326
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
327
+ /></svg></ic-badge
328
+ >Large Icon</ic-button
329
+ >
330
+ </div>`,
331
+
332
+ name: "Warning",
333
+ };
334
+
335
+ export const Neutral = {
336
+ render: () =>
337
+ html`<div style="padding:16px;">
338
+ <ic-button variant="secondary" style="margin-right:16px"
339
+ ><ic-badge
340
+ text-label="1"
341
+ slot="badge"
342
+ variant="neutral"
343
+ size="small"
344
+ ></ic-badge
345
+ >Small</ic-button
346
+ >
347
+ <ic-button variant="secondary" style="margin-right:16px"
348
+ ><ic-badge text-label="1" slot="badge" variant="neutral"></ic-badge
349
+ >Default</ic-button
350
+ >
351
+ <ic-button variant="secondary"
352
+ ><ic-badge
353
+ text-label="1"
354
+ slot="badge"
355
+ variant="neutral"
356
+ size="large"
357
+ ></ic-badge
358
+ >Large</ic-button
359
+ >
360
+ </div>
361
+ <div style="padding:16px">
362
+ <ic-button variant="secondary" style="margin-right:16px"
363
+ ><ic-badge
364
+ type="dot"
365
+ slot="badge"
366
+ variant="neutral"
367
+ size="small"
368
+ ></ic-badge
369
+ >Small Dot</ic-button
370
+ >
371
+ <ic-button variant="secondary" style="margin-right:16px"
372
+ ><ic-badge type="dot" slot="badge" variant="neutral"></ic-badge
373
+ >Default Dot</ic-button
374
+ >
375
+ <ic-button variant="secondary"
376
+ ><ic-badge
377
+ type="dot"
378
+ slot="badge"
379
+ variant="neutral"
380
+ size="large"
381
+ ></ic-badge
382
+ >Large Dot</ic-button
383
+ >
384
+ </div>
385
+ <div style="padding:16px">
386
+ <ic-button variant="secondary" style="margin-right:16px"
387
+ ><ic-badge type="icon" slot="badge" variant="neutral" size="small">
388
+ <svg
389
+ slot="badge-icon"
390
+ xmlns="http://www.w3.org/2000/svg"
391
+ height="24px"
392
+ viewBox="0 0 24 24"
393
+ width="24px"
394
+ aria-label="retry"
395
+ >
396
+ <path d="M0 0h24v24H0V0z" fill="none" />
397
+ <path
398
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
399
+ />
400
+ </svg> </ic-badge
401
+ >Small Icon</ic-button
402
+ >
403
+ <ic-button variant="secondary" style="margin-right:16px"
404
+ ><ic-badge type="icon" slot="badge" variant="neutral">
405
+ <svg
406
+ slot="badge-icon"
407
+ xmlns="http://www.w3.org/2000/svg"
408
+ height="24px"
409
+ viewBox="0 0 24 24"
410
+ width="24px"
411
+ aria-label="retry"
412
+ >
413
+ <path d="M0 0h24v24H0V0z" fill="none" />
414
+ <path
415
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
416
+ />
417
+ </svg> </ic-badge
418
+ >Default Icon</ic-button
419
+ >
420
+ <ic-button variant="secondary"
421
+ ><ic-badge type="icon" slot="badge" variant="neutral" size="large">
422
+ <svg
423
+ slot="badge-icon"
424
+ xmlns="http://www.w3.org/2000/svg"
425
+ height="24px"
426
+ viewBox="0 0 24 24"
427
+ width="24px"
428
+ aria-label="retry"
429
+ >
430
+ <path d="M0 0h24v24H0V0z" fill="none" />
431
+ <path
432
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
433
+ /></svg></ic-badge
434
+ >Large Icon</ic-button
435
+ >
436
+ </div>`,
437
+
438
+ name: "Neutral",
439
+ };
440
+
441
+ export const Light = {
442
+ render: () =>
443
+ html`<div style="padding:16px;">
444
+ <ic-button variant="secondary" style="margin-right:16px"
445
+ ><ic-badge
446
+ text-label="1"
447
+ slot="badge"
448
+ variant="light"
449
+ size="small"
450
+ ></ic-badge
451
+ >Small</ic-button
452
+ >
453
+ <ic-button variant="secondary" style="margin-right:16px"
454
+ ><ic-badge text-label="1" slot="badge" variant="light"></ic-badge
455
+ >Default</ic-button
456
+ >
457
+ <ic-button variant="secondary"
458
+ ><ic-badge
459
+ text-label="1"
460
+ slot="badge"
461
+ variant="light"
462
+ size="large"
463
+ ></ic-badge
464
+ >Large</ic-button
465
+ >
466
+ </div>
467
+ <div style="padding:16px">
468
+ <ic-button variant="secondary" style="margin-right:16px"
469
+ ><ic-badge
470
+ type="dot"
471
+ slot="badge"
472
+ variant="light"
473
+ size="small"
474
+ ></ic-badge
475
+ >Small Dot</ic-button
476
+ >
477
+ <ic-button variant="secondary" style="margin-right:16px"
478
+ ><ic-badge type="dot" slot="badge" variant="light"></ic-badge>Default
479
+ Dot</ic-button
480
+ >
481
+ <ic-button variant="secondary"
482
+ ><ic-badge
483
+ type="dot"
484
+ slot="badge"
485
+ variant="light"
486
+ size="large"
487
+ ></ic-badge
488
+ >Large Dot</ic-button
489
+ >
490
+ </div>
491
+ <div style="padding:16px">
492
+ <ic-button variant="secondary" style="margin-right:16px"
493
+ ><ic-badge type="icon" slot="badge" variant="light" size="small">
494
+ <svg
495
+ slot="badge-icon"
496
+ xmlns="http://www.w3.org/2000/svg"
497
+ height="24px"
498
+ viewBox="0 0 24 24"
499
+ width="24px"
500
+ aria-label="retry"
501
+ >
502
+ <path d="M0 0h24v24H0V0z" fill="none" />
503
+ <path
504
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
505
+ />
506
+ </svg> </ic-badge
507
+ >Small Icon</ic-button
508
+ >
509
+ <ic-button variant="secondary" style="margin-right:16px"
510
+ ><ic-badge type="icon" slot="badge" variant="light">
511
+ <svg
512
+ slot="badge-icon"
513
+ xmlns="http://www.w3.org/2000/svg"
514
+ height="24px"
515
+ viewBox="0 0 24 24"
516
+ width="24px"
517
+ aria-label="retry"
518
+ >
519
+ <path d="M0 0h24v24H0V0z" fill="none" />
520
+ <path
521
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
522
+ />
523
+ </svg> </ic-badge
524
+ >Default Icon</ic-button
525
+ >
526
+ <ic-button variant="secondary"
527
+ ><ic-badge type="icon" slot="badge" variant="light" size="large">
528
+ <svg
529
+ slot="badge-icon"
530
+ xmlns="http://www.w3.org/2000/svg"
531
+ height="24px"
532
+ viewBox="0 0 24 24"
533
+ width="24px"
534
+ aria-label="retry"
535
+ >
536
+ <path d="M0 0h24v24H0V0z" fill="none" />
537
+ <path
538
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
539
+ /></svg></ic-badge
540
+ >Large Icon</ic-button
541
+ >
542
+ </div>`,
543
+
544
+ name: "Light",
545
+ };
546
+
547
+ export const Info = {
548
+ render: () =>
549
+ html`<div style="padding:16px;">
550
+ <ic-button variant="secondary" style="margin-right:16px"
551
+ ><ic-badge
552
+ text-label="1"
553
+ slot="badge"
554
+ variant="info"
555
+ size="small"
556
+ ></ic-badge
557
+ >Small</ic-button
558
+ >
559
+ <ic-button variant="secondary" style="margin-right:16px"
560
+ ><ic-badge text-label="1" slot="badge" variant="info"></ic-badge
561
+ >Default</ic-button
562
+ >
563
+ <ic-button variant="secondary"
564
+ ><ic-badge
565
+ text-label="1"
566
+ slot="badge"
567
+ variant="info"
568
+ size="large"
569
+ ></ic-badge
570
+ >Large</ic-button
571
+ >
572
+ </div>
573
+ <div style="padding:16px">
574
+ <ic-button variant="secondary" style="margin-right:16px"
575
+ ><ic-badge
576
+ type="dot"
577
+ slot="badge"
578
+ variant="info"
579
+ size="small"
580
+ ></ic-badge
581
+ >Small Dot</ic-button
582
+ >
583
+ <ic-button variant="secondary" style="margin-right:16px"
584
+ ><ic-badge type="dot" slot="badge" variant="info"></ic-badge>Default
585
+ Dot</ic-button
586
+ >
587
+ <ic-button variant="secondary"
588
+ ><ic-badge
589
+ type="dot"
590
+ slot="badge"
591
+ variant="info"
592
+ size="large"
593
+ ></ic-badge
594
+ >Large Dot</ic-button
595
+ >
596
+ </div>
597
+ <div style="padding:16px">
598
+ <ic-button variant="secondary" style="margin-right:16px"
599
+ ><ic-badge type="icon" slot="badge" variant="info" size="small">
600
+ <svg
601
+ slot="badge-icon"
602
+ xmlns="http://www.w3.org/2000/svg"
603
+ height="24px"
604
+ viewBox="0 0 24 24"
605
+ width="24px"
606
+ aria-label="retry"
607
+ >
608
+ <path d="M0 0h24v24H0V0z" fill="none" />
609
+ <path
610
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
611
+ />
612
+ </svg> </ic-badge
613
+ >Small Icon</ic-button
614
+ >
615
+ <ic-button variant="secondary" style="margin-right:16px"
616
+ ><ic-badge type="icon" slot="badge" variant="info">
617
+ <svg
618
+ slot="badge-icon"
619
+ xmlns="http://www.w3.org/2000/svg"
620
+ height="24px"
621
+ viewBox="0 0 24 24"
622
+ width="24px"
623
+ aria-label="retry"
624
+ >
625
+ <path d="M0 0h24v24H0V0z" fill="none" />
626
+ <path
627
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
628
+ />
629
+ </svg> </ic-badge
630
+ >Default Icon</ic-button
631
+ >
632
+ <ic-button variant="secondary"
633
+ ><ic-badge type="icon" slot="badge" variant="info" size="large">
634
+ <svg
635
+ slot="badge-icon"
636
+ xmlns="http://www.w3.org/2000/svg"
637
+ height="24px"
638
+ viewBox="0 0 24 24"
639
+ width="24px"
640
+ aria-label="retry"
641
+ >
642
+ <path d="M0 0h24v24H0V0z" fill="none" />
643
+ <path
644
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
645
+ /></svg></ic-badge
646
+ >Large Icon</ic-button
647
+ >
648
+ </div>`,
649
+
650
+ name: "Info",
651
+ };
652
+
653
+ export const Custom = {
654
+ render: () =>
655
+ html`<div style="padding:16px;">
656
+ <ic-button variant="secondary" style="margin-right:16px"
657
+ ><ic-badge
658
+ text-label="1"
659
+ slot="badge"
660
+ variant="custom"
661
+ custom-color="#F8C8DC"
662
+ size="small"
663
+ ></ic-badge
664
+ >Small</ic-button
665
+ >
666
+ <ic-button variant="secondary" style="margin-right:16px"
667
+ ><ic-badge
668
+ text-label="1"
669
+ slot="badge"
670
+ variant="custom"
671
+ custom-color="#F8C8DC"
672
+ ></ic-badge
673
+ >Default</ic-button
674
+ >
675
+ <ic-button variant="secondary"
676
+ ><ic-badge
677
+ text-label="1"
678
+ slot="badge"
679
+ variant="custom"
680
+ custom-color="#F8C8DC"
681
+ size="large"
682
+ ></ic-badge
683
+ >Large</ic-button
684
+ >
685
+ </div>
686
+ <div style="padding:16px">
687
+ <ic-button variant="secondary" style="margin-right:16px"
688
+ ><ic-badge
689
+ type="dot"
690
+ slot="badge"
691
+ variant="custom"
692
+ custom-color="#F8C8DC"
693
+ size="small"
694
+ ></ic-badge
695
+ >Small Dot</ic-button
696
+ >
697
+ <ic-button variant="secondary" style="margin-right:16px"
698
+ ><ic-badge
699
+ type="dot"
700
+ slot="badge"
701
+ variant="custom"
702
+ custom-color="#F8C8DC"
703
+ ></ic-badge
704
+ >Default Dot</ic-button
705
+ >
706
+ <ic-button variant="secondary"
707
+ ><ic-badge
708
+ type="dot"
709
+ slot="badge"
710
+ variant="custom"
711
+ custom-color="#F8C8DC"
712
+ size="large"
713
+ ></ic-badge
714
+ >Large Dot</ic-button
715
+ >
716
+ </div>
717
+ <div style="padding:16px">
718
+ <ic-button variant="secondary" style="margin-right:16px"
719
+ ><ic-badge
720
+ type="icon"
721
+ slot="badge"
722
+ variant="custom"
723
+ custom-color="#F8C8DC"
724
+ size="small"
725
+ >
726
+ <svg
727
+ slot="badge-icon"
728
+ xmlns="http://www.w3.org/2000/svg"
729
+ height="24px"
730
+ viewBox="0 0 24 24"
731
+ width="24px"
732
+ aria-label="retry"
733
+ >
734
+ <path d="M0 0h24v24H0V0z" fill="none" />
735
+ <path
736
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
737
+ />
738
+ </svg> </ic-badge
739
+ >Small Icon</ic-button
740
+ >
741
+ <ic-button variant="secondary" style="margin-right:16px"
742
+ ><ic-badge
743
+ type="icon"
744
+ slot="badge"
745
+ variant="custom"
746
+ custom-color="#F8C8DC"
747
+ >
748
+ <svg
749
+ slot="badge-icon"
750
+ xmlns="http://www.w3.org/2000/svg"
751
+ height="24px"
752
+ viewBox="0 0 24 24"
753
+ width="24px"
754
+ aria-label="retry"
755
+ >
756
+ <path d="M0 0h24v24H0V0z" fill="none" />
757
+ <path
758
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
759
+ />
760
+ </svg> </ic-badge
761
+ >Default Icon</ic-button
762
+ >
763
+ <ic-button variant="secondary"
764
+ ><ic-badge
765
+ type="icon"
766
+ slot="badge"
767
+ variant="custom"
768
+ custom-color="#F8C8DC"
769
+ size="large"
770
+ >
771
+ <svg
772
+ slot="badge-icon"
773
+ xmlns="http://www.w3.org/2000/svg"
774
+ height="24px"
775
+ viewBox="0 0 24 24"
776
+ width="24px"
777
+ aria-label="retry"
778
+ >
779
+ <path d="M0 0h24v24H0V0z" fill="none" />
780
+ <path
781
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
782
+ /></svg></ic-badge
783
+ >Large Icon</ic-button
784
+ >
785
+ </div>`,
786
+
787
+ name: "Custom",
788
+ };
789
+
790
+ export const MaxNumber = {
791
+ render: () =>
792
+ html`<div style="padding:16px;">
793
+ <ic-button variant="secondary" style="margin-right:16px"
794
+ ><ic-badge
795
+ text-label="1000"
796
+ slot="badge"
797
+ size="small"
798
+ max-number="9"
799
+ ></ic-badge
800
+ >Small</ic-button
801
+ >
802
+ <ic-button variant="secondary" style="margin-right:16px"
803
+ ><ic-badge text-label="1000" max-number="9" slot="badge"></ic-badge
804
+ >Default</ic-button
805
+ >
806
+ <ic-button variant="secondary"
807
+ ><ic-badge
808
+ text-label="1000"
809
+ slot="badge"
810
+ size="large"
811
+ max-number="9"
812
+ ></ic-badge
813
+ >Large</ic-button
814
+ >
815
+ </div>
816
+ <div style="padding:16px;">
817
+ <ic-button variant="secondary" style="margin-right:16px"
818
+ ><ic-badge
819
+ text-label="1000"
820
+ slot="badge"
821
+ size="small"
822
+ max-number="99"
823
+ ></ic-badge
824
+ >Small</ic-button
825
+ >
826
+ <ic-button variant="secondary" style="margin-right:16px"
827
+ ><ic-badge text-label="1000" max-number="99" slot="badge"></ic-badge
828
+ >Default</ic-button
829
+ >
830
+ <ic-button variant="secondary"
831
+ ><ic-badge
832
+ text-label="1000"
833
+ slot="badge"
834
+ size="large"
835
+ max-number="99"
836
+ ></ic-badge
837
+ >Large</ic-button
838
+ >
839
+ </div>`,
840
+
841
+ name: "Max number",
842
+ };
843
+
844
+ export const PositionNear = {
845
+ render: () =>
846
+ html`<div style="padding:16px;">
847
+ <ic-chip label="Small" style="margin-right:16px;"
848
+ ><ic-badge
849
+ text-label="1"
850
+ slot="badge"
851
+ position="near"
852
+ size="small"
853
+ ></ic-badge
854
+ ></ic-chip>
855
+ <ic-chip label="Default" style="margin-right:16px;"
856
+ ><ic-badge text-label="1" slot="badge" position="near"></ic-badge
857
+ ></ic-chip>
858
+ <ic-chip label="Large"
859
+ ><ic-badge
860
+ text-label="1"
861
+ slot="badge"
862
+ position="near"
863
+ size="large"
864
+ ></ic-badge
865
+ ></ic-chip>
866
+ </div>
867
+ <div style="padding:16px;">
868
+ <ic-chip label="Small Dot" style="margin-right:16px;"
869
+ ><ic-badge
870
+ type="dot"
871
+ slot="badge"
872
+ position="near"
873
+ size="small"
874
+ ></ic-badge
875
+ ></ic-chip>
876
+ <ic-chip label="Default Dot" style="margin-right:16px;"
877
+ ><ic-badge type="dot" slot="badge" position="near"></ic-badge
878
+ ></ic-chip>
879
+ <ic-chip label="Large Dot"
880
+ ><ic-badge
881
+ type="dot"
882
+ slot="badge"
883
+ position="near"
884
+ size="large"
885
+ ></ic-badge
886
+ ></ic-chip>
887
+ </div>`,
888
+
889
+ name: "Position near",
890
+ };
891
+
892
+ export const PositionInline = {
893
+ render: () =>
894
+ html`<ic-tab-context>
895
+ <ic-tab-group label="Example tab group">
896
+ <ic-tab
897
+ >Small<ic-badge
898
+ text-label="1"
899
+ slot="badge"
900
+ position="inline"
901
+ size="small"
902
+ accessible-label="1 notification found"
903
+ ></ic-badge
904
+ ></ic-tab>
905
+ <ic-tab
906
+ >Default<ic-badge
907
+ text-label="1"
908
+ slot="badge"
909
+ position="inline"
910
+ accessible-label="1 notification found"
911
+ ></ic-badge
912
+ ></ic-tab>
913
+ <ic-tab
914
+ >Large<ic-badge
915
+ text-label="1"
916
+ slot="badge"
917
+ position="inline"
918
+ size="large"
919
+ accessible-label="1 notification found"
920
+ ></ic-badge
921
+ ></ic-tab>
922
+ <ic-tab
923
+ >Small Dot<ic-badge
924
+ type="dot"
925
+ slot="badge"
926
+ position="inline"
927
+ size="small"
928
+ ></ic-badge
929
+ ></ic-tab>
930
+ <ic-tab
931
+ >Dot<ic-badge type="dot" slot="badge" position="inline"></ic-badge
932
+ ></ic-tab>
933
+ <ic-tab
934
+ >Large Dot<ic-badge
935
+ type="dot"
936
+ slot="badge"
937
+ position="inline"
938
+ size="large"
939
+ ></ic-badge
940
+ ></ic-tab>
941
+ </ic-tab-group>
942
+ <ic-tab-panel>Small badge</ic-tab-panel>
943
+ <ic-tab-panel>Default badge</ic-tab-panel>
944
+ <ic-tab-panel>Large badge</ic-tab-panel>
945
+ <ic-tab-panel>Small dot badge</ic-tab-panel>
946
+ <ic-tab-panel>Default dot badge</ic-tab-panel>
947
+ <ic-tab-panel>Large dot badge</ic-tab-panel>
948
+ </ic-tab-context>`,
949
+
950
+ name: "Position inline",
951
+ };
952
+
953
+ export const HideBadge = {
954
+ render: () =>
955
+ html`<script>
956
+ function showHideBadge() {
957
+ badge = document.querySelector("ic-badge");
958
+ if (badge.classList.contains("show")) {
959
+ badge.visible = false;
960
+ } else {
961
+ badge.visible = true;
962
+ }
963
+ }
964
+ </script>
965
+ <div style="padding:16px;">
966
+ <ic-button variant="secondary" onclick="showHideBadge()"
967
+ ><ic-badge text-label="1" slot="badge"></ic-badge>Show/Hide
968
+ badge</ic-button
969
+ >
970
+ </div> `,
971
+
972
+ name: "Hide badge",
973
+ };
974
+
975
+ export const AccessibleLabel = {
976
+ render: () =>
977
+ html`<div style="padding:16px;">
978
+ <ic-button variant="secondary" style="margin-right:16px"
979
+ ><ic-badge
980
+ text-label="1"
981
+ slot="badge"
982
+ size="large"
983
+ accessible-label="1 notification found"
984
+ ></ic-badge
985
+ >Default</ic-button
986
+ >
987
+ <ic-chip label="Default dot" dismissible="true"
988
+ ><ic-badge
989
+ type="dot"
990
+ slot="badge"
991
+ position="near"
992
+ accessible-label="Notifications found"
993
+ ></ic-badge
994
+ ></ic-chip>
995
+ </div> `,
996
+
997
+ name: "Accessible label",
998
+ };
999
+
1000
+ export const Playground = {
1001
+ render: (args) =>
1002
+ html`<ic-button variant="secondary">
1003
+ <ic-badge
1004
+ slot="badge"
1005
+ accessible-label=${args.accessibleLabel}
1006
+ custom-color=${args.customColor}
1007
+ max-number=${args.maxNumber}
1008
+ position=${args.position}
1009
+ size=${args.size}
1010
+ text-label=${args.textLabel}
1011
+ type=${args.type}
1012
+ variant=${args.variant}
1013
+ >
1014
+ <svg
1015
+ slot="badge-icon"
1016
+ xmlns="http://www.w3.org/2000/svg"
1017
+ height="24px"
1018
+ viewBox="0 0 24 24"
1019
+ width="24px"
1020
+ aria-label="retry"
1021
+ >
1022
+ <path d="M0 0h24v24H0V0z" fill="none" />
1023
+ <path
1024
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
1025
+ />
1026
+ </svg>
1027
+ </ic-badge>
1028
+ Default
1029
+ </ic-button>`,
1030
+
1031
+ args: defaultArgs,
1032
+
1033
+ argTypes: {
1034
+ customColor: {
1035
+ control: {
1036
+ type: "text",
1037
+ },
1038
+ },
1039
+
1040
+ position: {
1041
+ options: ["far", "near", "inline"],
1042
+
1043
+ control: {
1044
+ type: "radio",
1045
+ },
1046
+ },
1047
+
1048
+ size: {
1049
+ options: ["small", "default", "large"],
1050
+
1051
+ control: {
1052
+ type: "radio",
1053
+ },
1054
+ },
1055
+
1056
+ type: {
1057
+ options: ["text", "dot", "icon"],
1058
+
1059
+ control: {
1060
+ type: "radio",
1061
+ },
1062
+ },
1063
+
1064
+ variant: {
1065
+ options: [
1066
+ "neutral",
1067
+ "success",
1068
+ "warning",
1069
+ "error",
1070
+ "info",
1071
+ "light",
1072
+ "custom",
1073
+ ],
1074
+
1075
+ control: {
1076
+ type: "select",
1077
+ },
1078
+ },
1079
+ },
1080
+
1081
+ name: "Playground",
1082
+ };