@nordhealth/components 3.4.0-alpha.1 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6330,6 +6330,74 @@
6330
6330
  }
6331
6331
  ]
6332
6332
  },
6333
+ {
6334
+ "kind": "javascript-module",
6335
+ "path": "src/dropdown-group/DropdownGroup.ts",
6336
+ "declarations": [
6337
+ {
6338
+ "kind": "class",
6339
+ "description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
6340
+ "name": "DropdownGroup",
6341
+ "slots": [
6342
+ {
6343
+ "description": "The dropdown group content.",
6344
+ "name": ""
6345
+ }
6346
+ ],
6347
+ "members": [
6348
+ {
6349
+ "kind": "field",
6350
+ "name": "heading",
6351
+ "type": {
6352
+ "text": "string | undefined"
6353
+ },
6354
+ "description": "Heading and accessible label for the dropdown group.",
6355
+ "attribute": "heading"
6356
+ }
6357
+ ],
6358
+ "attributes": [
6359
+ {
6360
+ "name": "heading",
6361
+ "type": {
6362
+ "text": "string | undefined"
6363
+ },
6364
+ "description": "Heading and accessible label for the dropdown group.",
6365
+ "fieldName": "heading"
6366
+ }
6367
+ ],
6368
+ "superclass": {
6369
+ "name": "LitElement",
6370
+ "package": "lit"
6371
+ },
6372
+ "localization": [],
6373
+ "status": "ready",
6374
+ "category": "action",
6375
+ "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",
6376
+ "examples": [],
6377
+ "dependencies": [],
6378
+ "tagName": "nord-dropdown-group",
6379
+ "customElement": true
6380
+ }
6381
+ ],
6382
+ "exports": [
6383
+ {
6384
+ "kind": "js",
6385
+ "name": "default",
6386
+ "declaration": {
6387
+ "name": "DropdownGroup",
6388
+ "module": "src/dropdown-group/DropdownGroup.ts"
6389
+ }
6390
+ },
6391
+ {
6392
+ "kind": "custom-element-definition",
6393
+ "name": "nord-dropdown-group",
6394
+ "declaration": {
6395
+ "name": "DropdownGroup",
6396
+ "module": "src/dropdown-group/DropdownGroup.ts"
6397
+ }
6398
+ }
6399
+ ]
6400
+ },
6333
6401
  {
6334
6402
  "kind": "javascript-module",
6335
6403
  "path": "src/dropdown-item/DropdownItem.ts",
@@ -6478,74 +6546,6 @@
6478
6546
  }
6479
6547
  ]
6480
6548
  },
6481
- {
6482
- "kind": "javascript-module",
6483
- "path": "src/dropdown-group/DropdownGroup.ts",
6484
- "declarations": [
6485
- {
6486
- "kind": "class",
6487
- "description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
6488
- "name": "DropdownGroup",
6489
- "slots": [
6490
- {
6491
- "description": "The dropdown group content.",
6492
- "name": ""
6493
- }
6494
- ],
6495
- "members": [
6496
- {
6497
- "kind": "field",
6498
- "name": "heading",
6499
- "type": {
6500
- "text": "string | undefined"
6501
- },
6502
- "description": "Heading and accessible label for the dropdown group.",
6503
- "attribute": "heading"
6504
- }
6505
- ],
6506
- "attributes": [
6507
- {
6508
- "name": "heading",
6509
- "type": {
6510
- "text": "string | undefined"
6511
- },
6512
- "description": "Heading and accessible label for the dropdown group.",
6513
- "fieldName": "heading"
6514
- }
6515
- ],
6516
- "superclass": {
6517
- "name": "LitElement",
6518
- "package": "lit"
6519
- },
6520
- "localization": [],
6521
- "status": "ready",
6522
- "category": "action",
6523
- "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",
6524
- "examples": [],
6525
- "dependencies": [],
6526
- "tagName": "nord-dropdown-group",
6527
- "customElement": true
6528
- }
6529
- ],
6530
- "exports": [
6531
- {
6532
- "kind": "js",
6533
- "name": "default",
6534
- "declaration": {
6535
- "name": "DropdownGroup",
6536
- "module": "src/dropdown-group/DropdownGroup.ts"
6537
- }
6538
- },
6539
- {
6540
- "kind": "custom-element-definition",
6541
- "name": "nord-dropdown-group",
6542
- "declaration": {
6543
- "name": "DropdownGroup",
6544
- "module": "src/dropdown-group/DropdownGroup.ts"
6545
- }
6546
- }
6547
- ]
6548
- },
6549
6549
  {
6550
6550
  "kind": "javascript-module",
6551
6551
  "path": "src/empty-state/EmptyState.ts",
@@ -8174,6 +8174,12 @@
8174
8174
  "privacy": "private",
8175
8175
  "default": "new LightDismissController(this, {\n isOpen: () => this.navState === \"opened\" && !this.wideScreen,\n onDismiss: () => this.navTransition(\"close\"),\n isDismissible: node => node !== this.navEl,\n })"
8176
8176
  },
8177
+ {
8178
+ "kind": "field",
8179
+ "name": "broadcast",
8180
+ "privacy": "private",
8181
+ "default": "new BroadcastChannelController<{ navOpen: boolean } | { navWidth: number }>(this, {\n channelName: \"nord-layout-nav-state\",\n enabled: () => this.syncNavState && this.wideScreen,\n onMessage: data => {\n if (\"navOpen\" in data) {\n this.navOpen = data.navOpen\n }\n if (\"navWidth\" in data) {\n this.navWidth = data.navWidth\n }\n },\n })"
8182
+ },
8177
8183
  {
8178
8184
  "kind": "field",
8179
8185
  "name": "navEl",
@@ -8229,6 +8235,17 @@
8229
8235
  "description": "Controls whether the navigation's open/closed state is persisted across page loads.\nThis is useful for multi-page apps, where clicks on links trigger a full page load.",
8230
8236
  "attribute": "persist-nav-state"
8231
8237
  },
8238
+ {
8239
+ "kind": "field",
8240
+ "name": "syncNavState",
8241
+ "type": {
8242
+ "text": "boolean"
8243
+ },
8244
+ "default": "false",
8245
+ "description": "Controls whether the navigation's open/closed state and width is synced across tabs/windows on the same origin.\nThis is useful for long-lived app sessions where you may have multiple tabs/windows open at once.",
8246
+ "attribute": "sync-nav-state",
8247
+ "reflects": true
8248
+ },
8232
8249
  {
8233
8250
  "kind": "field",
8234
8251
  "name": "padding",
@@ -8273,7 +8290,15 @@
8273
8290
  {
8274
8291
  "kind": "method",
8275
8292
  "name": "handleNavWidthChange",
8276
- "privacy": "protected"
8293
+ "privacy": "protected",
8294
+ "parameters": [
8295
+ {
8296
+ "name": "prev",
8297
+ "type": {
8298
+ "text": "number"
8299
+ }
8300
+ }
8301
+ ]
8277
8302
  },
8278
8303
  {
8279
8304
  "kind": "method",
@@ -8291,7 +8316,15 @@
8291
8316
  {
8292
8317
  "kind": "method",
8293
8318
  "name": "handleOpenChange",
8294
- "privacy": "protected"
8319
+ "privacy": "protected",
8320
+ "parameters": [
8321
+ {
8322
+ "name": "prev",
8323
+ "type": {
8324
+ "text": "boolean"
8325
+ }
8326
+ }
8327
+ ]
8295
8328
  },
8296
8329
  {
8297
8330
  "kind": "method",
@@ -8461,6 +8494,15 @@
8461
8494
  "description": "Controls whether the navigation's open/closed state is persisted across page loads.\nThis is useful for multi-page apps, where clicks on links trigger a full page load.",
8462
8495
  "fieldName": "persistNavState"
8463
8496
  },
8497
+ {
8498
+ "name": "sync-nav-state",
8499
+ "type": {
8500
+ "text": "boolean"
8501
+ },
8502
+ "default": "false",
8503
+ "description": "Controls whether the navigation's open/closed state and width is synced across tabs/windows on the same origin.\nThis is useful for long-lived app sessions where you may have multiple tabs/windows open at once.",
8504
+ "fieldName": "syncNavState"
8505
+ },
8464
8506
  {
8465
8507
  "name": "padding",
8466
8508
  "type": {
@@ -8518,249 +8560,44 @@
8518
8560
  },
8519
8561
  {
8520
8562
  "kind": "javascript-module",
8521
- "path": "src/message/Message.ts",
8563
+ "path": "src/localization/LocalizeController.ts",
8522
8564
  "declarations": [
8523
8565
  {
8524
8566
  "kind": "class",
8525
- "description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
8526
- "name": "Message",
8527
- "cssProperties": [
8528
- {
8529
- "description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
8530
- "name": "--n-message-border-color",
8531
- "default": "var(--n-color-border)"
8532
- }
8533
- ],
8534
- "slots": [
8535
- {
8536
- "description": "The message content.",
8537
- "name": ""
8538
- },
8539
- {
8540
- "description": "Used to place content after the message. Typically used for a timestamp.",
8541
- "name": "footer"
8542
- }
8543
- ],
8567
+ "description": "",
8568
+ "name": "LocalizeController",
8544
8569
  "members": [
8545
8570
  {
8546
8571
  "kind": "field",
8547
- "name": "localize",
8548
- "privacy": "private",
8549
- "default": "new LocalizeController<\"nord-message\">(this)"
8550
- },
8551
- {
8552
- "kind": "field",
8553
- "name": "href",
8572
+ "name": "unsubscribe",
8554
8573
  "type": {
8555
- "text": "string | undefined"
8574
+ "text": "ReturnType<typeof subscribe> | undefined"
8556
8575
  },
8557
- "description": "The url the message should link to.",
8558
- "attribute": "href",
8559
- "reflects": true
8576
+ "privacy": "private"
8560
8577
  },
8561
8578
  {
8562
8579
  "kind": "field",
8563
- "name": "highlight",
8580
+ "name": "resolvedTranslation",
8564
8581
  "type": {
8565
- "text": "boolean | undefined"
8582
+ "text": "Translation"
8566
8583
  },
8567
- "description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
8568
- "attribute": "highlight",
8569
- "reflects": true
8584
+ "privacy": "private"
8570
8585
  },
8571
8586
  {
8572
8587
  "kind": "field",
8573
- "name": "unread",
8574
- "type": {
8575
- "text": "boolean | undefined"
8576
- },
8577
- "description": "Mark the message as unread. By default messages are read.",
8578
- "attribute": "unread",
8579
- "reflects": true
8588
+ "name": "lang",
8589
+ "description": "The lang of the document or element, with element taking precedence",
8590
+ "readonly": true
8580
8591
  },
8581
8592
  {
8582
8593
  "kind": "field",
8583
- "name": "focusableRef",
8584
- "privacy": "protected",
8585
- "inheritedFrom": {
8586
- "name": "FocusableMixin",
8587
- "module": "src/common/mixins/FocusableMixin.ts"
8588
- }
8594
+ "name": "resolvedLang",
8595
+ "description": "The lang of the translation being applied.\nThis may not match the document/element lang, in case of fallback translation",
8596
+ "readonly": true
8589
8597
  },
8590
8598
  {
8591
8599
  "kind": "method",
8592
- "name": "focus",
8593
- "parameters": [
8594
- {
8595
- "name": "options",
8596
- "optional": true,
8597
- "type": {
8598
- "text": "FocusOptions"
8599
- },
8600
- "description": "An object which controls aspects of the focusing process."
8601
- }
8602
- ],
8603
- "description": "Programmatically move focus to the component.",
8604
- "inheritedFrom": {
8605
- "name": "FocusableMixin",
8606
- "module": "src/common/mixins/FocusableMixin.ts"
8607
- }
8608
- },
8609
- {
8610
- "kind": "method",
8611
- "name": "blur",
8612
- "description": "Programmatically remove focus from the component.",
8613
- "inheritedFrom": {
8614
- "name": "FocusableMixin",
8615
- "module": "src/common/mixins/FocusableMixin.ts"
8616
- }
8617
- },
8618
- {
8619
- "kind": "method",
8620
- "name": "click",
8621
- "description": "Programmatically simulates a click on the component.",
8622
- "inheritedFrom": {
8623
- "name": "FocusableMixin",
8624
- "module": "src/common/mixins/FocusableMixin.ts"
8625
- }
8626
- }
8627
- ],
8628
- "attributes": [
8629
- {
8630
- "name": "href",
8631
- "type": {
8632
- "text": "string | undefined"
8633
- },
8634
- "description": "The url the message should link to.",
8635
- "fieldName": "href"
8636
- },
8637
- {
8638
- "name": "highlight",
8639
- "type": {
8640
- "text": "boolean | undefined"
8641
- },
8642
- "description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
8643
- "fieldName": "highlight"
8644
- },
8645
- {
8646
- "name": "unread",
8647
- "type": {
8648
- "text": "boolean | undefined"
8649
- },
8650
- "description": "Mark the message as unread. By default messages are read.",
8651
- "fieldName": "unread"
8652
- }
8653
- ],
8654
- "mixins": [
8655
- {
8656
- "name": "FocusableMixin",
8657
- "module": "/src/common/mixins/FocusableMixin.js"
8658
- }
8659
- ],
8660
- "superclass": {
8661
- "name": "LitElement",
8662
- "package": "lit"
8663
- },
8664
- "localization": [
8665
- {
8666
- "name": "unreadLabel",
8667
- "description": "Label for the unread messages."
8668
- }
8669
- ],
8670
- "status": "draft",
8671
- "category": "action",
8672
- "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- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
8673
- "examples": [],
8674
- "dependencies": [
8675
- "dropdown-item"
8676
- ],
8677
- "tagName": "nord-message",
8678
- "customElement": true
8679
- }
8680
- ],
8681
- "exports": [
8682
- {
8683
- "kind": "js",
8684
- "name": "default",
8685
- "declaration": {
8686
- "name": "Message",
8687
- "module": "src/message/Message.ts"
8688
- }
8689
- },
8690
- {
8691
- "kind": "custom-element-definition",
8692
- "name": "nord-message",
8693
- "declaration": {
8694
- "name": "Message",
8695
- "module": "src/message/Message.ts"
8696
- }
8697
- }
8698
- ]
8699
- },
8700
- {
8701
- "kind": "javascript-module",
8702
- "path": "src/message/localization.ts",
8703
- "declarations": [
8704
- {
8705
- "kind": "variable",
8706
- "name": "localization",
8707
- "type": {
8708
- "text": "object"
8709
- },
8710
- "default": "{\n unreadLabel: \"Unread\",\n}"
8711
- }
8712
- ],
8713
- "exports": [
8714
- {
8715
- "kind": "js",
8716
- "name": "default",
8717
- "declaration": {
8718
- "name": "localization",
8719
- "module": "src/message/localization.ts"
8720
- }
8721
- }
8722
- ]
8723
- },
8724
- {
8725
- "kind": "javascript-module",
8726
- "path": "src/localization/LocalizeController.ts",
8727
- "declarations": [
8728
- {
8729
- "kind": "class",
8730
- "description": "",
8731
- "name": "LocalizeController",
8732
- "members": [
8733
- {
8734
- "kind": "field",
8735
- "name": "unsubscribe",
8736
- "type": {
8737
- "text": "ReturnType<typeof subscribe> | undefined"
8738
- },
8739
- "privacy": "private"
8740
- },
8741
- {
8742
- "kind": "field",
8743
- "name": "resolvedTranslation",
8744
- "type": {
8745
- "text": "Translation"
8746
- },
8747
- "privacy": "private"
8748
- },
8749
- {
8750
- "kind": "field",
8751
- "name": "lang",
8752
- "description": "The lang of the document or element, with element taking precedence",
8753
- "readonly": true
8754
- },
8755
- {
8756
- "kind": "field",
8757
- "name": "resolvedLang",
8758
- "description": "The lang of the translation being applied.\nThis may not match the document/element lang, in case of fallback translation",
8759
- "readonly": true
8760
- },
8761
- {
8762
- "kind": "method",
8763
- "name": "hostConnected"
8600
+ "name": "hostConnected"
8764
8601
  },
8765
8602
  {
8766
8603
  "kind": "method",
@@ -8916,62 +8753,267 @@
8916
8753
  "name": "resolveTranslation",
8917
8754
  "parameters": [
8918
8755
  {
8919
- "name": "langCode",
8920
- "type": {
8921
- "text": "string"
8922
- }
8756
+ "name": "langCode",
8757
+ "type": {
8758
+ "text": "string"
8759
+ }
8760
+ }
8761
+ ],
8762
+ "description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
8763
+ }
8764
+ ],
8765
+ "exports": [
8766
+ {
8767
+ "kind": "js",
8768
+ "name": "clearTranslations",
8769
+ "declaration": {
8770
+ "name": "clearTranslations",
8771
+ "module": "src/localization/translation.ts"
8772
+ }
8773
+ },
8774
+ {
8775
+ "kind": "js",
8776
+ "name": "registerTranslation",
8777
+ "declaration": {
8778
+ "name": "registerTranslation",
8779
+ "module": "src/localization/translation.ts"
8780
+ }
8781
+ },
8782
+ {
8783
+ "kind": "js",
8784
+ "name": "subscribe",
8785
+ "declaration": {
8786
+ "name": "subscribe",
8787
+ "module": "src/localization/translation.ts"
8788
+ }
8789
+ },
8790
+ {
8791
+ "kind": "js",
8792
+ "name": "isTranslationRegistered",
8793
+ "declaration": {
8794
+ "name": "isTranslationRegistered",
8795
+ "module": "src/localization/translation.ts"
8796
+ }
8797
+ },
8798
+ {
8799
+ "kind": "js",
8800
+ "name": "resolveTranslation",
8801
+ "declaration": {
8802
+ "name": "resolveTranslation",
8803
+ "module": "src/localization/translation.ts"
8804
+ }
8805
+ },
8806
+ {
8807
+ "kind": "js",
8808
+ "name": "fallback",
8809
+ "declaration": {
8810
+ "name": "en",
8811
+ "module": "src/localization/translation.ts"
8812
+ }
8813
+ }
8814
+ ]
8815
+ },
8816
+ {
8817
+ "kind": "javascript-module",
8818
+ "path": "src/message/Message.ts",
8819
+ "declarations": [
8820
+ {
8821
+ "kind": "class",
8822
+ "description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
8823
+ "name": "Message",
8824
+ "cssProperties": [
8825
+ {
8826
+ "description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
8827
+ "name": "--n-message-border-color",
8828
+ "default": "var(--n-color-border)"
8829
+ }
8830
+ ],
8831
+ "slots": [
8832
+ {
8833
+ "description": "The message content.",
8834
+ "name": ""
8835
+ },
8836
+ {
8837
+ "description": "Used to place content after the message. Typically used for a timestamp.",
8838
+ "name": "footer"
8839
+ }
8840
+ ],
8841
+ "members": [
8842
+ {
8843
+ "kind": "field",
8844
+ "name": "localize",
8845
+ "privacy": "private",
8846
+ "default": "new LocalizeController<\"nord-message\">(this)"
8847
+ },
8848
+ {
8849
+ "kind": "field",
8850
+ "name": "href",
8851
+ "type": {
8852
+ "text": "string | undefined"
8853
+ },
8854
+ "description": "The url the message should link to.",
8855
+ "attribute": "href",
8856
+ "reflects": true
8857
+ },
8858
+ {
8859
+ "kind": "field",
8860
+ "name": "highlight",
8861
+ "type": {
8862
+ "text": "boolean | undefined"
8863
+ },
8864
+ "description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
8865
+ "attribute": "highlight",
8866
+ "reflects": true
8867
+ },
8868
+ {
8869
+ "kind": "field",
8870
+ "name": "unread",
8871
+ "type": {
8872
+ "text": "boolean | undefined"
8873
+ },
8874
+ "description": "Mark the message as unread. By default messages are read.",
8875
+ "attribute": "unread",
8876
+ "reflects": true
8877
+ },
8878
+ {
8879
+ "kind": "field",
8880
+ "name": "focusableRef",
8881
+ "privacy": "protected",
8882
+ "inheritedFrom": {
8883
+ "name": "FocusableMixin",
8884
+ "module": "src/common/mixins/FocusableMixin.ts"
8885
+ }
8886
+ },
8887
+ {
8888
+ "kind": "method",
8889
+ "name": "focus",
8890
+ "parameters": [
8891
+ {
8892
+ "name": "options",
8893
+ "optional": true,
8894
+ "type": {
8895
+ "text": "FocusOptions"
8896
+ },
8897
+ "description": "An object which controls aspects of the focusing process."
8898
+ }
8899
+ ],
8900
+ "description": "Programmatically move focus to the component.",
8901
+ "inheritedFrom": {
8902
+ "name": "FocusableMixin",
8903
+ "module": "src/common/mixins/FocusableMixin.ts"
8904
+ }
8905
+ },
8906
+ {
8907
+ "kind": "method",
8908
+ "name": "blur",
8909
+ "description": "Programmatically remove focus from the component.",
8910
+ "inheritedFrom": {
8911
+ "name": "FocusableMixin",
8912
+ "module": "src/common/mixins/FocusableMixin.ts"
8913
+ }
8914
+ },
8915
+ {
8916
+ "kind": "method",
8917
+ "name": "click",
8918
+ "description": "Programmatically simulates a click on the component.",
8919
+ "inheritedFrom": {
8920
+ "name": "FocusableMixin",
8921
+ "module": "src/common/mixins/FocusableMixin.ts"
8922
+ }
8923
+ }
8924
+ ],
8925
+ "attributes": [
8926
+ {
8927
+ "name": "href",
8928
+ "type": {
8929
+ "text": "string | undefined"
8930
+ },
8931
+ "description": "The url the message should link to.",
8932
+ "fieldName": "href"
8933
+ },
8934
+ {
8935
+ "name": "highlight",
8936
+ "type": {
8937
+ "text": "boolean | undefined"
8938
+ },
8939
+ "description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
8940
+ "fieldName": "highlight"
8941
+ },
8942
+ {
8943
+ "name": "unread",
8944
+ "type": {
8945
+ "text": "boolean | undefined"
8946
+ },
8947
+ "description": "Mark the message as unread. By default messages are read.",
8948
+ "fieldName": "unread"
8949
+ }
8950
+ ],
8951
+ "mixins": [
8952
+ {
8953
+ "name": "FocusableMixin",
8954
+ "module": "/src/common/mixins/FocusableMixin.js"
8923
8955
  }
8924
8956
  ],
8925
- "description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
8957
+ "superclass": {
8958
+ "name": "LitElement",
8959
+ "package": "lit"
8960
+ },
8961
+ "localization": [
8962
+ {
8963
+ "name": "unreadLabel",
8964
+ "description": "Label for the unread messages."
8965
+ }
8966
+ ],
8967
+ "status": "draft",
8968
+ "category": "action",
8969
+ "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- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
8970
+ "examples": [],
8971
+ "dependencies": [
8972
+ "dropdown-item"
8973
+ ],
8974
+ "tagName": "nord-message",
8975
+ "customElement": true
8926
8976
  }
8927
8977
  ],
8928
8978
  "exports": [
8929
8979
  {
8930
8980
  "kind": "js",
8931
- "name": "clearTranslations",
8932
- "declaration": {
8933
- "name": "clearTranslations",
8934
- "module": "src/localization/translation.ts"
8935
- }
8936
- },
8937
- {
8938
- "kind": "js",
8939
- "name": "registerTranslation",
8940
- "declaration": {
8941
- "name": "registerTranslation",
8942
- "module": "src/localization/translation.ts"
8943
- }
8944
- },
8945
- {
8946
- "kind": "js",
8947
- "name": "subscribe",
8981
+ "name": "default",
8948
8982
  "declaration": {
8949
- "name": "subscribe",
8950
- "module": "src/localization/translation.ts"
8983
+ "name": "Message",
8984
+ "module": "src/message/Message.ts"
8951
8985
  }
8952
8986
  },
8953
8987
  {
8954
- "kind": "js",
8955
- "name": "isTranslationRegistered",
8988
+ "kind": "custom-element-definition",
8989
+ "name": "nord-message",
8956
8990
  "declaration": {
8957
- "name": "isTranslationRegistered",
8958
- "module": "src/localization/translation.ts"
8991
+ "name": "Message",
8992
+ "module": "src/message/Message.ts"
8959
8993
  }
8960
- },
8994
+ }
8995
+ ]
8996
+ },
8997
+ {
8998
+ "kind": "javascript-module",
8999
+ "path": "src/message/localization.ts",
9000
+ "declarations": [
8961
9001
  {
8962
- "kind": "js",
8963
- "name": "resolveTranslation",
8964
- "declaration": {
8965
- "name": "resolveTranslation",
8966
- "module": "src/localization/translation.ts"
8967
- }
8968
- },
9002
+ "kind": "variable",
9003
+ "name": "localization",
9004
+ "type": {
9005
+ "text": "object"
9006
+ },
9007
+ "default": "{\n unreadLabel: \"Unread\",\n}"
9008
+ }
9009
+ ],
9010
+ "exports": [
8969
9011
  {
8970
9012
  "kind": "js",
8971
- "name": "fallback",
9013
+ "name": "default",
8972
9014
  "declaration": {
8973
- "name": "en",
8974
- "module": "src/localization/translation.ts"
9015
+ "name": "localization",
9016
+ "module": "src/message/localization.ts"
8975
9017
  }
8976
9018
  }
8977
9019
  ]
@@ -10124,218 +10166,46 @@
10124
10166
  "kind": "js",
10125
10167
  "name": "default",
10126
10168
  "declaration": {
10127
- "name": "localization",
10128
- "module": "src/notification/localization.ts"
10129
- }
10130
- }
10131
- ]
10132
- },
10133
- {
10134
- "kind": "javascript-module",
10135
- "path": "src/notification-group/NotificationGroup.ts",
10136
- "declarations": [
10137
- {
10138
- "kind": "class",
10139
- "description": "Notification group is used to position and style a group of notifications.",
10140
- "name": "NotificationGroup",
10141
- "slots": [
10142
- {
10143
- "description": "Default slot in which to place notifications.",
10144
- "name": ""
10145
- }
10146
- ],
10147
- "members": [
10148
- {
10149
- "kind": "field",
10150
- "name": "_warningLogged",
10151
- "type": {
10152
- "text": "boolean"
10153
- },
10154
- "privacy": "private",
10155
- "static": true,
10156
- "default": "false",
10157
- "inheritedFrom": {
10158
- "name": "DraftComponentMixin",
10159
- "module": "src/common/mixins/DraftComponentMixin.ts"
10160
- }
10161
- }
10162
- ],
10163
- "mixins": [
10164
- {
10165
- "name": "DraftComponentMixin",
10166
- "module": "/src/common/mixins/DraftComponentMixin.js"
10167
- }
10168
- ],
10169
- "superclass": {
10170
- "name": "LitElement",
10171
- "package": "lit"
10172
- },
10173
- "localization": [],
10174
- "status": "draft",
10175
- "category": "feedback",
10176
- "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 in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
10177
- "examples": [],
10178
- "dependencies": [],
10179
- "tagName": "nord-notification-group",
10180
- "customElement": true
10181
- }
10182
- ],
10183
- "exports": [
10184
- {
10185
- "kind": "js",
10186
- "name": "default",
10187
- "declaration": {
10188
- "name": "NotificationGroup",
10189
- "module": "src/notification-group/NotificationGroup.ts"
10190
- }
10191
- },
10192
- {
10193
- "kind": "custom-element-definition",
10194
- "name": "nord-notification-group",
10195
- "declaration": {
10196
- "name": "NotificationGroup",
10197
- "module": "src/notification-group/NotificationGroup.ts"
10198
- }
10199
- }
10200
- ]
10201
- },
10202
- {
10203
- "kind": "javascript-module",
10204
- "path": "src/progress-bar/ProgressBar.ts",
10205
- "declarations": [
10206
- {
10207
- "kind": "class",
10208
- "description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
10209
- "name": "ProgressBar",
10210
- "cssProperties": [
10211
- {
10212
- "description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
10213
- "name": "--n-progress-size",
10214
- "default": "var(--n-space-s)"
10215
- },
10216
- {
10217
- "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
10218
- "name": "--n-progress-border-radius",
10219
- "default": "var(--n-border-radius-s)"
10220
- },
10221
- {
10222
- "description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
10223
- "name": "--n-progress-color",
10224
- "default": "var(--n-color-accent)"
10225
- }
10226
- ],
10227
- "members": [
10228
- {
10229
- "kind": "field",
10230
- "name": "value",
10231
- "type": {
10232
- "text": "number | undefined"
10233
- },
10234
- "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
10235
- "attribute": "value",
10236
- "reflects": true
10237
- },
10238
- {
10239
- "kind": "field",
10240
- "name": "max",
10241
- "type": {
10242
- "text": "number"
10243
- },
10244
- "default": "100",
10245
- "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
10246
- "attribute": "max",
10247
- "reflects": true
10248
- },
10249
- {
10250
- "kind": "field",
10251
- "name": "label",
10252
- "type": {
10253
- "text": "string"
10254
- },
10255
- "default": "\"Current progress\"",
10256
- "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
10257
- "attribute": "label",
10258
- "reflects": true
10259
- },
10260
- {
10261
- "kind": "field",
10262
- "name": "focusableRef",
10263
- "privacy": "protected",
10264
- "inheritedFrom": {
10265
- "name": "FocusableMixin",
10266
- "module": "src/common/mixins/FocusableMixin.ts"
10267
- }
10268
- },
10269
- {
10270
- "kind": "method",
10271
- "name": "focus",
10272
- "parameters": [
10273
- {
10274
- "name": "options",
10275
- "optional": true,
10276
- "type": {
10277
- "text": "FocusOptions"
10278
- },
10279
- "description": "An object which controls aspects of the focusing process."
10280
- }
10281
- ],
10282
- "description": "Programmatically move focus to the component.",
10283
- "inheritedFrom": {
10284
- "name": "FocusableMixin",
10285
- "module": "src/common/mixins/FocusableMixin.ts"
10286
- }
10287
- },
10288
- {
10289
- "kind": "method",
10290
- "name": "blur",
10291
- "description": "Programmatically remove focus from the component.",
10292
- "inheritedFrom": {
10293
- "name": "FocusableMixin",
10294
- "module": "src/common/mixins/FocusableMixin.ts"
10295
- }
10296
- },
10169
+ "name": "localization",
10170
+ "module": "src/notification/localization.ts"
10171
+ }
10172
+ }
10173
+ ]
10174
+ },
10175
+ {
10176
+ "kind": "javascript-module",
10177
+ "path": "src/notification-group/NotificationGroup.ts",
10178
+ "declarations": [
10179
+ {
10180
+ "kind": "class",
10181
+ "description": "Notification group is used to position and style a group of notifications.",
10182
+ "name": "NotificationGroup",
10183
+ "slots": [
10297
10184
  {
10298
- "kind": "method",
10299
- "name": "click",
10300
- "description": "Programmatically simulates a click on the component.",
10301
- "inheritedFrom": {
10302
- "name": "FocusableMixin",
10303
- "module": "src/common/mixins/FocusableMixin.ts"
10304
- }
10185
+ "description": "Default slot in which to place notifications.",
10186
+ "name": ""
10305
10187
  }
10306
10188
  ],
10307
- "attributes": [
10308
- {
10309
- "name": "value",
10310
- "type": {
10311
- "text": "number | undefined"
10312
- },
10313
- "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
10314
- "fieldName": "value"
10315
- },
10316
- {
10317
- "name": "max",
10318
- "type": {
10319
- "text": "number"
10320
- },
10321
- "default": "100",
10322
- "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
10323
- "fieldName": "max"
10324
- },
10189
+ "members": [
10325
10190
  {
10326
- "name": "label",
10191
+ "kind": "field",
10192
+ "name": "_warningLogged",
10327
10193
  "type": {
10328
- "text": "string"
10194
+ "text": "boolean"
10329
10195
  },
10330
- "default": "\"Current progress\"",
10331
- "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
10332
- "fieldName": "label"
10196
+ "privacy": "private",
10197
+ "static": true,
10198
+ "default": "false",
10199
+ "inheritedFrom": {
10200
+ "name": "DraftComponentMixin",
10201
+ "module": "src/common/mixins/DraftComponentMixin.ts"
10202
+ }
10333
10203
  }
10334
10204
  ],
10335
10205
  "mixins": [
10336
10206
  {
10337
- "name": "FocusableMixin",
10338
- "module": "/src/common/mixins/FocusableMixin.js"
10207
+ "name": "DraftComponentMixin",
10208
+ "module": "/src/common/mixins/DraftComponentMixin.js"
10339
10209
  }
10340
10210
  ],
10341
10211
  "superclass": {
@@ -10343,12 +10213,12 @@
10343
10213
  "package": "lit"
10344
10214
  },
10345
10215
  "localization": [],
10346
- "status": "ready",
10216
+ "status": "draft",
10347
10217
  "category": "feedback",
10348
- "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 to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
10218
+ "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 in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it 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\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link 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\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
10349
10219
  "examples": [],
10350
10220
  "dependencies": [],
10351
- "tagName": "nord-progress-bar",
10221
+ "tagName": "nord-notification-group",
10352
10222
  "customElement": true
10353
10223
  }
10354
10224
  ],
@@ -10357,16 +10227,16 @@
10357
10227
  "kind": "js",
10358
10228
  "name": "default",
10359
10229
  "declaration": {
10360
- "name": "ProgressBar",
10361
- "module": "src/progress-bar/ProgressBar.ts"
10230
+ "name": "NotificationGroup",
10231
+ "module": "src/notification-group/NotificationGroup.ts"
10362
10232
  }
10363
10233
  },
10364
10234
  {
10365
10235
  "kind": "custom-element-definition",
10366
- "name": "nord-progress-bar",
10236
+ "name": "nord-notification-group",
10367
10237
  "declaration": {
10368
- "name": "ProgressBar",
10369
- "module": "src/progress-bar/ProgressBar.ts"
10238
+ "name": "NotificationGroup",
10239
+ "module": "src/notification-group/NotificationGroup.ts"
10370
10240
  }
10371
10241
  }
10372
10242
  ]
@@ -10636,49 +10506,221 @@
10636
10506
  "fieldName": "anchor"
10637
10507
  },
10638
10508
  {
10639
- "name": "open",
10509
+ "name": "open",
10510
+ "type": {
10511
+ "text": "boolean"
10512
+ },
10513
+ "default": "false",
10514
+ "description": "Controls whether the component is open or not.",
10515
+ "fieldName": "open",
10516
+ "inheritedFrom": {
10517
+ "name": "FloatingMixin",
10518
+ "module": "src/common/mixins/FloatingComponentMixin.ts"
10519
+ }
10520
+ },
10521
+ {
10522
+ "name": "align",
10523
+ "type": {
10524
+ "text": "\"start\" | \"end\""
10525
+ },
10526
+ "default": "\"start\"",
10527
+ "description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
10528
+ "fieldName": "align",
10529
+ "inheritedFrom": {
10530
+ "name": "FloatingMixin",
10531
+ "module": "src/common/mixins/FloatingComponentMixin.ts"
10532
+ }
10533
+ },
10534
+ {
10535
+ "name": "position",
10536
+ "type": {
10537
+ "text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
10538
+ },
10539
+ "default": "\"block-end\"",
10540
+ "description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
10541
+ "fieldName": "position",
10542
+ "inheritedFrom": {
10543
+ "name": "FloatingMixin",
10544
+ "module": "src/common/mixins/FloatingComponentMixin.ts"
10545
+ }
10546
+ }
10547
+ ],
10548
+ "mixins": [
10549
+ {
10550
+ "name": "FloatingMixin",
10551
+ "module": "/src/common/mixins/FloatingComponentMixin.js"
10552
+ }
10553
+ ],
10554
+ "superclass": {
10555
+ "name": "LitElement",
10556
+ "package": "lit"
10557
+ },
10558
+ "localization": [],
10559
+ "status": "ready",
10560
+ "category": "overlay",
10561
+ "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- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they 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\nPopout actions 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 popout actions, 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 popout actions 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 popout actions:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\n---\n\n## Additional considerations\n\n- The popout component is a containing component, only providing a way to reveal and hide controls by using a single button.\n",
10562
+ "examples": [],
10563
+ "dependencies": [],
10564
+ "tagName": "nord-popout",
10565
+ "customElement": true
10566
+ }
10567
+ ],
10568
+ "exports": [
10569
+ {
10570
+ "kind": "js",
10571
+ "name": "default",
10572
+ "declaration": {
10573
+ "name": "Popout",
10574
+ "module": "src/popout/Popout.ts"
10575
+ }
10576
+ },
10577
+ {
10578
+ "kind": "custom-element-definition",
10579
+ "name": "nord-popout",
10580
+ "declaration": {
10581
+ "name": "Popout",
10582
+ "module": "src/popout/Popout.ts"
10583
+ }
10584
+ }
10585
+ ]
10586
+ },
10587
+ {
10588
+ "kind": "javascript-module",
10589
+ "path": "src/progress-bar/ProgressBar.ts",
10590
+ "declarations": [
10591
+ {
10592
+ "kind": "class",
10593
+ "description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
10594
+ "name": "ProgressBar",
10595
+ "cssProperties": [
10596
+ {
10597
+ "description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
10598
+ "name": "--n-progress-size",
10599
+ "default": "var(--n-space-s)"
10600
+ },
10601
+ {
10602
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
10603
+ "name": "--n-progress-border-radius",
10604
+ "default": "var(--n-border-radius-s)"
10605
+ },
10606
+ {
10607
+ "description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
10608
+ "name": "--n-progress-color",
10609
+ "default": "var(--n-color-accent)"
10610
+ }
10611
+ ],
10612
+ "members": [
10613
+ {
10614
+ "kind": "field",
10615
+ "name": "value",
10616
+ "type": {
10617
+ "text": "number | undefined"
10618
+ },
10619
+ "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
10620
+ "attribute": "value",
10621
+ "reflects": true
10622
+ },
10623
+ {
10624
+ "kind": "field",
10625
+ "name": "max",
10626
+ "type": {
10627
+ "text": "number"
10628
+ },
10629
+ "default": "100",
10630
+ "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
10631
+ "attribute": "max",
10632
+ "reflects": true
10633
+ },
10634
+ {
10635
+ "kind": "field",
10636
+ "name": "label",
10637
+ "type": {
10638
+ "text": "string"
10639
+ },
10640
+ "default": "\"Current progress\"",
10641
+ "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
10642
+ "attribute": "label",
10643
+ "reflects": true
10644
+ },
10645
+ {
10646
+ "kind": "field",
10647
+ "name": "focusableRef",
10648
+ "privacy": "protected",
10649
+ "inheritedFrom": {
10650
+ "name": "FocusableMixin",
10651
+ "module": "src/common/mixins/FocusableMixin.ts"
10652
+ }
10653
+ },
10654
+ {
10655
+ "kind": "method",
10656
+ "name": "focus",
10657
+ "parameters": [
10658
+ {
10659
+ "name": "options",
10660
+ "optional": true,
10661
+ "type": {
10662
+ "text": "FocusOptions"
10663
+ },
10664
+ "description": "An object which controls aspects of the focusing process."
10665
+ }
10666
+ ],
10667
+ "description": "Programmatically move focus to the component.",
10668
+ "inheritedFrom": {
10669
+ "name": "FocusableMixin",
10670
+ "module": "src/common/mixins/FocusableMixin.ts"
10671
+ }
10672
+ },
10673
+ {
10674
+ "kind": "method",
10675
+ "name": "blur",
10676
+ "description": "Programmatically remove focus from the component.",
10677
+ "inheritedFrom": {
10678
+ "name": "FocusableMixin",
10679
+ "module": "src/common/mixins/FocusableMixin.ts"
10680
+ }
10681
+ },
10682
+ {
10683
+ "kind": "method",
10684
+ "name": "click",
10685
+ "description": "Programmatically simulates a click on the component.",
10686
+ "inheritedFrom": {
10687
+ "name": "FocusableMixin",
10688
+ "module": "src/common/mixins/FocusableMixin.ts"
10689
+ }
10690
+ }
10691
+ ],
10692
+ "attributes": [
10693
+ {
10694
+ "name": "value",
10640
10695
  "type": {
10641
- "text": "boolean"
10696
+ "text": "number | undefined"
10642
10697
  },
10643
- "default": "false",
10644
- "description": "Controls whether the component is open or not.",
10645
- "fieldName": "open",
10646
- "inheritedFrom": {
10647
- "name": "FloatingMixin",
10648
- "module": "src/common/mixins/FloatingComponentMixin.ts"
10649
- }
10698
+ "description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
10699
+ "fieldName": "value"
10650
10700
  },
10651
10701
  {
10652
- "name": "align",
10702
+ "name": "max",
10653
10703
  "type": {
10654
- "text": "\"start\" | \"end\""
10704
+ "text": "number"
10655
10705
  },
10656
- "default": "\"start\"",
10657
- "description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
10658
- "fieldName": "align",
10659
- "inheritedFrom": {
10660
- "name": "FloatingMixin",
10661
- "module": "src/common/mixins/FloatingComponentMixin.ts"
10662
- }
10706
+ "default": "100",
10707
+ "description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
10708
+ "fieldName": "max"
10663
10709
  },
10664
10710
  {
10665
- "name": "position",
10711
+ "name": "label",
10666
10712
  "type": {
10667
- "text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
10713
+ "text": "string"
10668
10714
  },
10669
- "default": "\"block-end\"",
10670
- "description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
10671
- "fieldName": "position",
10672
- "inheritedFrom": {
10673
- "name": "FloatingMixin",
10674
- "module": "src/common/mixins/FloatingComponentMixin.ts"
10675
- }
10715
+ "default": "\"Current progress\"",
10716
+ "description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
10717
+ "fieldName": "label"
10676
10718
  }
10677
10719
  ],
10678
10720
  "mixins": [
10679
10721
  {
10680
- "name": "FloatingMixin",
10681
- "module": "/src/common/mixins/FloatingComponentMixin.js"
10722
+ "name": "FocusableMixin",
10723
+ "module": "/src/common/mixins/FocusableMixin.js"
10682
10724
  }
10683
10725
  ],
10684
10726
  "superclass": {
@@ -10687,11 +10729,11 @@
10687
10729
  },
10688
10730
  "localization": [],
10689
10731
  "status": "ready",
10690
- "category": "overlay",
10691
- "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- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they 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\nPopout actions 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 popout actions, 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 popout actions 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 popout actions:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\n---\n\n## Additional considerations\n\n- The popout component is a containing component, only providing a way to reveal and hide controls by using a single button.\n",
10732
+ "category": "feedback",
10733
+ "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 to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
10692
10734
  "examples": [],
10693
10735
  "dependencies": [],
10694
- "tagName": "nord-popout",
10736
+ "tagName": "nord-progress-bar",
10695
10737
  "customElement": true
10696
10738
  }
10697
10739
  ],
@@ -10700,16 +10742,16 @@
10700
10742
  "kind": "js",
10701
10743
  "name": "default",
10702
10744
  "declaration": {
10703
- "name": "Popout",
10704
- "module": "src/popout/Popout.ts"
10745
+ "name": "ProgressBar",
10746
+ "module": "src/progress-bar/ProgressBar.ts"
10705
10747
  }
10706
10748
  },
10707
10749
  {
10708
10750
  "kind": "custom-element-definition",
10709
- "name": "nord-popout",
10751
+ "name": "nord-progress-bar",
10710
10752
  "declaration": {
10711
- "name": "Popout",
10712
- "module": "src/popout/Popout.ts"
10753
+ "name": "ProgressBar",
10754
+ "module": "src/progress-bar/ProgressBar.ts"
10713
10755
  }
10714
10756
  }
10715
10757
  ]
@@ -13637,54 +13679,6 @@
13637
13679
  }
13638
13680
  ]
13639
13681
  },
13640
- {
13641
- "kind": "javascript-module",
13642
- "path": "src/tab-panel/TabPanel.ts",
13643
- "declarations": [
13644
- {
13645
- "kind": "class",
13646
- "description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
13647
- "name": "TabPanel",
13648
- "slots": [
13649
- {
13650
- "description": "The tab panel content.",
13651
- "name": ""
13652
- }
13653
- ],
13654
- "members": [],
13655
- "superclass": {
13656
- "name": "LitElement",
13657
- "package": "lit"
13658
- },
13659
- "localization": [],
13660
- "status": "ready",
13661
- "category": "navigation",
13662
- "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 the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab 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 tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab 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 tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
13663
- "examples": [],
13664
- "dependencies": [],
13665
- "tagName": "nord-tab-panel",
13666
- "customElement": true
13667
- }
13668
- ],
13669
- "exports": [
13670
- {
13671
- "kind": "js",
13672
- "name": "default",
13673
- "declaration": {
13674
- "name": "TabPanel",
13675
- "module": "src/tab-panel/TabPanel.ts"
13676
- }
13677
- },
13678
- {
13679
- "kind": "custom-element-definition",
13680
- "name": "nord-tab-panel",
13681
- "declaration": {
13682
- "name": "TabPanel",
13683
- "module": "src/tab-panel/TabPanel.ts"
13684
- }
13685
- }
13686
- ]
13687
- },
13688
13682
  {
13689
13683
  "kind": "javascript-module",
13690
13684
  "path": "src/tab-group/TabGroup.ts",
@@ -13931,6 +13925,54 @@
13931
13925
  }
13932
13926
  ]
13933
13927
  },
13928
+ {
13929
+ "kind": "javascript-module",
13930
+ "path": "src/tab-panel/TabPanel.ts",
13931
+ "declarations": [
13932
+ {
13933
+ "kind": "class",
13934
+ "description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
13935
+ "name": "TabPanel",
13936
+ "slots": [
13937
+ {
13938
+ "description": "The tab panel content.",
13939
+ "name": ""
13940
+ }
13941
+ ],
13942
+ "members": [],
13943
+ "superclass": {
13944
+ "name": "LitElement",
13945
+ "package": "lit"
13946
+ },
13947
+ "localization": [],
13948
+ "status": "ready",
13949
+ "category": "navigation",
13950
+ "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 the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab 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 tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab 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 tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
13951
+ "examples": [],
13952
+ "dependencies": [],
13953
+ "tagName": "nord-tab-panel",
13954
+ "customElement": true
13955
+ }
13956
+ ],
13957
+ "exports": [
13958
+ {
13959
+ "kind": "js",
13960
+ "name": "default",
13961
+ "declaration": {
13962
+ "name": "TabPanel",
13963
+ "module": "src/tab-panel/TabPanel.ts"
13964
+ }
13965
+ },
13966
+ {
13967
+ "kind": "custom-element-definition",
13968
+ "name": "nord-tab-panel",
13969
+ "declaration": {
13970
+ "name": "TabPanel",
13971
+ "module": "src/tab-panel/TabPanel.ts"
13972
+ }
13973
+ }
13974
+ ]
13975
+ },
13934
13976
  {
13935
13977
  "kind": "javascript-module",
13936
13978
  "path": "src/table/Table.ts",
@@ -16209,34 +16251,12 @@
16209
16251
  "name": "end"
16210
16252
  }
16211
16253
  ],
16212
- "members": [
16213
- {
16214
- "kind": "field",
16215
- "name": "_warningLogged",
16216
- "type": {
16217
- "text": "boolean"
16218
- },
16219
- "privacy": "private",
16220
- "static": true,
16221
- "default": "false",
16222
- "inheritedFrom": {
16223
- "name": "DraftComponentMixin",
16224
- "module": "src/common/mixins/DraftComponentMixin.ts"
16225
- }
16226
- }
16227
- ],
16228
- "mixins": [
16229
- {
16230
- "name": "DraftComponentMixin",
16231
- "module": "/src/common/mixins/DraftComponentMixin.js"
16232
- }
16233
- ],
16254
+ "members": [],
16234
16255
  "superclass": {
16235
16256
  "name": "LitElement",
16236
16257
  "package": "lit"
16237
16258
  },
16238
16259
  "localization": [],
16239
- "status": "draft",
16240
16260
  "category": "structure",
16241
16261
  "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- Applications that utilize the top bar can allow users to customize the color of the top bar to match their preference. [View an example](/components/top-bar/?example=color).\n- If your application allows it, include search to help users find resources and navigate.\n- Include a user menu in the end slot of the top bar.\n- Use the [layout component](/components/layout/?example=top-bar) to provide structure for the top bar component. We’ve also created [an example which shows full theming capabilities](/components/layout/?example=theming).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for global navigation. Use the [navigation component](/components/navigation/) instead.\n- Don’t allow the user to set a top bar color that doesn’t provide enough contrast with the content.\n- Don’t allow the user to freely pick a hex code as the top bar color. Instead, offer a choice from a predefined palette of colors which provides sufficient contrast with the content. [View an example](/components/top-bar/?example=color).\n\n</div>\n\n---\n\n## Theming\n\nPlease see the [Top Bar theming](/themes/#top-bar-theming) section in our theming documentation for detailed guidelines.\n\n<nord-button variant=\"primary\" href=\"/themes/#top-bar-theming\">Theming Guidelines</nord-button>\n",
16242
16262
  "examples": [],
@@ -16312,6 +16332,88 @@
16312
16332
  }
16313
16333
  ]
16314
16334
  },
16335
+ {
16336
+ "kind": "javascript-module",
16337
+ "path": "src/common/controllers/BroadcastChannelController.ts",
16338
+ "declarations": [
16339
+ {
16340
+ "kind": "class",
16341
+ "description": "",
16342
+ "name": "BroadcastChannelController",
16343
+ "members": [
16344
+ {
16345
+ "kind": "field",
16346
+ "name": "channel",
16347
+ "type": {
16348
+ "text": "BroadcastChannel | undefined"
16349
+ },
16350
+ "privacy": "private"
16351
+ },
16352
+ {
16353
+ "kind": "field",
16354
+ "name": "options",
16355
+ "type": {
16356
+ "text": "Required<Options<T>>"
16357
+ },
16358
+ "privacy": "private",
16359
+ "default": "{ enabled: defaultEnabled, ...options }"
16360
+ },
16361
+ {
16362
+ "kind": "method",
16363
+ "name": "hostConnected",
16364
+ "return": {
16365
+ "type": {
16366
+ "text": "void"
16367
+ }
16368
+ }
16369
+ },
16370
+ {
16371
+ "kind": "method",
16372
+ "name": "hostDisconnected",
16373
+ "return": {
16374
+ "type": {
16375
+ "text": "void"
16376
+ }
16377
+ }
16378
+ },
16379
+ {
16380
+ "kind": "method",
16381
+ "name": "handleEvent",
16382
+ "parameters": [
16383
+ {
16384
+ "name": "event",
16385
+ "type": {
16386
+ "text": "MessageEvent<T>"
16387
+ }
16388
+ }
16389
+ ]
16390
+ },
16391
+ {
16392
+ "kind": "method",
16393
+ "name": "post",
16394
+ "parameters": [
16395
+ {
16396
+ "name": "message",
16397
+ "type": {
16398
+ "text": "T"
16399
+ }
16400
+ }
16401
+ ]
16402
+ }
16403
+ ]
16404
+ }
16405
+ ],
16406
+ "exports": [
16407
+ {
16408
+ "kind": "js",
16409
+ "name": "BroadcastChannelController",
16410
+ "declaration": {
16411
+ "name": "BroadcastChannelController",
16412
+ "module": "src/common/controllers/BroadcastChannelController.ts"
16413
+ }
16414
+ }
16415
+ ]
16416
+ },
16315
16417
  {
16316
16418
  "kind": "javascript-module",
16317
16419
  "path": "src/common/controllers/DirectionController.ts",