@ksp-gonogo/ui-kit 1.0.0 → 1.1.0-rc.52
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/dist/{chunk-FIYXARZ7.js → chunk-OS7L3ATF.js} +1233 -790
- package/dist/chunk-OS7L3ATF.js.map +1 -0
- package/dist/chunk-ZG7NEDVU.js +7 -0
- package/dist/chunk-ZG7NEDVU.js.map +1 -0
- package/dist/guards.js +1 -0
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +771 -33
- package/dist/index.js +3575 -1353
- package/dist/index.js.map +1 -1
- package/dist/nullDisplay.d.ts +16 -0
- package/dist/nullDisplay.js +8 -0
- package/dist/nullDisplay.js.map +1 -0
- package/dist/reads-index.json +126 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +4 -3
- package/dist/testing.js.map +1 -1
- package/dist/tokens.css +131 -48
- package/dist/{units-DjIjtO5v.d.ts → units-BmcQi-WX.d.ts} +26 -4
- package/package.json +8 -3
- package/dist/chunk-FIYXARZ7.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The null token, the dash that means "no value to show": nothing has arrived
|
|
3
|
+
* yet, or the game confirmed there is none. It does not say which, so a widget
|
|
4
|
+
* that has to tell them apart reads the reading's `state` and says so in
|
|
5
|
+
* words. Useful for showing the operator an empty figure wherever only a string
|
|
6
|
+
* fits: a formatter's return value, a template fallback, an attribute value.
|
|
7
|
+
* Used by the tape and the band instruments, and by the Uplink page generator
|
|
8
|
+
* for a table cell with nothing in it. For a bare JSX node use `NullValue`.
|
|
9
|
+
* It is also published as `@ksp-gonogo/ui-kit/null-display`, a module with no
|
|
10
|
+
* imports, so a Node process can read it where the root barrel cannot load.
|
|
11
|
+
*
|
|
12
|
+
* @category Unit
|
|
13
|
+
*/
|
|
14
|
+
declare const NULL_DISPLAY = "\u2014";
|
|
15
|
+
|
|
16
|
+
export { NULL_DISPLAY };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/reads-index.json
CHANGED
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
"arguments": [],
|
|
121
121
|
"unresolved": []
|
|
122
122
|
},
|
|
123
|
+
"ChartMarks": {
|
|
124
|
+
"reads": [],
|
|
125
|
+
"families": [],
|
|
126
|
+
"commands": [],
|
|
127
|
+
"arguments": [],
|
|
128
|
+
"unresolved": []
|
|
129
|
+
},
|
|
123
130
|
"Cluster": {
|
|
124
131
|
"reads": [],
|
|
125
132
|
"families": [],
|
|
@@ -148,6 +155,13 @@
|
|
|
148
155
|
"arguments": [],
|
|
149
156
|
"unresolved": []
|
|
150
157
|
},
|
|
158
|
+
"CommandedPaddle": {
|
|
159
|
+
"reads": [],
|
|
160
|
+
"families": [],
|
|
161
|
+
"commands": [],
|
|
162
|
+
"arguments": [],
|
|
163
|
+
"unresolved": []
|
|
164
|
+
},
|
|
151
165
|
"ComposerBar": {
|
|
152
166
|
"reads": [],
|
|
153
167
|
"families": [],
|
|
@@ -358,6 +372,13 @@
|
|
|
358
372
|
"arguments": [],
|
|
359
373
|
"unresolved": []
|
|
360
374
|
},
|
|
375
|
+
"GroupedFilterList": {
|
|
376
|
+
"reads": [],
|
|
377
|
+
"families": [],
|
|
378
|
+
"commands": [],
|
|
379
|
+
"arguments": [],
|
|
380
|
+
"unresolved": []
|
|
381
|
+
},
|
|
361
382
|
"HeldFigure": {
|
|
362
383
|
"reads": [],
|
|
363
384
|
"families": [],
|
|
@@ -365,6 +386,13 @@
|
|
|
365
386
|
"arguments": [],
|
|
366
387
|
"unresolved": []
|
|
367
388
|
},
|
|
389
|
+
"HoverAction": {
|
|
390
|
+
"reads": [],
|
|
391
|
+
"families": [],
|
|
392
|
+
"commands": [],
|
|
393
|
+
"arguments": [],
|
|
394
|
+
"unresolved": []
|
|
395
|
+
},
|
|
368
396
|
"HoverCard": {
|
|
369
397
|
"reads": [],
|
|
370
398
|
"families": [],
|
|
@@ -435,6 +463,20 @@
|
|
|
435
463
|
"arguments": [],
|
|
436
464
|
"unresolved": []
|
|
437
465
|
},
|
|
466
|
+
"MapLegend": {
|
|
467
|
+
"reads": [],
|
|
468
|
+
"families": [],
|
|
469
|
+
"commands": [],
|
|
470
|
+
"arguments": [],
|
|
471
|
+
"unresolved": []
|
|
472
|
+
},
|
|
473
|
+
"MapLegendKey": {
|
|
474
|
+
"reads": [],
|
|
475
|
+
"families": [],
|
|
476
|
+
"commands": [],
|
|
477
|
+
"arguments": [],
|
|
478
|
+
"unresolved": []
|
|
479
|
+
},
|
|
438
480
|
"Meter": {
|
|
439
481
|
"reads": [],
|
|
440
482
|
"families": [],
|
|
@@ -477,6 +519,13 @@
|
|
|
477
519
|
"arguments": [],
|
|
478
520
|
"unresolved": []
|
|
479
521
|
},
|
|
522
|
+
"NoHoverOnly": {
|
|
523
|
+
"reads": [],
|
|
524
|
+
"families": [],
|
|
525
|
+
"commands": [],
|
|
526
|
+
"arguments": [],
|
|
527
|
+
"unresolved": []
|
|
528
|
+
},
|
|
480
529
|
"Notice": {
|
|
481
530
|
"reads": [],
|
|
482
531
|
"families": [],
|
|
@@ -491,6 +540,27 @@
|
|
|
491
540
|
"arguments": [],
|
|
492
541
|
"unresolved": []
|
|
493
542
|
},
|
|
543
|
+
"ObjectiveGlyph": {
|
|
544
|
+
"reads": [],
|
|
545
|
+
"families": [],
|
|
546
|
+
"commands": [],
|
|
547
|
+
"arguments": [],
|
|
548
|
+
"unresolved": []
|
|
549
|
+
},
|
|
550
|
+
"ObjectiveRow": {
|
|
551
|
+
"reads": [],
|
|
552
|
+
"families": [],
|
|
553
|
+
"commands": [],
|
|
554
|
+
"arguments": [],
|
|
555
|
+
"unresolved": []
|
|
556
|
+
},
|
|
557
|
+
"Paddle": {
|
|
558
|
+
"reads": [],
|
|
559
|
+
"families": [],
|
|
560
|
+
"commands": [],
|
|
561
|
+
"arguments": [],
|
|
562
|
+
"unresolved": []
|
|
563
|
+
},
|
|
494
564
|
"PanZoomViewport": {
|
|
495
565
|
"reads": [],
|
|
496
566
|
"families": [],
|
|
@@ -561,6 +631,20 @@
|
|
|
561
631
|
"arguments": [],
|
|
562
632
|
"unresolved": []
|
|
563
633
|
},
|
|
634
|
+
"ReorderItem": {
|
|
635
|
+
"reads": [],
|
|
636
|
+
"families": [],
|
|
637
|
+
"commands": [],
|
|
638
|
+
"arguments": [],
|
|
639
|
+
"unresolved": []
|
|
640
|
+
},
|
|
641
|
+
"ReservedLines": {
|
|
642
|
+
"reads": [],
|
|
643
|
+
"families": [],
|
|
644
|
+
"commands": [],
|
|
645
|
+
"arguments": [],
|
|
646
|
+
"unresolved": []
|
|
647
|
+
},
|
|
564
648
|
"ReservedText": {
|
|
565
649
|
"reads": [],
|
|
566
650
|
"families": [],
|
|
@@ -645,6 +729,13 @@
|
|
|
645
729
|
"arguments": [],
|
|
646
730
|
"unresolved": []
|
|
647
731
|
},
|
|
732
|
+
"SpokenAs": {
|
|
733
|
+
"reads": [],
|
|
734
|
+
"families": [],
|
|
735
|
+
"commands": [],
|
|
736
|
+
"arguments": [],
|
|
737
|
+
"unresolved": []
|
|
738
|
+
},
|
|
648
739
|
"Stack": {
|
|
649
740
|
"reads": [],
|
|
650
741
|
"families": [],
|
|
@@ -694,6 +785,13 @@
|
|
|
694
785
|
"arguments": [],
|
|
695
786
|
"unresolved": []
|
|
696
787
|
},
|
|
788
|
+
"SuggestField": {
|
|
789
|
+
"reads": [],
|
|
790
|
+
"families": [],
|
|
791
|
+
"commands": [],
|
|
792
|
+
"arguments": [],
|
|
793
|
+
"unresolved": []
|
|
794
|
+
},
|
|
697
795
|
"Switch": {
|
|
698
796
|
"reads": [],
|
|
699
797
|
"families": [],
|
|
@@ -757,6 +855,13 @@
|
|
|
757
855
|
"arguments": [],
|
|
758
856
|
"unresolved": []
|
|
759
857
|
},
|
|
858
|
+
"UnframedGraph": {
|
|
859
|
+
"reads": [],
|
|
860
|
+
"families": [],
|
|
861
|
+
"commands": [],
|
|
862
|
+
"arguments": [],
|
|
863
|
+
"unresolved": []
|
|
864
|
+
},
|
|
760
865
|
"Unit": {
|
|
761
866
|
"reads": [],
|
|
762
867
|
"families": [],
|
|
@@ -1233,6 +1338,13 @@
|
|
|
1233
1338
|
"arguments": [],
|
|
1234
1339
|
"unresolved": []
|
|
1235
1340
|
},
|
|
1341
|
+
"rangePart": {
|
|
1342
|
+
"reads": [],
|
|
1343
|
+
"families": [],
|
|
1344
|
+
"commands": [],
|
|
1345
|
+
"arguments": [],
|
|
1346
|
+
"unresolved": []
|
|
1347
|
+
},
|
|
1236
1348
|
"reckoningBasisPhrase": {
|
|
1237
1349
|
"reads": [],
|
|
1238
1350
|
"families": [],
|
|
@@ -1324,6 +1436,13 @@
|
|
|
1324
1436
|
"arguments": [],
|
|
1325
1437
|
"unresolved": []
|
|
1326
1438
|
},
|
|
1439
|
+
"speakFullDuration": {
|
|
1440
|
+
"reads": [],
|
|
1441
|
+
"families": [],
|
|
1442
|
+
"commands": [],
|
|
1443
|
+
"arguments": [],
|
|
1444
|
+
"unresolved": []
|
|
1445
|
+
},
|
|
1327
1446
|
"speakQuantity": {
|
|
1328
1447
|
"reads": [],
|
|
1329
1448
|
"families": [],
|
|
@@ -1660,6 +1779,13 @@
|
|
|
1660
1779
|
"arguments": [],
|
|
1661
1780
|
"unresolved": []
|
|
1662
1781
|
},
|
|
1782
|
+
"wrapPathInView": {
|
|
1783
|
+
"reads": [],
|
|
1784
|
+
"families": [],
|
|
1785
|
+
"commands": [],
|
|
1786
|
+
"arguments": [],
|
|
1787
|
+
"unresolved": []
|
|
1788
|
+
},
|
|
1663
1789
|
"writeQuantity": {
|
|
1664
1790
|
"reads": [],
|
|
1665
1791
|
"families": [],
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormatQuantityOptions } from './units-
|
|
1
|
+
import { F as FormatQuantityOptions } from './units-BmcQi-WX.js';
|
|
2
2
|
import { RenderHookOptions, RenderHookResult, RenderOptions, RenderResult } from '@ksp-gonogo/sitrep-sdk/testing';
|
|
3
3
|
import { ReactElement, JSXElementConstructor, ReactNode } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/testing.js
CHANGED
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
showsTiny,
|
|
12
12
|
useWidgetBadges,
|
|
13
13
|
writeQuantity
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OS7L3ATF.js";
|
|
15
15
|
import "./chunk-5LJPQV5P.js";
|
|
16
|
+
import "./chunk-ZG7NEDVU.js";
|
|
16
17
|
import {
|
|
17
18
|
__commonJS,
|
|
18
19
|
__export,
|
|
@@ -16577,11 +16578,11 @@ function visibleText(container = document.body) {
|
|
|
16577
16578
|
)) {
|
|
16578
16579
|
hidden.remove();
|
|
16579
16580
|
}
|
|
16580
|
-
return (clone2.textContent ?? "").replace(/
|
|
16581
|
+
return (clone2.textContent ?? "").replace(/[\u2009\u00a0]/g, " ");
|
|
16581
16582
|
}
|
|
16582
16583
|
var unitMatchers = {
|
|
16583
16584
|
toShowQuantity(received, quantity, opts = {}) {
|
|
16584
|
-
const expected = writeQuantity(quantity, opts);
|
|
16585
|
+
const expected = writeQuantity(quantity, opts).replace(/\u00a0/g, " ");
|
|
16585
16586
|
const actual = visibleText(received ?? document.body);
|
|
16586
16587
|
const pass = actual.includes(expected);
|
|
16587
16588
|
return {
|