@nordhealth/components 3.20.0 → 3.22.0-alpha.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.
- package/custom-elements.json +660 -648
- package/lib/AutocompleteMixin-D8eiOxvO.js +2 -0
- package/lib/{AutocompleteMixin-Dk_gVU09.js.map → AutocompleteMixin-D8eiOxvO.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/Calendar-Cuumq57y.js +2 -0
- package/lib/Calendar-Cuumq57y.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/Component-DSU3Qp0O.js +2 -0
- package/lib/Component-DSU3Qp0O.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js +1 -1
- package/lib/DirectionController-ChvNGESZ.js +2 -0
- package/lib/DirectionController-ChvNGESZ.js.map +1 -0
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/DropdownItem-BheCmR9u.js +2 -0
- package/lib/DropdownItem-BheCmR9u.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-BBOmvfLa.js +2 -0
- package/lib/EventController-BBOmvfLa.js.map +1 -0
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/FocusableMixin-BlQLNPdJ.js +2 -0
- package/lib/{FocusableMixin-DriuCNli.js.map → FocusableMixin-BlQLNPdJ.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-DFL7yabe.js +2 -0
- package/lib/{FormAssociatedMixin-DXVeQVgN.js.map → FormAssociatedMixin-DFL7yabe.js.map} +1 -1
- package/lib/FormField-CUC_H-0e.js +2 -0
- package/lib/FormField-CUC_H-0e.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -6
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InputMixin-LetXsCyv.js +2 -0
- package/lib/{InputMixin-B-nPfhjc.js.map → InputMixin-LetXsCyv.js.map} +1 -1
- package/lib/KeyboardController.js +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDismissController-BBolVMtn.js → LightDismissController-4pH8cdko.js} +2 -2
- package/lib/{LightDismissController-BBolVMtn.js.map → LightDismissController-4pH8cdko.js.map} +1 -1
- package/lib/LightDomController-DIwtVelV.js +2 -0
- package/lib/{LightDomController-BtyFuJKD.js.map → LightDomController-DIwtVelV.js.map} +1 -1
- package/lib/LightSlotController-Coyy4nqS.js +2 -0
- package/lib/LightSlotController-Coyy4nqS.js.map +1 -0
- package/lib/LocalizeController.js +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/ModalController.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/NavToggle-D-udBTou.js +2 -0
- package/lib/{NavToggle-BW4ie2pA.js.map → NavToggle-D-udBTou.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/NotificationMixin-DOUQsx7N.js +2 -0
- package/lib/{NotificationMixin-BMymOlRC.js.map → NotificationMixin-DOUQsx7N.js.map} +1 -1
- package/lib/Popout-5MtZ4gbP.js +2 -0
- package/lib/Popout-5MtZ4gbP.js.map +1 -0
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +18 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Range.js.map +1 -1
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +1 -1
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/ShortcutController-BIb3WGzH.js +2 -0
- package/lib/ShortcutController-BIb3WGzH.js.map +1 -0
- package/lib/SizeMixin-CU9cLbLC.js +2 -0
- package/lib/{SizeMixin-DW6qUBEN.js.map → SizeMixin-CU9cLbLC.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-Z6eG7LSZ.js +2 -0
- package/lib/SlotController-Z6eG7LSZ.js.map +1 -0
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Sticky-DqnqENYN.js +2 -0
- package/lib/Sticky-DqnqENYN.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +1 -1
- package/lib/TagGroup.js.map +1 -1
- package/lib/TextField-C5gYzfOp.js +2 -0
- package/lib/{TextField-CmHW8rL5.js.map → TextField-C5gYzfOp.js.map} +1 -1
- package/lib/TextSelectableMixin-Cfv__lHS.js +2 -0
- package/lib/{TextSelectableMixin-B_mtmFv0.js.map → TextSelectableMixin-Cfv__lHS.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +17 -95
- package/lib/bundle.js.map +1 -1
- package/lib/collection-Dvg2XbxV.js +2 -0
- package/lib/collection-Dvg2XbxV.js.map +1 -0
- package/lib/cond-CI1KbneT.js +2 -0
- package/lib/{cond-Cuc_PMkN.js.map → cond-CI1KbneT.js.map} +1 -1
- package/lib/date-adapter.js +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-CsfLhMSW.js +2 -0
- package/lib/positioning-CsfLhMSW.js.map +1 -0
- package/lib/src/common/controllers/LightSlotController.d.ts +2 -2
- package/lib/src/common/controllers/ResizeController.d.ts +1 -1
- package/lib/src/common/controllers/ShortcutController.d.ts +2 -2
- package/lib/src/common/mixins/FloatingComponentMixin.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +3 -1
- package/lib/src/tooltip/Tooltip.d.ts +2 -1
- package/lib/tslib.es6-CmLYFWVC.js +2 -0
- package/lib/tslib.es6-CmLYFWVC.js.map +1 -0
- package/package.json +5 -4
- package/lib/AutocompleteMixin-Dk_gVU09.js +0 -2
- package/lib/Calendar-loNMUV5l.js +0 -2
- package/lib/Calendar-loNMUV5l.js.map +0 -1
- package/lib/Component-BuB0QgQM.js +0 -2
- package/lib/Component-BuB0QgQM.js.map +0 -1
- package/lib/DirectionController-DiJ1Su1I.js +0 -2
- package/lib/DirectionController-DiJ1Su1I.js.map +0 -1
- package/lib/DropdownItem-CPeMIqN8.js +0 -2
- package/lib/DropdownItem-CPeMIqN8.js.map +0 -1
- package/lib/EventController-BG-WpaBb.js +0 -2
- package/lib/EventController-BG-WpaBb.js.map +0 -1
- package/lib/FocusableMixin-DriuCNli.js +0 -2
- package/lib/FormAssociatedMixin-DXVeQVgN.js +0 -2
- package/lib/FormField-Cl7HHI9A.js +0 -2
- package/lib/FormField-Cl7HHI9A.js.map +0 -1
- package/lib/InputMixin-B-nPfhjc.js +0 -2
- package/lib/LightDomController-BtyFuJKD.js +0 -2
- package/lib/LightSlotController-BDkcldj-.js +0 -2
- package/lib/LightSlotController-BDkcldj-.js.map +0 -1
- package/lib/NavToggle-BW4ie2pA.js +0 -2
- package/lib/NotificationMixin-BMymOlRC.js +0 -2
- package/lib/Popout-8ZXIGZFg.js +0 -2
- package/lib/Popout-8ZXIGZFg.js.map +0 -1
- package/lib/ShortcutController-nMRUu6ns.js +0 -2
- package/lib/ShortcutController-nMRUu6ns.js.map +0 -1
- package/lib/SizeMixin-DW6qUBEN.js +0 -2
- package/lib/SlotController-BL-tOh6b.js +0 -2
- package/lib/SlotController-BL-tOh6b.js.map +0 -1
- package/lib/Sticky--4fNQ3K3.js +0 -2
- package/lib/Sticky--4fNQ3K3.js.map +0 -1
- package/lib/TextField-CmHW8rL5.js +0 -2
- package/lib/TextSelectableMixin-B_mtmFv0.js +0 -2
- package/lib/class-map-BQZJmA_8.js +0 -7
- package/lib/class-map-BQZJmA_8.js.map +0 -1
- package/lib/collection-CJHuUy_1.js +0 -7
- package/lib/collection-CJHuUy_1.js.map +0 -1
- package/lib/cond-Cuc_PMkN.js +0 -2
- package/lib/custom-element-CDWT-yC_.js +0 -30
- package/lib/custom-element-CDWT-yC_.js.map +0 -1
- package/lib/directive-DQ0jBES2.js +0 -7
- package/lib/directive-DQ0jBES2.js.map +0 -1
- package/lib/if-defined-C2kZHWU2.js +0 -7
- package/lib/if-defined-C2kZHWU2.js.map +0 -1
- package/lib/positioning-BIzQxDMX.js +0 -2
- package/lib/positioning-BIzQxDMX.js.map +0 -1
- package/lib/property-DeTTNf1t.js +0 -7
- package/lib/property-DeTTNf1t.js.map +0 -1
- package/lib/query-hiZs21fO.js +0 -12
- package/lib/query-hiZs21fO.js.map +0 -1
- package/lib/ref-BYkj-TPb.js +0 -17
- package/lib/ref-BYkj-TPb.js.map +0 -1
- package/lib/state-BFYKuryf.js +0 -7
- package/lib/state-BFYKuryf.js.map +0 -1
- package/lib/style-map-VR90KNpY.js +0 -7
- package/lib/style-map-VR90KNpY.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -673,6 +673,123 @@
|
|
|
673
673
|
}
|
|
674
674
|
]
|
|
675
675
|
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "javascript-module",
|
|
678
|
+
"path": "src/badge/Badge.ts",
|
|
679
|
+
"declarations": [
|
|
680
|
+
{
|
|
681
|
+
"kind": "class",
|
|
682
|
+
"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.",
|
|
683
|
+
"name": "Badge",
|
|
684
|
+
"slots": [
|
|
685
|
+
{
|
|
686
|
+
"description": "The badge content.",
|
|
687
|
+
"name": ""
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"description": "Used to place an icon at the start of badge.",
|
|
691
|
+
"name": "icon"
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"members": [
|
|
695
|
+
{
|
|
696
|
+
"kind": "field",
|
|
697
|
+
"name": "type",
|
|
698
|
+
"type": {
|
|
699
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
700
|
+
},
|
|
701
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
702
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
703
|
+
"default": "\"neutral\"",
|
|
704
|
+
"attribute": "type",
|
|
705
|
+
"reflects": true
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"kind": "field",
|
|
709
|
+
"name": "variant",
|
|
710
|
+
"type": {
|
|
711
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
712
|
+
},
|
|
713
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
714
|
+
"default": "\"neutral\"",
|
|
715
|
+
"attribute": "variant",
|
|
716
|
+
"reflects": true
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"kind": "field",
|
|
720
|
+
"name": "strong",
|
|
721
|
+
"type": {
|
|
722
|
+
"text": "boolean"
|
|
723
|
+
},
|
|
724
|
+
"default": "false",
|
|
725
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
726
|
+
"attribute": "strong",
|
|
727
|
+
"reflects": true
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"attributes": [
|
|
731
|
+
{
|
|
732
|
+
"name": "type",
|
|
733
|
+
"type": {
|
|
734
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
735
|
+
},
|
|
736
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
737
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
738
|
+
"default": "\"neutral\"",
|
|
739
|
+
"fieldName": "type"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "variant",
|
|
743
|
+
"type": {
|
|
744
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
745
|
+
},
|
|
746
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
747
|
+
"default": "\"neutral\"",
|
|
748
|
+
"fieldName": "variant"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "strong",
|
|
752
|
+
"type": {
|
|
753
|
+
"text": "boolean"
|
|
754
|
+
},
|
|
755
|
+
"default": "false",
|
|
756
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
757
|
+
"fieldName": "strong"
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
"superclass": {
|
|
761
|
+
"name": "LitElement",
|
|
762
|
+
"package": "lit"
|
|
763
|
+
},
|
|
764
|
+
"localization": [],
|
|
765
|
+
"status": "ready",
|
|
766
|
+
"category": "text",
|
|
767
|
+
"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 easy 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- Don't use badges for labeling, categorizing, or organizing objects. Use the [tag component](/components/tag/) instead.\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",
|
|
768
|
+
"examples": [],
|
|
769
|
+
"dependencies": [],
|
|
770
|
+
"tagName": "nord-badge",
|
|
771
|
+
"customElement": true
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
"exports": [
|
|
775
|
+
{
|
|
776
|
+
"kind": "js",
|
|
777
|
+
"name": "default",
|
|
778
|
+
"declaration": {
|
|
779
|
+
"name": "Badge",
|
|
780
|
+
"module": "src/badge/Badge.ts"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"kind": "custom-element-definition",
|
|
785
|
+
"name": "nord-badge",
|
|
786
|
+
"declaration": {
|
|
787
|
+
"name": "Badge",
|
|
788
|
+
"module": "src/badge/Badge.ts"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
},
|
|
676
793
|
{
|
|
677
794
|
"kind": "javascript-module",
|
|
678
795
|
"path": "src/button/Button.ts",
|
|
@@ -1369,278 +1486,6 @@
|
|
|
1369
1486
|
}
|
|
1370
1487
|
]
|
|
1371
1488
|
},
|
|
1372
|
-
{
|
|
1373
|
-
"kind": "javascript-module",
|
|
1374
|
-
"path": "src/badge/Badge.ts",
|
|
1375
|
-
"declarations": [
|
|
1376
|
-
{
|
|
1377
|
-
"kind": "class",
|
|
1378
|
-
"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.",
|
|
1379
|
-
"name": "Badge",
|
|
1380
|
-
"slots": [
|
|
1381
|
-
{
|
|
1382
|
-
"description": "The badge content.",
|
|
1383
|
-
"name": ""
|
|
1384
|
-
},
|
|
1385
|
-
{
|
|
1386
|
-
"description": "Used to place an icon at the start of badge.",
|
|
1387
|
-
"name": "icon"
|
|
1388
|
-
}
|
|
1389
|
-
],
|
|
1390
|
-
"members": [
|
|
1391
|
-
{
|
|
1392
|
-
"kind": "field",
|
|
1393
|
-
"name": "type",
|
|
1394
|
-
"type": {
|
|
1395
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1396
|
-
},
|
|
1397
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1398
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1399
|
-
"default": "\"neutral\"",
|
|
1400
|
-
"attribute": "type",
|
|
1401
|
-
"reflects": true
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"kind": "field",
|
|
1405
|
-
"name": "variant",
|
|
1406
|
-
"type": {
|
|
1407
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1408
|
-
},
|
|
1409
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1410
|
-
"default": "\"neutral\"",
|
|
1411
|
-
"attribute": "variant",
|
|
1412
|
-
"reflects": true
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
"kind": "field",
|
|
1416
|
-
"name": "strong",
|
|
1417
|
-
"type": {
|
|
1418
|
-
"text": "boolean"
|
|
1419
|
-
},
|
|
1420
|
-
"default": "false",
|
|
1421
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1422
|
-
"attribute": "strong",
|
|
1423
|
-
"reflects": true
|
|
1424
|
-
}
|
|
1425
|
-
],
|
|
1426
|
-
"attributes": [
|
|
1427
|
-
{
|
|
1428
|
-
"name": "type",
|
|
1429
|
-
"type": {
|
|
1430
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1431
|
-
},
|
|
1432
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1433
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1434
|
-
"default": "\"neutral\"",
|
|
1435
|
-
"fieldName": "type"
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"name": "variant",
|
|
1439
|
-
"type": {
|
|
1440
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1441
|
-
},
|
|
1442
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1443
|
-
"default": "\"neutral\"",
|
|
1444
|
-
"fieldName": "variant"
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
"name": "strong",
|
|
1448
|
-
"type": {
|
|
1449
|
-
"text": "boolean"
|
|
1450
|
-
},
|
|
1451
|
-
"default": "false",
|
|
1452
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1453
|
-
"fieldName": "strong"
|
|
1454
|
-
}
|
|
1455
|
-
],
|
|
1456
|
-
"superclass": {
|
|
1457
|
-
"name": "LitElement",
|
|
1458
|
-
"package": "lit"
|
|
1459
|
-
},
|
|
1460
|
-
"localization": [],
|
|
1461
|
-
"status": "ready",
|
|
1462
|
-
"category": "text",
|
|
1463
|
-
"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 easy 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- Don't use badges for labeling, categorizing, or organizing objects. Use the [tag component](/components/tag/) instead.\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",
|
|
1464
|
-
"examples": [],
|
|
1465
|
-
"dependencies": [],
|
|
1466
|
-
"tagName": "nord-badge",
|
|
1467
|
-
"customElement": true
|
|
1468
|
-
}
|
|
1469
|
-
],
|
|
1470
|
-
"exports": [
|
|
1471
|
-
{
|
|
1472
|
-
"kind": "js",
|
|
1473
|
-
"name": "default",
|
|
1474
|
-
"declaration": {
|
|
1475
|
-
"name": "Badge",
|
|
1476
|
-
"module": "src/badge/Badge.ts"
|
|
1477
|
-
}
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
"kind": "custom-element-definition",
|
|
1481
|
-
"name": "nord-badge",
|
|
1482
|
-
"declaration": {
|
|
1483
|
-
"name": "Badge",
|
|
1484
|
-
"module": "src/badge/Badge.ts"
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
]
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"kind": "javascript-module",
|
|
1491
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
1492
|
-
"declarations": [
|
|
1493
|
-
{
|
|
1494
|
-
"kind": "class",
|
|
1495
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1496
|
-
"name": "ButtonGroup",
|
|
1497
|
-
"cssProperties": [
|
|
1498
|
-
{
|
|
1499
|
-
"description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
1500
|
-
"name": "--n-button-group-border-radius",
|
|
1501
|
-
"default": "var(--n-border-radius-s)"
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
1505
|
-
"name": "--n-button-group-box-shadow",
|
|
1506
|
-
"default": "var(--n-box-shadow)"
|
|
1507
|
-
}
|
|
1508
|
-
],
|
|
1509
|
-
"slots": [
|
|
1510
|
-
{
|
|
1511
|
-
"description": "The button group content",
|
|
1512
|
-
"name": ""
|
|
1513
|
-
}
|
|
1514
|
-
],
|
|
1515
|
-
"members": [
|
|
1516
|
-
{
|
|
1517
|
-
"kind": "field",
|
|
1518
|
-
"name": "defaultSlot",
|
|
1519
|
-
"privacy": "private",
|
|
1520
|
-
"default": "new SlotController(this)"
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
"kind": "field",
|
|
1524
|
-
"name": "dirController",
|
|
1525
|
-
"privacy": "private",
|
|
1526
|
-
"default": "new DirectionController(this)"
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
"kind": "field",
|
|
1530
|
-
"name": "variant",
|
|
1531
|
-
"type": {
|
|
1532
|
-
"text": "\"default\" | \"spaced\""
|
|
1533
|
-
},
|
|
1534
|
-
"default": "\"default\"",
|
|
1535
|
-
"description": "The style variant of the button group.",
|
|
1536
|
-
"attribute": "variant",
|
|
1537
|
-
"reflects": true
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
"kind": "field",
|
|
1541
|
-
"name": "direction",
|
|
1542
|
-
"type": {
|
|
1543
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1544
|
-
},
|
|
1545
|
-
"default": "\"horizontal\"",
|
|
1546
|
-
"description": "The direction of the button group.",
|
|
1547
|
-
"attribute": "direction",
|
|
1548
|
-
"reflects": true
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"kind": "field",
|
|
1552
|
-
"name": "wrap",
|
|
1553
|
-
"type": {
|
|
1554
|
-
"text": "boolean"
|
|
1555
|
-
},
|
|
1556
|
-
"default": "false",
|
|
1557
|
-
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
1558
|
-
"attribute": "wrap",
|
|
1559
|
-
"reflects": true
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
"kind": "field",
|
|
1563
|
-
"name": "role",
|
|
1564
|
-
"type": {
|
|
1565
|
-
"text": "string"
|
|
1566
|
-
},
|
|
1567
|
-
"default": "\"group\"",
|
|
1568
|
-
"description": "The appropriate role for the containing element.",
|
|
1569
|
-
"attribute": "role",
|
|
1570
|
-
"reflects": true
|
|
1571
|
-
}
|
|
1572
|
-
],
|
|
1573
|
-
"attributes": [
|
|
1574
|
-
{
|
|
1575
|
-
"name": "variant",
|
|
1576
|
-
"type": {
|
|
1577
|
-
"text": "\"default\" | \"spaced\""
|
|
1578
|
-
},
|
|
1579
|
-
"default": "\"default\"",
|
|
1580
|
-
"description": "The style variant of the button group.",
|
|
1581
|
-
"fieldName": "variant"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "direction",
|
|
1585
|
-
"type": {
|
|
1586
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1587
|
-
},
|
|
1588
|
-
"default": "\"horizontal\"",
|
|
1589
|
-
"description": "The direction of the button group.",
|
|
1590
|
-
"fieldName": "direction"
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
"name": "wrap",
|
|
1594
|
-
"type": {
|
|
1595
|
-
"text": "boolean"
|
|
1596
|
-
},
|
|
1597
|
-
"default": "false",
|
|
1598
|
-
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
1599
|
-
"fieldName": "wrap"
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
"name": "role",
|
|
1603
|
-
"type": {
|
|
1604
|
-
"text": "string"
|
|
1605
|
-
},
|
|
1606
|
-
"default": "\"group\"",
|
|
1607
|
-
"description": "The appropriate role for the containing element.",
|
|
1608
|
-
"fieldName": "role"
|
|
1609
|
-
}
|
|
1610
|
-
],
|
|
1611
|
-
"superclass": {
|
|
1612
|
-
"name": "LitElement",
|
|
1613
|
-
"package": "lit"
|
|
1614
|
-
},
|
|
1615
|
-
"localization": [],
|
|
1616
|
-
"status": "ready",
|
|
1617
|
-
"category": "structure",
|
|
1618
|
-
"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 group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels 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\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button 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 button 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\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| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
|
|
1619
|
-
"examples": [],
|
|
1620
|
-
"dependencies": [],
|
|
1621
|
-
"tagName": "nord-button-group",
|
|
1622
|
-
"customElement": true
|
|
1623
|
-
}
|
|
1624
|
-
],
|
|
1625
|
-
"exports": [
|
|
1626
|
-
{
|
|
1627
|
-
"kind": "js",
|
|
1628
|
-
"name": "default",
|
|
1629
|
-
"declaration": {
|
|
1630
|
-
"name": "ButtonGroup",
|
|
1631
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1632
|
-
}
|
|
1633
|
-
},
|
|
1634
|
-
{
|
|
1635
|
-
"kind": "custom-element-definition",
|
|
1636
|
-
"name": "nord-button-group",
|
|
1637
|
-
"declaration": {
|
|
1638
|
-
"name": "ButtonGroup",
|
|
1639
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
]
|
|
1643
|
-
},
|
|
1644
1489
|
{
|
|
1645
1490
|
"kind": "javascript-module",
|
|
1646
1491
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -2145,92 +1990,124 @@
|
|
|
2145
1990
|
},
|
|
2146
1991
|
{
|
|
2147
1992
|
"kind": "javascript-module",
|
|
2148
|
-
"path": "src/
|
|
1993
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
2149
1994
|
"declarations": [
|
|
2150
1995
|
{
|
|
2151
1996
|
"kind": "class",
|
|
2152
|
-
"description": "
|
|
2153
|
-
"name": "
|
|
1997
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1998
|
+
"name": "ButtonGroup",
|
|
2154
1999
|
"cssProperties": [
|
|
2155
2000
|
{
|
|
2156
|
-
"description": "Controls
|
|
2157
|
-
"name": "--n-
|
|
2158
|
-
"default": "var(--n-border-radius)"
|
|
2159
|
-
},
|
|
2160
|
-
{
|
|
2161
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2162
|
-
"name": "--n-card-box-shadow",
|
|
2163
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2164
|
-
},
|
|
2165
|
-
{
|
|
2166
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2167
|
-
"name": "--n-card-padding",
|
|
2168
|
-
"default": "var(--n-space-m)"
|
|
2001
|
+
"description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
2002
|
+
"name": "--n-button-group-border-radius",
|
|
2003
|
+
"default": "var(--n-border-radius-s)"
|
|
2169
2004
|
},
|
|
2170
2005
|
{
|
|
2171
|
-
"description": "Controls the
|
|
2172
|
-
"name": "--n-
|
|
2173
|
-
"default": "var(--n-
|
|
2006
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
2007
|
+
"name": "--n-button-group-box-shadow",
|
|
2008
|
+
"default": "var(--n-box-shadow)"
|
|
2174
2009
|
}
|
|
2175
2010
|
],
|
|
2176
2011
|
"slots": [
|
|
2177
2012
|
{
|
|
2178
|
-
"description": "The
|
|
2013
|
+
"description": "The button group content",
|
|
2179
2014
|
"name": ""
|
|
2180
|
-
},
|
|
2181
|
-
{
|
|
2182
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2183
|
-
"name": "header"
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2187
|
-
"name": "header-end"
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2191
|
-
"name": "footer"
|
|
2192
2015
|
}
|
|
2193
2016
|
],
|
|
2194
2017
|
"members": [
|
|
2195
2018
|
{
|
|
2196
2019
|
"kind": "field",
|
|
2197
|
-
"name": "
|
|
2020
|
+
"name": "defaultSlot",
|
|
2198
2021
|
"privacy": "private",
|
|
2199
|
-
"default": "new SlotController(this
|
|
2022
|
+
"default": "new SlotController(this)"
|
|
2200
2023
|
},
|
|
2201
2024
|
{
|
|
2202
2025
|
"kind": "field",
|
|
2203
|
-
"name": "
|
|
2026
|
+
"name": "dirController",
|
|
2204
2027
|
"privacy": "private",
|
|
2205
|
-
"default": "new
|
|
2028
|
+
"default": "new DirectionController(this)"
|
|
2206
2029
|
},
|
|
2207
2030
|
{
|
|
2208
2031
|
"kind": "field",
|
|
2209
|
-
"name": "
|
|
2210
|
-
"
|
|
2211
|
-
|
|
2032
|
+
"name": "variant",
|
|
2033
|
+
"type": {
|
|
2034
|
+
"text": "\"default\" | \"spaced\""
|
|
2035
|
+
},
|
|
2036
|
+
"default": "\"default\"",
|
|
2037
|
+
"description": "The style variant of the button group.",
|
|
2038
|
+
"attribute": "variant",
|
|
2039
|
+
"reflects": true
|
|
2212
2040
|
},
|
|
2213
2041
|
{
|
|
2214
2042
|
"kind": "field",
|
|
2215
|
-
"name": "
|
|
2043
|
+
"name": "direction",
|
|
2216
2044
|
"type": {
|
|
2217
|
-
"text": "\"
|
|
2045
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2218
2046
|
},
|
|
2219
|
-
"default": "\"
|
|
2220
|
-
"description": "
|
|
2221
|
-
"attribute": "
|
|
2047
|
+
"default": "\"horizontal\"",
|
|
2048
|
+
"description": "The direction of the button group.",
|
|
2049
|
+
"attribute": "direction",
|
|
2050
|
+
"reflects": true
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "field",
|
|
2054
|
+
"name": "wrap",
|
|
2055
|
+
"type": {
|
|
2056
|
+
"text": "boolean"
|
|
2057
|
+
},
|
|
2058
|
+
"default": "false",
|
|
2059
|
+
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
2060
|
+
"attribute": "wrap",
|
|
2061
|
+
"reflects": true
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"kind": "field",
|
|
2065
|
+
"name": "role",
|
|
2066
|
+
"type": {
|
|
2067
|
+
"text": "string"
|
|
2068
|
+
},
|
|
2069
|
+
"default": "\"group\"",
|
|
2070
|
+
"description": "The appropriate role for the containing element.",
|
|
2071
|
+
"attribute": "role",
|
|
2222
2072
|
"reflects": true
|
|
2223
2073
|
}
|
|
2224
2074
|
],
|
|
2225
2075
|
"attributes": [
|
|
2226
2076
|
{
|
|
2227
|
-
"name": "
|
|
2077
|
+
"name": "variant",
|
|
2078
|
+
"type": {
|
|
2079
|
+
"text": "\"default\" | \"spaced\""
|
|
2080
|
+
},
|
|
2081
|
+
"default": "\"default\"",
|
|
2082
|
+
"description": "The style variant of the button group.",
|
|
2083
|
+
"fieldName": "variant"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "direction",
|
|
2087
|
+
"type": {
|
|
2088
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2089
|
+
},
|
|
2090
|
+
"default": "\"horizontal\"",
|
|
2091
|
+
"description": "The direction of the button group.",
|
|
2092
|
+
"fieldName": "direction"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "wrap",
|
|
2096
|
+
"type": {
|
|
2097
|
+
"text": "boolean"
|
|
2098
|
+
},
|
|
2099
|
+
"default": "false",
|
|
2100
|
+
"description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
2101
|
+
"fieldName": "wrap"
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"name": "role",
|
|
2228
2105
|
"type": {
|
|
2229
|
-
"text": "
|
|
2106
|
+
"text": "string"
|
|
2230
2107
|
},
|
|
2231
|
-
"default": "\"
|
|
2232
|
-
"description": "
|
|
2233
|
-
"fieldName": "
|
|
2108
|
+
"default": "\"group\"",
|
|
2109
|
+
"description": "The appropriate role for the containing element.",
|
|
2110
|
+
"fieldName": "role"
|
|
2234
2111
|
}
|
|
2235
2112
|
],
|
|
2236
2113
|
"superclass": {
|
|
@@ -2240,10 +2117,10 @@
|
|
|
2240
2117
|
"localization": [],
|
|
2241
2118
|
"status": "ready",
|
|
2242
2119
|
"category": "structure",
|
|
2243
|
-
"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
|
|
2120
|
+
"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 group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels 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\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button 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 button 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\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| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
|
|
2244
2121
|
"examples": [],
|
|
2245
2122
|
"dependencies": [],
|
|
2246
|
-
"tagName": "nord-
|
|
2123
|
+
"tagName": "nord-button-group",
|
|
2247
2124
|
"customElement": true
|
|
2248
2125
|
}
|
|
2249
2126
|
],
|
|
@@ -2252,16 +2129,16 @@
|
|
|
2252
2129
|
"kind": "js",
|
|
2253
2130
|
"name": "default",
|
|
2254
2131
|
"declaration": {
|
|
2255
|
-
"name": "
|
|
2256
|
-
"module": "src/
|
|
2132
|
+
"name": "ButtonGroup",
|
|
2133
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2257
2134
|
}
|
|
2258
2135
|
},
|
|
2259
2136
|
{
|
|
2260
2137
|
"kind": "custom-element-definition",
|
|
2261
|
-
"name": "nord-
|
|
2138
|
+
"name": "nord-button-group",
|
|
2262
2139
|
"declaration": {
|
|
2263
|
-
"name": "
|
|
2264
|
-
"module": "src/
|
|
2140
|
+
"name": "ButtonGroup",
|
|
2141
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2265
2142
|
}
|
|
2266
2143
|
}
|
|
2267
2144
|
]
|
|
@@ -3004,6 +2881,129 @@
|
|
|
3004
2881
|
}
|
|
3005
2882
|
]
|
|
3006
2883
|
},
|
|
2884
|
+
{
|
|
2885
|
+
"kind": "javascript-module",
|
|
2886
|
+
"path": "src/card/Card.ts",
|
|
2887
|
+
"declarations": [
|
|
2888
|
+
{
|
|
2889
|
+
"kind": "class",
|
|
2890
|
+
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2891
|
+
"name": "Card",
|
|
2892
|
+
"cssProperties": [
|
|
2893
|
+
{
|
|
2894
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2895
|
+
"name": "--n-card-border-radius",
|
|
2896
|
+
"default": "var(--n-border-radius)"
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2900
|
+
"name": "--n-card-box-shadow",
|
|
2901
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2905
|
+
"name": "--n-card-padding",
|
|
2906
|
+
"default": "var(--n-space-m)"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2910
|
+
"name": "--n-card-slot-padding",
|
|
2911
|
+
"default": "var(--n-space-m)"
|
|
2912
|
+
}
|
|
2913
|
+
],
|
|
2914
|
+
"slots": [
|
|
2915
|
+
{
|
|
2916
|
+
"description": "The card content.",
|
|
2917
|
+
"name": ""
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2921
|
+
"name": "header"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2925
|
+
"name": "header-end"
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2929
|
+
"name": "footer"
|
|
2930
|
+
}
|
|
2931
|
+
],
|
|
2932
|
+
"members": [
|
|
2933
|
+
{
|
|
2934
|
+
"kind": "field",
|
|
2935
|
+
"name": "headerSlot",
|
|
2936
|
+
"privacy": "private",
|
|
2937
|
+
"default": "new SlotController(this, \"header\")"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"kind": "field",
|
|
2941
|
+
"name": "headerEndSlot",
|
|
2942
|
+
"privacy": "private",
|
|
2943
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"kind": "field",
|
|
2947
|
+
"name": "footerSlot",
|
|
2948
|
+
"privacy": "private",
|
|
2949
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"kind": "field",
|
|
2953
|
+
"name": "padding",
|
|
2954
|
+
"type": {
|
|
2955
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2956
|
+
},
|
|
2957
|
+
"default": "\"m\"",
|
|
2958
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2959
|
+
"attribute": "padding",
|
|
2960
|
+
"reflects": true
|
|
2961
|
+
}
|
|
2962
|
+
],
|
|
2963
|
+
"attributes": [
|
|
2964
|
+
{
|
|
2965
|
+
"name": "padding",
|
|
2966
|
+
"type": {
|
|
2967
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2968
|
+
},
|
|
2969
|
+
"default": "\"m\"",
|
|
2970
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2971
|
+
"fieldName": "padding"
|
|
2972
|
+
}
|
|
2973
|
+
],
|
|
2974
|
+
"superclass": {
|
|
2975
|
+
"name": "LitElement",
|
|
2976
|
+
"package": "lit"
|
|
2977
|
+
},
|
|
2978
|
+
"localization": [],
|
|
2979
|
+
"status": "ready",
|
|
2980
|
+
"category": "structure",
|
|
2981
|
+
"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 display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2982
|
+
"examples": [],
|
|
2983
|
+
"dependencies": [],
|
|
2984
|
+
"tagName": "nord-card",
|
|
2985
|
+
"customElement": true
|
|
2986
|
+
}
|
|
2987
|
+
],
|
|
2988
|
+
"exports": [
|
|
2989
|
+
{
|
|
2990
|
+
"kind": "js",
|
|
2991
|
+
"name": "default",
|
|
2992
|
+
"declaration": {
|
|
2993
|
+
"name": "Card",
|
|
2994
|
+
"module": "src/card/Card.ts"
|
|
2995
|
+
}
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"kind": "custom-element-definition",
|
|
2999
|
+
"name": "nord-card",
|
|
3000
|
+
"declaration": {
|
|
3001
|
+
"name": "Card",
|
|
3002
|
+
"module": "src/card/Card.ts"
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
]
|
|
3006
|
+
},
|
|
3007
3007
|
{
|
|
3008
3008
|
"kind": "javascript-module",
|
|
3009
3009
|
"path": "src/command-menu/CommandMenu.ts",
|
|
@@ -6466,10 +6466,10 @@
|
|
|
6466
6466
|
"kind": "field",
|
|
6467
6467
|
"name": "position",
|
|
6468
6468
|
"type": {
|
|
6469
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
6469
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
6470
6470
|
},
|
|
6471
6471
|
"default": "\"block-end\"",
|
|
6472
|
-
"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.",
|
|
6472
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
6473
6473
|
"attribute": "position",
|
|
6474
6474
|
"reflects": true,
|
|
6475
6475
|
"inheritedFrom": {
|
|
@@ -6542,10 +6542,10 @@
|
|
|
6542
6542
|
{
|
|
6543
6543
|
"name": "position",
|
|
6544
6544
|
"type": {
|
|
6545
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
6545
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
6546
6546
|
},
|
|
6547
6547
|
"default": "\"block-end\"",
|
|
6548
|
-
"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.",
|
|
6548
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
6549
6549
|
"fieldName": "position",
|
|
6550
6550
|
"inheritedFrom": {
|
|
6551
6551
|
"name": "FloatingMixin",
|
|
@@ -9672,7 +9672,7 @@
|
|
|
9672
9672
|
"default": "var(--n-space-m)"
|
|
9673
9673
|
},
|
|
9674
9674
|
{
|
|
9675
|
-
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
9675
|
+
"description": "Controls the padding above and below the header of the modal, using our [spacing tokens](/tokens/#space).",
|
|
9676
9676
|
"name": "--n-modal-padding-block",
|
|
9677
9677
|
"default": "var(--n-space-m)"
|
|
9678
9678
|
},
|
|
@@ -9691,6 +9691,10 @@
|
|
|
9691
9691
|
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
9692
9692
|
"name": "header"
|
|
9693
9693
|
},
|
|
9694
|
+
{
|
|
9695
|
+
"description": "Slot for full bleed content like an image.",
|
|
9696
|
+
"name": "feature"
|
|
9697
|
+
},
|
|
9694
9698
|
{
|
|
9695
9699
|
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
9696
9700
|
"name": "footer"
|
|
@@ -9713,6 +9717,12 @@
|
|
|
9713
9717
|
},
|
|
9714
9718
|
"privacy": "private"
|
|
9715
9719
|
},
|
|
9720
|
+
{
|
|
9721
|
+
"kind": "field",
|
|
9722
|
+
"name": "defaultSlot",
|
|
9723
|
+
"privacy": "private",
|
|
9724
|
+
"default": "new SlotController(this)"
|
|
9725
|
+
},
|
|
9716
9726
|
{
|
|
9717
9727
|
"kind": "field",
|
|
9718
9728
|
"name": "headerSlot",
|
|
@@ -10863,63 +10873,6 @@
|
|
|
10863
10873
|
}
|
|
10864
10874
|
]
|
|
10865
10875
|
},
|
|
10866
|
-
{
|
|
10867
|
-
"kind": "javascript-module",
|
|
10868
|
-
"path": "src/notification-group/NotificationGroup.ts",
|
|
10869
|
-
"declarations": [
|
|
10870
|
-
{
|
|
10871
|
-
"kind": "class",
|
|
10872
|
-
"description": "Notification group is used to position and style a group of notifications.",
|
|
10873
|
-
"name": "NotificationGroup",
|
|
10874
|
-
"slots": [
|
|
10875
|
-
{
|
|
10876
|
-
"description": "Default slot in which to place notifications.",
|
|
10877
|
-
"name": ""
|
|
10878
|
-
}
|
|
10879
|
-
],
|
|
10880
|
-
"members": [],
|
|
10881
|
-
"events": [
|
|
10882
|
-
{
|
|
10883
|
-
"type": {
|
|
10884
|
-
"text": "NordEvent"
|
|
10885
|
-
},
|
|
10886
|
-
"description": "Fired when a notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
10887
|
-
"name": "dismiss"
|
|
10888
|
-
}
|
|
10889
|
-
],
|
|
10890
|
-
"superclass": {
|
|
10891
|
-
"name": "LitElement",
|
|
10892
|
-
"package": "lit"
|
|
10893
|
-
},
|
|
10894
|
-
"localization": [],
|
|
10895
|
-
"status": "ready",
|
|
10896
|
-
"category": "feedback",
|
|
10897
|
-
"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",
|
|
10898
|
-
"examples": [],
|
|
10899
|
-
"dependencies": [],
|
|
10900
|
-
"tagName": "nord-notification-group",
|
|
10901
|
-
"customElement": true
|
|
10902
|
-
}
|
|
10903
|
-
],
|
|
10904
|
-
"exports": [
|
|
10905
|
-
{
|
|
10906
|
-
"kind": "js",
|
|
10907
|
-
"name": "default",
|
|
10908
|
-
"declaration": {
|
|
10909
|
-
"name": "NotificationGroup",
|
|
10910
|
-
"module": "src/notification-group/NotificationGroup.ts"
|
|
10911
|
-
}
|
|
10912
|
-
},
|
|
10913
|
-
{
|
|
10914
|
-
"kind": "custom-element-definition",
|
|
10915
|
-
"name": "nord-notification-group",
|
|
10916
|
-
"declaration": {
|
|
10917
|
-
"name": "NotificationGroup",
|
|
10918
|
-
"module": "src/notification-group/NotificationGroup.ts"
|
|
10919
|
-
}
|
|
10920
|
-
}
|
|
10921
|
-
]
|
|
10922
|
-
},
|
|
10923
10876
|
{
|
|
10924
10877
|
"kind": "javascript-module",
|
|
10925
10878
|
"path": "src/popout/Popout.ts",
|
|
@@ -11138,10 +11091,10 @@
|
|
|
11138
11091
|
"kind": "field",
|
|
11139
11092
|
"name": "position",
|
|
11140
11093
|
"type": {
|
|
11141
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
11094
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
11142
11095
|
},
|
|
11143
11096
|
"default": "\"block-end\"",
|
|
11144
|
-
"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.",
|
|
11097
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
11145
11098
|
"attribute": "position",
|
|
11146
11099
|
"reflects": true,
|
|
11147
11100
|
"inheritedFrom": {
|
|
@@ -11211,23 +11164,80 @@
|
|
|
11211
11164
|
}
|
|
11212
11165
|
},
|
|
11213
11166
|
{
|
|
11214
|
-
"name": "position",
|
|
11215
|
-
"type": {
|
|
11216
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
11217
|
-
},
|
|
11218
|
-
"default": "\"block-end\"",
|
|
11219
|
-
"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.",
|
|
11220
|
-
"fieldName": "position",
|
|
11221
|
-
"inheritedFrom": {
|
|
11222
|
-
"name": "FloatingMixin",
|
|
11223
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
11224
|
-
}
|
|
11167
|
+
"name": "position",
|
|
11168
|
+
"type": {
|
|
11169
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
11170
|
+
},
|
|
11171
|
+
"default": "\"block-end\"",
|
|
11172
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
11173
|
+
"fieldName": "position",
|
|
11174
|
+
"inheritedFrom": {
|
|
11175
|
+
"name": "FloatingMixin",
|
|
11176
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
11177
|
+
}
|
|
11178
|
+
}
|
|
11179
|
+
],
|
|
11180
|
+
"mixins": [
|
|
11181
|
+
{
|
|
11182
|
+
"name": "FloatingMixin",
|
|
11183
|
+
"module": "/src/common/mixins/FloatingComponentMixin.js"
|
|
11184
|
+
}
|
|
11185
|
+
],
|
|
11186
|
+
"superclass": {
|
|
11187
|
+
"name": "LitElement",
|
|
11188
|
+
"package": "lit"
|
|
11189
|
+
},
|
|
11190
|
+
"localization": [],
|
|
11191
|
+
"status": "ready",
|
|
11192
|
+
"category": "overlay",
|
|
11193
|
+
"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",
|
|
11194
|
+
"examples": [],
|
|
11195
|
+
"dependencies": [],
|
|
11196
|
+
"tagName": "nord-popout",
|
|
11197
|
+
"customElement": true
|
|
11198
|
+
}
|
|
11199
|
+
],
|
|
11200
|
+
"exports": [
|
|
11201
|
+
{
|
|
11202
|
+
"kind": "js",
|
|
11203
|
+
"name": "default",
|
|
11204
|
+
"declaration": {
|
|
11205
|
+
"name": "Popout",
|
|
11206
|
+
"module": "src/popout/Popout.ts"
|
|
11207
|
+
}
|
|
11208
|
+
},
|
|
11209
|
+
{
|
|
11210
|
+
"kind": "custom-element-definition",
|
|
11211
|
+
"name": "nord-popout",
|
|
11212
|
+
"declaration": {
|
|
11213
|
+
"name": "Popout",
|
|
11214
|
+
"module": "src/popout/Popout.ts"
|
|
11215
|
+
}
|
|
11216
|
+
}
|
|
11217
|
+
]
|
|
11218
|
+
},
|
|
11219
|
+
{
|
|
11220
|
+
"kind": "javascript-module",
|
|
11221
|
+
"path": "src/notification-group/NotificationGroup.ts",
|
|
11222
|
+
"declarations": [
|
|
11223
|
+
{
|
|
11224
|
+
"kind": "class",
|
|
11225
|
+
"description": "Notification group is used to position and style a group of notifications.",
|
|
11226
|
+
"name": "NotificationGroup",
|
|
11227
|
+
"slots": [
|
|
11228
|
+
{
|
|
11229
|
+
"description": "Default slot in which to place notifications.",
|
|
11230
|
+
"name": ""
|
|
11225
11231
|
}
|
|
11226
11232
|
],
|
|
11227
|
-
"
|
|
11233
|
+
"members": [],
|
|
11234
|
+
"events": [
|
|
11228
11235
|
{
|
|
11229
|
-
"
|
|
11230
|
-
|
|
11236
|
+
"type": {
|
|
11237
|
+
"text": "NordEvent"
|
|
11238
|
+
},
|
|
11239
|
+
"description": "Fired when a notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
11240
|
+
"name": "dismiss"
|
|
11231
11241
|
}
|
|
11232
11242
|
],
|
|
11233
11243
|
"superclass": {
|
|
@@ -11236,11 +11246,11 @@
|
|
|
11236
11246
|
},
|
|
11237
11247
|
"localization": [],
|
|
11238
11248
|
"status": "ready",
|
|
11239
|
-
"category": "
|
|
11240
|
-
"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-
|
|
11249
|
+
"category": "feedback",
|
|
11250
|
+
"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",
|
|
11241
11251
|
"examples": [],
|
|
11242
11252
|
"dependencies": [],
|
|
11243
|
-
"tagName": "nord-
|
|
11253
|
+
"tagName": "nord-notification-group",
|
|
11244
11254
|
"customElement": true
|
|
11245
11255
|
}
|
|
11246
11256
|
],
|
|
@@ -11249,16 +11259,16 @@
|
|
|
11249
11259
|
"kind": "js",
|
|
11250
11260
|
"name": "default",
|
|
11251
11261
|
"declaration": {
|
|
11252
|
-
"name": "
|
|
11253
|
-
"module": "src/
|
|
11262
|
+
"name": "NotificationGroup",
|
|
11263
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
11254
11264
|
}
|
|
11255
11265
|
},
|
|
11256
11266
|
{
|
|
11257
11267
|
"kind": "custom-element-definition",
|
|
11258
|
-
"name": "nord-
|
|
11268
|
+
"name": "nord-notification-group",
|
|
11259
11269
|
"declaration": {
|
|
11260
|
-
"name": "
|
|
11261
|
-
"module": "src/
|
|
11270
|
+
"name": "NotificationGroup",
|
|
11271
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
11262
11272
|
}
|
|
11263
11273
|
}
|
|
11264
11274
|
]
|
|
@@ -11448,7 +11458,7 @@
|
|
|
11448
11458
|
"kind": "field",
|
|
11449
11459
|
"name": "canvas",
|
|
11450
11460
|
"type": {
|
|
11451
|
-
"text": "
|
|
11461
|
+
"text": "HTMLCanvasElement"
|
|
11452
11462
|
},
|
|
11453
11463
|
"privacy": "private"
|
|
11454
11464
|
},
|
|
@@ -13730,6 +13740,86 @@
|
|
|
13730
13740
|
}
|
|
13731
13741
|
]
|
|
13732
13742
|
},
|
|
13743
|
+
{
|
|
13744
|
+
"kind": "javascript-module",
|
|
13745
|
+
"path": "src/skeleton/Skeleton.ts",
|
|
13746
|
+
"declarations": [
|
|
13747
|
+
{
|
|
13748
|
+
"kind": "class",
|
|
13749
|
+
"description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
|
|
13750
|
+
"name": "Skeleton",
|
|
13751
|
+
"cssProperties": [
|
|
13752
|
+
{
|
|
13753
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
13754
|
+
"name": "--n-skeleton-border-radius",
|
|
13755
|
+
"default": "var(--n-border-radius)"
|
|
13756
|
+
},
|
|
13757
|
+
{
|
|
13758
|
+
"description": "Controls the main color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
13759
|
+
"name": "--n-skeleton-color",
|
|
13760
|
+
"default": "var(--n-color-border)"
|
|
13761
|
+
},
|
|
13762
|
+
{
|
|
13763
|
+
"description": "Controls the sheen color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
13764
|
+
"name": "--n-skeleton-sheen-color",
|
|
13765
|
+
"default": "var(--n-color-border-strong)"
|
|
13766
|
+
}
|
|
13767
|
+
],
|
|
13768
|
+
"members": [
|
|
13769
|
+
{
|
|
13770
|
+
"kind": "field",
|
|
13771
|
+
"name": "effect",
|
|
13772
|
+
"type": {
|
|
13773
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
13774
|
+
},
|
|
13775
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
13776
|
+
"attribute": "effect",
|
|
13777
|
+
"reflects": true
|
|
13778
|
+
}
|
|
13779
|
+
],
|
|
13780
|
+
"attributes": [
|
|
13781
|
+
{
|
|
13782
|
+
"name": "effect",
|
|
13783
|
+
"type": {
|
|
13784
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
13785
|
+
},
|
|
13786
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
13787
|
+
"fieldName": "effect"
|
|
13788
|
+
}
|
|
13789
|
+
],
|
|
13790
|
+
"superclass": {
|
|
13791
|
+
"name": "LitElement",
|
|
13792
|
+
"package": "lit"
|
|
13793
|
+
},
|
|
13794
|
+
"localization": [],
|
|
13795
|
+
"status": "ready",
|
|
13796
|
+
"category": "feedback",
|
|
13797
|
+
"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 skeleton component for dynamic content only.\n- Use to give the user an indication of what the page layout will be like once loaded.\n- Mimick the actual layout using multiple Skeleton components.\n- Use `aria-busy=\"true\"` to indicate which area on the screen is currently loading and remove it or set it to `false` once loaded.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use Skeleton component for static content.\n- Don’t show placeholder content after Skeleton disappears that will change when the page fully loads.\n\n</div>\n",
|
|
13798
|
+
"examples": [],
|
|
13799
|
+
"dependencies": [],
|
|
13800
|
+
"tagName": "nord-skeleton",
|
|
13801
|
+
"customElement": true
|
|
13802
|
+
}
|
|
13803
|
+
],
|
|
13804
|
+
"exports": [
|
|
13805
|
+
{
|
|
13806
|
+
"kind": "js",
|
|
13807
|
+
"name": "default",
|
|
13808
|
+
"declaration": {
|
|
13809
|
+
"name": "Skeleton",
|
|
13810
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
13811
|
+
}
|
|
13812
|
+
},
|
|
13813
|
+
{
|
|
13814
|
+
"kind": "custom-element-definition",
|
|
13815
|
+
"name": "nord-skeleton",
|
|
13816
|
+
"declaration": {
|
|
13817
|
+
"name": "Skeleton",
|
|
13818
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
13819
|
+
}
|
|
13820
|
+
}
|
|
13821
|
+
]
|
|
13822
|
+
},
|
|
13733
13823
|
{
|
|
13734
13824
|
"kind": "javascript-module",
|
|
13735
13825
|
"path": "src/select/Select.ts",
|
|
@@ -14454,133 +14544,26 @@
|
|
|
14454
14544
|
}
|
|
14455
14545
|
}
|
|
14456
14546
|
],
|
|
14457
|
-
"mixins": [
|
|
14458
|
-
{
|
|
14459
|
-
"name": "SizeMixin",
|
|
14460
|
-
"module": "/src/common/mixins/SizeMixin.js"
|
|
14461
|
-
},
|
|
14462
|
-
{
|
|
14463
|
-
"name": "FormAssociatedMixin",
|
|
14464
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
14465
|
-
},
|
|
14466
|
-
{
|
|
14467
|
-
"name": "AutocompleteMixin",
|
|
14468
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
14469
|
-
},
|
|
14470
|
-
{
|
|
14471
|
-
"name": "InputMixin",
|
|
14472
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
14473
|
-
},
|
|
14474
|
-
{
|
|
14475
|
-
"name": "FocusableMixin",
|
|
14476
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
14477
|
-
}
|
|
14478
|
-
],
|
|
14479
|
-
"superclass": {
|
|
14480
|
-
"name": "LitElement",
|
|
14481
|
-
"package": "lit"
|
|
14482
|
-
},
|
|
14483
|
-
"localization": [],
|
|
14484
|
-
"status": "ready",
|
|
14485
|
-
"category": "form",
|
|
14486
|
-
"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 let a user choose one option from an options menu.\n- Use when you have more than 6 options to choose from.\n- Use when you don’t know how many options there will be.\n- Use hint text and placeholder to provide additional, non-critical instructions.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a select if you have less than 6 options to choose from. Consider using [segmented control](/components/segmented-control/) or [radio components](/components/radio/) instead, if you have enough space to allow it.\n\n</div>\n\n---\n\n## Content guidelines\n\nSelect labels act as a title for the select field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing select 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\">Company name</div>\n<div class=\"n-usage n-usage-dont\">Company Name</div>\n\nDo not use colons in select labels:\n\n<div class=\"n-usage n-usage-do\">Choose organization</div>\n<div class=\"n-usage n-usage-dont\">Choose organization:</div>\n",
|
|
14487
|
-
"examples": [],
|
|
14488
|
-
"dependencies": [
|
|
14489
|
-
"button",
|
|
14490
|
-
"icon"
|
|
14491
|
-
],
|
|
14492
|
-
"tagName": "nord-select",
|
|
14493
|
-
"customElement": true,
|
|
14494
|
-
"events": [
|
|
14495
|
-
{
|
|
14496
|
-
"name": "input",
|
|
14497
|
-
"type": {
|
|
14498
|
-
"text": "NordEvent"
|
|
14499
|
-
},
|
|
14500
|
-
"description": "Fired as the user types into the input.",
|
|
14501
|
-
"inheritedFrom": {
|
|
14502
|
-
"name": "FormAssociatedMixin",
|
|
14503
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
14504
|
-
}
|
|
14505
|
-
},
|
|
14506
|
-
{
|
|
14507
|
-
"name": "change",
|
|
14508
|
-
"type": {
|
|
14509
|
-
"text": "NordEvent"
|
|
14510
|
-
},
|
|
14511
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
14512
|
-
"inheritedFrom": {
|
|
14513
|
-
"name": "FormAssociatedMixin",
|
|
14514
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
14515
|
-
}
|
|
14516
|
-
}
|
|
14517
|
-
]
|
|
14518
|
-
}
|
|
14519
|
-
],
|
|
14520
|
-
"exports": [
|
|
14521
|
-
{
|
|
14522
|
-
"kind": "js",
|
|
14523
|
-
"name": "default",
|
|
14524
|
-
"declaration": {
|
|
14525
|
-
"name": "Select",
|
|
14526
|
-
"module": "src/select/Select.ts"
|
|
14527
|
-
}
|
|
14528
|
-
},
|
|
14529
|
-
{
|
|
14530
|
-
"kind": "custom-element-definition",
|
|
14531
|
-
"name": "nord-select",
|
|
14532
|
-
"declaration": {
|
|
14533
|
-
"name": "Select",
|
|
14534
|
-
"module": "src/select/Select.ts"
|
|
14535
|
-
}
|
|
14536
|
-
}
|
|
14537
|
-
]
|
|
14538
|
-
},
|
|
14539
|
-
{
|
|
14540
|
-
"kind": "javascript-module",
|
|
14541
|
-
"path": "src/skeleton/Skeleton.ts",
|
|
14542
|
-
"declarations": [
|
|
14543
|
-
{
|
|
14544
|
-
"kind": "class",
|
|
14545
|
-
"description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
|
|
14546
|
-
"name": "Skeleton",
|
|
14547
|
-
"cssProperties": [
|
|
14548
|
-
{
|
|
14549
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
14550
|
-
"name": "--n-skeleton-border-radius",
|
|
14551
|
-
"default": "var(--n-border-radius)"
|
|
14552
|
-
},
|
|
14553
|
-
{
|
|
14554
|
-
"description": "Controls the main color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
14555
|
-
"name": "--n-skeleton-color",
|
|
14556
|
-
"default": "var(--n-color-border)"
|
|
14557
|
-
},
|
|
14558
|
-
{
|
|
14559
|
-
"description": "Controls the sheen color of the skeleton, using our [color tokens](/tokens/#color).",
|
|
14560
|
-
"name": "--n-skeleton-sheen-color",
|
|
14561
|
-
"default": "var(--n-color-border-strong)"
|
|
14562
|
-
}
|
|
14563
|
-
],
|
|
14564
|
-
"members": [
|
|
14565
|
-
{
|
|
14566
|
-
"kind": "field",
|
|
14567
|
-
"name": "effect",
|
|
14568
|
-
"type": {
|
|
14569
|
-
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
14570
|
-
},
|
|
14571
|
-
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
14572
|
-
"attribute": "effect",
|
|
14573
|
-
"reflects": true
|
|
14574
|
-
}
|
|
14575
|
-
],
|
|
14576
|
-
"attributes": [
|
|
14547
|
+
"mixins": [
|
|
14577
14548
|
{
|
|
14578
|
-
"name": "
|
|
14579
|
-
"
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
"
|
|
14583
|
-
"
|
|
14549
|
+
"name": "SizeMixin",
|
|
14550
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
14551
|
+
},
|
|
14552
|
+
{
|
|
14553
|
+
"name": "FormAssociatedMixin",
|
|
14554
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
14555
|
+
},
|
|
14556
|
+
{
|
|
14557
|
+
"name": "AutocompleteMixin",
|
|
14558
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
14559
|
+
},
|
|
14560
|
+
{
|
|
14561
|
+
"name": "InputMixin",
|
|
14562
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
14563
|
+
},
|
|
14564
|
+
{
|
|
14565
|
+
"name": "FocusableMixin",
|
|
14566
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
14584
14567
|
}
|
|
14585
14568
|
],
|
|
14586
14569
|
"superclass": {
|
|
@@ -14589,12 +14572,39 @@
|
|
|
14589
14572
|
},
|
|
14590
14573
|
"localization": [],
|
|
14591
14574
|
"status": "ready",
|
|
14592
|
-
"category": "
|
|
14593
|
-
"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
|
|
14575
|
+
"category": "form",
|
|
14576
|
+
"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 let a user choose one option from an options menu.\n- Use when you have more than 6 options to choose from.\n- Use when you don’t know how many options there will be.\n- Use hint text and placeholder to provide additional, non-critical instructions.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a select if you have less than 6 options to choose from. Consider using [segmented control](/components/segmented-control/) or [radio components](/components/radio/) instead, if you have enough space to allow it.\n\n</div>\n\n---\n\n## Content guidelines\n\nSelect labels act as a title for the select field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing select 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\">Company name</div>\n<div class=\"n-usage n-usage-dont\">Company Name</div>\n\nDo not use colons in select labels:\n\n<div class=\"n-usage n-usage-do\">Choose organization</div>\n<div class=\"n-usage n-usage-dont\">Choose organization:</div>\n",
|
|
14594
14577
|
"examples": [],
|
|
14595
|
-
"dependencies": [
|
|
14596
|
-
|
|
14597
|
-
|
|
14578
|
+
"dependencies": [
|
|
14579
|
+
"button",
|
|
14580
|
+
"icon"
|
|
14581
|
+
],
|
|
14582
|
+
"tagName": "nord-select",
|
|
14583
|
+
"customElement": true,
|
|
14584
|
+
"events": [
|
|
14585
|
+
{
|
|
14586
|
+
"name": "input",
|
|
14587
|
+
"type": {
|
|
14588
|
+
"text": "NordEvent"
|
|
14589
|
+
},
|
|
14590
|
+
"description": "Fired as the user types into the input.",
|
|
14591
|
+
"inheritedFrom": {
|
|
14592
|
+
"name": "FormAssociatedMixin",
|
|
14593
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
14594
|
+
}
|
|
14595
|
+
},
|
|
14596
|
+
{
|
|
14597
|
+
"name": "change",
|
|
14598
|
+
"type": {
|
|
14599
|
+
"text": "NordEvent"
|
|
14600
|
+
},
|
|
14601
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
14602
|
+
"inheritedFrom": {
|
|
14603
|
+
"name": "FormAssociatedMixin",
|
|
14604
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
14605
|
+
}
|
|
14606
|
+
}
|
|
14607
|
+
]
|
|
14598
14608
|
}
|
|
14599
14609
|
],
|
|
14600
14610
|
"exports": [
|
|
@@ -14602,16 +14612,16 @@
|
|
|
14602
14612
|
"kind": "js",
|
|
14603
14613
|
"name": "default",
|
|
14604
14614
|
"declaration": {
|
|
14605
|
-
"name": "
|
|
14606
|
-
"module": "src/
|
|
14615
|
+
"name": "Select",
|
|
14616
|
+
"module": "src/select/Select.ts"
|
|
14607
14617
|
}
|
|
14608
14618
|
},
|
|
14609
14619
|
{
|
|
14610
14620
|
"kind": "custom-element-definition",
|
|
14611
|
-
"name": "nord-
|
|
14621
|
+
"name": "nord-select",
|
|
14612
14622
|
"declaration": {
|
|
14613
|
-
"name": "
|
|
14614
|
-
"module": "src/
|
|
14623
|
+
"name": "Select",
|
|
14624
|
+
"module": "src/select/Select.ts"
|
|
14615
14625
|
}
|
|
14616
14626
|
}
|
|
14617
14627
|
]
|
|
@@ -17240,93 +17250,6 @@
|
|
|
17240
17250
|
}
|
|
17241
17251
|
]
|
|
17242
17252
|
},
|
|
17243
|
-
{
|
|
17244
|
-
"kind": "javascript-module",
|
|
17245
|
-
"path": "src/toast-group/ToastGroup.ts",
|
|
17246
|
-
"declarations": [
|
|
17247
|
-
{
|
|
17248
|
-
"kind": "class",
|
|
17249
|
-
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17250
|
-
"name": "ToastGroup",
|
|
17251
|
-
"slots": [
|
|
17252
|
-
{
|
|
17253
|
-
"description": "Default slot in which to place toasts.",
|
|
17254
|
-
"name": ""
|
|
17255
|
-
}
|
|
17256
|
-
],
|
|
17257
|
-
"members": [
|
|
17258
|
-
{
|
|
17259
|
-
"kind": "method",
|
|
17260
|
-
"name": "addToast",
|
|
17261
|
-
"parameters": [
|
|
17262
|
-
{
|
|
17263
|
-
"name": "text",
|
|
17264
|
-
"type": {
|
|
17265
|
-
"text": "string"
|
|
17266
|
-
},
|
|
17267
|
-
"description": "The text/message of the toast."
|
|
17268
|
-
},
|
|
17269
|
-
{
|
|
17270
|
-
"name": "options",
|
|
17271
|
-
"default": "{}",
|
|
17272
|
-
"type": {
|
|
17273
|
-
"text": "ToastOptions"
|
|
17274
|
-
},
|
|
17275
|
-
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
17276
|
-
}
|
|
17277
|
-
],
|
|
17278
|
-
"description": "Convenience method for creating and adding a toast to the group.",
|
|
17279
|
-
"return": {
|
|
17280
|
-
"type": {
|
|
17281
|
-
"text": "Toast"
|
|
17282
|
-
}
|
|
17283
|
-
}
|
|
17284
|
-
}
|
|
17285
|
-
],
|
|
17286
|
-
"events": [
|
|
17287
|
-
{
|
|
17288
|
-
"type": {
|
|
17289
|
-
"text": "NordEvent"
|
|
17290
|
-
},
|
|
17291
|
-
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17292
|
-
"name": "dismiss"
|
|
17293
|
-
}
|
|
17294
|
-
],
|
|
17295
|
-
"superclass": {
|
|
17296
|
-
"name": "LitElement",
|
|
17297
|
-
"package": "lit"
|
|
17298
|
-
},
|
|
17299
|
-
"localization": [],
|
|
17300
|
-
"status": "ready",
|
|
17301
|
-
"category": "feedback",
|
|
17302
|
-
"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 [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\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 toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17303
|
-
"examples": [],
|
|
17304
|
-
"dependencies": [
|
|
17305
|
-
"toast"
|
|
17306
|
-
],
|
|
17307
|
-
"tagName": "nord-toast-group",
|
|
17308
|
-
"customElement": true
|
|
17309
|
-
}
|
|
17310
|
-
],
|
|
17311
|
-
"exports": [
|
|
17312
|
-
{
|
|
17313
|
-
"kind": "js",
|
|
17314
|
-
"name": "default",
|
|
17315
|
-
"declaration": {
|
|
17316
|
-
"name": "ToastGroup",
|
|
17317
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17318
|
-
}
|
|
17319
|
-
},
|
|
17320
|
-
{
|
|
17321
|
-
"kind": "custom-element-definition",
|
|
17322
|
-
"name": "nord-toast-group",
|
|
17323
|
-
"declaration": {
|
|
17324
|
-
"name": "ToastGroup",
|
|
17325
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17326
|
-
}
|
|
17327
|
-
}
|
|
17328
|
-
]
|
|
17329
|
-
},
|
|
17330
17253
|
{
|
|
17331
17254
|
"kind": "javascript-module",
|
|
17332
17255
|
"path": "src/toggle/Toggle.ts",
|
|
@@ -18051,6 +17974,93 @@
|
|
|
18051
17974
|
}
|
|
18052
17975
|
]
|
|
18053
17976
|
},
|
|
17977
|
+
{
|
|
17978
|
+
"kind": "javascript-module",
|
|
17979
|
+
"path": "src/toast-group/ToastGroup.ts",
|
|
17980
|
+
"declarations": [
|
|
17981
|
+
{
|
|
17982
|
+
"kind": "class",
|
|
17983
|
+
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17984
|
+
"name": "ToastGroup",
|
|
17985
|
+
"slots": [
|
|
17986
|
+
{
|
|
17987
|
+
"description": "Default slot in which to place toasts.",
|
|
17988
|
+
"name": ""
|
|
17989
|
+
}
|
|
17990
|
+
],
|
|
17991
|
+
"members": [
|
|
17992
|
+
{
|
|
17993
|
+
"kind": "method",
|
|
17994
|
+
"name": "addToast",
|
|
17995
|
+
"parameters": [
|
|
17996
|
+
{
|
|
17997
|
+
"name": "text",
|
|
17998
|
+
"type": {
|
|
17999
|
+
"text": "string"
|
|
18000
|
+
},
|
|
18001
|
+
"description": "The text/message of the toast."
|
|
18002
|
+
},
|
|
18003
|
+
{
|
|
18004
|
+
"name": "options",
|
|
18005
|
+
"default": "{}",
|
|
18006
|
+
"type": {
|
|
18007
|
+
"text": "ToastOptions"
|
|
18008
|
+
},
|
|
18009
|
+
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
18010
|
+
}
|
|
18011
|
+
],
|
|
18012
|
+
"description": "Convenience method for creating and adding a toast to the group.",
|
|
18013
|
+
"return": {
|
|
18014
|
+
"type": {
|
|
18015
|
+
"text": "Toast"
|
|
18016
|
+
}
|
|
18017
|
+
}
|
|
18018
|
+
}
|
|
18019
|
+
],
|
|
18020
|
+
"events": [
|
|
18021
|
+
{
|
|
18022
|
+
"type": {
|
|
18023
|
+
"text": "NordEvent"
|
|
18024
|
+
},
|
|
18025
|
+
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
18026
|
+
"name": "dismiss"
|
|
18027
|
+
}
|
|
18028
|
+
],
|
|
18029
|
+
"superclass": {
|
|
18030
|
+
"name": "LitElement",
|
|
18031
|
+
"package": "lit"
|
|
18032
|
+
},
|
|
18033
|
+
"localization": [],
|
|
18034
|
+
"status": "ready",
|
|
18035
|
+
"category": "feedback",
|
|
18036
|
+
"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 [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\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 toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
18037
|
+
"examples": [],
|
|
18038
|
+
"dependencies": [
|
|
18039
|
+
"toast"
|
|
18040
|
+
],
|
|
18041
|
+
"tagName": "nord-toast-group",
|
|
18042
|
+
"customElement": true
|
|
18043
|
+
}
|
|
18044
|
+
],
|
|
18045
|
+
"exports": [
|
|
18046
|
+
{
|
|
18047
|
+
"kind": "js",
|
|
18048
|
+
"name": "default",
|
|
18049
|
+
"declaration": {
|
|
18050
|
+
"name": "ToastGroup",
|
|
18051
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18052
|
+
}
|
|
18053
|
+
},
|
|
18054
|
+
{
|
|
18055
|
+
"kind": "custom-element-definition",
|
|
18056
|
+
"name": "nord-toast-group",
|
|
18057
|
+
"declaration": {
|
|
18058
|
+
"name": "ToastGroup",
|
|
18059
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18060
|
+
}
|
|
18061
|
+
}
|
|
18062
|
+
]
|
|
18063
|
+
},
|
|
18054
18064
|
{
|
|
18055
18065
|
"kind": "javascript-module",
|
|
18056
18066
|
"path": "src/tooltip/Tooltip.ts",
|
|
@@ -18117,6 +18127,9 @@
|
|
|
18117
18127
|
{
|
|
18118
18128
|
"kind": "field",
|
|
18119
18129
|
"name": "proxy",
|
|
18130
|
+
"type": {
|
|
18131
|
+
"text": "HTMLSpanElement | undefined"
|
|
18132
|
+
},
|
|
18120
18133
|
"privacy": "private",
|
|
18121
18134
|
"description": "the proxy element is for cases where the targetElement is a web component,\nand the WC has a focusable child in its shadow root e.g. a button component.\nin this case, when the tooltip is shown, we inject the proxy into targetElement's shadow root\nand wire up aria-describedby from the focusable element to the proxy.\nwhen the tooltip is hidden, we remove the proxy and remove the aria-describedby relationship."
|
|
18122
18135
|
},
|
|
@@ -19079,7 +19092,7 @@
|
|
|
19079
19092
|
"kind": "field",
|
|
19080
19093
|
"name": "renderHook",
|
|
19081
19094
|
"type": {
|
|
19082
|
-
"text": "Comment"
|
|
19095
|
+
"text": "Comment | undefined"
|
|
19083
19096
|
},
|
|
19084
19097
|
"privacy": "private"
|
|
19085
19098
|
},
|
|
@@ -19087,7 +19100,7 @@
|
|
|
19087
19100
|
"kind": "field",
|
|
19088
19101
|
"name": "lightDom",
|
|
19089
19102
|
"type": {
|
|
19090
|
-
"text": "LightDomController"
|
|
19103
|
+
"text": "LightDomController | undefined"
|
|
19091
19104
|
},
|
|
19092
19105
|
"privacy": "private",
|
|
19093
19106
|
"default": "new LightDomController(host, { render: () => (this.hasContent ? nothing : this.options.render()), renderOptions: { renderBefore: this.renderHook }, })"
|
|
@@ -19275,10 +19288,9 @@
|
|
|
19275
19288
|
"kind": "field",
|
|
19276
19289
|
"name": "observer",
|
|
19277
19290
|
"type": {
|
|
19278
|
-
"text": "ResizeObserver"
|
|
19291
|
+
"text": "ResizeObserver | undefined"
|
|
19279
19292
|
},
|
|
19280
|
-
"privacy": "private"
|
|
19281
|
-
"default": "new ResizeObserver(([entry]) => { const [borderBoxSize] = entry.borderBoxSize this.borderBoxSize = borderBoxSize host.requestUpdate() })"
|
|
19293
|
+
"privacy": "private"
|
|
19282
19294
|
},
|
|
19283
19295
|
{
|
|
19284
19296
|
"kind": "field",
|
|
@@ -20287,7 +20299,7 @@
|
|
|
20287
20299
|
"kind": "field",
|
|
20288
20300
|
"name": "position",
|
|
20289
20301
|
"type": {
|
|
20290
|
-
"text": "LogicalSide"
|
|
20302
|
+
"text": "LogicalSide | \"auto\""
|
|
20291
20303
|
}
|
|
20292
20304
|
}
|
|
20293
20305
|
]
|
|
@@ -20323,10 +20335,10 @@
|
|
|
20323
20335
|
"kind": "field",
|
|
20324
20336
|
"name": "position",
|
|
20325
20337
|
"type": {
|
|
20326
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
20338
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
20327
20339
|
},
|
|
20328
20340
|
"default": "\"block-end\"",
|
|
20329
|
-
"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.",
|
|
20341
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
20330
20342
|
"attribute": "position",
|
|
20331
20343
|
"reflects": true
|
|
20332
20344
|
}
|
|
@@ -20353,10 +20365,10 @@
|
|
|
20353
20365
|
{
|
|
20354
20366
|
"name": "position",
|
|
20355
20367
|
"type": {
|
|
20356
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
20368
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
20357
20369
|
},
|
|
20358
20370
|
"default": "\"block-end\"",
|
|
20359
|
-
"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.",
|
|
20371
|
+
"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.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
20360
20372
|
"fieldName": "position"
|
|
20361
20373
|
}
|
|
20362
20374
|
],
|