@nordhealth/components 1.0.0-alpha.44 → 1.0.0-alpha.45

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.
@@ -591,6 +591,107 @@
591
591
  }
592
592
  ]
593
593
  },
594
+ {
595
+ "kind": "javascript-module",
596
+ "path": "src/card/Card.ts",
597
+ "declarations": [
598
+ {
599
+ "kind": "class",
600
+ "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
601
+ "name": "Card",
602
+ "slots": [
603
+ {
604
+ "description": "The card content.",
605
+ "name": ""
606
+ },
607
+ {
608
+ "description": "Optional slot that holds a header for the card.",
609
+ "name": "header"
610
+ },
611
+ {
612
+ "description": "Optional slot that holds footer content for the card.",
613
+ "name": "footer"
614
+ }
615
+ ],
616
+ "members": [
617
+ {
618
+ "kind": "field",
619
+ "name": "slots",
620
+ "privacy": "private",
621
+ "default": "new SlotController(this)"
622
+ },
623
+ {
624
+ "kind": "field",
625
+ "name": "padding",
626
+ "type": {
627
+ "text": "\"m\" | \"l\" | \"none\""
628
+ },
629
+ "default": "\"m\"",
630
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
631
+ "attribute": "padding",
632
+ "reflects": true
633
+ },
634
+ {
635
+ "kind": "field",
636
+ "name": "_warningLogged",
637
+ "type": {
638
+ "text": "boolean"
639
+ },
640
+ "privacy": "private",
641
+ "static": true,
642
+ "default": "false",
643
+ "inheritedFrom": {
644
+ "name": "DraftComponentMixin",
645
+ "module": "src/common/mixins/DraftComponentMixin.ts"
646
+ }
647
+ }
648
+ ],
649
+ "attributes": [
650
+ {
651
+ "name": "padding",
652
+ "type": {
653
+ "text": "\"m\" | \"l\" | \"none\""
654
+ },
655
+ "default": "\"m\"",
656
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
657
+ "fieldName": "padding"
658
+ }
659
+ ],
660
+ "mixins": [
661
+ {
662
+ "name": "DraftComponentMixin",
663
+ "module": "/src/common/mixins/DraftComponentMixin.js"
664
+ }
665
+ ],
666
+ "superclass": {
667
+ "name": "LitElement",
668
+ "package": "lit"
669
+ },
670
+ "status": "draft",
671
+ "category": "structure",
672
+ "tagName": "nord-card",
673
+ "customElement": true
674
+ }
675
+ ],
676
+ "exports": [
677
+ {
678
+ "kind": "js",
679
+ "name": "default",
680
+ "declaration": {
681
+ "name": "Card",
682
+ "module": "src/card/Card.ts"
683
+ }
684
+ },
685
+ {
686
+ "kind": "custom-element-definition",
687
+ "name": "nord-card",
688
+ "declaration": {
689
+ "name": "Card",
690
+ "module": "src/card/Card.ts"
691
+ }
692
+ }
693
+ ]
694
+ },
594
695
  {
595
696
  "kind": "javascript-module",
596
697
  "path": "src/calendar/Calendar.ts",
@@ -1067,737 +1168,81 @@
1067
1168
  },
1068
1169
  {
1069
1170
  "kind": "javascript-module",
1070
- "path": "src/command-menu/CommandMenu.ts",
1171
+ "path": "src/common/collection.ts",
1071
1172
  "declarations": [
1072
1173
  {
1073
- "kind": "class",
1074
- "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
1075
- "name": "CommandMenu",
1076
- "slots": [
1077
- {
1078
- "description": "Used to replace the default footer contents.",
1079
- "name": "footer"
1080
- }
1081
- ],
1082
- "members": [
1083
- {
1084
- "kind": "field",
1085
- "name": "inputRef",
1086
- "privacy": "private"
1087
- },
1088
- {
1089
- "kind": "field",
1090
- "name": "listRef",
1091
- "privacy": "private"
1092
- },
1093
- {
1094
- "kind": "field",
1095
- "name": "previousFocus",
1096
- "type": {
1097
- "text": "HTMLElement | undefined"
1098
- },
1099
- "privacy": "private"
1100
- },
1101
- {
1102
- "kind": "field",
1103
- "name": "dismissController",
1104
- "privacy": "private",
1105
- "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
1106
- },
1107
- {
1108
- "kind": "field",
1109
- "name": "keyboardController",
1110
- "privacy": "private",
1111
- "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
1112
- },
1113
- {
1114
- "kind": "field",
1115
- "name": "open",
1116
- "type": {
1117
- "text": "boolean"
1118
- },
1119
- "default": "false",
1120
- "description": "Show or hide the command menu.",
1121
- "attribute": "open"
1122
- },
1174
+ "kind": "function",
1175
+ "name": "groupBy",
1176
+ "parameters": [
1123
1177
  {
1124
- "kind": "field",
1125
- "name": "placeholder",
1178
+ "name": "array",
1126
1179
  "type": {
1127
- "text": "string"
1180
+ "text": "Array<TObject>"
1128
1181
  },
1129
- "default": "\"Type a command or search...\"",
1130
- "description": "Hint text to display in the search field.",
1131
- "attribute": "placeholder"
1182
+ "description": "the collection of objects to group"
1132
1183
  },
1133
1184
  {
1134
- "kind": "field",
1135
- "name": "commands",
1185
+ "name": "key",
1136
1186
  "type": {
1137
- "text": "Array<ICommandMenuAction>"
1187
+ "text": "TKey"
1138
1188
  },
1139
- "default": "[]",
1140
- "description": "Array of commands to be included in the menu."
1141
- },
1189
+ "description": "the property to group by"
1190
+ }
1191
+ ],
1192
+ "description": "Groups an array objects by property value",
1193
+ "return": {
1194
+ "type": {
1195
+ "text": ""
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ "kind": "function",
1201
+ "name": "chunk",
1202
+ "return": {
1203
+ "type": {
1204
+ "text": ""
1205
+ }
1206
+ },
1207
+ "parameters": [
1142
1208
  {
1143
- "kind": "field",
1144
- "name": "parent",
1209
+ "name": "array",
1145
1210
  "type": {
1146
- "text": "string | undefined"
1147
- },
1148
- "privacy": "private"
1211
+ "text": "T[]"
1212
+ }
1149
1213
  },
1150
1214
  {
1151
- "kind": "field",
1152
- "name": "search",
1215
+ "name": "chunkSize",
1153
1216
  "type": {
1154
- "text": "string"
1155
- },
1156
- "privacy": "private",
1157
- "default": "\"\""
1158
- },
1217
+ "text": "number"
1218
+ }
1219
+ }
1220
+ ],
1221
+ "description": "Split an array into chunks of the given size"
1222
+ },
1223
+ {
1224
+ "kind": "function",
1225
+ "name": "mapWithOffset",
1226
+ "return": {
1227
+ "type": {
1228
+ "text": ""
1229
+ }
1230
+ },
1231
+ "parameters": [
1159
1232
  {
1160
- "kind": "field",
1161
- "name": "bump",
1233
+ "name": "array",
1162
1234
  "type": {
1163
- "text": "boolean"
1164
- },
1165
- "privacy": "private",
1166
- "default": "true"
1235
+ "text": "T[]"
1236
+ }
1167
1237
  },
1168
1238
  {
1169
- "kind": "field",
1170
- "name": "selectedIndex",
1239
+ "name": "startingOffset",
1171
1240
  "type": {
1172
1241
  "text": "number"
1173
- },
1174
- "privacy": "private",
1175
- "default": "0"
1176
- },
1177
- {
1178
- "kind": "field",
1179
- "name": "filteredCommands",
1180
- "type": {
1181
- "text": "Array<ICommandMenuAction>"
1182
- },
1183
- "privacy": "private",
1184
- "default": "[]"
1242
+ }
1185
1243
  },
1186
1244
  {
1187
- "kind": "field",
1188
- "name": "selected",
1189
- "type": {
1190
- "text": "ICommandMenuAction"
1191
- },
1192
- "privacy": "private"
1193
- },
1194
- {
1195
- "kind": "method",
1196
- "name": "show",
1197
- "parameters": [
1198
- {
1199
- "name": "options",
1200
- "default": "{}",
1201
- "type": {
1202
- "text": "{ parent?: string }"
1203
- },
1204
- "description": "allows you to open the menu filtered to a specific parent command."
1205
- }
1206
- ],
1207
- "description": "Show the command menu programmatically."
1208
- },
1209
- {
1210
- "kind": "method",
1211
- "name": "close",
1212
- "description": "Close the command menu programmatically."
1213
- },
1214
- {
1215
- "kind": "method",
1216
- "name": "toggleOpen",
1217
- "description": "Toggle the open state programmatically."
1218
- },
1219
- {
1220
- "kind": "method",
1221
- "name": "focus",
1222
- "description": "Focus the command menu's input."
1223
- },
1224
- {
1225
- "kind": "method",
1226
- "name": "renderNoResults",
1227
- "privacy": "private"
1228
- },
1229
- {
1230
- "kind": "method",
1231
- "name": "renderSection",
1232
- "privacy": "private",
1233
- "parameters": [
1234
- {
1235
- "name": "section",
1236
- "type": {
1237
- "text": "string | undefined"
1238
- }
1239
- },
1240
- {
1241
- "name": "commands",
1242
- "type": {
1243
- "text": "ICommandMenuAction[]"
1244
- }
1245
- }
1246
- ]
1247
- },
1248
- {
1249
- "kind": "method",
1250
- "name": "handleAnimationEnd",
1251
- "privacy": "private"
1252
- },
1253
- {
1254
- "kind": "method",
1255
- "name": "handleBlur",
1256
- "privacy": "private"
1257
- },
1258
- {
1259
- "kind": "method",
1260
- "name": "handleInput",
1261
- "privacy": "private",
1262
- "parameters": [
1263
- {
1264
- "name": "event",
1265
- "type": {
1266
- "text": "KeyboardEvent"
1267
- }
1268
- }
1269
- ]
1270
- },
1271
- {
1272
- "kind": "method",
1273
- "name": "select",
1274
- "privacy": "private",
1275
- "parameters": [
1276
- {
1277
- "name": "command",
1278
- "default": "this.selected",
1279
- "type": {
1280
- "text": "ICommandMenuAction"
1281
- }
1282
- }
1283
- ]
1284
- },
1285
- {
1286
- "kind": "method",
1287
- "name": "start",
1288
- "privacy": "private"
1289
- },
1290
- {
1291
- "kind": "method",
1292
- "name": "end",
1293
- "privacy": "private"
1294
- },
1295
- {
1296
- "kind": "method",
1297
- "name": "next",
1298
- "privacy": "private"
1299
- },
1300
- {
1301
- "kind": "method",
1302
- "name": "previous",
1303
- "privacy": "private"
1304
- },
1305
- {
1306
- "kind": "method",
1307
- "name": "goBack",
1308
- "privacy": "private"
1309
- },
1310
- {
1311
- "kind": "method",
1312
- "name": "setParent",
1313
- "privacy": "private",
1314
- "parameters": [
1315
- {
1316
- "name": "parent",
1317
- "optional": true,
1318
- "type": {
1319
- "text": "string"
1320
- }
1321
- }
1322
- ]
1323
- },
1324
- {
1325
- "kind": "method",
1326
- "name": "setSearch",
1327
- "privacy": "private",
1328
- "parameters": [
1329
- {
1330
- "name": "str",
1331
- "type": {
1332
- "text": "string"
1333
- }
1334
- }
1335
- ]
1336
- },
1337
- {
1338
- "kind": "method",
1339
- "name": "filterCommands",
1340
- "privacy": "private"
1341
- },
1342
- {
1343
- "kind": "field",
1344
- "name": "_warningLogged",
1345
- "type": {
1346
- "text": "boolean"
1347
- },
1348
- "privacy": "private",
1349
- "static": true,
1350
- "default": "false",
1351
- "inheritedFrom": {
1352
- "name": "DraftComponentMixin",
1353
- "module": "src/common/mixins/DraftComponentMixin.ts"
1354
- }
1355
- }
1356
- ],
1357
- "events": [
1358
- {
1359
- "name": "open",
1360
- "type": {
1361
- "text": "NordEvent"
1362
- },
1363
- "description": "The command menu was opened foo."
1364
- },
1365
- {
1366
- "name": "close",
1367
- "type": {
1368
- "text": "NordEvent"
1369
- },
1370
- "description": "The command menu was closed bar."
1371
- },
1372
- {
1373
- "type": {
1374
- "text": "SelectEvent"
1375
- },
1376
- "description": "User selected a command from the menu.",
1377
- "name": "n-select"
1378
- }
1379
- ],
1380
- "attributes": [
1381
- {
1382
- "name": "open",
1383
- "type": {
1384
- "text": "boolean"
1385
- },
1386
- "default": "false",
1387
- "description": "Show or hide the command menu.",
1388
- "fieldName": "open"
1389
- },
1390
- {
1391
- "name": "placeholder",
1392
- "type": {
1393
- "text": "string"
1394
- },
1395
- "default": "\"Type a command or search...\"",
1396
- "description": "Hint text to display in the search field.",
1397
- "fieldName": "placeholder"
1398
- }
1399
- ],
1400
- "mixins": [
1401
- {
1402
- "name": "DraftComponentMixin",
1403
- "module": "/src/common/mixins/DraftComponentMixin.js"
1404
- }
1405
- ],
1406
- "superclass": {
1407
- "name": "LitElement",
1408
- "package": "lit"
1409
- },
1410
- "status": "draft",
1411
- "category": "action",
1412
- "tagName": "nord-command-menu",
1413
- "customElement": true
1414
- }
1415
- ],
1416
- "exports": [
1417
- {
1418
- "kind": "js",
1419
- "name": "default",
1420
- "declaration": {
1421
- "name": "CommandMenu",
1422
- "module": "src/command-menu/CommandMenu.ts"
1423
- }
1424
- },
1425
- {
1426
- "kind": "custom-element-definition",
1427
- "name": "nord-command-menu",
1428
- "declaration": {
1429
- "name": "CommandMenu",
1430
- "module": "src/command-menu/CommandMenu.ts"
1431
- }
1432
- }
1433
- ]
1434
- },
1435
- {
1436
- "kind": "javascript-module",
1437
- "path": "src/command-menu/CommandMenuAction.ts",
1438
- "declarations": [
1439
- {
1440
- "kind": "class",
1441
- "description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
1442
- "name": "CommandMenuAction",
1443
- "members": [
1444
- {
1445
- "kind": "field",
1446
- "name": "command",
1447
- "type": {
1448
- "text": "ICommandMenuAction"
1449
- },
1450
- "attribute": "command"
1451
- },
1452
- {
1453
- "kind": "field",
1454
- "name": "selected",
1455
- "type": {
1456
- "text": "boolean"
1457
- },
1458
- "default": "false",
1459
- "attribute": "selected"
1460
- },
1461
- {
1462
- "kind": "method",
1463
- "name": "ensureInView",
1464
- "privacy": "private",
1465
- "description": "Scroll to show element"
1466
- },
1467
- {
1468
- "kind": "method",
1469
- "name": "renderShortcut",
1470
- "privacy": "private"
1471
- }
1472
- ],
1473
- "attributes": [
1474
- {
1475
- "name": "command",
1476
- "type": {
1477
- "text": "ICommandMenuAction"
1478
- },
1479
- "fieldName": "command"
1480
- },
1481
- {
1482
- "name": "selected",
1483
- "type": {
1484
- "text": "boolean"
1485
- },
1486
- "default": "false",
1487
- "fieldName": "selected"
1488
- }
1489
- ],
1490
- "superclass": {
1491
- "name": "LitElement",
1492
- "package": "lit"
1493
- },
1494
- "status": "internal",
1495
- "category": null,
1496
- "tagName": "nord-command-menu-action",
1497
- "customElement": true
1498
- }
1499
- ],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "default",
1504
- "declaration": {
1505
- "name": "CommandMenuAction",
1506
- "module": "src/command-menu/CommandMenuAction.ts"
1507
- }
1508
- },
1509
- {
1510
- "kind": "custom-element-definition",
1511
- "name": "nord-command-menu-action",
1512
- "declaration": {
1513
- "name": "CommandMenuAction",
1514
- "module": "src/command-menu/CommandMenuAction.ts"
1515
- }
1516
- }
1517
- ]
1518
- },
1519
- {
1520
- "kind": "javascript-module",
1521
- "path": "src/command-menu/ICommandMenuAction.ts",
1522
- "declarations": [],
1523
- "exports": []
1524
- },
1525
- {
1526
- "kind": "javascript-module",
1527
- "path": "src/command-menu/KeyboardController.ts",
1528
- "declarations": [
1529
- {
1530
- "kind": "class",
1531
- "description": "",
1532
- "name": "KeyboardController",
1533
- "members": [
1534
- {
1535
- "kind": "field",
1536
- "name": "host",
1537
- "type": {
1538
- "text": "CommandMenu"
1539
- },
1540
- "privacy": "private",
1541
- "default": "host"
1542
- },
1543
- {
1544
- "kind": "field",
1545
- "name": "globalShortcuts",
1546
- "type": {
1547
- "text": "ShortcutController"
1548
- },
1549
- "privacy": "private",
1550
- "default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
1551
- },
1552
- {
1553
- "kind": "field",
1554
- "name": "navigationShortcuts",
1555
- "type": {
1556
- "text": "ShortcutController"
1557
- },
1558
- "privacy": "private",
1559
- "default": "new ShortcutController(\n host,\n {\n Enter: preventDefault(actions.trigger),\n Backspace: actions.goBack, // we don't want to prevent default, since that would stop backspace deleting chars\n End: preventDefault(actions.end),\n Home: preventDefault(actions.start),\n ArrowDown: preventDefault(actions.next),\n ArrowUp: preventDefault(actions.previous),\n },\n host\n )"
1560
- },
1561
- {
1562
- "kind": "field",
1563
- "name": "commandShortcuts",
1564
- "type": {
1565
- "text": "ShortcutController"
1566
- },
1567
- "privacy": "private",
1568
- "default": "new ShortcutController(host)"
1569
- },
1570
- {
1571
- "kind": "method",
1572
- "name": "registerCommandShortcuts"
1573
- }
1574
- ]
1575
- }
1576
- ],
1577
- "exports": [
1578
- {
1579
- "kind": "js",
1580
- "name": "KeyboardController",
1581
- "declaration": {
1582
- "name": "KeyboardController",
1583
- "module": "src/command-menu/KeyboardController.ts"
1584
- }
1585
- }
1586
- ]
1587
- },
1588
- {
1589
- "kind": "javascript-module",
1590
- "path": "src/command-menu/events.ts",
1591
- "declarations": [
1592
- {
1593
- "kind": "class",
1594
- "description": "",
1595
- "name": "SelectEvent",
1596
- "members": [
1597
- {
1598
- "kind": "field",
1599
- "name": "command",
1600
- "type": {
1601
- "text": "ICommandMenuAction"
1602
- },
1603
- "default": "command"
1604
- }
1605
- ],
1606
- "superclass": {
1607
- "name": "NordEvent",
1608
- "module": "/src/common/events.js"
1609
- }
1610
- }
1611
- ],
1612
- "exports": [
1613
- {
1614
- "kind": "js",
1615
- "name": "SelectEvent",
1616
- "declaration": {
1617
- "name": "SelectEvent",
1618
- "module": "src/command-menu/events.ts"
1619
- }
1620
- }
1621
- ]
1622
- },
1623
- {
1624
- "kind": "javascript-module",
1625
- "path": "src/card/Card.ts",
1626
- "declarations": [
1627
- {
1628
- "kind": "class",
1629
- "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
1630
- "name": "Card",
1631
- "slots": [
1632
- {
1633
- "description": "The card content.",
1634
- "name": ""
1635
- },
1636
- {
1637
- "description": "Optional slot that holds a header for the card.",
1638
- "name": "header"
1639
- },
1640
- {
1641
- "description": "Optional slot that holds footer content for the card.",
1642
- "name": "footer"
1643
- }
1644
- ],
1645
- "members": [
1646
- {
1647
- "kind": "field",
1648
- "name": "slots",
1649
- "privacy": "private",
1650
- "default": "new SlotController(this)"
1651
- },
1652
- {
1653
- "kind": "field",
1654
- "name": "padding",
1655
- "type": {
1656
- "text": "\"m\" | \"l\" | \"none\""
1657
- },
1658
- "default": "\"m\"",
1659
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1660
- "attribute": "padding",
1661
- "reflects": true
1662
- },
1663
- {
1664
- "kind": "field",
1665
- "name": "_warningLogged",
1666
- "type": {
1667
- "text": "boolean"
1668
- },
1669
- "privacy": "private",
1670
- "static": true,
1671
- "default": "false",
1672
- "inheritedFrom": {
1673
- "name": "DraftComponentMixin",
1674
- "module": "src/common/mixins/DraftComponentMixin.ts"
1675
- }
1676
- }
1677
- ],
1678
- "attributes": [
1679
- {
1680
- "name": "padding",
1681
- "type": {
1682
- "text": "\"m\" | \"l\" | \"none\""
1683
- },
1684
- "default": "\"m\"",
1685
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1686
- "fieldName": "padding"
1687
- }
1688
- ],
1689
- "mixins": [
1690
- {
1691
- "name": "DraftComponentMixin",
1692
- "module": "/src/common/mixins/DraftComponentMixin.js"
1693
- }
1694
- ],
1695
- "superclass": {
1696
- "name": "LitElement",
1697
- "package": "lit"
1698
- },
1699
- "status": "draft",
1700
- "category": "structure",
1701
- "tagName": "nord-card",
1702
- "customElement": true
1703
- }
1704
- ],
1705
- "exports": [
1706
- {
1707
- "kind": "js",
1708
- "name": "default",
1709
- "declaration": {
1710
- "name": "Card",
1711
- "module": "src/card/Card.ts"
1712
- }
1713
- },
1714
- {
1715
- "kind": "custom-element-definition",
1716
- "name": "nord-card",
1717
- "declaration": {
1718
- "name": "Card",
1719
- "module": "src/card/Card.ts"
1720
- }
1721
- }
1722
- ]
1723
- },
1724
- {
1725
- "kind": "javascript-module",
1726
- "path": "src/common/collection.ts",
1727
- "declarations": [
1728
- {
1729
- "kind": "function",
1730
- "name": "groupBy",
1731
- "parameters": [
1732
- {
1733
- "name": "array",
1734
- "type": {
1735
- "text": "Array<TObject>"
1736
- },
1737
- "description": "the collection of objects to group"
1738
- },
1739
- {
1740
- "name": "key",
1741
- "type": {
1742
- "text": "TKey"
1743
- },
1744
- "description": "the property to group by"
1745
- }
1746
- ],
1747
- "description": "Groups an array objects by property value",
1748
- "return": {
1749
- "type": {
1750
- "text": ""
1751
- }
1752
- }
1753
- },
1754
- {
1755
- "kind": "function",
1756
- "name": "chunk",
1757
- "return": {
1758
- "type": {
1759
- "text": ""
1760
- }
1761
- },
1762
- "parameters": [
1763
- {
1764
- "name": "array",
1765
- "type": {
1766
- "text": "T[]"
1767
- }
1768
- },
1769
- {
1770
- "name": "chunkSize",
1771
- "type": {
1772
- "text": "number"
1773
- }
1774
- }
1775
- ],
1776
- "description": "Split an array into chunks of the given size"
1777
- },
1778
- {
1779
- "kind": "function",
1780
- "name": "mapWithOffset",
1781
- "return": {
1782
- "type": {
1783
- "text": ""
1784
- }
1785
- },
1786
- "parameters": [
1787
- {
1788
- "name": "array",
1789
- "type": {
1790
- "text": "T[]"
1791
- }
1792
- },
1793
- {
1794
- "name": "startingOffset",
1795
- "type": {
1796
- "text": "number"
1797
- }
1798
- },
1799
- {
1800
- "name": "mapFn",
1245
+ "name": "mapFn",
1801
1246
  "type": {
1802
1247
  "text": "(item: T) => U"
1803
1248
  }
@@ -2364,166 +1809,728 @@
2364
1809
  },
2365
1810
  {
2366
1811
  "kind": "js",
2367
- "name": "inRange",
1812
+ "name": "inRange",
1813
+ "declaration": {
1814
+ "name": "inRange",
1815
+ "module": "src/common/dates.ts"
1816
+ }
1817
+ },
1818
+ {
1819
+ "kind": "js",
1820
+ "name": "getViewOfMonth",
1821
+ "declaration": {
1822
+ "name": "getViewOfMonth",
1823
+ "module": "src/common/dates.ts"
1824
+ }
1825
+ }
1826
+ ]
1827
+ },
1828
+ {
1829
+ "kind": "javascript-module",
1830
+ "path": "src/common/events.ts",
1831
+ "declarations": [
1832
+ {
1833
+ "kind": "class",
1834
+ "description": "A base class for events which defaults to bubbling and composed",
1835
+ "name": "NordEvent",
1836
+ "superclass": {
1837
+ "name": "Event",
1838
+ "module": "src/common/events.ts"
1839
+ },
1840
+ "status": null,
1841
+ "category": null
1842
+ }
1843
+ ],
1844
+ "exports": [
1845
+ {
1846
+ "kind": "js",
1847
+ "name": "NordEvent",
1848
+ "declaration": {
1849
+ "name": "NordEvent",
1850
+ "module": "src/common/events.ts"
1851
+ }
1852
+ }
1853
+ ]
1854
+ },
1855
+ {
1856
+ "kind": "javascript-module",
1857
+ "path": "src/common/focus.ts",
1858
+ "declarations": [
1859
+ {
1860
+ "kind": "function",
1861
+ "name": "getFocusedElement",
1862
+ "return": {
1863
+ "type": {
1864
+ "text": "Element | undefined"
1865
+ }
1866
+ },
1867
+ "parameters": [
1868
+ {
1869
+ "name": "root",
1870
+ "type": {
1871
+ "text": "Document | ShadowRoot"
1872
+ }
1873
+ }
1874
+ ],
1875
+ "description": "Gets the currently focused element, taking shadow roots into account."
1876
+ }
1877
+ ],
1878
+ "exports": [
1879
+ {
1880
+ "kind": "js",
1881
+ "name": "getFocusedElement",
1882
+ "declaration": {
1883
+ "name": "getFocusedElement",
1884
+ "module": "src/common/focus.ts"
1885
+ }
1886
+ }
1887
+ ]
1888
+ },
1889
+ {
1890
+ "kind": "javascript-module",
1891
+ "path": "src/common/input.ts",
1892
+ "declarations": [
1893
+ {
1894
+ "kind": "function",
1895
+ "name": "cleanValue",
1896
+ "return": {
1897
+ "type": {
1898
+ "text": "string"
1899
+ }
1900
+ },
1901
+ "parameters": [
1902
+ {
1903
+ "name": "inputEl",
1904
+ "type": {
1905
+ "text": "HTMLInputElement"
1906
+ }
1907
+ },
1908
+ {
1909
+ "name": "regex",
1910
+ "type": {
1911
+ "text": "RegExp"
1912
+ }
1913
+ }
1914
+ ]
1915
+ }
1916
+ ],
1917
+ "exports": [
1918
+ {
1919
+ "kind": "js",
1920
+ "name": "cleanValue",
1921
+ "declaration": {
1922
+ "name": "cleanValue",
1923
+ "module": "src/common/input.ts"
1924
+ }
1925
+ }
1926
+ ]
1927
+ },
1928
+ {
1929
+ "kind": "javascript-module",
1930
+ "path": "src/common/number.ts",
1931
+ "declarations": [
1932
+ {
1933
+ "kind": "function",
1934
+ "name": "wrap",
1935
+ "parameters": [
1936
+ {
1937
+ "name": "val",
1938
+ "type": {
1939
+ "text": "number"
1940
+ }
1941
+ },
1942
+ {
1943
+ "name": "min",
1944
+ "type": {
1945
+ "text": "number"
1946
+ }
1947
+ },
1948
+ {
1949
+ "name": "max",
1950
+ "type": {
1951
+ "text": "number"
1952
+ }
1953
+ }
1954
+ ],
1955
+ "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
1956
+ },
1957
+ {
1958
+ "kind": "function",
1959
+ "name": "range",
1960
+ "parameters": [
1961
+ {
1962
+ "name": "from",
1963
+ "type": {
1964
+ "text": "number"
1965
+ }
1966
+ },
1967
+ {
1968
+ "name": "to",
1969
+ "type": {
1970
+ "text": "number"
1971
+ }
1972
+ }
1973
+ ]
1974
+ }
1975
+ ],
1976
+ "exports": [
1977
+ {
1978
+ "kind": "js",
1979
+ "name": "wrap",
2368
1980
  "declaration": {
2369
- "name": "inRange",
2370
- "module": "src/common/dates.ts"
1981
+ "name": "wrap",
1982
+ "module": "src/common/number.ts"
2371
1983
  }
2372
1984
  },
2373
1985
  {
2374
1986
  "kind": "js",
2375
- "name": "getViewOfMonth",
1987
+ "name": "range",
2376
1988
  "declaration": {
2377
- "name": "getViewOfMonth",
2378
- "module": "src/common/dates.ts"
1989
+ "name": "range",
1990
+ "module": "src/common/number.ts"
2379
1991
  }
2380
1992
  }
2381
1993
  ]
2382
1994
  },
2383
1995
  {
2384
1996
  "kind": "javascript-module",
2385
- "path": "src/common/events.ts",
1997
+ "path": "src/common/ref.ts",
2386
1998
  "declarations": [
2387
1999
  {
2388
- "kind": "class",
2389
- "description": "A base class for events which defaults to bubbling and composed",
2390
- "name": "NordEvent",
2391
- "superclass": {
2392
- "name": "Event",
2393
- "module": "src/common/events.ts"
2000
+ "kind": "function",
2001
+ "name": "mergeRefs",
2002
+ "return": {
2003
+ "type": {
2004
+ "text": "RefCallback"
2005
+ }
2394
2006
  },
2395
- "status": null,
2396
- "category": null
2007
+ "parameters": [
2008
+ {
2009
+ "name": "refs",
2010
+ "type": {
2011
+ "text": "Ref[]"
2012
+ }
2013
+ }
2014
+ ],
2015
+ "description": "Creates a ref callback which will assign the element to every given ref"
2397
2016
  }
2398
2017
  ],
2399
2018
  "exports": [
2400
2019
  {
2401
2020
  "kind": "js",
2402
- "name": "NordEvent",
2021
+ "name": "mergeRefs",
2403
2022
  "declaration": {
2404
- "name": "NordEvent",
2405
- "module": "src/common/events.ts"
2023
+ "name": "mergeRefs",
2024
+ "module": "src/common/ref.ts"
2406
2025
  }
2407
2026
  }
2408
2027
  ]
2409
2028
  },
2410
2029
  {
2411
2030
  "kind": "javascript-module",
2412
- "path": "src/common/focus.ts",
2031
+ "path": "src/command-menu/CommandMenu.ts",
2413
2032
  "declarations": [
2414
2033
  {
2415
- "kind": "function",
2416
- "name": "getFocusedElement",
2417
- "return": {
2418
- "type": {
2419
- "text": "Element | undefined"
2034
+ "kind": "class",
2035
+ "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
2036
+ "name": "CommandMenu",
2037
+ "slots": [
2038
+ {
2039
+ "description": "Used to replace the default footer contents.",
2040
+ "name": "footer"
2420
2041
  }
2421
- },
2422
- "parameters": [
2042
+ ],
2043
+ "members": [
2044
+ {
2045
+ "kind": "field",
2046
+ "name": "inputRef",
2047
+ "privacy": "private"
2048
+ },
2049
+ {
2050
+ "kind": "field",
2051
+ "name": "listRef",
2052
+ "privacy": "private"
2053
+ },
2054
+ {
2055
+ "kind": "field",
2056
+ "name": "previousFocus",
2057
+ "type": {
2058
+ "text": "HTMLElement | undefined"
2059
+ },
2060
+ "privacy": "private"
2061
+ },
2062
+ {
2063
+ "kind": "field",
2064
+ "name": "dismissController",
2065
+ "privacy": "private",
2066
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
2067
+ },
2068
+ {
2069
+ "kind": "field",
2070
+ "name": "keyboardController",
2071
+ "privacy": "private",
2072
+ "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
2073
+ },
2074
+ {
2075
+ "kind": "field",
2076
+ "name": "open",
2077
+ "type": {
2078
+ "text": "boolean"
2079
+ },
2080
+ "default": "false",
2081
+ "description": "Show or hide the command menu.",
2082
+ "attribute": "open"
2083
+ },
2084
+ {
2085
+ "kind": "field",
2086
+ "name": "placeholder",
2087
+ "type": {
2088
+ "text": "string"
2089
+ },
2090
+ "default": "\"Type a command or search...\"",
2091
+ "description": "Hint text to display in the search field.",
2092
+ "attribute": "placeholder"
2093
+ },
2094
+ {
2095
+ "kind": "field",
2096
+ "name": "commands",
2097
+ "type": {
2098
+ "text": "Array<ICommandMenuAction>"
2099
+ },
2100
+ "default": "[]",
2101
+ "description": "Array of commands to be included in the menu."
2102
+ },
2103
+ {
2104
+ "kind": "field",
2105
+ "name": "parent",
2106
+ "type": {
2107
+ "text": "string | undefined"
2108
+ },
2109
+ "privacy": "private"
2110
+ },
2111
+ {
2112
+ "kind": "field",
2113
+ "name": "search",
2114
+ "type": {
2115
+ "text": "string"
2116
+ },
2117
+ "privacy": "private",
2118
+ "default": "\"\""
2119
+ },
2120
+ {
2121
+ "kind": "field",
2122
+ "name": "bump",
2123
+ "type": {
2124
+ "text": "boolean"
2125
+ },
2126
+ "privacy": "private",
2127
+ "default": "true"
2128
+ },
2129
+ {
2130
+ "kind": "field",
2131
+ "name": "selectedIndex",
2132
+ "type": {
2133
+ "text": "number"
2134
+ },
2135
+ "privacy": "private",
2136
+ "default": "0"
2137
+ },
2138
+ {
2139
+ "kind": "field",
2140
+ "name": "filteredCommands",
2141
+ "type": {
2142
+ "text": "Array<ICommandMenuAction>"
2143
+ },
2144
+ "privacy": "private",
2145
+ "default": "[]"
2146
+ },
2147
+ {
2148
+ "kind": "field",
2149
+ "name": "selected",
2150
+ "type": {
2151
+ "text": "ICommandMenuAction"
2152
+ },
2153
+ "privacy": "private"
2154
+ },
2155
+ {
2156
+ "kind": "method",
2157
+ "name": "show",
2158
+ "parameters": [
2159
+ {
2160
+ "name": "options",
2161
+ "default": "{}",
2162
+ "type": {
2163
+ "text": "{ parent?: string }"
2164
+ },
2165
+ "description": "allows you to open the menu filtered to a specific parent command."
2166
+ }
2167
+ ],
2168
+ "description": "Show the command menu programmatically."
2169
+ },
2170
+ {
2171
+ "kind": "method",
2172
+ "name": "close",
2173
+ "description": "Close the command menu programmatically."
2174
+ },
2175
+ {
2176
+ "kind": "method",
2177
+ "name": "toggleOpen",
2178
+ "description": "Toggle the open state programmatically."
2179
+ },
2180
+ {
2181
+ "kind": "method",
2182
+ "name": "focus",
2183
+ "description": "Focus the command menu's input."
2184
+ },
2185
+ {
2186
+ "kind": "method",
2187
+ "name": "renderNoResults",
2188
+ "privacy": "private"
2189
+ },
2190
+ {
2191
+ "kind": "method",
2192
+ "name": "renderSection",
2193
+ "privacy": "private",
2194
+ "parameters": [
2195
+ {
2196
+ "name": "section",
2197
+ "type": {
2198
+ "text": "string | undefined"
2199
+ }
2200
+ },
2201
+ {
2202
+ "name": "commands",
2203
+ "type": {
2204
+ "text": "ICommandMenuAction[]"
2205
+ }
2206
+ }
2207
+ ]
2208
+ },
2209
+ {
2210
+ "kind": "method",
2211
+ "name": "handleAnimationEnd",
2212
+ "privacy": "private"
2213
+ },
2214
+ {
2215
+ "kind": "method",
2216
+ "name": "handleBlur",
2217
+ "privacy": "private"
2218
+ },
2219
+ {
2220
+ "kind": "method",
2221
+ "name": "handleInput",
2222
+ "privacy": "private",
2223
+ "parameters": [
2224
+ {
2225
+ "name": "event",
2226
+ "type": {
2227
+ "text": "KeyboardEvent"
2228
+ }
2229
+ }
2230
+ ]
2231
+ },
2423
2232
  {
2424
- "name": "root",
2233
+ "kind": "method",
2234
+ "name": "select",
2235
+ "privacy": "private",
2236
+ "parameters": [
2237
+ {
2238
+ "name": "command",
2239
+ "default": "this.selected",
2240
+ "type": {
2241
+ "text": "ICommandMenuAction"
2242
+ }
2243
+ }
2244
+ ]
2245
+ },
2246
+ {
2247
+ "kind": "method",
2248
+ "name": "start",
2249
+ "privacy": "private"
2250
+ },
2251
+ {
2252
+ "kind": "method",
2253
+ "name": "end",
2254
+ "privacy": "private"
2255
+ },
2256
+ {
2257
+ "kind": "method",
2258
+ "name": "next",
2259
+ "privacy": "private"
2260
+ },
2261
+ {
2262
+ "kind": "method",
2263
+ "name": "previous",
2264
+ "privacy": "private"
2265
+ },
2266
+ {
2267
+ "kind": "method",
2268
+ "name": "goBack",
2269
+ "privacy": "private"
2270
+ },
2271
+ {
2272
+ "kind": "method",
2273
+ "name": "setParent",
2274
+ "privacy": "private",
2275
+ "parameters": [
2276
+ {
2277
+ "name": "parent",
2278
+ "optional": true,
2279
+ "type": {
2280
+ "text": "string"
2281
+ }
2282
+ }
2283
+ ]
2284
+ },
2285
+ {
2286
+ "kind": "method",
2287
+ "name": "setSearch",
2288
+ "privacy": "private",
2289
+ "parameters": [
2290
+ {
2291
+ "name": "str",
2292
+ "type": {
2293
+ "text": "string"
2294
+ }
2295
+ }
2296
+ ]
2297
+ },
2298
+ {
2299
+ "kind": "method",
2300
+ "name": "filterCommands",
2301
+ "privacy": "private"
2302
+ },
2303
+ {
2304
+ "kind": "field",
2305
+ "name": "_warningLogged",
2425
2306
  "type": {
2426
- "text": "Document | ShadowRoot"
2307
+ "text": "boolean"
2308
+ },
2309
+ "privacy": "private",
2310
+ "static": true,
2311
+ "default": "false",
2312
+ "inheritedFrom": {
2313
+ "name": "DraftComponentMixin",
2314
+ "module": "src/common/mixins/DraftComponentMixin.ts"
2427
2315
  }
2428
2316
  }
2429
2317
  ],
2430
- "description": "Gets the currently focused element, taking shadow roots into account."
2318
+ "events": [
2319
+ {
2320
+ "name": "open",
2321
+ "type": {
2322
+ "text": "NordEvent"
2323
+ },
2324
+ "description": "The command menu was opened foo."
2325
+ },
2326
+ {
2327
+ "name": "close",
2328
+ "type": {
2329
+ "text": "NordEvent"
2330
+ },
2331
+ "description": "The command menu was closed bar."
2332
+ },
2333
+ {
2334
+ "type": {
2335
+ "text": "SelectEvent"
2336
+ },
2337
+ "description": "User selected a command from the menu.",
2338
+ "name": "n-select"
2339
+ }
2340
+ ],
2341
+ "attributes": [
2342
+ {
2343
+ "name": "open",
2344
+ "type": {
2345
+ "text": "boolean"
2346
+ },
2347
+ "default": "false",
2348
+ "description": "Show or hide the command menu.",
2349
+ "fieldName": "open"
2350
+ },
2351
+ {
2352
+ "name": "placeholder",
2353
+ "type": {
2354
+ "text": "string"
2355
+ },
2356
+ "default": "\"Type a command or search...\"",
2357
+ "description": "Hint text to display in the search field.",
2358
+ "fieldName": "placeholder"
2359
+ }
2360
+ ],
2361
+ "mixins": [
2362
+ {
2363
+ "name": "DraftComponentMixin",
2364
+ "module": "/src/common/mixins/DraftComponentMixin.js"
2365
+ }
2366
+ ],
2367
+ "superclass": {
2368
+ "name": "LitElement",
2369
+ "package": "lit"
2370
+ },
2371
+ "status": "draft",
2372
+ "category": "action",
2373
+ "tagName": "nord-command-menu",
2374
+ "customElement": true
2431
2375
  }
2432
2376
  ],
2433
2377
  "exports": [
2434
2378
  {
2435
2379
  "kind": "js",
2436
- "name": "getFocusedElement",
2380
+ "name": "default",
2437
2381
  "declaration": {
2438
- "name": "getFocusedElement",
2439
- "module": "src/common/focus.ts"
2382
+ "name": "CommandMenu",
2383
+ "module": "src/command-menu/CommandMenu.ts"
2384
+ }
2385
+ },
2386
+ {
2387
+ "kind": "custom-element-definition",
2388
+ "name": "nord-command-menu",
2389
+ "declaration": {
2390
+ "name": "CommandMenu",
2391
+ "module": "src/command-menu/CommandMenu.ts"
2440
2392
  }
2441
2393
  }
2442
2394
  ]
2443
2395
  },
2444
2396
  {
2445
2397
  "kind": "javascript-module",
2446
- "path": "src/common/input.ts",
2398
+ "path": "src/command-menu/CommandMenuAction.ts",
2447
2399
  "declarations": [
2448
2400
  {
2449
- "kind": "function",
2450
- "name": "cleanValue",
2451
- "return": {
2452
- "type": {
2453
- "text": "string"
2401
+ "kind": "class",
2402
+ "description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
2403
+ "name": "CommandMenuAction",
2404
+ "members": [
2405
+ {
2406
+ "kind": "field",
2407
+ "name": "command",
2408
+ "type": {
2409
+ "text": "ICommandMenuAction"
2410
+ },
2411
+ "attribute": "command"
2412
+ },
2413
+ {
2414
+ "kind": "field",
2415
+ "name": "selected",
2416
+ "type": {
2417
+ "text": "boolean"
2418
+ },
2419
+ "default": "false",
2420
+ "attribute": "selected"
2421
+ },
2422
+ {
2423
+ "kind": "method",
2424
+ "name": "ensureInView",
2425
+ "privacy": "private",
2426
+ "description": "Scroll to show element"
2427
+ },
2428
+ {
2429
+ "kind": "method",
2430
+ "name": "renderShortcut",
2431
+ "privacy": "private"
2454
2432
  }
2455
- },
2456
- "parameters": [
2433
+ ],
2434
+ "attributes": [
2457
2435
  {
2458
- "name": "inputEl",
2436
+ "name": "command",
2459
2437
  "type": {
2460
- "text": "HTMLInputElement"
2461
- }
2438
+ "text": "ICommandMenuAction"
2439
+ },
2440
+ "fieldName": "command"
2462
2441
  },
2463
2442
  {
2464
- "name": "regex",
2443
+ "name": "selected",
2465
2444
  "type": {
2466
- "text": "RegExp"
2467
- }
2445
+ "text": "boolean"
2446
+ },
2447
+ "default": "false",
2448
+ "fieldName": "selected"
2468
2449
  }
2469
- ]
2450
+ ],
2451
+ "superclass": {
2452
+ "name": "LitElement",
2453
+ "package": "lit"
2454
+ },
2455
+ "status": "internal",
2456
+ "category": null,
2457
+ "tagName": "nord-command-menu-action",
2458
+ "customElement": true
2470
2459
  }
2471
2460
  ],
2472
2461
  "exports": [
2473
2462
  {
2474
2463
  "kind": "js",
2475
- "name": "cleanValue",
2464
+ "name": "default",
2476
2465
  "declaration": {
2477
- "name": "cleanValue",
2478
- "module": "src/common/input.ts"
2466
+ "name": "CommandMenuAction",
2467
+ "module": "src/command-menu/CommandMenuAction.ts"
2468
+ }
2469
+ },
2470
+ {
2471
+ "kind": "custom-element-definition",
2472
+ "name": "nord-command-menu-action",
2473
+ "declaration": {
2474
+ "name": "CommandMenuAction",
2475
+ "module": "src/command-menu/CommandMenuAction.ts"
2479
2476
  }
2480
2477
  }
2481
2478
  ]
2482
2479
  },
2483
2480
  {
2484
2481
  "kind": "javascript-module",
2485
- "path": "src/common/number.ts",
2482
+ "path": "src/command-menu/ICommandMenuAction.ts",
2483
+ "declarations": [],
2484
+ "exports": []
2485
+ },
2486
+ {
2487
+ "kind": "javascript-module",
2488
+ "path": "src/command-menu/KeyboardController.ts",
2486
2489
  "declarations": [
2487
2490
  {
2488
- "kind": "function",
2489
- "name": "wrap",
2490
- "parameters": [
2491
+ "kind": "class",
2492
+ "description": "",
2493
+ "name": "KeyboardController",
2494
+ "members": [
2491
2495
  {
2492
- "name": "val",
2496
+ "kind": "field",
2497
+ "name": "host",
2493
2498
  "type": {
2494
- "text": "number"
2495
- }
2499
+ "text": "CommandMenu"
2500
+ },
2501
+ "privacy": "private",
2502
+ "default": "host"
2496
2503
  },
2497
2504
  {
2498
- "name": "min",
2505
+ "kind": "field",
2506
+ "name": "globalShortcuts",
2499
2507
  "type": {
2500
- "text": "number"
2501
- }
2508
+ "text": "ShortcutController"
2509
+ },
2510
+ "privacy": "private",
2511
+ "default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
2502
2512
  },
2503
2513
  {
2504
- "name": "max",
2514
+ "kind": "field",
2515
+ "name": "navigationShortcuts",
2505
2516
  "type": {
2506
- "text": "number"
2507
- }
2508
- }
2509
- ],
2510
- "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
2511
- },
2512
- {
2513
- "kind": "function",
2514
- "name": "range",
2515
- "parameters": [
2517
+ "text": "ShortcutController"
2518
+ },
2519
+ "privacy": "private",
2520
+ "default": "new ShortcutController(\n host,\n {\n Enter: preventDefault(actions.trigger),\n Backspace: actions.goBack, // we don't want to prevent default, since that would stop backspace deleting chars\n End: preventDefault(actions.end),\n Home: preventDefault(actions.start),\n ArrowDown: preventDefault(actions.next),\n ArrowUp: preventDefault(actions.previous),\n },\n host\n )"
2521
+ },
2516
2522
  {
2517
- "name": "from",
2523
+ "kind": "field",
2524
+ "name": "commandShortcuts",
2518
2525
  "type": {
2519
- "text": "number"
2520
- }
2526
+ "text": "ShortcutController"
2527
+ },
2528
+ "privacy": "private",
2529
+ "default": "new ShortcutController(host)"
2521
2530
  },
2522
2531
  {
2523
- "name": "to",
2524
- "type": {
2525
- "text": "number"
2526
- }
2532
+ "kind": "method",
2533
+ "name": "registerCommandShortcuts"
2527
2534
  }
2528
2535
  ]
2529
2536
  }
@@ -2531,52 +2538,45 @@
2531
2538
  "exports": [
2532
2539
  {
2533
2540
  "kind": "js",
2534
- "name": "wrap",
2535
- "declaration": {
2536
- "name": "wrap",
2537
- "module": "src/common/number.ts"
2538
- }
2539
- },
2540
- {
2541
- "kind": "js",
2542
- "name": "range",
2541
+ "name": "KeyboardController",
2543
2542
  "declaration": {
2544
- "name": "range",
2545
- "module": "src/common/number.ts"
2543
+ "name": "KeyboardController",
2544
+ "module": "src/command-menu/KeyboardController.ts"
2546
2545
  }
2547
2546
  }
2548
2547
  ]
2549
2548
  },
2550
2549
  {
2551
2550
  "kind": "javascript-module",
2552
- "path": "src/common/ref.ts",
2551
+ "path": "src/command-menu/events.ts",
2553
2552
  "declarations": [
2554
2553
  {
2555
- "kind": "function",
2556
- "name": "mergeRefs",
2557
- "return": {
2558
- "type": {
2559
- "text": "RefCallback"
2560
- }
2561
- },
2562
- "parameters": [
2554
+ "kind": "class",
2555
+ "description": "",
2556
+ "name": "SelectEvent",
2557
+ "members": [
2563
2558
  {
2564
- "name": "refs",
2559
+ "kind": "field",
2560
+ "name": "command",
2565
2561
  "type": {
2566
- "text": "Ref[]"
2567
- }
2562
+ "text": "ICommandMenuAction"
2563
+ },
2564
+ "default": "command"
2568
2565
  }
2569
2566
  ],
2570
- "description": "Creates a ref callback which will assign the element to every given ref"
2567
+ "superclass": {
2568
+ "name": "NordEvent",
2569
+ "module": "/src/common/events.js"
2570
+ }
2571
2571
  }
2572
2572
  ],
2573
2573
  "exports": [
2574
2574
  {
2575
2575
  "kind": "js",
2576
- "name": "mergeRefs",
2576
+ "name": "SelectEvent",
2577
2577
  "declaration": {
2578
- "name": "mergeRefs",
2579
- "module": "src/common/ref.ts"
2578
+ "name": "SelectEvent",
2579
+ "module": "src/command-menu/events.ts"
2580
2580
  }
2581
2581
  }
2582
2582
  ]
@@ -4199,18 +4199,167 @@
4199
4199
  }
4200
4200
  ],
4201
4201
  "mixins": [
4202
- {
4203
- "name": "FormAssociatedMixin",
4204
- "module": "/src/common/mixins/FormAssociatedMixin.js"
4205
- },
4206
- {
4207
- "name": "InputMixin",
4208
- "module": "/src/common/mixins/InputMixin.js"
4209
- },
4210
- {
4211
- "name": "FocusableMixin",
4212
- "module": "/src/common/mixins/FocusableMixin.js"
4213
- },
4202
+ {
4203
+ "name": "FormAssociatedMixin",
4204
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
4205
+ },
4206
+ {
4207
+ "name": "InputMixin",
4208
+ "module": "/src/common/mixins/InputMixin.js"
4209
+ },
4210
+ {
4211
+ "name": "FocusableMixin",
4212
+ "module": "/src/common/mixins/FocusableMixin.js"
4213
+ },
4214
+ {
4215
+ "name": "DraftComponentMixin",
4216
+ "module": "/src/common/mixins/DraftComponentMixin.js"
4217
+ }
4218
+ ],
4219
+ "superclass": {
4220
+ "name": "LitElement",
4221
+ "package": "lit"
4222
+ },
4223
+ "status": "draft",
4224
+ "category": "form",
4225
+ "tagName": "nord-input",
4226
+ "customElement": true,
4227
+ "events": [
4228
+ {
4229
+ "name": "input",
4230
+ "type": {
4231
+ "text": "NordEvent"
4232
+ },
4233
+ "description": "Fired as the user types into the input.",
4234
+ "inheritedFrom": {
4235
+ "name": "FormAssociatedMixin",
4236
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4237
+ }
4238
+ },
4239
+ {
4240
+ "name": "change",
4241
+ "type": {
4242
+ "text": "NordEvent"
4243
+ },
4244
+ "description": "Fired whenever the input's value is changed via user interaction.",
4245
+ "inheritedFrom": {
4246
+ "name": "FormAssociatedMixin",
4247
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4248
+ }
4249
+ }
4250
+ ]
4251
+ }
4252
+ ],
4253
+ "exports": [
4254
+ {
4255
+ "kind": "js",
4256
+ "name": "default",
4257
+ "declaration": {
4258
+ "name": "Input",
4259
+ "module": "src/input/Input.ts"
4260
+ }
4261
+ },
4262
+ {
4263
+ "kind": "custom-element-definition",
4264
+ "name": "nord-input",
4265
+ "declaration": {
4266
+ "name": "Input",
4267
+ "module": "src/input/Input.ts"
4268
+ }
4269
+ }
4270
+ ]
4271
+ },
4272
+ {
4273
+ "kind": "javascript-module",
4274
+ "path": "src/stack/Stack.ts",
4275
+ "declarations": [
4276
+ {
4277
+ "kind": "class",
4278
+ "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
4279
+ "name": "Stack",
4280
+ "slots": [
4281
+ {
4282
+ "description": "The stack content.",
4283
+ "name": ""
4284
+ }
4285
+ ],
4286
+ "members": [
4287
+ {
4288
+ "kind": "field",
4289
+ "name": "gap",
4290
+ "type": {
4291
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4292
+ },
4293
+ "default": "\"m\"",
4294
+ "description": "The space injected between components.",
4295
+ "attribute": "gap",
4296
+ "reflects": true
4297
+ },
4298
+ {
4299
+ "kind": "field",
4300
+ "name": "direction",
4301
+ "type": {
4302
+ "text": "\"vertical\" | \"horizontal\""
4303
+ },
4304
+ "default": "\"vertical\"",
4305
+ "description": "The direction of the stack.",
4306
+ "attribute": "direction",
4307
+ "reflects": true
4308
+ },
4309
+ {
4310
+ "kind": "field",
4311
+ "name": "alignItems",
4312
+ "type": {
4313
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
4314
+ },
4315
+ "description": "How to align the child items inside the stack.",
4316
+ "attribute": "align-items",
4317
+ "reflects": true
4318
+ },
4319
+ {
4320
+ "kind": "field",
4321
+ "name": "_warningLogged",
4322
+ "type": {
4323
+ "text": "boolean"
4324
+ },
4325
+ "privacy": "private",
4326
+ "static": true,
4327
+ "default": "false",
4328
+ "inheritedFrom": {
4329
+ "name": "DraftComponentMixin",
4330
+ "module": "src/common/mixins/DraftComponentMixin.ts"
4331
+ }
4332
+ }
4333
+ ],
4334
+ "attributes": [
4335
+ {
4336
+ "name": "gap",
4337
+ "type": {
4338
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4339
+ },
4340
+ "default": "\"m\"",
4341
+ "description": "The space injected between components.",
4342
+ "fieldName": "gap"
4343
+ },
4344
+ {
4345
+ "name": "direction",
4346
+ "type": {
4347
+ "text": "\"vertical\" | \"horizontal\""
4348
+ },
4349
+ "default": "\"vertical\"",
4350
+ "description": "The direction of the stack.",
4351
+ "fieldName": "direction"
4352
+ },
4353
+ {
4354
+ "name": "align-items",
4355
+ "type": {
4356
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
4357
+ },
4358
+ "description": "How to align the child items inside the stack.",
4359
+ "fieldName": "alignItems"
4360
+ }
4361
+ ],
4362
+ "mixins": [
4214
4363
  {
4215
4364
  "name": "DraftComponentMixin",
4216
4365
  "module": "/src/common/mixins/DraftComponentMixin.js"
@@ -4221,33 +4370,9 @@
4221
4370
  "package": "lit"
4222
4371
  },
4223
4372
  "status": "draft",
4224
- "category": "form",
4225
- "tagName": "nord-input",
4226
- "customElement": true,
4227
- "events": [
4228
- {
4229
- "name": "input",
4230
- "type": {
4231
- "text": "NordEvent"
4232
- },
4233
- "description": "Fired as the user types into the input.",
4234
- "inheritedFrom": {
4235
- "name": "FormAssociatedMixin",
4236
- "module": "src/common/mixins/FormAssociatedMixin.ts"
4237
- }
4238
- },
4239
- {
4240
- "name": "change",
4241
- "type": {
4242
- "text": "NordEvent"
4243
- },
4244
- "description": "Fired whenever the input's value is changed via user interaction.",
4245
- "inheritedFrom": {
4246
- "name": "FormAssociatedMixin",
4247
- "module": "src/common/mixins/FormAssociatedMixin.ts"
4248
- }
4249
- }
4250
- ]
4373
+ "category": "structure",
4374
+ "tagName": "nord-stack",
4375
+ "customElement": true
4251
4376
  }
4252
4377
  ],
4253
4378
  "exports": [
@@ -4255,16 +4380,16 @@
4255
4380
  "kind": "js",
4256
4381
  "name": "default",
4257
4382
  "declaration": {
4258
- "name": "Input",
4259
- "module": "src/input/Input.ts"
4383
+ "name": "Stack",
4384
+ "module": "src/stack/Stack.ts"
4260
4385
  }
4261
4386
  },
4262
4387
  {
4263
4388
  "kind": "custom-element-definition",
4264
- "name": "nord-input",
4389
+ "name": "nord-stack",
4265
4390
  "declaration": {
4266
- "name": "Input",
4267
- "module": "src/input/Input.ts"
4391
+ "name": "Stack",
4392
+ "module": "src/stack/Stack.ts"
4268
4393
  }
4269
4394
  }
4270
4395
  ]
@@ -4821,240 +4946,24 @@
4821
4946
  "type": {
4822
4947
  "text": "NordEvent"
4823
4948
  },
4824
- "description": "Fired as the user types into the input.",
4825
- "inheritedFrom": {
4826
- "name": "FormAssociatedMixin",
4827
- "module": "src/common/mixins/FormAssociatedMixin.ts"
4828
- }
4829
- },
4830
- {
4831
- "name": "change",
4832
- "type": {
4833
- "text": "NordEvent"
4834
- },
4835
- "description": "Fired whenever the input's value is changed via user interaction.",
4836
- "inheritedFrom": {
4837
- "name": "FormAssociatedMixin",
4838
- "module": "src/common/mixins/FormAssociatedMixin.ts"
4839
- }
4840
- }
4841
- ]
4842
- }
4843
- ],
4844
- "exports": [
4845
- {
4846
- "kind": "js",
4847
- "name": "default",
4848
- "declaration": {
4849
- "name": "Select",
4850
- "module": "src/select/Select.ts"
4851
- }
4852
- },
4853
- {
4854
- "kind": "custom-element-definition",
4855
- "name": "nord-select",
4856
- "declaration": {
4857
- "name": "Select",
4858
- "module": "src/select/Select.ts"
4859
- }
4860
- }
4861
- ]
4862
- },
4863
- {
4864
- "kind": "javascript-module",
4865
- "path": "src/spinner/Spinner.ts",
4866
- "declarations": [
4867
- {
4868
- "kind": "class",
4869
- "description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
4870
- "name": "Spinner",
4871
- "members": [
4872
- {
4873
- "kind": "field",
4874
- "name": "size",
4875
- "type": {
4876
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4877
- },
4878
- "default": "\"m\"",
4879
- "description": "The size of the spinner.",
4880
- "attribute": "size",
4881
- "reflects": true
4882
- },
4883
- {
4884
- "kind": "field",
4885
- "name": "color",
4886
- "type": {
4887
- "text": "string | undefined"
4888
- },
4889
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4890
- "attribute": "color",
4891
- "reflects": true
4892
- },
4893
- {
4894
- "kind": "field",
4895
- "name": "label",
4896
- "type": {
4897
- "text": "string | undefined"
4898
- },
4899
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4900
- "attribute": "label",
4901
- "reflects": true
4902
- },
4903
- {
4904
- "kind": "field",
4905
- "name": "_warningLogged",
4906
- "type": {
4907
- "text": "boolean"
4908
- },
4909
- "privacy": "private",
4910
- "static": true,
4911
- "default": "false",
4912
- "inheritedFrom": {
4913
- "name": "DraftComponentMixin",
4914
- "module": "src/common/mixins/DraftComponentMixin.ts"
4915
- }
4916
- }
4917
- ],
4918
- "attributes": [
4919
- {
4920
- "name": "size",
4921
- "type": {
4922
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4923
- },
4924
- "default": "\"m\"",
4925
- "description": "The size of the spinner.",
4926
- "fieldName": "size"
4927
- },
4928
- {
4929
- "name": "color",
4930
- "type": {
4931
- "text": "string | undefined"
4932
- },
4933
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4934
- "fieldName": "color"
4935
- },
4936
- {
4937
- "name": "label",
4938
- "type": {
4939
- "text": "string | undefined"
4940
- },
4941
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4942
- "fieldName": "label"
4943
- }
4944
- ],
4945
- "mixins": [
4946
- {
4947
- "name": "DraftComponentMixin",
4948
- "module": "/src/common/mixins/DraftComponentMixin.js"
4949
- }
4950
- ],
4951
- "superclass": {
4952
- "name": "LitElement",
4953
- "package": "lit"
4954
- },
4955
- "status": "draft",
4956
- "category": "feedback",
4957
- "tagName": "nord-spinner",
4958
- "customElement": true
4959
- }
4960
- ],
4961
- "exports": [
4962
- {
4963
- "kind": "js",
4964
- "name": "default",
4965
- "declaration": {
4966
- "name": "Spinner",
4967
- "module": "src/spinner/Spinner.ts"
4968
- }
4969
- },
4970
- {
4971
- "kind": "custom-element-definition",
4972
- "name": "nord-spinner",
4973
- "declaration": {
4974
- "name": "Spinner",
4975
- "module": "src/spinner/Spinner.ts"
4976
- }
4977
- }
4978
- ]
4979
- },
4980
- {
4981
- "kind": "javascript-module",
4982
- "path": "src/table/Table.ts",
4983
- "declarations": [
4984
- {
4985
- "kind": "class",
4986
- "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
4987
- "name": "Table",
4988
- "slots": [
4989
- {
4990
- "description": "The table.",
4991
- "name": ""
4992
- }
4993
- ],
4994
- "members": [
4995
- {
4996
- "kind": "field",
4997
- "name": "density",
4998
- "type": {
4999
- "text": "\"condensed\" | \"default\" | \"relaxed\""
5000
- },
5001
- "default": "\"default\"",
5002
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5003
- "attribute": "density",
5004
- "reflects": true
5005
- },
5006
- {
5007
- "kind": "method",
5008
- "name": "renderStyles",
5009
- "privacy": "private",
5010
- "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
5011
- },
5012
- {
5013
- "kind": "method",
5014
- "name": "createRenderRoot",
5015
- "privacy": "protected",
5016
- "description": "opt out of shadow dom"
5017
- },
5018
- {
5019
- "kind": "field",
5020
- "name": "_warningLogged",
5021
- "type": {
5022
- "text": "boolean"
5023
- },
5024
- "privacy": "private",
5025
- "static": true,
5026
- "default": "false",
4949
+ "description": "Fired as the user types into the input.",
5027
4950
  "inheritedFrom": {
5028
- "name": "DraftComponentMixin",
5029
- "module": "src/common/mixins/DraftComponentMixin.ts"
4951
+ "name": "FormAssociatedMixin",
4952
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5030
4953
  }
5031
- }
5032
- ],
5033
- "attributes": [
4954
+ },
5034
4955
  {
5035
- "name": "density",
4956
+ "name": "change",
5036
4957
  "type": {
5037
- "text": "\"condensed\" | \"default\" | \"relaxed\""
4958
+ "text": "NordEvent"
5038
4959
  },
5039
- "default": "\"default\"",
5040
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5041
- "fieldName": "density"
5042
- }
5043
- ],
5044
- "mixins": [
5045
- {
5046
- "name": "DraftComponentMixin",
5047
- "module": "/src/common/mixins/DraftComponentMixin.js"
4960
+ "description": "Fired whenever the input's value is changed via user interaction.",
4961
+ "inheritedFrom": {
4962
+ "name": "FormAssociatedMixin",
4963
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4964
+ }
5048
4965
  }
5049
- ],
5050
- "superclass": {
5051
- "name": "LitElement",
5052
- "package": "lit"
5053
- },
5054
- "status": "draft",
5055
- "category": "list",
5056
- "tagName": "nord-table",
5057
- "customElement": true
4966
+ ]
5058
4967
  }
5059
4968
  ],
5060
4969
  "exports": [
@@ -5062,65 +4971,58 @@
5062
4971
  "kind": "js",
5063
4972
  "name": "default",
5064
4973
  "declaration": {
5065
- "name": "Table",
5066
- "module": "src/table/Table.ts"
4974
+ "name": "Select",
4975
+ "module": "src/select/Select.ts"
5067
4976
  }
5068
4977
  },
5069
4978
  {
5070
4979
  "kind": "custom-element-definition",
5071
- "name": "nord-table",
4980
+ "name": "nord-select",
5072
4981
  "declaration": {
5073
- "name": "Table",
5074
- "module": "src/table/Table.ts"
4982
+ "name": "Select",
4983
+ "module": "src/select/Select.ts"
5075
4984
  }
5076
4985
  }
5077
4986
  ]
5078
4987
  },
5079
4988
  {
5080
4989
  "kind": "javascript-module",
5081
- "path": "src/stack/Stack.ts",
4990
+ "path": "src/spinner/Spinner.ts",
5082
4991
  "declarations": [
5083
4992
  {
5084
4993
  "kind": "class",
5085
- "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
5086
- "name": "Stack",
5087
- "slots": [
5088
- {
5089
- "description": "The stack content.",
5090
- "name": ""
5091
- }
5092
- ],
4994
+ "description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
4995
+ "name": "Spinner",
5093
4996
  "members": [
5094
4997
  {
5095
4998
  "kind": "field",
5096
- "name": "gap",
4999
+ "name": "size",
5097
5000
  "type": {
5098
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5001
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5099
5002
  },
5100
5003
  "default": "\"m\"",
5101
- "description": "The space injected between components.",
5102
- "attribute": "gap",
5004
+ "description": "The size of the spinner.",
5005
+ "attribute": "size",
5103
5006
  "reflects": true
5104
5007
  },
5105
5008
  {
5106
5009
  "kind": "field",
5107
- "name": "direction",
5010
+ "name": "color",
5108
5011
  "type": {
5109
- "text": "\"vertical\" | \"horizontal\""
5012
+ "text": "string | undefined"
5110
5013
  },
5111
- "default": "\"vertical\"",
5112
- "description": "The direction of the stack.",
5113
- "attribute": "direction",
5014
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
5015
+ "attribute": "color",
5114
5016
  "reflects": true
5115
5017
  },
5116
5018
  {
5117
5019
  "kind": "field",
5118
- "name": "alignItems",
5020
+ "name": "label",
5119
5021
  "type": {
5120
- "text": "\"center\" | \"start\" | \"end\" | undefined"
5022
+ "text": "string | undefined"
5121
5023
  },
5122
- "description": "How to align the child items inside the stack.",
5123
- "attribute": "align-items",
5024
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
5025
+ "attribute": "label",
5124
5026
  "reflects": true
5125
5027
  },
5126
5028
  {
@@ -5140,30 +5042,29 @@
5140
5042
  ],
5141
5043
  "attributes": [
5142
5044
  {
5143
- "name": "gap",
5045
+ "name": "size",
5144
5046
  "type": {
5145
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5047
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5146
5048
  },
5147
5049
  "default": "\"m\"",
5148
- "description": "The space injected between components.",
5149
- "fieldName": "gap"
5050
+ "description": "The size of the spinner.",
5051
+ "fieldName": "size"
5150
5052
  },
5151
5053
  {
5152
- "name": "direction",
5054
+ "name": "color",
5153
5055
  "type": {
5154
- "text": "\"vertical\" | \"horizontal\""
5056
+ "text": "string | undefined"
5155
5057
  },
5156
- "default": "\"vertical\"",
5157
- "description": "The direction of the stack.",
5158
- "fieldName": "direction"
5058
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
5059
+ "fieldName": "color"
5159
5060
  },
5160
5061
  {
5161
- "name": "align-items",
5062
+ "name": "label",
5162
5063
  "type": {
5163
- "text": "\"center\" | \"start\" | \"end\" | undefined"
5064
+ "text": "string | undefined"
5164
5065
  },
5165
- "description": "How to align the child items inside the stack.",
5166
- "fieldName": "alignItems"
5066
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
5067
+ "fieldName": "label"
5167
5068
  }
5168
5069
  ],
5169
5070
  "mixins": [
@@ -5177,8 +5078,8 @@
5177
5078
  "package": "lit"
5178
5079
  },
5179
5080
  "status": "draft",
5180
- "category": "structure",
5181
- "tagName": "nord-stack",
5081
+ "category": "feedback",
5082
+ "tagName": "nord-spinner",
5182
5083
  "customElement": true
5183
5084
  }
5184
5085
  ],
@@ -5187,35 +5088,58 @@
5187
5088
  "kind": "js",
5188
5089
  "name": "default",
5189
5090
  "declaration": {
5190
- "name": "Stack",
5191
- "module": "src/stack/Stack.ts"
5091
+ "name": "Spinner",
5092
+ "module": "src/spinner/Spinner.ts"
5192
5093
  }
5193
5094
  },
5194
5095
  {
5195
5096
  "kind": "custom-element-definition",
5196
- "name": "nord-stack",
5097
+ "name": "nord-spinner",
5197
5098
  "declaration": {
5198
- "name": "Stack",
5199
- "module": "src/stack/Stack.ts"
5099
+ "name": "Spinner",
5100
+ "module": "src/spinner/Spinner.ts"
5200
5101
  }
5201
5102
  }
5202
5103
  ]
5203
5104
  },
5204
5105
  {
5205
5106
  "kind": "javascript-module",
5206
- "path": "src/visually-hidden/VisuallyHidden.ts",
5107
+ "path": "src/table/Table.ts",
5207
5108
  "declarations": [
5208
5109
  {
5209
5110
  "kind": "class",
5210
- "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
5211
- "name": "VisuallyHidden",
5111
+ "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
5112
+ "name": "Table",
5212
5113
  "slots": [
5213
5114
  {
5214
- "description": "The visually hidden content.",
5115
+ "description": "The table.",
5215
5116
  "name": ""
5216
5117
  }
5217
5118
  ],
5218
5119
  "members": [
5120
+ {
5121
+ "kind": "field",
5122
+ "name": "density",
5123
+ "type": {
5124
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
5125
+ },
5126
+ "default": "\"default\"",
5127
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5128
+ "attribute": "density",
5129
+ "reflects": true
5130
+ },
5131
+ {
5132
+ "kind": "method",
5133
+ "name": "renderStyles",
5134
+ "privacy": "private",
5135
+ "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
5136
+ },
5137
+ {
5138
+ "kind": "method",
5139
+ "name": "createRenderRoot",
5140
+ "privacy": "protected",
5141
+ "description": "opt out of shadow dom"
5142
+ },
5219
5143
  {
5220
5144
  "kind": "field",
5221
5145
  "name": "_warningLogged",
@@ -5231,6 +5155,17 @@
5231
5155
  }
5232
5156
  }
5233
5157
  ],
5158
+ "attributes": [
5159
+ {
5160
+ "name": "density",
5161
+ "type": {
5162
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
5163
+ },
5164
+ "default": "\"default\"",
5165
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5166
+ "fieldName": "density"
5167
+ }
5168
+ ],
5234
5169
  "mixins": [
5235
5170
  {
5236
5171
  "name": "DraftComponentMixin",
@@ -5242,8 +5177,8 @@
5242
5177
  "package": "lit"
5243
5178
  },
5244
5179
  "status": "draft",
5245
- "category": "text",
5246
- "tagName": "nord-visually-hidden",
5180
+ "category": "list",
5181
+ "tagName": "nord-table",
5247
5182
  "customElement": true
5248
5183
  }
5249
5184
  ],
@@ -5252,16 +5187,16 @@
5252
5187
  "kind": "js",
5253
5188
  "name": "default",
5254
5189
  "declaration": {
5255
- "name": "VisuallyHidden",
5256
- "module": "src/visually-hidden/VisuallyHidden.ts"
5190
+ "name": "Table",
5191
+ "module": "src/table/Table.ts"
5257
5192
  }
5258
5193
  },
5259
5194
  {
5260
5195
  "kind": "custom-element-definition",
5261
- "name": "nord-visually-hidden",
5196
+ "name": "nord-table",
5262
5197
  "declaration": {
5263
- "name": "VisuallyHidden",
5264
- "module": "src/visually-hidden/VisuallyHidden.ts"
5198
+ "name": "Table",
5199
+ "module": "src/table/Table.ts"
5265
5200
  }
5266
5201
  }
5267
5202
  ]
@@ -5844,20 +5779,65 @@
5844
5779
  },
5845
5780
  {
5846
5781
  "kind": "javascript-module",
5847
- "path": "src/common/directives/cond.ts",
5782
+ "path": "src/visually-hidden/VisuallyHidden.ts",
5848
5783
  "declarations": [
5849
5784
  {
5850
- "kind": "variable",
5851
- "name": "cond"
5785
+ "kind": "class",
5786
+ "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
5787
+ "name": "VisuallyHidden",
5788
+ "slots": [
5789
+ {
5790
+ "description": "The visually hidden content.",
5791
+ "name": ""
5792
+ }
5793
+ ],
5794
+ "members": [
5795
+ {
5796
+ "kind": "field",
5797
+ "name": "_warningLogged",
5798
+ "type": {
5799
+ "text": "boolean"
5800
+ },
5801
+ "privacy": "private",
5802
+ "static": true,
5803
+ "default": "false",
5804
+ "inheritedFrom": {
5805
+ "name": "DraftComponentMixin",
5806
+ "module": "src/common/mixins/DraftComponentMixin.ts"
5807
+ }
5808
+ }
5809
+ ],
5810
+ "mixins": [
5811
+ {
5812
+ "name": "DraftComponentMixin",
5813
+ "module": "/src/common/mixins/DraftComponentMixin.js"
5814
+ }
5815
+ ],
5816
+ "superclass": {
5817
+ "name": "LitElement",
5818
+ "package": "lit"
5819
+ },
5820
+ "status": "draft",
5821
+ "category": "text",
5822
+ "tagName": "nord-visually-hidden",
5823
+ "customElement": true
5852
5824
  }
5853
5825
  ],
5854
5826
  "exports": [
5855
5827
  {
5856
5828
  "kind": "js",
5857
- "name": "cond",
5829
+ "name": "default",
5858
5830
  "declaration": {
5859
- "name": "cond",
5860
- "module": "src/common/directives/cond.ts"
5831
+ "name": "VisuallyHidden",
5832
+ "module": "src/visually-hidden/VisuallyHidden.ts"
5833
+ }
5834
+ },
5835
+ {
5836
+ "kind": "custom-element-definition",
5837
+ "name": "nord-visually-hidden",
5838
+ "declaration": {
5839
+ "name": "VisuallyHidden",
5840
+ "module": "src/visually-hidden/VisuallyHidden.ts"
5861
5841
  }
5862
5842
  }
5863
5843
  ]
@@ -6289,6 +6269,26 @@
6289
6269
  }
6290
6270
  ]
6291
6271
  },
6272
+ {
6273
+ "kind": "javascript-module",
6274
+ "path": "src/common/directives/cond.ts",
6275
+ "declarations": [
6276
+ {
6277
+ "kind": "variable",
6278
+ "name": "cond"
6279
+ }
6280
+ ],
6281
+ "exports": [
6282
+ {
6283
+ "kind": "js",
6284
+ "name": "cond",
6285
+ "declaration": {
6286
+ "name": "cond",
6287
+ "module": "src/common/directives/cond.ts"
6288
+ }
6289
+ }
6290
+ ]
6291
+ },
6292
6292
  {
6293
6293
  "kind": "javascript-module",
6294
6294
  "path": "src/common/mixins/DraftComponentMixin.ts",