@nordhealth/components 3.21.0 → 3.22.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 +1207 -1205
- 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/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-C5zTBGWo.js.map → Popout-5MtZ4gbP.js.map} +1 -1
- 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/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 +4 -3
- 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-C5zTBGWo.js +0 -2
- 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-D0xRzCXq.js +0 -2
- package/lib/positioning-D0xRzCXq.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
|
@@ -790,6 +790,91 @@
|
|
|
790
790
|
}
|
|
791
791
|
]
|
|
792
792
|
},
|
|
793
|
+
{
|
|
794
|
+
"kind": "javascript-module",
|
|
795
|
+
"path": "src/banner/Banner.ts",
|
|
796
|
+
"declarations": [
|
|
797
|
+
{
|
|
798
|
+
"kind": "class",
|
|
799
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
800
|
+
"name": "Banner",
|
|
801
|
+
"cssProperties": [
|
|
802
|
+
{
|
|
803
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
804
|
+
"name": "--n-banner-border-radius",
|
|
805
|
+
"default": "var(--n-border-radius)"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
809
|
+
"name": "--n-banner-box-shadow",
|
|
810
|
+
"default": "var(--n-box-shadow-card)"
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"slots": [
|
|
814
|
+
{
|
|
815
|
+
"description": "default slot",
|
|
816
|
+
"name": ""
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"members": [
|
|
820
|
+
{
|
|
821
|
+
"kind": "field",
|
|
822
|
+
"name": "variant",
|
|
823
|
+
"type": {
|
|
824
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
825
|
+
},
|
|
826
|
+
"default": "\"info\"",
|
|
827
|
+
"description": "The style variant of the banner.",
|
|
828
|
+
"attribute": "variant",
|
|
829
|
+
"reflects": true
|
|
830
|
+
}
|
|
831
|
+
],
|
|
832
|
+
"attributes": [
|
|
833
|
+
{
|
|
834
|
+
"name": "variant",
|
|
835
|
+
"type": {
|
|
836
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
837
|
+
},
|
|
838
|
+
"default": "\"info\"",
|
|
839
|
+
"description": "The style variant of the banner.",
|
|
840
|
+
"fieldName": "variant"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"superclass": {
|
|
844
|
+
"name": "LitElement",
|
|
845
|
+
"package": "lit"
|
|
846
|
+
},
|
|
847
|
+
"localization": [],
|
|
848
|
+
"status": "ready",
|
|
849
|
+
"category": "feedback",
|
|
850
|
+
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
851
|
+
"examples": [],
|
|
852
|
+
"dependencies": [
|
|
853
|
+
"icon"
|
|
854
|
+
],
|
|
855
|
+
"tagName": "nord-banner",
|
|
856
|
+
"customElement": true
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"exports": [
|
|
860
|
+
{
|
|
861
|
+
"kind": "js",
|
|
862
|
+
"name": "default",
|
|
863
|
+
"declaration": {
|
|
864
|
+
"name": "Banner",
|
|
865
|
+
"module": "src/banner/Banner.ts"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"kind": "custom-element-definition",
|
|
870
|
+
"name": "nord-banner",
|
|
871
|
+
"declaration": {
|
|
872
|
+
"name": "Banner",
|
|
873
|
+
"module": "src/banner/Banner.ts"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
]
|
|
877
|
+
},
|
|
793
878
|
{
|
|
794
879
|
"kind": "javascript-module",
|
|
795
880
|
"path": "src/button/Button.ts",
|
|
@@ -1373,7 +1458,7 @@
|
|
|
1373
1458
|
"localization": [],
|
|
1374
1459
|
"status": "ready",
|
|
1375
1460
|
"category": "action",
|
|
1376
|
-
"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- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\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` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Icon usage in button\n\nIllustrative icons should be always positioned in the `start` slot:\n\n<img src=\"/img/components/button/start-slot.png\" class=\"n-border n-border-radius\" style=\"max-
|
|
1461
|
+
"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- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\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` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Icon usage in button\n\nIllustrative icons should be always positioned in the `start` slot:\n\n<img src=\"/img/components/button/start-slot.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button with icon in start slot\" />\n\nWhen a button is used as a dropdown toggle, the `interface-dropdown-small` icon from [Nordicons](/nordicons/) is automatically placed in the `end` slot:\n\n<img src=\"/img/components/button/dropdown.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Dropdown button\" />\n\nEach button size has a recommended icon size. The medium button uses the `s` icon size, the [small button](/components/button/?example=small+buttons) uses the `xs` icon size, and the [large button](/components/button/?example=large+buttons) uses the `m` icon size. The icon will adjust size automatically based on the button size, so you will get the correct behavior by default. However, this can be overridden by explicitly setting a size on the icon.\n\n<img src=\"/img/components/button/icon-sizes.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button icon sizes\" />\n\nUse `interface-add-small` icon in the `start` slot for create/add type primary actions in the [header](/components/header/):\n\n<img src=\"/img/components/button/create.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Create/add type primary action with icon\" />\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n",
|
|
1377
1462
|
"examples": [],
|
|
1378
1463
|
"dependencies": [
|
|
1379
1464
|
"spinner"
|
|
@@ -1401,91 +1486,6 @@
|
|
|
1401
1486
|
}
|
|
1402
1487
|
]
|
|
1403
1488
|
},
|
|
1404
|
-
{
|
|
1405
|
-
"kind": "javascript-module",
|
|
1406
|
-
"path": "src/banner/Banner.ts",
|
|
1407
|
-
"declarations": [
|
|
1408
|
-
{
|
|
1409
|
-
"kind": "class",
|
|
1410
|
-
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1411
|
-
"name": "Banner",
|
|
1412
|
-
"cssProperties": [
|
|
1413
|
-
{
|
|
1414
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1415
|
-
"name": "--n-banner-border-radius",
|
|
1416
|
-
"default": "var(--n-border-radius)"
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1420
|
-
"name": "--n-banner-box-shadow",
|
|
1421
|
-
"default": "var(--n-box-shadow-card)"
|
|
1422
|
-
}
|
|
1423
|
-
],
|
|
1424
|
-
"slots": [
|
|
1425
|
-
{
|
|
1426
|
-
"description": "default slot",
|
|
1427
|
-
"name": ""
|
|
1428
|
-
}
|
|
1429
|
-
],
|
|
1430
|
-
"members": [
|
|
1431
|
-
{
|
|
1432
|
-
"kind": "field",
|
|
1433
|
-
"name": "variant",
|
|
1434
|
-
"type": {
|
|
1435
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1436
|
-
},
|
|
1437
|
-
"default": "\"info\"",
|
|
1438
|
-
"description": "The style variant of the banner.",
|
|
1439
|
-
"attribute": "variant",
|
|
1440
|
-
"reflects": true
|
|
1441
|
-
}
|
|
1442
|
-
],
|
|
1443
|
-
"attributes": [
|
|
1444
|
-
{
|
|
1445
|
-
"name": "variant",
|
|
1446
|
-
"type": {
|
|
1447
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1448
|
-
},
|
|
1449
|
-
"default": "\"info\"",
|
|
1450
|
-
"description": "The style variant of the banner.",
|
|
1451
|
-
"fieldName": "variant"
|
|
1452
|
-
}
|
|
1453
|
-
],
|
|
1454
|
-
"superclass": {
|
|
1455
|
-
"name": "LitElement",
|
|
1456
|
-
"package": "lit"
|
|
1457
|
-
},
|
|
1458
|
-
"localization": [],
|
|
1459
|
-
"status": "ready",
|
|
1460
|
-
"category": "feedback",
|
|
1461
|
-
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
1462
|
-
"examples": [],
|
|
1463
|
-
"dependencies": [
|
|
1464
|
-
"icon"
|
|
1465
|
-
],
|
|
1466
|
-
"tagName": "nord-banner",
|
|
1467
|
-
"customElement": true
|
|
1468
|
-
}
|
|
1469
|
-
],
|
|
1470
|
-
"exports": [
|
|
1471
|
-
{
|
|
1472
|
-
"kind": "js",
|
|
1473
|
-
"name": "default",
|
|
1474
|
-
"declaration": {
|
|
1475
|
-
"name": "Banner",
|
|
1476
|
-
"module": "src/banner/Banner.ts"
|
|
1477
|
-
}
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
"kind": "custom-element-definition",
|
|
1481
|
-
"name": "nord-banner",
|
|
1482
|
-
"declaration": {
|
|
1483
|
-
"name": "Banner",
|
|
1484
|
-
"module": "src/banner/Banner.ts"
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
]
|
|
1488
|
-
},
|
|
1489
1489
|
{
|
|
1490
1490
|
"kind": "javascript-module",
|
|
1491
1491
|
"path": "src/button-group/ButtonGroup.ts",
|
|
@@ -2145,189 +2145,66 @@
|
|
|
2145
2145
|
},
|
|
2146
2146
|
{
|
|
2147
2147
|
"kind": "javascript-module",
|
|
2148
|
-
"path": "src/
|
|
2148
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
2149
2149
|
"declarations": [
|
|
2150
2150
|
{
|
|
2151
2151
|
"kind": "class",
|
|
2152
|
-
"description": "
|
|
2153
|
-
"name": "
|
|
2152
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
2153
|
+
"name": "Checkbox",
|
|
2154
2154
|
"cssProperties": [
|
|
2155
2155
|
{
|
|
2156
|
-
"description": "Controls
|
|
2157
|
-
"name": "--n-
|
|
2158
|
-
"default": "var(--n-
|
|
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)"
|
|
2169
|
-
},
|
|
2170
|
-
{
|
|
2171
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2172
|
-
"name": "--n-card-slot-padding",
|
|
2173
|
-
"default": "var(--n-space-m)"
|
|
2156
|
+
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
2157
|
+
"name": "--n-label-color",
|
|
2158
|
+
"default": "var(--n-color-text)"
|
|
2174
2159
|
}
|
|
2175
2160
|
],
|
|
2176
2161
|
"slots": [
|
|
2177
2162
|
{
|
|
2178
|
-
"description": "
|
|
2179
|
-
"name": ""
|
|
2180
|
-
},
|
|
2181
|
-
{
|
|
2182
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2183
|
-
"name": "header"
|
|
2163
|
+
"description": "Use when a label requires more than plain text.",
|
|
2164
|
+
"name": "label"
|
|
2184
2165
|
},
|
|
2185
2166
|
{
|
|
2186
|
-
"description": "Optional slot that
|
|
2187
|
-
"name": "
|
|
2167
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
2168
|
+
"name": "hint"
|
|
2188
2169
|
},
|
|
2189
2170
|
{
|
|
2190
|
-
"description": "Optional slot that holds
|
|
2191
|
-
"name": "
|
|
2171
|
+
"description": "Optional slot that holds error text for the input.",
|
|
2172
|
+
"name": "error"
|
|
2192
2173
|
}
|
|
2193
2174
|
],
|
|
2194
2175
|
"members": [
|
|
2195
2176
|
{
|
|
2196
2177
|
"kind": "field",
|
|
2197
|
-
"name": "
|
|
2198
|
-
"privacy": "
|
|
2199
|
-
"
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
"privacy": "private",
|
|
2205
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2178
|
+
"name": "formValue",
|
|
2179
|
+
"privacy": "protected",
|
|
2180
|
+
"readonly": true,
|
|
2181
|
+
"inheritedFrom": {
|
|
2182
|
+
"name": "FormAssociatedMixin",
|
|
2183
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2184
|
+
}
|
|
2206
2185
|
},
|
|
2207
2186
|
{
|
|
2208
2187
|
"kind": "field",
|
|
2209
|
-
"name": "
|
|
2210
|
-
"
|
|
2211
|
-
|
|
2188
|
+
"name": "indeterminate",
|
|
2189
|
+
"type": {
|
|
2190
|
+
"text": "boolean"
|
|
2191
|
+
},
|
|
2192
|
+
"default": "false",
|
|
2193
|
+
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
2194
|
+
"attribute": "indeterminate",
|
|
2195
|
+
"reflects": true
|
|
2212
2196
|
},
|
|
2213
2197
|
{
|
|
2214
2198
|
"kind": "field",
|
|
2215
|
-
"name": "
|
|
2199
|
+
"name": "checked",
|
|
2216
2200
|
"type": {
|
|
2217
|
-
"text": "
|
|
2201
|
+
"text": "boolean"
|
|
2218
2202
|
},
|
|
2219
|
-
"default": "
|
|
2220
|
-
"description": "Controls
|
|
2221
|
-
"attribute": "
|
|
2203
|
+
"default": "false",
|
|
2204
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
2205
|
+
"attribute": "checked",
|
|
2222
2206
|
"reflects": true
|
|
2223
|
-
}
|
|
2224
|
-
],
|
|
2225
|
-
"attributes": [
|
|
2226
|
-
{
|
|
2227
|
-
"name": "padding",
|
|
2228
|
-
"type": {
|
|
2229
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2230
|
-
},
|
|
2231
|
-
"default": "\"m\"",
|
|
2232
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2233
|
-
"fieldName": "padding"
|
|
2234
|
-
}
|
|
2235
|
-
],
|
|
2236
|
-
"superclass": {
|
|
2237
|
-
"name": "LitElement",
|
|
2238
|
-
"package": "lit"
|
|
2239
|
-
},
|
|
2240
|
-
"localization": [],
|
|
2241
|
-
"status": "ready",
|
|
2242
|
-
"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 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",
|
|
2244
|
-
"examples": [],
|
|
2245
|
-
"dependencies": [],
|
|
2246
|
-
"tagName": "nord-card",
|
|
2247
|
-
"customElement": true
|
|
2248
|
-
}
|
|
2249
|
-
],
|
|
2250
|
-
"exports": [
|
|
2251
|
-
{
|
|
2252
|
-
"kind": "js",
|
|
2253
|
-
"name": "default",
|
|
2254
|
-
"declaration": {
|
|
2255
|
-
"name": "Card",
|
|
2256
|
-
"module": "src/card/Card.ts"
|
|
2257
|
-
}
|
|
2258
|
-
},
|
|
2259
|
-
{
|
|
2260
|
-
"kind": "custom-element-definition",
|
|
2261
|
-
"name": "nord-card",
|
|
2262
|
-
"declaration": {
|
|
2263
|
-
"name": "Card",
|
|
2264
|
-
"module": "src/card/Card.ts"
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
]
|
|
2268
|
-
},
|
|
2269
|
-
{
|
|
2270
|
-
"kind": "javascript-module",
|
|
2271
|
-
"path": "src/checkbox/Checkbox.ts",
|
|
2272
|
-
"declarations": [
|
|
2273
|
-
{
|
|
2274
|
-
"kind": "class",
|
|
2275
|
-
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
2276
|
-
"name": "Checkbox",
|
|
2277
|
-
"cssProperties": [
|
|
2278
|
-
{
|
|
2279
|
-
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
2280
|
-
"name": "--n-label-color",
|
|
2281
|
-
"default": "var(--n-color-text)"
|
|
2282
|
-
}
|
|
2283
|
-
],
|
|
2284
|
-
"slots": [
|
|
2285
|
-
{
|
|
2286
|
-
"description": "Use when a label requires more than plain text.",
|
|
2287
|
-
"name": "label"
|
|
2288
|
-
},
|
|
2289
|
-
{
|
|
2290
|
-
"description": "Optional slot that holds hint text for the input.",
|
|
2291
|
-
"name": "hint"
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
"description": "Optional slot that holds error text for the input.",
|
|
2295
|
-
"name": "error"
|
|
2296
|
-
}
|
|
2297
|
-
],
|
|
2298
|
-
"members": [
|
|
2299
|
-
{
|
|
2300
|
-
"kind": "field",
|
|
2301
|
-
"name": "formValue",
|
|
2302
|
-
"privacy": "protected",
|
|
2303
|
-
"readonly": true,
|
|
2304
|
-
"inheritedFrom": {
|
|
2305
|
-
"name": "FormAssociatedMixin",
|
|
2306
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2307
|
-
}
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
"kind": "field",
|
|
2311
|
-
"name": "indeterminate",
|
|
2312
|
-
"type": {
|
|
2313
|
-
"text": "boolean"
|
|
2314
|
-
},
|
|
2315
|
-
"default": "false",
|
|
2316
|
-
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
2317
|
-
"attribute": "indeterminate",
|
|
2318
|
-
"reflects": true
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
"kind": "field",
|
|
2322
|
-
"name": "checked",
|
|
2323
|
-
"type": {
|
|
2324
|
-
"text": "boolean"
|
|
2325
|
-
},
|
|
2326
|
-
"default": "false",
|
|
2327
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
2328
|
-
"attribute": "checked",
|
|
2329
|
-
"reflects": true
|
|
2330
|
-
},
|
|
2207
|
+
},
|
|
2331
2208
|
{
|
|
2332
2209
|
"kind": "method",
|
|
2333
2210
|
"name": "handleChange",
|
|
@@ -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",
|
|
@@ -7240,40 +7240,121 @@
|
|
|
7240
7240
|
},
|
|
7241
7241
|
{
|
|
7242
7242
|
"kind": "javascript-module",
|
|
7243
|
-
"path": "src/
|
|
7243
|
+
"path": "src/header/Header.ts",
|
|
7244
7244
|
"declarations": [
|
|
7245
7245
|
{
|
|
7246
7246
|
"kind": "class",
|
|
7247
|
-
"description": "
|
|
7248
|
-
"name": "
|
|
7247
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
7248
|
+
"name": "Header",
|
|
7249
7249
|
"slots": [
|
|
7250
7250
|
{
|
|
7251
|
-
"description": "The
|
|
7251
|
+
"description": "The header content.",
|
|
7252
7252
|
"name": ""
|
|
7253
|
+
},
|
|
7254
|
+
{
|
|
7255
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
7256
|
+
"name": "end"
|
|
7253
7257
|
}
|
|
7254
7258
|
],
|
|
7255
7259
|
"members": [
|
|
7256
7260
|
{
|
|
7257
7261
|
"kind": "field",
|
|
7258
|
-
"name": "
|
|
7262
|
+
"name": "endSlot",
|
|
7259
7263
|
"privacy": "private",
|
|
7260
|
-
"
|
|
7261
|
-
"default": "new IconManager()"
|
|
7264
|
+
"default": "new SlotController(this, \"end\")"
|
|
7262
7265
|
},
|
|
7263
7266
|
{
|
|
7264
|
-
"kind": "
|
|
7265
|
-
"name": "
|
|
7266
|
-
"
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7267
|
+
"kind": "field",
|
|
7268
|
+
"name": "size",
|
|
7269
|
+
"type": {
|
|
7270
|
+
"text": "\"m\" | \"s\""
|
|
7271
|
+
},
|
|
7272
|
+
"default": "\"m\"",
|
|
7273
|
+
"description": "Controls the size of the header component.",
|
|
7274
|
+
"attribute": "size",
|
|
7275
|
+
"reflects": true
|
|
7276
|
+
}
|
|
7277
|
+
],
|
|
7278
|
+
"attributes": [
|
|
7279
|
+
{
|
|
7280
|
+
"name": "size",
|
|
7281
|
+
"type": {
|
|
7282
|
+
"text": "\"m\" | \"s\""
|
|
7283
|
+
},
|
|
7284
|
+
"default": "\"m\"",
|
|
7285
|
+
"description": "Controls the size of the header component.",
|
|
7286
|
+
"fieldName": "size"
|
|
7287
|
+
}
|
|
7288
|
+
],
|
|
7289
|
+
"superclass": {
|
|
7290
|
+
"name": "LitElement",
|
|
7291
|
+
"package": "lit"
|
|
7292
|
+
},
|
|
7293
|
+
"localization": [],
|
|
7294
|
+
"status": "ready",
|
|
7295
|
+
"category": "structure",
|
|
7296
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
7297
|
+
"examples": [],
|
|
7298
|
+
"dependencies": [],
|
|
7299
|
+
"tagName": "nord-header",
|
|
7300
|
+
"customElement": true
|
|
7301
|
+
}
|
|
7302
|
+
],
|
|
7303
|
+
"exports": [
|
|
7304
|
+
{
|
|
7305
|
+
"kind": "js",
|
|
7306
|
+
"name": "default",
|
|
7307
|
+
"declaration": {
|
|
7308
|
+
"name": "Header",
|
|
7309
|
+
"module": "src/header/Header.ts"
|
|
7310
|
+
}
|
|
7311
|
+
},
|
|
7312
|
+
{
|
|
7313
|
+
"kind": "custom-element-definition",
|
|
7314
|
+
"name": "nord-header",
|
|
7315
|
+
"declaration": {
|
|
7316
|
+
"name": "Header",
|
|
7317
|
+
"module": "src/header/Header.ts"
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
]
|
|
7321
|
+
},
|
|
7322
|
+
{
|
|
7323
|
+
"kind": "javascript-module",
|
|
7324
|
+
"path": "src/icon/Icon.ts",
|
|
7325
|
+
"declarations": [
|
|
7326
|
+
{
|
|
7327
|
+
"kind": "class",
|
|
7328
|
+
"description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
|
|
7329
|
+
"name": "Icon",
|
|
7330
|
+
"slots": [
|
|
7331
|
+
{
|
|
7332
|
+
"description": "The default slot used for placing a custom SVG icon.",
|
|
7333
|
+
"name": ""
|
|
7334
|
+
}
|
|
7335
|
+
],
|
|
7336
|
+
"members": [
|
|
7337
|
+
{
|
|
7338
|
+
"kind": "field",
|
|
7339
|
+
"name": "manager",
|
|
7340
|
+
"privacy": "private",
|
|
7341
|
+
"static": true,
|
|
7342
|
+
"default": "new IconManager()"
|
|
7343
|
+
},
|
|
7344
|
+
{
|
|
7345
|
+
"kind": "method",
|
|
7346
|
+
"name": "registerResolver",
|
|
7347
|
+
"static": true,
|
|
7348
|
+
"parameters": [
|
|
7349
|
+
{
|
|
7350
|
+
"name": "resolver",
|
|
7351
|
+
"type": {
|
|
7352
|
+
"text": "IconResolver"
|
|
7353
|
+
},
|
|
7354
|
+
"description": "The resolver function to register."
|
|
7355
|
+
}
|
|
7356
|
+
],
|
|
7357
|
+
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
7277
7358
|
},
|
|
7278
7359
|
{
|
|
7279
7360
|
"kind": "method",
|
|
@@ -9116,87 +9197,6 @@
|
|
|
9116
9197
|
}
|
|
9117
9198
|
]
|
|
9118
9199
|
},
|
|
9119
|
-
{
|
|
9120
|
-
"kind": "javascript-module",
|
|
9121
|
-
"path": "src/header/Header.ts",
|
|
9122
|
-
"declarations": [
|
|
9123
|
-
{
|
|
9124
|
-
"kind": "class",
|
|
9125
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
9126
|
-
"name": "Header",
|
|
9127
|
-
"slots": [
|
|
9128
|
-
{
|
|
9129
|
-
"description": "The header content.",
|
|
9130
|
-
"name": ""
|
|
9131
|
-
},
|
|
9132
|
-
{
|
|
9133
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
9134
|
-
"name": "end"
|
|
9135
|
-
}
|
|
9136
|
-
],
|
|
9137
|
-
"members": [
|
|
9138
|
-
{
|
|
9139
|
-
"kind": "field",
|
|
9140
|
-
"name": "endSlot",
|
|
9141
|
-
"privacy": "private",
|
|
9142
|
-
"default": "new SlotController(this, \"end\")"
|
|
9143
|
-
},
|
|
9144
|
-
{
|
|
9145
|
-
"kind": "field",
|
|
9146
|
-
"name": "size",
|
|
9147
|
-
"type": {
|
|
9148
|
-
"text": "\"m\" | \"s\""
|
|
9149
|
-
},
|
|
9150
|
-
"default": "\"m\"",
|
|
9151
|
-
"description": "Controls the size of the header component.",
|
|
9152
|
-
"attribute": "size",
|
|
9153
|
-
"reflects": true
|
|
9154
|
-
}
|
|
9155
|
-
],
|
|
9156
|
-
"attributes": [
|
|
9157
|
-
{
|
|
9158
|
-
"name": "size",
|
|
9159
|
-
"type": {
|
|
9160
|
-
"text": "\"m\" | \"s\""
|
|
9161
|
-
},
|
|
9162
|
-
"default": "\"m\"",
|
|
9163
|
-
"description": "Controls the size of the header component.",
|
|
9164
|
-
"fieldName": "size"
|
|
9165
|
-
}
|
|
9166
|
-
],
|
|
9167
|
-
"superclass": {
|
|
9168
|
-
"name": "LitElement",
|
|
9169
|
-
"package": "lit"
|
|
9170
|
-
},
|
|
9171
|
-
"localization": [],
|
|
9172
|
-
"status": "ready",
|
|
9173
|
-
"category": "structure",
|
|
9174
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
9175
|
-
"examples": [],
|
|
9176
|
-
"dependencies": [],
|
|
9177
|
-
"tagName": "nord-header",
|
|
9178
|
-
"customElement": true
|
|
9179
|
-
}
|
|
9180
|
-
],
|
|
9181
|
-
"exports": [
|
|
9182
|
-
{
|
|
9183
|
-
"kind": "js",
|
|
9184
|
-
"name": "default",
|
|
9185
|
-
"declaration": {
|
|
9186
|
-
"name": "Header",
|
|
9187
|
-
"module": "src/header/Header.ts"
|
|
9188
|
-
}
|
|
9189
|
-
},
|
|
9190
|
-
{
|
|
9191
|
-
"kind": "custom-element-definition",
|
|
9192
|
-
"name": "nord-header",
|
|
9193
|
-
"declaration": {
|
|
9194
|
-
"name": "Header",
|
|
9195
|
-
"module": "src/header/Header.ts"
|
|
9196
|
-
}
|
|
9197
|
-
}
|
|
9198
|
-
]
|
|
9199
|
-
},
|
|
9200
9200
|
{
|
|
9201
9201
|
"kind": "javascript-module",
|
|
9202
9202
|
"path": "src/localization/LocalizeController.ts",
|
|
@@ -10464,182 +10464,52 @@
|
|
|
10464
10464
|
},
|
|
10465
10465
|
{
|
|
10466
10466
|
"kind": "javascript-module",
|
|
10467
|
-
"path": "src/
|
|
10467
|
+
"path": "src/nav-toggle/NavToggle.ts",
|
|
10468
10468
|
"declarations": [
|
|
10469
10469
|
{
|
|
10470
10470
|
"kind": "class",
|
|
10471
|
-
"description": "
|
|
10472
|
-
"name": "
|
|
10473
|
-
"cssProperties": [
|
|
10474
|
-
{
|
|
10475
|
-
"description": "Controls the background color of the navigation element.",
|
|
10476
|
-
"name": "--n-navigation-background-color",
|
|
10477
|
-
"default": "var(--n-color-nav-surface)"
|
|
10478
|
-
}
|
|
10479
|
-
],
|
|
10480
|
-
"slots": [
|
|
10481
|
-
{
|
|
10482
|
-
"description": "The main section of the sidebar, for holding nav components.",
|
|
10483
|
-
"name": ""
|
|
10484
|
-
},
|
|
10485
|
-
{
|
|
10486
|
-
"description": "The top section of the sidebar.",
|
|
10487
|
-
"name": "header"
|
|
10488
|
-
},
|
|
10489
|
-
{
|
|
10490
|
-
"description": "The bottom section of the sidebar.",
|
|
10491
|
-
"name": "footer"
|
|
10492
|
-
}
|
|
10493
|
-
],
|
|
10471
|
+
"description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behavior.",
|
|
10472
|
+
"name": "NavToggle",
|
|
10494
10473
|
"members": [
|
|
10495
10474
|
{
|
|
10496
10475
|
"kind": "field",
|
|
10497
|
-
"name": "
|
|
10476
|
+
"name": "direction",
|
|
10498
10477
|
"privacy": "private",
|
|
10499
|
-
"default": "new
|
|
10478
|
+
"default": "new DirectionController(this)"
|
|
10500
10479
|
},
|
|
10501
10480
|
{
|
|
10502
10481
|
"kind": "field",
|
|
10503
|
-
"name": "
|
|
10482
|
+
"name": "localization",
|
|
10504
10483
|
"privacy": "private",
|
|
10505
|
-
"default": "new
|
|
10484
|
+
"default": "new LocalizeController<\"nord-nav-toggle\">(this)"
|
|
10506
10485
|
},
|
|
10507
10486
|
{
|
|
10508
10487
|
"kind": "field",
|
|
10509
|
-
"name": "
|
|
10510
|
-
"
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10488
|
+
"name": "focusableRef",
|
|
10489
|
+
"privacy": "protected",
|
|
10490
|
+
"inheritedFrom": {
|
|
10491
|
+
"name": "FocusableMixin",
|
|
10492
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10493
|
+
}
|
|
10515
10494
|
},
|
|
10516
10495
|
{
|
|
10517
|
-
"kind": "
|
|
10518
|
-
"name": "
|
|
10519
|
-
"
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
"
|
|
10530
|
-
"
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
{
|
|
10535
|
-
"type": {
|
|
10536
|
-
"text": "NordEvent"
|
|
10537
|
-
},
|
|
10538
|
-
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10539
|
-
"name": "toggle"
|
|
10540
|
-
},
|
|
10541
|
-
{
|
|
10542
|
-
"type": {
|
|
10543
|
-
"text": "NordEvent"
|
|
10544
|
-
},
|
|
10545
|
-
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10546
|
-
"name": "activate"
|
|
10547
|
-
}
|
|
10548
|
-
],
|
|
10549
|
-
"attributes": [
|
|
10550
|
-
{
|
|
10551
|
-
"name": "sticky-footer",
|
|
10552
|
-
"type": {
|
|
10553
|
-
"text": "boolean"
|
|
10554
|
-
},
|
|
10555
|
-
"default": "false",
|
|
10556
|
-
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10557
|
-
"fieldName": "stickyFooter"
|
|
10558
|
-
}
|
|
10559
|
-
],
|
|
10560
|
-
"superclass": {
|
|
10561
|
-
"name": "LitElement",
|
|
10562
|
-
"package": "lit"
|
|
10563
|
-
},
|
|
10564
|
-
"localization": [],
|
|
10565
|
-
"status": "ready",
|
|
10566
|
-
"category": "navigation",
|
|
10567
|
-
"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 for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10568
|
-
"examples": [],
|
|
10569
|
-
"dependencies": [
|
|
10570
|
-
"nav-item"
|
|
10571
|
-
],
|
|
10572
|
-
"tagName": "nord-navigation",
|
|
10573
|
-
"customElement": true
|
|
10574
|
-
}
|
|
10575
|
-
],
|
|
10576
|
-
"exports": [
|
|
10577
|
-
{
|
|
10578
|
-
"kind": "js",
|
|
10579
|
-
"name": "default",
|
|
10580
|
-
"declaration": {
|
|
10581
|
-
"name": "Navigation",
|
|
10582
|
-
"module": "src/navigation/Navigation.ts"
|
|
10583
|
-
}
|
|
10584
|
-
},
|
|
10585
|
-
{
|
|
10586
|
-
"kind": "custom-element-definition",
|
|
10587
|
-
"name": "nord-navigation",
|
|
10588
|
-
"declaration": {
|
|
10589
|
-
"name": "Navigation",
|
|
10590
|
-
"module": "src/navigation/Navigation.ts"
|
|
10591
|
-
}
|
|
10592
|
-
}
|
|
10593
|
-
]
|
|
10594
|
-
},
|
|
10595
|
-
{
|
|
10596
|
-
"kind": "javascript-module",
|
|
10597
|
-
"path": "src/nav-toggle/NavToggle.ts",
|
|
10598
|
-
"declarations": [
|
|
10599
|
-
{
|
|
10600
|
-
"kind": "class",
|
|
10601
|
-
"description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behavior.",
|
|
10602
|
-
"name": "NavToggle",
|
|
10603
|
-
"members": [
|
|
10604
|
-
{
|
|
10605
|
-
"kind": "field",
|
|
10606
|
-
"name": "direction",
|
|
10607
|
-
"privacy": "private",
|
|
10608
|
-
"default": "new DirectionController(this)"
|
|
10609
|
-
},
|
|
10610
|
-
{
|
|
10611
|
-
"kind": "field",
|
|
10612
|
-
"name": "localization",
|
|
10613
|
-
"privacy": "private",
|
|
10614
|
-
"default": "new LocalizeController<\"nord-nav-toggle\">(this)"
|
|
10615
|
-
},
|
|
10616
|
-
{
|
|
10617
|
-
"kind": "field",
|
|
10618
|
-
"name": "focusableRef",
|
|
10619
|
-
"privacy": "protected",
|
|
10620
|
-
"inheritedFrom": {
|
|
10621
|
-
"name": "FocusableMixin",
|
|
10622
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10623
|
-
}
|
|
10624
|
-
},
|
|
10625
|
-
{
|
|
10626
|
-
"kind": "method",
|
|
10627
|
-
"name": "focus",
|
|
10628
|
-
"parameters": [
|
|
10629
|
-
{
|
|
10630
|
-
"name": "options",
|
|
10631
|
-
"optional": true,
|
|
10632
|
-
"type": {
|
|
10633
|
-
"text": "FocusOptions"
|
|
10634
|
-
},
|
|
10635
|
-
"description": "An object which controls aspects of the focusing process."
|
|
10636
|
-
}
|
|
10637
|
-
],
|
|
10638
|
-
"description": "Programmatically move focus to the component.",
|
|
10639
|
-
"inheritedFrom": {
|
|
10640
|
-
"name": "FocusableMixin",
|
|
10641
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10642
|
-
}
|
|
10496
|
+
"kind": "method",
|
|
10497
|
+
"name": "focus",
|
|
10498
|
+
"parameters": [
|
|
10499
|
+
{
|
|
10500
|
+
"name": "options",
|
|
10501
|
+
"optional": true,
|
|
10502
|
+
"type": {
|
|
10503
|
+
"text": "FocusOptions"
|
|
10504
|
+
},
|
|
10505
|
+
"description": "An object which controls aspects of the focusing process."
|
|
10506
|
+
}
|
|
10507
|
+
],
|
|
10508
|
+
"description": "Programmatically move focus to the component.",
|
|
10509
|
+
"inheritedFrom": {
|
|
10510
|
+
"name": "FocusableMixin",
|
|
10511
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10512
|
+
}
|
|
10643
10513
|
},
|
|
10644
10514
|
{
|
|
10645
10515
|
"kind": "method",
|
|
@@ -10732,6 +10602,136 @@
|
|
|
10732
10602
|
}
|
|
10733
10603
|
]
|
|
10734
10604
|
},
|
|
10605
|
+
{
|
|
10606
|
+
"kind": "javascript-module",
|
|
10607
|
+
"path": "src/navigation/Navigation.ts",
|
|
10608
|
+
"declarations": [
|
|
10609
|
+
{
|
|
10610
|
+
"kind": "class",
|
|
10611
|
+
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
10612
|
+
"name": "Navigation",
|
|
10613
|
+
"cssProperties": [
|
|
10614
|
+
{
|
|
10615
|
+
"description": "Controls the background color of the navigation element.",
|
|
10616
|
+
"name": "--n-navigation-background-color",
|
|
10617
|
+
"default": "var(--n-color-nav-surface)"
|
|
10618
|
+
}
|
|
10619
|
+
],
|
|
10620
|
+
"slots": [
|
|
10621
|
+
{
|
|
10622
|
+
"description": "The main section of the sidebar, for holding nav components.",
|
|
10623
|
+
"name": ""
|
|
10624
|
+
},
|
|
10625
|
+
{
|
|
10626
|
+
"description": "The top section of the sidebar.",
|
|
10627
|
+
"name": "header"
|
|
10628
|
+
},
|
|
10629
|
+
{
|
|
10630
|
+
"description": "The bottom section of the sidebar.",
|
|
10631
|
+
"name": "footer"
|
|
10632
|
+
}
|
|
10633
|
+
],
|
|
10634
|
+
"members": [
|
|
10635
|
+
{
|
|
10636
|
+
"kind": "field",
|
|
10637
|
+
"name": "headerSlot",
|
|
10638
|
+
"privacy": "private",
|
|
10639
|
+
"default": "new SlotController(this, \"header\")"
|
|
10640
|
+
},
|
|
10641
|
+
{
|
|
10642
|
+
"kind": "field",
|
|
10643
|
+
"name": "events",
|
|
10644
|
+
"privacy": "private",
|
|
10645
|
+
"default": "new EventController(this)"
|
|
10646
|
+
},
|
|
10647
|
+
{
|
|
10648
|
+
"kind": "field",
|
|
10649
|
+
"name": "allowItemsToRemainOpen",
|
|
10650
|
+
"type": {
|
|
10651
|
+
"text": "boolean"
|
|
10652
|
+
},
|
|
10653
|
+
"privacy": "private",
|
|
10654
|
+
"default": "false"
|
|
10655
|
+
},
|
|
10656
|
+
{
|
|
10657
|
+
"kind": "field",
|
|
10658
|
+
"name": "stickyFooter",
|
|
10659
|
+
"type": {
|
|
10660
|
+
"text": "boolean"
|
|
10661
|
+
},
|
|
10662
|
+
"default": "false",
|
|
10663
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10664
|
+
"attribute": "sticky-footer",
|
|
10665
|
+
"reflects": true
|
|
10666
|
+
},
|
|
10667
|
+
{
|
|
10668
|
+
"kind": "field",
|
|
10669
|
+
"name": "handleActivate",
|
|
10670
|
+
"privacy": "private"
|
|
10671
|
+
}
|
|
10672
|
+
],
|
|
10673
|
+
"events": [
|
|
10674
|
+
{
|
|
10675
|
+
"type": {
|
|
10676
|
+
"text": "NordEvent"
|
|
10677
|
+
},
|
|
10678
|
+
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10679
|
+
"name": "toggle"
|
|
10680
|
+
},
|
|
10681
|
+
{
|
|
10682
|
+
"type": {
|
|
10683
|
+
"text": "NordEvent"
|
|
10684
|
+
},
|
|
10685
|
+
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10686
|
+
"name": "activate"
|
|
10687
|
+
}
|
|
10688
|
+
],
|
|
10689
|
+
"attributes": [
|
|
10690
|
+
{
|
|
10691
|
+
"name": "sticky-footer",
|
|
10692
|
+
"type": {
|
|
10693
|
+
"text": "boolean"
|
|
10694
|
+
},
|
|
10695
|
+
"default": "false",
|
|
10696
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10697
|
+
"fieldName": "stickyFooter"
|
|
10698
|
+
}
|
|
10699
|
+
],
|
|
10700
|
+
"superclass": {
|
|
10701
|
+
"name": "LitElement",
|
|
10702
|
+
"package": "lit"
|
|
10703
|
+
},
|
|
10704
|
+
"localization": [],
|
|
10705
|
+
"status": "ready",
|
|
10706
|
+
"category": "navigation",
|
|
10707
|
+
"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 for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10708
|
+
"examples": [],
|
|
10709
|
+
"dependencies": [
|
|
10710
|
+
"nav-item"
|
|
10711
|
+
],
|
|
10712
|
+
"tagName": "nord-navigation",
|
|
10713
|
+
"customElement": true
|
|
10714
|
+
}
|
|
10715
|
+
],
|
|
10716
|
+
"exports": [
|
|
10717
|
+
{
|
|
10718
|
+
"kind": "js",
|
|
10719
|
+
"name": "default",
|
|
10720
|
+
"declaration": {
|
|
10721
|
+
"name": "Navigation",
|
|
10722
|
+
"module": "src/navigation/Navigation.ts"
|
|
10723
|
+
}
|
|
10724
|
+
},
|
|
10725
|
+
{
|
|
10726
|
+
"kind": "custom-element-definition",
|
|
10727
|
+
"name": "nord-navigation",
|
|
10728
|
+
"declaration": {
|
|
10729
|
+
"name": "Navigation",
|
|
10730
|
+
"module": "src/navigation/Navigation.ts"
|
|
10731
|
+
}
|
|
10732
|
+
}
|
|
10733
|
+
]
|
|
10734
|
+
},
|
|
10735
10735
|
{
|
|
10736
10736
|
"kind": "javascript-module",
|
|
10737
10737
|
"path": "src/notification/Notification.ts",
|
|
@@ -11458,7 +11458,7 @@
|
|
|
11458
11458
|
"kind": "field",
|
|
11459
11459
|
"name": "canvas",
|
|
11460
11460
|
"type": {
|
|
11461
|
-
"text": "
|
|
11461
|
+
"text": "HTMLCanvasElement"
|
|
11462
11462
|
},
|
|
11463
11463
|
"privacy": "private"
|
|
11464
11464
|
},
|
|
@@ -11634,38 +11634,23 @@
|
|
|
11634
11634
|
},
|
|
11635
11635
|
{
|
|
11636
11636
|
"kind": "javascript-module",
|
|
11637
|
-
"path": "src/
|
|
11637
|
+
"path": "src/radio/Radio.ts",
|
|
11638
11638
|
"declarations": [
|
|
11639
11639
|
{
|
|
11640
11640
|
"kind": "class",
|
|
11641
|
-
"description": "
|
|
11642
|
-
"name": "
|
|
11641
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
11642
|
+
"name": "Radio",
|
|
11643
11643
|
"cssProperties": [
|
|
11644
11644
|
{
|
|
11645
|
-
"description": "Controls the
|
|
11646
|
-
"name": "--n-
|
|
11647
|
-
"default": "
|
|
11648
|
-
}
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
"
|
|
11653
|
-
|
|
11654
|
-
{
|
|
11655
|
-
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
11656
|
-
"name": "--n-range-track-color-inactive",
|
|
11657
|
-
"default": "var(--n-color-border-strong)"
|
|
11658
|
-
},
|
|
11659
|
-
{
|
|
11660
|
-
"description": "Controls the height of the track.",
|
|
11661
|
-
"name": "--n-range-track-size",
|
|
11662
|
-
"default": "3px"
|
|
11663
|
-
}
|
|
11664
|
-
],
|
|
11665
|
-
"slots": [
|
|
11666
|
-
{
|
|
11667
|
-
"description": "Use when a label requires more than plain text.",
|
|
11668
|
-
"name": "label"
|
|
11645
|
+
"description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
|
|
11646
|
+
"name": "--n-label-color",
|
|
11647
|
+
"default": "var(--n-color-text)"
|
|
11648
|
+
}
|
|
11649
|
+
],
|
|
11650
|
+
"slots": [
|
|
11651
|
+
{
|
|
11652
|
+
"description": "Use when a label requires more than plain text.",
|
|
11653
|
+
"name": "label"
|
|
11669
11654
|
},
|
|
11670
11655
|
{
|
|
11671
11656
|
"description": "Optional slot that holds hint text for the input.",
|
|
@@ -11679,66 +11664,38 @@
|
|
|
11679
11664
|
"members": [
|
|
11680
11665
|
{
|
|
11681
11666
|
"kind": "field",
|
|
11682
|
-
"name": "
|
|
11683
|
-
"privacy": "private",
|
|
11684
|
-
"default": "new DirectionController(this)"
|
|
11685
|
-
},
|
|
11686
|
-
{
|
|
11687
|
-
"kind": "field",
|
|
11688
|
-
"name": "min",
|
|
11689
|
-
"type": {
|
|
11690
|
-
"text": "number"
|
|
11691
|
-
},
|
|
11692
|
-
"default": "0",
|
|
11693
|
-
"description": "Minimum value for the range slider.",
|
|
11694
|
-
"attribute": "min",
|
|
11695
|
-
"reflects": true
|
|
11696
|
-
},
|
|
11697
|
-
{
|
|
11698
|
-
"kind": "field",
|
|
11699
|
-
"name": "max",
|
|
11667
|
+
"name": "inputId",
|
|
11700
11668
|
"type": {
|
|
11701
|
-
"text": "
|
|
11669
|
+
"text": "string"
|
|
11702
11670
|
},
|
|
11703
|
-
"
|
|
11704
|
-
"
|
|
11705
|
-
"
|
|
11706
|
-
|
|
11671
|
+
"privacy": "protected",
|
|
11672
|
+
"default": "\"input\"",
|
|
11673
|
+
"inheritedFrom": {
|
|
11674
|
+
"name": "FormAssociatedMixin",
|
|
11675
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11676
|
+
}
|
|
11707
11677
|
},
|
|
11708
11678
|
{
|
|
11709
11679
|
"kind": "field",
|
|
11710
|
-
"name": "
|
|
11680
|
+
"name": "hintId",
|
|
11711
11681
|
"type": {
|
|
11712
|
-
"text": "
|
|
11682
|
+
"text": "string"
|
|
11713
11683
|
},
|
|
11714
|
-
"
|
|
11715
|
-
"
|
|
11716
|
-
"
|
|
11717
|
-
|
|
11684
|
+
"privacy": "protected",
|
|
11685
|
+
"default": "\"hint\"",
|
|
11686
|
+
"inheritedFrom": {
|
|
11687
|
+
"name": "FormAssociatedMixin",
|
|
11688
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11689
|
+
}
|
|
11718
11690
|
},
|
|
11719
11691
|
{
|
|
11720
11692
|
"kind": "field",
|
|
11721
|
-
"name": "
|
|
11693
|
+
"name": "errorId",
|
|
11722
11694
|
"type": {
|
|
11723
|
-
"text": "
|
|
11695
|
+
"text": "string"
|
|
11724
11696
|
},
|
|
11725
|
-
"default": "false",
|
|
11726
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11727
|
-
"attribute": "expand",
|
|
11728
|
-
"reflects": true
|
|
11729
|
-
},
|
|
11730
|
-
{
|
|
11731
|
-
"kind": "method",
|
|
11732
|
-
"name": "handleInput",
|
|
11733
11697
|
"privacy": "protected",
|
|
11734
|
-
"
|
|
11735
|
-
{
|
|
11736
|
-
"name": "e",
|
|
11737
|
-
"type": {
|
|
11738
|
-
"text": "Event"
|
|
11739
|
-
}
|
|
11740
|
-
}
|
|
11741
|
-
],
|
|
11698
|
+
"default": "\"error\"",
|
|
11742
11699
|
"inheritedFrom": {
|
|
11743
11700
|
"name": "FormAssociatedMixin",
|
|
11744
11701
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11746,9 +11703,10 @@
|
|
|
11746
11703
|
},
|
|
11747
11704
|
{
|
|
11748
11705
|
"kind": "field",
|
|
11749
|
-
"name": "
|
|
11706
|
+
"name": "hintSlot",
|
|
11750
11707
|
"privacy": "protected",
|
|
11751
|
-
"default": "new
|
|
11708
|
+
"default": "new LightSlotController(this, { slotName: \"hint\", render: () => (this.hint ? html`<div slot=\"hint-internal\" id=${this.hintId}>${this.hint}</div>` : nothing), syncLightDom: element => { element.id = this.hintId }, })",
|
|
11709
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11752
11710
|
"inheritedFrom": {
|
|
11753
11711
|
"name": "FormAssociatedMixin",
|
|
11754
11712
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11756,9 +11714,9 @@
|
|
|
11756
11714
|
},
|
|
11757
11715
|
{
|
|
11758
11716
|
"kind": "field",
|
|
11759
|
-
"name": "
|
|
11717
|
+
"name": "labelSlot",
|
|
11760
11718
|
"privacy": "protected",
|
|
11761
|
-
"default": "new
|
|
11719
|
+
"default": "new LightSlotController(this, { slotName: \"label\", render: () => (this.label ? html`<label slot=\"label-internal\" for=${this.inputId}>${this.label}</label>` : nothing), syncLightDom: element => { if (!isLabel(element)) { // eslint-disable-next-line no-console console.warn(`NORD: Only <label> elements should be placed in radio's \"label\" slot`) } else { element.htmlFor = this.inputId } }, })",
|
|
11762
11720
|
"inheritedFrom": {
|
|
11763
11721
|
"name": "FormAssociatedMixin",
|
|
11764
11722
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11766,9 +11724,9 @@
|
|
|
11766
11724
|
},
|
|
11767
11725
|
{
|
|
11768
11726
|
"kind": "field",
|
|
11769
|
-
"name": "
|
|
11727
|
+
"name": "errorSlot",
|
|
11770
11728
|
"privacy": "protected",
|
|
11771
|
-
"default": "new
|
|
11729
|
+
"default": "new LightSlotController(this, { slotName: \"error\", render: () => (this.error ? html`<div slot=\"error-internal\" id=${this.errorId}>${this.error}</div>` : nothing), syncLightDom: element => { element.id = this.hintId }, })",
|
|
11772
11730
|
"inheritedFrom": {
|
|
11773
11731
|
"name": "FormAssociatedMixin",
|
|
11774
11732
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11776,13 +11734,9 @@
|
|
|
11776
11734
|
},
|
|
11777
11735
|
{
|
|
11778
11736
|
"kind": "field",
|
|
11779
|
-
"name": "
|
|
11737
|
+
"name": "inputSlot",
|
|
11780
11738
|
"privacy": "protected",
|
|
11781
|
-
"default": "new
|
|
11782
|
-
"inheritedFrom": {
|
|
11783
|
-
"name": "FormAssociatedMixin",
|
|
11784
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11785
|
-
}
|
|
11739
|
+
"default": "new LightDomController(this, { render: () => html` <input slot=\"input\" @blur=${this.handleBlur} @focus=${this.handleFocus} ${ref(this.focusableRef)} class=\"n-input\" id=${this.inputId} type=\"radio\" name=${cond(this.name)} .value=${cond(this.value)} .checked=${this.checked} ?disabled=${this.disabled} ?required=${this.required} aria-describedby=${cond(this.getDescribedBy())} aria-invalid=${cond(this.getInvalid())} form=${cond(this._formId)} /> `, })"
|
|
11786
11740
|
},
|
|
11787
11741
|
{
|
|
11788
11742
|
"kind": "field",
|
|
@@ -11796,12 +11750,50 @@
|
|
|
11796
11750
|
},
|
|
11797
11751
|
{
|
|
11798
11752
|
"kind": "field",
|
|
11799
|
-
"name": "
|
|
11753
|
+
"name": "checked",
|
|
11800
11754
|
"type": {
|
|
11801
|
-
"text": "
|
|
11755
|
+
"text": "boolean"
|
|
11802
11756
|
},
|
|
11757
|
+
"default": "false",
|
|
11758
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
11759
|
+
"attribute": "checked",
|
|
11760
|
+
"reflects": true
|
|
11761
|
+
},
|
|
11762
|
+
{
|
|
11763
|
+
"kind": "method",
|
|
11764
|
+
"name": "handleCheckedChange",
|
|
11803
11765
|
"privacy": "protected",
|
|
11804
|
-
"
|
|
11766
|
+
"parameters": [
|
|
11767
|
+
{
|
|
11768
|
+
"name": "previousChecked",
|
|
11769
|
+
"type": {
|
|
11770
|
+
"text": "boolean"
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
]
|
|
11774
|
+
},
|
|
11775
|
+
{
|
|
11776
|
+
"kind": "method",
|
|
11777
|
+
"name": "uncheckSiblings",
|
|
11778
|
+
"privacy": "private"
|
|
11779
|
+
},
|
|
11780
|
+
{
|
|
11781
|
+
"kind": "method",
|
|
11782
|
+
"name": "handleChange",
|
|
11783
|
+
"privacy": "protected",
|
|
11784
|
+
"parameters": [
|
|
11785
|
+
{
|
|
11786
|
+
"name": "e",
|
|
11787
|
+
"type": {
|
|
11788
|
+
"text": "Event"
|
|
11789
|
+
}
|
|
11790
|
+
}
|
|
11791
|
+
],
|
|
11792
|
+
"return": {
|
|
11793
|
+
"type": {
|
|
11794
|
+
"text": "void"
|
|
11795
|
+
}
|
|
11796
|
+
},
|
|
11805
11797
|
"inheritedFrom": {
|
|
11806
11798
|
"name": "FormAssociatedMixin",
|
|
11807
11799
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11809,25 +11801,34 @@
|
|
|
11809
11801
|
},
|
|
11810
11802
|
{
|
|
11811
11803
|
"kind": "field",
|
|
11812
|
-
"name": "
|
|
11804
|
+
"name": "handleBlur",
|
|
11805
|
+
"privacy": "private"
|
|
11806
|
+
},
|
|
11807
|
+
{
|
|
11808
|
+
"kind": "field",
|
|
11809
|
+
"name": "handleFocus",
|
|
11810
|
+
"privacy": "private"
|
|
11811
|
+
},
|
|
11812
|
+
{
|
|
11813
|
+
"kind": "field",
|
|
11814
|
+
"name": "size",
|
|
11813
11815
|
"type": {
|
|
11814
|
-
"text": "
|
|
11816
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
11815
11817
|
},
|
|
11816
|
-
"
|
|
11817
|
-
"
|
|
11818
|
+
"default": "\"m\"",
|
|
11819
|
+
"description": "The size of the component.",
|
|
11820
|
+
"attribute": "size",
|
|
11821
|
+
"reflects": true,
|
|
11818
11822
|
"inheritedFrom": {
|
|
11819
|
-
"name": "
|
|
11820
|
-
"module": "src/common/mixins/
|
|
11823
|
+
"name": "SizeMixin",
|
|
11824
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11821
11825
|
}
|
|
11822
11826
|
},
|
|
11823
11827
|
{
|
|
11824
11828
|
"kind": "field",
|
|
11825
|
-
"name": "
|
|
11826
|
-
"type": {
|
|
11827
|
-
"text": "string"
|
|
11828
|
-
},
|
|
11829
|
+
"name": "formData",
|
|
11829
11830
|
"privacy": "protected",
|
|
11830
|
-
"default": "
|
|
11831
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11831
11832
|
"inheritedFrom": {
|
|
11832
11833
|
"name": "FormAssociatedMixin",
|
|
11833
11834
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11937,7 +11938,7 @@
|
|
|
11937
11938
|
},
|
|
11938
11939
|
{
|
|
11939
11940
|
"kind": "method",
|
|
11940
|
-
"name": "
|
|
11941
|
+
"name": "handleInput",
|
|
11941
11942
|
"privacy": "protected",
|
|
11942
11943
|
"parameters": [
|
|
11943
11944
|
{
|
|
@@ -12017,35 +12018,6 @@
|
|
|
12017
12018
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12018
12019
|
}
|
|
12019
12020
|
},
|
|
12020
|
-
{
|
|
12021
|
-
"kind": "field",
|
|
12022
|
-
"name": "autocomplete",
|
|
12023
|
-
"type": {
|
|
12024
|
-
"text": "AutocompleteAttribute"
|
|
12025
|
-
},
|
|
12026
|
-
"default": "\"off\"",
|
|
12027
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12028
|
-
"attribute": "autocomplete",
|
|
12029
|
-
"inheritedFrom": {
|
|
12030
|
-
"name": "AutocompleteMixin",
|
|
12031
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12032
|
-
}
|
|
12033
|
-
},
|
|
12034
|
-
{
|
|
12035
|
-
"kind": "field",
|
|
12036
|
-
"name": "readonly",
|
|
12037
|
-
"type": {
|
|
12038
|
-
"text": "boolean"
|
|
12039
|
-
},
|
|
12040
|
-
"default": "false",
|
|
12041
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12042
|
-
"attribute": "readonly",
|
|
12043
|
-
"reflects": true,
|
|
12044
|
-
"inheritedFrom": {
|
|
12045
|
-
"name": "ReadonlyMixin",
|
|
12046
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12047
|
-
}
|
|
12048
|
-
},
|
|
12049
12021
|
{
|
|
12050
12022
|
"kind": "field",
|
|
12051
12023
|
"name": "disabled",
|
|
@@ -12174,66 +12146,28 @@
|
|
|
12174
12146
|
}
|
|
12175
12147
|
}
|
|
12176
12148
|
],
|
|
12177
|
-
"
|
|
12149
|
+
"attributes": [
|
|
12178
12150
|
{
|
|
12179
|
-
"name": "
|
|
12151
|
+
"name": "checked",
|
|
12180
12152
|
"type": {
|
|
12181
|
-
"text": "
|
|
12153
|
+
"text": "boolean"
|
|
12182
12154
|
},
|
|
12183
|
-
"
|
|
12184
|
-
"
|
|
12185
|
-
|
|
12186
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12187
|
-
}
|
|
12155
|
+
"default": "false",
|
|
12156
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
12157
|
+
"fieldName": "checked"
|
|
12188
12158
|
},
|
|
12189
12159
|
{
|
|
12190
|
-
"name": "
|
|
12160
|
+
"name": "size",
|
|
12191
12161
|
"type": {
|
|
12192
|
-
"text": "
|
|
12162
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
12193
12163
|
},
|
|
12194
|
-
"
|
|
12164
|
+
"default": "\"m\"",
|
|
12165
|
+
"description": "The size of the component.",
|
|
12166
|
+
"fieldName": "size",
|
|
12195
12167
|
"inheritedFrom": {
|
|
12196
|
-
"name": "
|
|
12197
|
-
"module": "src/common/mixins/
|
|
12168
|
+
"name": "SizeMixin",
|
|
12169
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
12198
12170
|
}
|
|
12199
|
-
}
|
|
12200
|
-
],
|
|
12201
|
-
"attributes": [
|
|
12202
|
-
{
|
|
12203
|
-
"name": "min",
|
|
12204
|
-
"type": {
|
|
12205
|
-
"text": "number"
|
|
12206
|
-
},
|
|
12207
|
-
"default": "0",
|
|
12208
|
-
"description": "Minimum value for the range slider.",
|
|
12209
|
-
"fieldName": "min"
|
|
12210
|
-
},
|
|
12211
|
-
{
|
|
12212
|
-
"name": "max",
|
|
12213
|
-
"type": {
|
|
12214
|
-
"text": "number"
|
|
12215
|
-
},
|
|
12216
|
-
"default": "10",
|
|
12217
|
-
"description": "Maximum value for the range slider.",
|
|
12218
|
-
"fieldName": "max"
|
|
12219
|
-
},
|
|
12220
|
-
{
|
|
12221
|
-
"name": "step",
|
|
12222
|
-
"type": {
|
|
12223
|
-
"text": "number"
|
|
12224
|
-
},
|
|
12225
|
-
"default": "1",
|
|
12226
|
-
"description": "Step amount for the range slider.",
|
|
12227
|
-
"fieldName": "step"
|
|
12228
|
-
},
|
|
12229
|
-
{
|
|
12230
|
-
"name": "expand",
|
|
12231
|
-
"type": {
|
|
12232
|
-
"text": "boolean"
|
|
12233
|
-
},
|
|
12234
|
-
"default": "false",
|
|
12235
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12236
|
-
"fieldName": "expand"
|
|
12237
12171
|
},
|
|
12238
12172
|
{
|
|
12239
12173
|
"name": "label",
|
|
@@ -12323,32 +12257,6 @@
|
|
|
12323
12257
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12324
12258
|
}
|
|
12325
12259
|
},
|
|
12326
|
-
{
|
|
12327
|
-
"name": "autocomplete",
|
|
12328
|
-
"type": {
|
|
12329
|
-
"text": "AutocompleteAttribute"
|
|
12330
|
-
},
|
|
12331
|
-
"default": "\"off\"",
|
|
12332
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12333
|
-
"fieldName": "autocomplete",
|
|
12334
|
-
"inheritedFrom": {
|
|
12335
|
-
"name": "AutocompleteMixin",
|
|
12336
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12337
|
-
}
|
|
12338
|
-
},
|
|
12339
|
-
{
|
|
12340
|
-
"name": "readonly",
|
|
12341
|
-
"type": {
|
|
12342
|
-
"text": "boolean"
|
|
12343
|
-
},
|
|
12344
|
-
"default": "false",
|
|
12345
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12346
|
-
"fieldName": "readonly",
|
|
12347
|
-
"inheritedFrom": {
|
|
12348
|
-
"name": "ReadonlyMixin",
|
|
12349
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12350
|
-
}
|
|
12351
|
-
},
|
|
12352
12260
|
{
|
|
12353
12261
|
"name": "disabled",
|
|
12354
12262
|
"type": {
|
|
@@ -12402,16 +12310,12 @@
|
|
|
12402
12310
|
],
|
|
12403
12311
|
"mixins": [
|
|
12404
12312
|
{
|
|
12405
|
-
"name": "
|
|
12406
|
-
"module": "/src/common/mixins/
|
|
12407
|
-
},
|
|
12408
|
-
{
|
|
12409
|
-
"name": "AutocompleteMixin",
|
|
12410
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
12313
|
+
"name": "SizeMixin",
|
|
12314
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
12411
12315
|
},
|
|
12412
12316
|
{
|
|
12413
|
-
"name": "
|
|
12414
|
-
"module": "/src/common/mixins/
|
|
12317
|
+
"name": "FormAssociatedMixin",
|
|
12318
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
12415
12319
|
},
|
|
12416
12320
|
{
|
|
12417
12321
|
"name": "InputMixin",
|
|
@@ -12429,11 +12333,35 @@
|
|
|
12429
12333
|
"localization": [],
|
|
12430
12334
|
"status": "ready",
|
|
12431
12335
|
"category": "form",
|
|
12432
|
-
"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
|
|
12336
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a radio component when users can only select one option from a list.\n- Favor radios over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Radio buttons are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of radios.\n- Give each radio within a group a unique `value`.\n- Radios **must** be used in combination with a fieldset component.\n- In most cases, a stack component should be used to layout a group of radio buttons.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a checkbox instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a checkbox instead.\n- When you have more than 10 options to choose from. Consider using a select instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRadio button labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing radio 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Hint text can be used to offer further information or explanation for an option.\n- Once a radio has been selected, users cannot return to having no radios selected without refreshing their browser window. Therefore, you should include \"None of the above\" or \"I do not know\" if they are valid options.\n- In most cases, radio buttons should be stacked vertically. However, radio buttons can be stacked horizontally when there are only two options with short labels. An example might be a yes/no question.\n",
|
|
12433
12337
|
"examples": [],
|
|
12434
12338
|
"dependencies": [],
|
|
12435
|
-
"tagName": "nord-
|
|
12436
|
-
"customElement": true
|
|
12339
|
+
"tagName": "nord-radio",
|
|
12340
|
+
"customElement": true,
|
|
12341
|
+
"events": [
|
|
12342
|
+
{
|
|
12343
|
+
"name": "input",
|
|
12344
|
+
"type": {
|
|
12345
|
+
"text": "NordEvent"
|
|
12346
|
+
},
|
|
12347
|
+
"description": "Fired as the user types into the input.",
|
|
12348
|
+
"inheritedFrom": {
|
|
12349
|
+
"name": "FormAssociatedMixin",
|
|
12350
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12351
|
+
}
|
|
12352
|
+
},
|
|
12353
|
+
{
|
|
12354
|
+
"name": "change",
|
|
12355
|
+
"type": {
|
|
12356
|
+
"text": "NordEvent"
|
|
12357
|
+
},
|
|
12358
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12359
|
+
"inheritedFrom": {
|
|
12360
|
+
"name": "FormAssociatedMixin",
|
|
12361
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12362
|
+
}
|
|
12363
|
+
}
|
|
12364
|
+
]
|
|
12437
12365
|
}
|
|
12438
12366
|
],
|
|
12439
12367
|
"exports": [
|
|
@@ -12441,33 +12369,48 @@
|
|
|
12441
12369
|
"kind": "js",
|
|
12442
12370
|
"name": "default",
|
|
12443
12371
|
"declaration": {
|
|
12444
|
-
"name": "
|
|
12445
|
-
"module": "src/
|
|
12372
|
+
"name": "Radio",
|
|
12373
|
+
"module": "src/radio/Radio.ts"
|
|
12446
12374
|
}
|
|
12447
12375
|
},
|
|
12448
12376
|
{
|
|
12449
12377
|
"kind": "custom-element-definition",
|
|
12450
|
-
"name": "nord-
|
|
12378
|
+
"name": "nord-radio",
|
|
12451
12379
|
"declaration": {
|
|
12452
|
-
"name": "
|
|
12453
|
-
"module": "src/
|
|
12380
|
+
"name": "Radio",
|
|
12381
|
+
"module": "src/radio/Radio.ts"
|
|
12454
12382
|
}
|
|
12455
12383
|
}
|
|
12456
12384
|
]
|
|
12457
12385
|
},
|
|
12458
12386
|
{
|
|
12459
12387
|
"kind": "javascript-module",
|
|
12460
|
-
"path": "src/
|
|
12388
|
+
"path": "src/range/Range.ts",
|
|
12461
12389
|
"declarations": [
|
|
12462
12390
|
{
|
|
12463
12391
|
"kind": "class",
|
|
12464
|
-
"description": "
|
|
12465
|
-
"name": "
|
|
12392
|
+
"description": "Range input lets user specify a numeric value using a slider which\nmust be no less than a given value, and no more than another given value.",
|
|
12393
|
+
"name": "Range",
|
|
12466
12394
|
"cssProperties": [
|
|
12467
12395
|
{
|
|
12468
|
-
"description": "Controls the
|
|
12469
|
-
"name": "--n-
|
|
12470
|
-
"default": "
|
|
12396
|
+
"description": "Controls the size of the thumb.",
|
|
12397
|
+
"name": "--n-range-thumb-size",
|
|
12398
|
+
"default": "20px"
|
|
12399
|
+
},
|
|
12400
|
+
{
|
|
12401
|
+
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
12402
|
+
"name": "--n-range-track-color-active",
|
|
12403
|
+
"default": "var(--n-color-accent)"
|
|
12404
|
+
},
|
|
12405
|
+
{
|
|
12406
|
+
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
12407
|
+
"name": "--n-range-track-color-inactive",
|
|
12408
|
+
"default": "var(--n-color-border-strong)"
|
|
12409
|
+
},
|
|
12410
|
+
{
|
|
12411
|
+
"description": "Controls the height of the track.",
|
|
12412
|
+
"name": "--n-range-track-size",
|
|
12413
|
+
"default": "3px"
|
|
12471
12414
|
}
|
|
12472
12415
|
],
|
|
12473
12416
|
"slots": [
|
|
@@ -12487,38 +12430,66 @@
|
|
|
12487
12430
|
"members": [
|
|
12488
12431
|
{
|
|
12489
12432
|
"kind": "field",
|
|
12490
|
-
"name": "
|
|
12433
|
+
"name": "direction",
|
|
12434
|
+
"privacy": "private",
|
|
12435
|
+
"default": "new DirectionController(this)"
|
|
12436
|
+
},
|
|
12437
|
+
{
|
|
12438
|
+
"kind": "field",
|
|
12439
|
+
"name": "min",
|
|
12491
12440
|
"type": {
|
|
12492
|
-
"text": "
|
|
12441
|
+
"text": "number"
|
|
12493
12442
|
},
|
|
12494
|
-
"
|
|
12495
|
-
"
|
|
12496
|
-
"
|
|
12497
|
-
|
|
12498
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12499
|
-
}
|
|
12443
|
+
"default": "0",
|
|
12444
|
+
"description": "Minimum value for the range slider.",
|
|
12445
|
+
"attribute": "min",
|
|
12446
|
+
"reflects": true
|
|
12500
12447
|
},
|
|
12501
12448
|
{
|
|
12502
12449
|
"kind": "field",
|
|
12503
|
-
"name": "
|
|
12450
|
+
"name": "max",
|
|
12504
12451
|
"type": {
|
|
12505
|
-
"text": "
|
|
12452
|
+
"text": "number"
|
|
12506
12453
|
},
|
|
12507
|
-
"
|
|
12508
|
-
"
|
|
12509
|
-
"
|
|
12510
|
-
|
|
12511
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12512
|
-
}
|
|
12454
|
+
"default": "10",
|
|
12455
|
+
"description": "Maximum value for the range slider.",
|
|
12456
|
+
"attribute": "max",
|
|
12457
|
+
"reflects": true
|
|
12513
12458
|
},
|
|
12514
12459
|
{
|
|
12515
12460
|
"kind": "field",
|
|
12516
|
-
"name": "
|
|
12461
|
+
"name": "step",
|
|
12517
12462
|
"type": {
|
|
12518
|
-
"text": "
|
|
12463
|
+
"text": "number"
|
|
12464
|
+
},
|
|
12465
|
+
"default": "1",
|
|
12466
|
+
"description": "Step amount for the range slider.",
|
|
12467
|
+
"attribute": "step",
|
|
12468
|
+
"reflects": true
|
|
12469
|
+
},
|
|
12470
|
+
{
|
|
12471
|
+
"kind": "field",
|
|
12472
|
+
"name": "expand",
|
|
12473
|
+
"type": {
|
|
12474
|
+
"text": "boolean"
|
|
12519
12475
|
},
|
|
12476
|
+
"default": "false",
|
|
12477
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12478
|
+
"attribute": "expand",
|
|
12479
|
+
"reflects": true
|
|
12480
|
+
},
|
|
12481
|
+
{
|
|
12482
|
+
"kind": "method",
|
|
12483
|
+
"name": "handleInput",
|
|
12520
12484
|
"privacy": "protected",
|
|
12521
|
-
"
|
|
12485
|
+
"parameters": [
|
|
12486
|
+
{
|
|
12487
|
+
"name": "e",
|
|
12488
|
+
"type": {
|
|
12489
|
+
"text": "Event"
|
|
12490
|
+
}
|
|
12491
|
+
}
|
|
12492
|
+
],
|
|
12522
12493
|
"inheritedFrom": {
|
|
12523
12494
|
"name": "FormAssociatedMixin",
|
|
12524
12495
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12526,10 +12497,9 @@
|
|
|
12526
12497
|
},
|
|
12527
12498
|
{
|
|
12528
12499
|
"kind": "field",
|
|
12529
|
-
"name": "
|
|
12500
|
+
"name": "labelSlot",
|
|
12530
12501
|
"privacy": "protected",
|
|
12531
|
-
"default": "new
|
|
12532
|
-
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
12502
|
+
"default": "new SlotController(this, \"label\")",
|
|
12533
12503
|
"inheritedFrom": {
|
|
12534
12504
|
"name": "FormAssociatedMixin",
|
|
12535
12505
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12537,9 +12507,9 @@
|
|
|
12537
12507
|
},
|
|
12538
12508
|
{
|
|
12539
12509
|
"kind": "field",
|
|
12540
|
-
"name": "
|
|
12510
|
+
"name": "errorSlot",
|
|
12541
12511
|
"privacy": "protected",
|
|
12542
|
-
"default": "new
|
|
12512
|
+
"default": "new SlotController(this, \"error\")",
|
|
12543
12513
|
"inheritedFrom": {
|
|
12544
12514
|
"name": "FormAssociatedMixin",
|
|
12545
12515
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12547,9 +12517,9 @@
|
|
|
12547
12517
|
},
|
|
12548
12518
|
{
|
|
12549
12519
|
"kind": "field",
|
|
12550
|
-
"name": "
|
|
12520
|
+
"name": "hintSlot",
|
|
12551
12521
|
"privacy": "protected",
|
|
12552
|
-
"default": "new
|
|
12522
|
+
"default": "new SlotController(this, \"hint\")",
|
|
12553
12523
|
"inheritedFrom": {
|
|
12554
12524
|
"name": "FormAssociatedMixin",
|
|
12555
12525
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12557,9 +12527,13 @@
|
|
|
12557
12527
|
},
|
|
12558
12528
|
{
|
|
12559
12529
|
"kind": "field",
|
|
12560
|
-
"name": "
|
|
12530
|
+
"name": "formData",
|
|
12561
12531
|
"privacy": "protected",
|
|
12562
|
-
"default": "new
|
|
12532
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
12533
|
+
"inheritedFrom": {
|
|
12534
|
+
"name": "FormAssociatedMixin",
|
|
12535
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12536
|
+
}
|
|
12563
12537
|
},
|
|
12564
12538
|
{
|
|
12565
12539
|
"kind": "field",
|
|
@@ -12573,50 +12547,12 @@
|
|
|
12573
12547
|
},
|
|
12574
12548
|
{
|
|
12575
12549
|
"kind": "field",
|
|
12576
|
-
"name": "
|
|
12550
|
+
"name": "inputId",
|
|
12577
12551
|
"type": {
|
|
12578
|
-
"text": "
|
|
12552
|
+
"text": "string"
|
|
12579
12553
|
},
|
|
12580
|
-
"default": "false",
|
|
12581
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
12582
|
-
"attribute": "checked",
|
|
12583
|
-
"reflects": true
|
|
12584
|
-
},
|
|
12585
|
-
{
|
|
12586
|
-
"kind": "method",
|
|
12587
|
-
"name": "handleCheckedChange",
|
|
12588
|
-
"privacy": "protected",
|
|
12589
|
-
"parameters": [
|
|
12590
|
-
{
|
|
12591
|
-
"name": "previousChecked",
|
|
12592
|
-
"type": {
|
|
12593
|
-
"text": "boolean"
|
|
12594
|
-
}
|
|
12595
|
-
}
|
|
12596
|
-
]
|
|
12597
|
-
},
|
|
12598
|
-
{
|
|
12599
|
-
"kind": "method",
|
|
12600
|
-
"name": "uncheckSiblings",
|
|
12601
|
-
"privacy": "private"
|
|
12602
|
-
},
|
|
12603
|
-
{
|
|
12604
|
-
"kind": "method",
|
|
12605
|
-
"name": "handleChange",
|
|
12606
12554
|
"privacy": "protected",
|
|
12607
|
-
"
|
|
12608
|
-
{
|
|
12609
|
-
"name": "e",
|
|
12610
|
-
"type": {
|
|
12611
|
-
"text": "Event"
|
|
12612
|
-
}
|
|
12613
|
-
}
|
|
12614
|
-
],
|
|
12615
|
-
"return": {
|
|
12616
|
-
"type": {
|
|
12617
|
-
"text": "void"
|
|
12618
|
-
}
|
|
12619
|
-
},
|
|
12555
|
+
"default": "\"input\"",
|
|
12620
12556
|
"inheritedFrom": {
|
|
12621
12557
|
"name": "FormAssociatedMixin",
|
|
12622
12558
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12624,34 +12560,25 @@
|
|
|
12624
12560
|
},
|
|
12625
12561
|
{
|
|
12626
12562
|
"kind": "field",
|
|
12627
|
-
"name": "
|
|
12628
|
-
"privacy": "private"
|
|
12629
|
-
},
|
|
12630
|
-
{
|
|
12631
|
-
"kind": "field",
|
|
12632
|
-
"name": "handleFocus",
|
|
12633
|
-
"privacy": "private"
|
|
12634
|
-
},
|
|
12635
|
-
{
|
|
12636
|
-
"kind": "field",
|
|
12637
|
-
"name": "size",
|
|
12563
|
+
"name": "errorId",
|
|
12638
12564
|
"type": {
|
|
12639
|
-
"text": "
|
|
12565
|
+
"text": "string"
|
|
12640
12566
|
},
|
|
12641
|
-
"
|
|
12642
|
-
"
|
|
12643
|
-
"attribute": "size",
|
|
12644
|
-
"reflects": true,
|
|
12567
|
+
"privacy": "protected",
|
|
12568
|
+
"default": "\"error\"",
|
|
12645
12569
|
"inheritedFrom": {
|
|
12646
|
-
"name": "
|
|
12647
|
-
"module": "src/common/mixins/
|
|
12570
|
+
"name": "FormAssociatedMixin",
|
|
12571
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12648
12572
|
}
|
|
12649
12573
|
},
|
|
12650
12574
|
{
|
|
12651
12575
|
"kind": "field",
|
|
12652
|
-
"name": "
|
|
12576
|
+
"name": "hintId",
|
|
12577
|
+
"type": {
|
|
12578
|
+
"text": "string"
|
|
12579
|
+
},
|
|
12653
12580
|
"privacy": "protected",
|
|
12654
|
-
"default": "
|
|
12581
|
+
"default": "\"hint\"",
|
|
12655
12582
|
"inheritedFrom": {
|
|
12656
12583
|
"name": "FormAssociatedMixin",
|
|
12657
12584
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12761,7 +12688,7 @@
|
|
|
12761
12688
|
},
|
|
12762
12689
|
{
|
|
12763
12690
|
"kind": "method",
|
|
12764
|
-
"name": "
|
|
12691
|
+
"name": "handleChange",
|
|
12765
12692
|
"privacy": "protected",
|
|
12766
12693
|
"parameters": [
|
|
12767
12694
|
{
|
|
@@ -12841,6 +12768,35 @@
|
|
|
12841
12768
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12842
12769
|
}
|
|
12843
12770
|
},
|
|
12771
|
+
{
|
|
12772
|
+
"kind": "field",
|
|
12773
|
+
"name": "autocomplete",
|
|
12774
|
+
"type": {
|
|
12775
|
+
"text": "AutocompleteAttribute"
|
|
12776
|
+
},
|
|
12777
|
+
"default": "\"off\"",
|
|
12778
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12779
|
+
"attribute": "autocomplete",
|
|
12780
|
+
"inheritedFrom": {
|
|
12781
|
+
"name": "AutocompleteMixin",
|
|
12782
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12783
|
+
}
|
|
12784
|
+
},
|
|
12785
|
+
{
|
|
12786
|
+
"kind": "field",
|
|
12787
|
+
"name": "readonly",
|
|
12788
|
+
"type": {
|
|
12789
|
+
"text": "boolean"
|
|
12790
|
+
},
|
|
12791
|
+
"default": "false",
|
|
12792
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12793
|
+
"attribute": "readonly",
|
|
12794
|
+
"reflects": true,
|
|
12795
|
+
"inheritedFrom": {
|
|
12796
|
+
"name": "ReadonlyMixin",
|
|
12797
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12798
|
+
}
|
|
12799
|
+
},
|
|
12844
12800
|
{
|
|
12845
12801
|
"kind": "field",
|
|
12846
12802
|
"name": "disabled",
|
|
@@ -12969,28 +12925,66 @@
|
|
|
12969
12925
|
}
|
|
12970
12926
|
}
|
|
12971
12927
|
],
|
|
12928
|
+
"events": [
|
|
12929
|
+
{
|
|
12930
|
+
"name": "input",
|
|
12931
|
+
"type": {
|
|
12932
|
+
"text": "NordEvent"
|
|
12933
|
+
},
|
|
12934
|
+
"description": "Fired as the user types into the input.",
|
|
12935
|
+
"inheritedFrom": {
|
|
12936
|
+
"name": "FormAssociatedMixin",
|
|
12937
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12938
|
+
}
|
|
12939
|
+
},
|
|
12940
|
+
{
|
|
12941
|
+
"name": "change",
|
|
12942
|
+
"type": {
|
|
12943
|
+
"text": "NordEvent"
|
|
12944
|
+
},
|
|
12945
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12946
|
+
"inheritedFrom": {
|
|
12947
|
+
"name": "FormAssociatedMixin",
|
|
12948
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12949
|
+
}
|
|
12950
|
+
}
|
|
12951
|
+
],
|
|
12972
12952
|
"attributes": [
|
|
12973
12953
|
{
|
|
12974
|
-
"name": "
|
|
12954
|
+
"name": "min",
|
|
12955
|
+
"type": {
|
|
12956
|
+
"text": "number"
|
|
12957
|
+
},
|
|
12958
|
+
"default": "0",
|
|
12959
|
+
"description": "Minimum value for the range slider.",
|
|
12960
|
+
"fieldName": "min"
|
|
12961
|
+
},
|
|
12962
|
+
{
|
|
12963
|
+
"name": "max",
|
|
12964
|
+
"type": {
|
|
12965
|
+
"text": "number"
|
|
12966
|
+
},
|
|
12967
|
+
"default": "10",
|
|
12968
|
+
"description": "Maximum value for the range slider.",
|
|
12969
|
+
"fieldName": "max"
|
|
12970
|
+
},
|
|
12971
|
+
{
|
|
12972
|
+
"name": "step",
|
|
12975
12973
|
"type": {
|
|
12976
|
-
"text": "
|
|
12974
|
+
"text": "number"
|
|
12977
12975
|
},
|
|
12978
|
-
"default": "
|
|
12979
|
-
"description": "
|
|
12980
|
-
"fieldName": "
|
|
12976
|
+
"default": "1",
|
|
12977
|
+
"description": "Step amount for the range slider.",
|
|
12978
|
+
"fieldName": "step"
|
|
12981
12979
|
},
|
|
12982
12980
|
{
|
|
12983
|
-
"name": "
|
|
12981
|
+
"name": "expand",
|
|
12984
12982
|
"type": {
|
|
12985
|
-
"text": "
|
|
12983
|
+
"text": "boolean"
|
|
12986
12984
|
},
|
|
12987
|
-
"default": "
|
|
12988
|
-
"description": "
|
|
12989
|
-
"fieldName": "
|
|
12990
|
-
"inheritedFrom": {
|
|
12991
|
-
"name": "SizeMixin",
|
|
12992
|
-
"module": "src/common/mixins/SizeMixin.ts"
|
|
12993
|
-
}
|
|
12985
|
+
"default": "false",
|
|
12986
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12987
|
+
"fieldName": "expand"
|
|
12994
12988
|
},
|
|
12995
12989
|
{
|
|
12996
12990
|
"name": "label",
|
|
@@ -13080,6 +13074,32 @@
|
|
|
13080
13074
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13081
13075
|
}
|
|
13082
13076
|
},
|
|
13077
|
+
{
|
|
13078
|
+
"name": "autocomplete",
|
|
13079
|
+
"type": {
|
|
13080
|
+
"text": "AutocompleteAttribute"
|
|
13081
|
+
},
|
|
13082
|
+
"default": "\"off\"",
|
|
13083
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
13084
|
+
"fieldName": "autocomplete",
|
|
13085
|
+
"inheritedFrom": {
|
|
13086
|
+
"name": "AutocompleteMixin",
|
|
13087
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
13088
|
+
}
|
|
13089
|
+
},
|
|
13090
|
+
{
|
|
13091
|
+
"name": "readonly",
|
|
13092
|
+
"type": {
|
|
13093
|
+
"text": "boolean"
|
|
13094
|
+
},
|
|
13095
|
+
"default": "false",
|
|
13096
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
13097
|
+
"fieldName": "readonly",
|
|
13098
|
+
"inheritedFrom": {
|
|
13099
|
+
"name": "ReadonlyMixin",
|
|
13100
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
13101
|
+
}
|
|
13102
|
+
},
|
|
13083
13103
|
{
|
|
13084
13104
|
"name": "disabled",
|
|
13085
13105
|
"type": {
|
|
@@ -13132,14 +13152,18 @@
|
|
|
13132
13152
|
}
|
|
13133
13153
|
],
|
|
13134
13154
|
"mixins": [
|
|
13135
|
-
{
|
|
13136
|
-
"name": "SizeMixin",
|
|
13137
|
-
"module": "/src/common/mixins/SizeMixin.js"
|
|
13138
|
-
},
|
|
13139
13155
|
{
|
|
13140
13156
|
"name": "FormAssociatedMixin",
|
|
13141
13157
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
13142
13158
|
},
|
|
13159
|
+
{
|
|
13160
|
+
"name": "AutocompleteMixin",
|
|
13161
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
13162
|
+
},
|
|
13163
|
+
{
|
|
13164
|
+
"name": "ReadonlyMixin",
|
|
13165
|
+
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
13166
|
+
},
|
|
13143
13167
|
{
|
|
13144
13168
|
"name": "InputMixin",
|
|
13145
13169
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -13156,35 +13180,97 @@
|
|
|
13156
13180
|
"localization": [],
|
|
13157
13181
|
"status": "ready",
|
|
13158
13182
|
"category": "form",
|
|
13159
|
-
"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
|
|
13183
|
+
"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 user specify a numeric value using a slider.\n- Use when the accuracy of the numeric value entered isn’t important.\n- Always use with a label, even if that label is hidden.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the accuracy of the numeric value entered is important.\n- For entering arbitrary numeric values. Use [input component](/components/input/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRange labels act as a title for the range input. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Lightness percentage</div>\n<div class=\"n-usage n-usage-dont\">What is the lightness percentage?</div>\n\nWhen writing range 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\">Item price</div>\n<div class=\"n-usage n-usage-dont\">Item Price</div>\n\nDo not use colons in range label:\n\n<div class=\"n-usage n-usage-do\">Color depth</div>\n<div class=\"n-usage n-usage-dont\">Color depth:</div>\n",
|
|
13160
13184
|
"examples": [],
|
|
13161
13185
|
"dependencies": [],
|
|
13162
|
-
"tagName": "nord-
|
|
13163
|
-
"customElement": true
|
|
13186
|
+
"tagName": "nord-range",
|
|
13187
|
+
"customElement": true
|
|
13188
|
+
}
|
|
13189
|
+
],
|
|
13190
|
+
"exports": [
|
|
13191
|
+
{
|
|
13192
|
+
"kind": "js",
|
|
13193
|
+
"name": "default",
|
|
13194
|
+
"declaration": {
|
|
13195
|
+
"name": "Range",
|
|
13196
|
+
"module": "src/range/Range.ts"
|
|
13197
|
+
}
|
|
13198
|
+
},
|
|
13199
|
+
{
|
|
13200
|
+
"kind": "custom-element-definition",
|
|
13201
|
+
"name": "nord-range",
|
|
13202
|
+
"declaration": {
|
|
13203
|
+
"name": "Range",
|
|
13204
|
+
"module": "src/range/Range.ts"
|
|
13205
|
+
}
|
|
13206
|
+
}
|
|
13207
|
+
]
|
|
13208
|
+
},
|
|
13209
|
+
{
|
|
13210
|
+
"kind": "javascript-module",
|
|
13211
|
+
"path": "src/segmented-control/SegmentedControl.ts",
|
|
13212
|
+
"declarations": [
|
|
13213
|
+
{
|
|
13214
|
+
"kind": "class",
|
|
13215
|
+
"description": "Segmented control is used to pick one choice from a set of\nclosely related choices, and immediately apply that selection.",
|
|
13216
|
+
"name": "SegmentedControl",
|
|
13217
|
+
"slots": [
|
|
13218
|
+
{
|
|
13219
|
+
"description": "Default slot.",
|
|
13220
|
+
"name": ""
|
|
13221
|
+
}
|
|
13222
|
+
],
|
|
13223
|
+
"members": [
|
|
13224
|
+
{
|
|
13225
|
+
"kind": "field",
|
|
13226
|
+
"name": "defaultSlot",
|
|
13227
|
+
"privacy": "private",
|
|
13228
|
+
"default": "new SlotController(this)"
|
|
13229
|
+
},
|
|
13230
|
+
{
|
|
13231
|
+
"kind": "field",
|
|
13232
|
+
"name": "expand",
|
|
13233
|
+
"type": {
|
|
13234
|
+
"text": "boolean"
|
|
13235
|
+
},
|
|
13236
|
+
"default": "false",
|
|
13237
|
+
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13238
|
+
"attribute": "expand",
|
|
13239
|
+
"reflects": true
|
|
13240
|
+
}
|
|
13241
|
+
],
|
|
13164
13242
|
"events": [
|
|
13165
13243
|
{
|
|
13166
|
-
"name": "input",
|
|
13167
13244
|
"type": {
|
|
13168
13245
|
"text": "NordEvent"
|
|
13169
13246
|
},
|
|
13170
|
-
"description": "Fired
|
|
13171
|
-
"
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
},
|
|
13247
|
+
"description": "Fired whenever a segmented control item has been checked.",
|
|
13248
|
+
"name": "change"
|
|
13249
|
+
}
|
|
13250
|
+
],
|
|
13251
|
+
"attributes": [
|
|
13176
13252
|
{
|
|
13177
|
-
"name": "
|
|
13253
|
+
"name": "expand",
|
|
13178
13254
|
"type": {
|
|
13179
|
-
"text": "
|
|
13255
|
+
"text": "boolean"
|
|
13180
13256
|
},
|
|
13181
|
-
"
|
|
13182
|
-
"
|
|
13183
|
-
|
|
13184
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13185
|
-
}
|
|
13257
|
+
"default": "false",
|
|
13258
|
+
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13259
|
+
"fieldName": "expand"
|
|
13186
13260
|
}
|
|
13187
|
-
]
|
|
13261
|
+
],
|
|
13262
|
+
"superclass": {
|
|
13263
|
+
"name": "LitElement",
|
|
13264
|
+
"package": "lit"
|
|
13265
|
+
},
|
|
13266
|
+
"localization": [],
|
|
13267
|
+
"status": "new",
|
|
13268
|
+
"category": "action",
|
|
13269
|
+
"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 segmented control to allow users to pick one choice from a set of closely related choices, and immediately apply that selection.\n- Favor segmented control or [radio component](/components/radio/) over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Segmented control items are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of segmented control items.\n- Give each segmented control item within a group a unique `value`.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a [checkbox](/components/checkbox/) or [selectable tag](/components/tag/?example=selectable) instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a [checkbox](/components/checkbox/) instead.\n- When you have more than 5 options to choose from. Consider using a [select](/components/select/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nSegmented control labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing segmented control 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Once a segmented control item has been selected, users cannot return to having no items selected without refreshing their browser window. Therefore, you should always make sure one of the items is pre-selected.\n",
|
|
13270
|
+
"examples": [],
|
|
13271
|
+
"dependencies": [],
|
|
13272
|
+
"tagName": "nord-segmented-control",
|
|
13273
|
+
"customElement": true
|
|
13188
13274
|
}
|
|
13189
13275
|
],
|
|
13190
13276
|
"exports": [
|
|
@@ -13192,16 +13278,16 @@
|
|
|
13192
13278
|
"kind": "js",
|
|
13193
13279
|
"name": "default",
|
|
13194
13280
|
"declaration": {
|
|
13195
|
-
"name": "
|
|
13196
|
-
"module": "src/
|
|
13281
|
+
"name": "SegmentedControl",
|
|
13282
|
+
"module": "src/segmented-control/SegmentedControl.ts"
|
|
13197
13283
|
}
|
|
13198
13284
|
},
|
|
13199
13285
|
{
|
|
13200
13286
|
"kind": "custom-element-definition",
|
|
13201
|
-
"name": "nord-
|
|
13287
|
+
"name": "nord-segmented-control",
|
|
13202
13288
|
"declaration": {
|
|
13203
|
-
"name": "
|
|
13204
|
-
"module": "src/
|
|
13289
|
+
"name": "SegmentedControl",
|
|
13290
|
+
"module": "src/segmented-control/SegmentedControl.ts"
|
|
13205
13291
|
}
|
|
13206
13292
|
}
|
|
13207
13293
|
]
|
|
@@ -13594,117 +13680,31 @@
|
|
|
13594
13680
|
"description": "The value of the form component.",
|
|
13595
13681
|
"fieldName": "value",
|
|
13596
13682
|
"inheritedFrom": {
|
|
13597
|
-
"name": "InputMixin",
|
|
13598
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
13599
|
-
}
|
|
13600
|
-
},
|
|
13601
|
-
{
|
|
13602
|
-
"name": "form",
|
|
13603
|
-
"type": {
|
|
13604
|
-
"text": "HTMLFormElement | null"
|
|
13605
|
-
},
|
|
13606
|
-
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
13607
|
-
"fieldName": "form",
|
|
13608
|
-
"inheritedFrom": {
|
|
13609
|
-
"name": "InputMixin",
|
|
13610
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
13611
|
-
}
|
|
13612
|
-
}
|
|
13613
|
-
],
|
|
13614
|
-
"mixins": [
|
|
13615
|
-
{
|
|
13616
|
-
"name": "InputMixin",
|
|
13617
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
13618
|
-
},
|
|
13619
|
-
{
|
|
13620
|
-
"name": "FocusableMixin",
|
|
13621
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
13622
|
-
}
|
|
13623
|
-
],
|
|
13624
|
-
"superclass": {
|
|
13625
|
-
"name": "LitElement",
|
|
13626
|
-
"package": "lit"
|
|
13627
|
-
},
|
|
13628
|
-
"localization": [],
|
|
13629
|
-
"status": "new",
|
|
13630
|
-
"category": "action",
|
|
13631
|
-
"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 segmented control to allow users to pick one choice from a set of closely related choices, and immediately apply that selection.\n- Favor segmented control or [radio component](/components/radio/) over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Segmented control items are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of segmented control items.\n- Give each segmented control item within a group a unique `value`.\n- Segmented control items **must** be used in combination with a [segmented control component](/components/segmented-control/).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a [checkbox](/components/checkbox/) or [selectable tag](/components/tag/?example=selectable) instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a [checkbox](/components/checkbox/) instead.\n- When you have more than 5 options to choose from. Consider using a [select](/components/select/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nSegmented control labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing segmented control 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Once a segmented control item has been selected, users cannot return to having no items selected without refreshing their browser window. Therefore, you should always make sure one of the items is pre-selected.\n",
|
|
13632
|
-
"examples": [],
|
|
13633
|
-
"dependencies": [],
|
|
13634
|
-
"tagName": "nord-segmented-control-item",
|
|
13635
|
-
"customElement": true
|
|
13636
|
-
}
|
|
13637
|
-
],
|
|
13638
|
-
"exports": [
|
|
13639
|
-
{
|
|
13640
|
-
"kind": "js",
|
|
13641
|
-
"name": "default",
|
|
13642
|
-
"declaration": {
|
|
13643
|
-
"name": "SegmentedControlItem",
|
|
13644
|
-
"module": "src/segmented-control-item/SegmentedControlItem.ts"
|
|
13645
|
-
}
|
|
13646
|
-
},
|
|
13647
|
-
{
|
|
13648
|
-
"kind": "custom-element-definition",
|
|
13649
|
-
"name": "nord-segmented-control-item",
|
|
13650
|
-
"declaration": {
|
|
13651
|
-
"name": "SegmentedControlItem",
|
|
13652
|
-
"module": "src/segmented-control-item/SegmentedControlItem.ts"
|
|
13653
|
-
}
|
|
13654
|
-
}
|
|
13655
|
-
]
|
|
13656
|
-
},
|
|
13657
|
-
{
|
|
13658
|
-
"kind": "javascript-module",
|
|
13659
|
-
"path": "src/segmented-control/SegmentedControl.ts",
|
|
13660
|
-
"declarations": [
|
|
13661
|
-
{
|
|
13662
|
-
"kind": "class",
|
|
13663
|
-
"description": "Segmented control is used to pick one choice from a set of\nclosely related choices, and immediately apply that selection.",
|
|
13664
|
-
"name": "SegmentedControl",
|
|
13665
|
-
"slots": [
|
|
13666
|
-
{
|
|
13667
|
-
"description": "Default slot.",
|
|
13668
|
-
"name": ""
|
|
13669
|
-
}
|
|
13670
|
-
],
|
|
13671
|
-
"members": [
|
|
13672
|
-
{
|
|
13673
|
-
"kind": "field",
|
|
13674
|
-
"name": "defaultSlot",
|
|
13675
|
-
"privacy": "private",
|
|
13676
|
-
"default": "new SlotController(this)"
|
|
13683
|
+
"name": "InputMixin",
|
|
13684
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
13685
|
+
}
|
|
13677
13686
|
},
|
|
13678
13687
|
{
|
|
13679
|
-
"
|
|
13680
|
-
"name": "expand",
|
|
13688
|
+
"name": "form",
|
|
13681
13689
|
"type": {
|
|
13682
|
-
"text": "
|
|
13690
|
+
"text": "HTMLFormElement | null"
|
|
13683
13691
|
},
|
|
13684
|
-
"
|
|
13685
|
-
"
|
|
13686
|
-
"
|
|
13687
|
-
|
|
13692
|
+
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
13693
|
+
"fieldName": "form",
|
|
13694
|
+
"inheritedFrom": {
|
|
13695
|
+
"name": "InputMixin",
|
|
13696
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
13697
|
+
}
|
|
13688
13698
|
}
|
|
13689
13699
|
],
|
|
13690
|
-
"
|
|
13700
|
+
"mixins": [
|
|
13691
13701
|
{
|
|
13692
|
-
"
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
"description": "Fired whenever a segmented control item has been checked.",
|
|
13696
|
-
"name": "change"
|
|
13697
|
-
}
|
|
13698
|
-
],
|
|
13699
|
-
"attributes": [
|
|
13702
|
+
"name": "InputMixin",
|
|
13703
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
13704
|
+
},
|
|
13700
13705
|
{
|
|
13701
|
-
"name": "
|
|
13702
|
-
"
|
|
13703
|
-
"text": "boolean"
|
|
13704
|
-
},
|
|
13705
|
-
"default": "false",
|
|
13706
|
-
"description": "Controls whether the segmented control expands to fill the width of its container.",
|
|
13707
|
-
"fieldName": "expand"
|
|
13706
|
+
"name": "FocusableMixin",
|
|
13707
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
13708
13708
|
}
|
|
13709
13709
|
],
|
|
13710
13710
|
"superclass": {
|
|
@@ -13714,10 +13714,10 @@
|
|
|
13714
13714
|
"localization": [],
|
|
13715
13715
|
"status": "new",
|
|
13716
13716
|
"category": "action",
|
|
13717
|
-
"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 segmented control to allow users to pick one choice from a set of closely related choices, and immediately apply that selection.\n- Favor segmented control or [radio component](/components/radio/) over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Segmented control items are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of segmented control items.\n- Give each segmented control item within a group a unique `value`.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a [checkbox](/components/checkbox/) or [selectable tag](/components/tag/?example=selectable) instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a [checkbox](/components/checkbox/) instead.\n- When you have more than 5 options to choose from. Consider using a [select](/components/select/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nSegmented control labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing segmented control 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Once a segmented control item has been selected, users cannot return to having no items selected without refreshing their browser window. Therefore, you should always make sure one of the items is pre-selected.\n",
|
|
13717
|
+
"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 segmented control to allow users to pick one choice from a set of closely related choices, and immediately apply that selection.\n- Favor segmented control or [radio component](/components/radio/) over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Segmented control items are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of segmented control items.\n- Give each segmented control item within a group a unique `value`.\n- Segmented control items **must** be used in combination with a [segmented control component](/components/segmented-control/).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a [checkbox](/components/checkbox/) or [selectable tag](/components/tag/?example=selectable) instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a [checkbox](/components/checkbox/) instead.\n- When you have more than 5 options to choose from. Consider using a [select](/components/select/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nSegmented control labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing segmented control 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 ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Once a segmented control item has been selected, users cannot return to having no items selected without refreshing their browser window. Therefore, you should always make sure one of the items is pre-selected.\n",
|
|
13718
13718
|
"examples": [],
|
|
13719
13719
|
"dependencies": [],
|
|
13720
|
-
"tagName": "nord-segmented-control",
|
|
13720
|
+
"tagName": "nord-segmented-control-item",
|
|
13721
13721
|
"customElement": true
|
|
13722
13722
|
}
|
|
13723
13723
|
],
|
|
@@ -13726,16 +13726,16 @@
|
|
|
13726
13726
|
"kind": "js",
|
|
13727
13727
|
"name": "default",
|
|
13728
13728
|
"declaration": {
|
|
13729
|
-
"name": "
|
|
13730
|
-
"module": "src/segmented-control/
|
|
13729
|
+
"name": "SegmentedControlItem",
|
|
13730
|
+
"module": "src/segmented-control-item/SegmentedControlItem.ts"
|
|
13731
13731
|
}
|
|
13732
13732
|
},
|
|
13733
13733
|
{
|
|
13734
13734
|
"kind": "custom-element-definition",
|
|
13735
|
-
"name": "nord-segmented-control",
|
|
13735
|
+
"name": "nord-segmented-control-item",
|
|
13736
13736
|
"declaration": {
|
|
13737
|
-
"name": "
|
|
13738
|
-
"module": "src/segmented-control/
|
|
13737
|
+
"name": "SegmentedControlItem",
|
|
13738
|
+
"module": "src/segmented-control-item/SegmentedControlItem.ts"
|
|
13739
13739
|
}
|
|
13740
13740
|
}
|
|
13741
13741
|
]
|
|
@@ -14626,114 +14626,6 @@
|
|
|
14626
14626
|
}
|
|
14627
14627
|
]
|
|
14628
14628
|
},
|
|
14629
|
-
{
|
|
14630
|
-
"kind": "javascript-module",
|
|
14631
|
-
"path": "src/spinner/Spinner.ts",
|
|
14632
|
-
"declarations": [
|
|
14633
|
-
{
|
|
14634
|
-
"kind": "class",
|
|
14635
|
-
"description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
|
|
14636
|
-
"name": "Spinner",
|
|
14637
|
-
"cssProperties": [
|
|
14638
|
-
{
|
|
14639
|
-
"description": "Controls the color the spinner.",
|
|
14640
|
-
"name": "--n-spinner-color",
|
|
14641
|
-
"default": "var(--n-color-accent)"
|
|
14642
|
-
}
|
|
14643
|
-
],
|
|
14644
|
-
"members": [
|
|
14645
|
-
{
|
|
14646
|
-
"kind": "field",
|
|
14647
|
-
"name": "size",
|
|
14648
|
-
"type": {
|
|
14649
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
14650
|
-
},
|
|
14651
|
-
"default": "\"m\"",
|
|
14652
|
-
"description": "The size of the spinner.",
|
|
14653
|
-
"attribute": "size",
|
|
14654
|
-
"reflects": true
|
|
14655
|
-
},
|
|
14656
|
-
{
|
|
14657
|
-
"kind": "field",
|
|
14658
|
-
"name": "color",
|
|
14659
|
-
"type": {
|
|
14660
|
-
"text": "string | undefined"
|
|
14661
|
-
},
|
|
14662
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
14663
|
-
"attribute": "color",
|
|
14664
|
-
"reflects": true
|
|
14665
|
-
},
|
|
14666
|
-
{
|
|
14667
|
-
"kind": "field",
|
|
14668
|
-
"name": "label",
|
|
14669
|
-
"type": {
|
|
14670
|
-
"text": "string | undefined"
|
|
14671
|
-
},
|
|
14672
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
14673
|
-
"attribute": "label",
|
|
14674
|
-
"reflects": true
|
|
14675
|
-
}
|
|
14676
|
-
],
|
|
14677
|
-
"attributes": [
|
|
14678
|
-
{
|
|
14679
|
-
"name": "size",
|
|
14680
|
-
"type": {
|
|
14681
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
14682
|
-
},
|
|
14683
|
-
"default": "\"m\"",
|
|
14684
|
-
"description": "The size of the spinner.",
|
|
14685
|
-
"fieldName": "size"
|
|
14686
|
-
},
|
|
14687
|
-
{
|
|
14688
|
-
"name": "color",
|
|
14689
|
-
"type": {
|
|
14690
|
-
"text": "string | undefined"
|
|
14691
|
-
},
|
|
14692
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
14693
|
-
"fieldName": "color"
|
|
14694
|
-
},
|
|
14695
|
-
{
|
|
14696
|
-
"name": "label",
|
|
14697
|
-
"type": {
|
|
14698
|
-
"text": "string | undefined"
|
|
14699
|
-
},
|
|
14700
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
14701
|
-
"fieldName": "label"
|
|
14702
|
-
}
|
|
14703
|
-
],
|
|
14704
|
-
"superclass": {
|
|
14705
|
-
"name": "LitElement",
|
|
14706
|
-
"package": "lit"
|
|
14707
|
-
},
|
|
14708
|
-
"localization": [],
|
|
14709
|
-
"status": "ready",
|
|
14710
|
-
"category": "feedback",
|
|
14711
|
-
"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 for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
14712
|
-
"examples": [],
|
|
14713
|
-
"dependencies": [],
|
|
14714
|
-
"tagName": "nord-spinner",
|
|
14715
|
-
"customElement": true
|
|
14716
|
-
}
|
|
14717
|
-
],
|
|
14718
|
-
"exports": [
|
|
14719
|
-
{
|
|
14720
|
-
"kind": "js",
|
|
14721
|
-
"name": "default",
|
|
14722
|
-
"declaration": {
|
|
14723
|
-
"name": "Spinner",
|
|
14724
|
-
"module": "src/spinner/Spinner.ts"
|
|
14725
|
-
}
|
|
14726
|
-
},
|
|
14727
|
-
{
|
|
14728
|
-
"kind": "custom-element-definition",
|
|
14729
|
-
"name": "nord-spinner",
|
|
14730
|
-
"declaration": {
|
|
14731
|
-
"name": "Spinner",
|
|
14732
|
-
"module": "src/spinner/Spinner.ts"
|
|
14733
|
-
}
|
|
14734
|
-
}
|
|
14735
|
-
]
|
|
14736
|
-
},
|
|
14737
14629
|
{
|
|
14738
14630
|
"kind": "javascript-module",
|
|
14739
14631
|
"path": "src/stack/Stack.ts",
|
|
@@ -14892,64 +14784,172 @@
|
|
|
14892
14784
|
},
|
|
14893
14785
|
{
|
|
14894
14786
|
"kind": "javascript-module",
|
|
14895
|
-
"path": "src/tab/Tab.ts",
|
|
14787
|
+
"path": "src/tab/Tab.ts",
|
|
14788
|
+
"declarations": [
|
|
14789
|
+
{
|
|
14790
|
+
"kind": "class",
|
|
14791
|
+
"description": "The interactive tab button for use within the tab group component.",
|
|
14792
|
+
"name": "Tab",
|
|
14793
|
+
"cssProperties": [
|
|
14794
|
+
{
|
|
14795
|
+
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
14796
|
+
"name": "--n-tab-color",
|
|
14797
|
+
"default": "var(--n-color-text-weak)"
|
|
14798
|
+
},
|
|
14799
|
+
{
|
|
14800
|
+
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
14801
|
+
"name": "--n-tab-font-weight",
|
|
14802
|
+
"default": "var(--n-font-weight)"
|
|
14803
|
+
}
|
|
14804
|
+
],
|
|
14805
|
+
"slots": [
|
|
14806
|
+
{
|
|
14807
|
+
"description": "The tab button content.",
|
|
14808
|
+
"name": ""
|
|
14809
|
+
}
|
|
14810
|
+
],
|
|
14811
|
+
"members": [
|
|
14812
|
+
{
|
|
14813
|
+
"kind": "field",
|
|
14814
|
+
"name": "defaultSlot",
|
|
14815
|
+
"privacy": "private",
|
|
14816
|
+
"default": "new SlotController(this)"
|
|
14817
|
+
},
|
|
14818
|
+
{
|
|
14819
|
+
"kind": "field",
|
|
14820
|
+
"name": "selected",
|
|
14821
|
+
"type": {
|
|
14822
|
+
"text": "boolean"
|
|
14823
|
+
},
|
|
14824
|
+
"default": "false",
|
|
14825
|
+
"description": "Whether the tab item is selected",
|
|
14826
|
+
"attribute": "selected",
|
|
14827
|
+
"reflects": true
|
|
14828
|
+
},
|
|
14829
|
+
{
|
|
14830
|
+
"kind": "method",
|
|
14831
|
+
"name": "handleSelectionChange",
|
|
14832
|
+
"privacy": "protected",
|
|
14833
|
+
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
14834
|
+
}
|
|
14835
|
+
],
|
|
14836
|
+
"attributes": [
|
|
14837
|
+
{
|
|
14838
|
+
"name": "selected",
|
|
14839
|
+
"type": {
|
|
14840
|
+
"text": "boolean"
|
|
14841
|
+
},
|
|
14842
|
+
"default": "false",
|
|
14843
|
+
"description": "Whether the tab item is selected",
|
|
14844
|
+
"fieldName": "selected"
|
|
14845
|
+
}
|
|
14846
|
+
],
|
|
14847
|
+
"superclass": {
|
|
14848
|
+
"name": "LitElement",
|
|
14849
|
+
"package": "lit"
|
|
14850
|
+
},
|
|
14851
|
+
"localization": [],
|
|
14852
|
+
"status": "ready",
|
|
14853
|
+
"category": "navigation",
|
|
14854
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
14855
|
+
"examples": [],
|
|
14856
|
+
"dependencies": [],
|
|
14857
|
+
"tagName": "nord-tab",
|
|
14858
|
+
"customElement": true
|
|
14859
|
+
}
|
|
14860
|
+
],
|
|
14861
|
+
"exports": [
|
|
14862
|
+
{
|
|
14863
|
+
"kind": "js",
|
|
14864
|
+
"name": "default",
|
|
14865
|
+
"declaration": {
|
|
14866
|
+
"name": "Tab",
|
|
14867
|
+
"module": "src/tab/Tab.ts"
|
|
14868
|
+
}
|
|
14869
|
+
},
|
|
14870
|
+
{
|
|
14871
|
+
"kind": "custom-element-definition",
|
|
14872
|
+
"name": "nord-tab",
|
|
14873
|
+
"declaration": {
|
|
14874
|
+
"name": "Tab",
|
|
14875
|
+
"module": "src/tab/Tab.ts"
|
|
14876
|
+
}
|
|
14877
|
+
}
|
|
14878
|
+
]
|
|
14879
|
+
},
|
|
14880
|
+
{
|
|
14881
|
+
"kind": "javascript-module",
|
|
14882
|
+
"path": "src/spinner/Spinner.ts",
|
|
14896
14883
|
"declarations": [
|
|
14897
14884
|
{
|
|
14898
14885
|
"kind": "class",
|
|
14899
|
-
"description": "
|
|
14900
|
-
"name": "
|
|
14886
|
+
"description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
|
|
14887
|
+
"name": "Spinner",
|
|
14901
14888
|
"cssProperties": [
|
|
14902
14889
|
{
|
|
14903
|
-
"description": "Controls the
|
|
14904
|
-
"name": "--n-
|
|
14905
|
-
"default": "var(--n-color-
|
|
14906
|
-
},
|
|
14907
|
-
{
|
|
14908
|
-
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
14909
|
-
"name": "--n-tab-font-weight",
|
|
14910
|
-
"default": "var(--n-font-weight)"
|
|
14911
|
-
}
|
|
14912
|
-
],
|
|
14913
|
-
"slots": [
|
|
14914
|
-
{
|
|
14915
|
-
"description": "The tab button content.",
|
|
14916
|
-
"name": ""
|
|
14890
|
+
"description": "Controls the color the spinner.",
|
|
14891
|
+
"name": "--n-spinner-color",
|
|
14892
|
+
"default": "var(--n-color-accent)"
|
|
14917
14893
|
}
|
|
14918
14894
|
],
|
|
14919
14895
|
"members": [
|
|
14920
14896
|
{
|
|
14921
14897
|
"kind": "field",
|
|
14922
|
-
"name": "
|
|
14923
|
-
"
|
|
14924
|
-
|
|
14898
|
+
"name": "size",
|
|
14899
|
+
"type": {
|
|
14900
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
14901
|
+
},
|
|
14902
|
+
"default": "\"m\"",
|
|
14903
|
+
"description": "The size of the spinner.",
|
|
14904
|
+
"attribute": "size",
|
|
14905
|
+
"reflects": true
|
|
14925
14906
|
},
|
|
14926
14907
|
{
|
|
14927
14908
|
"kind": "field",
|
|
14928
|
-
"name": "
|
|
14909
|
+
"name": "color",
|
|
14929
14910
|
"type": {
|
|
14930
|
-
"text": "
|
|
14911
|
+
"text": "string | undefined"
|
|
14931
14912
|
},
|
|
14932
|
-
"
|
|
14933
|
-
"
|
|
14934
|
-
"attribute": "selected",
|
|
14913
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
14914
|
+
"attribute": "color",
|
|
14935
14915
|
"reflects": true
|
|
14936
14916
|
},
|
|
14937
14917
|
{
|
|
14938
|
-
"kind": "
|
|
14939
|
-
"name": "
|
|
14940
|
-
"
|
|
14941
|
-
|
|
14918
|
+
"kind": "field",
|
|
14919
|
+
"name": "label",
|
|
14920
|
+
"type": {
|
|
14921
|
+
"text": "string | undefined"
|
|
14922
|
+
},
|
|
14923
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
14924
|
+
"attribute": "label",
|
|
14925
|
+
"reflects": true
|
|
14942
14926
|
}
|
|
14943
14927
|
],
|
|
14944
14928
|
"attributes": [
|
|
14945
14929
|
{
|
|
14946
|
-
"name": "
|
|
14930
|
+
"name": "size",
|
|
14947
14931
|
"type": {
|
|
14948
|
-
"text": "
|
|
14932
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
14949
14933
|
},
|
|
14950
|
-
"default": "
|
|
14951
|
-
"description": "
|
|
14952
|
-
"fieldName": "
|
|
14934
|
+
"default": "\"m\"",
|
|
14935
|
+
"description": "The size of the spinner.",
|
|
14936
|
+
"fieldName": "size"
|
|
14937
|
+
},
|
|
14938
|
+
{
|
|
14939
|
+
"name": "color",
|
|
14940
|
+
"type": {
|
|
14941
|
+
"text": "string | undefined"
|
|
14942
|
+
},
|
|
14943
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
14944
|
+
"fieldName": "color"
|
|
14945
|
+
},
|
|
14946
|
+
{
|
|
14947
|
+
"name": "label",
|
|
14948
|
+
"type": {
|
|
14949
|
+
"text": "string | undefined"
|
|
14950
|
+
},
|
|
14951
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
14952
|
+
"fieldName": "label"
|
|
14953
14953
|
}
|
|
14954
14954
|
],
|
|
14955
14955
|
"superclass": {
|
|
@@ -14958,11 +14958,11 @@
|
|
|
14958
14958
|
},
|
|
14959
14959
|
"localization": [],
|
|
14960
14960
|
"status": "ready",
|
|
14961
|
-
"category": "
|
|
14962
|
-
"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
|
|
14961
|
+
"category": "feedback",
|
|
14962
|
+
"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 for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
14963
14963
|
"examples": [],
|
|
14964
14964
|
"dependencies": [],
|
|
14965
|
-
"tagName": "nord-
|
|
14965
|
+
"tagName": "nord-spinner",
|
|
14966
14966
|
"customElement": true
|
|
14967
14967
|
}
|
|
14968
14968
|
],
|
|
@@ -14971,16 +14971,16 @@
|
|
|
14971
14971
|
"kind": "js",
|
|
14972
14972
|
"name": "default",
|
|
14973
14973
|
"declaration": {
|
|
14974
|
-
"name": "
|
|
14975
|
-
"module": "src/
|
|
14974
|
+
"name": "Spinner",
|
|
14975
|
+
"module": "src/spinner/Spinner.ts"
|
|
14976
14976
|
}
|
|
14977
14977
|
},
|
|
14978
14978
|
{
|
|
14979
14979
|
"kind": "custom-element-definition",
|
|
14980
|
-
"name": "nord-
|
|
14980
|
+
"name": "nord-spinner",
|
|
14981
14981
|
"declaration": {
|
|
14982
|
-
"name": "
|
|
14983
|
-
"module": "src/
|
|
14982
|
+
"name": "Spinner",
|
|
14983
|
+
"module": "src/spinner/Spinner.ts"
|
|
14984
14984
|
}
|
|
14985
14985
|
}
|
|
14986
14986
|
]
|
|
@@ -15231,54 +15231,6 @@
|
|
|
15231
15231
|
}
|
|
15232
15232
|
]
|
|
15233
15233
|
},
|
|
15234
|
-
{
|
|
15235
|
-
"kind": "javascript-module",
|
|
15236
|
-
"path": "src/tab-panel/TabPanel.ts",
|
|
15237
|
-
"declarations": [
|
|
15238
|
-
{
|
|
15239
|
-
"kind": "class",
|
|
15240
|
-
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
15241
|
-
"name": "TabPanel",
|
|
15242
|
-
"slots": [
|
|
15243
|
-
{
|
|
15244
|
-
"description": "The tab panel content.",
|
|
15245
|
-
"name": ""
|
|
15246
|
-
}
|
|
15247
|
-
],
|
|
15248
|
-
"members": [],
|
|
15249
|
-
"superclass": {
|
|
15250
|
-
"name": "LitElement",
|
|
15251
|
-
"package": "lit"
|
|
15252
|
-
},
|
|
15253
|
-
"localization": [],
|
|
15254
|
-
"status": "ready",
|
|
15255
|
-
"category": "navigation",
|
|
15256
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
15257
|
-
"examples": [],
|
|
15258
|
-
"dependencies": [],
|
|
15259
|
-
"tagName": "nord-tab-panel",
|
|
15260
|
-
"customElement": true
|
|
15261
|
-
}
|
|
15262
|
-
],
|
|
15263
|
-
"exports": [
|
|
15264
|
-
{
|
|
15265
|
-
"kind": "js",
|
|
15266
|
-
"name": "default",
|
|
15267
|
-
"declaration": {
|
|
15268
|
-
"name": "TabPanel",
|
|
15269
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
15270
|
-
}
|
|
15271
|
-
},
|
|
15272
|
-
{
|
|
15273
|
-
"kind": "custom-element-definition",
|
|
15274
|
-
"name": "nord-tab-panel",
|
|
15275
|
-
"declaration": {
|
|
15276
|
-
"name": "TabPanel",
|
|
15277
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
15278
|
-
}
|
|
15279
|
-
}
|
|
15280
|
-
]
|
|
15281
|
-
},
|
|
15282
15234
|
{
|
|
15283
15235
|
"kind": "javascript-module",
|
|
15284
15236
|
"path": "src/table/Table.ts",
|
|
@@ -15425,6 +15377,54 @@
|
|
|
15425
15377
|
}
|
|
15426
15378
|
]
|
|
15427
15379
|
},
|
|
15380
|
+
{
|
|
15381
|
+
"kind": "javascript-module",
|
|
15382
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
15383
|
+
"declarations": [
|
|
15384
|
+
{
|
|
15385
|
+
"kind": "class",
|
|
15386
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
15387
|
+
"name": "TabPanel",
|
|
15388
|
+
"slots": [
|
|
15389
|
+
{
|
|
15390
|
+
"description": "The tab panel content.",
|
|
15391
|
+
"name": ""
|
|
15392
|
+
}
|
|
15393
|
+
],
|
|
15394
|
+
"members": [],
|
|
15395
|
+
"superclass": {
|
|
15396
|
+
"name": "LitElement",
|
|
15397
|
+
"package": "lit"
|
|
15398
|
+
},
|
|
15399
|
+
"localization": [],
|
|
15400
|
+
"status": "ready",
|
|
15401
|
+
"category": "navigation",
|
|
15402
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
15403
|
+
"examples": [],
|
|
15404
|
+
"dependencies": [],
|
|
15405
|
+
"tagName": "nord-tab-panel",
|
|
15406
|
+
"customElement": true
|
|
15407
|
+
}
|
|
15408
|
+
],
|
|
15409
|
+
"exports": [
|
|
15410
|
+
{
|
|
15411
|
+
"kind": "js",
|
|
15412
|
+
"name": "default",
|
|
15413
|
+
"declaration": {
|
|
15414
|
+
"name": "TabPanel",
|
|
15415
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
15416
|
+
}
|
|
15417
|
+
},
|
|
15418
|
+
{
|
|
15419
|
+
"kind": "custom-element-definition",
|
|
15420
|
+
"name": "nord-tab-panel",
|
|
15421
|
+
"declaration": {
|
|
15422
|
+
"name": "TabPanel",
|
|
15423
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
15424
|
+
}
|
|
15425
|
+
}
|
|
15426
|
+
]
|
|
15427
|
+
},
|
|
15428
15428
|
{
|
|
15429
15429
|
"kind": "javascript-module",
|
|
15430
15430
|
"path": "src/tag/Tag.ts",
|
|
@@ -17403,6 +17403,9 @@
|
|
|
17403
17403
|
{
|
|
17404
17404
|
"kind": "field",
|
|
17405
17405
|
"name": "proxy",
|
|
17406
|
+
"type": {
|
|
17407
|
+
"text": "HTMLSpanElement | undefined"
|
|
17408
|
+
},
|
|
17406
17409
|
"privacy": "private",
|
|
17407
17410
|
"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."
|
|
17408
17411
|
},
|
|
@@ -18326,20 +18329,16 @@
|
|
|
18326
18329
|
},
|
|
18327
18330
|
{
|
|
18328
18331
|
"kind": "javascript-module",
|
|
18329
|
-
"path": "src/
|
|
18332
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
18330
18333
|
"declarations": [
|
|
18331
18334
|
{
|
|
18332
18335
|
"kind": "class",
|
|
18333
|
-
"description": "
|
|
18334
|
-
"name": "
|
|
18336
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
18337
|
+
"name": "VisuallyHidden",
|
|
18335
18338
|
"slots": [
|
|
18336
18339
|
{
|
|
18337
|
-
"description": "
|
|
18340
|
+
"description": "The visually hidden content.",
|
|
18338
18341
|
"name": ""
|
|
18339
|
-
},
|
|
18340
|
-
{
|
|
18341
|
-
"description": "Optional slot for menus, buttons, toggles, etc.",
|
|
18342
|
-
"name": "end"
|
|
18343
18342
|
}
|
|
18344
18343
|
],
|
|
18345
18344
|
"members": [],
|
|
@@ -18349,11 +18348,11 @@
|
|
|
18349
18348
|
},
|
|
18350
18349
|
"localization": [],
|
|
18351
18350
|
"status": "ready",
|
|
18352
|
-
"category": "
|
|
18353
|
-
"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-
|
|
18351
|
+
"category": "text",
|
|
18352
|
+
"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 hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n",
|
|
18354
18353
|
"examples": [],
|
|
18355
18354
|
"dependencies": [],
|
|
18356
|
-
"tagName": "nord-
|
|
18355
|
+
"tagName": "nord-visually-hidden",
|
|
18357
18356
|
"customElement": true
|
|
18358
18357
|
}
|
|
18359
18358
|
],
|
|
@@ -18362,32 +18361,36 @@
|
|
|
18362
18361
|
"kind": "js",
|
|
18363
18362
|
"name": "default",
|
|
18364
18363
|
"declaration": {
|
|
18365
|
-
"name": "
|
|
18366
|
-
"module": "src/
|
|
18364
|
+
"name": "VisuallyHidden",
|
|
18365
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
18367
18366
|
}
|
|
18368
18367
|
},
|
|
18369
18368
|
{
|
|
18370
18369
|
"kind": "custom-element-definition",
|
|
18371
|
-
"name": "nord-
|
|
18370
|
+
"name": "nord-visually-hidden",
|
|
18372
18371
|
"declaration": {
|
|
18373
|
-
"name": "
|
|
18374
|
-
"module": "src/
|
|
18372
|
+
"name": "VisuallyHidden",
|
|
18373
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
18375
18374
|
}
|
|
18376
18375
|
}
|
|
18377
18376
|
]
|
|
18378
18377
|
},
|
|
18379
18378
|
{
|
|
18380
18379
|
"kind": "javascript-module",
|
|
18381
|
-
"path": "src/
|
|
18380
|
+
"path": "src/top-bar/TopBar.ts",
|
|
18382
18381
|
"declarations": [
|
|
18383
18382
|
{
|
|
18384
18383
|
"kind": "class",
|
|
18385
|
-
"description": "
|
|
18386
|
-
"name": "
|
|
18384
|
+
"description": "Top bar is a header component that is always visible at the top of the interface. Top bar allows functionality such as search and contextual menus to be placed at the top of the interface.",
|
|
18385
|
+
"name": "TopBar",
|
|
18387
18386
|
"slots": [
|
|
18388
18387
|
{
|
|
18389
|
-
"description": "
|
|
18388
|
+
"description": "Used for the main content of the top bar. We recommend placing your application’s global search functionality into this slot.",
|
|
18390
18389
|
"name": ""
|
|
18390
|
+
},
|
|
18391
|
+
{
|
|
18392
|
+
"description": "Optional slot for menus, buttons, toggles, etc.",
|
|
18393
|
+
"name": "end"
|
|
18391
18394
|
}
|
|
18392
18395
|
],
|
|
18393
18396
|
"members": [],
|
|
@@ -18397,11 +18400,11 @@
|
|
|
18397
18400
|
},
|
|
18398
18401
|
"localization": [],
|
|
18399
18402
|
"status": "ready",
|
|
18400
|
-
"category": "
|
|
18401
|
-
"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-
|
|
18403
|
+
"category": "structure",
|
|
18404
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Applications that utilize the top bar can allow users to customize the color of the top bar to match their preference. [View an example](/components/top-bar/?example=color).\n- If your application allows it, include search to help users find resources and navigate.\n- Include a user menu in the end slot of the top bar.\n- Use the [layout component](/components/layout/?example=top-bar) to provide structure for the top bar component. We’ve also created [an example which shows full theming capabilities](/components/layout/?example=theming).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for global navigation. Use the [navigation component](/components/navigation/) instead.\n- Don’t allow the user to set a top bar color that doesn’t provide enough contrast with the content.\n- Don’t allow the user to freely pick a hex code as the top bar color. Instead, offer a choice from a predefined palette of colors which provides sufficient contrast with the content. [View an example](/components/top-bar/?example=color).\n\n</div>\n\n---\n\n## Theming\n\nPlease see the [Top Bar theming](/themes/#top-bar-theming) section in our theming documentation for detailed guidelines.\n\n<nord-button variant=\"primary\" href=\"/themes/#top-bar-theming\">Theming Guidelines</nord-button>\n",
|
|
18402
18405
|
"examples": [],
|
|
18403
18406
|
"dependencies": [],
|
|
18404
|
-
"tagName": "nord-
|
|
18407
|
+
"tagName": "nord-top-bar",
|
|
18405
18408
|
"customElement": true
|
|
18406
18409
|
}
|
|
18407
18410
|
],
|
|
@@ -18410,16 +18413,16 @@
|
|
|
18410
18413
|
"kind": "js",
|
|
18411
18414
|
"name": "default",
|
|
18412
18415
|
"declaration": {
|
|
18413
|
-
"name": "
|
|
18414
|
-
"module": "src/
|
|
18416
|
+
"name": "TopBar",
|
|
18417
|
+
"module": "src/top-bar/TopBar.ts"
|
|
18415
18418
|
}
|
|
18416
18419
|
},
|
|
18417
18420
|
{
|
|
18418
18421
|
"kind": "custom-element-definition",
|
|
18419
|
-
"name": "nord-
|
|
18422
|
+
"name": "nord-top-bar",
|
|
18420
18423
|
"declaration": {
|
|
18421
|
-
"name": "
|
|
18422
|
-
"module": "src/
|
|
18424
|
+
"name": "TopBar",
|
|
18425
|
+
"module": "src/top-bar/TopBar.ts"
|
|
18423
18426
|
}
|
|
18424
18427
|
}
|
|
18425
18428
|
]
|
|
@@ -19089,7 +19092,7 @@
|
|
|
19089
19092
|
"kind": "field",
|
|
19090
19093
|
"name": "renderHook",
|
|
19091
19094
|
"type": {
|
|
19092
|
-
"text": "Comment"
|
|
19095
|
+
"text": "Comment | undefined"
|
|
19093
19096
|
},
|
|
19094
19097
|
"privacy": "private"
|
|
19095
19098
|
},
|
|
@@ -19097,7 +19100,7 @@
|
|
|
19097
19100
|
"kind": "field",
|
|
19098
19101
|
"name": "lightDom",
|
|
19099
19102
|
"type": {
|
|
19100
|
-
"text": "LightDomController"
|
|
19103
|
+
"text": "LightDomController | undefined"
|
|
19101
19104
|
},
|
|
19102
19105
|
"privacy": "private",
|
|
19103
19106
|
"default": "new LightDomController(host, { render: () => (this.hasContent ? nothing : this.options.render()), renderOptions: { renderBefore: this.renderHook }, })"
|
|
@@ -19285,10 +19288,9 @@
|
|
|
19285
19288
|
"kind": "field",
|
|
19286
19289
|
"name": "observer",
|
|
19287
19290
|
"type": {
|
|
19288
|
-
"text": "ResizeObserver"
|
|
19291
|
+
"text": "ResizeObserver | undefined"
|
|
19289
19292
|
},
|
|
19290
|
-
"privacy": "private"
|
|
19291
|
-
"default": "new ResizeObserver(([entry]) => { const [borderBoxSize] = entry.borderBoxSize this.borderBoxSize = borderBoxSize host.requestUpdate() })"
|
|
19293
|
+
"privacy": "private"
|
|
19292
19294
|
},
|
|
19293
19295
|
{
|
|
19294
19296
|
"kind": "field",
|