@mirai/ui 1.0.60 → 1.0.61
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 +10 -3
- package/build/components/Calendar/Calendar.Month.js +2 -2
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/InputNumber/InputNumber.js +2 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputOption/InputOption.js +1 -1
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputSelect/InputSelect.js +2 -2
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputText/InputText.js +4 -4
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +6 -2
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/Menu/Menu.Option.js +2 -2
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +2 -2
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +2 -3
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +0 -3
- package/build/components/Modal/Modal.js +2 -2
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Notification/Notification.js +2 -2
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Table/Table.Row.js +1 -1
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/helpers/getIconState.js +20 -0
- package/build/helpers/getIconState.js.map +1 -0
- package/build/helpers/index.js +4 -4
- package/build/helpers/index.js.map +1 -1
- package/build/primitives/Icon/Icon.constants.js +25 -25
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/Icon.js +5 -7
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +31 -19
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +517 -8
- package/build/primitives/Icon/index.js +3 -3
- package/build/primitives/Icon/index.js.map +1 -1
- package/package.json +1 -1
- package/build/helpers/getIconName.js +0 -18
- package/build/helpers/getIconName.js.map +0 -1
|
@@ -4,6 +4,16 @@ exports[`primitive:<Icon> inherit:className 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<span
|
|
6
6
|
class="icon headline-3 mirai"
|
|
7
|
+
name="Left"
|
|
8
|
+
/>
|
|
9
|
+
</DocumentFragment>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
exports[`primitive:<Icon> prop:value prop:value (ACCOUNT) 1`] = `
|
|
13
|
+
<DocumentFragment>
|
|
14
|
+
<span
|
|
15
|
+
class="icon headline-3"
|
|
16
|
+
name="Left"
|
|
7
17
|
>
|
|
8
18
|
<svg
|
|
9
19
|
fill="currentColor"
|
|
@@ -19,25 +29,126 @@ exports[`primitive:<Icon> inherit:className 1`] = `
|
|
|
19
29
|
fill="none"
|
|
20
30
|
/>
|
|
21
31
|
<path
|
|
22
|
-
d="
|
|
32
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 014 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
|
|
23
33
|
/>
|
|
24
34
|
</svg>
|
|
25
35
|
</span>
|
|
26
36
|
</DocumentFragment>
|
|
27
37
|
`;
|
|
28
38
|
|
|
29
|
-
exports[`primitive:<Icon> prop:
|
|
39
|
+
exports[`primitive:<Icon> prop:value prop:value (ADD) 1`] = `
|
|
30
40
|
<DocumentFragment>
|
|
31
41
|
<span
|
|
32
42
|
class="icon headline-3"
|
|
33
|
-
|
|
43
|
+
name="Left"
|
|
44
|
+
>
|
|
45
|
+
<svg
|
|
46
|
+
fill="currentColor"
|
|
47
|
+
height="1em"
|
|
48
|
+
stroke="currentColor"
|
|
49
|
+
stroke-width="0"
|
|
50
|
+
viewBox="0 0 24 24"
|
|
51
|
+
width="1em"
|
|
52
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
53
|
+
>
|
|
54
|
+
<path
|
|
55
|
+
d="M0 0h24v24H0V0z"
|
|
56
|
+
fill="none"
|
|
57
|
+
/>
|
|
58
|
+
<path
|
|
59
|
+
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
</span>
|
|
63
|
+
</DocumentFragment>
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
exports[`primitive:<Icon> prop:value prop:value (BED) 1`] = `
|
|
67
|
+
<DocumentFragment>
|
|
68
|
+
<span
|
|
69
|
+
class="icon headline-3"
|
|
70
|
+
name="Left"
|
|
71
|
+
>
|
|
72
|
+
<svg
|
|
73
|
+
fill="currentColor"
|
|
74
|
+
height="1em"
|
|
75
|
+
stroke="currentColor"
|
|
76
|
+
stroke-width="0"
|
|
77
|
+
viewBox="0 0 24 24"
|
|
78
|
+
width="1em"
|
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
+
>
|
|
81
|
+
<path
|
|
82
|
+
d="M0 0h24v24H0V0z"
|
|
83
|
+
fill="none"
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
d="M21 10.78V8c0-1.65-1.35-3-3-3h-4c-.77 0-1.47.3-2 .78-.53-.48-1.23-.78-2-.78H6C4.35 5 3 6.35 3 8v2.78c-.61.55-1 1.34-1 2.22v6h2v-2h16v2h2v-6c0-.88-.39-1.67-1-2.22zM14 7h4c.55 0 1 .45 1 1v2h-6V8c0-.55.45-1 1-1zM5 8c0-.55.45-1 1-1h4c.55 0 1 .45 1 1v2H5V8zm-1 7v-2c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v2H4z"
|
|
87
|
+
/>
|
|
88
|
+
</svg>
|
|
89
|
+
</span>
|
|
34
90
|
</DocumentFragment>
|
|
35
91
|
`;
|
|
36
92
|
|
|
37
|
-
exports[`primitive:<Icon> prop:
|
|
93
|
+
exports[`primitive:<Icon> prop:value prop:value (CALENDAR) 1`] = `
|
|
38
94
|
<DocumentFragment>
|
|
39
95
|
<span
|
|
40
96
|
class="icon headline-3"
|
|
97
|
+
name="Left"
|
|
98
|
+
>
|
|
99
|
+
<svg
|
|
100
|
+
fill="currentColor"
|
|
101
|
+
height="1em"
|
|
102
|
+
stroke="currentColor"
|
|
103
|
+
stroke-width="0"
|
|
104
|
+
viewBox="0 0 24 24"
|
|
105
|
+
width="1em"
|
|
106
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
107
|
+
>
|
|
108
|
+
<path
|
|
109
|
+
d="M0 0h24v24H0V0z"
|
|
110
|
+
fill="none"
|
|
111
|
+
/>
|
|
112
|
+
<path
|
|
113
|
+
d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"
|
|
114
|
+
/>
|
|
115
|
+
</svg>
|
|
116
|
+
</span>
|
|
117
|
+
</DocumentFragment>
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports[`primitive:<Icon> prop:value prop:value (CHECK) 1`] = `
|
|
121
|
+
<DocumentFragment>
|
|
122
|
+
<span
|
|
123
|
+
class="icon headline-3"
|
|
124
|
+
name="Left"
|
|
125
|
+
>
|
|
126
|
+
<svg
|
|
127
|
+
fill="currentColor"
|
|
128
|
+
height="1em"
|
|
129
|
+
stroke="currentColor"
|
|
130
|
+
stroke-width="0"
|
|
131
|
+
viewBox="0 0 24 24"
|
|
132
|
+
width="1em"
|
|
133
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
134
|
+
>
|
|
135
|
+
<path
|
|
136
|
+
d="M0 0h24v24H0V0z"
|
|
137
|
+
fill="none"
|
|
138
|
+
/>
|
|
139
|
+
<path
|
|
140
|
+
d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"
|
|
141
|
+
/>
|
|
142
|
+
</svg>
|
|
143
|
+
</span>
|
|
144
|
+
</DocumentFragment>
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
exports[`primitive:<Icon> prop:value prop:value (CLOSE) 1`] = `
|
|
148
|
+
<DocumentFragment>
|
|
149
|
+
<span
|
|
150
|
+
class="icon headline-3"
|
|
151
|
+
name="Left"
|
|
41
152
|
>
|
|
42
153
|
<svg
|
|
43
154
|
fill="currentColor"
|
|
@@ -60,10 +171,11 @@ exports[`primitive:<Icon> prop:name 1`] = `
|
|
|
60
171
|
</DocumentFragment>
|
|
61
172
|
`;
|
|
62
173
|
|
|
63
|
-
exports[`primitive:<Icon>
|
|
174
|
+
exports[`primitive:<Icon> prop:value prop:value (DOWN) 1`] = `
|
|
64
175
|
<DocumentFragment>
|
|
65
176
|
<span
|
|
66
177
|
class="icon headline-3"
|
|
178
|
+
name="Left"
|
|
67
179
|
>
|
|
68
180
|
<svg
|
|
69
181
|
fill="currentColor"
|
|
@@ -79,18 +191,177 @@ exports[`primitive:<Icon> renders 1`] = `
|
|
|
79
191
|
fill="none"
|
|
80
192
|
/>
|
|
81
193
|
<path
|
|
82
|
-
d="M20
|
|
194
|
+
d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
|
|
83
195
|
/>
|
|
84
196
|
</svg>
|
|
85
197
|
</span>
|
|
86
198
|
</DocumentFragment>
|
|
87
199
|
`;
|
|
88
200
|
|
|
89
|
-
exports[`primitive:<Icon>
|
|
201
|
+
exports[`primitive:<Icon> prop:value prop:value (ERROR) 1`] = `
|
|
90
202
|
<DocumentFragment>
|
|
91
203
|
<span
|
|
92
204
|
class="icon headline-3"
|
|
93
|
-
|
|
205
|
+
name="Left"
|
|
206
|
+
>
|
|
207
|
+
<svg
|
|
208
|
+
fill="currentColor"
|
|
209
|
+
height="1em"
|
|
210
|
+
stroke="currentColor"
|
|
211
|
+
stroke-width="0"
|
|
212
|
+
viewBox="0 0 24 24"
|
|
213
|
+
width="1em"
|
|
214
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
215
|
+
>
|
|
216
|
+
<path
|
|
217
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
|
|
218
|
+
/>
|
|
219
|
+
</svg>
|
|
220
|
+
</span>
|
|
221
|
+
</DocumentFragment>
|
|
222
|
+
`;
|
|
223
|
+
|
|
224
|
+
exports[`primitive:<Icon> prop:value prop:value (EXPAND_LESS) 1`] = `
|
|
225
|
+
<DocumentFragment>
|
|
226
|
+
<span
|
|
227
|
+
class="icon headline-3"
|
|
228
|
+
name="Left"
|
|
229
|
+
>
|
|
230
|
+
<svg
|
|
231
|
+
fill="currentColor"
|
|
232
|
+
height="1em"
|
|
233
|
+
stroke="currentColor"
|
|
234
|
+
stroke-width="0"
|
|
235
|
+
viewBox="0 0 24 24"
|
|
236
|
+
width="1em"
|
|
237
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
238
|
+
>
|
|
239
|
+
<path
|
|
240
|
+
d="M0 0h24v24H0V0z"
|
|
241
|
+
fill="none"
|
|
242
|
+
/>
|
|
243
|
+
<path
|
|
244
|
+
d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"
|
|
245
|
+
/>
|
|
246
|
+
</svg>
|
|
247
|
+
</span>
|
|
248
|
+
</DocumentFragment>
|
|
249
|
+
`;
|
|
250
|
+
|
|
251
|
+
exports[`primitive:<Icon> prop:value prop:value (EXPAND_MORE) 1`] = `
|
|
252
|
+
<DocumentFragment>
|
|
253
|
+
<span
|
|
254
|
+
class="icon headline-3"
|
|
255
|
+
name="Left"
|
|
256
|
+
>
|
|
257
|
+
<svg
|
|
258
|
+
fill="currentColor"
|
|
259
|
+
height="1em"
|
|
260
|
+
stroke="currentColor"
|
|
261
|
+
stroke-width="0"
|
|
262
|
+
viewBox="0 0 24 24"
|
|
263
|
+
width="1em"
|
|
264
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
265
|
+
>
|
|
266
|
+
<path
|
|
267
|
+
d="M24 24H0V0h24v24z"
|
|
268
|
+
fill="none"
|
|
269
|
+
opacity=".87"
|
|
270
|
+
/>
|
|
271
|
+
<path
|
|
272
|
+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
273
|
+
/>
|
|
274
|
+
</svg>
|
|
275
|
+
</span>
|
|
276
|
+
</DocumentFragment>
|
|
277
|
+
`;
|
|
278
|
+
|
|
279
|
+
exports[`primitive:<Icon> prop:value prop:value (EYE_CLOSE) 1`] = `
|
|
280
|
+
<DocumentFragment>
|
|
281
|
+
<span
|
|
282
|
+
class="icon headline-3"
|
|
283
|
+
name="Left"
|
|
284
|
+
>
|
|
285
|
+
<svg
|
|
286
|
+
fill="currentColor"
|
|
287
|
+
height="1em"
|
|
288
|
+
stroke="currentColor"
|
|
289
|
+
stroke-width="0"
|
|
290
|
+
viewBox="0 0 24 24"
|
|
291
|
+
width="1em"
|
|
292
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
293
|
+
>
|
|
294
|
+
<path
|
|
295
|
+
d="M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z"
|
|
296
|
+
fill="none"
|
|
297
|
+
/>
|
|
298
|
+
<path
|
|
299
|
+
d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
|
|
300
|
+
/>
|
|
301
|
+
</svg>
|
|
302
|
+
</span>
|
|
303
|
+
</DocumentFragment>
|
|
304
|
+
`;
|
|
305
|
+
|
|
306
|
+
exports[`primitive:<Icon> prop:value prop:value (EYE_OPEN) 1`] = `
|
|
307
|
+
<DocumentFragment>
|
|
308
|
+
<span
|
|
309
|
+
class="icon headline-3"
|
|
310
|
+
name="Left"
|
|
311
|
+
>
|
|
312
|
+
<svg
|
|
313
|
+
fill="currentColor"
|
|
314
|
+
height="1em"
|
|
315
|
+
stroke="currentColor"
|
|
316
|
+
stroke-width="0"
|
|
317
|
+
viewBox="0 0 24 24"
|
|
318
|
+
width="1em"
|
|
319
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
320
|
+
>
|
|
321
|
+
<path
|
|
322
|
+
d="M0 0h24v24H0V0z"
|
|
323
|
+
fill="none"
|
|
324
|
+
/>
|
|
325
|
+
<path
|
|
326
|
+
d="M12 6a9.77 9.77 0 018.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0112 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 010 5 2.5 2.5 0 010-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"
|
|
327
|
+
/>
|
|
328
|
+
</svg>
|
|
329
|
+
</span>
|
|
330
|
+
</DocumentFragment>
|
|
331
|
+
`;
|
|
332
|
+
|
|
333
|
+
exports[`primitive:<Icon> prop:value prop:value (INFO) 1`] = `
|
|
334
|
+
<DocumentFragment>
|
|
335
|
+
<span
|
|
336
|
+
class="icon headline-3"
|
|
337
|
+
name="Left"
|
|
338
|
+
>
|
|
339
|
+
<svg
|
|
340
|
+
fill="currentColor"
|
|
341
|
+
height="1em"
|
|
342
|
+
stroke="currentColor"
|
|
343
|
+
stroke-width="0"
|
|
344
|
+
viewBox="0 0 24 24"
|
|
345
|
+
width="1em"
|
|
346
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
347
|
+
>
|
|
348
|
+
<path
|
|
349
|
+
d="M0 0h24v24H0V0z"
|
|
350
|
+
fill="none"
|
|
351
|
+
/>
|
|
352
|
+
<path
|
|
353
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
354
|
+
/>
|
|
355
|
+
</svg>
|
|
356
|
+
</span>
|
|
357
|
+
</DocumentFragment>
|
|
358
|
+
`;
|
|
359
|
+
|
|
360
|
+
exports[`primitive:<Icon> prop:value prop:value (LEFT) 1`] = `
|
|
361
|
+
<DocumentFragment>
|
|
362
|
+
<span
|
|
363
|
+
class="icon headline-3"
|
|
364
|
+
name="Left"
|
|
94
365
|
>
|
|
95
366
|
<svg
|
|
96
367
|
fill="currentColor"
|
|
@@ -112,3 +383,241 @@ exports[`primitive:<Icon> testID 1`] = `
|
|
|
112
383
|
</span>
|
|
113
384
|
</DocumentFragment>
|
|
114
385
|
`;
|
|
386
|
+
|
|
387
|
+
exports[`primitive:<Icon> prop:value prop:value (LIST) 1`] = `
|
|
388
|
+
<DocumentFragment>
|
|
389
|
+
<span
|
|
390
|
+
class="icon headline-3"
|
|
391
|
+
name="Left"
|
|
392
|
+
>
|
|
393
|
+
<svg
|
|
394
|
+
fill="currentColor"
|
|
395
|
+
height="1em"
|
|
396
|
+
stroke="currentColor"
|
|
397
|
+
stroke-width="0"
|
|
398
|
+
viewBox="0 0 24 24"
|
|
399
|
+
width="1em"
|
|
400
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
401
|
+
>
|
|
402
|
+
<path
|
|
403
|
+
d="M0 0h24v24H0V0z"
|
|
404
|
+
fill="none"
|
|
405
|
+
/>
|
|
406
|
+
<path
|
|
407
|
+
d="M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7zM20.1 3H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM19 19H5V5h14v14z"
|
|
408
|
+
/>
|
|
409
|
+
</svg>
|
|
410
|
+
</span>
|
|
411
|
+
</DocumentFragment>
|
|
412
|
+
`;
|
|
413
|
+
|
|
414
|
+
exports[`primitive:<Icon> prop:value prop:value (LOCK) 1`] = `
|
|
415
|
+
<DocumentFragment>
|
|
416
|
+
<span
|
|
417
|
+
class="icon headline-3"
|
|
418
|
+
name="Left"
|
|
419
|
+
>
|
|
420
|
+
<svg
|
|
421
|
+
fill="currentColor"
|
|
422
|
+
height="1em"
|
|
423
|
+
stroke="currentColor"
|
|
424
|
+
stroke-width="0"
|
|
425
|
+
viewBox="0 0 24 24"
|
|
426
|
+
width="1em"
|
|
427
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
428
|
+
>
|
|
429
|
+
<g
|
|
430
|
+
fill="none"
|
|
431
|
+
>
|
|
432
|
+
<path
|
|
433
|
+
d="M0 0h24v24H0V0z"
|
|
434
|
+
/>
|
|
435
|
+
<path
|
|
436
|
+
d="M0 0h24v24H0V0z"
|
|
437
|
+
opacity=".87"
|
|
438
|
+
/>
|
|
439
|
+
</g>
|
|
440
|
+
<path
|
|
441
|
+
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
442
|
+
/>
|
|
443
|
+
</svg>
|
|
444
|
+
</span>
|
|
445
|
+
</DocumentFragment>
|
|
446
|
+
`;
|
|
447
|
+
|
|
448
|
+
exports[`primitive:<Icon> prop:value prop:value (PERSON) 1`] = `
|
|
449
|
+
<DocumentFragment>
|
|
450
|
+
<span
|
|
451
|
+
class="icon headline-3"
|
|
452
|
+
name="Left"
|
|
453
|
+
>
|
|
454
|
+
<svg
|
|
455
|
+
fill="currentColor"
|
|
456
|
+
height="1em"
|
|
457
|
+
stroke="currentColor"
|
|
458
|
+
stroke-width="0"
|
|
459
|
+
viewBox="0 0 24 24"
|
|
460
|
+
width="1em"
|
|
461
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
462
|
+
>
|
|
463
|
+
<path
|
|
464
|
+
d="M0 0h24v24H0V0z"
|
|
465
|
+
fill="none"
|
|
466
|
+
/>
|
|
467
|
+
<path
|
|
468
|
+
d="M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
469
|
+
/>
|
|
470
|
+
</svg>
|
|
471
|
+
</span>
|
|
472
|
+
</DocumentFragment>
|
|
473
|
+
`;
|
|
474
|
+
|
|
475
|
+
exports[`primitive:<Icon> prop:value prop:value (REMOVE) 1`] = `
|
|
476
|
+
<DocumentFragment>
|
|
477
|
+
<span
|
|
478
|
+
class="icon headline-3"
|
|
479
|
+
name="Left"
|
|
480
|
+
>
|
|
481
|
+
<svg
|
|
482
|
+
fill="currentColor"
|
|
483
|
+
height="1em"
|
|
484
|
+
stroke="currentColor"
|
|
485
|
+
stroke-width="0"
|
|
486
|
+
viewBox="0 0 24 24"
|
|
487
|
+
width="1em"
|
|
488
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
489
|
+
>
|
|
490
|
+
<path
|
|
491
|
+
d="M0 0h24v24H0V0z"
|
|
492
|
+
fill="none"
|
|
493
|
+
/>
|
|
494
|
+
<path
|
|
495
|
+
d="M19 13H5v-2h14v2z"
|
|
496
|
+
/>
|
|
497
|
+
</svg>
|
|
498
|
+
</span>
|
|
499
|
+
</DocumentFragment>
|
|
500
|
+
`;
|
|
501
|
+
|
|
502
|
+
exports[`primitive:<Icon> prop:value prop:value (RIGHT) 1`] = `
|
|
503
|
+
<DocumentFragment>
|
|
504
|
+
<span
|
|
505
|
+
class="icon headline-3"
|
|
506
|
+
name="Left"
|
|
507
|
+
>
|
|
508
|
+
<svg
|
|
509
|
+
fill="currentColor"
|
|
510
|
+
height="1em"
|
|
511
|
+
stroke="currentColor"
|
|
512
|
+
stroke-width="0"
|
|
513
|
+
viewBox="0 0 24 24"
|
|
514
|
+
width="1em"
|
|
515
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
516
|
+
>
|
|
517
|
+
<path
|
|
518
|
+
d="M0 0h24v24H0V0z"
|
|
519
|
+
fill="none"
|
|
520
|
+
/>
|
|
521
|
+
<path
|
|
522
|
+
d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
523
|
+
/>
|
|
524
|
+
</svg>
|
|
525
|
+
</span>
|
|
526
|
+
</DocumentFragment>
|
|
527
|
+
`;
|
|
528
|
+
|
|
529
|
+
exports[`primitive:<Icon> prop:value prop:value (SUCCESS) 1`] = `
|
|
530
|
+
<DocumentFragment>
|
|
531
|
+
<span
|
|
532
|
+
class="icon headline-3"
|
|
533
|
+
name="Left"
|
|
534
|
+
>
|
|
535
|
+
<svg
|
|
536
|
+
fill="currentColor"
|
|
537
|
+
height="1em"
|
|
538
|
+
stroke="currentColor"
|
|
539
|
+
stroke-width="0"
|
|
540
|
+
viewBox="0 0 24 24"
|
|
541
|
+
width="1em"
|
|
542
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
543
|
+
>
|
|
544
|
+
<path
|
|
545
|
+
d="M0 0h24v24H0V0z"
|
|
546
|
+
fill="none"
|
|
547
|
+
/>
|
|
548
|
+
<path
|
|
549
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"
|
|
550
|
+
/>
|
|
551
|
+
</svg>
|
|
552
|
+
</span>
|
|
553
|
+
</DocumentFragment>
|
|
554
|
+
`;
|
|
555
|
+
|
|
556
|
+
exports[`primitive:<Icon> prop:value prop:value (UP) 1`] = `
|
|
557
|
+
<DocumentFragment>
|
|
558
|
+
<span
|
|
559
|
+
class="icon headline-3"
|
|
560
|
+
name="Left"
|
|
561
|
+
>
|
|
562
|
+
<svg
|
|
563
|
+
fill="currentColor"
|
|
564
|
+
height="1em"
|
|
565
|
+
stroke="currentColor"
|
|
566
|
+
stroke-width="0"
|
|
567
|
+
viewBox="0 0 24 24"
|
|
568
|
+
width="1em"
|
|
569
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
570
|
+
>
|
|
571
|
+
<path
|
|
572
|
+
d="M0 0h24v24H0V0z"
|
|
573
|
+
fill="none"
|
|
574
|
+
/>
|
|
575
|
+
<path
|
|
576
|
+
d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
|
|
577
|
+
/>
|
|
578
|
+
</svg>
|
|
579
|
+
</span>
|
|
580
|
+
</DocumentFragment>
|
|
581
|
+
`;
|
|
582
|
+
|
|
583
|
+
exports[`primitive:<Icon> prop:value prop:value (WARNING) 1`] = `
|
|
584
|
+
<DocumentFragment>
|
|
585
|
+
<span
|
|
586
|
+
class="icon headline-3"
|
|
587
|
+
name="Left"
|
|
588
|
+
>
|
|
589
|
+
<svg
|
|
590
|
+
fill="currentColor"
|
|
591
|
+
height="1em"
|
|
592
|
+
stroke="currentColor"
|
|
593
|
+
stroke-width="0"
|
|
594
|
+
viewBox="0 0 24 24"
|
|
595
|
+
width="1em"
|
|
596
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
597
|
+
>
|
|
598
|
+
<path
|
|
599
|
+
d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
600
|
+
/>
|
|
601
|
+
</svg>
|
|
602
|
+
</span>
|
|
603
|
+
</DocumentFragment>
|
|
604
|
+
`;
|
|
605
|
+
|
|
606
|
+
exports[`primitive:<Icon> renders 1`] = `
|
|
607
|
+
<DocumentFragment>
|
|
608
|
+
<span
|
|
609
|
+
class="icon headline-3"
|
|
610
|
+
name="Left"
|
|
611
|
+
/>
|
|
612
|
+
</DocumentFragment>
|
|
613
|
+
`;
|
|
614
|
+
|
|
615
|
+
exports[`primitive:<Icon> testID 1`] = `
|
|
616
|
+
<DocumentFragment>
|
|
617
|
+
<span
|
|
618
|
+
class="icon headline-3"
|
|
619
|
+
data-testid="mirai"
|
|
620
|
+
name="Left"
|
|
621
|
+
/>
|
|
622
|
+
</DocumentFragment>
|
|
623
|
+
`;
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
|
|
7
|
+
ICON: true
|
|
8
8
|
};
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "ICON", {
|
|
10
10
|
enumerable: true,
|
|
11
11
|
get: function get() {
|
|
12
|
-
return _Icon2.
|
|
12
|
+
return _Icon2.ICON;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/primitives/Icon/index.js"],"sourcesContent":["export * from './Icon';\nexport {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/primitives/Icon/index.js"],"sourcesContent":["export * from './Icon';\nexport { ICON } from './Icon.constants';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA"}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getIconName = void 0;
|
|
7
|
-
|
|
8
|
-
var getIconName = function getIconName() {
|
|
9
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
10
|
-
error = _ref.error,
|
|
11
|
-
success = _ref.success,
|
|
12
|
-
warning = _ref.warning;
|
|
13
|
-
|
|
14
|
-
return error ? 'Error' : warning ? 'Warning' : success ? 'Success' : 'Info';
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.getIconName = getIconName;
|
|
18
|
-
//# sourceMappingURL=getIconName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIconName.js","names":["getIconName","error","success","warning"],"sources":["../../src/helpers/getIconName.js"],"sourcesContent":["export const getIconName = ({ error, success, warning } = {}) =>\n error ? 'Error' : warning ? 'Warning' : success ? 'Success' : 'Info';\n"],"mappings":";;;;;;;AAAO,IAAMA,WAAW,GAAG,SAAdA,WAAc;EAAA,+EAA+B,EAA/B;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,IAAUC,OAAV,QAAUA,OAAV;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;;EAAA,OACzBF,KAAK,GAAG,OAAH,GAAaE,OAAO,GAAG,SAAH,GAAeD,OAAO,GAAG,SAAH,GAAe,MADrC;AAAA,CAApB"}
|