@mirai/ui 1.0.218 → 1.0.221
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/build/components/Action/Action.js +1 -1
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.module.css +5 -5
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +15 -15
- package/build/components/Button/Button.js +1 -1
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.module.css +10 -16
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +15 -15
- package/build/components/Calendar/Calendar.Week.js +1 -1
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.js +1 -1
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +6 -7
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +2010 -2010
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +7 -7
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +24 -24
- package/build/components/InputPhone/InputPhone.js +2 -2
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +40 -40
- package/build/components/InputText/InputText.js +2 -2
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +3 -7
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +16 -16
- package/build/components/Menu/Menu.Option.js +1 -1
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.module.css +3 -3
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +12 -12
- 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 +3 -3
- package/build/components/Notification/Notification.js +1 -1
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +7 -10
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +6 -6
- package/build/components/Table/Table.Row.js +1 -1
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.module.css +2 -6
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +36 -36
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +39 -141
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/Tooltip.module.css +5 -5
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +12 -12
- package/build/primitives/Checkbox/Checkbox.module.css +1 -2
- package/build/primitives/Layer/Layer.module.css +4 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +6 -6
- package/build/primitives/Radio/Radio.module.css +2 -2
- package/build/primitives/Select/Select.module.css +1 -5
- package/build/primitives/Switch/Switch.module.css +1 -5
- package/build/primitives/Text/Text.module.css +4 -8
- package/package.json +1 -1
|
@@ -9,9 +9,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
9
9
|
class="table"
|
|
10
10
|
>
|
|
11
11
|
<thead>
|
|
12
|
-
<tr
|
|
13
|
-
class="notSelected"
|
|
14
|
-
>
|
|
12
|
+
<tr>
|
|
15
13
|
<th>
|
|
16
14
|
<span
|
|
17
15
|
class="view forceRow column"
|
|
@@ -181,9 +179,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
181
179
|
</tr>
|
|
182
180
|
</thead>
|
|
183
181
|
<tbody>
|
|
184
|
-
<tr
|
|
185
|
-
class="notSelected"
|
|
186
|
-
>
|
|
182
|
+
<tr>
|
|
187
183
|
<td>
|
|
188
184
|
<span
|
|
189
185
|
class="view forceRow column text"
|
|
@@ -216,9 +212,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
216
212
|
/>
|
|
217
213
|
</td>
|
|
218
214
|
</tr>
|
|
219
|
-
<tr
|
|
220
|
-
class="notSelected"
|
|
221
|
-
>
|
|
215
|
+
<tr>
|
|
222
216
|
<td>
|
|
223
217
|
<span
|
|
224
218
|
class="view forceRow column text"
|
|
@@ -251,9 +245,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
251
245
|
/>
|
|
252
246
|
</td>
|
|
253
247
|
</tr>
|
|
254
|
-
<tr
|
|
255
|
-
class="notSelected"
|
|
256
|
-
>
|
|
248
|
+
<tr>
|
|
257
249
|
<td>
|
|
258
250
|
<span
|
|
259
251
|
class="view forceRow column text"
|
|
@@ -286,9 +278,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
286
278
|
/>
|
|
287
279
|
</td>
|
|
288
280
|
</tr>
|
|
289
|
-
<tr
|
|
290
|
-
class="notSelected"
|
|
291
|
-
>
|
|
281
|
+
<tr>
|
|
292
282
|
<td>
|
|
293
283
|
<span
|
|
294
284
|
class="view forceRow column text"
|
|
@@ -325,9 +315,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
325
315
|
</span>
|
|
326
316
|
</td>
|
|
327
317
|
</tr>
|
|
328
|
-
<tr
|
|
329
|
-
class="notSelected"
|
|
330
|
-
>
|
|
318
|
+
<tr>
|
|
331
319
|
<td>
|
|
332
320
|
<span
|
|
333
321
|
class="view forceRow column text"
|
|
@@ -362,9 +350,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
362
350
|
/>
|
|
363
351
|
</td>
|
|
364
352
|
</tr>
|
|
365
|
-
<tr
|
|
366
|
-
class="notSelected"
|
|
367
|
-
>
|
|
353
|
+
<tr>
|
|
368
354
|
<td>
|
|
369
355
|
<span
|
|
370
356
|
class="view forceRow column text"
|
|
@@ -397,9 +383,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
397
383
|
/>
|
|
398
384
|
</td>
|
|
399
385
|
</tr>
|
|
400
|
-
<tr
|
|
401
|
-
class="notSelected"
|
|
402
|
-
>
|
|
386
|
+
<tr>
|
|
403
387
|
<td>
|
|
404
388
|
<span
|
|
405
389
|
class="view forceRow column text"
|
|
@@ -573,9 +557,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
573
557
|
class="table"
|
|
574
558
|
>
|
|
575
559
|
<thead>
|
|
576
|
-
<tr
|
|
577
|
-
class="notSelected"
|
|
578
|
-
>
|
|
560
|
+
<tr>
|
|
579
561
|
<th>
|
|
580
562
|
<span
|
|
581
563
|
class="view forceRow column"
|
|
@@ -885,9 +867,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
885
867
|
</tr>
|
|
886
868
|
</thead>
|
|
887
869
|
<tbody>
|
|
888
|
-
<tr
|
|
889
|
-
class="notSelected"
|
|
890
|
-
>
|
|
870
|
+
<tr>
|
|
891
871
|
<td>
|
|
892
872
|
<span
|
|
893
873
|
class="view forceRow column text"
|
|
@@ -924,9 +904,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
924
904
|
</span>
|
|
925
905
|
</td>
|
|
926
906
|
</tr>
|
|
927
|
-
<tr
|
|
928
|
-
class="notSelected"
|
|
929
|
-
>
|
|
907
|
+
<tr>
|
|
930
908
|
<td>
|
|
931
909
|
<span
|
|
932
910
|
class="view forceRow column text"
|
|
@@ -961,9 +939,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
961
939
|
/>
|
|
962
940
|
</td>
|
|
963
941
|
</tr>
|
|
964
|
-
<tr
|
|
965
|
-
class="notSelected"
|
|
966
|
-
>
|
|
942
|
+
<tr>
|
|
967
943
|
<td>
|
|
968
944
|
<span
|
|
969
945
|
class="view forceRow column text"
|
|
@@ -996,9 +972,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
996
972
|
/>
|
|
997
973
|
</td>
|
|
998
974
|
</tr>
|
|
999
|
-
<tr
|
|
1000
|
-
class="notSelected"
|
|
1001
|
-
>
|
|
975
|
+
<tr>
|
|
1002
976
|
<td>
|
|
1003
977
|
<span
|
|
1004
978
|
class="view forceRow column text"
|
|
@@ -1046,9 +1020,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1046
1020
|
class="table"
|
|
1047
1021
|
>
|
|
1048
1022
|
<thead>
|
|
1049
|
-
<tr
|
|
1050
|
-
class="notSelected"
|
|
1051
|
-
>
|
|
1023
|
+
<tr>
|
|
1052
1024
|
<th>
|
|
1053
1025
|
<span
|
|
1054
1026
|
class="view forceRow column"
|
|
@@ -1218,9 +1190,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1218
1190
|
</tr>
|
|
1219
1191
|
</thead>
|
|
1220
1192
|
<tbody>
|
|
1221
|
-
<tr
|
|
1222
|
-
class="notSelected"
|
|
1223
|
-
>
|
|
1193
|
+
<tr>
|
|
1224
1194
|
<td>
|
|
1225
1195
|
<span
|
|
1226
1196
|
class="view forceRow column text"
|
|
@@ -1253,9 +1223,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1253
1223
|
/>
|
|
1254
1224
|
</td>
|
|
1255
1225
|
</tr>
|
|
1256
|
-
<tr
|
|
1257
|
-
class="notSelected"
|
|
1258
|
-
>
|
|
1226
|
+
<tr>
|
|
1259
1227
|
<td>
|
|
1260
1228
|
<span
|
|
1261
1229
|
class="view forceRow column text"
|
|
@@ -1288,9 +1256,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1288
1256
|
/>
|
|
1289
1257
|
</td>
|
|
1290
1258
|
</tr>
|
|
1291
|
-
<tr
|
|
1292
|
-
class="notSelected"
|
|
1293
|
-
>
|
|
1259
|
+
<tr>
|
|
1294
1260
|
<td>
|
|
1295
1261
|
<span
|
|
1296
1262
|
class="view forceRow column text"
|
|
@@ -1323,9 +1289,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1323
1289
|
/>
|
|
1324
1290
|
</td>
|
|
1325
1291
|
</tr>
|
|
1326
|
-
<tr
|
|
1327
|
-
class="notSelected"
|
|
1328
|
-
>
|
|
1292
|
+
<tr>
|
|
1329
1293
|
<td>
|
|
1330
1294
|
<span
|
|
1331
1295
|
class="view forceRow column text"
|
|
@@ -1362,9 +1326,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1362
1326
|
</span>
|
|
1363
1327
|
</td>
|
|
1364
1328
|
</tr>
|
|
1365
|
-
<tr
|
|
1366
|
-
class="notSelected"
|
|
1367
|
-
>
|
|
1329
|
+
<tr>
|
|
1368
1330
|
<td>
|
|
1369
1331
|
<span
|
|
1370
1332
|
class="view forceRow column text"
|
|
@@ -1399,9 +1361,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1399
1361
|
/>
|
|
1400
1362
|
</td>
|
|
1401
1363
|
</tr>
|
|
1402
|
-
<tr
|
|
1403
|
-
class="notSelected"
|
|
1404
|
-
>
|
|
1364
|
+
<tr>
|
|
1405
1365
|
<td>
|
|
1406
1366
|
<span
|
|
1407
1367
|
class="view forceRow column text"
|
|
@@ -1434,9 +1394,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1434
1394
|
/>
|
|
1435
1395
|
</td>
|
|
1436
1396
|
</tr>
|
|
1437
|
-
<tr
|
|
1438
|
-
class="notSelected"
|
|
1439
|
-
>
|
|
1397
|
+
<tr>
|
|
1440
1398
|
<td>
|
|
1441
1399
|
<span
|
|
1442
1400
|
class="view forceRow column text"
|
|
@@ -1486,7 +1444,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1486
1444
|
>
|
|
1487
1445
|
<thead>
|
|
1488
1446
|
<tr
|
|
1489
|
-
class="notSelected"
|
|
1490
1447
|
data-testid="onScroll-head"
|
|
1491
1448
|
>
|
|
1492
1449
|
<th
|
|
@@ -1669,7 +1626,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1669
1626
|
</thead>
|
|
1670
1627
|
<tbody>
|
|
1671
1628
|
<tr
|
|
1672
|
-
class="notSelected"
|
|
1673
1629
|
data-testid="onScroll-0"
|
|
1674
1630
|
>
|
|
1675
1631
|
<td
|
|
@@ -1715,7 +1671,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1715
1671
|
</td>
|
|
1716
1672
|
</tr>
|
|
1717
1673
|
<tr
|
|
1718
|
-
class="notSelected"
|
|
1719
1674
|
data-testid="onScroll-1"
|
|
1720
1675
|
>
|
|
1721
1676
|
<td
|
|
@@ -1761,7 +1716,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1761
1716
|
</td>
|
|
1762
1717
|
</tr>
|
|
1763
1718
|
<tr
|
|
1764
|
-
class="notSelected"
|
|
1765
1719
|
data-testid="onScroll-2"
|
|
1766
1720
|
>
|
|
1767
1721
|
<td
|
|
@@ -1807,7 +1761,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1807
1761
|
</td>
|
|
1808
1762
|
</tr>
|
|
1809
1763
|
<tr
|
|
1810
|
-
class="notSelected"
|
|
1811
1764
|
data-testid="onScroll-3"
|
|
1812
1765
|
>
|
|
1813
1766
|
<td
|
|
@@ -1857,7 +1810,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1857
1810
|
</td>
|
|
1858
1811
|
</tr>
|
|
1859
1812
|
<tr
|
|
1860
|
-
class="notSelected"
|
|
1861
1813
|
data-testid="onScroll-4"
|
|
1862
1814
|
>
|
|
1863
1815
|
<td
|
|
@@ -1905,7 +1857,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1905
1857
|
</td>
|
|
1906
1858
|
</tr>
|
|
1907
1859
|
<tr
|
|
1908
|
-
class="notSelected"
|
|
1909
1860
|
data-testid="onScroll-5"
|
|
1910
1861
|
>
|
|
1911
1862
|
<td
|
|
@@ -1951,7 +1902,6 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1951
1902
|
</td>
|
|
1952
1903
|
</tr>
|
|
1953
1904
|
<tr
|
|
1954
|
-
class="notSelected"
|
|
1955
1905
|
data-testid="onScroll-6"
|
|
1956
1906
|
>
|
|
1957
1907
|
<td
|
|
@@ -2013,7 +1963,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2013
1963
|
>
|
|
2014
1964
|
<thead>
|
|
2015
1965
|
<tr
|
|
2016
|
-
class="notSelected"
|
|
2017
1966
|
data-testid="onSelect-head"
|
|
2018
1967
|
>
|
|
2019
1968
|
<th
|
|
@@ -2211,7 +2160,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2211
2160
|
</thead>
|
|
2212
2161
|
<tbody>
|
|
2213
2162
|
<tr
|
|
2214
|
-
class="notSelected"
|
|
2215
2163
|
data-testid="onSelect-0"
|
|
2216
2164
|
>
|
|
2217
2165
|
<td
|
|
@@ -2272,7 +2220,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2272
2220
|
</td>
|
|
2273
2221
|
</tr>
|
|
2274
2222
|
<tr
|
|
2275
|
-
class="notSelected"
|
|
2276
2223
|
data-testid="onSelect-1"
|
|
2277
2224
|
>
|
|
2278
2225
|
<td
|
|
@@ -2333,7 +2280,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2333
2280
|
</td>
|
|
2334
2281
|
</tr>
|
|
2335
2282
|
<tr
|
|
2336
|
-
class="notSelected"
|
|
2337
2283
|
data-testid="onSelect-2"
|
|
2338
2284
|
>
|
|
2339
2285
|
<td
|
|
@@ -2394,7 +2340,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2394
2340
|
</td>
|
|
2395
2341
|
</tr>
|
|
2396
2342
|
<tr
|
|
2397
|
-
class="notSelected"
|
|
2398
2343
|
data-testid="onSelect-3"
|
|
2399
2344
|
>
|
|
2400
2345
|
<td
|
|
@@ -2459,7 +2404,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2459
2404
|
</td>
|
|
2460
2405
|
</tr>
|
|
2461
2406
|
<tr
|
|
2462
|
-
class="notSelected"
|
|
2463
2407
|
data-testid="onSelect-4"
|
|
2464
2408
|
>
|
|
2465
2409
|
<td
|
|
@@ -2522,7 +2466,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2522
2466
|
</td>
|
|
2523
2467
|
</tr>
|
|
2524
2468
|
<tr
|
|
2525
|
-
class="notSelected"
|
|
2526
2469
|
data-testid="onSelect-5"
|
|
2527
2470
|
>
|
|
2528
2471
|
<td
|
|
@@ -2583,7 +2526,6 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2583
2526
|
</td>
|
|
2584
2527
|
</tr>
|
|
2585
2528
|
<tr
|
|
2586
|
-
class="notSelected"
|
|
2587
2529
|
data-testid="onSelect-6"
|
|
2588
2530
|
>
|
|
2589
2531
|
<td
|
|
@@ -2658,9 +2600,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2658
2600
|
class="table"
|
|
2659
2601
|
>
|
|
2660
2602
|
<thead>
|
|
2661
|
-
<tr
|
|
2662
|
-
class="notSelected"
|
|
2663
|
-
>
|
|
2603
|
+
<tr>
|
|
2664
2604
|
<th>
|
|
2665
2605
|
<span
|
|
2666
2606
|
class="view forceRow column"
|
|
@@ -2830,9 +2770,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2830
2770
|
</tr>
|
|
2831
2771
|
</thead>
|
|
2832
2772
|
<tbody>
|
|
2833
|
-
<tr
|
|
2834
|
-
class="notSelected"
|
|
2835
|
-
>
|
|
2773
|
+
<tr>
|
|
2836
2774
|
<td>
|
|
2837
2775
|
<span
|
|
2838
2776
|
class="view forceRow column text"
|
|
@@ -2882,9 +2820,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2882
2820
|
class="table"
|
|
2883
2821
|
>
|
|
2884
2822
|
<thead>
|
|
2885
|
-
<tr
|
|
2886
|
-
class="notSelected"
|
|
2887
|
-
>
|
|
2823
|
+
<tr>
|
|
2888
2824
|
<th>
|
|
2889
2825
|
<span
|
|
2890
2826
|
class="view forceRow column"
|
|
@@ -3054,9 +2990,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3054
2990
|
</tr>
|
|
3055
2991
|
</thead>
|
|
3056
2992
|
<tbody>
|
|
3057
|
-
<tr
|
|
3058
|
-
class="notSelected"
|
|
3059
|
-
>
|
|
2993
|
+
<tr>
|
|
3060
2994
|
<td>
|
|
3061
2995
|
<span
|
|
3062
2996
|
class="view forceRow column text"
|
|
@@ -3089,9 +3023,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3089
3023
|
/>
|
|
3090
3024
|
</td>
|
|
3091
3025
|
</tr>
|
|
3092
|
-
<tr
|
|
3093
|
-
class="notSelected"
|
|
3094
|
-
>
|
|
3026
|
+
<tr>
|
|
3095
3027
|
<td>
|
|
3096
3028
|
<span
|
|
3097
3029
|
class="view forceRow column text"
|
|
@@ -3124,9 +3056,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3124
3056
|
/>
|
|
3125
3057
|
</td>
|
|
3126
3058
|
</tr>
|
|
3127
|
-
<tr
|
|
3128
|
-
class="notSelected"
|
|
3129
|
-
>
|
|
3059
|
+
<tr>
|
|
3130
3060
|
<td>
|
|
3131
3061
|
<span
|
|
3132
3062
|
class="view forceRow column text"
|
|
@@ -3159,9 +3089,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3159
3089
|
/>
|
|
3160
3090
|
</td>
|
|
3161
3091
|
</tr>
|
|
3162
|
-
<tr
|
|
3163
|
-
class="notSelected"
|
|
3164
|
-
>
|
|
3092
|
+
<tr>
|
|
3165
3093
|
<td>
|
|
3166
3094
|
<span
|
|
3167
3095
|
class="view forceRow column text"
|
|
@@ -3235,9 +3163,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3235
3163
|
/>
|
|
3236
3164
|
</td>
|
|
3237
3165
|
</tr>
|
|
3238
|
-
<tr
|
|
3239
|
-
class="notSelected"
|
|
3240
|
-
>
|
|
3166
|
+
<tr>
|
|
3241
3167
|
<td>
|
|
3242
3168
|
<span
|
|
3243
3169
|
class="view forceRow column text"
|
|
@@ -3270,9 +3196,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
3270
3196
|
/>
|
|
3271
3197
|
</td>
|
|
3272
3198
|
</tr>
|
|
3273
|
-
<tr
|
|
3274
|
-
class="notSelected"
|
|
3275
|
-
>
|
|
3199
|
+
<tr>
|
|
3276
3200
|
<td>
|
|
3277
3201
|
<span
|
|
3278
3202
|
class="view forceRow column text"
|
|
@@ -3368,9 +3292,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3368
3292
|
class="table"
|
|
3369
3293
|
>
|
|
3370
3294
|
<thead>
|
|
3371
|
-
<tr
|
|
3372
|
-
class="notSelected"
|
|
3373
|
-
>
|
|
3295
|
+
<tr>
|
|
3374
3296
|
<th>
|
|
3375
3297
|
<span
|
|
3376
3298
|
class="view forceRow column"
|
|
@@ -3694,9 +3616,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3694
3616
|
class="table"
|
|
3695
3617
|
>
|
|
3696
3618
|
<thead>
|
|
3697
|
-
<tr
|
|
3698
|
-
class="notSelected"
|
|
3699
|
-
>
|
|
3619
|
+
<tr>
|
|
3700
3620
|
<th>
|
|
3701
3621
|
<span
|
|
3702
3622
|
class="view forceRow column"
|
|
@@ -3866,9 +3786,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3866
3786
|
</tr>
|
|
3867
3787
|
</thead>
|
|
3868
3788
|
<tbody>
|
|
3869
|
-
<tr
|
|
3870
|
-
class="notSelected"
|
|
3871
|
-
>
|
|
3789
|
+
<tr>
|
|
3872
3790
|
<td>
|
|
3873
3791
|
<span
|
|
3874
3792
|
class="view forceRow column text"
|
|
@@ -3901,9 +3819,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3901
3819
|
/>
|
|
3902
3820
|
</td>
|
|
3903
3821
|
</tr>
|
|
3904
|
-
<tr
|
|
3905
|
-
class="notSelected"
|
|
3906
|
-
>
|
|
3822
|
+
<tr>
|
|
3907
3823
|
<td>
|
|
3908
3824
|
<span
|
|
3909
3825
|
class="view forceRow column text"
|
|
@@ -3936,9 +3852,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3936
3852
|
/>
|
|
3937
3853
|
</td>
|
|
3938
3854
|
</tr>
|
|
3939
|
-
<tr
|
|
3940
|
-
class="notSelected"
|
|
3941
|
-
>
|
|
3855
|
+
<tr>
|
|
3942
3856
|
<td>
|
|
3943
3857
|
<span
|
|
3944
3858
|
class="view forceRow column text"
|
|
@@ -3971,9 +3885,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3971
3885
|
/>
|
|
3972
3886
|
</td>
|
|
3973
3887
|
</tr>
|
|
3974
|
-
<tr
|
|
3975
|
-
class="notSelected"
|
|
3976
|
-
>
|
|
3888
|
+
<tr>
|
|
3977
3889
|
<td>
|
|
3978
3890
|
<span
|
|
3979
3891
|
class="view forceRow column text"
|
|
@@ -4010,9 +3922,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
4010
3922
|
</span>
|
|
4011
3923
|
</td>
|
|
4012
3924
|
</tr>
|
|
4013
|
-
<tr
|
|
4014
|
-
class="notSelected"
|
|
4015
|
-
>
|
|
3925
|
+
<tr>
|
|
4016
3926
|
<td>
|
|
4017
3927
|
<span
|
|
4018
3928
|
class="view forceRow column text"
|
|
@@ -4047,9 +3957,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
4047
3957
|
/>
|
|
4048
3958
|
</td>
|
|
4049
3959
|
</tr>
|
|
4050
|
-
<tr
|
|
4051
|
-
class="notSelected"
|
|
4052
|
-
>
|
|
3960
|
+
<tr>
|
|
4053
3961
|
<td>
|
|
4054
3962
|
<span
|
|
4055
3963
|
class="view forceRow column text"
|
|
@@ -4082,9 +3990,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
4082
3990
|
/>
|
|
4083
3991
|
</td>
|
|
4084
3992
|
</tr>
|
|
4085
|
-
<tr
|
|
4086
|
-
class="notSelected"
|
|
4087
|
-
>
|
|
3993
|
+
<tr>
|
|
4088
3994
|
<td>
|
|
4089
3995
|
<span
|
|
4090
3996
|
class="view forceRow column text"
|
|
@@ -4134,7 +4040,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4134
4040
|
>
|
|
4135
4041
|
<thead>
|
|
4136
4042
|
<tr
|
|
4137
|
-
class="notSelected"
|
|
4138
4043
|
data-testid="mirai-head"
|
|
4139
4044
|
>
|
|
4140
4045
|
<th
|
|
@@ -4317,7 +4222,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4317
4222
|
</thead>
|
|
4318
4223
|
<tbody>
|
|
4319
4224
|
<tr
|
|
4320
|
-
class="notSelected"
|
|
4321
4225
|
data-testid="mirai-0"
|
|
4322
4226
|
>
|
|
4323
4227
|
<td
|
|
@@ -4363,7 +4267,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4363
4267
|
</td>
|
|
4364
4268
|
</tr>
|
|
4365
4269
|
<tr
|
|
4366
|
-
class="notSelected"
|
|
4367
4270
|
data-testid="mirai-1"
|
|
4368
4271
|
>
|
|
4369
4272
|
<td
|
|
@@ -4409,7 +4312,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4409
4312
|
</td>
|
|
4410
4313
|
</tr>
|
|
4411
4314
|
<tr
|
|
4412
|
-
class="notSelected"
|
|
4413
4315
|
data-testid="mirai-2"
|
|
4414
4316
|
>
|
|
4415
4317
|
<td
|
|
@@ -4455,7 +4357,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4455
4357
|
</td>
|
|
4456
4358
|
</tr>
|
|
4457
4359
|
<tr
|
|
4458
|
-
class="notSelected"
|
|
4459
4360
|
data-testid="mirai-3"
|
|
4460
4361
|
>
|
|
4461
4362
|
<td
|
|
@@ -4505,7 +4406,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4505
4406
|
</td>
|
|
4506
4407
|
</tr>
|
|
4507
4408
|
<tr
|
|
4508
|
-
class="notSelected"
|
|
4509
4409
|
data-testid="mirai-4"
|
|
4510
4410
|
>
|
|
4511
4411
|
<td
|
|
@@ -4553,7 +4453,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4553
4453
|
</td>
|
|
4554
4454
|
</tr>
|
|
4555
4455
|
<tr
|
|
4556
|
-
class="notSelected"
|
|
4557
4456
|
data-testid="mirai-5"
|
|
4558
4457
|
>
|
|
4559
4458
|
<td
|
|
@@ -4599,7 +4498,6 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4599
4498
|
</td>
|
|
4600
4499
|
</tr>
|
|
4601
4500
|
<tr
|
|
4602
|
-
class="notSelected"
|
|
4603
4501
|
data-testid="mirai-6"
|
|
4604
4502
|
>
|
|
4605
4503
|
<td
|
|
@@ -86,7 +86,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
86
86
|
return setVisible(false);
|
|
87
87
|
}), _defineProperty(_objectSpread2, "className", (0, _helpers.styles)(_TooltipModule.default.dispatcher, child.props.className)), _defineProperty(_objectSpread2, "testId", testId ? "".concat(testId, "-dispatcher") : undefined), _objectSpread2)));
|
|
88
88
|
}), /*#__PURE__*/_react.default.createElement(_primitives.LayerContent, null, /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
89
|
-
className: (0, _helpers.styles)(_TooltipModule.default.tooltip, propLeft || propRight
|
|
89
|
+
className: (0, _helpers.styles)(_TooltipModule.default.tooltip, (propLeft || propRight) && _TooltipModule.default.align, left && _TooltipModule.default.left, right && _TooltipModule.default.right, top ? _TooltipModule.default.top : _TooltipModule.default.bottom, others.className)
|
|
90
90
|
}), Template ? /*#__PURE__*/_react.default.createElement(Template, null) : /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
91
91
|
bold: true,
|
|
92
92
|
small: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","names":["Tooltip","children","propLeft","left","pressable","propRight","right","Template","text","timestamp","propTop","top","visible","propVisible","inherit","useState","setVisible","position","setPosition","fixed","role","testId","others","React","Children","map","child","index","cloneElement","key","props","onClick","undefined","isPressableInstance","styles","style","dispatcher","className","tooltip","align","
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":["Tooltip","children","propLeft","left","pressable","propRight","right","Template","text","timestamp","propTop","top","visible","propVisible","inherit","useState","setVisible","position","setPosition","fixed","role","testId","others","React","Children","map","child","index","cloneElement","key","props","onClick","undefined","isPressableInstance","styles","style","dispatcher","className","tooltip","align","bottom","propTypes","PropTypes","node","isRequired","bool","oneOfType","func","string","number"],"sources":["../../../src/components/Tooltip/Tooltip.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Layer, LayerContent, Text, View } from '../../primitives';\nimport { isPressableInstance } from './helpers';\nimport style from './Tooltip.module.css';\n\nconst Tooltip = ({\n children,\n left: propLeft,\n pressable = false,\n right: propRight,\n Template,\n text,\n timestamp,\n top: propTop,\n visible: propVisible = false,\n ...inherit\n}) => {\n const [visible, setVisible] = useState(propVisible);\n const [position, setPosition] = useState({});\n\n const { fixed, role = 'tooltip', testId, ...others } = inherit;\n const { left, right, top = propTop } = position;\n\n return text || Template ? (\n <Layer\n {...{ fixed, role, testId, timestamp, top, visible }}\n centered\n forceRender={false}\n left={propLeft}\n right={propRight}\n onPosition={setPosition}\n >\n {React.Children.map(children, (child, index) =>\n React.cloneElement(child, {\n key: index,\n ...child.props,\n onClick: pressable ? () => setVisible(!visible) : undefined,\n [isPressableInstance(child) ? 'onEnter' : 'onMouseEnter']: !pressable ? () => setVisible(true) : undefined,\n [isPressableInstance(child) ? 'onLeave' : 'onMouseLeave']: () => setVisible(false),\n className: styles(style.dispatcher, child.props.className),\n testId: testId ? `${testId}-dispatcher` : undefined,\n }),\n )}\n\n <LayerContent>\n <View\n {...others}\n className={styles(\n style.tooltip,\n (propLeft || propRight) && style.align,\n left && style.left,\n right && style.right,\n top ? style.top : style.bottom,\n others.className,\n )}\n >\n {Template ? (\n <Template />\n ) : (\n <Text bold small className={style.text}>\n {text}\n </Text>\n )}\n </View>\n </LayerContent>\n </Layer>\n ) : (\n <>{children}</>\n );\n};\n\nTooltip.propTypes = {\n children: PropTypes.node.isRequired,\n left: PropTypes.bool,\n pressable: PropTypes.bool,\n right: PropTypes.bool,\n Template: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n text: PropTypes.string,\n timestamp: PropTypes.number,\n top: PropTypes.bool,\n visible: PropTypes.bool,\n};\n\nexport { Tooltip };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAAyC;EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEzC,IAAMA,OAAO,GAAG,SAAVA,OAAO,OAWP;EAAA,IAVJC,QAAQ,QAARA,QAAQ;IACFC,QAAQ,QAAdC,IAAI;IAAA,sBACJC,SAAS;IAATA,SAAS,+BAAG,KAAK;IACVC,SAAS,QAAhBC,KAAK;IACLC,QAAQ,QAARA,QAAQ;IACRC,IAAI,QAAJA,IAAI;IACJC,SAAS,QAATA,SAAS;IACJC,OAAO,QAAZC,GAAG;IAAA,oBACHC,OAAO;IAAEC,WAAW,6BAAG,KAAK;IACzBC,OAAO;EAEV,gBAA8B,IAAAC,eAAQ,EAACF,WAAW,CAAC;IAAA;IAA5CD,OAAO;IAAEI,UAAU;EAC1B,iBAAgC,IAAAD,eAAQ,EAAC,CAAC,CAAC,CAAC;IAAA;IAArCE,QAAQ;IAAEC,WAAW;EAE5B,IAAQC,KAAK,GAA0CL,OAAO,CAAtDK,KAAK;IAAA,gBAA0CL,OAAO,CAA/CM,IAAI;IAAJA,IAAI,8BAAG,SAAS;IAAEC,MAAM,GAAgBP,OAAO,CAA7BO,MAAM;IAAKC,MAAM,4BAAKR,OAAO;EAC9D,IAAQX,IAAI,GAA2Bc,QAAQ,CAAvCd,IAAI;IAAEG,KAAK,GAAoBW,QAAQ,CAAjCX,KAAK;IAAA,gBAAoBW,QAAQ,CAA1BN,GAAG;IAAHA,GAAG,8BAAGD,OAAO;EAElC,OAAOF,IAAI,IAAID,QAAQ,gBACrB,6BAAC,iBAAK;IACEY,KAAK,EAALA,KAAK;IAAEC,IAAI,EAAJA,IAAI;IAAEC,MAAM,EAANA,MAAM;IAAEZ,SAAS,EAATA,SAAS;IAAEE,GAAG,EAAHA,GAAG;IAAEC,OAAO,EAAPA,OAAO;IAClD,QAAQ;IACR,WAAW,EAAE,KAAM;IACnB,IAAI,EAAEV,QAAS;IACf,KAAK,EAAEG,SAAU;IACjB,UAAU,EAAEa;EAAY,GAEvBK,cAAK,CAACC,QAAQ,CAACC,GAAG,CAACxB,QAAQ,EAAE,UAACyB,KAAK,EAAEC,KAAK;IAAA;IAAA,oBACzCJ,cAAK,CAACK,YAAY,CAACF,KAAK;MACtBG,GAAG,EAAEF;IAAK,GACPD,KAAK,CAACI,KAAK;MACdC,OAAO,EAAE3B,SAAS,GAAG;QAAA,OAAMY,UAAU,CAAC,CAACJ,OAAO,CAAC;MAAA,IAAGoB;IAAS,mCAC1D,IAAAC,6BAAmB,EAACP,KAAK,CAAC,GAAG,SAAS,GAAG,cAAc,EAAG,CAACtB,SAAS,GAAG;MAAA,OAAMY,UAAU,CAAC,IAAI,CAAC;IAAA,IAAGgB,SAAS,mCACzG,IAAAC,6BAAmB,EAACP,KAAK,CAAC,GAAG,SAAS,GAAG,cAAc,EAAG;MAAA,OAAMV,UAAU,CAAC,KAAK,CAAC;IAAA,iDACvE,IAAAkB,eAAM,EAACC,sBAAK,CAACC,UAAU,EAAEV,KAAK,CAACI,KAAK,CAACO,SAAS,CAAC,6CAClDhB,MAAM,aAAMA,MAAM,mBAAgBW,SAAS,oBACnD;EAAA,EACH,eAED,6BAAC,wBAAY,qBACX,6BAAC,gBAAI,eACCV,MAAM;IACV,SAAS,EAAE,IAAAY,eAAM,EACfC,sBAAK,CAACG,OAAO,EACb,CAACpC,QAAQ,IAAIG,SAAS,KAAK8B,sBAAK,CAACI,KAAK,EACtCpC,IAAI,IAAIgC,sBAAK,CAAChC,IAAI,EAClBG,KAAK,IAAI6B,sBAAK,CAAC7B,KAAK,EACpBK,GAAG,GAAGwB,sBAAK,CAACxB,GAAG,GAAGwB,sBAAK,CAACK,MAAM,EAC9BlB,MAAM,CAACe,SAAS;EAChB,IAED9B,QAAQ,gBACP,6BAAC,QAAQ,OAAG,gBAEZ,6BAAC,gBAAI;IAAC,IAAI;IAAC,KAAK;IAAC,SAAS,EAAE4B,sBAAK,CAAC3B;EAAK,GACpCA,IAAI,CAER,CACI,CACM,CACT,gBAER,4DAAGP,QAAQ,CACZ;AACH,CAAC;AAAC;AAEFD,OAAO,CAACyC,SAAS,GAAG;EAClBxC,QAAQ,EAAEyC,kBAAS,CAACC,IAAI,CAACC,UAAU;EACnCzC,IAAI,EAAEuC,kBAAS,CAACG,IAAI;EACpBzC,SAAS,EAAEsC,kBAAS,CAACG,IAAI;EACzBvC,KAAK,EAAEoC,kBAAS,CAACG,IAAI;EACrBtC,QAAQ,EAAEmC,kBAAS,CAACI,SAAS,CAAC,CAACJ,kBAAS,CAACC,IAAI,EAAED,kBAAS,CAACK,IAAI,CAAC,CAAC;EAC/DvC,IAAI,EAAEkC,kBAAS,CAACM,MAAM;EACtBvC,SAAS,EAAEiC,kBAAS,CAACO,MAAM;EAC3BtC,GAAG,EAAE+B,kBAAS,CAACG,IAAI;EACnBjC,OAAO,EAAE8B,kBAAS,CAACG;AACrB,CAAC"}
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
width: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.tooltip.
|
|
25
|
+
.tooltip:not(.align):not(.left):not(.right):before {
|
|
26
26
|
left: calc(50% - calc(var(--mirai-ui-tooltip-space) / 2));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.tooltip.top.
|
|
29
|
+
.tooltip.top:not(.align):before {
|
|
30
30
|
border-color: var(--mirai-ui-tooltip-background) transparent transparent transparent;
|
|
31
31
|
bottom: calc(calc(var(--mirai-ui-tooltip-space) / 2) * -1);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.tooltip.bottom.
|
|
34
|
+
.tooltip.bottom:not(.align):before {
|
|
35
35
|
border-color: transparent transparent var(--mirai-ui-tooltip-background) transparent;
|
|
36
36
|
top: calc(calc(var(--mirai-ui-tooltip-space) / 2) * -1);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.tooltip.left.
|
|
39
|
+
.tooltip.left:not(.align):before {
|
|
40
40
|
left: calc(var(--mirai-ui-tooltip-space) * 2);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.tooltip.right.
|
|
43
|
+
.tooltip.right:not(.align):before {
|
|
44
44
|
right: calc(var(--mirai-ui-tooltip-space) * 2);
|
|
45
45
|
}
|
|
46
46
|
|