@surreal-ui/catalog 0.14.1 → 0.16.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/README.md +27 -1
- package/dist/{chunk-K6AAK2NB.js → chunk-VEFEZH7Q.js} +631 -39
- package/dist/components.css +4 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/dist/lazy.js +1 -1
- package/dist/node.d.ts +13 -2
- package/dist/node.js +21 -1
- package/dist/react/flair.d.ts +45 -1
- package/dist/react/flair.js +171 -18
- package/dist/sources/bar-chart/react.tsx +1 -1
- package/dist/sources/braid/react.tsx +1 -1
- package/dist/sources/donut-chart/react.tsx +1 -1
- package/dist/sources/flow/react.tsx +1 -1
- package/dist/sources/gauge/react.tsx +1 -1
- package/dist/sources/line-chart/react.tsx +1 -1
- package/dist/sources/lineage/react.tsx +1 -1
- package/dist/sources/loader/react.tsx +52 -0
- package/dist/sources/mindmap/react.tsx +1 -1
- package/dist/sources/sparkline/react.tsx +1 -1
- package/dist/sources/table/svelte.svelte +9 -0
- package/dist/sources/timeline/react.tsx +1 -1
- package/dist/sources/weave/react.tsx +1 -1
- package/dist/svelte/Table.svelte +9 -0
- package/llms.txt +4 -0
- package/package.json +7 -7
- package/skills/surreal-use/references/components.md +15 -11
|
@@ -237,10 +237,33 @@ var CATALOG = {
|
|
|
237
237
|
"source": {
|
|
238
238
|
"provider": "editor",
|
|
239
239
|
"itemId": "bar-chart",
|
|
240
|
-
"version": "0.
|
|
241
|
-
"contentHash": "h1-
|
|
240
|
+
"version": "0.355.0",
|
|
241
|
+
"contentHash": "h1-7d0b9798a53ee15e"
|
|
242
242
|
},
|
|
243
243
|
"runtime": "engine",
|
|
244
|
+
"fallback": "table",
|
|
245
|
+
"encodings": [
|
|
246
|
+
{
|
|
247
|
+
"channel": "Category position",
|
|
248
|
+
"field": "categories[]",
|
|
249
|
+
"meaning": "One group of bars per category, in the order given."
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"channel": "Bar length",
|
|
253
|
+
"field": "series[].values[]",
|
|
254
|
+
"meaning": "Each value, measured from the zero line; compare lengths against the value axis, in the unit given."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"channel": "Bar colour",
|
|
258
|
+
"field": "series[].name",
|
|
259
|
+
"meaning": "Which series a bar belongs to; the legend names them. Several series stand side by side in each group."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"channel": "Gridlines",
|
|
263
|
+
"meaning": "Guides to the value axis ticks; they show no data.",
|
|
264
|
+
"decoration": true
|
|
265
|
+
}
|
|
266
|
+
],
|
|
244
267
|
"implements": "bar-chart",
|
|
245
268
|
"category": "data-visual",
|
|
246
269
|
"platforms": [
|
|
@@ -248,7 +271,7 @@ var CATALOG = {
|
|
|
248
271
|
],
|
|
249
272
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
250
273
|
"export": "BarChart",
|
|
251
|
-
"contentHash": "
|
|
274
|
+
"contentHash": "abcf15b9c24c75430b5e6e1ecf54d305d3177f5f95dec2ebff6aea81c3148f92",
|
|
252
275
|
"path": "components/bar-chart",
|
|
253
276
|
"alternatives": []
|
|
254
277
|
},
|
|
@@ -398,10 +421,33 @@ var CATALOG = {
|
|
|
398
421
|
"source": {
|
|
399
422
|
"provider": "editor",
|
|
400
423
|
"itemId": "braid",
|
|
401
|
-
"version": "0.
|
|
402
|
-
"contentHash": "h1-
|
|
424
|
+
"version": "0.355.0",
|
|
425
|
+
"contentHash": "h1-797be48fefa36fbc"
|
|
403
426
|
},
|
|
404
427
|
"runtime": "engine",
|
|
428
|
+
"fallback": "table",
|
|
429
|
+
"encodings": [
|
|
430
|
+
{
|
|
431
|
+
"channel": "Strand",
|
|
432
|
+
"field": "strands[].name",
|
|
433
|
+
"meaning": "One strand per item, labelled at the open end, all twisting into the root."
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"channel": "Strand thickness",
|
|
437
|
+
"field": "strands[].value",
|
|
438
|
+
"meaning": "Its weight relative to the heaviest strand, which is drawn thickest; without values every strand is the same thickness."
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"channel": "Strand colour",
|
|
442
|
+
"field": "strands[].name",
|
|
443
|
+
"meaning": "Tells the strands apart along the braid."
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"channel": "Twists, over and under",
|
|
447
|
+
"meaning": "How the strands cross and how many turns the braid takes (the `turns` option) are style only.",
|
|
448
|
+
"decoration": true
|
|
449
|
+
}
|
|
450
|
+
],
|
|
405
451
|
"implements": "braid",
|
|
406
452
|
"category": "data-visual",
|
|
407
453
|
"platforms": [
|
|
@@ -409,7 +455,7 @@ var CATALOG = {
|
|
|
409
455
|
],
|
|
410
456
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
411
457
|
"export": "Braid",
|
|
412
|
-
"contentHash": "
|
|
458
|
+
"contentHash": "40f8c93a2041427bac1d18ed5138ebc2e5ff759a460aaa8e55d52abbf0c7fd4b",
|
|
413
459
|
"path": "components/braid",
|
|
414
460
|
"alternatives": []
|
|
415
461
|
},
|
|
@@ -882,10 +928,28 @@ var CATALOG = {
|
|
|
882
928
|
"source": {
|
|
883
929
|
"provider": "editor",
|
|
884
930
|
"itemId": "donut-chart",
|
|
885
|
-
"version": "0.
|
|
886
|
-
"contentHash": "h1-
|
|
931
|
+
"version": "0.355.0",
|
|
932
|
+
"contentHash": "h1-adc4a02137295a81"
|
|
887
933
|
},
|
|
888
934
|
"runtime": "engine",
|
|
935
|
+
"fallback": "table",
|
|
936
|
+
"encodings": [
|
|
937
|
+
{
|
|
938
|
+
"channel": "Slice angle",
|
|
939
|
+
"field": "slices[].value",
|
|
940
|
+
"meaning": "Each slice's share of the total: its value divided by the sum of all values."
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"channel": "Slice colour",
|
|
944
|
+
"field": "slices[].label",
|
|
945
|
+
"meaning": "Which part a slice is; the legend names them."
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"channel": "Hole and ring width",
|
|
949
|
+
"meaning": "The ring is the same width all round; only the angle shows data.",
|
|
950
|
+
"decoration": true
|
|
951
|
+
}
|
|
952
|
+
],
|
|
889
953
|
"implements": "donut-chart",
|
|
890
954
|
"category": "data-visual",
|
|
891
955
|
"platforms": [
|
|
@@ -893,7 +957,7 @@ var CATALOG = {
|
|
|
893
957
|
],
|
|
894
958
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
895
959
|
"export": "DonutChart",
|
|
896
|
-
"contentHash": "
|
|
960
|
+
"contentHash": "4d14294985fe5b28f5ceec123a40c7bfceed00cefd01bf9484838a4551576ae8",
|
|
897
961
|
"path": "components/donut-chart",
|
|
898
962
|
"alternatives": []
|
|
899
963
|
},
|
|
@@ -1025,10 +1089,28 @@ var CATALOG = {
|
|
|
1025
1089
|
"source": {
|
|
1026
1090
|
"provider": "editor",
|
|
1027
1091
|
"itemId": "flow",
|
|
1028
|
-
"version": "0.
|
|
1029
|
-
"contentHash": "h1-
|
|
1092
|
+
"version": "0.355.0",
|
|
1093
|
+
"contentHash": "h1-704c5ef0510ad71d"
|
|
1030
1094
|
},
|
|
1031
1095
|
"runtime": "engine",
|
|
1096
|
+
"fallback": "table",
|
|
1097
|
+
"encodings": [
|
|
1098
|
+
{
|
|
1099
|
+
"channel": "Boxes",
|
|
1100
|
+
"field": "steps[].label",
|
|
1101
|
+
"meaning": "One box per step."
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"channel": "Arrows",
|
|
1105
|
+
"field": "links[]",
|
|
1106
|
+
"meaning": "Where a step leads, labelled when the link has a label; without links each step leads to the next."
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"channel": "Box placement and direction",
|
|
1110
|
+
"meaning": "The layout places boxes to keep arrows short (left to right or top down, as `direction` asks); distance between boxes means nothing.",
|
|
1111
|
+
"decoration": true
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1032
1114
|
"implements": "flow",
|
|
1033
1115
|
"category": "data-visual",
|
|
1034
1116
|
"platforms": [
|
|
@@ -1036,7 +1118,7 @@ var CATALOG = {
|
|
|
1036
1118
|
],
|
|
1037
1119
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
1038
1120
|
"export": "Flow",
|
|
1039
|
-
"contentHash": "
|
|
1121
|
+
"contentHash": "8a8e4b246761bfaca79c8c299f6873acf3aee3ed3f6a6b82517358fd6ced42bb",
|
|
1040
1122
|
"path": "components/flow",
|
|
1041
1123
|
"alternatives": []
|
|
1042
1124
|
},
|
|
@@ -1113,10 +1195,43 @@ var CATALOG = {
|
|
|
1113
1195
|
"source": {
|
|
1114
1196
|
"provider": "flair",
|
|
1115
1197
|
"itemId": "gauge",
|
|
1116
|
-
"version": "0.
|
|
1117
|
-
"contentHash": "
|
|
1198
|
+
"version": "0.146.0",
|
|
1199
|
+
"contentHash": "8eb14872ad5646f8"
|
|
1118
1200
|
},
|
|
1119
1201
|
"runtime": "engine",
|
|
1202
|
+
"fallback": "progress",
|
|
1203
|
+
"encodings": [
|
|
1204
|
+
{
|
|
1205
|
+
"channel": "Needle angle",
|
|
1206
|
+
"field": "value",
|
|
1207
|
+
"meaning": "How far the reading is along the scale: 0 on the left, the scale's maximum on the right."
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"channel": "Number on the right",
|
|
1211
|
+
"field": "max",
|
|
1212
|
+
"meaning": "The scale's maximum (100 when not given)."
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"channel": "Reading under the dial",
|
|
1216
|
+
"field": "value",
|
|
1217
|
+
"meaning": "The value written out, with its unit."
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"channel": "Caption",
|
|
1221
|
+
"field": "label",
|
|
1222
|
+
"meaning": "What the gauge measures."
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"channel": "Green, amber and red bands",
|
|
1226
|
+
"meaning": "Fixed shares of the scale (amber from 60%, red from 85%), not limits from the data; a reading in the red is not a judgement unless the scale was chosen to make it one.",
|
|
1227
|
+
"decoration": true
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"channel": "Needle sweep and count-up",
|
|
1231
|
+
"meaning": "The needle swings past the value and settles, and the reading counts up; only where they come to rest shows the value.",
|
|
1232
|
+
"decoration": true
|
|
1233
|
+
}
|
|
1234
|
+
],
|
|
1120
1235
|
"implements": "gauge",
|
|
1121
1236
|
"category": "data-visual",
|
|
1122
1237
|
"platforms": [
|
|
@@ -1124,7 +1239,7 @@ var CATALOG = {
|
|
|
1124
1239
|
],
|
|
1125
1240
|
"entry": "@surreal-ui/catalog/react/flair",
|
|
1126
1241
|
"export": "Gauge",
|
|
1127
|
-
"contentHash": "
|
|
1242
|
+
"contentHash": "c9d9a5cacdf6445e57d670db530ce178f02a2d6017ba8c5701703634ab01ebce",
|
|
1128
1243
|
"path": "components/gauge",
|
|
1129
1244
|
"alternatives": []
|
|
1130
1245
|
},
|
|
@@ -1496,10 +1611,38 @@ var CATALOG = {
|
|
|
1496
1611
|
"source": {
|
|
1497
1612
|
"provider": "editor",
|
|
1498
1613
|
"itemId": "line-chart",
|
|
1499
|
-
"version": "0.
|
|
1500
|
-
"contentHash": "h1-
|
|
1614
|
+
"version": "0.355.0",
|
|
1615
|
+
"contentHash": "h1-3b8a362eca999af8"
|
|
1501
1616
|
},
|
|
1502
1617
|
"runtime": "engine",
|
|
1618
|
+
"fallback": "table",
|
|
1619
|
+
"encodings": [
|
|
1620
|
+
{
|
|
1621
|
+
"channel": "Horizontal position",
|
|
1622
|
+
"field": "categories[]",
|
|
1623
|
+
"meaning": "Each category along the x axis, in the order given, evenly spaced."
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"channel": "Height",
|
|
1627
|
+
"field": "series[].values[]",
|
|
1628
|
+
"meaning": "Each value, against the value axis, in the unit given."
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"channel": "Line colour",
|
|
1632
|
+
"field": "series[].name",
|
|
1633
|
+
"meaning": "Which series a line belongs to; the legend names them."
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"channel": "Line between points",
|
|
1637
|
+
"meaning": "Joins one category to the next to show the trend; points between categories are not data.",
|
|
1638
|
+
"decoration": true
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"channel": "Gridlines",
|
|
1642
|
+
"meaning": "Guides to the value axis ticks; they show no data.",
|
|
1643
|
+
"decoration": true
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1503
1646
|
"implements": "line-chart",
|
|
1504
1647
|
"category": "data-visual",
|
|
1505
1648
|
"platforms": [
|
|
@@ -1507,7 +1650,7 @@ var CATALOG = {
|
|
|
1507
1650
|
],
|
|
1508
1651
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
1509
1652
|
"export": "LineChart",
|
|
1510
|
-
"contentHash": "
|
|
1653
|
+
"contentHash": "7321118d74a95780e26c47622a02daed211353f0688cd915c080e7b3bfc078d7",
|
|
1511
1654
|
"path": "components/line-chart",
|
|
1512
1655
|
"alternatives": []
|
|
1513
1656
|
},
|
|
@@ -1650,10 +1793,33 @@ var CATALOG = {
|
|
|
1650
1793
|
"source": {
|
|
1651
1794
|
"provider": "editor",
|
|
1652
1795
|
"itemId": "lineage",
|
|
1653
|
-
"version": "0.
|
|
1654
|
-
"contentHash": "h1-
|
|
1796
|
+
"version": "0.355.0",
|
|
1797
|
+
"contentHash": "h1-928ff8f799b5735c"
|
|
1655
1798
|
},
|
|
1656
1799
|
"runtime": "engine",
|
|
1800
|
+
"fallback": "table",
|
|
1801
|
+
"encodings": [
|
|
1802
|
+
{
|
|
1803
|
+
"channel": "Root at the top",
|
|
1804
|
+
"field": "root",
|
|
1805
|
+
"meaning": "What every item descends from."
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"channel": "Position along the row",
|
|
1809
|
+
"field": "items[]",
|
|
1810
|
+
"meaning": "Each item, in the order given; the order is yours, not a ranking."
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"channel": "Connectors",
|
|
1814
|
+
"field": "items[]",
|
|
1815
|
+
"meaning": "Each item descends from the root; every item has one."
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"channel": "Curves, dots and draw-on",
|
|
1819
|
+
"meaning": "Rounded connector shapes, dot sizes and the draw-on from the root are style only.",
|
|
1820
|
+
"decoration": true
|
|
1821
|
+
}
|
|
1822
|
+
],
|
|
1657
1823
|
"implements": "lineage",
|
|
1658
1824
|
"category": "data-visual",
|
|
1659
1825
|
"platforms": [
|
|
@@ -1661,10 +1827,354 @@ var CATALOG = {
|
|
|
1661
1827
|
],
|
|
1662
1828
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
1663
1829
|
"export": "Lineage",
|
|
1664
|
-
"contentHash": "
|
|
1830
|
+
"contentHash": "b34f54a36ed84a32c081d86d09f0168b54e979d0cfdde621e6d0aadd7653412d",
|
|
1665
1831
|
"path": "components/lineage",
|
|
1666
1832
|
"alternatives": []
|
|
1667
1833
|
},
|
|
1834
|
+
{
|
|
1835
|
+
"id": "loader",
|
|
1836
|
+
"name": "Liquid loader",
|
|
1837
|
+
"description": "A glass circle filling with sloshing liquid, two waves rolling across its surface and bubbles rising, then draining to fill again.",
|
|
1838
|
+
"tags": [
|
|
1839
|
+
"flair",
|
|
1840
|
+
"paradigm"
|
|
1841
|
+
],
|
|
1842
|
+
"group": "paradigm",
|
|
1843
|
+
"contract": {
|
|
1844
|
+
"props": {
|
|
1845
|
+
"type": "object",
|
|
1846
|
+
"properties": {
|
|
1847
|
+
"value": {
|
|
1848
|
+
"type": [
|
|
1849
|
+
"number",
|
|
1850
|
+
"null"
|
|
1851
|
+
],
|
|
1852
|
+
"minimum": 0,
|
|
1853
|
+
"maximum": 1,
|
|
1854
|
+
"description": "How far along the job is, 0\u20131; null (or left out) while it cannot tell, so the loader plays its own loop."
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"additionalProperties": false
|
|
1858
|
+
},
|
|
1859
|
+
"state": [],
|
|
1860
|
+
"events": [],
|
|
1861
|
+
"a11y": {
|
|
1862
|
+
"role": "progressbar",
|
|
1863
|
+
"keyboard": {},
|
|
1864
|
+
"labelFrom": "aria-label",
|
|
1865
|
+
"reducedMotionAt": 1
|
|
1866
|
+
},
|
|
1867
|
+
"colorRoles": [
|
|
1868
|
+
"accent",
|
|
1869
|
+
"track-off",
|
|
1870
|
+
"border"
|
|
1871
|
+
],
|
|
1872
|
+
"motion": true,
|
|
1873
|
+
"sizing": {
|
|
1874
|
+
"mode": "fill"
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
"examples": [
|
|
1878
|
+
{
|
|
1879
|
+
"name": "example",
|
|
1880
|
+
"props": {
|
|
1881
|
+
"value": 0.6
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
],
|
|
1885
|
+
"source": {
|
|
1886
|
+
"provider": "flair",
|
|
1887
|
+
"itemId": "liquid-loader",
|
|
1888
|
+
"version": "0.146.0",
|
|
1889
|
+
"contentHash": "507abcc8f380f53d"
|
|
1890
|
+
},
|
|
1891
|
+
"category": "feedback",
|
|
1892
|
+
"runtime": "engine",
|
|
1893
|
+
"fallback": "progress",
|
|
1894
|
+
"encodings": [
|
|
1895
|
+
{
|
|
1896
|
+
"channel": "Liquid level",
|
|
1897
|
+
"field": "value",
|
|
1898
|
+
"meaning": "How far along the job is: empty at the bottom of the glass, full at the top."
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"channel": "Its own loop",
|
|
1902
|
+
"field": "value",
|
|
1903
|
+
"meaning": "While the value is null the loader plays its own loop, which means the job is running but cannot tell how far along it is; it shows no amount."
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
"channel": "Waves and bubbles",
|
|
1907
|
+
"meaning": "The waves rolling across the surface and the rising bubbles are motion only; read the level where the surface settles.",
|
|
1908
|
+
"decoration": true
|
|
1909
|
+
}
|
|
1910
|
+
],
|
|
1911
|
+
"implements": "loader",
|
|
1912
|
+
"platforms": [
|
|
1913
|
+
"react"
|
|
1914
|
+
],
|
|
1915
|
+
"entry": "@surreal-ui/catalog/react/flair",
|
|
1916
|
+
"export": "Loader",
|
|
1917
|
+
"contentHash": "28a56a40fa6b356b3b4c96e899075c4fdc2011d233ffc90255fd99615627bf6f",
|
|
1918
|
+
"path": "components/loader",
|
|
1919
|
+
"alternatives": [
|
|
1920
|
+
{
|
|
1921
|
+
"id": "flair-flame-loader",
|
|
1922
|
+
"name": "Flame loader",
|
|
1923
|
+
"description": "A progress bar that burns along its length: the filled part glows like embers under flames, tallest at the leading edge, sparks flying off it.",
|
|
1924
|
+
"tags": [
|
|
1925
|
+
"flair",
|
|
1926
|
+
"paradigm"
|
|
1927
|
+
],
|
|
1928
|
+
"group": "paradigm",
|
|
1929
|
+
"contract": {
|
|
1930
|
+
"props": {
|
|
1931
|
+
"type": "object",
|
|
1932
|
+
"properties": {
|
|
1933
|
+
"value": {
|
|
1934
|
+
"type": [
|
|
1935
|
+
"number",
|
|
1936
|
+
"null"
|
|
1937
|
+
],
|
|
1938
|
+
"minimum": 0,
|
|
1939
|
+
"maximum": 1,
|
|
1940
|
+
"description": "How far along the job is, 0\u20131; null (or left out) while it cannot tell, so the loader plays its own loop."
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
"additionalProperties": false
|
|
1944
|
+
},
|
|
1945
|
+
"state": [],
|
|
1946
|
+
"events": [],
|
|
1947
|
+
"a11y": {
|
|
1948
|
+
"role": "progressbar",
|
|
1949
|
+
"keyboard": {},
|
|
1950
|
+
"labelFrom": "aria-label",
|
|
1951
|
+
"reducedMotionAt": 1
|
|
1952
|
+
},
|
|
1953
|
+
"colorRoles": [
|
|
1954
|
+
"track-off"
|
|
1955
|
+
],
|
|
1956
|
+
"motion": true,
|
|
1957
|
+
"sizing": {
|
|
1958
|
+
"mode": "fill"
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1961
|
+
"examples": [
|
|
1962
|
+
{
|
|
1963
|
+
"name": "example",
|
|
1964
|
+
"props": {
|
|
1965
|
+
"value": 0.65
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
],
|
|
1969
|
+
"source": {
|
|
1970
|
+
"provider": "flair",
|
|
1971
|
+
"itemId": "flame-loader",
|
|
1972
|
+
"version": "0.146.0",
|
|
1973
|
+
"contentHash": "001336ae6fa8638f"
|
|
1974
|
+
},
|
|
1975
|
+
"category": "feedback",
|
|
1976
|
+
"runtime": "engine",
|
|
1977
|
+
"fallback": "progress",
|
|
1978
|
+
"encodings": [
|
|
1979
|
+
{
|
|
1980
|
+
"channel": "Burnt length",
|
|
1981
|
+
"field": "value",
|
|
1982
|
+
"meaning": "How far along the job is: the bar burns from the left, and the leading edge is where it has got to."
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"channel": "Its own loop",
|
|
1986
|
+
"field": "value",
|
|
1987
|
+
"meaning": "While the value is null the loader plays its own loop, which means the job is running but cannot tell how far along it is; it shows no amount."
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"channel": "Flames and sparks",
|
|
1991
|
+
"meaning": "The flames' height, the glow and the flying sparks are motion only; read where the burning edge is.",
|
|
1992
|
+
"decoration": true
|
|
1993
|
+
}
|
|
1994
|
+
],
|
|
1995
|
+
"implements": "loader",
|
|
1996
|
+
"platforms": [
|
|
1997
|
+
"react"
|
|
1998
|
+
],
|
|
1999
|
+
"entry": "@surreal-ui/catalog/react/flair",
|
|
2000
|
+
"export": "FlairFlameLoader",
|
|
2001
|
+
"contentHash": "2dc2ba8d250853a334836ccb05e6474a2d9f49367e7a2021a86090bc27aacb65",
|
|
2002
|
+
"path": "components/loader/alternatives/flair-flame-loader"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"id": "flair-generating-field",
|
|
2006
|
+
"name": "Generating field",
|
|
2007
|
+
"description": "A soft field brewing over a card while a job runs, its motion set by what is being made, with a glowing front that sweeps across as the job gets further along.",
|
|
2008
|
+
"tags": [
|
|
2009
|
+
"flair",
|
|
2010
|
+
"paradigm"
|
|
2011
|
+
],
|
|
2012
|
+
"group": "paradigm",
|
|
2013
|
+
"contract": {
|
|
2014
|
+
"props": {
|
|
2015
|
+
"type": "object",
|
|
2016
|
+
"properties": {
|
|
2017
|
+
"value": {
|
|
2018
|
+
"type": [
|
|
2019
|
+
"number",
|
|
2020
|
+
"null"
|
|
2021
|
+
],
|
|
2022
|
+
"minimum": 0,
|
|
2023
|
+
"maximum": 1,
|
|
2024
|
+
"description": "How far along the job is, 0\u20131; null (or left out) while it cannot tell, so the loader plays its own loop."
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
"additionalProperties": false
|
|
2028
|
+
},
|
|
2029
|
+
"state": [],
|
|
2030
|
+
"events": [],
|
|
2031
|
+
"a11y": {
|
|
2032
|
+
"role": "progressbar",
|
|
2033
|
+
"keyboard": {},
|
|
2034
|
+
"labelFrom": "aria-label",
|
|
2035
|
+
"reducedMotionAt": 1
|
|
2036
|
+
},
|
|
2037
|
+
"colorRoles": [
|
|
2038
|
+
"accent",
|
|
2039
|
+
"accent-ink",
|
|
2040
|
+
"focus"
|
|
2041
|
+
],
|
|
2042
|
+
"motion": true,
|
|
2043
|
+
"sizing": {
|
|
2044
|
+
"mode": "fill"
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
"examples": [
|
|
2048
|
+
{
|
|
2049
|
+
"name": "example",
|
|
2050
|
+
"props": {
|
|
2051
|
+
"value": null
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
],
|
|
2055
|
+
"source": {
|
|
2056
|
+
"provider": "flair",
|
|
2057
|
+
"itemId": "generating-field",
|
|
2058
|
+
"version": "0.146.0",
|
|
2059
|
+
"contentHash": "825d5ee1cf629f2e"
|
|
2060
|
+
},
|
|
2061
|
+
"category": "feedback",
|
|
2062
|
+
"runtime": "engine",
|
|
2063
|
+
"fallback": "progress",
|
|
2064
|
+
"encodings": [
|
|
2065
|
+
{
|
|
2066
|
+
"channel": "Glowing front",
|
|
2067
|
+
"field": "value",
|
|
2068
|
+
"meaning": "How far along the job is: the front sweeps across the card from one side to the other."
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"channel": "Its own loop",
|
|
2072
|
+
"field": "value",
|
|
2073
|
+
"meaning": "While the value is null the loader plays its own loop, which means the job is running but cannot tell how far along it is; it shows no amount."
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"channel": "Brewing field",
|
|
2077
|
+
"meaning": "The soft field's colours and motion behind the front are style only.",
|
|
2078
|
+
"decoration": true
|
|
2079
|
+
}
|
|
2080
|
+
],
|
|
2081
|
+
"implements": "loader",
|
|
2082
|
+
"platforms": [
|
|
2083
|
+
"react"
|
|
2084
|
+
],
|
|
2085
|
+
"entry": "@surreal-ui/catalog/react/flair",
|
|
2086
|
+
"export": "FlairGeneratingField",
|
|
2087
|
+
"contentHash": "4558a4a6f2baba6cfa1bf5072480ba4cd51fcb9e2470edc3c0beeb8db9350ce3",
|
|
2088
|
+
"path": "components/loader/alternatives/flair-generating-field"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"id": "flair-slop-vat",
|
|
2092
|
+
"name": "Slop vat",
|
|
2093
|
+
"description": "A stroked machine vat filling with bubbling slop to how far a job has got, gooey lobes bobbing on the surface and a nozzle dripping into a puddle below.",
|
|
2094
|
+
"tags": [
|
|
2095
|
+
"flair",
|
|
2096
|
+
"paradigm"
|
|
2097
|
+
],
|
|
2098
|
+
"group": "paradigm",
|
|
2099
|
+
"contract": {
|
|
2100
|
+
"props": {
|
|
2101
|
+
"type": "object",
|
|
2102
|
+
"properties": {
|
|
2103
|
+
"value": {
|
|
2104
|
+
"type": [
|
|
2105
|
+
"number",
|
|
2106
|
+
"null"
|
|
2107
|
+
],
|
|
2108
|
+
"minimum": 0,
|
|
2109
|
+
"maximum": 1,
|
|
2110
|
+
"description": "How far along the job is, 0\u20131; null (or left out) while it cannot tell, so the loader plays its own loop."
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"additionalProperties": false
|
|
2114
|
+
},
|
|
2115
|
+
"state": [],
|
|
2116
|
+
"events": [],
|
|
2117
|
+
"a11y": {
|
|
2118
|
+
"role": "progressbar",
|
|
2119
|
+
"keyboard": {},
|
|
2120
|
+
"labelFrom": "aria-label",
|
|
2121
|
+
"reducedMotionAt": 1
|
|
2122
|
+
},
|
|
2123
|
+
"colorRoles": [
|
|
2124
|
+
"accent",
|
|
2125
|
+
"surface",
|
|
2126
|
+
"ink"
|
|
2127
|
+
],
|
|
2128
|
+
"motion": true,
|
|
2129
|
+
"sizing": {
|
|
2130
|
+
"mode": "fill"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
"examples": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "example",
|
|
2136
|
+
"props": {
|
|
2137
|
+
"value": 0.4
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"source": {
|
|
2142
|
+
"provider": "flair",
|
|
2143
|
+
"itemId": "slop-vat",
|
|
2144
|
+
"version": "0.146.0",
|
|
2145
|
+
"contentHash": "6946757749c8ef05"
|
|
2146
|
+
},
|
|
2147
|
+
"category": "feedback",
|
|
2148
|
+
"runtime": "engine",
|
|
2149
|
+
"fallback": "progress",
|
|
2150
|
+
"encodings": [
|
|
2151
|
+
{
|
|
2152
|
+
"channel": "Slop level",
|
|
2153
|
+
"field": "value",
|
|
2154
|
+
"meaning": "How far along the job is: an empty vat at the start, full at the end."
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"channel": "Its own loop",
|
|
2158
|
+
"field": "value",
|
|
2159
|
+
"meaning": "While the value is null the loader plays its own loop, which means the job is running but cannot tell how far along it is; it shows no amount."
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"channel": "Bubbles, lobes and drips",
|
|
2163
|
+
"meaning": "The bubbling, the bobbing lobes and the nozzle dripping into the puddle are motion only; read the level of the slop.",
|
|
2164
|
+
"decoration": true
|
|
2165
|
+
}
|
|
2166
|
+
],
|
|
2167
|
+
"implements": "loader",
|
|
2168
|
+
"platforms": [
|
|
2169
|
+
"react"
|
|
2170
|
+
],
|
|
2171
|
+
"entry": "@surreal-ui/catalog/react/flair",
|
|
2172
|
+
"export": "FlairSlopVat",
|
|
2173
|
+
"contentHash": "40fe29d409adcd9318439dd0e5dc6a92b73f718eb02af034b1eb3b1167a487bc",
|
|
2174
|
+
"path": "components/loader/alternatives/flair-slop-vat"
|
|
2175
|
+
}
|
|
2176
|
+
]
|
|
2177
|
+
},
|
|
1668
2178
|
{
|
|
1669
2179
|
"id": "mindmap",
|
|
1670
2180
|
"name": "Mind map",
|
|
@@ -1811,10 +2321,33 @@ var CATALOG = {
|
|
|
1811
2321
|
"source": {
|
|
1812
2322
|
"provider": "editor",
|
|
1813
2323
|
"itemId": "mindmap",
|
|
1814
|
-
"version": "0.
|
|
1815
|
-
"contentHash": "h1-
|
|
2324
|
+
"version": "0.355.0",
|
|
2325
|
+
"contentHash": "h1-b091c3121836a046"
|
|
1816
2326
|
},
|
|
1817
2327
|
"runtime": "engine",
|
|
2328
|
+
"fallback": "table",
|
|
2329
|
+
"encodings": [
|
|
2330
|
+
{
|
|
2331
|
+
"channel": "Centre",
|
|
2332
|
+
"field": "root",
|
|
2333
|
+
"meaning": "The central idea."
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"channel": "Distance from the centre",
|
|
2337
|
+
"field": "branches[]",
|
|
2338
|
+
"meaning": "Depth: branches round the root, then their children, then theirs."
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"channel": "Branch colour",
|
|
2342
|
+
"field": "branches[].label",
|
|
2343
|
+
"meaning": "Groups a branch with everything under it; the colours themselves mean nothing."
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"channel": "Angle round the centre",
|
|
2347
|
+
"meaning": "Where a branch sits round the root is layout only, not an order or a rank.",
|
|
2348
|
+
"decoration": true
|
|
2349
|
+
}
|
|
2350
|
+
],
|
|
1818
2351
|
"implements": "mindmap",
|
|
1819
2352
|
"category": "data-visual",
|
|
1820
2353
|
"platforms": [
|
|
@@ -1822,7 +2355,7 @@ var CATALOG = {
|
|
|
1822
2355
|
],
|
|
1823
2356
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
1824
2357
|
"export": "Mindmap",
|
|
1825
|
-
"contentHash": "
|
|
2358
|
+
"contentHash": "2a40b4dc726ac8579121eed1d54de3019cc6ab3987c1c540632bd099df7a73ac",
|
|
1826
2359
|
"path": "components/mindmap",
|
|
1827
2360
|
"alternatives": []
|
|
1828
2361
|
},
|
|
@@ -1961,8 +2494,8 @@ var CATALOG = {
|
|
|
1961
2494
|
"source": {
|
|
1962
2495
|
"provider": "flair",
|
|
1963
2496
|
"itemId": "progress-bar",
|
|
1964
|
-
"version": "0.
|
|
1965
|
-
"contentHash": "
|
|
2497
|
+
"version": "0.146.0",
|
|
2498
|
+
"contentHash": "4675165ba56f2c26"
|
|
1966
2499
|
},
|
|
1967
2500
|
"runtime": "engine",
|
|
1968
2501
|
"implements": "progress",
|
|
@@ -1972,7 +2505,7 @@ var CATALOG = {
|
|
|
1972
2505
|
],
|
|
1973
2506
|
"entry": "@surreal-ui/catalog/react/flair",
|
|
1974
2507
|
"export": "FlairProgressBar",
|
|
1975
|
-
"contentHash": "
|
|
2508
|
+
"contentHash": "87fdef18664c7fd7426cba0112575f9b02f3d61c78affaf4a5004ef50f066483",
|
|
1976
2509
|
"path": "components/progress/alternatives/flair-progress-bar"
|
|
1977
2510
|
}
|
|
1978
2511
|
]
|
|
@@ -2216,10 +2749,28 @@ var CATALOG = {
|
|
|
2216
2749
|
"source": {
|
|
2217
2750
|
"provider": "editor",
|
|
2218
2751
|
"itemId": "sparkline",
|
|
2219
|
-
"version": "0.
|
|
2220
|
-
"contentHash": "h1-
|
|
2752
|
+
"version": "0.355.0",
|
|
2753
|
+
"contentHash": "h1-e365b1f827d118bd"
|
|
2221
2754
|
},
|
|
2222
2755
|
"runtime": "engine",
|
|
2756
|
+
"fallback": "table",
|
|
2757
|
+
"encodings": [
|
|
2758
|
+
{
|
|
2759
|
+
"channel": "Horizontal position",
|
|
2760
|
+
"field": "values[]",
|
|
2761
|
+
"meaning": "Order: the first value on the left, the last on the right, evenly spaced."
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"channel": "Height",
|
|
2765
|
+
"field": "values[]",
|
|
2766
|
+
"meaning": "Each value, from the lowest at the bottom to the highest at the top. The scale fits the values, so it does not start at zero: read the shape of the trend, not the size of a change."
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"channel": "No axes or labels",
|
|
2770
|
+
"meaning": "A sparkline shows the trend only; read the exact values from the fallback table.",
|
|
2771
|
+
"decoration": true
|
|
2772
|
+
}
|
|
2773
|
+
],
|
|
2223
2774
|
"implements": "sparkline",
|
|
2224
2775
|
"category": "data-visual",
|
|
2225
2776
|
"platforms": [
|
|
@@ -2227,7 +2778,7 @@ var CATALOG = {
|
|
|
2227
2778
|
],
|
|
2228
2779
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
2229
2780
|
"export": "Sparkline",
|
|
2230
|
-
"contentHash": "
|
|
2781
|
+
"contentHash": "5bc3a84535b0e723611a251d6f0cf896d8750681787ccea89f952c8d89eddf2b",
|
|
2231
2782
|
"path": "components/sparkline",
|
|
2232
2783
|
"alternatives": []
|
|
2233
2784
|
},
|
|
@@ -2502,7 +3053,7 @@ var CATALOG = {
|
|
|
2502
3053
|
"source": {
|
|
2503
3054
|
"provider": "flair",
|
|
2504
3055
|
"itemId": "toggle-switch",
|
|
2505
|
-
"version": "0.
|
|
3056
|
+
"version": "0.146.0",
|
|
2506
3057
|
"contentHash": "f543742e308ca500"
|
|
2507
3058
|
},
|
|
2508
3059
|
"runtime": "engine",
|
|
@@ -2513,7 +3064,7 @@ var CATALOG = {
|
|
|
2513
3064
|
],
|
|
2514
3065
|
"entry": "@surreal-ui/catalog/react/flair",
|
|
2515
3066
|
"export": "FlairToggleSwitch",
|
|
2516
|
-
"contentHash": "
|
|
3067
|
+
"contentHash": "1bfbe28bd1afe21ccb89a9aaa2dcd673b0e5b6913f80cee81cdbecaba478f883",
|
|
2517
3068
|
"path": "components/switch/alternatives/flair-toggle-switch"
|
|
2518
3069
|
}
|
|
2519
3070
|
]
|
|
@@ -2635,7 +3186,7 @@ var CATALOG = {
|
|
|
2635
3186
|
],
|
|
2636
3187
|
"entry": "@surreal-ui/catalog/react",
|
|
2637
3188
|
"export": "Table",
|
|
2638
|
-
"contentHash": "
|
|
3189
|
+
"contentHash": "c61cc3cd29caf1d2ef7ac7926d61d88d8678337eb78bab0cad58db7482500a00",
|
|
2639
3190
|
"path": "components/table",
|
|
2640
3191
|
"alternatives": []
|
|
2641
3192
|
},
|
|
@@ -2851,10 +3402,28 @@ var CATALOG = {
|
|
|
2851
3402
|
"source": {
|
|
2852
3403
|
"provider": "editor",
|
|
2853
3404
|
"itemId": "timeline",
|
|
2854
|
-
"version": "0.
|
|
2855
|
-
"contentHash": "h1-
|
|
3405
|
+
"version": "0.355.0",
|
|
3406
|
+
"contentHash": "h1-02d3ad7f419952d2"
|
|
2856
3407
|
},
|
|
2857
3408
|
"runtime": "engine",
|
|
3409
|
+
"fallback": "table",
|
|
3410
|
+
"encodings": [
|
|
3411
|
+
{
|
|
3412
|
+
"channel": "Position along the axis",
|
|
3413
|
+
"field": "periods[].label",
|
|
3414
|
+
"meaning": "Each period, in the order given; the spacing is even, not to scale in time."
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
"channel": "Events under a period",
|
|
3418
|
+
"field": "periods[].events[]",
|
|
3419
|
+
"meaning": "What happened in that period, top to bottom in the order given."
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
"channel": "Period colour",
|
|
3423
|
+
"field": "periods[]",
|
|
3424
|
+
"meaning": "Groups each period with its events; the colours themselves mean nothing."
|
|
3425
|
+
}
|
|
3426
|
+
],
|
|
2858
3427
|
"implements": "timeline",
|
|
2859
3428
|
"category": "data-visual",
|
|
2860
3429
|
"platforms": [
|
|
@@ -2862,7 +3431,7 @@ var CATALOG = {
|
|
|
2862
3431
|
],
|
|
2863
3432
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
2864
3433
|
"export": "Timeline",
|
|
2865
|
-
"contentHash": "
|
|
3434
|
+
"contentHash": "cd8acc84a6db1e1c4fd7edc821e8db52590e1fe9a004437ec8b562c4d4316013",
|
|
2866
3435
|
"path": "components/timeline",
|
|
2867
3436
|
"alternatives": []
|
|
2868
3437
|
},
|
|
@@ -3031,10 +3600,33 @@ var CATALOG = {
|
|
|
3031
3600
|
"source": {
|
|
3032
3601
|
"provider": "editor",
|
|
3033
3602
|
"itemId": "weave",
|
|
3034
|
-
"version": "0.
|
|
3035
|
-
"contentHash": "h1-
|
|
3603
|
+
"version": "0.355.0",
|
|
3604
|
+
"contentHash": "h1-5e6051dbd7f18773"
|
|
3036
3605
|
},
|
|
3037
3606
|
"runtime": "engine",
|
|
3607
|
+
"fallback": "table",
|
|
3608
|
+
"encodings": [
|
|
3609
|
+
{
|
|
3610
|
+
"channel": "Items along the top",
|
|
3611
|
+
"field": "items[].label",
|
|
3612
|
+
"meaning": "Each item, in the order given."
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
"channel": "Tags along the bottom",
|
|
3616
|
+
"field": "items[].tags[]",
|
|
3617
|
+
"meaning": "Every tag, in the order it first appears."
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"channel": "Links",
|
|
3621
|
+
"field": "items[].tags[]",
|
|
3622
|
+
"meaning": "An item has a tag: one link for each tag it lists."
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
"channel": "Link curves and crossings",
|
|
3626
|
+
"meaning": "Where links curve and cross is layout only.",
|
|
3627
|
+
"decoration": true
|
|
3628
|
+
}
|
|
3629
|
+
],
|
|
3038
3630
|
"implements": "weave",
|
|
3039
3631
|
"category": "data-visual",
|
|
3040
3632
|
"platforms": [
|
|
@@ -3042,7 +3634,7 @@ var CATALOG = {
|
|
|
3042
3634
|
],
|
|
3043
3635
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
3044
3636
|
"export": "Weave",
|
|
3045
|
-
"contentHash": "
|
|
3637
|
+
"contentHash": "61b128b79d1dc497bd66ab0aa7b7109eeb99744ed0ab986df1967c825888631c",
|
|
3046
3638
|
"path": "components/weave",
|
|
3047
3639
|
"alternatives": []
|
|
3048
3640
|
}
|