@nordhealth/components 1.0.0-alpha.31 → 1.0.0-alpha.32

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.
Files changed (41) hide show
  1. package/custom-elements.json +895 -124
  2. package/lib/Badge.js +1 -1
  3. package/lib/Badge.js.map +1 -1
  4. package/lib/Button.js +1 -1
  5. package/lib/Button.js.map +1 -1
  6. package/lib/Card.js +1 -1
  7. package/lib/Card.js.map +1 -1
  8. package/lib/{custom-element-cf3681d2.js → DraftComponentMixin-47a01537.js} +4 -4
  9. package/lib/DraftComponentMixin-47a01537.js.map +1 -0
  10. package/lib/FormAssociatedMixin-887edc78.js +7 -0
  11. package/lib/FormAssociatedMixin-887edc78.js.map +1 -0
  12. package/lib/Input.js +2 -0
  13. package/lib/Input.js.map +1 -0
  14. package/lib/InputMixin-03841680.js +27 -0
  15. package/lib/InputMixin-03841680.js.map +1 -0
  16. package/lib/Select.js +1 -1
  17. package/lib/Select.js.map +1 -1
  18. package/lib/Stack.js +1 -1
  19. package/lib/Stack.js.map +1 -1
  20. package/lib/Table.js +1 -1
  21. package/lib/Table.js.map +1 -1
  22. package/lib/VisuallyHidden.js +1 -1
  23. package/lib/VisuallyHidden.js.map +1 -1
  24. package/lib/index.js +1 -1
  25. package/lib/src/badge/Badge.d.ts +4 -1
  26. package/lib/src/button/Button.d.ts +4 -1
  27. package/lib/src/card/Card.d.ts +7 -2
  28. package/lib/src/card/Card.test.d.ts +1 -0
  29. package/lib/src/common/directives/cond.d.ts +7 -0
  30. package/lib/src/common/mixins/DraftComponentMixin.d.ts +4 -0
  31. package/lib/src/index.d.ts +1 -0
  32. package/lib/src/input/Input.d.ts +53 -0
  33. package/lib/src/input/Input.test.d.ts +1 -0
  34. package/lib/src/select/Select.d.ts +16 -1
  35. package/lib/src/stack/Stack.d.ts +10 -2
  36. package/lib/src/table/Table.d.ts +7 -2
  37. package/lib/src/visually-hidden/VisuallyHidden.d.ts +12 -2
  38. package/package.json +7 -5
  39. package/lib/Button-d775fe0c.js +0 -28
  40. package/lib/Button-d775fe0c.js.map +0 -1
  41. package/lib/custom-element-cf3681d2.js.map +0 -1
@@ -62,6 +62,14 @@
62
62
  "name": "default",
63
63
  "module": "\"./card/Card.js\""
64
64
  }
65
+ },
66
+ {
67
+ "kind": "js",
68
+ "name": "Input",
69
+ "declaration": {
70
+ "name": "default",
71
+ "module": "\"./input/Input.js\""
72
+ }
65
73
  }
66
74
  ]
67
75
  },
@@ -90,6 +98,20 @@
90
98
  "description": "The type of badge.\nDetermines the colour of the chip shown on the badge.",
91
99
  "attribute": "type",
92
100
  "reflects": true
101
+ },
102
+ {
103
+ "kind": "field",
104
+ "name": "_warningLogged",
105
+ "type": {
106
+ "text": "boolean"
107
+ },
108
+ "privacy": "private",
109
+ "static": true,
110
+ "default": "false",
111
+ "inheritedFrom": {
112
+ "name": "DraftComponentMixin",
113
+ "module": "src/common/mixins/DraftComponentMixin.ts"
114
+ }
93
115
  }
94
116
  ],
95
117
  "attributes": [
@@ -103,11 +125,18 @@
103
125
  "fieldName": "type"
104
126
  }
105
127
  ],
128
+ "mixins": [
129
+ {
130
+ "name": "DraftComponentMixin",
131
+ "module": "/src/common/mixins/DraftComponentMixin.js"
132
+ }
133
+ ],
106
134
  "superclass": {
107
135
  "name": "LitElement",
108
136
  "package": "lit"
109
137
  },
110
138
  "status": "draft",
139
+ "category": "text",
111
140
  "tagName": "nord-badge",
112
141
  "customElement": true
113
142
  }
@@ -137,7 +166,7 @@
137
166
  "declarations": [
138
167
  {
139
168
  "kind": "class",
140
- "description": "Buttons are used for interface actions. Primary style should be used only once per view for main call-to-action.",
169
+ "description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
141
170
  "name": "Button",
142
171
  "slots": [
143
172
  {
@@ -348,6 +377,20 @@
348
377
  "name": "FocusableMixin",
349
378
  "module": "src/common/mixins/FocusableMixin.ts"
350
379
  }
380
+ },
381
+ {
382
+ "kind": "field",
383
+ "name": "_warningLogged",
384
+ "type": {
385
+ "text": "boolean"
386
+ },
387
+ "privacy": "private",
388
+ "static": true,
389
+ "default": "false",
390
+ "inheritedFrom": {
391
+ "name": "DraftComponentMixin",
392
+ "module": "src/common/mixins/DraftComponentMixin.ts"
393
+ }
351
394
  }
352
395
  ],
353
396
  "attributes": [
@@ -459,6 +502,10 @@
459
502
  {
460
503
  "name": "FocusableMixin",
461
504
  "module": "/src/common/mixins/FocusableMixin.js"
505
+ },
506
+ {
507
+ "name": "DraftComponentMixin",
508
+ "module": "/src/common/mixins/DraftComponentMixin.js"
462
509
  }
463
510
  ],
464
511
  "superclass": {
@@ -466,6 +513,7 @@
466
513
  "package": "lit"
467
514
  },
468
515
  "status": "draft",
516
+ "category": "action",
469
517
  "tagName": "nord-button",
470
518
  "customElement": true
471
519
  }
@@ -495,7 +543,7 @@
495
543
  "declarations": [
496
544
  {
497
545
  "kind": "class",
498
- "description": "Cards are shadowed surfaces that display content and actions on a single topic. They should be easy to scan for relevant and actionable information.",
546
+ "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.",
499
547
  "name": "Card",
500
548
  "slots": [
501
549
  {
@@ -540,6 +588,20 @@
540
588
  }
541
589
  }
542
590
  ]
591
+ },
592
+ {
593
+ "kind": "field",
594
+ "name": "_warningLogged",
595
+ "type": {
596
+ "text": "boolean"
597
+ },
598
+ "privacy": "private",
599
+ "static": true,
600
+ "default": "false",
601
+ "inheritedFrom": {
602
+ "name": "DraftComponentMixin",
603
+ "module": "src/common/mixins/DraftComponentMixin.ts"
604
+ }
543
605
  }
544
606
  ],
545
607
  "attributes": [
@@ -553,11 +615,18 @@
553
615
  "fieldName": "padding"
554
616
  }
555
617
  ],
618
+ "mixins": [
619
+ {
620
+ "name": "DraftComponentMixin",
621
+ "module": "/src/common/mixins/DraftComponentMixin.js"
622
+ }
623
+ ],
556
624
  "superclass": {
557
625
  "name": "LitElement",
558
626
  "package": "lit"
559
627
  },
560
628
  "status": "draft",
629
+ "category": "structure",
561
630
  "tagName": "nord-card",
562
631
  "customElement": true
563
632
  }
@@ -593,7 +662,8 @@
593
662
  "name": "Event",
594
663
  "module": "src/common/events.ts"
595
664
  },
596
- "status": null
665
+ "status": null,
666
+ "category": null
597
667
  }
598
668
  ],
599
669
  "exports": [
@@ -643,23 +713,50 @@
643
713
  },
644
714
  {
645
715
  "kind": "javascript-module",
646
- "path": "src/select/Select.ts",
716
+ "path": "src/input/Input.ts",
647
717
  "declarations": [
648
718
  {
649
719
  "kind": "class",
650
- "description": "Select lets user choose one option from an options menu. Consider using select when you have 6 or more options.",
651
- "name": "Select",
720
+ "description": "Inputs are used to allow users to provide text input when the expected input is short.\nAs well as plain text, Input supports various types of text, including passwords and numbers.",
721
+ "name": "Input",
652
722
  "slots": [
653
- {
654
- "description": "Default slot for holding <option> elements.",
655
- "name": ""
656
- },
657
723
  {
658
724
  "description": "Use when a label requires more than plain text.",
659
725
  "name": "label"
726
+ },
727
+ {
728
+ "description": "Optional slot that holds hint text for the input.",
729
+ "name": "hint"
730
+ },
731
+ {
732
+ "description": "Optional slot that holds error text for the input.",
733
+ "name": "error"
734
+ },
735
+ {
736
+ "description": "Optional slot that holds an icon for the input.",
737
+ "name": "before"
660
738
  }
661
739
  ],
662
740
  "members": [
741
+ {
742
+ "kind": "field",
743
+ "name": "type",
744
+ "type": {
745
+ "text": "\"text\" | \"email\" | \"password\" | \"tel\" | \"url\" | \"search\" | \"number\""
746
+ },
747
+ "default": "\"text\"",
748
+ "description": "The type of the input.",
749
+ "attribute": "type"
750
+ },
751
+ {
752
+ "kind": "field",
753
+ "name": "hint",
754
+ "type": {
755
+ "text": "string | undefined"
756
+ },
757
+ "description": "Optional hint text to be displayed with input. Alternatively use the hint slot.",
758
+ "attribute": "hint"
759
+ },
663
760
  {
664
761
  "kind": "field",
665
762
  "name": "hideLabel",
@@ -676,9 +773,18 @@
676
773
  "type": {
677
774
  "text": "string | undefined"
678
775
  },
679
- "description": "Hint text to display as the first option of the select element.",
776
+ "description": "Placeholder of the input.",
680
777
  "attribute": "placeholder"
681
778
  },
779
+ {
780
+ "kind": "field",
781
+ "name": "error",
782
+ "type": {
783
+ "text": "string | undefined"
784
+ },
785
+ "description": "Optional error to be shown with input. Alternatively use the error slot.",
786
+ "attribute": "error"
787
+ },
682
788
  {
683
789
  "kind": "field",
684
790
  "name": "expand",
@@ -686,52 +792,47 @@
686
792
  "text": "boolean"
687
793
  },
688
794
  "default": "false",
689
- "description": "Controls whether the select expands to fill the width of its container.",
795
+ "description": "Controls whether the input expands to fill the width of its container.",
690
796
  "attribute": "expand",
691
797
  "reflects": true
692
798
  },
693
799
  {
694
800
  "kind": "method",
695
- "name": "handleSlotChange",
696
- "privacy": "private"
697
- },
698
- {
699
- "kind": "field",
700
- "name": "options",
701
- "privacy": "private"
702
- },
703
- {
704
- "kind": "method",
705
- "name": "getButtonText",
801
+ "name": "renderLabel",
706
802
  "privacy": "private",
707
- "return": {
708
- "type": {
709
- "text": "string"
710
- }
711
- },
712
803
  "parameters": [
713
804
  {
714
- "name": "options",
805
+ "name": "hasHint",
715
806
  "type": {
716
- "text": "HTMLOptionElement[]"
807
+ "text": "boolean"
717
808
  }
718
809
  }
719
810
  ]
720
811
  },
721
812
  {
722
813
  "kind": "method",
723
- "name": "renderLabel",
814
+ "name": "renderHint",
724
815
  "privacy": "private"
725
816
  },
726
817
  {
727
818
  "kind": "method",
728
- "name": "renderOption",
819
+ "name": "renderError",
820
+ "privacy": "private"
821
+ },
822
+ {
823
+ "kind": "method",
824
+ "name": "handleSlotChange",
825
+ "privacy": "private"
826
+ },
827
+ {
828
+ "kind": "method",
829
+ "name": "hasSlottedContent",
729
830
  "privacy": "private",
730
831
  "parameters": [
731
832
  {
732
- "name": "option",
833
+ "name": "slotName",
733
834
  "type": {
734
- "text": "HTMLOptionElement"
835
+ "text": "string"
735
836
  }
736
837
  }
737
838
  ]
@@ -884,9 +985,40 @@
884
985
  "name": "FocusableMixin",
885
986
  "module": "src/common/mixins/FocusableMixin.ts"
886
987
  }
988
+ },
989
+ {
990
+ "kind": "field",
991
+ "name": "_warningLogged",
992
+ "type": {
993
+ "text": "boolean"
994
+ },
995
+ "privacy": "private",
996
+ "static": true,
997
+ "default": "false",
998
+ "inheritedFrom": {
999
+ "name": "DraftComponentMixin",
1000
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1001
+ }
887
1002
  }
888
1003
  ],
889
1004
  "attributes": [
1005
+ {
1006
+ "name": "type",
1007
+ "type": {
1008
+ "text": "\"text\" | \"email\" | \"password\" | \"tel\" | \"url\" | \"search\" | \"number\""
1009
+ },
1010
+ "default": "\"text\"",
1011
+ "description": "The type of the input.",
1012
+ "fieldName": "type"
1013
+ },
1014
+ {
1015
+ "name": "hint",
1016
+ "type": {
1017
+ "text": "string | undefined"
1018
+ },
1019
+ "description": "Optional hint text to be displayed with input. Alternatively use the hint slot.",
1020
+ "fieldName": "hint"
1021
+ },
890
1022
  {
891
1023
  "name": "hide-label",
892
1024
  "type": {
@@ -901,16 +1033,24 @@
901
1033
  "type": {
902
1034
  "text": "string | undefined"
903
1035
  },
904
- "description": "Hint text to display as the first option of the select element.",
1036
+ "description": "Placeholder of the input.",
905
1037
  "fieldName": "placeholder"
906
1038
  },
1039
+ {
1040
+ "name": "error",
1041
+ "type": {
1042
+ "text": "string | undefined"
1043
+ },
1044
+ "description": "Optional error to be shown with input. Alternatively use the error slot.",
1045
+ "fieldName": "error"
1046
+ },
907
1047
  {
908
1048
  "name": "expand",
909
1049
  "type": {
910
1050
  "text": "boolean"
911
1051
  },
912
1052
  "default": "false",
913
- "description": "Controls whether the select expands to fill the width of its container.",
1053
+ "description": "Controls whether the input expands to fill the width of its container.",
914
1054
  "fieldName": "expand"
915
1055
  },
916
1056
  {
@@ -989,6 +1129,10 @@
989
1129
  {
990
1130
  "name": "FocusableMixin",
991
1131
  "module": "/src/common/mixins/FocusableMixin.js"
1132
+ },
1133
+ {
1134
+ "name": "DraftComponentMixin",
1135
+ "module": "/src/common/mixins/DraftComponentMixin.js"
992
1136
  }
993
1137
  ],
994
1138
  "superclass": {
@@ -996,7 +1140,8 @@
996
1140
  "package": "lit"
997
1141
  },
998
1142
  "status": "draft",
999
- "tagName": "nord-select",
1143
+ "category": "form",
1144
+ "tagName": "nord-input",
1000
1145
  "customElement": true,
1001
1146
  "events": [
1002
1147
  {
@@ -1018,131 +1163,653 @@
1018
1163
  "kind": "js",
1019
1164
  "name": "default",
1020
1165
  "declaration": {
1021
- "name": "Select",
1022
- "module": "src/select/Select.ts"
1166
+ "name": "Input",
1167
+ "module": "src/input/Input.ts"
1023
1168
  }
1024
1169
  },
1025
1170
  {
1026
1171
  "kind": "custom-element-definition",
1027
- "name": "nord-select",
1172
+ "name": "nord-input",
1028
1173
  "declaration": {
1029
- "name": "Select",
1030
- "module": "src/select/Select.ts"
1174
+ "name": "Input",
1175
+ "module": "src/input/Input.ts"
1031
1176
  }
1032
1177
  }
1033
1178
  ]
1034
1179
  },
1035
1180
  {
1036
1181
  "kind": "javascript-module",
1037
- "path": "src/stack/Stack.ts",
1182
+ "path": "src/select/Select.ts",
1038
1183
  "declarations": [
1039
1184
  {
1040
1185
  "kind": "class",
1041
- "description": "Stack component injects space between other components in the system. Use stack to create vertical or horizontal stack layouts.",
1042
- "name": "Stack",
1186
+ "description": "Select lets users choose one option from an options menu.\nConsider using select when you have 5 or more options to choose from.",
1187
+ "name": "Select",
1043
1188
  "slots": [
1044
1189
  {
1045
- "description": "The stack content.",
1190
+ "description": "Default slot for holding <option> elements.",
1046
1191
  "name": ""
1192
+ },
1193
+ {
1194
+ "description": "Use when a label requires more than plain text.",
1195
+ "name": "label"
1196
+ },
1197
+ {
1198
+ "description": "Use when a hint requires more than plain text.",
1199
+ "name": "hint"
1200
+ },
1201
+ {
1202
+ "description": "Optional slot that holds error text for the input.",
1203
+ "name": "error"
1047
1204
  }
1048
1205
  ],
1049
1206
  "members": [
1050
1207
  {
1051
1208
  "kind": "field",
1052
- "name": "gap",
1209
+ "name": "hint",
1053
1210
  "type": {
1054
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
1211
+ "text": "string | undefined"
1055
1212
  },
1056
- "default": "\"m\"",
1057
- "description": "The space injected between components.",
1058
- "attribute": "gap",
1059
- "reflects": true
1213
+ "description": "Optional hint text to be displayed with select. Alternatively use the hint slot.",
1214
+ "attribute": "hint"
1060
1215
  },
1061
1216
  {
1062
1217
  "kind": "field",
1063
- "name": "direction",
1218
+ "name": "hideLabel",
1064
1219
  "type": {
1065
- "text": "\"vertical\" | \"horizontal\""
1220
+ "text": "boolean"
1066
1221
  },
1067
- "default": "\"vertical\"",
1068
- "description": "The direction of the stack.",
1069
- "attribute": "direction",
1070
- "reflects": true
1071
- }
1072
- ],
1073
- "attributes": [
1222
+ "default": "false",
1223
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
1224
+ "attribute": "hide-label"
1225
+ },
1074
1226
  {
1075
- "name": "gap",
1227
+ "kind": "field",
1228
+ "name": "placeholder",
1076
1229
  "type": {
1077
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
1230
+ "text": "string | undefined"
1078
1231
  },
1079
- "default": "\"m\"",
1080
- "description": "The space injected between components.",
1081
- "fieldName": "gap"
1232
+ "description": "Hint text to display as the first option of the select element.",
1233
+ "attribute": "placeholder"
1082
1234
  },
1083
1235
  {
1084
- "name": "direction",
1236
+ "kind": "field",
1237
+ "name": "error",
1085
1238
  "type": {
1086
- "text": "\"vertical\" | \"horizontal\""
1239
+ "text": "string | undefined"
1087
1240
  },
1088
- "default": "\"vertical\"",
1089
- "description": "The direction of the stack.",
1090
- "fieldName": "direction"
1091
- }
1092
- ],
1093
- "superclass": {
1094
- "name": "LitElement",
1095
- "package": "lit"
1096
- },
1097
- "status": "draft",
1098
- "tagName": "nord-stack",
1099
- "customElement": true
1100
- }
1101
- ],
1102
- "exports": [
1103
- {
1104
- "kind": "js",
1105
- "name": "default",
1106
- "declaration": {
1107
- "name": "Stack",
1108
- "module": "src/stack/Stack.ts"
1109
- }
1110
- },
1111
- {
1112
- "kind": "custom-element-definition",
1113
- "name": "nord-stack",
1114
- "declaration": {
1115
- "name": "Stack",
1116
- "module": "src/stack/Stack.ts"
1117
- }
1118
- }
1119
- ]
1120
- },
1121
- {
1122
- "kind": "javascript-module",
1123
- "path": "src/table/Table.ts",
1124
- "declarations": [
1125
- {
1126
- "kind": "class",
1127
- "description": "Table is a lightweight and un-opinionated component for enhancing tabular data. It provides table styles in addition to features like sticky headers and support for narrow viewports.",
1128
- "name": "Table",
1129
- "slots": [
1130
- {
1131
- "description": "The table.",
1132
- "name": ""
1133
- }
1134
- ],
1135
- "members": [
1241
+ "description": "Optional error to be shown with the select. Alternatively use the error slot.",
1242
+ "attribute": "error"
1243
+ },
1136
1244
  {
1137
1245
  "kind": "field",
1138
- "name": "density",
1246
+ "name": "expand",
1139
1247
  "type": {
1140
- "text": "\"condensed\" | \"default\" | \"relaxed\""
1248
+ "text": "boolean"
1141
1249
  },
1142
- "default": "\"default\"",
1143
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
1144
- "attribute": "density",
1145
- "reflects": true
1250
+ "default": "false",
1251
+ "description": "Controls whether the select expands to fill the width of its container.",
1252
+ "attribute": "expand",
1253
+ "reflects": true
1254
+ },
1255
+ {
1256
+ "kind": "method",
1257
+ "name": "handleSlotChange",
1258
+ "privacy": "private"
1259
+ },
1260
+ {
1261
+ "kind": "field",
1262
+ "name": "options",
1263
+ "privacy": "private"
1264
+ },
1265
+ {
1266
+ "kind": "method",
1267
+ "name": "getButtonText",
1268
+ "privacy": "private",
1269
+ "return": {
1270
+ "type": {
1271
+ "text": "string"
1272
+ }
1273
+ },
1274
+ "parameters": [
1275
+ {
1276
+ "name": "options",
1277
+ "type": {
1278
+ "text": "HTMLOptionElement[]"
1279
+ }
1280
+ }
1281
+ ]
1282
+ },
1283
+ {
1284
+ "kind": "method",
1285
+ "name": "renderLabel",
1286
+ "privacy": "private",
1287
+ "parameters": [
1288
+ {
1289
+ "name": "hasHint",
1290
+ "type": {
1291
+ "text": "boolean"
1292
+ }
1293
+ }
1294
+ ]
1295
+ },
1296
+ {
1297
+ "kind": "method",
1298
+ "name": "renderHint",
1299
+ "privacy": "private"
1300
+ },
1301
+ {
1302
+ "kind": "method",
1303
+ "name": "renderError",
1304
+ "privacy": "private"
1305
+ },
1306
+ {
1307
+ "kind": "method",
1308
+ "name": "renderOption",
1309
+ "privacy": "private",
1310
+ "parameters": [
1311
+ {
1312
+ "name": "option",
1313
+ "type": {
1314
+ "text": "HTMLOptionElement"
1315
+ }
1316
+ }
1317
+ ]
1318
+ },
1319
+ {
1320
+ "kind": "method",
1321
+ "name": "hasSlottedContent",
1322
+ "privacy": "private",
1323
+ "parameters": [
1324
+ {
1325
+ "name": "slotName",
1326
+ "type": {
1327
+ "text": "string"
1328
+ }
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ "kind": "field",
1334
+ "name": "label",
1335
+ "type": {
1336
+ "text": "string"
1337
+ },
1338
+ "default": "\"\"",
1339
+ "description": "Label for the input.",
1340
+ "attribute": "label",
1341
+ "inheritedFrom": {
1342
+ "name": "FormAssociatedMixin",
1343
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1344
+ }
1345
+ },
1346
+ {
1347
+ "kind": "field",
1348
+ "name": "required",
1349
+ "type": {
1350
+ "text": "boolean"
1351
+ },
1352
+ "default": "false",
1353
+ "description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
1354
+ "attribute": "required",
1355
+ "inheritedFrom": {
1356
+ "name": "FormAssociatedMixin",
1357
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1358
+ }
1359
+ },
1360
+ {
1361
+ "kind": "field",
1362
+ "name": "handleFormData",
1363
+ "privacy": "private",
1364
+ "inheritedFrom": {
1365
+ "name": "FormAssociatedMixin",
1366
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1367
+ }
1368
+ },
1369
+ {
1370
+ "kind": "method",
1371
+ "name": "handleChange",
1372
+ "privacy": "protected",
1373
+ "parameters": [
1374
+ {
1375
+ "name": "e",
1376
+ "type": {
1377
+ "text": "Event"
1378
+ }
1379
+ }
1380
+ ],
1381
+ "inheritedFrom": {
1382
+ "name": "FormAssociatedMixin",
1383
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1384
+ }
1385
+ },
1386
+ {
1387
+ "kind": "field",
1388
+ "name": "disabled",
1389
+ "type": {
1390
+ "text": "boolean"
1391
+ },
1392
+ "default": "false",
1393
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
1394
+ "attribute": "disabled",
1395
+ "inheritedFrom": {
1396
+ "name": "InputMixin",
1397
+ "module": "src/common/mixins/InputMixin.ts"
1398
+ }
1399
+ },
1400
+ {
1401
+ "kind": "field",
1402
+ "name": "name",
1403
+ "type": {
1404
+ "text": "string | undefined"
1405
+ },
1406
+ "description": "The name of the input component.",
1407
+ "attribute": "name",
1408
+ "inheritedFrom": {
1409
+ "name": "InputMixin",
1410
+ "module": "src/common/mixins/InputMixin.ts"
1411
+ }
1412
+ },
1413
+ {
1414
+ "kind": "field",
1415
+ "name": "value",
1416
+ "type": {
1417
+ "text": "string | undefined"
1418
+ },
1419
+ "description": "The value of the input component.",
1420
+ "attribute": "value",
1421
+ "inheritedFrom": {
1422
+ "name": "InputMixin",
1423
+ "module": "src/common/mixins/InputMixin.ts"
1424
+ }
1425
+ },
1426
+ {
1427
+ "kind": "field",
1428
+ "name": "form",
1429
+ "description": "Gets the form, if any, associated with the input element.",
1430
+ "inheritedFrom": {
1431
+ "name": "InputMixin",
1432
+ "module": "src/common/mixins/InputMixin.ts"
1433
+ }
1434
+ },
1435
+ {
1436
+ "kind": "field",
1437
+ "name": "focusableRef",
1438
+ "privacy": "protected",
1439
+ "inheritedFrom": {
1440
+ "name": "FocusableMixin",
1441
+ "module": "src/common/mixins/FocusableMixin.ts"
1442
+ }
1443
+ },
1444
+ {
1445
+ "kind": "method",
1446
+ "name": "focus",
1447
+ "parameters": [
1448
+ {
1449
+ "name": "options",
1450
+ "optional": true,
1451
+ "type": {
1452
+ "text": "FocusOptions"
1453
+ },
1454
+ "description": "An object which controls aspects of the focusing process."
1455
+ }
1456
+ ],
1457
+ "description": "Programmatically move focus to the component",
1458
+ "inheritedFrom": {
1459
+ "name": "FocusableMixin",
1460
+ "module": "src/common/mixins/FocusableMixin.ts"
1461
+ }
1462
+ },
1463
+ {
1464
+ "kind": "method",
1465
+ "name": "blur",
1466
+ "description": "Programmatically remove focus from the component.",
1467
+ "inheritedFrom": {
1468
+ "name": "FocusableMixin",
1469
+ "module": "src/common/mixins/FocusableMixin.ts"
1470
+ }
1471
+ },
1472
+ {
1473
+ "kind": "method",
1474
+ "name": "click",
1475
+ "description": "Programmatically simulates a click on the component.",
1476
+ "inheritedFrom": {
1477
+ "name": "FocusableMixin",
1478
+ "module": "src/common/mixins/FocusableMixin.ts"
1479
+ }
1480
+ },
1481
+ {
1482
+ "kind": "field",
1483
+ "name": "_warningLogged",
1484
+ "type": {
1485
+ "text": "boolean"
1486
+ },
1487
+ "privacy": "private",
1488
+ "static": true,
1489
+ "default": "false",
1490
+ "inheritedFrom": {
1491
+ "name": "DraftComponentMixin",
1492
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1493
+ }
1494
+ }
1495
+ ],
1496
+ "attributes": [
1497
+ {
1498
+ "name": "hint",
1499
+ "type": {
1500
+ "text": "string | undefined"
1501
+ },
1502
+ "description": "Optional hint text to be displayed with select. Alternatively use the hint slot.",
1503
+ "fieldName": "hint"
1504
+ },
1505
+ {
1506
+ "name": "hide-label",
1507
+ "type": {
1508
+ "text": "boolean"
1509
+ },
1510
+ "default": "false",
1511
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
1512
+ "fieldName": "hideLabel"
1513
+ },
1514
+ {
1515
+ "name": "placeholder",
1516
+ "type": {
1517
+ "text": "string | undefined"
1518
+ },
1519
+ "description": "Hint text to display as the first option of the select element.",
1520
+ "fieldName": "placeholder"
1521
+ },
1522
+ {
1523
+ "name": "error",
1524
+ "type": {
1525
+ "text": "string | undefined"
1526
+ },
1527
+ "description": "Optional error to be shown with the select. Alternatively use the error slot.",
1528
+ "fieldName": "error"
1529
+ },
1530
+ {
1531
+ "name": "expand",
1532
+ "type": {
1533
+ "text": "boolean"
1534
+ },
1535
+ "default": "false",
1536
+ "description": "Controls whether the select expands to fill the width of its container.",
1537
+ "fieldName": "expand"
1538
+ },
1539
+ {
1540
+ "name": "label",
1541
+ "type": {
1542
+ "text": "string"
1543
+ },
1544
+ "default": "\"\"",
1545
+ "description": "Label for the input.",
1546
+ "fieldName": "label",
1547
+ "inheritedFrom": {
1548
+ "name": "FormAssociatedMixin",
1549
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1550
+ }
1551
+ },
1552
+ {
1553
+ "name": "required",
1554
+ "type": {
1555
+ "text": "boolean"
1556
+ },
1557
+ "default": "false",
1558
+ "description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
1559
+ "fieldName": "required",
1560
+ "inheritedFrom": {
1561
+ "name": "FormAssociatedMixin",
1562
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1563
+ }
1564
+ },
1565
+ {
1566
+ "name": "disabled",
1567
+ "type": {
1568
+ "text": "boolean"
1569
+ },
1570
+ "default": "false",
1571
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
1572
+ "fieldName": "disabled",
1573
+ "inheritedFrom": {
1574
+ "name": "InputMixin",
1575
+ "module": "src/common/mixins/InputMixin.ts"
1576
+ }
1577
+ },
1578
+ {
1579
+ "name": "name",
1580
+ "type": {
1581
+ "text": "string | undefined"
1582
+ },
1583
+ "description": "The name of the input component.",
1584
+ "fieldName": "name",
1585
+ "inheritedFrom": {
1586
+ "name": "InputMixin",
1587
+ "module": "src/common/mixins/InputMixin.ts"
1588
+ }
1589
+ },
1590
+ {
1591
+ "name": "value",
1592
+ "type": {
1593
+ "text": "string | undefined"
1594
+ },
1595
+ "description": "The value of the input component.",
1596
+ "fieldName": "value",
1597
+ "inheritedFrom": {
1598
+ "name": "InputMixin",
1599
+ "module": "src/common/mixins/InputMixin.ts"
1600
+ }
1601
+ }
1602
+ ],
1603
+ "mixins": [
1604
+ {
1605
+ "name": "FormAssociatedMixin",
1606
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
1607
+ },
1608
+ {
1609
+ "name": "InputMixin",
1610
+ "module": "/src/common/mixins/InputMixin.js"
1611
+ },
1612
+ {
1613
+ "name": "FocusableMixin",
1614
+ "module": "/src/common/mixins/FocusableMixin.js"
1615
+ },
1616
+ {
1617
+ "name": "DraftComponentMixin",
1618
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1619
+ }
1620
+ ],
1621
+ "superclass": {
1622
+ "name": "LitElement",
1623
+ "package": "lit"
1624
+ },
1625
+ "status": "draft",
1626
+ "category": "form",
1627
+ "tagName": "nord-select",
1628
+ "customElement": true,
1629
+ "events": [
1630
+ {
1631
+ "name": "change",
1632
+ "type": {
1633
+ "text": "NordEvent"
1634
+ },
1635
+ "description": "Fired whenever the input's value is changed via user interaction.",
1636
+ "inheritedFrom": {
1637
+ "name": "FormAssociatedMixin",
1638
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
1639
+ }
1640
+ }
1641
+ ]
1642
+ }
1643
+ ],
1644
+ "exports": [
1645
+ {
1646
+ "kind": "js",
1647
+ "name": "default",
1648
+ "declaration": {
1649
+ "name": "Select",
1650
+ "module": "src/select/Select.ts"
1651
+ }
1652
+ },
1653
+ {
1654
+ "kind": "custom-element-definition",
1655
+ "name": "nord-select",
1656
+ "declaration": {
1657
+ "name": "Select",
1658
+ "module": "src/select/Select.ts"
1659
+ }
1660
+ }
1661
+ ]
1662
+ },
1663
+ {
1664
+ "kind": "javascript-module",
1665
+ "path": "src/stack/Stack.ts",
1666
+ "declarations": [
1667
+ {
1668
+ "kind": "class",
1669
+ "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
1670
+ "name": "Stack",
1671
+ "slots": [
1672
+ {
1673
+ "description": "The stack content.",
1674
+ "name": ""
1675
+ }
1676
+ ],
1677
+ "members": [
1678
+ {
1679
+ "kind": "field",
1680
+ "name": "gap",
1681
+ "type": {
1682
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
1683
+ },
1684
+ "default": "\"m\"",
1685
+ "description": "The space injected between components.",
1686
+ "attribute": "gap",
1687
+ "reflects": true
1688
+ },
1689
+ {
1690
+ "kind": "field",
1691
+ "name": "direction",
1692
+ "type": {
1693
+ "text": "\"vertical\" | \"horizontal\""
1694
+ },
1695
+ "default": "\"vertical\"",
1696
+ "description": "The direction of the stack.",
1697
+ "attribute": "direction",
1698
+ "reflects": true
1699
+ },
1700
+ {
1701
+ "kind": "field",
1702
+ "name": "alignItems",
1703
+ "type": {
1704
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
1705
+ },
1706
+ "description": "How to align the child items inside the stack.",
1707
+ "attribute": "align-items",
1708
+ "reflects": true
1709
+ },
1710
+ {
1711
+ "kind": "field",
1712
+ "name": "_warningLogged",
1713
+ "type": {
1714
+ "text": "boolean"
1715
+ },
1716
+ "privacy": "private",
1717
+ "static": true,
1718
+ "default": "false",
1719
+ "inheritedFrom": {
1720
+ "name": "DraftComponentMixin",
1721
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1722
+ }
1723
+ }
1724
+ ],
1725
+ "attributes": [
1726
+ {
1727
+ "name": "gap",
1728
+ "type": {
1729
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
1730
+ },
1731
+ "default": "\"m\"",
1732
+ "description": "The space injected between components.",
1733
+ "fieldName": "gap"
1734
+ },
1735
+ {
1736
+ "name": "direction",
1737
+ "type": {
1738
+ "text": "\"vertical\" | \"horizontal\""
1739
+ },
1740
+ "default": "\"vertical\"",
1741
+ "description": "The direction of the stack.",
1742
+ "fieldName": "direction"
1743
+ },
1744
+ {
1745
+ "name": "align-items",
1746
+ "type": {
1747
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
1748
+ },
1749
+ "description": "How to align the child items inside the stack.",
1750
+ "fieldName": "alignItems"
1751
+ }
1752
+ ],
1753
+ "mixins": [
1754
+ {
1755
+ "name": "DraftComponentMixin",
1756
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1757
+ }
1758
+ ],
1759
+ "superclass": {
1760
+ "name": "LitElement",
1761
+ "package": "lit"
1762
+ },
1763
+ "status": "draft",
1764
+ "category": "structure",
1765
+ "tagName": "nord-stack",
1766
+ "customElement": true
1767
+ }
1768
+ ],
1769
+ "exports": [
1770
+ {
1771
+ "kind": "js",
1772
+ "name": "default",
1773
+ "declaration": {
1774
+ "name": "Stack",
1775
+ "module": "src/stack/Stack.ts"
1776
+ }
1777
+ },
1778
+ {
1779
+ "kind": "custom-element-definition",
1780
+ "name": "nord-stack",
1781
+ "declaration": {
1782
+ "name": "Stack",
1783
+ "module": "src/stack/Stack.ts"
1784
+ }
1785
+ }
1786
+ ]
1787
+ },
1788
+ {
1789
+ "kind": "javascript-module",
1790
+ "path": "src/table/Table.ts",
1791
+ "declarations": [
1792
+ {
1793
+ "kind": "class",
1794
+ "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.",
1795
+ "name": "Table",
1796
+ "slots": [
1797
+ {
1798
+ "description": "The table.",
1799
+ "name": ""
1800
+ }
1801
+ ],
1802
+ "members": [
1803
+ {
1804
+ "kind": "field",
1805
+ "name": "density",
1806
+ "type": {
1807
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
1808
+ },
1809
+ "default": "\"default\"",
1810
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
1811
+ "attribute": "density",
1812
+ "reflects": true
1146
1813
  },
1147
1814
  {
1148
1815
  "kind": "method",
@@ -1155,6 +1822,20 @@
1155
1822
  "name": "createRenderRoot",
1156
1823
  "privacy": "protected",
1157
1824
  "description": "opt out of shadow dom"
1825
+ },
1826
+ {
1827
+ "kind": "field",
1828
+ "name": "_warningLogged",
1829
+ "type": {
1830
+ "text": "boolean"
1831
+ },
1832
+ "privacy": "private",
1833
+ "static": true,
1834
+ "default": "false",
1835
+ "inheritedFrom": {
1836
+ "name": "DraftComponentMixin",
1837
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1838
+ }
1158
1839
  }
1159
1840
  ],
1160
1841
  "attributes": [
@@ -1168,11 +1849,18 @@
1168
1849
  "fieldName": "density"
1169
1850
  }
1170
1851
  ],
1852
+ "mixins": [
1853
+ {
1854
+ "name": "DraftComponentMixin",
1855
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1856
+ }
1857
+ ],
1171
1858
  "superclass": {
1172
1859
  "name": "LitElement",
1173
1860
  "package": "lit"
1174
1861
  },
1175
1862
  "status": "draft",
1863
+ "category": "list",
1176
1864
  "tagName": "nord-table",
1177
1865
  "customElement": true
1178
1866
  }
@@ -1202,7 +1890,7 @@
1202
1890
  "declarations": [
1203
1891
  {
1204
1892
  "kind": "class",
1205
- "description": "Visually Hidden is used when an element needs to be available to assistive technology, but be otherwise hidden.",
1893
+ "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
1206
1894
  "name": "VisuallyHidden",
1207
1895
  "slots": [
1208
1896
  {
@@ -1210,12 +1898,34 @@
1210
1898
  "name": ""
1211
1899
  }
1212
1900
  ],
1213
- "members": [],
1901
+ "members": [
1902
+ {
1903
+ "kind": "field",
1904
+ "name": "_warningLogged",
1905
+ "type": {
1906
+ "text": "boolean"
1907
+ },
1908
+ "privacy": "private",
1909
+ "static": true,
1910
+ "default": "false",
1911
+ "inheritedFrom": {
1912
+ "name": "DraftComponentMixin",
1913
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1914
+ }
1915
+ }
1916
+ ],
1917
+ "mixins": [
1918
+ {
1919
+ "name": "DraftComponentMixin",
1920
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1921
+ }
1922
+ ],
1214
1923
  "superclass": {
1215
1924
  "name": "LitElement",
1216
1925
  "package": "lit"
1217
1926
  },
1218
1927
  "status": "draft",
1928
+ "category": "text",
1219
1929
  "tagName": "nord-visually-hidden",
1220
1930
  "customElement": true
1221
1931
  }
@@ -1239,6 +1949,67 @@
1239
1949
  }
1240
1950
  ]
1241
1951
  },
1952
+ {
1953
+ "kind": "javascript-module",
1954
+ "path": "src/common/directives/cond.ts",
1955
+ "declarations": [
1956
+ {
1957
+ "kind": "variable",
1958
+ "name": "cond"
1959
+ }
1960
+ ],
1961
+ "exports": [
1962
+ {
1963
+ "kind": "js",
1964
+ "name": "cond",
1965
+ "declaration": {
1966
+ "name": "cond",
1967
+ "module": "src/common/directives/cond.ts"
1968
+ }
1969
+ }
1970
+ ]
1971
+ },
1972
+ {
1973
+ "kind": "javascript-module",
1974
+ "path": "src/common/mixins/DraftComponentMixin.ts",
1975
+ "declarations": [
1976
+ {
1977
+ "kind": "mixin",
1978
+ "description": "",
1979
+ "name": "DraftComponentMixin",
1980
+ "members": [
1981
+ {
1982
+ "kind": "field",
1983
+ "name": "_warningLogged",
1984
+ "type": {
1985
+ "text": "boolean"
1986
+ },
1987
+ "privacy": "private",
1988
+ "static": true,
1989
+ "default": "false"
1990
+ }
1991
+ ],
1992
+ "parameters": [
1993
+ {
1994
+ "name": "superClass",
1995
+ "type": {
1996
+ "text": "T"
1997
+ }
1998
+ }
1999
+ ]
2000
+ }
2001
+ ],
2002
+ "exports": [
2003
+ {
2004
+ "kind": "js",
2005
+ "name": "DraftComponentMixin",
2006
+ "declaration": {
2007
+ "name": "DraftComponentMixin",
2008
+ "module": "src/common/mixins/DraftComponentMixin.ts"
2009
+ }
2010
+ }
2011
+ ]
2012
+ },
1242
2013
  {
1243
2014
  "kind": "javascript-module",
1244
2015
  "path": "src/common/mixins/FocusableMixin.ts",