@ukic/web-components 2.35.0 → 2.35.1
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.
- package/README.md +1 -0
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
- package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
- package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
- package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
- package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
- package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
- package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
- package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
- package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
- package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -35
- package/dist/collection/components/ic-page-header/ic-page-header.stories.js +557 -0
- package/dist/collection/components/ic-pagination/ic-pagination.stories.js +125 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +486 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
- package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
- package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
- package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
- package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
- package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
- package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
- package/dist/collection/components/ic-toast/ic-toast.js +2 -2
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
- package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
- package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
- package/dist/collection/patterns/z-index.stories.js +474 -0
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-toast.js +2 -2
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/p-3e8023ff.entry.js +2 -0
- package/dist/core/p-3e8023ff.entry.js.map +1 -0
- package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
- package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +2 -2
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/hydrate/index.js +3 -3
- package/package.json +15 -11
- package/dist/core/p-dfb3e76e.entry.js +0 -2
- package/dist/core/p-dfb3e76e.entry.js.map +0 -1
@@ -0,0 +1,537 @@
|
|
1
|
+
import { html } from "lit-html";
|
2
|
+
|
3
|
+
export default {
|
4
|
+
title: "Web Components/Toggle button",
|
5
|
+
component: "ic-toggle-button",
|
6
|
+
};
|
7
|
+
|
8
|
+
export const Default = {
|
9
|
+
render: (args) =>
|
10
|
+
html`<ic-toggle-button label="Toggle"></ic-toggle-button>
|
11
|
+
<script>
|
12
|
+
var toggle = document.querySelector("ic-toggle-button");
|
13
|
+
toggle.addEventListener("icToggleChecked", function (event) {
|
14
|
+
console.log(event.detail.checked);
|
15
|
+
});
|
16
|
+
</script>`,
|
17
|
+
|
18
|
+
name: "Default",
|
19
|
+
};
|
20
|
+
|
21
|
+
export const Checked = {
|
22
|
+
render: (args) =>
|
23
|
+
html`<ic-toggle-button
|
24
|
+
label="Toggle"
|
25
|
+
toggle-checked="true"
|
26
|
+
></ic-toggle-button>`,
|
27
|
+
|
28
|
+
name: "Checked",
|
29
|
+
};
|
30
|
+
|
31
|
+
export const Disabled = {
|
32
|
+
render: (args) =>
|
33
|
+
html`<ic-toggle-button label="Toggle" disabled="true"></ic-toggle-button>
|
34
|
+
<ic-toggle-button
|
35
|
+
label="Toggle"
|
36
|
+
disabled="true"
|
37
|
+
toggle-checked="true"
|
38
|
+
></ic-toggle-button>`,
|
39
|
+
|
40
|
+
name: "Disabled",
|
41
|
+
};
|
42
|
+
|
43
|
+
export const WithIcon = {
|
44
|
+
render: (args) =>
|
45
|
+
html`<ic-toggle-button label="Toggle">
|
46
|
+
<svg
|
47
|
+
slot="icon"
|
48
|
+
xmlns="http://www.w3.org/2000/svg"
|
49
|
+
height="24px"
|
50
|
+
viewBox="0 0 24 24"
|
51
|
+
width="24px"
|
52
|
+
fill="#000000"
|
53
|
+
>
|
54
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
55
|
+
<path
|
56
|
+
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"
|
57
|
+
/>
|
58
|
+
</svg>
|
59
|
+
</ic-toggle-button>`,
|
60
|
+
|
61
|
+
name: "With icon",
|
62
|
+
};
|
63
|
+
|
64
|
+
export const Sizes = {
|
65
|
+
render: (args) =>
|
66
|
+
html`<div style="padding: 6px">
|
67
|
+
<ic-toggle-button label="Toggle" size="small"></ic-toggle-button>
|
68
|
+
</div>
|
69
|
+
<div style="padding: 6px">
|
70
|
+
<ic-toggle-button label="Toggle"></ic-toggle-button>
|
71
|
+
</div>
|
72
|
+
<div style="padding: 6px">
|
73
|
+
<ic-toggle-button label="Toggle" size="large"></ic-toggle-button>
|
74
|
+
</div>`,
|
75
|
+
|
76
|
+
name: "Sizes",
|
77
|
+
};
|
78
|
+
|
79
|
+
export const WithBadge = {
|
80
|
+
render: (args) =>
|
81
|
+
html`<ic-toggle-button label="Toggle">
|
82
|
+
<ic-badge text-label="1" slot="badge" variant="success"></ic-badge>
|
83
|
+
</ic-toggle-button>
|
84
|
+
<ic-toggle-button label="Toggle">
|
85
|
+
<ic-badge slot="badge" variant="success" type="dot"></ic-badge>
|
86
|
+
</ic-toggle-button>`,
|
87
|
+
|
88
|
+
name: "With badge",
|
89
|
+
};
|
90
|
+
|
91
|
+
export const AppearanceDark = {
|
92
|
+
render: (args) =>
|
93
|
+
html`<ic-toggle-button
|
94
|
+
label="Toggle"
|
95
|
+
appearance="dark"
|
96
|
+
></ic-toggle-button>`,
|
97
|
+
|
98
|
+
name: "Appearance dark",
|
99
|
+
};
|
100
|
+
|
101
|
+
export const AppearanceLight = {
|
102
|
+
render: (args) =>
|
103
|
+
html`<div
|
104
|
+
style="background-color:#2c2f34; padding:6px 10px; width:fit-content"
|
105
|
+
>
|
106
|
+
<ic-toggle-button label="Toggle" appearance="light"></ic-toggle-button>
|
107
|
+
</div>`,
|
108
|
+
|
109
|
+
name: "Appearance light",
|
110
|
+
};
|
111
|
+
|
112
|
+
export const FullWidth = {
|
113
|
+
render: (args) =>
|
114
|
+
html`<ic-toggle-button
|
115
|
+
label="Toggle"
|
116
|
+
full-width="true"
|
117
|
+
></ic-toggle-button>`,
|
118
|
+
|
119
|
+
name: "Full width",
|
120
|
+
};
|
121
|
+
|
122
|
+
export const Loading = {
|
123
|
+
render: (args) =>
|
124
|
+
html`<div style="padding: 6px">
|
125
|
+
<ic-toggle-button label="Toggle" loading="true"></ic-toggle-button>
|
126
|
+
<ic-toggle-button
|
127
|
+
label="Toggle"
|
128
|
+
loading="true"
|
129
|
+
toggle-checked="true"
|
130
|
+
></ic-toggle-button>
|
131
|
+
<ic-toggle-button
|
132
|
+
variant="icon"
|
133
|
+
loading="true"
|
134
|
+
accessible-label="Refresh the page"
|
135
|
+
>
|
136
|
+
<svg
|
137
|
+
xmlns="http://www.w3.org/2000/svg"
|
138
|
+
height="24px"
|
139
|
+
viewBox="0 0 24 24"
|
140
|
+
width="24px"
|
141
|
+
fill="#000000"
|
142
|
+
>
|
143
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
144
|
+
<path
|
145
|
+
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"
|
146
|
+
/>
|
147
|
+
</svg>
|
148
|
+
</ic-toggle-button>
|
149
|
+
<ic-toggle-button
|
150
|
+
variant="icon"
|
151
|
+
loading="true"
|
152
|
+
toggle-checked="true"
|
153
|
+
accessible-label="Refresh the page"
|
154
|
+
>
|
155
|
+
<svg
|
156
|
+
xmlns="http://www.w3.org/2000/svg"
|
157
|
+
height="24px"
|
158
|
+
viewBox="0 0 24 24"
|
159
|
+
width="24px"
|
160
|
+
fill="#000000"
|
161
|
+
>
|
162
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
163
|
+
<path
|
164
|
+
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"
|
165
|
+
/>
|
166
|
+
</svg>
|
167
|
+
</ic-toggle-button>
|
168
|
+
</div>
|
169
|
+
<div
|
170
|
+
style="background-color:#2c2f34; padding:6px 10px; width:fit-content"
|
171
|
+
>
|
172
|
+
<ic-toggle-button
|
173
|
+
label="Toggle"
|
174
|
+
loading="true"
|
175
|
+
appearance="light"
|
176
|
+
></ic-toggle-button>
|
177
|
+
<ic-toggle-button
|
178
|
+
label="Toggle"
|
179
|
+
loading="true"
|
180
|
+
toggle-checked="true"
|
181
|
+
appearance="light"
|
182
|
+
></ic-toggle-button>
|
183
|
+
<ic-toggle-button
|
184
|
+
variant="icon"
|
185
|
+
loading="true"
|
186
|
+
accessible-label="Refresh the page"
|
187
|
+
appearance="light"
|
188
|
+
>
|
189
|
+
<svg
|
190
|
+
xmlns="http://www.w3.org/2000/svg"
|
191
|
+
height="24px"
|
192
|
+
viewBox="0 0 24 24"
|
193
|
+
width="24px"
|
194
|
+
fill="#000000"
|
195
|
+
>
|
196
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
197
|
+
<path
|
198
|
+
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"
|
199
|
+
/>
|
200
|
+
</svg>
|
201
|
+
</ic-toggle-button>
|
202
|
+
<ic-toggle-button
|
203
|
+
variant="icon"
|
204
|
+
loading="true"
|
205
|
+
toggle-checked="true"
|
206
|
+
accessible-label="Refresh the page"
|
207
|
+
appearance="light"
|
208
|
+
>
|
209
|
+
<svg
|
210
|
+
xmlns="http://www.w3.org/2000/svg"
|
211
|
+
height="24px"
|
212
|
+
viewBox="0 0 24 24"
|
213
|
+
width="24px"
|
214
|
+
fill="#000000"
|
215
|
+
>
|
216
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
217
|
+
<path
|
218
|
+
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"
|
219
|
+
/>
|
220
|
+
</svg>
|
221
|
+
</ic-toggle-button>
|
222
|
+
</div>
|
223
|
+
<div style="padding:6px 10px; width:fit-content">
|
224
|
+
<ic-toggle-button
|
225
|
+
label="Toggle"
|
226
|
+
loading="true"
|
227
|
+
appearance="dark"
|
228
|
+
></ic-toggle-button>
|
229
|
+
<ic-toggle-button
|
230
|
+
label="Toggle"
|
231
|
+
loading="true"
|
232
|
+
toggle-checked="true"
|
233
|
+
appearance="dark"
|
234
|
+
></ic-toggle-button>
|
235
|
+
<ic-toggle-button
|
236
|
+
variant="icon"
|
237
|
+
loading="true"
|
238
|
+
accessible-label="Refresh the page"
|
239
|
+
appearance="dark"
|
240
|
+
>
|
241
|
+
<svg
|
242
|
+
xmlns="http://www.w3.org/2000/svg"
|
243
|
+
height="24px"
|
244
|
+
viewBox="0 0 24 24"
|
245
|
+
width="24px"
|
246
|
+
fill="#000000"
|
247
|
+
>
|
248
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
249
|
+
<path
|
250
|
+
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"
|
251
|
+
/>
|
252
|
+
</svg>
|
253
|
+
</ic-toggle-button>
|
254
|
+
<ic-toggle-button
|
255
|
+
variant="icon"
|
256
|
+
loading="true"
|
257
|
+
toggle-checked="true"
|
258
|
+
accessible-label="Refresh the page"
|
259
|
+
appearance="dark"
|
260
|
+
>
|
261
|
+
<svg
|
262
|
+
xmlns="http://www.w3.org/2000/svg"
|
263
|
+
height="24px"
|
264
|
+
viewBox="0 0 24 24"
|
265
|
+
width="24px"
|
266
|
+
fill="#000000"
|
267
|
+
>
|
268
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
269
|
+
<path
|
270
|
+
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"
|
271
|
+
/>
|
272
|
+
</svg>
|
273
|
+
</ic-toggle-button>
|
274
|
+
</div>`,
|
275
|
+
|
276
|
+
name: "Loading",
|
277
|
+
};
|
278
|
+
|
279
|
+
export const IconOnly = {
|
280
|
+
render: (args) =>
|
281
|
+
html`<div style="padding:6px 10px; width:fit-content">
|
282
|
+
<ic-toggle-button
|
283
|
+
variant="icon"
|
284
|
+
size="small"
|
285
|
+
accessible-label="Refresh the page"
|
286
|
+
>
|
287
|
+
<svg
|
288
|
+
xmlns="http://www.w3.org/2000/svg"
|
289
|
+
height="24px"
|
290
|
+
viewBox="0 0 24 24"
|
291
|
+
width="24px"
|
292
|
+
fill="#000000"
|
293
|
+
>
|
294
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
295
|
+
<path
|
296
|
+
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"
|
297
|
+
/>
|
298
|
+
</svg>
|
299
|
+
</ic-toggle-button>
|
300
|
+
<ic-toggle-button variant="icon" accessible-label="Refresh the page">
|
301
|
+
<svg
|
302
|
+
xmlns="http://www.w3.org/2000/svg"
|
303
|
+
height="24px"
|
304
|
+
viewBox="0 0 24 24"
|
305
|
+
width="24px"
|
306
|
+
fill="#000000"
|
307
|
+
>
|
308
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
309
|
+
<path
|
310
|
+
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"
|
311
|
+
/>
|
312
|
+
</svg>
|
313
|
+
</ic-toggle-button>
|
314
|
+
<ic-toggle-button
|
315
|
+
variant="icon"
|
316
|
+
size="large"
|
317
|
+
accessible-label="Refresh the page"
|
318
|
+
>
|
319
|
+
<svg
|
320
|
+
xmlns="http://www.w3.org/2000/svg"
|
321
|
+
height="24px"
|
322
|
+
viewBox="0 0 24 24"
|
323
|
+
width="24px"
|
324
|
+
fill="#000000"
|
325
|
+
>
|
326
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
327
|
+
<path
|
328
|
+
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"
|
329
|
+
/>
|
330
|
+
</svg>
|
331
|
+
</ic-toggle-button>
|
332
|
+
<ic-toggle-button
|
333
|
+
variant="icon"
|
334
|
+
disabled="true"
|
335
|
+
accessible-label="Refresh the page"
|
336
|
+
>
|
337
|
+
<svg
|
338
|
+
xmlns="http://www.w3.org/2000/svg"
|
339
|
+
height="24px"
|
340
|
+
viewBox="0 0 24 24"
|
341
|
+
width="24px"
|
342
|
+
fill="#000000"
|
343
|
+
>
|
344
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
345
|
+
<path
|
346
|
+
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"
|
347
|
+
/>
|
348
|
+
</svg>
|
349
|
+
</ic-toggle-button>
|
350
|
+
</div>
|
351
|
+
<div
|
352
|
+
style="background-color:#2c2f34; padding:6px 10px; width:fit-content"
|
353
|
+
>
|
354
|
+
<ic-toggle-button
|
355
|
+
variant="icon"
|
356
|
+
accessible-label="Refresh the page"
|
357
|
+
appearance="light"
|
358
|
+
>
|
359
|
+
<svg
|
360
|
+
xmlns="http://www.w3.org/2000/svg"
|
361
|
+
height="24px"
|
362
|
+
viewBox="0 0 24 24"
|
363
|
+
width="24px"
|
364
|
+
fill="#000000"
|
365
|
+
>
|
366
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
367
|
+
<path
|
368
|
+
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"
|
369
|
+
/>
|
370
|
+
</svg>
|
371
|
+
</ic-toggle-button>
|
372
|
+
<ic-toggle-button
|
373
|
+
variant="icon"
|
374
|
+
disabled="true"
|
375
|
+
accessible-label="Refresh the page"
|
376
|
+
appearance="light"
|
377
|
+
>
|
378
|
+
<svg
|
379
|
+
xmlns="http://www.w3.org/2000/svg"
|
380
|
+
height="24px"
|
381
|
+
viewBox="0 0 24 24"
|
382
|
+
width="24px"
|
383
|
+
fill="#000000"
|
384
|
+
>
|
385
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
386
|
+
<path
|
387
|
+
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"
|
388
|
+
/>
|
389
|
+
</svg>
|
390
|
+
</ic-toggle-button>
|
391
|
+
</div>
|
392
|
+
<div style="padding:6px 10px; width:fit-content">
|
393
|
+
<ic-toggle-button
|
394
|
+
variant="icon"
|
395
|
+
accessible-label="Refresh the page"
|
396
|
+
appearance="dark"
|
397
|
+
>
|
398
|
+
<svg
|
399
|
+
xmlns="http://www.w3.org/2000/svg"
|
400
|
+
height="24px"
|
401
|
+
viewBox="0 0 24 24"
|
402
|
+
width="24px"
|
403
|
+
fill="#000000"
|
404
|
+
>
|
405
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
406
|
+
<path
|
407
|
+
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"
|
408
|
+
/>
|
409
|
+
</svg>
|
410
|
+
</ic-toggle-button>
|
411
|
+
<ic-toggle-button
|
412
|
+
variant="icon"
|
413
|
+
disabled="true"
|
414
|
+
accessible-label="Refresh the page"
|
415
|
+
appearance="dark"
|
416
|
+
>
|
417
|
+
<svg
|
418
|
+
xmlns="http://www.w3.org/2000/svg"
|
419
|
+
height="24px"
|
420
|
+
viewBox="0 0 24 24"
|
421
|
+
width="24px"
|
422
|
+
fill="#000000"
|
423
|
+
>
|
424
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
425
|
+
<path
|
426
|
+
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"
|
427
|
+
/>
|
428
|
+
</svg>
|
429
|
+
</ic-toggle-button>
|
430
|
+
</div>`,
|
431
|
+
|
432
|
+
name: "Icon only",
|
433
|
+
};
|
434
|
+
|
435
|
+
export const IconRight = {
|
436
|
+
render: (args) =>
|
437
|
+
html`<ic-toggle-button label="Toggle" icon-placement="right">
|
438
|
+
<svg
|
439
|
+
slot="icon"
|
440
|
+
xmlns="http://www.w3.org/2000/svg"
|
441
|
+
height="24px"
|
442
|
+
viewBox="0 0 24 24"
|
443
|
+
width="24px"
|
444
|
+
fill="#000000"
|
445
|
+
>
|
446
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
447
|
+
<path
|
448
|
+
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"
|
449
|
+
/>
|
450
|
+
</svg>
|
451
|
+
</ic-toggle-button>`,
|
452
|
+
|
453
|
+
name: "Icon right",
|
454
|
+
};
|
455
|
+
|
456
|
+
export const IconTop = {
|
457
|
+
render: (args) =>
|
458
|
+
html`<ic-toggle-button label="Toggle" icon-placement="top">
|
459
|
+
<svg
|
460
|
+
slot="icon"
|
461
|
+
xmlns="http://www.w3.org/2000/svg"
|
462
|
+
height="24px"
|
463
|
+
viewBox="0 0 24 24"
|
464
|
+
width="24px"
|
465
|
+
fill="#000000"
|
466
|
+
>
|
467
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
468
|
+
<path
|
469
|
+
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"
|
470
|
+
/>
|
471
|
+
</svg>
|
472
|
+
</ic-toggle-button>`,
|
473
|
+
|
474
|
+
name: "Icon top",
|
475
|
+
};
|
476
|
+
|
477
|
+
export const TooltipPlacement = {
|
478
|
+
render: (args) =>
|
479
|
+
html`<div style="padding:100px 10px; width:fit-content">
|
480
|
+
<ic-toggle-button
|
481
|
+
variant="icon"
|
482
|
+
tooltip-placement="right"
|
483
|
+
accessible-label="Refresh the page"
|
484
|
+
>
|
485
|
+
<svg
|
486
|
+
xmlns="http://www.w3.org/2000/svg"
|
487
|
+
height="24px"
|
488
|
+
viewBox="0 0 24 24"
|
489
|
+
width="24px"
|
490
|
+
fill="#000000"
|
491
|
+
>
|
492
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
493
|
+
<path
|
494
|
+
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"
|
495
|
+
/>
|
496
|
+
</svg>
|
497
|
+
</ic-toggle-button>
|
498
|
+
<ic-toggle-button
|
499
|
+
variant="icon"
|
500
|
+
tooltip-placement="top"
|
501
|
+
accessible-label="Refresh the page"
|
502
|
+
>
|
503
|
+
<svg
|
504
|
+
xmlns="http://www.w3.org/2000/svg"
|
505
|
+
height="24px"
|
506
|
+
viewBox="0 0 24 24"
|
507
|
+
width="24px"
|
508
|
+
fill="#000000"
|
509
|
+
>
|
510
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
511
|
+
<path
|
512
|
+
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"
|
513
|
+
/>
|
514
|
+
</svg>
|
515
|
+
</ic-toggle-button>
|
516
|
+
<ic-toggle-button
|
517
|
+
variant="icon"
|
518
|
+
tooltip-placement="left"
|
519
|
+
accessible-label="Refresh the page"
|
520
|
+
>
|
521
|
+
<svg
|
522
|
+
xmlns="http://www.w3.org/2000/svg"
|
523
|
+
height="24px"
|
524
|
+
viewBox="0 0 24 24"
|
525
|
+
width="24px"
|
526
|
+
fill="#000000"
|
527
|
+
>
|
528
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
529
|
+
<path
|
530
|
+
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"
|
531
|
+
/>
|
532
|
+
</svg>
|
533
|
+
</ic-toggle-button>
|
534
|
+
</div>`,
|
535
|
+
|
536
|
+
name: "Tooltip placement",
|
537
|
+
};
|