@getflip/swirl-components 0.80.0 → 0.81.0
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/components.json +724 -82
- package/dist/cjs/index-506fe4ea.js +36 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +10 -4
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-icon-arrow-left_4.cjs.entry.js +12 -3
- package/dist/cjs/swirl-icon-format-h-one.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-mic.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-open-in-full.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-pause-circle.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-pause.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-reply.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-report.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-stop.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon-translate.cjs.entry.js +23 -0
- package/dist/cjs/swirl-modal.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/swirl-button/swirl-button.css +20 -8
- package/dist/collection/components/swirl-button/swirl-button.js +1 -1
- package/dist/collection/components/swirl-chip/swirl-chip.css +68 -13
- package/dist/collection/components/swirl-chip/swirl-chip.js +90 -3
- package/dist/collection/components/swirl-chip/swirl-chip.spec.js +11 -7
- package/dist/collection/components/swirl-icon/icons/swirl-icon-format-h-one.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mic.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-open-in-full.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pause-circle.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pause.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-reply.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-report.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-stop.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-translate.js +52 -0
- package/dist/collection/components/swirl-menu-item/swirl-menu-item.spec.js +2 -2
- package/dist/collection/components/swirl-modal/swirl-modal.js +19 -1
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.css +52 -0
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +100 -4
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.spec.js +22 -1
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.stories.js +8 -0
- package/dist/components/swirl-button2.js +1 -1
- package/dist/components/swirl-chip.js +22 -6
- package/dist/components/swirl-icon-format-h-one.d.ts +11 -0
- package/dist/components/swirl-icon-format-h-one.js +40 -0
- package/dist/components/swirl-icon-mic.d.ts +11 -0
- package/dist/components/swirl-icon-mic.js +40 -0
- package/dist/components/swirl-icon-open-in-full.d.ts +11 -0
- package/dist/components/swirl-icon-open-in-full.js +40 -0
- package/dist/components/swirl-icon-pause-circle.d.ts +11 -0
- package/dist/components/swirl-icon-pause-circle.js +40 -0
- package/dist/components/swirl-icon-pause.d.ts +11 -0
- package/dist/components/swirl-icon-pause.js +40 -0
- package/dist/components/swirl-icon-reply.js +1 -1
- package/dist/components/swirl-icon-report.d.ts +11 -0
- package/dist/components/swirl-icon-report.js +40 -0
- package/dist/components/swirl-icon-stop.d.ts +11 -0
- package/dist/components/swirl-icon-stop.js +40 -0
- package/dist/components/swirl-icon-translate.d.ts +11 -0
- package/dist/components/swirl-icon-translate.js +40 -0
- package/dist/components/swirl-lightbox.js +28 -16
- package/dist/components/swirl-modal.js +3 -1
- package/dist/components/swirl-progress-indicator.js +1 -44
- package/dist/components/swirl-progress-indicator2.js +46 -0
- package/dist/components/swirl-thumbnail2.js +31 -5
- package/dist/esm/index-99d0060d.js +36 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-button.entry.js +1 -1
- package/dist/esm/swirl-chip.entry.js +10 -4
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-icon-arrow-left_4.entry.js +12 -3
- package/dist/esm/swirl-icon-format-h-one.entry.js +19 -0
- package/dist/esm/swirl-icon-mic.entry.js +19 -0
- package/dist/esm/swirl-icon-open-in-full.entry.js +19 -0
- package/dist/esm/swirl-icon-pause-circle.entry.js +19 -0
- package/dist/esm/swirl-icon-pause.entry.js +19 -0
- package/dist/esm/swirl-icon-reply.entry.js +1 -1
- package/dist/esm/swirl-icon-report.entry.js +19 -0
- package/dist/esm/swirl-icon-stop.entry.js +19 -0
- package/dist/esm/swirl-icon-translate.entry.js +19 -0
- package/dist/esm/swirl-modal.entry.js +2 -1
- package/dist/swirl-components/p-006b10e2.entry.js +1 -0
- package/dist/swirl-components/{p-7c2e9a36.entry.js → p-198f5db0.entry.js} +1 -1
- package/dist/swirl-components/p-21164ff1.entry.js +1 -0
- package/dist/swirl-components/p-29d32e39.entry.js +1 -0
- package/dist/swirl-components/p-3056c429.entry.js +1 -0
- package/dist/swirl-components/p-40afc2c1.entry.js +1 -0
- package/dist/swirl-components/p-4d89e91b.entry.js +1 -0
- package/dist/swirl-components/p-57b8a4b5.entry.js +1 -0
- package/dist/swirl-components/p-91113cd1.entry.js +1 -0
- package/dist/swirl-components/p-a506a82f.entry.js +1 -0
- package/dist/swirl-components/p-a7568135.entry.js +10 -0
- package/dist/swirl-components/p-af180d4d.entry.js +1 -0
- package/dist/swirl-components/p-d2845730.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-button/swirl-button.d.ts +1 -1
- package/dist/types/components/swirl-chip/swirl-chip.d.ts +6 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-format-h-one.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-mic.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-open-in-full.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-pause-circle.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-pause.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-report.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-stop.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-translate.d.ts +5 -0
- package/dist/types/components/swirl-modal/swirl-modal.d.ts +1 -0
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.d.ts +7 -2
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.stories.d.ts +8 -0
- package/dist/types/components.d.ts +143 -3
- package/dist/typings.d.ts +1 -0
- package/icons.json +1 -1
- package/package.json +16 -16
- package/vscode-data.json +166 -0
- package/dist/swirl-components/p-0fce283f.entry.js +0 -1
- package/dist/swirl-components/p-3aa690fc.entry.js +0 -1
- package/dist/swirl-components/p-44422011.entry.js +0 -1
- package/dist/swirl-components/p-99738fe7.entry.js +0 -10
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"./components/swirl-icon/icons/swirl-icon-filter.js",
|
|
119
119
|
"./components/swirl-icon/icons/swirl-icon-folder-shared.js",
|
|
120
120
|
"./components/swirl-icon/icons/swirl-icon-folder.js",
|
|
121
|
+
"./components/swirl-icon/icons/swirl-icon-format-h-one.js",
|
|
121
122
|
"./components/swirl-icon/icons/swirl-icon-fullscreen-exit.js",
|
|
122
123
|
"./components/swirl-icon/icons/swirl-icon-fullscreen.js",
|
|
123
124
|
"./components/swirl-icon/icons/swirl-icon-gif.js",
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
"./components/swirl-icon/icons/swirl-icon-menu-outlined.js",
|
|
152
153
|
"./components/swirl-icon/icons/swirl-icon-menu.js",
|
|
153
154
|
"./components/swirl-icon/icons/swirl-icon-message.js",
|
|
155
|
+
"./components/swirl-icon/icons/swirl-icon-mic.js",
|
|
154
156
|
"./components/swirl-icon/icons/swirl-icon-more-horizontal.js",
|
|
155
157
|
"./components/swirl-icon/icons/swirl-icon-more-vertikal.js",
|
|
156
158
|
"./components/swirl-icon/icons/swirl-icon-news-filled.js",
|
|
@@ -158,7 +160,10 @@
|
|
|
158
160
|
"./components/swirl-icon/icons/swirl-icon-notifications-active.js",
|
|
159
161
|
"./components/swirl-icon/icons/swirl-icon-notifications-off.js",
|
|
160
162
|
"./components/swirl-icon/icons/swirl-icon-notifications.js",
|
|
163
|
+
"./components/swirl-icon/icons/swirl-icon-open-in-full.js",
|
|
161
164
|
"./components/swirl-icon/icons/swirl-icon-open-in-new.js",
|
|
165
|
+
"./components/swirl-icon/icons/swirl-icon-pause-circle.js",
|
|
166
|
+
"./components/swirl-icon/icons/swirl-icon-pause.js",
|
|
162
167
|
"./components/swirl-icon/icons/swirl-icon-people-alt.js",
|
|
163
168
|
"./components/swirl-icon/icons/swirl-icon-person-off.js",
|
|
164
169
|
"./components/swirl-icon/icons/swirl-icon-person.js",
|
|
@@ -169,6 +174,7 @@
|
|
|
169
174
|
"./components/swirl-icon/icons/swirl-icon-recieved.js",
|
|
170
175
|
"./components/swirl-icon/icons/swirl-icon-remove.js",
|
|
171
176
|
"./components/swirl-icon/icons/swirl-icon-reply.js",
|
|
177
|
+
"./components/swirl-icon/icons/swirl-icon-report.js",
|
|
172
178
|
"./components/swirl-icon/icons/swirl-icon-roadmap.js",
|
|
173
179
|
"./components/swirl-icon/icons/swirl-icon-search-strong.js",
|
|
174
180
|
"./components/swirl-icon/icons/swirl-icon-search.js",
|
|
@@ -177,12 +183,14 @@
|
|
|
177
183
|
"./components/swirl-icon/icons/swirl-icon-short-text.js",
|
|
178
184
|
"./components/swirl-icon/icons/swirl-icon-simplify.js",
|
|
179
185
|
"./components/swirl-icon/icons/swirl-icon-spellcheck.js",
|
|
186
|
+
"./components/swirl-icon/icons/swirl-icon-stop.js",
|
|
180
187
|
"./components/swirl-icon/icons/swirl-icon-sync.js",
|
|
181
188
|
"./components/swirl-icon/icons/swirl-icon-tasks-filled.js",
|
|
182
189
|
"./components/swirl-icon/icons/swirl-icon-tasks-outlined.js",
|
|
183
190
|
"./components/swirl-icon/icons/swirl-icon-time-filled.js",
|
|
184
191
|
"./components/swirl-icon/icons/swirl-icon-time-outlined.js",
|
|
185
192
|
"./components/swirl-icon/icons/swirl-icon-today.js",
|
|
193
|
+
"./components/swirl-icon/icons/swirl-icon-translate.js",
|
|
186
194
|
"./components/swirl-icon/icons/swirl-icon-undo.js",
|
|
187
195
|
"./components/swirl-icon/icons/swirl-icon-unlock-person.js",
|
|
188
196
|
"./components/swirl-icon/icons/swirl-icon-user-assign.js",
|
|
@@ -66,6 +66,14 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
.button--variant-ghost.button--intent-strong:not(:disabled) {
|
|
70
|
+
color: var(--s-text-default);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.button--variant-ghost.button--intent-strong:not(:disabled) .button__icon {
|
|
74
|
+
color: var(--s-icon-strong);
|
|
75
|
+
}
|
|
76
|
+
|
|
69
77
|
.button--variant-ghost.button--intent-primary:not(:disabled) {
|
|
70
78
|
color: var(--s-text-highlight);
|
|
71
79
|
}
|
|
@@ -200,6 +208,14 @@
|
|
|
200
208
|
padding: 0;
|
|
201
209
|
}
|
|
202
210
|
|
|
211
|
+
.button--variant-plain.button--intent-strong:not(:disabled) {
|
|
212
|
+
color: var(--s-text-default);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.button--variant-plain.button--intent-strong:not(:disabled) .button__icon {
|
|
216
|
+
color: var(--s-icon-strong);
|
|
217
|
+
}
|
|
218
|
+
|
|
203
219
|
.button--variant-plain.button--intent-primary {
|
|
204
220
|
color: var(--s-interactive-primary-default);
|
|
205
221
|
}
|
|
@@ -239,24 +255,20 @@
|
|
|
239
255
|
|
|
240
256
|
.button--variant-on-image {
|
|
241
257
|
color: var(--s-text-on-image);
|
|
242
|
-
background:
|
|
243
|
-
rgba(255, 255, 255, 0.3);
|
|
258
|
+
background: rgba(0, 0, 0, 0.6);
|
|
244
259
|
}
|
|
245
260
|
|
|
246
261
|
.button--variant-on-image:hover {
|
|
247
|
-
background:
|
|
248
|
-
rgba(255, 255, 255, 0.4);
|
|
262
|
+
background: rgba(0, 0, 0, 0.5);
|
|
249
263
|
}
|
|
250
264
|
|
|
251
265
|
.button--variant-on-image:active {
|
|
252
|
-
background:
|
|
253
|
-
rgba(255, 255, 255, 0.5);
|
|
266
|
+
background: rgba(0, 0, 0, 0.4);
|
|
254
267
|
}
|
|
255
268
|
|
|
256
269
|
.button--variant-on-image:disabled {
|
|
257
270
|
color: var(--s-text-on-image);
|
|
258
|
-
background:
|
|
259
|
-
rgba(255, 255, 255, 0.3);
|
|
271
|
+
background: rgba(0, 0, 0, 0.3);
|
|
260
272
|
}
|
|
261
273
|
|
|
262
274
|
.button--variant-on-image:disabled .button__icon {
|
|
@@ -297,7 +297,7 @@ export class SwirlButton {
|
|
|
297
297
|
"mutable": false,
|
|
298
298
|
"complexType": {
|
|
299
299
|
"original": "SwirlButtonIntent",
|
|
300
|
-
"resolved": "\"critical\" | \"default\" | \"primary\"",
|
|
300
|
+
"resolved": "\"critical\" | \"default\" | \"primary\" | \"strong\"",
|
|
301
301
|
"references": {
|
|
302
302
|
"SwirlButtonIntent": {
|
|
303
303
|
"location": "local",
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
.chip {
|
|
12
12
|
display: inline-flex;
|
|
13
|
+
overflow: hidden;
|
|
13
14
|
max-width: 100%;
|
|
14
15
|
height: 2.5rem;
|
|
15
|
-
padding
|
|
16
|
-
padding-left: var(--s-space-16);
|
|
17
|
-
align-items: center;
|
|
16
|
+
padding: 0;
|
|
18
17
|
border: 0.0625rem solid var(--s-border-default);
|
|
19
18
|
border-radius: 1.25rem;
|
|
20
19
|
color: var(--s-text-subdued);
|
|
@@ -23,8 +22,28 @@
|
|
|
23
22
|
font-size: var(--s-font-size-sm);
|
|
24
23
|
font-weight: var(--s-font-weight-medium);
|
|
25
24
|
line-height: var(--s-line-height-sm);
|
|
25
|
+
flex-direction: column;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.chip--size-s {
|
|
29
|
+
height: 2rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.chip--size-s.chip--removable .chip__inner {
|
|
33
|
+
padding-right: calc(1.5rem + var(--s-space-12));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.chip--size-s .chip__inner {
|
|
37
|
+
padding-right: var(--s-space-12);
|
|
38
|
+
padding-left: var(--s-space-12);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.chip--size-s + .chip__remove-button {
|
|
42
|
+
top: var(--s-space-4);
|
|
43
|
+
width: 1.5rem;
|
|
44
|
+
height: 1.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
28
47
|
.chip--interactive {
|
|
29
48
|
cursor: pointer;
|
|
30
49
|
}
|
|
@@ -46,7 +65,7 @@
|
|
|
46
65
|
}
|
|
47
66
|
|
|
48
67
|
.chip--interactive:hover + .chip__remove-button:active {
|
|
49
|
-
background-color: var(--s-surface-
|
|
68
|
+
background-color: var(--s-surface-overlay-pressed);
|
|
50
69
|
}
|
|
51
70
|
|
|
52
71
|
.chip--interactive:active {
|
|
@@ -57,9 +76,17 @@
|
|
|
57
76
|
background-color: var(--s-surface-raised-pressed);
|
|
58
77
|
}
|
|
59
78
|
|
|
60
|
-
.chip--
|
|
61
|
-
|
|
62
|
-
}
|
|
79
|
+
.chip--interactive:active + .chip__remove-button {
|
|
80
|
+
background-color: var(--s-surface-overlay-pressed);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.chip--icon-color-highlight .chip__icon {
|
|
84
|
+
color: var(--s-icon-highlight);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.chip--removable .chip__inner {
|
|
88
|
+
padding-right: calc(1.875rem + var(--s-space-12));
|
|
89
|
+
}
|
|
63
90
|
|
|
64
91
|
.chip--intent-critical {
|
|
65
92
|
border-color: var(--s-border-critical);
|
|
@@ -85,8 +112,6 @@
|
|
|
85
112
|
|
|
86
113
|
.chip--variant-plain {
|
|
87
114
|
height: auto;
|
|
88
|
-
padding-right: 0;
|
|
89
|
-
padding-left: 0;
|
|
90
115
|
border: none;
|
|
91
116
|
border-radius: 0;
|
|
92
117
|
background-color: transparent;
|
|
@@ -110,6 +135,33 @@
|
|
|
110
135
|
background-color: var(--s-surface-raised-pressed);
|
|
111
136
|
}
|
|
112
137
|
|
|
138
|
+
.chip--variant-plain.chip--removable .chip__inner {
|
|
139
|
+
padding-right: var(--s-space-12);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.chip--variant-plain + .chip__remove-button {
|
|
143
|
+
position: relative;
|
|
144
|
+
top: 0;
|
|
145
|
+
right: auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.chip--variant-plain .chip__inner {
|
|
149
|
+
padding-right: 0;
|
|
150
|
+
padding-left: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.chip--has-progress + .chip__remove-button {
|
|
154
|
+
top: 0.1875rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.chip__inner {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
height: 100%;
|
|
160
|
+
padding-right: var(--s-space-16);
|
|
161
|
+
padding-left: var(--s-space-16);
|
|
162
|
+
align-items: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
113
165
|
.chip__avatar,
|
|
114
166
|
.chip__icon {
|
|
115
167
|
display: inline-flex;
|
|
@@ -136,13 +188,17 @@
|
|
|
136
188
|
text-overflow: ellipsis;
|
|
137
189
|
}
|
|
138
190
|
|
|
191
|
+
.chip__progress-indicator {
|
|
192
|
+
width: 100%;
|
|
193
|
+
}
|
|
194
|
+
|
|
139
195
|
.chip__remove-button {
|
|
140
196
|
position: absolute;
|
|
141
|
-
top:
|
|
197
|
+
top: 0.3125rem;
|
|
142
198
|
right: var(--s-space-4);
|
|
143
199
|
display: inline-flex;
|
|
144
|
-
width:
|
|
145
|
-
height:
|
|
200
|
+
width: 1.875rem;
|
|
201
|
+
height: 1.875rem;
|
|
146
202
|
padding: 0;
|
|
147
203
|
justify-content: center;
|
|
148
204
|
align-items: center;
|
|
@@ -151,7 +207,6 @@
|
|
|
151
207
|
color: var(--s-icon-default);
|
|
152
208
|
background-color: var(--s-surface-overlay-default);
|
|
153
209
|
cursor: pointer;
|
|
154
|
-
transform: translateY(-50%);
|
|
155
210
|
}
|
|
156
211
|
|
|
157
212
|
.chip__remove-button:hover {
|
|
@@ -12,11 +12,15 @@ export class SwirlChip {
|
|
|
12
12
|
};
|
|
13
13
|
this.borderRadius = "pill";
|
|
14
14
|
this.icon = undefined;
|
|
15
|
+
this.iconColor = "default";
|
|
15
16
|
this.intent = "default";
|
|
16
17
|
this.interactive = false;
|
|
17
18
|
this.label = undefined;
|
|
19
|
+
this.progress = undefined;
|
|
20
|
+
this.progressBarLabel = "Loading progress";
|
|
18
21
|
this.removable = undefined;
|
|
19
22
|
this.removeButtonLabel = "Remove";
|
|
23
|
+
this.size = "m";
|
|
20
24
|
this.variant = "outline";
|
|
21
25
|
}
|
|
22
26
|
componentDidLoad() {
|
|
@@ -32,17 +36,19 @@ export class SwirlChip {
|
|
|
32
36
|
return;
|
|
33
37
|
}
|
|
34
38
|
const icon = this.iconEl.children[0];
|
|
35
|
-
|
|
39
|
+
const iconSize = this.size === "s" ? "16" : smallIcon ? "20" : "24";
|
|
40
|
+
icon === null || icon === void 0 ? void 0 : icon.setAttribute("size", iconSize);
|
|
36
41
|
}
|
|
37
42
|
render() {
|
|
38
43
|
const Tag = this.interactive ? "button" : "span";
|
|
39
44
|
const showAvatar = Boolean(this.el.querySelector('[slot="avatar"]'));
|
|
40
45
|
const showIcon = !showAvatar && Boolean(this.icon);
|
|
41
|
-
const className = classnames("chip", `chip--border-radius-${this.borderRadius}`, `chip--intent-${this.intent}`, `chip--variant-${this.variant}`, {
|
|
46
|
+
const className = classnames("chip", `chip--border-radius-${this.borderRadius}`, `chip--icon-color-${this.iconColor}`, `chip--intent-${this.intent}`, `chip--size-${this.size}`, `chip--variant-${this.variant}`, {
|
|
47
|
+
"chip--has-progress": this.progress !== undefined,
|
|
42
48
|
"chip--interactive": this.interactive,
|
|
43
49
|
"chip--removable": this.removable,
|
|
44
50
|
});
|
|
45
|
-
return (h(Host, null, h(Tag, { class: className, type: this.interactive ? "button" : undefined }, showAvatar && (h("span", { class: "chip__avatar" }, h("slot", { name: "avatar" }))), showIcon && (h("span", { class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { class: "chip__label" }, this.label)), this.removable && (h("button", { "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.remove.emit }, h("swirl-icon-close", { size: 20 })))));
|
|
51
|
+
return (h(Host, null, h(Tag, { class: className, type: this.interactive ? "button" : undefined }, h("span", { class: "chip__inner" }, showAvatar && (h("span", { class: "chip__avatar" }, h("slot", { name: "avatar" }))), showIcon && (h("span", { class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { class: "chip__label" }, this.label)), this.progress !== undefined && (h("span", { class: "chip__progress-indicator" }, h("swirl-progress-indicator", { label: this.progressBarLabel, value: this.progress })))), this.removable && (h("button", { "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.remove.emit }, h("swirl-icon-close", { size: 20 })))));
|
|
46
52
|
}
|
|
47
53
|
static get is() { return "swirl-chip"; }
|
|
48
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,6 +104,29 @@ export class SwirlChip {
|
|
|
98
104
|
"attribute": "icon",
|
|
99
105
|
"reflect": false
|
|
100
106
|
},
|
|
107
|
+
"iconColor": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "SwirlChipIconColor",
|
|
112
|
+
"resolved": "\"default\" | \"highlight\"",
|
|
113
|
+
"references": {
|
|
114
|
+
"SwirlChipIconColor": {
|
|
115
|
+
"location": "local",
|
|
116
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-chip/swirl-chip.tsx"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"attribute": "icon-color",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "\"default\""
|
|
129
|
+
},
|
|
101
130
|
"intent": {
|
|
102
131
|
"type": "string",
|
|
103
132
|
"mutable": false,
|
|
@@ -156,6 +185,41 @@ export class SwirlChip {
|
|
|
156
185
|
"attribute": "label",
|
|
157
186
|
"reflect": false
|
|
158
187
|
},
|
|
188
|
+
"progress": {
|
|
189
|
+
"type": "number",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "number",
|
|
193
|
+
"resolved": "number",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": true,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": ""
|
|
201
|
+
},
|
|
202
|
+
"attribute": "progress",
|
|
203
|
+
"reflect": false
|
|
204
|
+
},
|
|
205
|
+
"progressBarLabel": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "string",
|
|
210
|
+
"resolved": "string",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": ""
|
|
218
|
+
},
|
|
219
|
+
"attribute": "progress-bar-label",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "\"Loading progress\""
|
|
222
|
+
},
|
|
159
223
|
"removable": {
|
|
160
224
|
"type": "boolean",
|
|
161
225
|
"mutable": false,
|
|
@@ -191,6 +255,29 @@ export class SwirlChip {
|
|
|
191
255
|
"reflect": false,
|
|
192
256
|
"defaultValue": "\"Remove\""
|
|
193
257
|
},
|
|
258
|
+
"size": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "SwirlChipSize",
|
|
263
|
+
"resolved": "\"m\" | \"s\"",
|
|
264
|
+
"references": {
|
|
265
|
+
"SwirlChipSize": {
|
|
266
|
+
"location": "local",
|
|
267
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-chip/swirl-chip.tsx"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": false,
|
|
272
|
+
"optional": true,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [],
|
|
275
|
+
"text": ""
|
|
276
|
+
},
|
|
277
|
+
"attribute": "size",
|
|
278
|
+
"reflect": false,
|
|
279
|
+
"defaultValue": "\"m\""
|
|
280
|
+
},
|
|
194
281
|
"variant": {
|
|
195
282
|
"type": "string",
|
|
196
283
|
"mutable": false,
|
|
@@ -9,8 +9,10 @@ describe("swirl-chip", () => {
|
|
|
9
9
|
expect(page.root).toEqualHtml(`
|
|
10
10
|
<swirl-chip intent="critical" label="Label">
|
|
11
11
|
<mock:shadow-root>
|
|
12
|
-
<span class="chip chip--border-radius-pill chip--intent-critical chip--variant-outline">
|
|
13
|
-
<span class="
|
|
12
|
+
<span class="chip chip--border-radius-pill chip--icon-color-default chip--intent-critical chip--size-m chip--variant-outline">
|
|
13
|
+
<span class="chip__inner">
|
|
14
|
+
<span class="chip__label">Label</span>
|
|
15
|
+
</span>
|
|
14
16
|
</span>
|
|
15
17
|
</mock:shadow-root>
|
|
16
18
|
</swirl-chip>
|
|
@@ -24,8 +26,10 @@ describe("swirl-chip", () => {
|
|
|
24
26
|
expect(page.root).toEqualHtml(`
|
|
25
27
|
<swirl-chip interactive="true" label="Label">
|
|
26
28
|
<mock:shadow-root>
|
|
27
|
-
<button class="chip chip--border-radius-pill chip--intent-default chip--interactive chip--variant-outline" type="button">
|
|
28
|
-
<span class="
|
|
29
|
+
<button class="chip chip--border-radius-pill chip--icon-color-default chip--intent-default chip--size-m chip--interactive chip--variant-outline" type="button">
|
|
30
|
+
<span class="chip__inner">
|
|
31
|
+
<span class="chip__label">Label</span>
|
|
32
|
+
</span>
|
|
29
33
|
</button>
|
|
30
34
|
</mock:shadow-root>
|
|
31
35
|
</swirl-chip>
|
|
@@ -39,9 +43,9 @@ describe("swirl-chip", () => {
|
|
|
39
43
|
expect(page.root).toEqualHtml(`
|
|
40
44
|
<swirl-chip label="Label">
|
|
41
45
|
<mock:shadow-root>
|
|
42
|
-
<span class="chip chip--border-radius-pill chip--intent-default chip--variant-outline">
|
|
43
|
-
<span class="
|
|
44
|
-
Label
|
|
46
|
+
<span class="chip chip--border-radius-pill chip--icon-color-default chip--intent-default chip--size-m chip--variant-outline">
|
|
47
|
+
<span class="chip__inner">
|
|
48
|
+
<span class="chip__label">Label</span>
|
|
45
49
|
</span>
|
|
46
50
|
</span>
|
|
47
51
|
</mock:shadow-root>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlIconFormatHOne {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const viewBoxSize = this.size === 20 ? 24 : this.size;
|
|
10
|
+
const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
11
|
+
return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M4.00004 11.3334C3.81115 11.3334 3.65271 11.2694 3.52471 11.1414C3.39715 11.0138 3.33337 10.8556 3.33337 10.6667V5.33335C3.33337 5.14446 3.39715 4.98602 3.52471 4.85802C3.65271 4.73046 3.81115 4.66669 4.00004 4.66669C4.18893 4.66669 4.34737 4.73046 4.47537 4.85802C4.60293 4.98602 4.66671 5.14446 4.66671 5.33335V7.33335H7.33337V5.33335C7.33337 5.14446 7.39737 4.98602 7.52537 4.85802C7.65293 4.73046 7.81115 4.66669 8.00004 4.66669C8.18893 4.66669 8.34737 4.73046 8.47537 4.85802C8.60293 4.98602 8.66671 5.14446 8.66671 5.33335V10.6667C8.66671 10.8556 8.60293 11.0138 8.47537 11.1414C8.34737 11.2694 8.18893 11.3334 8.00004 11.3334C7.81115 11.3334 7.65293 11.2694 7.52537 11.1414C7.39737 11.0138 7.33337 10.8556 7.33337 10.6667V8.66669H4.66671V10.6667C4.66671 10.8556 4.60293 11.0138 4.47537 11.1414C4.34737 11.2694 4.18893 11.3334 4.00004 11.3334ZM12 11.3334C11.8112 11.3334 11.6529 11.2694 11.5254 11.1414C11.3974 11.0138 11.3334 10.8556 11.3334 10.6667V6.00002H10.6667C10.4778 6.00002 10.3196 5.93602 10.192 5.80802C10.064 5.68046 10 5.52224 10 5.33335C10 5.14446 10.064 4.98602 10.192 4.85802C10.3196 4.73046 10.4778 4.66669 10.6667 4.66669H12C12.1889 4.66669 12.3472 4.73046 12.4747 4.85802C12.6027 4.98602 12.6667 5.14446 12.6667 5.33335V10.6667C12.6667 10.8556 12.6027 11.0138 12.4747 11.1414C12.3472 11.2694 12.1889 11.3334 12 11.3334Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M6 17C5.71667 17 5.479 16.904 5.287 16.712C5.09567 16.5207 5 16.2833 5 16V8C5 7.71667 5.09567 7.479 5.287 7.287C5.479 7.09567 5.71667 7 6 7C6.28333 7 6.521 7.09567 6.713 7.287C6.90433 7.479 7 7.71667 7 8V11H11V8C11 7.71667 11.096 7.479 11.288 7.287C11.4793 7.09567 11.7167 7 12 7C12.2833 7 12.521 7.09567 12.713 7.287C12.9043 7.479 13 7.71667 13 8V16C13 16.2833 12.9043 16.5207 12.713 16.712C12.521 16.904 12.2833 17 12 17C11.7167 17 11.4793 16.904 11.288 16.712C11.096 16.5207 11 16.2833 11 16V13H7V16C7 16.2833 6.90433 16.5207 6.713 16.712C6.521 16.904 6.28333 17 6 17ZM18 17C17.7167 17 17.4793 16.904 17.288 16.712C17.096 16.5207 17 16.2833 17 16V9H16C15.7167 9 15.4793 8.904 15.288 8.712C15.096 8.52067 15 8.28333 15 8C15 7.71667 15.096 7.479 15.288 7.287C15.4793 7.09567 15.7167 7 16 7H18C18.2833 7 18.5207 7.09567 18.712 7.287C18.904 7.479 19 7.71667 19 8V16C19 16.2833 18.904 16.5207 18.712 16.712C18.5207 16.904 18.2833 17 18 17Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M7.00004 19.8334C6.66949 19.8334 6.39221 19.7214 6.16821 19.4974C5.94499 19.2741 5.83337 18.9972 5.83337 18.6667V9.33335C5.83337 9.0028 5.94499 8.72552 6.16821 8.50152C6.39221 8.2783 6.66949 8.16669 7.00004 8.16669C7.3306 8.16669 7.60787 8.2783 7.83187 8.50152C8.0551 8.72552 8.16671 9.0028 8.16671 9.33335V12.8334H12.8334V9.33335C12.8334 9.0028 12.9454 8.72552 13.1694 8.50152C13.3926 8.2783 13.6695 8.16669 14 8.16669C14.3306 8.16669 14.6079 8.2783 14.8319 8.50152C15.0551 8.72552 15.1667 9.0028 15.1667 9.33335V18.6667C15.1667 18.9972 15.0551 19.2741 14.8319 19.4974C14.6079 19.7214 14.3306 19.8334 14 19.8334C13.6695 19.8334 13.3926 19.7214 13.1694 19.4974C12.9454 19.2741 12.8334 18.9972 12.8334 18.6667V15.1667H8.16671V18.6667C8.16671 18.9972 8.0551 19.2741 7.83187 19.4974C7.60787 19.7214 7.3306 19.8334 7.00004 19.8334ZM21 19.8334C20.6695 19.8334 20.3926 19.7214 20.1694 19.4974C19.9454 19.2741 19.8334 18.9972 19.8334 18.6667V10.5H18.6667C18.3362 10.5 18.0593 10.388 17.836 10.164C17.612 9.9408 17.5 9.66391 17.5 9.33335C17.5 9.0028 17.612 8.72552 17.836 8.50152C18.0593 8.2783 18.3362 8.16669 18.6667 8.16669H21C21.3306 8.16669 21.6075 8.2783 21.8307 8.50152C22.0547 8.72552 22.1667 9.0028 22.1667 9.33335V18.6667C22.1667 18.9972 22.0547 19.2741 21.8307 19.4974C21.6075 19.7214 21.3306 19.8334 21 19.8334Z", fill: "currentColor" })))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-icon-format-h-one"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-icon.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-icon.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "SwirlIconSize",
|
|
32
|
+
"resolved": "16 | 20 | 24 | 28",
|
|
33
|
+
"references": {
|
|
34
|
+
"SwirlIconSize": {
|
|
35
|
+
"location": "import",
|
|
36
|
+
"path": "../swirl-icon.types"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "size",
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"defaultValue": "24"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlIconMic {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const viewBoxSize = this.size === 20 ? 24 : this.size;
|
|
10
|
+
const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
11
|
+
return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M7.99997 9.33325C9.10664 9.33325 9.99997 8.43992 9.99997 7.33325V3.33325C9.99997 2.22659 9.10664 1.33325 7.99997 1.33325C6.8933 1.33325 5.99997 2.22659 5.99997 3.33325V7.33325C5.99997 8.43992 6.8933 9.33325 7.99997 9.33325ZM11.94 7.33325C11.6133 7.33325 11.34 7.57325 11.2866 7.89992C11.0133 9.46659 9.64664 10.6666 7.99997 10.6666C6.3533 10.6666 4.98664 9.46659 4.7133 7.89992C4.65997 7.57325 4.38664 7.33325 4.05997 7.33325C3.6533 7.33325 3.3333 7.69325 3.3933 8.09325C3.71997 10.0933 5.31997 11.6599 7.3333 11.9466V13.3333C7.3333 13.6999 7.6333 13.9999 7.99997 13.9999C8.36664 13.9999 8.66664 13.6999 8.66664 13.3333V11.9466C10.68 11.6599 12.28 10.0933 12.6066 8.09325C12.6733 7.69325 12.3466 7.33325 11.94 7.33325Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M12 14C13.66 14 15 12.66 15 11V5C15 3.34 13.66 2 12 2C10.34 2 8.99999 3.34 8.99999 5V11C8.99999 12.66 10.34 14 12 14ZM17.91 11C17.42 11 17.01 11.36 16.93 11.85C16.52 14.2 14.47 16 12 16C9.52999 16 7.47999 14.2 7.06999 11.85C6.98999 11.36 6.57999 11 6.08999 11C5.47999 11 4.99999 11.54 5.08999 12.14C5.57999 15.14 7.97999 17.49 11 17.92V20C11 20.55 11.45 21 12 21C12.55 21 13 20.55 13 20V17.92C16.02 17.49 18.42 15.14 18.91 12.14C19.01 11.54 18.52 11 17.91 11Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M14 16.3333C15.9366 16.3333 17.5 14.7699 17.5 12.8333V5.83325C17.5 3.89659 15.9366 2.33325 14 2.33325C12.0633 2.33325 10.5 3.89659 10.5 5.83325V12.8333C10.5 14.7699 12.0633 16.3333 14 16.3333ZM20.895 12.8333C20.3233 12.8333 19.845 13.2533 19.7516 13.8249C19.2733 16.5666 16.8816 18.6666 14 18.6666C11.1183 18.6666 8.72663 16.5666 8.2483 13.8249C8.15496 13.2533 7.67663 12.8333 7.10496 12.8333C6.3933 12.8333 5.8333 13.4633 5.9383 14.1633C6.50996 17.6633 9.30996 20.4049 12.8333 20.9066V23.3333C12.8333 23.9749 13.3583 24.4999 14 24.4999C14.6416 24.4999 15.1666 23.9749 15.1666 23.3333V20.9066C18.69 20.4049 21.49 17.6633 22.0616 14.1633C22.1783 13.4633 21.6066 12.8333 20.895 12.8333Z", fill: "currentColor" })))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-icon-mic"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-icon.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-icon.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "SwirlIconSize",
|
|
32
|
+
"resolved": "16 | 20 | 24 | 28",
|
|
33
|
+
"references": {
|
|
34
|
+
"SwirlIconSize": {
|
|
35
|
+
"location": "import",
|
|
36
|
+
"path": "../swirl-icon.types"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "size",
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"defaultValue": "24"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlIconOpenInFull {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const viewBoxSize = this.size === 20 ? 24 : this.size;
|
|
10
|
+
const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
11
|
+
return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M14 2.66667C14 2.47778 13.9361 2.31944 13.8083 2.19167C13.6806 2.06389 13.5222 2 13.3333 2L9.33333 2C9.14445 2 8.98611 2.06389 8.85833 2.19167C8.73056 2.31944 8.66667 2.47778 8.66667 2.66667C8.66667 2.85556 8.73056 3.01389 8.85833 3.14167C8.98611 3.26944 9.14445 3.33333 9.33333 3.33333L11.7333 3.33333L3.33333 11.7333V9.33333C3.33333 9.14444 3.26944 8.98611 3.14167 8.85833C3.01389 8.73056 2.85556 8.66667 2.66667 8.66667C2.47778 8.66667 2.31944 8.73056 2.19167 8.85833C2.06389 8.98611 2 9.14444 2 9.33333L2 13.3333C2 13.5222 2.06389 13.6806 2.19167 13.8083C2.31944 13.9361 2.47778 14 2.66667 14H6.66667C6.85556 14 7.01389 13.9361 7.14167 13.8083C7.26944 13.6806 7.33333 13.5222 7.33333 13.3333C7.33333 13.1444 7.26944 12.9861 7.14167 12.8583C7.01389 12.7306 6.85556 12.6667 6.66667 12.6667H4.26667L12.6667 4.26667V6.66667C12.6667 6.85556 12.7306 7.01389 12.8583 7.14167C12.9861 7.26944 13.1444 7.33333 13.3333 7.33333C13.5222 7.33333 13.6806 7.26944 13.8083 7.14167C13.9361 7.01389 14 6.85556 14 6.66667V2.66667Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M4 21C3.71667 21 3.47917 20.9042 3.2875 20.7125C3.09583 20.5208 3 20.2833 3 20V14C3 13.7167 3.09583 13.4792 3.2875 13.2875C3.47917 13.0958 3.71667 13 4 13C4.28333 13 4.52083 13.0958 4.7125 13.2875C4.90417 13.4792 5 13.7167 5 14V17.6L17.6 5H14C13.7167 5 13.4792 4.90417 13.2875 4.7125C13.0958 4.52083 13 4.28333 13 4C13 3.71667 13.0958 3.47917 13.2875 3.2875C13.4792 3.09583 13.7167 3 14 3H20C20.2833 3 20.5208 3.09583 20.7125 3.2875C20.9042 3.47917 21 3.71667 21 4V10C21 10.2833 20.9042 10.5208 20.7125 10.7125C20.5208 10.9042 20.2833 11 20 11C19.7167 11 19.4792 10.9042 19.2875 10.7125C19.0958 10.5208 19 10.2833 19 10V6.4L6.4 19H10C10.2833 19 10.5208 19.0958 10.7125 19.2875C10.9042 19.4792 11 19.7167 11 20C11 20.2833 10.9042 20.5208 10.7125 20.7125C10.5208 20.9042 10.2833 21 10 21H4Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M24.5 4.66667C24.5 4.33611 24.3882 4.05903 24.1646 3.83542C23.941 3.61181 23.6639 3.5 23.3333 3.5L16.3333 3.5C16.0028 3.5 15.7257 3.61181 15.5021 3.83542C15.2785 4.05903 15.1667 4.33611 15.1667 4.66667C15.1667 4.99722 15.2785 5.27431 15.5021 5.49792C15.7257 5.72153 16.0028 5.83333 16.3333 5.83333L20.5333 5.83333L5.83333 20.5333V16.3333C5.83333 16.0028 5.72153 15.7257 5.49792 15.5021C5.27431 15.2785 4.99722 15.1667 4.66667 15.1667C4.33611 15.1667 4.05903 15.2785 3.83542 15.5021C3.61181 15.7257 3.5 16.0028 3.5 16.3333L3.5 23.3333C3.5 23.6639 3.61181 23.941 3.83542 24.1646C4.05903 24.3882 4.33611 24.5 4.66667 24.5L11.6667 24.5C11.9972 24.5 12.2743 24.3882 12.4979 24.1646C12.7215 23.941 12.8333 23.6639 12.8333 23.3333C12.8333 23.0028 12.7215 22.7257 12.4979 22.5021C12.2743 22.2785 11.9972 22.1667 11.6667 22.1667H7.46667L22.1667 7.46667V11.6667C22.1667 11.9972 22.2785 12.2743 22.5021 12.4979C22.7257 12.7215 23.0028 12.8333 23.3333 12.8333C23.6639 12.8333 23.941 12.7215 24.1646 12.4979C24.3882 12.2743 24.5 11.9972 24.5 11.6667V4.66667Z", fill: "currentColor" })))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-icon-open-in-full"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-icon.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-icon.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "SwirlIconSize",
|
|
32
|
+
"resolved": "16 | 20 | 24 | 28",
|
|
33
|
+
"references": {
|
|
34
|
+
"SwirlIconSize": {
|
|
35
|
+
"location": "import",
|
|
36
|
+
"path": "../swirl-icon.types"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "size",
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"defaultValue": "24"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlIconPauseCircle {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const viewBoxSize = this.size === 20 ? 24 : this.size;
|
|
10
|
+
const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
11
|
+
return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M6.66665 10.6666C7.03331 10.6666 7.33331 10.3666 7.33331 9.99992V5.99992C7.33331 5.63325 7.03331 5.33325 6.66665 5.33325C6.29998 5.33325 5.99998 5.63325 5.99998 5.99992V9.99992C5.99998 10.3666 6.29998 10.6666 6.66665 10.6666ZM7.99998 1.33325C4.31998 1.33325 1.33331 4.31992 1.33331 7.99992C1.33331 11.6799 4.31998 14.6666 7.99998 14.6666C11.68 14.6666 14.6666 11.6799 14.6666 7.99992C14.6666 4.31992 11.68 1.33325 7.99998 1.33325ZM7.99998 13.3333C5.05998 13.3333 2.66665 10.9399 2.66665 7.99992C2.66665 5.05992 5.05998 2.66659 7.99998 2.66659C10.94 2.66659 13.3333 5.05992 13.3333 7.99992C13.3333 10.9399 10.94 13.3333 7.99998 13.3333ZM9.33331 10.6666C9.69998 10.6666 9.99998 10.3666 9.99998 9.99992V5.99992C9.99998 5.63325 9.69998 5.33325 9.33331 5.33325C8.96665 5.33325 8.66665 5.63325 8.66665 5.99992V9.99992C8.66665 10.3666 8.96665 10.6666 9.33331 10.6666Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M10 16C10.55 16 11 15.55 11 15V9C11 8.45 10.55 8 10 8C9.45 8 9 8.45 9 9V15C9 15.55 9.45 16 10 16ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM14 16C14.55 16 15 15.55 15 15V9C15 8.45 14.55 8 14 8C13.45 8 13 8.45 13 9V15C13 15.55 13.45 16 14 16Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M11.6666 18.6666C12.3083 18.6666 12.8333 18.1416 12.8333 17.4999V10.4999C12.8333 9.85825 12.3083 9.33325 11.6666 9.33325C11.025 9.33325 10.5 9.85825 10.5 10.4999V17.4999C10.5 18.1416 11.025 18.6666 11.6666 18.6666ZM14 2.33325C7.55998 2.33325 2.33331 7.55992 2.33331 13.9999C2.33331 20.4399 7.55998 25.6666 14 25.6666C20.44 25.6666 25.6666 20.4399 25.6666 13.9999C25.6666 7.55992 20.44 2.33325 14 2.33325ZM14 23.3333C8.85498 23.3333 4.66665 19.1449 4.66665 13.9999C4.66665 8.85492 8.85498 4.66659 14 4.66659C19.145 4.66659 23.3333 8.85492 23.3333 13.9999C23.3333 19.1449 19.145 23.3333 14 23.3333ZM16.3333 18.6666C16.975 18.6666 17.5 18.1416 17.5 17.4999V10.4999C17.5 9.85825 16.975 9.33325 16.3333 9.33325C15.6916 9.33325 15.1666 9.85825 15.1666 10.4999V17.4999C15.1666 18.1416 15.6916 18.6666 16.3333 18.6666Z", fill: "currentColor" })))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-icon-pause-circle"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-icon.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-icon.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "SwirlIconSize",
|
|
32
|
+
"resolved": "16 | 20 | 24 | 28",
|
|
33
|
+
"references": {
|
|
34
|
+
"SwirlIconSize": {
|
|
35
|
+
"location": "import",
|
|
36
|
+
"path": "../swirl-icon.types"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "size",
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"defaultValue": "24"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|