@surreal-ui/catalog 0.9.1 → 0.10.1
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-G2FSYMIB.js → chunk-5E7QNEVK.js} +761 -4
- package/dist/components.css +5 -0
- package/dist/index.js +1 -1
- package/dist/lazy.js +1 -1
- package/dist/react/editor.d.ts +129 -1
- package/dist/react/editor.js +529 -31
- package/dist/sources/bar-chart/react.tsx +15 -13
- package/dist/sources/braid/react.tsx +174 -0
- package/dist/sources/donut-chart/react.tsx +65 -0
- package/dist/sources/line-chart/react.tsx +79 -0
- package/dist/sources/lineage/react.tsx +169 -0
- package/dist/sources/sparkline/react.tsx +12 -13
- package/dist/sources/weave/react.tsx +165 -0
- package/llms.txt +5 -0
- package/package.json +3 -3
- package/skills/surreal-use/references/components.md +5 -0
|
@@ -237,7 +237,7 @@ var CATALOG = {
|
|
|
237
237
|
"source": {
|
|
238
238
|
"provider": "editor",
|
|
239
239
|
"itemId": "bar-chart",
|
|
240
|
-
"version": "0.
|
|
240
|
+
"version": "0.323.2",
|
|
241
241
|
"contentHash": "h1-bc3ada602d46f641"
|
|
242
242
|
},
|
|
243
243
|
"implements": "bar-chart",
|
|
@@ -248,10 +248,171 @@ var CATALOG = {
|
|
|
248
248
|
],
|
|
249
249
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
250
250
|
"export": "BarChart",
|
|
251
|
-
"contentHash": "
|
|
251
|
+
"contentHash": "774210bf0879b4a8e02df41fbe96af20d94df6f4383a15ff0363f4fea47d940b",
|
|
252
252
|
"path": "components/bar-chart",
|
|
253
253
|
"alternatives": []
|
|
254
254
|
},
|
|
255
|
+
{
|
|
256
|
+
"id": "braid",
|
|
257
|
+
"name": "Braid",
|
|
258
|
+
"description": "Strands twisted into one root, passing over and under, weighted by value and labelled at the open end; draws on along the braid, and focusing a strand lights it.",
|
|
259
|
+
"tags": [
|
|
260
|
+
"editor",
|
|
261
|
+
"data-visual"
|
|
262
|
+
],
|
|
263
|
+
"group": "data-visual",
|
|
264
|
+
"contract": {
|
|
265
|
+
"props": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"root": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"minLength": 1,
|
|
271
|
+
"maxLength": 80,
|
|
272
|
+
"description": "What the strands twist into, labelled at the braid's start."
|
|
273
|
+
},
|
|
274
|
+
"strands": {
|
|
275
|
+
"type": "array",
|
|
276
|
+
"minItems": 2,
|
|
277
|
+
"maxItems": 6,
|
|
278
|
+
"description": "The strands, each labelled at the braid's open end.",
|
|
279
|
+
"items": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"name": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"minLength": 1,
|
|
285
|
+
"maxLength": 80,
|
|
286
|
+
"description": "A short label."
|
|
287
|
+
},
|
|
288
|
+
"value": {
|
|
289
|
+
"type": "number",
|
|
290
|
+
"minimum": 0,
|
|
291
|
+
"description": "Optional weight: the heaviest strand is drawn thickest."
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"required": [
|
|
295
|
+
"name"
|
|
296
|
+
],
|
|
297
|
+
"additionalProperties": false
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"turns": {
|
|
301
|
+
"type": "number",
|
|
302
|
+
"minimum": 0.5,
|
|
303
|
+
"maximum": 6,
|
|
304
|
+
"description": "Whole twists along the braid (default 2.5); a short braid takes fewer, so each twist keeps its shape."
|
|
305
|
+
},
|
|
306
|
+
"title": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "Accessible name (default: built from the data)."
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"required": [
|
|
312
|
+
"strands"
|
|
313
|
+
],
|
|
314
|
+
"additionalProperties": false
|
|
315
|
+
},
|
|
316
|
+
"state": [
|
|
317
|
+
{
|
|
318
|
+
"name": "focus",
|
|
319
|
+
"schema": {
|
|
320
|
+
"type": [
|
|
321
|
+
"string",
|
|
322
|
+
"null"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"event": "focus",
|
|
326
|
+
"description": "The focused key, from interaction(data).order; its linked marks stay lit and the rest dim."
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"events": [
|
|
330
|
+
{
|
|
331
|
+
"name": "focus",
|
|
332
|
+
"payload": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"properties": {
|
|
335
|
+
"key": {
|
|
336
|
+
"type": [
|
|
337
|
+
"string",
|
|
338
|
+
"null"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"required": [
|
|
343
|
+
"key"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
"description": "The focused key changed (hover, focus or arrow keys); null when cleared."
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"a11y": {
|
|
350
|
+
"role": "img",
|
|
351
|
+
"keyboard": {
|
|
352
|
+
"ArrowRight": "focus the next key",
|
|
353
|
+
"ArrowDown": "focus the next key",
|
|
354
|
+
"ArrowLeft": "focus the previous key",
|
|
355
|
+
"ArrowUp": "focus the previous key",
|
|
356
|
+
"Home": "focus the first key",
|
|
357
|
+
"End": "focus the last key",
|
|
358
|
+
"Escape": "clear the focus"
|
|
359
|
+
},
|
|
360
|
+
"labelFrom": "content",
|
|
361
|
+
"reducedMotionAt": 1
|
|
362
|
+
},
|
|
363
|
+
"colorRoles": [
|
|
364
|
+
"surface",
|
|
365
|
+
"ink",
|
|
366
|
+
"accent"
|
|
367
|
+
],
|
|
368
|
+
"motion": true,
|
|
369
|
+
"sizing": {
|
|
370
|
+
"mode": "fill",
|
|
371
|
+
"minWidth": 280,
|
|
372
|
+
"minHeight": 120
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"examples": [
|
|
376
|
+
{
|
|
377
|
+
"name": "example",
|
|
378
|
+
"props": {
|
|
379
|
+
"root": "2026",
|
|
380
|
+
"strands": [
|
|
381
|
+
{
|
|
382
|
+
"name": "Product",
|
|
383
|
+
"value": 5
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "Design",
|
|
387
|
+
"value": 3
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "Research",
|
|
391
|
+
"value": 2
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"turns": 2.5
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"source": {
|
|
399
|
+
"provider": "editor",
|
|
400
|
+
"itemId": "braid",
|
|
401
|
+
"version": "0.323.2",
|
|
402
|
+
"contentHash": "h1-32ab36e8632bd353"
|
|
403
|
+
},
|
|
404
|
+
"implements": "braid",
|
|
405
|
+
"category": "data-visual",
|
|
406
|
+
"runtime": "code",
|
|
407
|
+
"platforms": [
|
|
408
|
+
"react"
|
|
409
|
+
],
|
|
410
|
+
"entry": "@surreal-ui/catalog/react/editor",
|
|
411
|
+
"export": "Braid",
|
|
412
|
+
"contentHash": "cbcd53b8efc8cfb43ceb65467b055b3fadade239d82469822ea3c4fa903a053e",
|
|
413
|
+
"path": "components/braid",
|
|
414
|
+
"alternatives": []
|
|
415
|
+
},
|
|
255
416
|
{
|
|
256
417
|
"id": "button",
|
|
257
418
|
"name": "Button",
|
|
@@ -619,6 +780,123 @@ var CATALOG = {
|
|
|
619
780
|
"path": "components/checkbox",
|
|
620
781
|
"alternatives": []
|
|
621
782
|
},
|
|
783
|
+
{
|
|
784
|
+
"id": "donut-chart",
|
|
785
|
+
"name": "Donut chart",
|
|
786
|
+
"description": "Parts of a whole as slices of a ring, one colour per slice, with a legend.",
|
|
787
|
+
"tags": [
|
|
788
|
+
"editor",
|
|
789
|
+
"data-visual"
|
|
790
|
+
],
|
|
791
|
+
"group": "data-visual",
|
|
792
|
+
"contract": {
|
|
793
|
+
"props": {
|
|
794
|
+
"type": "object",
|
|
795
|
+
"properties": {
|
|
796
|
+
"slices": {
|
|
797
|
+
"type": "array",
|
|
798
|
+
"minItems": 1,
|
|
799
|
+
"maxItems": 12,
|
|
800
|
+
"description": "Parts of the whole, largest first reads best.",
|
|
801
|
+
"items": {
|
|
802
|
+
"type": "object",
|
|
803
|
+
"properties": {
|
|
804
|
+
"label": {
|
|
805
|
+
"type": "string",
|
|
806
|
+
"description": "Slice label (legend)."
|
|
807
|
+
},
|
|
808
|
+
"value": {
|
|
809
|
+
"type": "number",
|
|
810
|
+
"minimum": 0,
|
|
811
|
+
"description": "Slice size, 0 or more."
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"required": [
|
|
815
|
+
"label",
|
|
816
|
+
"value"
|
|
817
|
+
],
|
|
818
|
+
"additionalProperties": false
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"title": {
|
|
822
|
+
"type": "string",
|
|
823
|
+
"description": "Title drawn above the chart and used as its accessible name."
|
|
824
|
+
},
|
|
825
|
+
"unit": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"description": 'Written after every value, e.g. "%".'
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"required": [
|
|
831
|
+
"slices"
|
|
832
|
+
],
|
|
833
|
+
"additionalProperties": false
|
|
834
|
+
},
|
|
835
|
+
"state": [],
|
|
836
|
+
"events": [],
|
|
837
|
+
"a11y": {
|
|
838
|
+
"role": "img",
|
|
839
|
+
"keyboard": {},
|
|
840
|
+
"labelFrom": "content"
|
|
841
|
+
},
|
|
842
|
+
"colorRoles": [
|
|
843
|
+
"surface",
|
|
844
|
+
"ink",
|
|
845
|
+
"accent"
|
|
846
|
+
],
|
|
847
|
+
"motion": false,
|
|
848
|
+
"sizing": {
|
|
849
|
+
"mode": "intrinsic",
|
|
850
|
+
"minWidth": 160,
|
|
851
|
+
"minHeight": 140,
|
|
852
|
+
"aspectRatio": 1.4
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"examples": [
|
|
856
|
+
{
|
|
857
|
+
"name": "example",
|
|
858
|
+
"props": {
|
|
859
|
+
"title": "Traffic by channel",
|
|
860
|
+
"unit": "%",
|
|
861
|
+
"slices": [
|
|
862
|
+
{
|
|
863
|
+
"label": "Search",
|
|
864
|
+
"value": 46
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"label": "Direct",
|
|
868
|
+
"value": 27
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"label": "Social",
|
|
872
|
+
"value": 17
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"label": "Email",
|
|
876
|
+
"value": 10
|
|
877
|
+
}
|
|
878
|
+
]
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"source": {
|
|
883
|
+
"provider": "editor",
|
|
884
|
+
"itemId": "donut-chart",
|
|
885
|
+
"version": "0.323.2",
|
|
886
|
+
"contentHash": "h1-0e889e53ac068f38"
|
|
887
|
+
},
|
|
888
|
+
"implements": "donut-chart",
|
|
889
|
+
"category": "data-visual",
|
|
890
|
+
"runtime": "code",
|
|
891
|
+
"platforms": [
|
|
892
|
+
"react"
|
|
893
|
+
],
|
|
894
|
+
"entry": "@surreal-ui/catalog/react/editor",
|
|
895
|
+
"export": "DonutChart",
|
|
896
|
+
"contentHash": "c5d9dbc35682659dd67e2205cfdeb0796124c4fada2014c2a74e6f428dfdba25",
|
|
897
|
+
"path": "components/donut-chart",
|
|
898
|
+
"alternatives": []
|
|
899
|
+
},
|
|
622
900
|
{
|
|
623
901
|
"id": "gauge",
|
|
624
902
|
"name": "Gauge",
|
|
@@ -945,6 +1223,305 @@ var CATALOG = {
|
|
|
945
1223
|
"path": "components/label",
|
|
946
1224
|
"alternatives": []
|
|
947
1225
|
},
|
|
1226
|
+
{
|
|
1227
|
+
"id": "line-chart",
|
|
1228
|
+
"name": "Line chart",
|
|
1229
|
+
"description": "Lines showing how values change across ordered categories (time), one colour per series, with a value axis and a legend for several series.",
|
|
1230
|
+
"tags": [
|
|
1231
|
+
"editor",
|
|
1232
|
+
"data-visual"
|
|
1233
|
+
],
|
|
1234
|
+
"group": "data-visual",
|
|
1235
|
+
"contract": {
|
|
1236
|
+
"props": {
|
|
1237
|
+
"type": "object",
|
|
1238
|
+
"properties": {
|
|
1239
|
+
"categories": {
|
|
1240
|
+
"type": "array",
|
|
1241
|
+
"items": {
|
|
1242
|
+
"type": "string"
|
|
1243
|
+
},
|
|
1244
|
+
"minItems": 2,
|
|
1245
|
+
"maxItems": 1e3,
|
|
1246
|
+
"description": "Labels along the x axis, in order."
|
|
1247
|
+
},
|
|
1248
|
+
"series": {
|
|
1249
|
+
"type": "array",
|
|
1250
|
+
"minItems": 1,
|
|
1251
|
+
"maxItems": 20,
|
|
1252
|
+
"description": "One line per series, one value per category.",
|
|
1253
|
+
"items": {
|
|
1254
|
+
"type": "object",
|
|
1255
|
+
"properties": {
|
|
1256
|
+
"name": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "Series name (legend)."
|
|
1259
|
+
},
|
|
1260
|
+
"values": {
|
|
1261
|
+
"type": "array",
|
|
1262
|
+
"items": {
|
|
1263
|
+
"type": "number",
|
|
1264
|
+
"description": "A finite number."
|
|
1265
|
+
},
|
|
1266
|
+
"description": "One value per category, in category order."
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
"required": [
|
|
1270
|
+
"name",
|
|
1271
|
+
"values"
|
|
1272
|
+
],
|
|
1273
|
+
"additionalProperties": false
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
"title": {
|
|
1277
|
+
"type": "string",
|
|
1278
|
+
"description": "Title drawn above the chart and used as its accessible name."
|
|
1279
|
+
},
|
|
1280
|
+
"unit": {
|
|
1281
|
+
"type": "string",
|
|
1282
|
+
"description": 'Written after every tick and value, e.g. "%" or " kWh".'
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
"required": [
|
|
1286
|
+
"categories",
|
|
1287
|
+
"series"
|
|
1288
|
+
],
|
|
1289
|
+
"additionalProperties": false
|
|
1290
|
+
},
|
|
1291
|
+
"state": [],
|
|
1292
|
+
"events": [],
|
|
1293
|
+
"a11y": {
|
|
1294
|
+
"role": "img",
|
|
1295
|
+
"keyboard": {},
|
|
1296
|
+
"labelFrom": "content"
|
|
1297
|
+
},
|
|
1298
|
+
"colorRoles": [
|
|
1299
|
+
"surface",
|
|
1300
|
+
"ink",
|
|
1301
|
+
"ink-muted",
|
|
1302
|
+
"border",
|
|
1303
|
+
"accent"
|
|
1304
|
+
],
|
|
1305
|
+
"motion": false,
|
|
1306
|
+
"sizing": {
|
|
1307
|
+
"mode": "fill",
|
|
1308
|
+
"minWidth": 200,
|
|
1309
|
+
"minHeight": 120
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
"examples": [
|
|
1313
|
+
{
|
|
1314
|
+
"name": "example",
|
|
1315
|
+
"props": {
|
|
1316
|
+
"title": "Active users",
|
|
1317
|
+
"unit": "k",
|
|
1318
|
+
"categories": [
|
|
1319
|
+
"Jan",
|
|
1320
|
+
"Feb",
|
|
1321
|
+
"Mar",
|
|
1322
|
+
"Apr",
|
|
1323
|
+
"May",
|
|
1324
|
+
"Jun"
|
|
1325
|
+
],
|
|
1326
|
+
"series": [
|
|
1327
|
+
{
|
|
1328
|
+
"name": "Web",
|
|
1329
|
+
"values": [
|
|
1330
|
+
42,
|
|
1331
|
+
45,
|
|
1332
|
+
51,
|
|
1333
|
+
49,
|
|
1334
|
+
58,
|
|
1335
|
+
63
|
|
1336
|
+
]
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "Mobile",
|
|
1340
|
+
"values": [
|
|
1341
|
+
30,
|
|
1342
|
+
34,
|
|
1343
|
+
33,
|
|
1344
|
+
41,
|
|
1345
|
+
46,
|
|
1346
|
+
52
|
|
1347
|
+
]
|
|
1348
|
+
}
|
|
1349
|
+
]
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
],
|
|
1353
|
+
"source": {
|
|
1354
|
+
"provider": "editor",
|
|
1355
|
+
"itemId": "line-chart",
|
|
1356
|
+
"version": "0.323.2",
|
|
1357
|
+
"contentHash": "h1-996e92fc381f9c29"
|
|
1358
|
+
},
|
|
1359
|
+
"implements": "line-chart",
|
|
1360
|
+
"category": "data-visual",
|
|
1361
|
+
"runtime": "code",
|
|
1362
|
+
"platforms": [
|
|
1363
|
+
"react"
|
|
1364
|
+
],
|
|
1365
|
+
"entry": "@surreal-ui/catalog/react/editor",
|
|
1366
|
+
"export": "LineChart",
|
|
1367
|
+
"contentHash": "ed1dcc0312378792b0b599dc4e64777e3c7ec5a7b5ab0041e6cd527f3af19ec0",
|
|
1368
|
+
"path": "components/line-chart",
|
|
1369
|
+
"alternatives": []
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"id": "lineage",
|
|
1373
|
+
"name": "Lineage",
|
|
1374
|
+
"description": "One root fanned out to a row of items with rounded connectors that never cross, labels sized to fit their columns; draws on from the root, and focusing an item lights its branch.",
|
|
1375
|
+
"tags": [
|
|
1376
|
+
"editor",
|
|
1377
|
+
"data-visual"
|
|
1378
|
+
],
|
|
1379
|
+
"group": "data-visual",
|
|
1380
|
+
"contract": {
|
|
1381
|
+
"props": {
|
|
1382
|
+
"type": "object",
|
|
1383
|
+
"properties": {
|
|
1384
|
+
"root": {
|
|
1385
|
+
"type": "string",
|
|
1386
|
+
"minLength": 1,
|
|
1387
|
+
"maxLength": 80,
|
|
1388
|
+
"description": "The root everything descends from, e.g. a team or a product."
|
|
1389
|
+
},
|
|
1390
|
+
"items": {
|
|
1391
|
+
"type": "array",
|
|
1392
|
+
"minItems": 1,
|
|
1393
|
+
"maxItems": 24,
|
|
1394
|
+
"description": "The row it fans out to, in order.",
|
|
1395
|
+
"items": {
|
|
1396
|
+
"type": "object",
|
|
1397
|
+
"properties": {
|
|
1398
|
+
"label": {
|
|
1399
|
+
"type": "string",
|
|
1400
|
+
"minLength": 1,
|
|
1401
|
+
"maxLength": 80,
|
|
1402
|
+
"description": "A short label."
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"required": [
|
|
1406
|
+
"label"
|
|
1407
|
+
],
|
|
1408
|
+
"additionalProperties": false
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
"title": {
|
|
1412
|
+
"type": "string",
|
|
1413
|
+
"description": "Accessible name (default: built from the data)."
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
"required": [
|
|
1417
|
+
"root",
|
|
1418
|
+
"items"
|
|
1419
|
+
],
|
|
1420
|
+
"additionalProperties": false
|
|
1421
|
+
},
|
|
1422
|
+
"state": [
|
|
1423
|
+
{
|
|
1424
|
+
"name": "focus",
|
|
1425
|
+
"schema": {
|
|
1426
|
+
"type": [
|
|
1427
|
+
"string",
|
|
1428
|
+
"null"
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
"event": "focus",
|
|
1432
|
+
"description": "The focused key, from interaction(data).order; its linked marks stay lit and the rest dim."
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"events": [
|
|
1436
|
+
{
|
|
1437
|
+
"name": "focus",
|
|
1438
|
+
"payload": {
|
|
1439
|
+
"type": "object",
|
|
1440
|
+
"properties": {
|
|
1441
|
+
"key": {
|
|
1442
|
+
"type": [
|
|
1443
|
+
"string",
|
|
1444
|
+
"null"
|
|
1445
|
+
]
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"required": [
|
|
1449
|
+
"key"
|
|
1450
|
+
]
|
|
1451
|
+
},
|
|
1452
|
+
"description": "The focused key changed (hover, focus or arrow keys); null when cleared."
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
"a11y": {
|
|
1456
|
+
"role": "img",
|
|
1457
|
+
"keyboard": {
|
|
1458
|
+
"ArrowRight": "focus the next key",
|
|
1459
|
+
"ArrowDown": "focus the next key",
|
|
1460
|
+
"ArrowLeft": "focus the previous key",
|
|
1461
|
+
"ArrowUp": "focus the previous key",
|
|
1462
|
+
"Home": "focus the first key",
|
|
1463
|
+
"End": "focus the last key",
|
|
1464
|
+
"Escape": "clear the focus"
|
|
1465
|
+
},
|
|
1466
|
+
"labelFrom": "content",
|
|
1467
|
+
"reducedMotionAt": 1
|
|
1468
|
+
},
|
|
1469
|
+
"colorRoles": [
|
|
1470
|
+
"surface",
|
|
1471
|
+
"ink",
|
|
1472
|
+
"ink-muted",
|
|
1473
|
+
"accent"
|
|
1474
|
+
],
|
|
1475
|
+
"motion": true,
|
|
1476
|
+
"sizing": {
|
|
1477
|
+
"mode": "fill",
|
|
1478
|
+
"minWidth": 240,
|
|
1479
|
+
"minHeight": 160
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
"examples": [
|
|
1483
|
+
{
|
|
1484
|
+
"name": "example",
|
|
1485
|
+
"props": {
|
|
1486
|
+
"root": "Platform",
|
|
1487
|
+
"items": [
|
|
1488
|
+
{
|
|
1489
|
+
"label": "Research"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"label": "Design"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"label": "Engineering"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"label": "Operations"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"label": "Customer success"
|
|
1502
|
+
}
|
|
1503
|
+
]
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"source": {
|
|
1508
|
+
"provider": "editor",
|
|
1509
|
+
"itemId": "lineage",
|
|
1510
|
+
"version": "0.323.2",
|
|
1511
|
+
"contentHash": "h1-80fbdcdee156c4aa"
|
|
1512
|
+
},
|
|
1513
|
+
"implements": "lineage",
|
|
1514
|
+
"category": "data-visual",
|
|
1515
|
+
"runtime": "code",
|
|
1516
|
+
"platforms": [
|
|
1517
|
+
"react"
|
|
1518
|
+
],
|
|
1519
|
+
"entry": "@surreal-ui/catalog/react/editor",
|
|
1520
|
+
"export": "Lineage",
|
|
1521
|
+
"contentHash": "1075d420e8c4648e161d005193fe364fdda7e6cc1eae093bb2363e29c066e7f2",
|
|
1522
|
+
"path": "components/lineage",
|
|
1523
|
+
"alternatives": []
|
|
1524
|
+
},
|
|
948
1525
|
{
|
|
949
1526
|
"id": "progress",
|
|
950
1527
|
"name": "Progress",
|
|
@@ -1335,7 +1912,7 @@ var CATALOG = {
|
|
|
1335
1912
|
"source": {
|
|
1336
1913
|
"provider": "editor",
|
|
1337
1914
|
"itemId": "sparkline",
|
|
1338
|
-
"version": "0.
|
|
1915
|
+
"version": "0.323.2",
|
|
1339
1916
|
"contentHash": "h1-30ef47f4426f81fe"
|
|
1340
1917
|
},
|
|
1341
1918
|
"implements": "sparkline",
|
|
@@ -1346,7 +1923,7 @@ var CATALOG = {
|
|
|
1346
1923
|
],
|
|
1347
1924
|
"entry": "@surreal-ui/catalog/react/editor",
|
|
1348
1925
|
"export": "Sparkline",
|
|
1349
|
-
"contentHash": "
|
|
1926
|
+
"contentHash": "a426bbedb624253a3df8fe096c2e9d61fc19e6b459328ce827e6d74cbe93e250",
|
|
1350
1927
|
"path": "components/sparkline",
|
|
1351
1928
|
"alternatives": []
|
|
1352
1929
|
},
|
|
@@ -1737,6 +2314,186 @@ var CATALOG = {
|
|
|
1737
2314
|
"contentHash": "2676b77a820fef950c16a619ab63169a9cfb8055c392904a400e0acc49b7933a",
|
|
1738
2315
|
"path": "components/textarea",
|
|
1739
2316
|
"alternatives": []
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"id": "weave",
|
|
2320
|
+
"name": "Weave",
|
|
2321
|
+
"description": "Items along the top joined to the tags they share along the bottom, many to many; focusing an item lights its tags, and focusing a tag lights its items.",
|
|
2322
|
+
"tags": [
|
|
2323
|
+
"editor",
|
|
2324
|
+
"data-visual"
|
|
2325
|
+
],
|
|
2326
|
+
"group": "data-visual",
|
|
2327
|
+
"contract": {
|
|
2328
|
+
"props": {
|
|
2329
|
+
"type": "object",
|
|
2330
|
+
"properties": {
|
|
2331
|
+
"items": {
|
|
2332
|
+
"type": "array",
|
|
2333
|
+
"minItems": 1,
|
|
2334
|
+
"maxItems": 24,
|
|
2335
|
+
"description": "Items along the top, each with the tags it has; tags along the bottom in order of first appearance (at most 24).",
|
|
2336
|
+
"items": {
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"properties": {
|
|
2339
|
+
"label": {
|
|
2340
|
+
"type": "string",
|
|
2341
|
+
"minLength": 1,
|
|
2342
|
+
"maxLength": 80,
|
|
2343
|
+
"description": "A short label."
|
|
2344
|
+
},
|
|
2345
|
+
"tags": {
|
|
2346
|
+
"type": "array",
|
|
2347
|
+
"items": {
|
|
2348
|
+
"type": "string",
|
|
2349
|
+
"minLength": 1,
|
|
2350
|
+
"maxLength": 80,
|
|
2351
|
+
"description": "A short label."
|
|
2352
|
+
},
|
|
2353
|
+
"maxItems": 24,
|
|
2354
|
+
"description": "The tags this item has."
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
"required": [
|
|
2358
|
+
"label",
|
|
2359
|
+
"tags"
|
|
2360
|
+
],
|
|
2361
|
+
"additionalProperties": false
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
"title": {
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"description": "Accessible name (default: built from the data)."
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
"required": [
|
|
2370
|
+
"items"
|
|
2371
|
+
],
|
|
2372
|
+
"additionalProperties": false
|
|
2373
|
+
},
|
|
2374
|
+
"state": [
|
|
2375
|
+
{
|
|
2376
|
+
"name": "focus",
|
|
2377
|
+
"schema": {
|
|
2378
|
+
"type": [
|
|
2379
|
+
"string",
|
|
2380
|
+
"null"
|
|
2381
|
+
]
|
|
2382
|
+
},
|
|
2383
|
+
"event": "focus",
|
|
2384
|
+
"description": "The focused key, from interaction(data).order; its linked marks stay lit and the rest dim."
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
"events": [
|
|
2388
|
+
{
|
|
2389
|
+
"name": "focus",
|
|
2390
|
+
"payload": {
|
|
2391
|
+
"type": "object",
|
|
2392
|
+
"properties": {
|
|
2393
|
+
"key": {
|
|
2394
|
+
"type": [
|
|
2395
|
+
"string",
|
|
2396
|
+
"null"
|
|
2397
|
+
]
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
"required": [
|
|
2401
|
+
"key"
|
|
2402
|
+
]
|
|
2403
|
+
},
|
|
2404
|
+
"description": "The focused key changed (hover, focus or arrow keys); null when cleared."
|
|
2405
|
+
}
|
|
2406
|
+
],
|
|
2407
|
+
"a11y": {
|
|
2408
|
+
"role": "img",
|
|
2409
|
+
"keyboard": {
|
|
2410
|
+
"ArrowRight": "focus the next key",
|
|
2411
|
+
"ArrowDown": "focus the next key",
|
|
2412
|
+
"ArrowLeft": "focus the previous key",
|
|
2413
|
+
"ArrowUp": "focus the previous key",
|
|
2414
|
+
"Home": "focus the first key",
|
|
2415
|
+
"End": "focus the last key",
|
|
2416
|
+
"Escape": "clear the focus"
|
|
2417
|
+
},
|
|
2418
|
+
"labelFrom": "content",
|
|
2419
|
+
"reducedMotionAt": 1
|
|
2420
|
+
},
|
|
2421
|
+
"colorRoles": [
|
|
2422
|
+
"surface",
|
|
2423
|
+
"surface-raised",
|
|
2424
|
+
"ink",
|
|
2425
|
+
"ink-muted",
|
|
2426
|
+
"border",
|
|
2427
|
+
"accent"
|
|
2428
|
+
],
|
|
2429
|
+
"motion": true,
|
|
2430
|
+
"sizing": {
|
|
2431
|
+
"mode": "fill",
|
|
2432
|
+
"minWidth": 280,
|
|
2433
|
+
"minHeight": 180
|
|
2434
|
+
}
|
|
2435
|
+
},
|
|
2436
|
+
"examples": [
|
|
2437
|
+
{
|
|
2438
|
+
"name": "example",
|
|
2439
|
+
"props": {
|
|
2440
|
+
"items": [
|
|
2441
|
+
{
|
|
2442
|
+
"label": "Atlas",
|
|
2443
|
+
"tags": [
|
|
2444
|
+
"Design",
|
|
2445
|
+
"Research"
|
|
2446
|
+
]
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
"label": "Beacon",
|
|
2450
|
+
"tags": [
|
|
2451
|
+
"Data",
|
|
2452
|
+
"Platform"
|
|
2453
|
+
]
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"label": "Cinder",
|
|
2457
|
+
"tags": [
|
|
2458
|
+
"Design",
|
|
2459
|
+
"Data"
|
|
2460
|
+
]
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"label": "Delta",
|
|
2464
|
+
"tags": [
|
|
2465
|
+
"Platform"
|
|
2466
|
+
]
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"label": "Ember",
|
|
2470
|
+
"tags": [
|
|
2471
|
+
"Research",
|
|
2472
|
+
"Data",
|
|
2473
|
+
"Design"
|
|
2474
|
+
]
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
],
|
|
2480
|
+
"source": {
|
|
2481
|
+
"provider": "editor",
|
|
2482
|
+
"itemId": "weave",
|
|
2483
|
+
"version": "0.323.2",
|
|
2484
|
+
"contentHash": "h1-6a819cc804a71672"
|
|
2485
|
+
},
|
|
2486
|
+
"implements": "weave",
|
|
2487
|
+
"category": "data-visual",
|
|
2488
|
+
"runtime": "code",
|
|
2489
|
+
"platforms": [
|
|
2490
|
+
"react"
|
|
2491
|
+
],
|
|
2492
|
+
"entry": "@surreal-ui/catalog/react/editor",
|
|
2493
|
+
"export": "Weave",
|
|
2494
|
+
"contentHash": "6f0d0248c9c27f3c7a1b3e5c92dd75252d8aa151da297ce4bce715e12c95590d",
|
|
2495
|
+
"path": "components/weave",
|
|
2496
|
+
"alternatives": []
|
|
1740
2497
|
}
|
|
1741
2498
|
],
|
|
1742
2499
|
"aesthetics": [
|