@nordhealth/components 1.6.0 → 1.8.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/README.md +1 -1
- package/custom-elements.json +680 -128
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Button.js +1 -1
- package/lib/{Calendar-6f7a7d8f.js → Calendar-a59d353e.js} +2 -2
- package/lib/{Calendar-6f7a7d8f.js.map → Calendar-a59d353e.js.map} +1 -1
- 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/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/Component-a61df53a.js +2 -0
- package/lib/Component-a61df53a.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js +2 -0
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -0
- 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.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/Fieldset.js +1 -1
- package/lib/{FocusableMixin-4c85ced9.js → FocusableMixin-175ea4d7.js} +2 -2
- package/lib/{FocusableMixin-4c85ced9.js.map → FocusableMixin-175ea4d7.js.map} +1 -1
- package/lib/{FormAssociatedMixin-9d38814c.js → FormAssociatedMixin-d3124755.js} +2 -2
- package/lib/{FormAssociatedMixin-9d38814c.js.map → FormAssociatedMixin-d3124755.js.map} +1 -1
- package/lib/{FormField-44e865a4.js → FormField-d3767c2e.js} +2 -2
- package/lib/FormField-d3767c2e.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDomController-e0762f0d.js → LightDomController-6d26dea2.js} +2 -2
- package/lib/{LightDomController-e0762f0d.js.map → LightDomController-6d26dea2.js.map} +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +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/Navigation.js +1 -1
- package/lib/Popout.js +1 -1
- package/lib/Popout.js.map +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/ShortcutController-87615e31.js.map +1 -1
- package/lib/Skeleton.js +2 -0
- package/lib/Skeleton.js.map +1 -0
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Tab.js +2 -0
- package/lib/Tab.js.map +1 -0
- package/lib/TabGroup.js +2 -0
- package/lib/TabGroup.js.map +1 -0
- package/lib/TabPanel.js +2 -0
- package/lib/TabPanel.js.map +1 -0
- package/lib/Table.js +1 -1
- package/lib/{TextField-9dea5c28.js → TextField-93a3922f.js} +2 -2
- package/lib/TextField-93a3922f.js.map +1 -0
- package/lib/Textarea.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +10 -10
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-9e39244c.js → class-map-f1b6f1fa.js} +2 -2
- package/lib/{class-map-9e39244c.js.map → class-map-f1b6f1fa.js.map} +1 -1
- package/lib/cond-97c45476.js +2 -0
- package/lib/{cond-ed8742b5.js.map → cond-97c45476.js.map} +1 -1
- package/lib/date-adapter.js +1 -1
- package/lib/{dates-56f73760.js → dates-a8de5b83.js} +1 -1
- package/lib/{dates-56f73760.js.map → dates-a8de5b83.js.map} +1 -1
- package/lib/{if-defined-4d1db15c.js → if-defined-fe1a64e3.js} +2 -2
- package/lib/{if-defined-4d1db15c.js.map → if-defined-fe1a64e3.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/{lit-element-e382250e.js → lit-element-67e6cd99.js} +2 -2
- package/lib/{lit-element-e382250e.js.map → lit-element-67e6cd99.js.map} +1 -1
- package/lib/month-view.js +1 -1
- package/lib/month-view.js.map +1 -1
- package/lib/positioning-b660767c.js +2 -0
- package/lib/positioning-b660767c.js.map +1 -0
- package/lib/{ref-adf41565.js → ref-57ff8ffc.js} +2 -2
- package/lib/{ref-adf41565.js.map → ref-57ff8ffc.js.map} +1 -1
- package/lib/{repeat-ed796481.js → repeat-084c4167.js} +3 -3
- package/lib/{repeat-ed796481.js.map → repeat-084c4167.js.map} +1 -1
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +3 -2
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/src/empty-state/EmptyState.d.ts +1 -1
- package/lib/src/index.d.ts +4 -0
- package/lib/src/layout/Layout.d.ts +5 -0
- package/lib/src/layout/Layout.test.d.ts +3 -0
- package/lib/src/nav-item/NavItem.d.ts +0 -2
- package/lib/src/popout/Popout.d.ts +1 -1
- package/lib/src/skeleton/Skeleton.d.ts +24 -0
- package/lib/src/skeleton/Skeleton.test.d.ts +3 -0
- package/lib/src/tab/Tab.d.ts +30 -0
- package/lib/src/tab/Tab.test.d.ts +1 -0
- package/lib/src/tab-group/TabGroup.d.ts +77 -0
- package/lib/src/tab-group/TabGroup.test.d.ts +9 -0
- package/lib/src/tab-panel/TabPanel.d.ts +21 -0
- package/lib/src/tab-panel/TabPanel.test.d.ts +1 -0
- package/lib/{unsafe-html-76575c49.js → unsafe-html-61a04601.js} +2 -2
- package/lib/{unsafe-html-76575c49.js.map → unsafe-html-61a04601.js.map} +1 -1
- package/package.json +32 -31
- package/lib/Component-5a499e30.js +0 -2
- package/lib/Component-5a499e30.js.map +0 -1
- package/lib/FormField-44e865a4.js.map +0 -1
- package/lib/TextField-9dea5c28.js.map +0 -1
- package/lib/cond-ed8742b5.js +0 -2
- package/lib/positioning-763efb3a.js +0 -2
- package/lib/positioning-763efb3a.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -287,6 +287,30 @@
|
|
|
287
287
|
"module": "\"./localization/translation.js\""
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
|
+
{
|
|
291
|
+
"kind": "js",
|
|
292
|
+
"name": "TabGroup",
|
|
293
|
+
"declaration": {
|
|
294
|
+
"name": "default",
|
|
295
|
+
"module": "\"./tab-group/TabGroup.js\""
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"kind": "js",
|
|
300
|
+
"name": "Tab",
|
|
301
|
+
"declaration": {
|
|
302
|
+
"name": "default",
|
|
303
|
+
"module": "\"./tab/Tab.js\""
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "js",
|
|
308
|
+
"name": "TabPanel",
|
|
309
|
+
"declaration": {
|
|
310
|
+
"name": "default",
|
|
311
|
+
"module": "\"./tab-panel/TabPanel.js\""
|
|
312
|
+
}
|
|
313
|
+
},
|
|
290
314
|
{
|
|
291
315
|
"kind": "js",
|
|
292
316
|
"name": "Toggle",
|
|
@@ -302,6 +326,14 @@
|
|
|
302
326
|
"name": "default",
|
|
303
327
|
"module": "\"./modal/Modal.js\""
|
|
304
328
|
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"kind": "js",
|
|
332
|
+
"name": "Skeleton",
|
|
333
|
+
"declaration": {
|
|
334
|
+
"name": "default",
|
|
335
|
+
"module": "\"./skeleton/Skeleton.js\""
|
|
336
|
+
}
|
|
305
337
|
}
|
|
306
338
|
]
|
|
307
339
|
},
|
|
@@ -944,74 +976,6 @@
|
|
|
944
976
|
],
|
|
945
977
|
"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"
|
|
946
978
|
},
|
|
947
|
-
{
|
|
948
|
-
"kind": "javascript-module",
|
|
949
|
-
"path": "src/badge/Badge.ts",
|
|
950
|
-
"declarations": [
|
|
951
|
-
{
|
|
952
|
-
"kind": "class",
|
|
953
|
-
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
954
|
-
"name": "Badge",
|
|
955
|
-
"slots": [
|
|
956
|
-
{
|
|
957
|
-
"description": "The badge content.",
|
|
958
|
-
"name": ""
|
|
959
|
-
}
|
|
960
|
-
],
|
|
961
|
-
"members": [
|
|
962
|
-
{
|
|
963
|
-
"kind": "field",
|
|
964
|
-
"name": "type",
|
|
965
|
-
"type": {
|
|
966
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
967
|
-
},
|
|
968
|
-
"default": "\"info\"",
|
|
969
|
-
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
970
|
-
"attribute": "type",
|
|
971
|
-
"reflects": true
|
|
972
|
-
}
|
|
973
|
-
],
|
|
974
|
-
"attributes": [
|
|
975
|
-
{
|
|
976
|
-
"name": "type",
|
|
977
|
-
"type": {
|
|
978
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
979
|
-
},
|
|
980
|
-
"default": "\"info\"",
|
|
981
|
-
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
982
|
-
"fieldName": "type"
|
|
983
|
-
}
|
|
984
|
-
],
|
|
985
|
-
"superclass": {
|
|
986
|
-
"name": "LitElement",
|
|
987
|
-
"package": "lit"
|
|
988
|
-
},
|
|
989
|
-
"status": "ready",
|
|
990
|
-
"category": "text",
|
|
991
|
-
"tagName": "nord-badge",
|
|
992
|
-
"customElement": true
|
|
993
|
-
}
|
|
994
|
-
],
|
|
995
|
-
"exports": [
|
|
996
|
-
{
|
|
997
|
-
"kind": "js",
|
|
998
|
-
"name": "default",
|
|
999
|
-
"declaration": {
|
|
1000
|
-
"name": "Badge",
|
|
1001
|
-
"module": "src/badge/Badge.ts"
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"kind": "custom-element-definition",
|
|
1006
|
-
"name": "nord-badge",
|
|
1007
|
-
"declaration": {
|
|
1008
|
-
"name": "Badge",
|
|
1009
|
-
"module": "src/badge/Badge.ts"
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
],
|
|
1013
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
|
|
1014
|
-
},
|
|
1015
979
|
{
|
|
1016
980
|
"kind": "javascript-module",
|
|
1017
981
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -1572,7 +1536,7 @@
|
|
|
1572
1536
|
"text": "\"m\" | \"l\" | \"none\""
|
|
1573
1537
|
},
|
|
1574
1538
|
"default": "\"m\"",
|
|
1575
|
-
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1539
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1576
1540
|
"attribute": "padding",
|
|
1577
1541
|
"reflects": true
|
|
1578
1542
|
}
|
|
@@ -1584,7 +1548,7 @@
|
|
|
1584
1548
|
"text": "\"m\" | \"l\" | \"none\""
|
|
1585
1549
|
},
|
|
1586
1550
|
"default": "\"m\"",
|
|
1587
|
-
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1551
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1588
1552
|
"fieldName": "padding"
|
|
1589
1553
|
}
|
|
1590
1554
|
],
|
|
@@ -1618,6 +1582,74 @@
|
|
|
1618
1582
|
],
|
|
1619
1583
|
"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\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\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"
|
|
1620
1584
|
},
|
|
1585
|
+
{
|
|
1586
|
+
"kind": "javascript-module",
|
|
1587
|
+
"path": "src/badge/Badge.ts",
|
|
1588
|
+
"declarations": [
|
|
1589
|
+
{
|
|
1590
|
+
"kind": "class",
|
|
1591
|
+
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
1592
|
+
"name": "Badge",
|
|
1593
|
+
"slots": [
|
|
1594
|
+
{
|
|
1595
|
+
"description": "The badge content.",
|
|
1596
|
+
"name": ""
|
|
1597
|
+
}
|
|
1598
|
+
],
|
|
1599
|
+
"members": [
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "field",
|
|
1602
|
+
"name": "type",
|
|
1603
|
+
"type": {
|
|
1604
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
1605
|
+
},
|
|
1606
|
+
"default": "\"info\"",
|
|
1607
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
1608
|
+
"attribute": "type",
|
|
1609
|
+
"reflects": true
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
"attributes": [
|
|
1613
|
+
{
|
|
1614
|
+
"name": "type",
|
|
1615
|
+
"type": {
|
|
1616
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
1617
|
+
},
|
|
1618
|
+
"default": "\"info\"",
|
|
1619
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
1620
|
+
"fieldName": "type"
|
|
1621
|
+
}
|
|
1622
|
+
],
|
|
1623
|
+
"superclass": {
|
|
1624
|
+
"name": "LitElement",
|
|
1625
|
+
"package": "lit"
|
|
1626
|
+
},
|
|
1627
|
+
"status": "ready",
|
|
1628
|
+
"category": "text",
|
|
1629
|
+
"tagName": "nord-badge",
|
|
1630
|
+
"customElement": true
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"exports": [
|
|
1634
|
+
{
|
|
1635
|
+
"kind": "js",
|
|
1636
|
+
"name": "default",
|
|
1637
|
+
"declaration": {
|
|
1638
|
+
"name": "Badge",
|
|
1639
|
+
"module": "src/badge/Badge.ts"
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"kind": "custom-element-definition",
|
|
1644
|
+
"name": "nord-badge",
|
|
1645
|
+
"declaration": {
|
|
1646
|
+
"name": "Badge",
|
|
1647
|
+
"module": "src/badge/Badge.ts"
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
],
|
|
1651
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
|
|
1652
|
+
},
|
|
1621
1653
|
{
|
|
1622
1654
|
"kind": "javascript-module",
|
|
1623
1655
|
"path": "src/checkbox/Checkbox.ts",
|
|
@@ -5089,7 +5121,7 @@
|
|
|
5089
5121
|
"name": "LitElement",
|
|
5090
5122
|
"package": "lit"
|
|
5091
5123
|
},
|
|
5092
|
-
"status": "
|
|
5124
|
+
"status": "ready",
|
|
5093
5125
|
"category": "action",
|
|
5094
5126
|
"tagName": "nord-dropdown",
|
|
5095
5127
|
"customElement": true
|
|
@@ -5113,7 +5145,7 @@
|
|
|
5113
5145
|
}
|
|
5114
5146
|
}
|
|
5115
5147
|
],
|
|
5116
|
-
"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- Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or commands, where an action is initiated based on the selection.\n- When organizing dropdown menu items, sort the list in a logical order by putting the most selected option at the top.\n- Use for a “more” menu, where the control contains an icon.\n- Use for user profiles, where the control is an avatar.\n- Use in conjunction with the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding primary actions since they should be visible by default.\n- Don’t use for selecting an option from a list of options, use the [select component](/components/select/) instead.\n- Don’t nest elements or components other than the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components. Consider using the [popout component](/components/popout/) when creating custom UI.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\
|
|
5148
|
+
"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- Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or commands, where an action is initiated based on the selection.\n- When organizing dropdown menu items, sort the list in a logical order by putting the most selected option at the top.\n- Use for a “more” menu, where the control contains an icon.\n- Use for user profiles, where the control is an avatar.\n- Use in conjunction with the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding primary actions since they should be visible by default.\n- Don’t use for selecting an option from a list of options, use the [select component](/components/select/) instead.\n- Don’t nest elements or components other than the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components. Consider using the [popout component](/components/popout/) when creating custom UI.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n"
|
|
5117
5149
|
},
|
|
5118
5150
|
{
|
|
5119
5151
|
"kind": "javascript-module",
|
|
@@ -5154,7 +5186,7 @@
|
|
|
5154
5186
|
"name": "LitElement",
|
|
5155
5187
|
"package": "lit"
|
|
5156
5188
|
},
|
|
5157
|
-
"status": "
|
|
5189
|
+
"status": "ready",
|
|
5158
5190
|
"category": "action",
|
|
5159
5191
|
"tagName": "nord-dropdown-group",
|
|
5160
5192
|
"customElement": true
|
|
@@ -5178,7 +5210,7 @@
|
|
|
5178
5210
|
}
|
|
5179
5211
|
}
|
|
5180
5212
|
],
|
|
5181
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\
|
|
5213
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n"
|
|
5182
5214
|
},
|
|
5183
5215
|
{
|
|
5184
5216
|
"kind": "javascript-module",
|
|
@@ -5280,7 +5312,7 @@
|
|
|
5280
5312
|
"name": "LitElement",
|
|
5281
5313
|
"package": "lit"
|
|
5282
5314
|
},
|
|
5283
|
-
"status": "
|
|
5315
|
+
"status": "ready",
|
|
5284
5316
|
"category": "action",
|
|
5285
5317
|
"tagName": "nord-dropdown-item",
|
|
5286
5318
|
"customElement": true
|
|
@@ -5304,7 +5336,7 @@
|
|
|
5304
5336
|
}
|
|
5305
5337
|
}
|
|
5306
5338
|
],
|
|
5307
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use dropdown item outside of dropdown group and dropdown components.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\
|
|
5339
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use dropdown item outside of dropdown group and dropdown components.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n"
|
|
5308
5340
|
},
|
|
5309
5341
|
{
|
|
5310
5342
|
"kind": "javascript-module",
|
|
@@ -5325,7 +5357,7 @@
|
|
|
5325
5357
|
"name": "LitElement",
|
|
5326
5358
|
"package": "lit"
|
|
5327
5359
|
},
|
|
5328
|
-
"status": "
|
|
5360
|
+
"status": "ready",
|
|
5329
5361
|
"category": "feedback",
|
|
5330
5362
|
"tagName": "nord-empty-state",
|
|
5331
5363
|
"customElement": true
|
|
@@ -6507,6 +6539,17 @@
|
|
|
6507
6539
|
"description": "ID reference of element used to toggle the navigation.",
|
|
6508
6540
|
"attribute": "nav-toggle"
|
|
6509
6541
|
},
|
|
6542
|
+
{
|
|
6543
|
+
"kind": "field",
|
|
6544
|
+
"name": "padding",
|
|
6545
|
+
"type": {
|
|
6546
|
+
"text": "\"m\" | \"none\""
|
|
6547
|
+
},
|
|
6548
|
+
"default": "\"m\"",
|
|
6549
|
+
"description": "Controls the padding of the default main section slot. When set to “none”,\nthe nav and header slots will still have padding.",
|
|
6550
|
+
"attribute": "padding",
|
|
6551
|
+
"reflects": true
|
|
6552
|
+
},
|
|
6510
6553
|
{
|
|
6511
6554
|
"kind": "field",
|
|
6512
6555
|
"name": "lightDismiss",
|
|
@@ -6711,6 +6754,15 @@
|
|
|
6711
6754
|
},
|
|
6712
6755
|
"description": "ID reference of element used to toggle the navigation.",
|
|
6713
6756
|
"fieldName": "navToggle"
|
|
6757
|
+
},
|
|
6758
|
+
{
|
|
6759
|
+
"name": "padding",
|
|
6760
|
+
"type": {
|
|
6761
|
+
"text": "\"m\" | \"none\""
|
|
6762
|
+
},
|
|
6763
|
+
"default": "\"m\"",
|
|
6764
|
+
"description": "Controls the padding of the default main section slot. When set to “none”,\nthe nav and header slots will still have padding.",
|
|
6765
|
+
"fieldName": "padding"
|
|
6714
6766
|
}
|
|
6715
6767
|
],
|
|
6716
6768
|
"superclass": {
|
|
@@ -7388,7 +7440,7 @@
|
|
|
7388
7440
|
}
|
|
7389
7441
|
}
|
|
7390
7442
|
],
|
|
7391
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\
|
|
7443
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n"
|
|
7392
7444
|
},
|
|
7393
7445
|
{
|
|
7394
7446
|
"kind": "javascript-module",
|
|
@@ -7456,7 +7508,7 @@
|
|
|
7456
7508
|
"type": {
|
|
7457
7509
|
"text": "string | undefined"
|
|
7458
7510
|
},
|
|
7459
|
-
"description": "Allows you to add a notification badge with a number next to the nav item
|
|
7511
|
+
"description": "Allows you to add a notification badge with a number next to the nav item.",
|
|
7460
7512
|
"attribute": "badge"
|
|
7461
7513
|
},
|
|
7462
7514
|
{
|
|
@@ -7600,7 +7652,7 @@
|
|
|
7600
7652
|
"type": {
|
|
7601
7653
|
"text": "string | undefined"
|
|
7602
7654
|
},
|
|
7603
|
-
"description": "Allows you to add a notification badge with a number next to the nav item
|
|
7655
|
+
"description": "Allows you to add a notification badge with a number next to the nav item.",
|
|
7604
7656
|
"fieldName": "badge"
|
|
7605
7657
|
},
|
|
7606
7658
|
{
|
|
@@ -7647,7 +7699,7 @@
|
|
|
7647
7699
|
}
|
|
7648
7700
|
}
|
|
7649
7701
|
],
|
|
7650
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use navigation item outside of navigation group and navigation components.\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\
|
|
7702
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use navigation item outside of navigation group and navigation components.\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"
|
|
7651
7703
|
},
|
|
7652
7704
|
{
|
|
7653
7705
|
"kind": "javascript-module",
|
|
@@ -7700,7 +7752,7 @@
|
|
|
7700
7752
|
}
|
|
7701
7753
|
}
|
|
7702
7754
|
],
|
|
7703
|
-
"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\
|
|
7755
|
+
"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"
|
|
7704
7756
|
},
|
|
7705
7757
|
{
|
|
7706
7758
|
"kind": "javascript-module",
|
|
@@ -7904,7 +7956,7 @@
|
|
|
7904
7956
|
"name": "LitElement",
|
|
7905
7957
|
"package": "lit"
|
|
7906
7958
|
},
|
|
7907
|
-
"status": "
|
|
7959
|
+
"status": "ready",
|
|
7908
7960
|
"category": "overlay",
|
|
7909
7961
|
"tagName": "nord-popout",
|
|
7910
7962
|
"customElement": true
|
|
@@ -7928,7 +7980,7 @@
|
|
|
7928
7980
|
}
|
|
7929
7981
|
}
|
|
7930
7982
|
],
|
|
7931
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nPopout actions should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in popout actions, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending popout actions in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\
|
|
7983
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nPopout actions should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in popout actions, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending popout actions in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for popout actions:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\n---\n\n## Additional considerations\n\n- The popout component is a containing component, only providing a way to reveal and hide controls by using a single button.\n"
|
|
7932
7984
|
},
|
|
7933
7985
|
{
|
|
7934
7986
|
"kind": "javascript-module",
|
|
@@ -9368,6 +9420,87 @@
|
|
|
9368
9420
|
],
|
|
9369
9421
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to let a user choose one option from an options menu.\n- Use when you have more than 6 options to choose from.\n- Use when you don’t know how many options there will be.\n- Use hint text and placeholder to provide additional, non-critical instructions.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a select if you have less than 6 options to choose from. Consider using radio components instead, if you have enough space to allow it. \n\n</div>\n\n---\n\n## Content guidelines\n\nSelect labels act as a title for the select field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing select labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">Company Name</div>\n\nDo not use colons in select labels:\n\n<div class=\"n-usage n-usage-do\">Choose organization</div>\n<div class=\"n-usage n-usage-dont\">Choose organization:</div>\n"
|
|
9370
9422
|
},
|
|
9423
|
+
{
|
|
9424
|
+
"kind": "javascript-module",
|
|
9425
|
+
"path": "src/skeleton/Skeleton.ts",
|
|
9426
|
+
"declarations": [
|
|
9427
|
+
{
|
|
9428
|
+
"kind": "class",
|
|
9429
|
+
"description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
|
|
9430
|
+
"name": "Skeleton",
|
|
9431
|
+
"members": [
|
|
9432
|
+
{
|
|
9433
|
+
"kind": "field",
|
|
9434
|
+
"name": "effect",
|
|
9435
|
+
"type": {
|
|
9436
|
+
"text": "\"pulse\" | \"sheen\" | \"none\""
|
|
9437
|
+
},
|
|
9438
|
+
"default": "\"none\"",
|
|
9439
|
+
"description": "Determines which animation effect the skeleton will use.",
|
|
9440
|
+
"attribute": "effect"
|
|
9441
|
+
},
|
|
9442
|
+
{
|
|
9443
|
+
"kind": "field",
|
|
9444
|
+
"name": "_warningLogged",
|
|
9445
|
+
"type": {
|
|
9446
|
+
"text": "boolean"
|
|
9447
|
+
},
|
|
9448
|
+
"privacy": "private",
|
|
9449
|
+
"static": true,
|
|
9450
|
+
"default": "false",
|
|
9451
|
+
"inheritedFrom": {
|
|
9452
|
+
"name": "DraftComponentMixin",
|
|
9453
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
9454
|
+
}
|
|
9455
|
+
}
|
|
9456
|
+
],
|
|
9457
|
+
"attributes": [
|
|
9458
|
+
{
|
|
9459
|
+
"name": "effect",
|
|
9460
|
+
"type": {
|
|
9461
|
+
"text": "\"pulse\" | \"sheen\" | \"none\""
|
|
9462
|
+
},
|
|
9463
|
+
"default": "\"none\"",
|
|
9464
|
+
"description": "Determines which animation effect the skeleton will use.",
|
|
9465
|
+
"fieldName": "effect"
|
|
9466
|
+
}
|
|
9467
|
+
],
|
|
9468
|
+
"mixins": [
|
|
9469
|
+
{
|
|
9470
|
+
"name": "DraftComponentMixin",
|
|
9471
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
9472
|
+
}
|
|
9473
|
+
],
|
|
9474
|
+
"superclass": {
|
|
9475
|
+
"name": "LitElement",
|
|
9476
|
+
"package": "lit"
|
|
9477
|
+
},
|
|
9478
|
+
"status": "draft",
|
|
9479
|
+
"category": "feedback",
|
|
9480
|
+
"tagName": "nord-skeleton",
|
|
9481
|
+
"customElement": true
|
|
9482
|
+
}
|
|
9483
|
+
],
|
|
9484
|
+
"exports": [
|
|
9485
|
+
{
|
|
9486
|
+
"kind": "js",
|
|
9487
|
+
"name": "default",
|
|
9488
|
+
"declaration": {
|
|
9489
|
+
"name": "Skeleton",
|
|
9490
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
9491
|
+
}
|
|
9492
|
+
},
|
|
9493
|
+
{
|
|
9494
|
+
"kind": "custom-element-definition",
|
|
9495
|
+
"name": "nord-skeleton",
|
|
9496
|
+
"declaration": {
|
|
9497
|
+
"name": "Skeleton",
|
|
9498
|
+
"module": "src/skeleton/Skeleton.ts"
|
|
9499
|
+
}
|
|
9500
|
+
}
|
|
9501
|
+
],
|
|
9502
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use skeleton component for dynamic content only.\n- Use to give the user an indication of what the page layout will be like once loaded.\n- Mimick the actual layout using multiple Skeleton components.\n- Use `aria-busy=\"true\"` to indicate which area on the screen is currently loading and remove it or set it to `false` once loaded.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use Skeleton component for static content.\n- Don’t show placeholder content after Skeleton disappears that will change when the page fully loads.\n\n</div>\n"
|
|
9503
|
+
},
|
|
9371
9504
|
{
|
|
9372
9505
|
"kind": "javascript-module",
|
|
9373
9506
|
"path": "src/spinner/Spinner.ts",
|
|
@@ -9635,26 +9768,445 @@
|
|
|
9635
9768
|
},
|
|
9636
9769
|
{
|
|
9637
9770
|
"kind": "javascript-module",
|
|
9638
|
-
"path": "src/
|
|
9771
|
+
"path": "src/tab/Tab.ts",
|
|
9639
9772
|
"declarations": [
|
|
9640
9773
|
{
|
|
9641
9774
|
"kind": "class",
|
|
9642
|
-
"description": "
|
|
9643
|
-
"name": "
|
|
9775
|
+
"description": "The interactive tab button for use within the tab group component.",
|
|
9776
|
+
"name": "Tab",
|
|
9644
9777
|
"slots": [
|
|
9645
9778
|
{
|
|
9646
|
-
"description": "The
|
|
9779
|
+
"description": "The tab button content.",
|
|
9647
9780
|
"name": ""
|
|
9648
9781
|
}
|
|
9649
9782
|
],
|
|
9650
9783
|
"members": [
|
|
9651
9784
|
{
|
|
9652
9785
|
"kind": "field",
|
|
9653
|
-
"name": "
|
|
9654
|
-
"
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9786
|
+
"name": "defaultSlot",
|
|
9787
|
+
"privacy": "private",
|
|
9788
|
+
"default": "new SlotController(this)"
|
|
9789
|
+
},
|
|
9790
|
+
{
|
|
9791
|
+
"kind": "field",
|
|
9792
|
+
"name": "selected",
|
|
9793
|
+
"type": {
|
|
9794
|
+
"text": "boolean"
|
|
9795
|
+
},
|
|
9796
|
+
"default": "false",
|
|
9797
|
+
"description": "Whether the tab item is selected",
|
|
9798
|
+
"attribute": "selected",
|
|
9799
|
+
"reflects": true
|
|
9800
|
+
},
|
|
9801
|
+
{
|
|
9802
|
+
"kind": "method",
|
|
9803
|
+
"name": "handleSelectionChange",
|
|
9804
|
+
"privacy": "protected",
|
|
9805
|
+
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
9806
|
+
},
|
|
9807
|
+
{
|
|
9808
|
+
"kind": "field",
|
|
9809
|
+
"name": "_warningLogged",
|
|
9810
|
+
"type": {
|
|
9811
|
+
"text": "boolean"
|
|
9812
|
+
},
|
|
9813
|
+
"privacy": "private",
|
|
9814
|
+
"static": true,
|
|
9815
|
+
"default": "false",
|
|
9816
|
+
"inheritedFrom": {
|
|
9817
|
+
"name": "DraftComponentMixin",
|
|
9818
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
],
|
|
9822
|
+
"attributes": [
|
|
9823
|
+
{
|
|
9824
|
+
"name": "selected",
|
|
9825
|
+
"type": {
|
|
9826
|
+
"text": "boolean"
|
|
9827
|
+
},
|
|
9828
|
+
"default": "false",
|
|
9829
|
+
"description": "Whether the tab item is selected",
|
|
9830
|
+
"fieldName": "selected"
|
|
9831
|
+
}
|
|
9832
|
+
],
|
|
9833
|
+
"mixins": [
|
|
9834
|
+
{
|
|
9835
|
+
"name": "DraftComponentMixin",
|
|
9836
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
9837
|
+
}
|
|
9838
|
+
],
|
|
9839
|
+
"superclass": {
|
|
9840
|
+
"name": "LitElement",
|
|
9841
|
+
"package": "lit"
|
|
9842
|
+
},
|
|
9843
|
+
"status": "draft",
|
|
9844
|
+
"category": "navigation",
|
|
9845
|
+
"tagName": "nord-tab",
|
|
9846
|
+
"customElement": true
|
|
9847
|
+
}
|
|
9848
|
+
],
|
|
9849
|
+
"exports": [
|
|
9850
|
+
{
|
|
9851
|
+
"kind": "js",
|
|
9852
|
+
"name": "default",
|
|
9853
|
+
"declaration": {
|
|
9854
|
+
"name": "Tab",
|
|
9855
|
+
"module": "src/tab/Tab.ts"
|
|
9856
|
+
}
|
|
9857
|
+
},
|
|
9858
|
+
{
|
|
9859
|
+
"kind": "custom-element-definition",
|
|
9860
|
+
"name": "nord-tab",
|
|
9861
|
+
"declaration": {
|
|
9862
|
+
"name": "Tab",
|
|
9863
|
+
"module": "src/tab/Tab.ts"
|
|
9864
|
+
}
|
|
9865
|
+
}
|
|
9866
|
+
],
|
|
9867
|
+
"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"
|
|
9868
|
+
},
|
|
9869
|
+
{
|
|
9870
|
+
"kind": "javascript-module",
|
|
9871
|
+
"path": "src/tab-group/TabGroup.ts",
|
|
9872
|
+
"declarations": [
|
|
9873
|
+
{
|
|
9874
|
+
"kind": "class",
|
|
9875
|
+
"description": "Tab Group allows multiple panels to be contained within a single window,\nusing tabs as a navigational element.",
|
|
9876
|
+
"name": "TabGroup",
|
|
9877
|
+
"slots": [
|
|
9878
|
+
{
|
|
9879
|
+
"description": "The element which contains the content to be revealed.",
|
|
9880
|
+
"name": ""
|
|
9881
|
+
},
|
|
9882
|
+
{
|
|
9883
|
+
"description": "The element which contains all tabs to reveal tabbed content.",
|
|
9884
|
+
"name": "tab"
|
|
9885
|
+
}
|
|
9886
|
+
],
|
|
9887
|
+
"members": [
|
|
9888
|
+
{
|
|
9889
|
+
"kind": "field",
|
|
9890
|
+
"name": "direction",
|
|
9891
|
+
"privacy": "private",
|
|
9892
|
+
"default": "new DirectionController(this)"
|
|
9893
|
+
},
|
|
9894
|
+
{
|
|
9895
|
+
"kind": "field",
|
|
9896
|
+
"name": "observer",
|
|
9897
|
+
"type": {
|
|
9898
|
+
"text": "MutationObserver | undefined"
|
|
9899
|
+
},
|
|
9900
|
+
"privacy": "private"
|
|
9901
|
+
},
|
|
9902
|
+
{
|
|
9903
|
+
"kind": "field",
|
|
9904
|
+
"name": "observerOptions",
|
|
9905
|
+
"type": {
|
|
9906
|
+
"text": "object"
|
|
9907
|
+
},
|
|
9908
|
+
"privacy": "private",
|
|
9909
|
+
"static": true,
|
|
9910
|
+
"default": "{\n attributes: true,\n subtree: true,\n attributeFilter: [\"selected\"],\n attributeOldValue: true,\n }"
|
|
9911
|
+
},
|
|
9912
|
+
{
|
|
9913
|
+
"kind": "field",
|
|
9914
|
+
"name": "tabGroupId",
|
|
9915
|
+
"privacy": "private",
|
|
9916
|
+
"default": "`nord-tab-group-${tabGroupCount++}`",
|
|
9917
|
+
"description": "Unique ID for each tab group component present."
|
|
9918
|
+
},
|
|
9919
|
+
{
|
|
9920
|
+
"kind": "field",
|
|
9921
|
+
"name": "label",
|
|
9922
|
+
"type": {
|
|
9923
|
+
"text": "string"
|
|
9924
|
+
},
|
|
9925
|
+
"default": "\"\"",
|
|
9926
|
+
"description": "Adds an accessible label to the tab list container.",
|
|
9927
|
+
"attribute": "label",
|
|
9928
|
+
"reflects": true
|
|
9929
|
+
},
|
|
9930
|
+
{
|
|
9931
|
+
"kind": "field",
|
|
9932
|
+
"name": "padding",
|
|
9933
|
+
"type": {
|
|
9934
|
+
"text": "\"m\" | \"l\" | \"none\" | undefined"
|
|
9935
|
+
},
|
|
9936
|
+
"default": "\"m\"",
|
|
9937
|
+
"description": "Controls the padding of the tab group component.",
|
|
9938
|
+
"attribute": "padding",
|
|
9939
|
+
"reflects": true
|
|
9940
|
+
},
|
|
9941
|
+
{
|
|
9942
|
+
"kind": "field",
|
|
9943
|
+
"name": "sticky",
|
|
9944
|
+
"type": {
|
|
9945
|
+
"text": "boolean"
|
|
9946
|
+
},
|
|
9947
|
+
"default": "false",
|
|
9948
|
+
"description": "Whether the tab list sticks to the top of the tab group as you scroll.",
|
|
9949
|
+
"attribute": "sticky",
|
|
9950
|
+
"reflects": true
|
|
9951
|
+
},
|
|
9952
|
+
{
|
|
9953
|
+
"kind": "field",
|
|
9954
|
+
"name": "selectedTab",
|
|
9955
|
+
"privacy": "private",
|
|
9956
|
+
"description": "The current tab node selected in the tab group."
|
|
9957
|
+
},
|
|
9958
|
+
{
|
|
9959
|
+
"kind": "method",
|
|
9960
|
+
"name": "updateSlots",
|
|
9961
|
+
"privacy": "private"
|
|
9962
|
+
},
|
|
9963
|
+
{
|
|
9964
|
+
"kind": "field",
|
|
9965
|
+
"name": "handleMutation",
|
|
9966
|
+
"privacy": "private",
|
|
9967
|
+
"description": "If the selected tab is selected programmatically update all the tabs."
|
|
9968
|
+
},
|
|
9969
|
+
{
|
|
9970
|
+
"kind": "field",
|
|
9971
|
+
"name": "initialSelectedTab",
|
|
9972
|
+
"privacy": "private",
|
|
9973
|
+
"description": "Get the selected tab button, or the first tab button."
|
|
9974
|
+
},
|
|
9975
|
+
{
|
|
9976
|
+
"kind": "method",
|
|
9977
|
+
"name": "setupTabs",
|
|
9978
|
+
"privacy": "private",
|
|
9979
|
+
"description": "Apply accessible attributes and values to the tab buttons."
|
|
9980
|
+
},
|
|
9981
|
+
{
|
|
9982
|
+
"kind": "method",
|
|
9983
|
+
"name": "setupPanels",
|
|
9984
|
+
"privacy": "private",
|
|
9985
|
+
"description": "Apply accessible attributes and values to the tab panels."
|
|
9986
|
+
},
|
|
9987
|
+
{
|
|
9988
|
+
"kind": "method",
|
|
9989
|
+
"name": "handleTabChange",
|
|
9990
|
+
"privacy": "private",
|
|
9991
|
+
"parameters": [
|
|
9992
|
+
{
|
|
9993
|
+
"name": "event",
|
|
9994
|
+
"type": {
|
|
9995
|
+
"text": "Event"
|
|
9996
|
+
}
|
|
9997
|
+
}
|
|
9998
|
+
]
|
|
9999
|
+
},
|
|
10000
|
+
{
|
|
10001
|
+
"kind": "method",
|
|
10002
|
+
"name": "previousTab",
|
|
10003
|
+
"privacy": "private",
|
|
10004
|
+
"parameters": [
|
|
10005
|
+
{
|
|
10006
|
+
"name": "tab",
|
|
10007
|
+
"type": {
|
|
10008
|
+
"text": "Tab"
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
10011
|
+
],
|
|
10012
|
+
"description": "Get the previous tab button in the tab group"
|
|
10013
|
+
},
|
|
10014
|
+
{
|
|
10015
|
+
"kind": "method",
|
|
10016
|
+
"name": "handleKeydown",
|
|
10017
|
+
"privacy": "private",
|
|
10018
|
+
"parameters": [
|
|
10019
|
+
{
|
|
10020
|
+
"name": "event",
|
|
10021
|
+
"type": {
|
|
10022
|
+
"text": "KeyboardEvent"
|
|
10023
|
+
}
|
|
10024
|
+
}
|
|
10025
|
+
],
|
|
10026
|
+
"description": "Handle keyboard accessible controls."
|
|
10027
|
+
},
|
|
10028
|
+
{
|
|
10029
|
+
"kind": "method",
|
|
10030
|
+
"name": "updateSelectedTab",
|
|
10031
|
+
"privacy": "private",
|
|
10032
|
+
"parameters": [
|
|
10033
|
+
{
|
|
10034
|
+
"name": "selectedTab",
|
|
10035
|
+
"type": {
|
|
10036
|
+
"text": "Tab"
|
|
10037
|
+
}
|
|
10038
|
+
}
|
|
10039
|
+
],
|
|
10040
|
+
"description": "Update the selected tab button with attributes and values.\nUpdate the tab group state."
|
|
10041
|
+
},
|
|
10042
|
+
{
|
|
10043
|
+
"kind": "field",
|
|
10044
|
+
"name": "_warningLogged",
|
|
10045
|
+
"type": {
|
|
10046
|
+
"text": "boolean"
|
|
10047
|
+
},
|
|
10048
|
+
"privacy": "private",
|
|
10049
|
+
"static": true,
|
|
10050
|
+
"default": "false",
|
|
10051
|
+
"inheritedFrom": {
|
|
10052
|
+
"name": "DraftComponentMixin",
|
|
10053
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10054
|
+
}
|
|
10055
|
+
}
|
|
10056
|
+
],
|
|
10057
|
+
"attributes": [
|
|
10058
|
+
{
|
|
10059
|
+
"name": "label",
|
|
10060
|
+
"type": {
|
|
10061
|
+
"text": "string"
|
|
10062
|
+
},
|
|
10063
|
+
"default": "\"\"",
|
|
10064
|
+
"description": "Adds an accessible label to the tab list container.",
|
|
10065
|
+
"fieldName": "label"
|
|
10066
|
+
},
|
|
10067
|
+
{
|
|
10068
|
+
"name": "padding",
|
|
10069
|
+
"type": {
|
|
10070
|
+
"text": "\"m\" | \"l\" | \"none\" | undefined"
|
|
10071
|
+
},
|
|
10072
|
+
"default": "\"m\"",
|
|
10073
|
+
"description": "Controls the padding of the tab group component.",
|
|
10074
|
+
"fieldName": "padding"
|
|
10075
|
+
},
|
|
10076
|
+
{
|
|
10077
|
+
"name": "sticky",
|
|
10078
|
+
"type": {
|
|
10079
|
+
"text": "boolean"
|
|
10080
|
+
},
|
|
10081
|
+
"default": "false",
|
|
10082
|
+
"description": "Whether the tab list sticks to the top of the tab group as you scroll.",
|
|
10083
|
+
"fieldName": "sticky"
|
|
10084
|
+
}
|
|
10085
|
+
],
|
|
10086
|
+
"mixins": [
|
|
10087
|
+
{
|
|
10088
|
+
"name": "DraftComponentMixin",
|
|
10089
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10090
|
+
}
|
|
10091
|
+
],
|
|
10092
|
+
"superclass": {
|
|
10093
|
+
"name": "LitElement",
|
|
10094
|
+
"package": "lit"
|
|
10095
|
+
},
|
|
10096
|
+
"status": "draft",
|
|
10097
|
+
"category": "navigation",
|
|
10098
|
+
"tagName": "nord-tab-group",
|
|
10099
|
+
"customElement": true
|
|
10100
|
+
}
|
|
10101
|
+
],
|
|
10102
|
+
"exports": [
|
|
10103
|
+
{
|
|
10104
|
+
"kind": "js",
|
|
10105
|
+
"name": "default",
|
|
10106
|
+
"declaration": {
|
|
10107
|
+
"name": "TabGroup",
|
|
10108
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
10109
|
+
}
|
|
10110
|
+
},
|
|
10111
|
+
{
|
|
10112
|
+
"kind": "custom-element-definition",
|
|
10113
|
+
"name": "nord-tab-group",
|
|
10114
|
+
"declaration": {
|
|
10115
|
+
"name": "TabGroup",
|
|
10116
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
10117
|
+
}
|
|
10118
|
+
}
|
|
10119
|
+
],
|
|
10120
|
+
"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 allow multiple panels to be contained within a single window.\n- Use the tab panel and tab components within the tab group component.\n- Use the tab and tab panel components in order to create a tab group content structure.\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 other components to the tab and tab panel within the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n- Don't add a tab or tab panel component without providing an accompanying panel or tab.\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 tab component related to the panel to select the tab but prevent the order of the tabs being affected.\n"
|
|
10121
|
+
},
|
|
10122
|
+
{
|
|
10123
|
+
"kind": "javascript-module",
|
|
10124
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
10125
|
+
"declarations": [
|
|
10126
|
+
{
|
|
10127
|
+
"kind": "class",
|
|
10128
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
10129
|
+
"name": "TabPanel",
|
|
10130
|
+
"slots": [
|
|
10131
|
+
{
|
|
10132
|
+
"description": "The tab panel content.",
|
|
10133
|
+
"name": ""
|
|
10134
|
+
}
|
|
10135
|
+
],
|
|
10136
|
+
"members": [
|
|
10137
|
+
{
|
|
10138
|
+
"kind": "field",
|
|
10139
|
+
"name": "_warningLogged",
|
|
10140
|
+
"type": {
|
|
10141
|
+
"text": "boolean"
|
|
10142
|
+
},
|
|
10143
|
+
"privacy": "private",
|
|
10144
|
+
"static": true,
|
|
10145
|
+
"default": "false",
|
|
10146
|
+
"inheritedFrom": {
|
|
10147
|
+
"name": "DraftComponentMixin",
|
|
10148
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10149
|
+
}
|
|
10150
|
+
}
|
|
10151
|
+
],
|
|
10152
|
+
"mixins": [
|
|
10153
|
+
{
|
|
10154
|
+
"name": "DraftComponentMixin",
|
|
10155
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10156
|
+
}
|
|
10157
|
+
],
|
|
10158
|
+
"superclass": {
|
|
10159
|
+
"name": "LitElement",
|
|
10160
|
+
"package": "lit"
|
|
10161
|
+
},
|
|
10162
|
+
"status": "draft",
|
|
10163
|
+
"category": "navigation",
|
|
10164
|
+
"tagName": "nord-tab-panel",
|
|
10165
|
+
"customElement": true
|
|
10166
|
+
}
|
|
10167
|
+
],
|
|
10168
|
+
"exports": [
|
|
10169
|
+
{
|
|
10170
|
+
"kind": "js",
|
|
10171
|
+
"name": "default",
|
|
10172
|
+
"declaration": {
|
|
10173
|
+
"name": "TabPanel",
|
|
10174
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
10175
|
+
}
|
|
10176
|
+
},
|
|
10177
|
+
{
|
|
10178
|
+
"kind": "custom-element-definition",
|
|
10179
|
+
"name": "nord-tab-panel",
|
|
10180
|
+
"declaration": {
|
|
10181
|
+
"name": "TabPanel",
|
|
10182
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
10183
|
+
}
|
|
10184
|
+
}
|
|
10185
|
+
],
|
|
10186
|
+
"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"
|
|
10187
|
+
},
|
|
10188
|
+
{
|
|
10189
|
+
"kind": "javascript-module",
|
|
10190
|
+
"path": "src/table/Table.ts",
|
|
10191
|
+
"declarations": [
|
|
10192
|
+
{
|
|
10193
|
+
"kind": "class",
|
|
10194
|
+
"description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
|
|
10195
|
+
"name": "Table",
|
|
10196
|
+
"slots": [
|
|
10197
|
+
{
|
|
10198
|
+
"description": "The table.",
|
|
10199
|
+
"name": ""
|
|
10200
|
+
}
|
|
10201
|
+
],
|
|
10202
|
+
"members": [
|
|
10203
|
+
{
|
|
10204
|
+
"kind": "field",
|
|
10205
|
+
"name": "density",
|
|
10206
|
+
"type": {
|
|
10207
|
+
"text": "\"condensed\" | \"default\" | \"relaxed\""
|
|
10208
|
+
},
|
|
10209
|
+
"default": "\"default\"",
|
|
9658
10210
|
"description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
|
|
9659
10211
|
"attribute": "density",
|
|
9660
10212
|
"reflects": true
|
|
@@ -11279,41 +11831,6 @@
|
|
|
11279
11831
|
],
|
|
11280
11832
|
"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"
|
|
11281
11833
|
},
|
|
11282
|
-
{
|
|
11283
|
-
"kind": "javascript-module",
|
|
11284
|
-
"path": "src/common/decorators/observe.ts",
|
|
11285
|
-
"declarations": [
|
|
11286
|
-
{
|
|
11287
|
-
"kind": "function",
|
|
11288
|
-
"name": "observe",
|
|
11289
|
-
"parameters": [
|
|
11290
|
-
{
|
|
11291
|
-
"name": "propertyName",
|
|
11292
|
-
"type": {
|
|
11293
|
-
"text": "string"
|
|
11294
|
-
}
|
|
11295
|
-
},
|
|
11296
|
-
{
|
|
11297
|
-
"name": "lifecycle",
|
|
11298
|
-
"default": "\"update\"",
|
|
11299
|
-
"type": {
|
|
11300
|
-
"text": "ObserveLifecycle"
|
|
11301
|
-
}
|
|
11302
|
-
}
|
|
11303
|
-
]
|
|
11304
|
-
}
|
|
11305
|
-
],
|
|
11306
|
-
"exports": [
|
|
11307
|
-
{
|
|
11308
|
-
"kind": "js",
|
|
11309
|
-
"name": "observe",
|
|
11310
|
-
"declaration": {
|
|
11311
|
-
"name": "observe",
|
|
11312
|
-
"module": "src/common/decorators/observe.ts"
|
|
11313
|
-
}
|
|
11314
|
-
}
|
|
11315
|
-
]
|
|
11316
|
-
},
|
|
11317
11834
|
{
|
|
11318
11835
|
"kind": "javascript-module",
|
|
11319
11836
|
"path": "src/common/controllers/DirectionController.ts",
|
|
@@ -12325,6 +12842,41 @@
|
|
|
12325
12842
|
}
|
|
12326
12843
|
]
|
|
12327
12844
|
},
|
|
12845
|
+
{
|
|
12846
|
+
"kind": "javascript-module",
|
|
12847
|
+
"path": "src/common/decorators/observe.ts",
|
|
12848
|
+
"declarations": [
|
|
12849
|
+
{
|
|
12850
|
+
"kind": "function",
|
|
12851
|
+
"name": "observe",
|
|
12852
|
+
"parameters": [
|
|
12853
|
+
{
|
|
12854
|
+
"name": "propertyName",
|
|
12855
|
+
"type": {
|
|
12856
|
+
"text": "string"
|
|
12857
|
+
}
|
|
12858
|
+
},
|
|
12859
|
+
{
|
|
12860
|
+
"name": "lifecycle",
|
|
12861
|
+
"default": "\"update\"",
|
|
12862
|
+
"type": {
|
|
12863
|
+
"text": "ObserveLifecycle"
|
|
12864
|
+
}
|
|
12865
|
+
}
|
|
12866
|
+
]
|
|
12867
|
+
}
|
|
12868
|
+
],
|
|
12869
|
+
"exports": [
|
|
12870
|
+
{
|
|
12871
|
+
"kind": "js",
|
|
12872
|
+
"name": "observe",
|
|
12873
|
+
"declaration": {
|
|
12874
|
+
"name": "observe",
|
|
12875
|
+
"module": "src/common/decorators/observe.ts"
|
|
12876
|
+
}
|
|
12877
|
+
}
|
|
12878
|
+
]
|
|
12879
|
+
},
|
|
12328
12880
|
{
|
|
12329
12881
|
"kind": "javascript-module",
|
|
12330
12882
|
"path": "src/common/directives/cond.ts",
|