@nordhealth/components 2.14.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/custom-elements.json +410 -336
  2. package/lib/{Calendar-e8cd9558.js → Calendar-82dc5980.js} +1 -1
  3. package/lib/{Calendar-e8cd9558.js.map → Calendar-82dc5980.js.map} +1 -1
  4. package/lib/Calendar.js +1 -1
  5. package/lib/Checkbox.js +1 -1
  6. package/lib/CommandMenu.js +1 -1
  7. package/lib/DatePicker.js +1 -1
  8. package/lib/DateSelectEvent.js +1 -1
  9. package/lib/Dropdown.js +1 -1
  10. package/lib/Dropdown.js.map +1 -1
  11. package/lib/{FormAssociatedMixin-f4da77a8.js → FormAssociatedMixin-dc7ee1d9.js} +2 -2
  12. package/lib/{FormAssociatedMixin-f4da77a8.js.map → FormAssociatedMixin-dc7ee1d9.js.map} +1 -1
  13. package/lib/Input.js +1 -1
  14. package/lib/Layout.js +1 -1
  15. package/lib/Layout.js.map +1 -1
  16. package/lib/Modal.js +1 -1
  17. package/lib/NavItem.js +1 -1
  18. package/lib/Popout-4584e406.js +2 -0
  19. package/lib/Popout-4584e406.js.map +1 -0
  20. package/lib/Popout.js +1 -1
  21. package/lib/Radio.js +1 -1
  22. package/lib/Range.js +1 -1
  23. package/lib/Select.js +1 -1
  24. package/lib/SelectEvent.js +1 -1
  25. package/lib/Textarea.js +1 -1
  26. package/lib/Toast.js +1 -1
  27. package/lib/Toggle.js +1 -1
  28. package/lib/bundle.js +3 -3
  29. package/lib/bundle.js.map +1 -1
  30. package/lib/events-5337a6d7.js +2 -0
  31. package/lib/events-5337a6d7.js.map +1 -0
  32. package/lib/index.js +1 -1
  33. package/lib/src/common/events.d.ts +2 -0
  34. package/lib/src/dropdown/Dropdown.d.ts +6 -2
  35. package/lib/src/layout/Layout.d.ts +5 -0
  36. package/lib/src/popout/Popout.d.ts +8 -5
  37. package/package.json +2 -2
  38. package/lib/Popout-dae54e30.js +0 -2
  39. package/lib/Popout-dae54e30.js.map +0 -1
  40. package/lib/events-731d0007.js +0 -2
  41. package/lib/events-731d0007.js.map +0 -1
@@ -568,6 +568,93 @@
568
568
  }
569
569
  ]
570
570
  },
571
+ {
572
+ "kind": "javascript-module",
573
+ "path": "src/badge/Badge.ts",
574
+ "declarations": [
575
+ {
576
+ "kind": "class",
577
+ "description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
578
+ "name": "Badge",
579
+ "slots": [
580
+ {
581
+ "description": "The badge content.",
582
+ "name": ""
583
+ }
584
+ ],
585
+ "members": [
586
+ {
587
+ "kind": "field",
588
+ "name": "type",
589
+ "type": {
590
+ "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
591
+ },
592
+ "default": "\"neutral\"",
593
+ "description": "The type of badge.\nDetermines the background color of the badge.",
594
+ "attribute": "type",
595
+ "reflects": true
596
+ },
597
+ {
598
+ "kind": "field",
599
+ "name": "progress",
600
+ "type": {
601
+ "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
602
+ },
603
+ "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
604
+ "attribute": "progress"
605
+ }
606
+ ],
607
+ "attributes": [
608
+ {
609
+ "name": "type",
610
+ "type": {
611
+ "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
612
+ },
613
+ "default": "\"neutral\"",
614
+ "description": "The type of badge.\nDetermines the background color of the badge.",
615
+ "fieldName": "type"
616
+ },
617
+ {
618
+ "name": "progress",
619
+ "type": {
620
+ "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
621
+ },
622
+ "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
623
+ "fieldName": "progress"
624
+ }
625
+ ],
626
+ "superclass": {
627
+ "name": "LitElement",
628
+ "package": "lit"
629
+ },
630
+ "localization": [],
631
+ "status": "ready",
632
+ "category": "text",
633
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
634
+ "examples": [],
635
+ "tagName": "nord-badge",
636
+ "customElement": true
637
+ }
638
+ ],
639
+ "exports": [
640
+ {
641
+ "kind": "js",
642
+ "name": "default",
643
+ "declaration": {
644
+ "name": "Badge",
645
+ "module": "src/badge/Badge.ts"
646
+ }
647
+ },
648
+ {
649
+ "kind": "custom-element-definition",
650
+ "name": "nord-badge",
651
+ "declaration": {
652
+ "name": "Badge",
653
+ "module": "src/badge/Badge.ts"
654
+ }
655
+ }
656
+ ]
657
+ },
571
658
  {
572
659
  "kind": "javascript-module",
573
660
  "path": "src/banner/Banner.ts",
@@ -1190,93 +1277,6 @@
1190
1277
  }
1191
1278
  ]
1192
1279
  },
1193
- {
1194
- "kind": "javascript-module",
1195
- "path": "src/badge/Badge.ts",
1196
- "declarations": [
1197
- {
1198
- "kind": "class",
1199
- "description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
1200
- "name": "Badge",
1201
- "slots": [
1202
- {
1203
- "description": "The badge content.",
1204
- "name": ""
1205
- }
1206
- ],
1207
- "members": [
1208
- {
1209
- "kind": "field",
1210
- "name": "type",
1211
- "type": {
1212
- "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
1213
- },
1214
- "default": "\"neutral\"",
1215
- "description": "The type of badge.\nDetermines the background color of the badge.",
1216
- "attribute": "type",
1217
- "reflects": true
1218
- },
1219
- {
1220
- "kind": "field",
1221
- "name": "progress",
1222
- "type": {
1223
- "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
1224
- },
1225
- "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
1226
- "attribute": "progress"
1227
- }
1228
- ],
1229
- "attributes": [
1230
- {
1231
- "name": "type",
1232
- "type": {
1233
- "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
1234
- },
1235
- "default": "\"neutral\"",
1236
- "description": "The type of badge.\nDetermines the background color of the badge.",
1237
- "fieldName": "type"
1238
- },
1239
- {
1240
- "name": "progress",
1241
- "type": {
1242
- "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
1243
- },
1244
- "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
1245
- "fieldName": "progress"
1246
- }
1247
- ],
1248
- "superclass": {
1249
- "name": "LitElement",
1250
- "package": "lit"
1251
- },
1252
- "localization": [],
1253
- "status": "ready",
1254
- "category": "text",
1255
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
1256
- "examples": [],
1257
- "tagName": "nord-badge",
1258
- "customElement": true
1259
- }
1260
- ],
1261
- "exports": [
1262
- {
1263
- "kind": "js",
1264
- "name": "default",
1265
- "declaration": {
1266
- "name": "Badge",
1267
- "module": "src/badge/Badge.ts"
1268
- }
1269
- },
1270
- {
1271
- "kind": "custom-element-definition",
1272
- "name": "nord-badge",
1273
- "declaration": {
1274
- "name": "Badge",
1275
- "module": "src/badge/Badge.ts"
1276
- }
1277
- }
1278
- ]
1279
- },
1280
1280
  {
1281
1281
  "kind": "javascript-module",
1282
1282
  "path": "src/button-group/ButtonGroup.ts",
@@ -4128,6 +4128,36 @@
4128
4128
  "name": "Event",
4129
4129
  "module": "src/common/events.ts"
4130
4130
  }
4131
+ },
4132
+ {
4133
+ "kind": "function",
4134
+ "name": "oneEvent",
4135
+ "parameters": [
4136
+ {
4137
+ "name": "element",
4138
+ "type": {
4139
+ "text": "HTMLElement"
4140
+ }
4141
+ },
4142
+ {
4143
+ "name": "type",
4144
+ "type": {
4145
+ "text": "K"
4146
+ }
4147
+ }
4148
+ ]
4149
+ },
4150
+ {
4151
+ "kind": "function",
4152
+ "name": "transition",
4153
+ "parameters": [
4154
+ {
4155
+ "name": "element",
4156
+ "type": {
4157
+ "text": "HTMLElement"
4158
+ }
4159
+ }
4160
+ ]
4131
4161
  }
4132
4162
  ],
4133
4163
  "exports": [
@@ -4138,6 +4168,22 @@
4138
4168
  "name": "NordEvent",
4139
4169
  "module": "src/common/events.ts"
4140
4170
  }
4171
+ },
4172
+ {
4173
+ "kind": "js",
4174
+ "name": "oneEvent",
4175
+ "declaration": {
4176
+ "name": "oneEvent",
4177
+ "module": "src/common/events.ts"
4178
+ }
4179
+ },
4180
+ {
4181
+ "kind": "js",
4182
+ "name": "transition",
4183
+ "declaration": {
4184
+ "name": "transition",
4185
+ "module": "src/common/events.ts"
4186
+ }
4141
4187
  }
4142
4188
  ]
4143
4189
  },
@@ -5796,73 +5842,6 @@
5796
5842
  }
5797
5843
  ]
5798
5844
  },
5799
- {
5800
- "kind": "javascript-module",
5801
- "path": "src/dropdown-group/DropdownGroup.ts",
5802
- "declarations": [
5803
- {
5804
- "kind": "class",
5805
- "description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
5806
- "name": "DropdownGroup",
5807
- "slots": [
5808
- {
5809
- "description": "The dropdown group content.",
5810
- "name": ""
5811
- }
5812
- ],
5813
- "members": [
5814
- {
5815
- "kind": "field",
5816
- "name": "heading",
5817
- "type": {
5818
- "text": "string | undefined"
5819
- },
5820
- "description": "Heading and accessible label for the dropdown group.",
5821
- "attribute": "heading"
5822
- }
5823
- ],
5824
- "attributes": [
5825
- {
5826
- "name": "heading",
5827
- "type": {
5828
- "text": "string | undefined"
5829
- },
5830
- "description": "Heading and accessible label for the dropdown group.",
5831
- "fieldName": "heading"
5832
- }
5833
- ],
5834
- "superclass": {
5835
- "name": "LitElement",
5836
- "package": "lit"
5837
- },
5838
- "localization": [],
5839
- "status": "ready",
5840
- "category": "action",
5841
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
5842
- "examples": [],
5843
- "tagName": "nord-dropdown-group",
5844
- "customElement": true
5845
- }
5846
- ],
5847
- "exports": [
5848
- {
5849
- "kind": "js",
5850
- "name": "default",
5851
- "declaration": {
5852
- "name": "DropdownGroup",
5853
- "module": "src/dropdown-group/DropdownGroup.ts"
5854
- }
5855
- },
5856
- {
5857
- "kind": "custom-element-definition",
5858
- "name": "nord-dropdown-group",
5859
- "declaration": {
5860
- "name": "DropdownGroup",
5861
- "module": "src/dropdown-group/DropdownGroup.ts"
5862
- }
5863
- }
5864
- ]
5865
- },
5866
5845
  {
5867
5846
  "kind": "javascript-module",
5868
5847
  "path": "src/dropdown/Dropdown.ts",
@@ -5945,6 +5924,11 @@
5945
5924
  {
5946
5925
  "kind": "method",
5947
5926
  "name": "hide",
5927
+ "return": {
5928
+ "type": {
5929
+ "text": "Promise<TransitionEvent | void>"
5930
+ }
5931
+ },
5948
5932
  "parameters": [
5949
5933
  {
5950
5934
  "name": "moveFocusToButton",
@@ -5955,12 +5939,17 @@
5955
5939
  "description": "A boolean option to move the focus to the original button that opens the dropdown."
5956
5940
  }
5957
5941
  ],
5958
- "description": "Hide the dropdown programmatically."
5942
+ "description": "Hide the dropdown programmatically.\nThis method delegates to the Dropdown's internal Popout component.\nSee [Popout's hide() method](/components/popout#methods-hide) for more details."
5959
5943
  },
5960
5944
  {
5961
5945
  "kind": "method",
5962
5946
  "name": "show",
5963
- "description": "Show the dropdown programmatically."
5947
+ "return": {
5948
+ "type": {
5949
+ "text": "Promise<TransitionEvent | void>"
5950
+ }
5951
+ },
5952
+ "description": "Show the dropdown programmatically.\nThis method delegates to the Dropdown's internal Popout component.\nSee [Popout's show() method](/components/popout#methods-hide) for more details."
5964
5953
  },
5965
5954
  {
5966
5955
  "kind": "field",
@@ -6105,6 +6094,73 @@
6105
6094
  }
6106
6095
  ]
6107
6096
  },
6097
+ {
6098
+ "kind": "javascript-module",
6099
+ "path": "src/dropdown-group/DropdownGroup.ts",
6100
+ "declarations": [
6101
+ {
6102
+ "kind": "class",
6103
+ "description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
6104
+ "name": "DropdownGroup",
6105
+ "slots": [
6106
+ {
6107
+ "description": "The dropdown group content.",
6108
+ "name": ""
6109
+ }
6110
+ ],
6111
+ "members": [
6112
+ {
6113
+ "kind": "field",
6114
+ "name": "heading",
6115
+ "type": {
6116
+ "text": "string | undefined"
6117
+ },
6118
+ "description": "Heading and accessible label for the dropdown group.",
6119
+ "attribute": "heading"
6120
+ }
6121
+ ],
6122
+ "attributes": [
6123
+ {
6124
+ "name": "heading",
6125
+ "type": {
6126
+ "text": "string | undefined"
6127
+ },
6128
+ "description": "Heading and accessible label for the dropdown group.",
6129
+ "fieldName": "heading"
6130
+ }
6131
+ ],
6132
+ "superclass": {
6133
+ "name": "LitElement",
6134
+ "package": "lit"
6135
+ },
6136
+ "localization": [],
6137
+ "status": "ready",
6138
+ "category": "action",
6139
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
6140
+ "examples": [],
6141
+ "tagName": "nord-dropdown-group",
6142
+ "customElement": true
6143
+ }
6144
+ ],
6145
+ "exports": [
6146
+ {
6147
+ "kind": "js",
6148
+ "name": "default",
6149
+ "declaration": {
6150
+ "name": "DropdownGroup",
6151
+ "module": "src/dropdown-group/DropdownGroup.ts"
6152
+ }
6153
+ },
6154
+ {
6155
+ "kind": "custom-element-definition",
6156
+ "name": "nord-dropdown-group",
6157
+ "declaration": {
6158
+ "name": "DropdownGroup",
6159
+ "module": "src/dropdown-group/DropdownGroup.ts"
6160
+ }
6161
+ }
6162
+ ]
6163
+ },
6108
6164
  {
6109
6165
  "kind": "javascript-module",
6110
6166
  "path": "src/dropdown-item/DropdownItem.ts",
@@ -7830,6 +7886,14 @@
7830
7886
  "attribute": "sticky",
7831
7887
  "reflects": true
7832
7888
  },
7889
+ {
7890
+ "kind": "field",
7891
+ "name": "isNarrow",
7892
+ "type": {
7893
+ "text": "boolean"
7894
+ },
7895
+ "description": "A getter whose values reflects whether the layout component considers the viewport to be narrow or not.\nA narrow viewport is considered to be less than 768px wide."
7896
+ },
7833
7897
  {
7834
7898
  "kind": "method",
7835
7899
  "name": "renderNavToggle",
@@ -8826,7 +8890,118 @@
8826
8890
  "category": "navigation",
8827
8891
  "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
8828
8892
  "examples": [],
8829
- "tagName": "nord-nav-group",
8893
+ "tagName": "nord-nav-group",
8894
+ "customElement": true
8895
+ }
8896
+ ],
8897
+ "exports": [
8898
+ {
8899
+ "kind": "js",
8900
+ "name": "default",
8901
+ "declaration": {
8902
+ "name": "NavGroup",
8903
+ "module": "src/nav-group/NavGroup.ts"
8904
+ }
8905
+ },
8906
+ {
8907
+ "kind": "custom-element-definition",
8908
+ "name": "nord-nav-group",
8909
+ "declaration": {
8910
+ "name": "NavGroup",
8911
+ "module": "src/nav-group/NavGroup.ts"
8912
+ }
8913
+ }
8914
+ ]
8915
+ },
8916
+ {
8917
+ "kind": "javascript-module",
8918
+ "path": "src/nav-toggle/NavToggle.ts",
8919
+ "declarations": [
8920
+ {
8921
+ "kind": "class",
8922
+ "description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behaviour.",
8923
+ "name": "NavToggle",
8924
+ "members": [
8925
+ {
8926
+ "kind": "field",
8927
+ "name": "direction",
8928
+ "privacy": "private",
8929
+ "default": "new DirectionController(this)"
8930
+ },
8931
+ {
8932
+ "kind": "field",
8933
+ "name": "localization",
8934
+ "privacy": "private",
8935
+ "default": "new LocalizeController<\"nord-nav-toggle\">(this)"
8936
+ },
8937
+ {
8938
+ "kind": "field",
8939
+ "name": "focusableRef",
8940
+ "privacy": "protected",
8941
+ "inheritedFrom": {
8942
+ "name": "FocusableMixin",
8943
+ "module": "src/common/mixins/FocusableMixin.ts"
8944
+ }
8945
+ },
8946
+ {
8947
+ "kind": "method",
8948
+ "name": "focus",
8949
+ "parameters": [
8950
+ {
8951
+ "name": "options",
8952
+ "optional": true,
8953
+ "type": {
8954
+ "text": "FocusOptions"
8955
+ },
8956
+ "description": "An object which controls aspects of the focusing process."
8957
+ }
8958
+ ],
8959
+ "description": "Programmatically move focus to the component.",
8960
+ "inheritedFrom": {
8961
+ "name": "FocusableMixin",
8962
+ "module": "src/common/mixins/FocusableMixin.ts"
8963
+ }
8964
+ },
8965
+ {
8966
+ "kind": "method",
8967
+ "name": "blur",
8968
+ "description": "Programmatically remove focus from the component.",
8969
+ "inheritedFrom": {
8970
+ "name": "FocusableMixin",
8971
+ "module": "src/common/mixins/FocusableMixin.ts"
8972
+ }
8973
+ },
8974
+ {
8975
+ "kind": "method",
8976
+ "name": "click",
8977
+ "description": "Programmatically simulates a click on the component.",
8978
+ "inheritedFrom": {
8979
+ "name": "FocusableMixin",
8980
+ "module": "src/common/mixins/FocusableMixin.ts"
8981
+ }
8982
+ }
8983
+ ],
8984
+ "mixins": [
8985
+ {
8986
+ "name": "FocusableMixin",
8987
+ "module": "/src/common/mixins/FocusableMixin.js"
8988
+ }
8989
+ ],
8990
+ "superclass": {
8991
+ "name": "LitElement",
8992
+ "package": "lit"
8993
+ },
8994
+ "localization": [
8995
+ {
8996
+ "name": "label",
8997
+ "description": "Accessible label for the nav toggle button."
8998
+ }
8999
+ ],
9000
+ "status": "new",
9001
+ "category": "action",
9002
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip with the toggle that’s labelled as `Toggle navigation`.\n- We recommend setting a keyboard shortcut that toggles the navigation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic button or toggle. Use the [Button component](/components/button/) instead.\n\n</div>\n",
9003
+ "examples": [],
9004
+ "tagName": "nord-nav-toggle",
8830
9005
  "customElement": true
8831
9006
  }
8832
9007
  ],
@@ -8835,16 +9010,40 @@
8835
9010
  "kind": "js",
8836
9011
  "name": "default",
8837
9012
  "declaration": {
8838
- "name": "NavGroup",
8839
- "module": "src/nav-group/NavGroup.ts"
9013
+ "name": "NavToggle",
9014
+ "module": "src/nav-toggle/NavToggle.ts"
8840
9015
  }
8841
9016
  },
8842
9017
  {
8843
9018
  "kind": "custom-element-definition",
8844
- "name": "nord-nav-group",
9019
+ "name": "nord-nav-toggle",
8845
9020
  "declaration": {
8846
- "name": "NavGroup",
8847
- "module": "src/nav-group/NavGroup.ts"
9021
+ "name": "NavToggle",
9022
+ "module": "src/nav-toggle/NavToggle.ts"
9023
+ }
9024
+ }
9025
+ ]
9026
+ },
9027
+ {
9028
+ "kind": "javascript-module",
9029
+ "path": "src/nav-toggle/localization.ts",
9030
+ "declarations": [
9031
+ {
9032
+ "kind": "variable",
9033
+ "name": "localization",
9034
+ "type": {
9035
+ "text": "object"
9036
+ },
9037
+ "default": "{\n label: \"Toggle navigation\",\n}"
9038
+ }
9039
+ ],
9040
+ "exports": [
9041
+ {
9042
+ "kind": "js",
9043
+ "name": "default",
9044
+ "declaration": {
9045
+ "name": "localization",
9046
+ "module": "src/nav-toggle/localization.ts"
8848
9047
  }
8849
9048
  }
8850
9049
  ]
@@ -9110,141 +9309,6 @@
9110
9309
  }
9111
9310
  ]
9112
9311
  },
9113
- {
9114
- "kind": "javascript-module",
9115
- "path": "src/nav-toggle/NavToggle.ts",
9116
- "declarations": [
9117
- {
9118
- "kind": "class",
9119
- "description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behaviour.",
9120
- "name": "NavToggle",
9121
- "members": [
9122
- {
9123
- "kind": "field",
9124
- "name": "direction",
9125
- "privacy": "private",
9126
- "default": "new DirectionController(this)"
9127
- },
9128
- {
9129
- "kind": "field",
9130
- "name": "localization",
9131
- "privacy": "private",
9132
- "default": "new LocalizeController<\"nord-nav-toggle\">(this)"
9133
- },
9134
- {
9135
- "kind": "field",
9136
- "name": "focusableRef",
9137
- "privacy": "protected",
9138
- "inheritedFrom": {
9139
- "name": "FocusableMixin",
9140
- "module": "src/common/mixins/FocusableMixin.ts"
9141
- }
9142
- },
9143
- {
9144
- "kind": "method",
9145
- "name": "focus",
9146
- "parameters": [
9147
- {
9148
- "name": "options",
9149
- "optional": true,
9150
- "type": {
9151
- "text": "FocusOptions"
9152
- },
9153
- "description": "An object which controls aspects of the focusing process."
9154
- }
9155
- ],
9156
- "description": "Programmatically move focus to the component.",
9157
- "inheritedFrom": {
9158
- "name": "FocusableMixin",
9159
- "module": "src/common/mixins/FocusableMixin.ts"
9160
- }
9161
- },
9162
- {
9163
- "kind": "method",
9164
- "name": "blur",
9165
- "description": "Programmatically remove focus from the component.",
9166
- "inheritedFrom": {
9167
- "name": "FocusableMixin",
9168
- "module": "src/common/mixins/FocusableMixin.ts"
9169
- }
9170
- },
9171
- {
9172
- "kind": "method",
9173
- "name": "click",
9174
- "description": "Programmatically simulates a click on the component.",
9175
- "inheritedFrom": {
9176
- "name": "FocusableMixin",
9177
- "module": "src/common/mixins/FocusableMixin.ts"
9178
- }
9179
- }
9180
- ],
9181
- "mixins": [
9182
- {
9183
- "name": "FocusableMixin",
9184
- "module": "/src/common/mixins/FocusableMixin.js"
9185
- }
9186
- ],
9187
- "superclass": {
9188
- "name": "LitElement",
9189
- "package": "lit"
9190
- },
9191
- "localization": [
9192
- {
9193
- "name": "label",
9194
- "description": "Accessible label for the nav toggle button."
9195
- }
9196
- ],
9197
- "status": "new",
9198
- "category": "action",
9199
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip with the toggle that’s labelled as `Toggle navigation`.\n- We recommend setting a keyboard shortcut that toggles the navigation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic button or toggle. Use the [Button component](/components/button/) instead.\n\n</div>\n",
9200
- "examples": [],
9201
- "tagName": "nord-nav-toggle",
9202
- "customElement": true
9203
- }
9204
- ],
9205
- "exports": [
9206
- {
9207
- "kind": "js",
9208
- "name": "default",
9209
- "declaration": {
9210
- "name": "NavToggle",
9211
- "module": "src/nav-toggle/NavToggle.ts"
9212
- }
9213
- },
9214
- {
9215
- "kind": "custom-element-definition",
9216
- "name": "nord-nav-toggle",
9217
- "declaration": {
9218
- "name": "NavToggle",
9219
- "module": "src/nav-toggle/NavToggle.ts"
9220
- }
9221
- }
9222
- ]
9223
- },
9224
- {
9225
- "kind": "javascript-module",
9226
- "path": "src/nav-toggle/localization.ts",
9227
- "declarations": [
9228
- {
9229
- "kind": "variable",
9230
- "name": "localization",
9231
- "type": {
9232
- "text": "object"
9233
- },
9234
- "default": "{\n label: \"Toggle navigation\",\n}"
9235
- }
9236
- ],
9237
- "exports": [
9238
- {
9239
- "kind": "js",
9240
- "name": "default",
9241
- "declaration": {
9242
- "name": "localization",
9243
- "module": "src/nav-toggle/localization.ts"
9244
- }
9245
- }
9246
- ]
9247
- },
9248
9312
  {
9249
9313
  "kind": "javascript-module",
9250
9314
  "path": "src/navigation/Navigation.ts",
@@ -9409,22 +9473,32 @@
9409
9473
  {
9410
9474
  "kind": "method",
9411
9475
  "name": "show",
9412
- "description": "Show the popout, moving focus to the calendar inside."
9476
+ "return": {
9477
+ "type": {
9478
+ "text": "Promise<TransitionEvent | void>"
9479
+ }
9480
+ },
9481
+ "description": "Show the popout.\nA promise that resolves to a `TransitionEvent` when the popout's show animation ends or is cancelled.\nIf the popout is already open, the promise resolves immediately with `undefined`."
9413
9482
  },
9414
9483
  {
9415
9484
  "kind": "method",
9416
9485
  "name": "hide",
9486
+ "return": {
9487
+ "type": {
9488
+ "text": "Promise<TransitionEvent | void>"
9489
+ }
9490
+ },
9417
9491
  "parameters": [
9418
9492
  {
9419
9493
  "name": "moveFocusToButton",
9420
9494
  "default": "true",
9421
- "description": "prevent focus returning to the target\nbutton. Default is true.",
9422
9495
  "type": {
9423
9496
  "text": "boolean"
9424
- }
9497
+ },
9498
+ "description": "prevent focus returning to the target button. Default is true."
9425
9499
  }
9426
9500
  ],
9427
- "description": "Hide the popout."
9501
+ "description": "Hide the popout.\nReturns a promise that resolves to a `TransitionEvent` when the popout's hide animation ends or is cancelled.\nIf the popout is already closed, the promise resolves immediately with `undefined`."
9428
9502
  },
9429
9503
  {
9430
9504
  "kind": "method",
@@ -15081,41 +15155,6 @@
15081
15155
  }
15082
15156
  ]
15083
15157
  },
15084
- {
15085
- "kind": "javascript-module",
15086
- "path": "src/common/decorators/observe.ts",
15087
- "declarations": [
15088
- {
15089
- "kind": "function",
15090
- "name": "observe",
15091
- "parameters": [
15092
- {
15093
- "name": "propertyName",
15094
- "type": {
15095
- "text": "string"
15096
- }
15097
- },
15098
- {
15099
- "name": "lifecycle",
15100
- "default": "\"update\"",
15101
- "type": {
15102
- "text": "ObserveLifecycle"
15103
- }
15104
- }
15105
- ]
15106
- }
15107
- ],
15108
- "exports": [
15109
- {
15110
- "kind": "js",
15111
- "name": "observe",
15112
- "declaration": {
15113
- "name": "observe",
15114
- "module": "src/common/decorators/observe.ts"
15115
- }
15116
- }
15117
- ]
15118
- },
15119
15158
  {
15120
15159
  "kind": "javascript-module",
15121
15160
  "path": "src/common/controllers/DirectionController.ts",
@@ -16173,6 +16212,41 @@
16173
16212
  }
16174
16213
  ]
16175
16214
  },
16215
+ {
16216
+ "kind": "javascript-module",
16217
+ "path": "src/common/decorators/observe.ts",
16218
+ "declarations": [
16219
+ {
16220
+ "kind": "function",
16221
+ "name": "observe",
16222
+ "parameters": [
16223
+ {
16224
+ "name": "propertyName",
16225
+ "type": {
16226
+ "text": "string"
16227
+ }
16228
+ },
16229
+ {
16230
+ "name": "lifecycle",
16231
+ "default": "\"update\"",
16232
+ "type": {
16233
+ "text": "ObserveLifecycle"
16234
+ }
16235
+ }
16236
+ ]
16237
+ }
16238
+ ],
16239
+ "exports": [
16240
+ {
16241
+ "kind": "js",
16242
+ "name": "observe",
16243
+ "declaration": {
16244
+ "name": "observe",
16245
+ "module": "src/common/decorators/observe.ts"
16246
+ }
16247
+ }
16248
+ ]
16249
+ },
16176
16250
  {
16177
16251
  "kind": "javascript-module",
16178
16252
  "path": "src/common/directives/cond.ts",