@mirai/ui 1.0.59 → 1.0.60
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 +41 -6
- package/build/components/Button/Button.module.css +4 -4
- package/build/components/Calendar/Calendar.Month.js +0 -4
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +240 -360
- package/build/components/InputNumber/InputNumber.js +2 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +180 -260
- package/build/components/InputOption/InputOption.js +6 -4
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.module.css +2 -1
- package/build/components/InputOption/InputOption.stories.js +1 -0
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +103 -14
- package/build/components/InputSelect/InputSelect.js +1 -1
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +71 -54
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +20 -39
- package/build/components/Menu/Menu.stories.js +2 -2
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +17 -31
- package/build/components/Modal/Modal.js +1 -1
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +28 -26
- package/build/components/Notification/Notification.js +10 -13
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +58 -73
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +200 -300
- package/build/primitives/Icon/Icon.constants.js +30 -30
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/Icon.js +4 -2
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +13 -1
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +33 -52
- package/build/primitives/Switch/Switch.module.css +7 -0
- package/build/theme/default.theme.css +15 -7
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ exports[`component:<Notification> inherit:className 1`] = `
|
|
|
6
6
|
class="view row notification outlined mirai"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
|
-
class="icon headline-
|
|
9
|
+
class="icon headline-3"
|
|
10
10
|
>
|
|
11
11
|
<svg
|
|
12
12
|
fill="currentColor"
|
|
@@ -18,19 +18,19 @@ exports[`component:<Notification> inherit:className 1`] = `
|
|
|
18
18
|
xmlns="http://www.w3.org/2000/svg"
|
|
19
19
|
>
|
|
20
20
|
<path
|
|
21
|
-
d="M0
|
|
21
|
+
d="M0 0h24v24H0V0z"
|
|
22
22
|
fill="none"
|
|
23
23
|
/>
|
|
24
24
|
<path
|
|
25
|
-
d="
|
|
25
|
+
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"
|
|
26
26
|
/>
|
|
27
27
|
</svg>
|
|
28
28
|
</span>
|
|
29
|
-
<
|
|
30
|
-
class="text
|
|
29
|
+
<span
|
|
30
|
+
class="text paragraph text"
|
|
31
31
|
>
|
|
32
32
|
Lorem Ipsum...
|
|
33
|
-
</
|
|
33
|
+
</span>
|
|
34
34
|
</div>
|
|
35
35
|
</DocumentFragment>
|
|
36
36
|
`;
|
|
@@ -41,7 +41,7 @@ exports[`component:<Notification> prop:error 1`] = `
|
|
|
41
41
|
class="view row notification error outlined"
|
|
42
42
|
>
|
|
43
43
|
<span
|
|
44
|
-
class="icon headline-
|
|
44
|
+
class="icon headline-3"
|
|
45
45
|
>
|
|
46
46
|
<svg
|
|
47
47
|
fill="currentColor"
|
|
@@ -52,20 +52,16 @@ exports[`component:<Notification> prop:error 1`] = `
|
|
|
52
52
|
width="1em"
|
|
53
53
|
xmlns="http://www.w3.org/2000/svg"
|
|
54
54
|
>
|
|
55
|
-
<path
|
|
56
|
-
d="M0 0h24v24H0z"
|
|
57
|
-
fill="none"
|
|
58
|
-
/>
|
|
59
55
|
<path
|
|
60
56
|
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"
|
|
61
57
|
/>
|
|
62
58
|
</svg>
|
|
63
59
|
</span>
|
|
64
|
-
<
|
|
65
|
-
class="text
|
|
60
|
+
<span
|
|
61
|
+
class="text paragraph text error"
|
|
66
62
|
>
|
|
67
63
|
Lorem Ipsum...
|
|
68
|
-
</
|
|
64
|
+
</span>
|
|
69
65
|
</div>
|
|
70
66
|
</DocumentFragment>
|
|
71
67
|
`;
|
|
@@ -76,7 +72,7 @@ exports[`component:<Notification> prop:inline 1`] = `
|
|
|
76
72
|
class="view row notification inline inline"
|
|
77
73
|
>
|
|
78
74
|
<span
|
|
79
|
-
class="icon headline-
|
|
75
|
+
class="icon headline-3"
|
|
80
76
|
>
|
|
81
77
|
<svg
|
|
82
78
|
fill="currentColor"
|
|
@@ -88,19 +84,19 @@ exports[`component:<Notification> prop:inline 1`] = `
|
|
|
88
84
|
xmlns="http://www.w3.org/2000/svg"
|
|
89
85
|
>
|
|
90
86
|
<path
|
|
91
|
-
d="M0
|
|
87
|
+
d="M0 0h24v24H0V0z"
|
|
92
88
|
fill="none"
|
|
93
89
|
/>
|
|
94
90
|
<path
|
|
95
|
-
d="
|
|
91
|
+
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"
|
|
96
92
|
/>
|
|
97
93
|
</svg>
|
|
98
94
|
</span>
|
|
99
|
-
<
|
|
100
|
-
class="text
|
|
95
|
+
<span
|
|
96
|
+
class="text paragraph text"
|
|
101
97
|
>
|
|
102
98
|
Lorem Ipsum...
|
|
103
|
-
</
|
|
99
|
+
</span>
|
|
104
100
|
</div>
|
|
105
101
|
</DocumentFragment>
|
|
106
102
|
`;
|
|
@@ -111,7 +107,7 @@ exports[`component:<Notification> prop:onClose 1`] = `
|
|
|
111
107
|
class="view row notification outlined"
|
|
112
108
|
>
|
|
113
109
|
<span
|
|
114
|
-
class="icon headline-
|
|
110
|
+
class="icon headline-3"
|
|
115
111
|
>
|
|
116
112
|
<svg
|
|
117
113
|
fill="currentColor"
|
|
@@ -123,47 +119,40 @@ exports[`component:<Notification> prop:onClose 1`] = `
|
|
|
123
119
|
xmlns="http://www.w3.org/2000/svg"
|
|
124
120
|
>
|
|
125
121
|
<path
|
|
126
|
-
d="M0
|
|
122
|
+
d="M0 0h24v24H0V0z"
|
|
127
123
|
fill="none"
|
|
128
124
|
/>
|
|
129
125
|
<path
|
|
130
|
-
d="
|
|
126
|
+
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"
|
|
131
127
|
/>
|
|
132
128
|
</svg>
|
|
133
129
|
</span>
|
|
134
|
-
<
|
|
135
|
-
class="text
|
|
130
|
+
<span
|
|
131
|
+
class="text paragraph text"
|
|
136
132
|
>
|
|
137
133
|
Lorem Ipsum...
|
|
138
|
-
</
|
|
134
|
+
</span>
|
|
139
135
|
<button
|
|
140
136
|
class="pressable pressable"
|
|
141
137
|
>
|
|
142
138
|
<span
|
|
143
|
-
class="icon headline-
|
|
139
|
+
class="icon headline-3"
|
|
144
140
|
>
|
|
145
141
|
<svg
|
|
146
|
-
fill="
|
|
142
|
+
fill="currentColor"
|
|
147
143
|
height="1em"
|
|
148
144
|
stroke="currentColor"
|
|
149
|
-
stroke-
|
|
150
|
-
stroke-linejoin="round"
|
|
151
|
-
stroke-width="2"
|
|
145
|
+
stroke-width="0"
|
|
152
146
|
viewBox="0 0 24 24"
|
|
153
147
|
width="1em"
|
|
154
148
|
xmlns="http://www.w3.org/2000/svg"
|
|
155
149
|
>
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
y1="6"
|
|
160
|
-
y2="18"
|
|
150
|
+
<path
|
|
151
|
+
d="M0 0h24v24H0V0z"
|
|
152
|
+
fill="none"
|
|
161
153
|
/>
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
x2="18"
|
|
165
|
-
y1="6"
|
|
166
|
-
y2="18"
|
|
154
|
+
<path
|
|
155
|
+
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
167
156
|
/>
|
|
168
157
|
</svg>
|
|
169
158
|
</span>
|
|
@@ -178,7 +167,7 @@ exports[`component:<Notification> prop:small & prop:inline 1`] = `
|
|
|
178
167
|
class="view row notification inline inline small"
|
|
179
168
|
>
|
|
180
169
|
<span
|
|
181
|
-
class="icon
|
|
170
|
+
class="icon paragraph"
|
|
182
171
|
>
|
|
183
172
|
<svg
|
|
184
173
|
fill="currentColor"
|
|
@@ -190,11 +179,11 @@ exports[`component:<Notification> prop:small & prop:inline 1`] = `
|
|
|
190
179
|
xmlns="http://www.w3.org/2000/svg"
|
|
191
180
|
>
|
|
192
181
|
<path
|
|
193
|
-
d="M0
|
|
182
|
+
d="M0 0h24v24H0V0z"
|
|
194
183
|
fill="none"
|
|
195
184
|
/>
|
|
196
185
|
<path
|
|
197
|
-
d="
|
|
186
|
+
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"
|
|
198
187
|
/>
|
|
199
188
|
</svg>
|
|
200
189
|
</span>
|
|
@@ -213,7 +202,7 @@ exports[`component:<Notification> prop:small 1`] = `
|
|
|
213
202
|
class="view row notification outlined small"
|
|
214
203
|
>
|
|
215
204
|
<span
|
|
216
|
-
class="icon
|
|
205
|
+
class="icon paragraph"
|
|
217
206
|
>
|
|
218
207
|
<svg
|
|
219
208
|
fill="currentColor"
|
|
@@ -225,11 +214,11 @@ exports[`component:<Notification> prop:small 1`] = `
|
|
|
225
214
|
xmlns="http://www.w3.org/2000/svg"
|
|
226
215
|
>
|
|
227
216
|
<path
|
|
228
|
-
d="M0
|
|
217
|
+
d="M0 0h24v24H0V0z"
|
|
229
218
|
fill="none"
|
|
230
219
|
/>
|
|
231
220
|
<path
|
|
232
|
-
d="
|
|
221
|
+
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"
|
|
233
222
|
/>
|
|
234
223
|
</svg>
|
|
235
224
|
</span>
|
|
@@ -248,7 +237,7 @@ exports[`component:<Notification> prop:success 1`] = `
|
|
|
248
237
|
class="view row notification success outlined"
|
|
249
238
|
>
|
|
250
239
|
<span
|
|
251
|
-
class="icon headline-
|
|
240
|
+
class="icon headline-3"
|
|
252
241
|
>
|
|
253
242
|
<svg
|
|
254
243
|
fill="currentColor"
|
|
@@ -260,19 +249,19 @@ exports[`component:<Notification> prop:success 1`] = `
|
|
|
260
249
|
xmlns="http://www.w3.org/2000/svg"
|
|
261
250
|
>
|
|
262
251
|
<path
|
|
263
|
-
d="M0
|
|
252
|
+
d="M0 0h24v24H0V0z"
|
|
264
253
|
fill="none"
|
|
265
254
|
/>
|
|
266
255
|
<path
|
|
267
|
-
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12
|
|
256
|
+
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"
|
|
268
257
|
/>
|
|
269
258
|
</svg>
|
|
270
259
|
</span>
|
|
271
|
-
<
|
|
272
|
-
class="text
|
|
260
|
+
<span
|
|
261
|
+
class="text paragraph text success"
|
|
273
262
|
>
|
|
274
263
|
Lorem Ipsum...
|
|
275
|
-
</
|
|
264
|
+
</span>
|
|
276
265
|
</div>
|
|
277
266
|
</DocumentFragment>
|
|
278
267
|
`;
|
|
@@ -283,7 +272,7 @@ exports[`component:<Notification> prop:warning 1`] = `
|
|
|
283
272
|
class="view row notification warning outlined"
|
|
284
273
|
>
|
|
285
274
|
<span
|
|
286
|
-
class="icon headline-
|
|
275
|
+
class="icon headline-3"
|
|
287
276
|
>
|
|
288
277
|
<svg
|
|
289
278
|
fill="currentColor"
|
|
@@ -294,20 +283,16 @@ exports[`component:<Notification> prop:warning 1`] = `
|
|
|
294
283
|
width="1em"
|
|
295
284
|
xmlns="http://www.w3.org/2000/svg"
|
|
296
285
|
>
|
|
297
|
-
<path
|
|
298
|
-
d="M0 0h24v24H0z"
|
|
299
|
-
fill="none"
|
|
300
|
-
/>
|
|
301
286
|
<path
|
|
302
287
|
d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
303
288
|
/>
|
|
304
289
|
</svg>
|
|
305
290
|
</span>
|
|
306
|
-
<
|
|
307
|
-
class="text
|
|
291
|
+
<span
|
|
292
|
+
class="text paragraph text warning"
|
|
308
293
|
>
|
|
309
294
|
Lorem Ipsum...
|
|
310
|
-
</
|
|
295
|
+
</span>
|
|
311
296
|
</div>
|
|
312
297
|
</DocumentFragment>
|
|
313
298
|
`;
|
|
@@ -318,7 +303,7 @@ exports[`component:<Notification> renders 1`] = `
|
|
|
318
303
|
class="view row notification outlined"
|
|
319
304
|
>
|
|
320
305
|
<span
|
|
321
|
-
class="icon headline-
|
|
306
|
+
class="icon headline-3"
|
|
322
307
|
>
|
|
323
308
|
<svg
|
|
324
309
|
fill="currentColor"
|
|
@@ -330,19 +315,19 @@ exports[`component:<Notification> renders 1`] = `
|
|
|
330
315
|
xmlns="http://www.w3.org/2000/svg"
|
|
331
316
|
>
|
|
332
317
|
<path
|
|
333
|
-
d="M0
|
|
318
|
+
d="M0 0h24v24H0V0z"
|
|
334
319
|
fill="none"
|
|
335
320
|
/>
|
|
336
321
|
<path
|
|
337
|
-
d="
|
|
322
|
+
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"
|
|
338
323
|
/>
|
|
339
324
|
</svg>
|
|
340
325
|
</span>
|
|
341
|
-
<
|
|
342
|
-
class="text
|
|
326
|
+
<span
|
|
327
|
+
class="text paragraph text"
|
|
343
328
|
>
|
|
344
329
|
Lorem Ipsum...
|
|
345
|
-
</
|
|
330
|
+
</span>
|
|
346
331
|
</div>
|
|
347
332
|
</DocumentFragment>
|
|
348
333
|
`;
|
|
@@ -354,7 +339,7 @@ exports[`component:<Notification> testID 1`] = `
|
|
|
354
339
|
data-testid="mirai"
|
|
355
340
|
>
|
|
356
341
|
<span
|
|
357
|
-
class="icon headline-
|
|
342
|
+
class="icon headline-3"
|
|
358
343
|
>
|
|
359
344
|
<svg
|
|
360
345
|
fill="currentColor"
|
|
@@ -366,19 +351,19 @@ exports[`component:<Notification> testID 1`] = `
|
|
|
366
351
|
xmlns="http://www.w3.org/2000/svg"
|
|
367
352
|
>
|
|
368
353
|
<path
|
|
369
|
-
d="M0
|
|
354
|
+
d="M0 0h24v24H0V0z"
|
|
370
355
|
fill="none"
|
|
371
356
|
/>
|
|
372
357
|
<path
|
|
373
|
-
d="
|
|
358
|
+
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"
|
|
374
359
|
/>
|
|
375
360
|
</svg>
|
|
376
361
|
</span>
|
|
377
|
-
<
|
|
378
|
-
class="text
|
|
362
|
+
<span
|
|
363
|
+
class="text paragraph text"
|
|
379
364
|
>
|
|
380
365
|
Lorem Ipsum...
|
|
381
|
-
</
|
|
366
|
+
</span>
|
|
382
367
|
</div>
|
|
383
368
|
</DocumentFragment>
|
|
384
369
|
`;
|